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
|
<? require("inc/configure.php"); require("inc/global.php"); require("inc/checklogin.php"); if ($logged_in == 0) { //echo 'Not logged in. <a href="login.php">Login</a>'; header('Window-target: _parent'); header('Location: login.php'); exit(); } if (checkObject(11) <> 1){ die("Unauthorized Access"); exit(); } ?> <? $forname = $_GET['formname']; $fieldname = $_GET['fieldname']; ?> <html> <head> <title><?=$systitle?></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <link rel="stylesheet" href="main.css" type="text/css"> </head> <body bgcolor="#FFFFFF" leftmargin="10" topmargin="10" marginwidth="0" marginheight="0"> <p class="pageheader">Brand Search</p> <table width="100" border='0' cellspacing='1' cellpadding='1' bgcolor='#111111'> <tr><td class="content" width='100' align="center" valign="top" bgcolor='#ffffff'>Brand</td></tr> <? $sql = "select * from INV_BRAND where status = 1 order by brandname "; $result = mysql_query($sql); while ($row = mysql_fetch_array($result,MYSQL_ASSOC)) { ?> <tr><td class='content' bgcolor='#ffffff'><a href='brand.php?brandid=<?=$row{'brandid'}?>'><b><i><?=$row{'brandname'}?></i></b></a></td> </tr> <? } ?> <tr><td colspan="5" class="content" align="center" bgcolor='#ffffff'>--End--</td></tr> </table> </body> </html>
|