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
|
<? //require 'db_connect.php'; require 'check_login.php'; if ($logged_in <> 1) { echo("<script language=\"javascript\">"); echo("top.location.href = \"login.php\";"); echo("</script>"); exit; } else { ?> <html> <head> <link rel="stylesheet" href="main.css" type="text/css"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Admin Page</title> </head> <body onLoad="location.href='#top'"> <table border="0" cellpadding="1" cellspacing="1" width="800"> <tr><td class='pagetitle' align="left"><b>Group Name</b></td> <td class='pagetitle' align="right"><a href="groupaddform.php"><img src="images/button_insert.png" alt="Add" border="0"> Add</a></td> </tr> </table> <? echo "<p class='msg'>". $_GET['msg'] ."</p>"; ?> <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" width="800"> <tr><td width="750" align="left" bgcolor="#FFFFFF" class="contentsearch" style='padding-left:5'><strong>Group Name</strong></td> <td width="50" align="left" bgcolor="#FFFFFF" class="contentsearch" style='padding-left:5'><strong>Action</strong></td></tr> <?php require("configure.php"); ?> <?php $sql="SELECT * FROM emailgroup ORDER BY emailgroupname asc "; $result = mysql_query($sql);
while ($row = mysql_fetch_array($result,MYSQL_ASSOC)) { if ($x % 2 ==1) { $color = "bgcolor=#F6F6F6"; } else { $color = "bgcolor=#EAEAEA"; } print "<tr>"; print "<td height='22' class='content' $color valign='middle' style='padding-left:5'>".$row{'emailgroupname'}."</td>"; print "<td class='content' $color valign='top' align='center'>"; print "<a href='groupmodifyform.php?emailgroupid=".$row{'emailgroupid'}."'>"; print "<img src='images/button_properties.gif' border='0' alt='Modify'></a></td>"; print "</tr>"; $x = $x +1; } mysql_close($dbh); ?> </table> </body> </html> <? } ?>
|