📄 news.php
字号:
<?php
function showtr( $text, $sort_id, $sort_name )
{
echo "<tr class=\"TableLine1\">\r\n <td width=\"10%\"> </td>\r\n <td class=\"menulines\" onClick=\"javascript:select_news('";
echo $sort_id;
echo "','";
echo $sort_name;
echo "')\" style=\"cursor:hand\">\r\n\t\t ";
echo $text;
echo "\t\t </td>\r\n\t\t</tr>\r\n";
}
include_once( "inc/auth.php" );
echo "\r\n<html>\r\n<head>\r\n<title></title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n";
include_once( "inc/menu_button.js" );
echo "\r\n";
echo "<s";
echo "cript Language=\"JavaScript\">\r\nvar parent_window = parent.dialogArguments;\r\n\r\nfunction select_news(sort_id,sort_name)\r\n{\r\n TO_VAL=parent_window.document.getElementById('";
echo $_REQUEST['sortid'];
echo "').value;\r\n if(TO_VAL.indexOf(\",\"+sort_id+\",\")<0 && TO_VAL.indexOf(sort_id+\",\")!=0)\r\n {\r\n parent_window.document.getElementById('";
echo $_REQUEST['sortid'];
echo "').value=sort_id;\r\n parent_window.document.getElementById('";
echo $_REQUEST['sortname'];
echo "').value=sort_name;\r\n }\r\n}\r\n</script>\r\n<head>\r\n\r\n<body class=\"bodycolor\" topmargin=\"1\" leftmargin=\"0\">\r\n<table border=\"0\" cellspacing=\"1\" width=\"100%\" class=\"small\" cellpadding=\"5\" bordercolorlight=\"#000000\" bordercolordark=\"#FFFFFF\" onMouseover=\"borderize_on(event)\" onMouseout=\"borderize_off(event)\" onclick=\"borderize_on1(event)\">\r\n<thead class=\"TableLine2\" >\r\n <th colspan=\"2\"><b>选择目录</b></th><inp";
echo "ut id=\"flagEmpty\" name=\"flagEmpty\" value=\"\" type=\"hidden\">\r\n</thead>\r\n";
$connection = openconnection( );
$sql = "\r\n\t\t\t\t SELECT NEWS_TYPE_NAME,NEWS_TYPE_ID FROM news_types \r\n\t\t\t\t\t\r\n\t\t\t ";
$res = exequery( $connection, $sql );
$folderimg = "<img src='/images/littlegif/folderclose.gif'>";
while ( $row = mysql_fetch_array( $res ) )
{
$name = $row['NEWS_TYPE_NAME'];
$id = $row['NEWS_TYPE_ID'];
$text = $nbsp.$folderimg.$name;
showtr( $text, $id, $name );
}
$text = $nbsp.$folderimg."未归类新闻";
showtr( $text, "-1", "未归类新闻" );
echo "\r\n</table>\r\n</body>\r\n</html>\r\n";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -