/
category.php
96 lines (84 loc) · 3.63 KB
/
category.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<?php
require("includes/OrkutPapaClass.php");
$orkutOb = new orkutPapa();
$pageType = "sms";
$catId = $_GET['slug'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<?=URL."/";?>"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="css/style2.css" type="text/css"/>
<link rel="shortcut icon" href="images/icon.ico"/>
<title>Orkut Papa-Home</title>
</head>
<body>
<div id="wrapper">
<div id="header">
<div id="header-content">
<img src="images/orkut-papa.jpg" alt="Orkut Papa, Orkut Scraps" width="200"/>
</div>
<div id="ad"> </div>
</div>
<div id="menu"> <?php include("includes/menu.php"); ?> </div>
<div id="container">
<div id="right-container">
<?php include("includes/cat_group.php"); ?>
</div>
<div id="middel-container">
<div id="catTitle">
<h1><?php echo $orkutOb->getCatName($catId); ?> / Text Messages</h1><br />
other text are here
</div>
<div id="ad2"></div>
<?php
$page = $_GET['page'];
if($page)
{
$start = ($page - 1) * 10; //first item to display on this page
}
else
{
$start = 0;
}
$data = $orkutOb->fetchDataByCat($catId,$start,10);
if($data)
{
for($i=0;$i<count($data);$i++)
{ ?>
<div class="orkutdata">
<?php if($data[$i]['type']== "F")
{?>
<div class="hotlink" align="center">
<textarea name="hotlink" cols="65" rows="4" onclick="focus();select();" style="border:1px solid #960d09;"><center><a href="<?php echo URL."/category/".$catId."/page/".$page;?>"></a></center><?php echo "<object width='500px' height='400'><param name='movie' value='scrap/".$data[$i]['name']."'><embed src='scrap/".$data[$i]['name']."' width='500px' height='400'></embed></object>"; ?>
</textarea></div><br />
<div class="scrap" align="center">
<?php echo "<object width='500px' height='400'>
<param name='movie' value='scrap/".$data[$i]['name']."'>
<embed src='scrap/".$data[$i]['name']."' width='500px' height='400'>
</embed>
</object>";?>
</div>
<?php }
else
{?>
<div class="hotlink" align="center">
<textarea name="hotlink" cols="65" rows="3" onclick="focus();select();" style="border:1px solid #960d09;"><center><a href="<?php echo URL."/category/".$catId; ?>"></a><img src="scrap/<?=$data[$i]['name'];?>" alt="<?=$orkutOb->getcategoryByslug($catId);?>" border="0"/><br><a href="http://wwww.orkutpapa.com"> Visit Orkut Papa For Graphic & Flash Scraps </a></center>
</textarea></div><br />
<div class="scrap" align="center"><?php echo "<img src='scrap/".$data[$i]['name']."' style='border:5px solid #314d63;'>";?>
</div>
<?php } ?>
<div class="scrap-description">
Category : <?php echo $orkutOb->getcategoryByslug($catId); ?> Submited Date : <?php echo $data[$i]['date']?> </div>
</div>
<?php }}?>
<div id="page" style="display:block"> <?php echo $orkutOb->pagignation($catId,"category/".$catId."/"); ?> </div>
<br />
</div>
<div id="left-container"><?php include("includes/right_cat_group.php"); ?> </div>
</div>
<div id="footer" align="center"><?php include("includes/footer.php");?></div>
</div>
</body>
</html>