-
Notifications
You must be signed in to change notification settings - Fork 0
/
hostile.php
46 lines (44 loc) · 1016 Bytes
/
hostile.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
<?php
include('include/header.php');
include('include/defcall_data.php');
?>
<table width="100%">
<tr>
<td width="50%">
<?php
$data = new DefcallData;
$data->name = $_REQUEST['name'];
$data->page = $_REQUEST['page'];
$data->order = $_REQUEST['order'];
$data->direction = $_REQUEST['dir'];
$smarty->assign('order', $data->order);
$smarty->assign('dir', $data->direction);
if($data->name != "")
{
$smarty->assign('data', $data->selectAlliance());
$smarty->assign('alli', $data->name);
$smarty->assign('count', $data->numberOfMembers());
$smarty->assign('page', $data->page);
$smarty->display('alliance_view.tpl');
}
else
{
if($data->order == "")
{
$data->order = "alliance";
}
if($data->direction == "")
{
$data->direction = "asc";
}
$smarty->assign('data', $data->listHostileAlliances());
$smarty->assign('total', $data->getTotalHostiles());
$smarty->display('hostile_list.tpl');
}
?>
</td>
</tr>
</table>
<?php
include('include/footer.php');
?>