require('lib/lib.inc');
global $id, $pass, $sid;
global $NoticeTable;
$conn = Connect($id, $pass, $sid);
$NoticeQry = "select title, num from $NoticeTable where ROWNUM <=5 order by num desc";
$NoticeStmt = OCIParse($conn, $NoticeQry);
OCIExecute($NoticeStmt);
while(OCIFetchInto($NoticeStmt, $NoticeList))
{
$NoticeTitle[] = $NoticeList[0];
$NoticeNum[] = $NoticeList[1];
}
Disconnect($conn);
?>
|
|
|
global $where;
$where = 'index';
include('lib/login.inc');
?>
|
|
|
 |
|
|
|
|
|
|
|
$NumOfList = count($NoticeTitle);
for($i = 0; $i < $NumOfList; $i++)
{
?>
|
 |
=$name?> |
|
|
}
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
 |
|