-
Notifications
You must be signed in to change notification settings - Fork 1
/
page.php
executable file
·61 lines (49 loc) · 1.51 KB
/
page.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php include 'header.php'; ?>
<?php
$page_name = $_GET['page_name'];
$row = mysql_fetch_array(mysql_query("select * from page where page_name = '$page_name' "));
?>
<div class='nav'>
<div id="" class="drop">
<ul class="drop_menu">
<li class='active'><a href='<?=HOME?>'><span><i class='icon-home icon-white'></i> Home</span></a></li>
<?php
$cur = mysql_query("select * from menu");
while($row = mysql_fetch_array($cur)){
echo "
<li><a href='".$row['item_url']."'>".$row['item_name']."</a>
";
$supper_id=$row[0];
$sub=mysql_query("select * from submenu where item_id=".$supper_id);
if(mysql_num_rows($sub)>0){
echo "<ul>";
while($row=mysql_fetch_array($sub)){
echo "
<li><a href='{$row[3]}'>{$row[2]}</a></li>
";
}
echo "</ul>";
}
echo "</li>";
}
?>
</ul>
</div>
</div>
<div class='index_view'>
<a href="<?php echo HOME;?>">Home</a> > <?php echo ucwords($row['page_name']); ?>
<br>
<p id='detail'><?php echo ucwords($row['page_name']); ?></p>
<div id='post_view'>
<table width="100%" height="100%" border="0">
<tr>
<td>
<?php echo $row['page_content']; ?>
<br/>
</td>
</tr>
</table>
</div>
</div>
<br/>
<?php include 'footer.php'; ?>