-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmenu.php
57 lines (56 loc) · 2.01 KB
/
menu.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
<?php
// NEWS SECTION //
if($s == "news"){
$result = mysql_query("SELECT Datetime, Headline, NewsIndex FROM news ORDER BY Datetime DESC LIMIT 0,5");
$no = 1;
while($row = mysql_fetch_array($result)){
if($no == 1){
echo "<p style='width:208px;float:left;font:11px/14px arial;color:#000000; float:left;'>";
}
echo "<img src='/kopasite/images/out_cp_bul.gif' width='5' height='5' alt='' class='out_cp_bul'/><a href='/news/".$row['NewsIndex']."/' style='color:#000000'>".$row['Headline']."</a>";
if($no == 2){
echo "</p>";
$no = 1;
}else{
echo "<br/>";
$no++;
}
}
echo "<img src='/kopasite/images/out_cp_bul.gif' width='5' height='5' alt='' class='out_cp_bul'/><a href='../archive/' style='color:#000000'>More..</a>";
}else{
// NEWS SECTION end //
$menupages = array('Records' => array('Kinglist', 'Compare', 'Player Of the Month', 'Player Of the Week'), 'Info' => array('About Elasto Mania', 'Site Map', 'About Kopasite', 'Contact'), 'Contests' => array('Secret Areas', 'eLopa', 'Smash Cup', 'Team Cup', 'Dragstrup Cup'), 'Download' => array('Recent', 'My Uploads', 'Search'), 'Community' => array('Kuski List', 'Interviews'), 'Tools' => array('cupSource', 'getRecInfo', 'Replay Online'));
$no = 1;
$noall = 0;
if(array_key_exists($section, $menupages)){
foreach($menupages[$section] as $menupage){
if($no == 1){
echo "<p style='width:208px;float:left;font:11px/14px arial;color:#000000; float:left;'>";
}
echo "<img src='/kopasite/images/out_cp_bul.gif' width='5' height='5' alt='' class='out_cp_bul'/><a href='$url/".strtolower($section)."/".str_replace(" ", "_", strtolower($menupage))."/' style='color:#000000'>".$menupage."</a>";
if($no == 2){
echo "</p>";
$no = 1;
}else{
echo "<br/>";
$no++;
}
$noall++;
}
while($noall < 5){
if($no == 1){
echo "<p style='width:208px;float:left;font:11px/14px arial;color:#000000; float:left;'>";
}
echo " ";
if($no == 2){
echo "</p>";
$no = 1;
}else{
echo "<br/>";
$no++;
}
$noall++;
}
}
}
?>