| Server IP : 210.245.233.93 / Your IP : 216.73.216.226 Web Server : Apache/2.2.15 (CentOS) System : Linux webserver2.onesolution.com.hk 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64 User : apache ( 48) PHP Version : 5.3.3 Disable Function : exec, shell_exec, system, passthru, popen, proc_open, pcntl_exec MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/(Del)therainbows.org.hk/webadmin/ |
Upload File : |
<?
//require 'db_connect.php';
require 'check_login.php';
if ($logged_in <> 1) {
header('Location: login.php');
return;
}
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>
<table border="0" cellpadding="1" cellspacing="1" width="100%">
<tr>
<td class='pageheader' align="left"><b><img src="images/iconNews.png" width="48" height="48" align="absmiddle"> 通訊 </b></td>
<td class='content' align="right"><a href="archiveaddform.php"><img src="images/iconNew.jpg" alt="Add" width="32" height="32" border="0"><br>
新增 </a></td>
</tr>
</table>
<?
echo "<p class='msg'>". $_GET['msg'] ."</p>";
?>
<table border="0" cellpadding="1" cellspacing="1" bgcolor="#FFFFFF">
<tr><td class="contentsearch" bgcolor="#FFFFFF" width="50" align="center">刪除</td>
<td class="contentsearch" bgcolor="#FFFFFF" width="200" align="center">日期</td>
<td class="contentsearch" bgcolor="#FFFFFF" width="50" align="center">顯示</td>
<td class="contentsearch" bgcolor="#FFFFFF" width="50" align="center">修改</td>
</tr>
<?php require("configure.php"); ?>
<?php
$result = mysql_query("SELECT * FROM archive order by archivedate DESC, archiveid DESC");
while ($row = mysql_fetch_array($result,MYSQL_ASSOC))
{
$showdate = $row{'archivedate'};
$y = substr($showdate, 0, 4);
$m = substr($showdate, 5, 2);
$d = substr($showdate, 8, 2);
//$monthname = array( 1 => 'JAN', 'FEB', 'MAR', 'APR', 'MAY', 'JUN', 'JUL', 'AUG', 'SEP', 'OCT', 'NOV', 'DEC' );
print "<tr>";
print "<td class='content' bgcolor=#DDDDDD valign='top' align='center'>";
print "<a href='archivedeleteconfirm.php?archiveid=".$row{'archiveid'}."' border='0'>";
print "<img src='images/btnRemove.gif' border='0' alt='Remove'></a></td>";
print "<td class='content' bgcolor=#DDDDDD valign='top' align='center'>". $d ."-". $m."-".$y ."</td>";
print "<td class='content' bgcolor=#DDDDDD valign='top' align='center'>";
if ($row{'archivestatus'} == 1)
{
print "<a href='archivestatus.php?archiveid=".$row{'archiveid'}."'>";
print "<img src='images/tick.png' border='0' alt='Modify'></a>";
}
else
{
print "<a href='archivestatus.php?archiveid=".$row{'archiveid'}."'>";
print "<img src='images/cross.png' border='0' alt='Modify'></a>";
}
print "</td>";
print "<td class='content' bgcolor=#DDDDDD valign='top' align='center'>";
print "<a href='archivemodifyform.php?archiveid=".$row{'archiveid'}."'>";
print "<img src='images/button_properties.png' border='0' alt='Modify'></a>";
print "</td>";
print "</tr>";
}
mysql_close($dbh);
?>
</table>
</body>
</html>
<?
}
?>