@@ 27-62 (lines=36) @@ | ||
24 | $sql = "SELECT `sid`,`dbid`,`type`,`name` FROM `servers`;"; |
|
25 | $result_of_query = $db_connection->query($sql); |
|
26 | ||
27 | if ($result_of_query->num_rows >= 1) { |
|
28 | while ($row = mysqli_fetch_assoc($result_of_query)) { |
|
29 | if ($row['type'] == 'life'){ ?> |
|
30 | <li class="list-primary"> |
|
31 | <i class=" fa fa-ellipsis-v"></i> |
|
32 | <div class="task-title"> |
|
33 | <span class="task-title-sp"><?php echo $row['name']; ?></span> |
|
34 | <span class="badge bg-theme">Life</span> |
|
35 | <div style="float:right; padding-right: 15px;"> |
|
36 | <form method="post" action="<?php echo $settings['url'] ?>dashboard"> |
|
37 | <input type="hidden" name="type" value="<?php echo $row['type']; ?>"> |
|
38 | <input type="hidden" name="dbid" value="<?php echo $row['dbid']; ?>"> |
|
39 | <button class="btn btn-success btn-sm fa fa-eye" type="submit"></button> |
|
40 | </form> |
|
41 | </div> |
|
42 | </div> |
|
43 | </li> |
|
44 | <?php }elseif ($row['type'] == 'waste') { ?> |
|
45 | <li class="list-danger"> |
|
46 | <i class=" fa fa-ellipsis-v"></i> |
|
47 | <div class="task-title"> |
|
48 | <span class="task-title-sp"><?php echo $row['name']; ?></span> |
|
49 | <span class="badge bg-important">Wasteland</span> |
|
50 | <div class="pull-right hidden-phone"> |
|
51 | <form method="post" action="<?php echo $settings['url'] ?>dashboard"> |
|
52 | <input type="hidden" name="type" value="<?php echo $row['type']; ?>"> |
|
53 | <input type="hidden" name="dbid" value="<?php echo $row['dbid']; ?>"> |
|
54 | <button class="btn btn-success btn-sm fa fa-eye" type="submit"></button> |
|
55 | </form> |
|
56 | </div> |
|
57 | </li> |
|
58 | <?php |
|
59 | } |
|
60 | } |
|
61 | echo '</select>'; |
|
62 | } |
|
63 | ?> |
|
64 | </ul> |
|
65 | </div> |
@@ 22-70 (lines=49) @@ | ||
19 | $sql = 'SELECT `sid`,`dbid`,`type`,`name` FROM `servers`;'; |
|
20 | $result_of_query = $db_connection->query($sql); |
|
21 | ||
22 | if ($result_of_query->num_rows > 1) { |
|
23 | while ($row = mysqli_fetch_assoc($result_of_query)) { |
|
24 | if ($row['type'] == 'life') { |
|
25 | ?> |
|
26 | <li class="list-primary"> |
|
27 | <i class=" fa fa-ellipsis-v"></i> |
|
28 | ||
29 | <div class="task-title"> |
|
30 | <span class="task-title-sp"><?php echo $row['name']; ?></span> |
|
31 | <span class="badge bg-theme">Life</span> |
|
32 | ||
33 | <div class="pull-right hidden-phone"> |
|
34 | <form method="post" action="<?php echo $settings['url'] ?>dashboard"> |
|
35 | <input type="hidden" name="type" |
|
36 | value="<?php echo $row['type']; ?>"> |
|
37 | <input type="hidden" name="dbid" |
|
38 | value="<?php echo $row['dbid']; ?>"> |
|
39 | <button class="btn btn-success btn-sm fa fa-eye" |
|
40 | type="submit" style="margin-right: 8px; margin-bottom: 15px;"></button> |
|
41 | </form> |
|
42 | </div> |
|
43 | </div> |
|
44 | </li> |
|
45 | <?php |
|
46 | ||
47 | } elseif ($row['type'] == 'waste') { |
|
48 | ?> |
|
49 | <li class="list-danger"> |
|
50 | <i class=" fa fa-ellipsis-v"></i> |
|
51 | ||
52 | <div class="task-title"> |
|
53 | <span class="task-title-sp"><?php echo $row['name']; ?></span> |
|
54 | <span class="badge bg-important">Wasteland</span> |
|
55 | ||
56 | <div class="pull-right hidden-phone"> |
|
57 | <form method="post" action="<?php echo $settings['url'] ?>dashboard"> |
|
58 | <input type="hidden" name="type" |
|
59 | value="<?php echo $row['type']; ?>"> |
|
60 | <input type="hidden" name="dbid" |
|
61 | value="<?php echo $row['dbid']; ?>"> |
|
62 | <button class="btn btn-success btn-sm fa fa-eye" |
|
63 | type="submit" style="margin-right: 8px; margin-bottom: 15px;"></button> |
|
64 | </form> |
|
65 | </div> |
|
66 | </li> |
|
67 | <?php |
|
68 | ||
69 | } |
|
70 | } |
|
71 | echo '</select>'; |
|
72 | } |
|
73 | ?> |