-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsubcategories.php
185 lines (166 loc) · 6.06 KB
/
subcategories.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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<?php
ob_start();
if(!isset($_COOKIE['username']))
{
header("location:index.php");
}
?>
<!DOCTYPE HTML PUBLIC "-/W3C/DTD HTML 4.01 Transitional/EN"
"http:/www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>World Biggest B2B Portal .:: Sub Categories ::.</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="style.css" rel="stylesheet" type="text/css">
<link href="menu.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
<script>
function ConfirmDelete(id,IndustryID)
{
var result = confirm("Are you sure you want to Delete this Record ?");
if (result==true)
{
window.location = "delete_subcategory.php?id="+id;
}
}
</script>
</head>
<body >
<table width="1003" border="0" align="center" cellspacing="0">
<Tr align="center">
<Td colspan="3">
<table border="0" cellpadding="5" cellspacing="0" style="vertical-align:top">
<Tr align="center">
<Td align="center" width="361"><img src="images/logo.jpg"></Td>
</Tr>
</table>
</td>
</Tr>
<Tr>
<Td height='24' colspan="2" align="right" background='images/headCap.gif'>
<div style="float:left; margin:0 0 0 200px; font-weight:bold "class="style2">
Welcome to Administrator Control Panel
</div>
<span class="style1" >
admin |
<a href='home.php' class='topcap'>Home</a>|
<a href='logout.php' class='topcap'>Logout</a>
</span>
</td>
</Tr>
<Tr>
<Td height='24' colspan="2" align="Center">
<div style="float:left; margin-Left:200px;">
</div><br><font color=red>
<br> <?php
if(isset($_GET['msg']))
{
echo $_GET['msg'];
}
?>
</font>
* <a href="add_subcategory.php?IndustryID=<?php echo $_GET['IndustryID'];?>" class="edit">Add new Sub Category</a>
</td>
</Tr>
<tr valign="top">
<td width="218">
<div style="margin-left:10px">
<table border="0" cellpadding="0" cellspacing="0" width="200px" >
<Tr>
<Td><img src="images/successstory/1.gif" width="9" height="26" border="0"></Td>
<Td background="images/successstory/bar-box_03_0.gif" class="storyheading" width="200"><strong>Control Menu</strong></Td>
<Td><img src="images/successstory/3.gif" width="9" height="26"></Td>
</Tr>
<Tr>
<Td background="images/bar-box_09.gif" ></Td>
<Td background="images/bar-box_10.gif">
<div class="colL" style="width:100%; margin-top:12px;">
<div class="menu menuSkinA">
<ul>
<li class="listSize"><a href="countries.php"><strong>Countries</strong></a></li>
<li class="listSize"><a href="categories.php"><strong>Categories</strong></a></li>
<li class="listSize"><a href="seller.php"><strong>Sellers</strong></a></li>
<li class="listSize"><a href="gold_seller.php"><strong>Gold Sellers</strong></a></li>
<li class="listSize"><a href="buyers.php"><strong>Buyers</strong></a></li>
<li class="listSize"><a href="top_banners.php"><strong>Top Banners</strong></a></li>
<li class="listSize"><a href="right_banners.php"><strong>Right Side Small Banners</strong></a></li>
<li class="listSize"><a href="settings.php"><strong>Settings</strong></a></li>
<li class="listSize"><a href="edit_login.php"><strong>Change Admin Login</strong></a></li>
</ul>
</div>
</div> <!-- lefte menu -->
</Td>
<Td background="images/bar-box_11.gif"></Td>
</Tr>
<Tr>
<Td><img src="images/bar-box_15.gif" border="0"></Td>
<Td background="images/bar-box_16.gif"></Td>
<Td><img src="images/bar-box_17.gif"></Td>
</Tr>
</table> </div>
</td>
<td width="781">
<div style="margin:0 10px 0 10px; ">
<table border="0" cellpadding="0" cellspacing="0" width="98%" >
<Tr>
<Td width="16" height="24"><img src="images/1.gif"></Td>
<Td background="images/2.gif" class="style2" style="font-weight:bold ">
<table width="100%">
<tr>
<td width="43%" class="style1" style="font-weight:bold; font-size:12px">Category</td>
<td width="35%" class="style1" style="font-weight:bold; font-size:12px">Sub Category</td>
<td width="10%" class="style1" style="font-weight:bold;font-size:12px">Edit</td>
<td width="12%" class="style1" style="font-weight:bold;font-size:12px">Delete</td>
</tr>
</table>
</Td>
<Td width="16" height="24"><img src="images/3.gif"></Td>
</Tr>
<Tr>
<Td background="images/7.gif"></Td>
<Td valign="top" background="images/9.gif">
<table width="100%">
<!-- Start Catetory Admin -->
<Tr class='currentData' bgcolor='#eeeeee'>
<?php
include "db.php";
$rs=mysql_query("select * from category,sub_category where category.cid=sub_category.cid AND sub_category.cid=$_GET[IndustryID] ");
while($r=mysql_fetch_array($rs))
{
echo "<td class='adminvalues'>$r[1]</td>";
echo "<td class='adminvalues'><a class='edit' href='#'>$r[4]</a></td>";
echo "<td align='left'><a class='edit' href='edit_subcategory.php?IndustryID=$r[3]'>EDIT</a> </td>";
echo "<td align='right'><a class='delete' href='javascript:ConfirmDelete($r[3]);'>DELETE</a></td>";
echo "</tr><Tr class='currentData' bgcolor='#ffffff'>";
}
?>
</table>
</Td>
<Td background="images/8.gif"></Td>
</Tr>
<Tr>
<Td width="16" height="26"><img src="images/4.gif"></Td>
<Td background="images/6.gif"></Td>
<Td width="16" height="26"><img src="images/5.gif"></Td>
</Tr>
</table>
</div>
</td>
</tr>
<tr>
</tr>
</table>
</body>
</html>
<?php
ob_end_flush();
?>