Академический Документы
Профессиональный Документы
Культура Документы
org/1999/xhtml">
<script type="text/javascript" src="http://code.jquery.com/jquery-
2.1.3.min.js"></script>
<script type="text/javascript" src="https://code.jquery.com/ui/1.11.4/jquery-
ui.min.js"></script>
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<link
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"
rel="stylesheet" />
<link href="https://code.jquery.com/ui/1.11.3/themes/smoothness/jquery-ui.css"
rel="stylesheet" />
<title>Outlanders Tombola</title>
<body>
<div class="container">
<div class="row container">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<h2>Outlanders Tombola-Fort</h2>
<!-- HTML Form for end user - reloads on same page -->
<form role="form" method="POST" action="<?php htmlentities($_SERVER["PHP_SELF"])?
>">
Numere Extrase:
<!--End form-->
<?php
// Activates code block if submit button is clicked
if(isset($_POST['submit'])){
// Checks the minimum value
if(isset($_POST['minnum'])){
$minnum = $_POST['minnum'];
}
// Checks the maximum value
if(isset($_POST['maxnum'])){
$maxnum = $_POST['maxnum'];
}
// Checks the number of numbers to be generated
if(isset($_POST['gennum'])){
$gennum = $_POST['gennum'];
}
?>
<!--Output in a pre tag - allowing it to be scrolled for large number generations--
>
<pre class="pre-scrollable"><?php
for($i=0;$i<$gennum;$i++)
{
$random_number = mt_rand($minnum,$maxnum);
echo $random_number . "<br />";
}
?></pre>
<?php
}
?>
</div>
</div>
</div>
</body>
</html>