-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
47 lines (40 loc) · 1.42 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
namespace sayibulmaca;
/**
* @ author Özkan Özdemir
*/
include_once 'class/sayitut_class.php';
$ustLimit = isset($_GET['limit']) && $_GET['limit'] > 249 && $_GET['limit'] < 5001 ? intval($_GET['limit']) : 250; // Üst Limit Sayısını Belirleme
$sayitut = new sayitut($ustLimit);
$sayilar = $sayitut->sayilari_getir();
include_once 'inc/head.php';
?>
<script>
var ustLimit = <?=$ustLimit?>;
</script>
<div class="container">
<div class="row text-center">
<h2>Sayı Bulmaca</h2>
<h5>1 - <?=$ustLimit?> arası bir sayı tutun.</h5>
<h5><a href="https://github.com/ozkanozdemir/sayitut">Github</a></h5>
</div>
<?php
foreach ($sayilar as $key => $value) {
echo '<div class="row"><ul class="list-group"><li class="list-group-item">';
echo implode(' - ', $value);
echo "<div class='text-center'><label><input type='checkbox' value='$key' class='varmi'/></label></div>";
echo "</li></ul></div>";
}
?>
<div class="row text-center">
<button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target=".sonuc" id="bul">Bul</button>
<div class="modal fade sonuc" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="alert alert-success modal-content" role="alert">...</div>
</div>
</div>
</div>
</div> <!-- /container -->
<?php
include_once 'inc/analyticstracking.php';
include_once 'inc/foot.php';