⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 news_con.php

📁 学校网站源码http://您的网址/admin/admin_login.asp 默认登录用户:admin 默认登录密码:admin
💻 PHP
📖 第 1 页 / 共 2 页
字号:
	"showtj" => $showtj,
	"showfb" => $showfb,
	"key" => $key
) );
$pages->set( $shownum, $totalnums );
$pagelimit = $pages->limit( );
if ( $pid == "0" )
{
	$dis = " disabled";
}
else
{
	$tsql->query( "select catid from {$tbl_news_cat} where pid='{$pid}'" );
	if ( $tsql->next_record( ) )
	{
		$dis = " disabled";
	}
	else
	{
		$dis = " ";
	}
}
$foldname = menufold( $menuid );
echo " \r\n<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\" bgcolor=\"#FFFFFF\" align=\"center\" height=\"30\">\r\n  <tr> \r\n    <form method=\"get\" action=\"news_con.php\" target=\"con\" >\r\n                  \r\n      <td class=title height=\"30\"> \r\n        <input type=\"text\" name=\"key\" size=\"23\" class=input value=\"";
echo $key;
echo "\">\r\n        ";
echo "<s";
echo "elect name=\"showtj\">\r\n          <option value=\"all\" >";
echo $strNewsSelTj;
echo "</option>\r\n          <option value=\"1\"  ";
echo seld( $showtj, "1" );
echo ">";
echo $strNewsSelTjYes;
echo "</option>\r\n          <option value=\"0\" ";
echo seld( $showtj, "0" );
echo ">";
echo $strNewsSelTjNo;
echo "</option>\r\n        </select>\r\n";
echo "<s";
echo "elect name=\"showfb\">\r\n          <option value=\"all\" >";
echo $strNewsSelFb;
echo "</option>\r\n          <option value=\"1\"  ";
echo seld( $showfb, "1" );
echo ">";
echo $strNewsSelFbYes;
echo "</option>\r\n          <option value=\"0\" ";
echo seld( $showfb, "0" );
echo ">";
echo $strNewsSelFbNo;
echo "</option>\r\n        </select>\r\n";
echo "<s";
echo "elect name=\"shownum\">\r\n\r\n          <option value=\"10\"  ";
echo seld( $shownum, "10" );
echo ">";
echo $strNewsSelNum10;
echo "</option>\r\n          <option value=\"20\" ";
echo seld( $shownum, "20" );
echo ">";
echo $strNewsSelNum20;
echo "</option>\r\n          <option value=\"30\" ";
echo seld( $shownum, "30" );
echo ">";
echo $strNewsSelNum30;
echo "</option>\r\n          <option value=\"50\" ";
echo seld( $shownum, "50" );
echo ">";
echo $strNewsSelNum50;
echo "</option>\r\n        </select>\r\n        <font color=\"#000000\">\r\n        <input type=\"hidden\" name=\"menuid\" value=\"";
echo $menuid;
echo "\">\r\n        </font> \r\n        <input type=\"submit\" name=\"Submit\" value=\"";
echo $strSearchTitle;
echo "\" class=button>\r\n                    \r\n      </td>\r\n    </form>\r\n             \r\n    <td class=title colspan=\"2\" align=\"right\"> \r\n      <input type=\"text\" name=\"sssss\" size=\"48\" class=titleinput value=\"&nbsp;&nbsp;";
echo catid2cat( $pid, $tbl_news_cat );
echo "\" readonly>\r\n      <input type=\"button\" name=\"Button\" value=\"";
echo $strNewsAddButton;
echo "\" class=button onClick=\"self.location='news_conadd.php?menuid=";
echo $menuid;
echo "&pid=";
echo $pid;
echo "'\" ";
echo $dis;
echo ">\r\n    </td>\r\n  </tr>\r\n</table>\r\n<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" background=\"images/mu1.jpg\" height=\"5\">\r\n  <tr> \r\n    <td></td>\r\n  </tr>\r\n</table>\r\n<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"2\" align=\"center\">\r\n  <tr class=list> \r\n    <td width=\"30\" align=\"center\"  class=\"title\"  style=\"cursor:hand\" onClick=\"ord('id','";
echo $sc;
echo "')\">";
echo $strSel;
echo "</td>\r\n    <td width=\"36\" align=\"center\"  class=\"title\"  style=\"cursor:hand\" onClick=\"ord('id','";
echo $sc;
echo "')\"><font color=\"#FFFFFF\">";
echo $strNewsList2;
ordsc( $ord, "id", $sc );
echo "</font></td>\r\n    <td  class=\"title\" align=\"center\" width=\"30\">";
echo $strNewsList3;
echo " \r\n    </td>\r\n    <td height=\"28\" class=\"title\" style=\"cursor:hand\" onClick=\"ord('title','";
echo $sc;
echo "')\"><font color=\"#FFFFFF\">";
echo $strNewsList4;
ordsc( $ord, "title", $sc );
echo "</font></td>\r\n    <td height=\"28\" width=\"70\"  class=\"title\" align=\"center\"  >";
echo $strNewsFBR;
echo "</td>\r\n    <td height=\"28\" width=\"38\"  class=\"title\" align=\"center\"  style=\"cursor:hand\" onClick=\"ord('cl','";
echo $sc;
echo "')\">";
echo $strNewsList5;
echo "<font color=\"#FFFFFF\">";
ordsc( $ord, "cl", $sc );
echo "</font></td>\r\n    <td height=\"28\" width=\"38\"  class=\"title\" align=\"center\"><font color=\"#FFFFFF\">";
echo $strNewsList14;
echo "</font></td>\r\n    <td height=\"28\" width=\"38\"  class=\"title\" align=\"center\">";
echo $strNewsList6;
echo " \r\n    </td>\r\n    <td height=\"28\" width=\"38\"  class=\"title\" align=\"center\">";
echo $strNewsList7;
echo "</td>\r\n    <td height=\"28\" width=\"38\"  class=\"title\" align=\"center\">";
echo $strNewsList8;
echo "</td>\r\n    <td width=\"38\" align=\"center\"  class=\"title\"  >";
echo $strSecure;
echo "</td>\r\n    <td width=\"38\" align=\"center\"  class=\"title\">";
echo $strLook;
echo "</td>\r\n    <td height=\"28\" width=\"38\"  class=\"title\"> \r\n      <div align=\"center\"><font color=\"#FFFFFF\">";
echo $strNewsList9;
echo "</font></div>\r\n    </td>\r\n    <td height=\"28\" width=\"38\"  class=\"title\"> \r\n      <div align=\"center\"><font color=\"#FFFFFF\">";
echo $strNewsList11;
echo "</font></div>\r\n    </td>\r\n  </tr>\r\n  <form name=\"delfm\" method=\"post\" action=\"news_con.php\">\r\n    ";
$msql->query( "select * from {$tbl_news_con} where {$scl}  order by {$ord} {$sc}  limit {$pagelimit}" );
while ( $msql->next_record( ) )
{
	$id = $msql->f( "id" );
	$catid = $msql->f( "catid" );
	$memberid = $msql->f( "memberid" );
	$title = $msql->f( "title" );
	$xuhao = $msql->f( "xuhao" );
	$cl = $msql->f( "cl" );
	$tj = $msql->f( "tj" );
	$ifbold = $msql->f( "ifbold" );
	$ifred = $msql->f( "ifred" );
	$iffb = $msql->f( "iffb" );
	$author = $msql->f( "author" );
	$src = $msql->f( "src" );
	$type = $msql->f( "type" );
	$secure = $msql->f( "secure" );
	if ( $ifred == "0" )
	{
		$tcolor = "#000000";
	}
	else
	{
		$tcolor = $ifred;
	}
	if ( $memberid == 0 )
	{
		$fbname = "<font color=#666666>".$strNewsBZ."</font>";
		$linkstr = "";
	}
	else
	{
		$fsql->query( "select user,membertypeid from {$tbl_member} where memberid='{$memberid}'" );
		if ( $fsql->next_record( ) )
		{
			$user = $fsql->f( "user" );
			$membertypeid = $fsql->f( "membertypeid" );
		}
		$fbname = "<font color=#003366>".$user."</font>";
		$linkstr = "style='cursor:hand' onClick=\"self.location='member_modify.php?memberid={$memberid}&membertypeid={$membertypeid}&from=news_con.php'\"";
	}
	$browseurl = "../".$foldname."/html/?".$id.".html";
	echo " \r\n    <tr class=list> \r\n      <td width=\"30\" align=\"center\" height=\"26\"> \r\n        <input type=\"checkbox\" name=\"dall[]\" value=\"";
	echo $id;
	echo "\">\r\n      </td>\r\n      <td width=\"36\" align=\"center\" height=\"26\"> ";
	echo "{$id}";
	echo " </td>\r\n      <td align=\"center\" width=\"30\">";
	if ( $src == "" )
	{
		echo "<img src=images/noimage.gif >";
	}
	else
	{
		echo "<img src=images/image.gif onClick=\"StDv".$id.".style.visibility='visible'\">";
	}
	echo " \r\n        <div id=\"StDv";
	echo $id;
	echo "\" style=\"position:absolute; width:100px; height:100px; z-index:1; visibility: hidden\"> \r\n          <table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\" height=\"100%\" bgcolor=\"#666666\" style='border:5px #ffffff solid;filter:progid:DXImageTransform.Microsoft.Shadow(Color=#333333,Direction=120,strength=3);'>\r\n            <tr align=\"right\" bgcolor=\"#CCCCCC\"> \r\n              <td  height=\"10\" val";
	echo "ign=\"top\"><img src=\"images/closewindow.gif\" width=\"12\" height=\"12\"  onClick=\"StDv";
	echo $id;
	echo ".style.visibility='hidden'\"></td>\r\n            </tr>\r\n            <tr bgcolor=\"#FFFFFF\" align=\"center\"> \r\n              <td  onClick=\"StDv";
	echo $id;
	echo ".style.visibility='hidden'\">";
	if ( $src == "" )
	{
		echo "";
	}
	else
	{
		$showsrc = "../".$src;
		echo showtypeimage( $showsrc, $type, "", "", 0 );
	}
	echo " </td>\r\n            </tr>\r\n          </table>\r\n        </div>\r\n      </td>\r\n      <td><font color=\"";
	echo $tcolor;
	echo "\"> ";
	echo "{$title}";
	echo " </font></td>\r\n      <td width=\"70\" align=\"center\" ";
	echo $linkstr;
	echo ">";
	echo $fbname;
	echo "</td>\r\n      <td width=\"38\" align=\"center\">";
	echo $cl;
	echo "</td>\r\n      <td width=\"38\" align=\"center\"> ";
	showyn( $iffb );
	echo "</td>\r\n      <td width=\"38\" align=\"center\"> ";
	showyn( $tj );
	echo " </td>\r\n      <td width=\"38\" align=\"center\"> ";
	showyn( $ifbold );
	echo " </td>\r\n      <td width=\"38\" align=\"center\"> ";
	showyn( $ifred );
	echo " </td>\r\n      <td width=\"38\" align=\"center\"> ";
	echo $secure;
	echo "</td>\r\n      <td width=\"38\" align=\"center\"><a href=\"";
	echo $browseurl;
	echo "\" target=\"_blank\"><img src=\"images/toolbar_look_up.gif\" width=\"22\" height=\"20\" border=\"0\"></a></td>\r\n      <td width=\"38\"> \r\n        <div align=\"center\"> <img src=\"images/toolbar_edit_up.gif\" style=\"cursor:hand\" width=\"22\" height=\"20\" onClick=\"window.location='news_conmod.php?id=";
	echo $id;
	echo "&oldmenuid=";
	echo $menuid;
	echo "&pid=";
	echo $pid;
	echo "&page=";
	echo $page;
	echo "'\"> \r\n        </div>\r\n      </td>\r\n      <td width=\"38\" align=\"center\"> <img src=\"images/toolbar_delete_up.gif\"  style=\"cursor:hand\" width=\"22\" height=\"20\" onClick=\"cm('";
	echo "{$id}";
	echo "')\"> \r\n      </td>\r\n    </tr>\r\n    ";
}
echo " \r\n    <tr> \r\n      <td height=\"30\" colspan=\"14\" class=title style=\"padding-left:6px\"> \r\n        <input type=\"checkbox\" name=\"SELALL\" value=\"1\" onClick=\"SelAll(this.form)\">\r\n        ";
echo $strSelAll;
echo "&nbsp; \r\n        <input type=\"radio\" name=\"step\" value=\"delall\">\r\n        ";
echo $strDelete;
echo " \r\n        <input type=\"radio\" name=\"step\" value=\"fball\" checked>\r\n        ";
echo $strNewsFb;
echo " \r\n        <input type=\"radio\" name=\"step\" value=\"notfball\">\r\n        ";
echo $strNewsNotFb;
echo " \r\n        <input type=\"radio\" name=\"step\" value=\"tjall\">\r\n        ";
echo $strNewsTj;
echo " \r\n        <input type=\"radio\" name=\"step\" value=\"nottjall\">\r\n        ";
echo $strNewsNotTj;
echo " \r\n        <input type=\"radio\" name=\"step\" value=\"boldall\">\r\n        ";
echo $strNewsBold;
echo " \r\n        <input type=\"radio\" name=\"step\" value=\"notboldall\">\r\n        ";
echo $strNewsNotBold;
echo " \r\n        <input type=\"radio\" name=\"step\" value=\"redall\">\r\n        ";
echo $strHtmlFontColor;
echo " \r\n<img src=\"edithtml/images/btColor.gif\"  name=\"color\" width=\"18\" height=\"17\" id=\"color\" onClick=\"callColorDlg();\"><input name=\"bg\" type=\"text\" size=\"6\" onChange=\"changecolor('color');\" style=\"height:22px\">\r\n        <input type=\"radio\" name=\"step\" value=\"notredall\">\r\n        ";
echo $strCancel.$strHtmlFontColor;
echo " &nbsp;&nbsp;<a style=\"cursor:hand;color:#ffffff;font-weight:bold\" onClick=\"delfm.submit()\">[ \r\n        ";
echo $strSubmit;
echo " ]</a> \r\n        <input type=\"hidden\" name=\"page\" size=\"3\" value=\"";
echo $page;
echo "\">\r\n        <input type=\"hidden\" name=\"ord\" size=\"3\" value=\"";
echo $ord;
echo "\">\r\n        <input type=\"hidden\" name=\"sc\" size=\"3\" value=\"";
echo $sc;
echo "\">\r\n        <input type=\"hidden\" name=\"key\" size=\"3\" value=\"";
echo $key;
echo "\">\r\n        <font color=\"#000000\"> \r\n        <input type=\"hidden\" name=\"showtj\" value=\"";
echo $showtj;
echo "\">\r\n        <input type=\"hidden\" name=\"showfb\" value=\"";
echo $showfb;
echo "\">\r\n        <input type=\"hidden\" name=\"pid\" value=\"";
echo "{$pid}";
echo "\">\r\n        <input type=\"hidden\" name=\"shownum\" value=\"";
echo $shownum;
echo "\">\r\n        <input type=\"hidden\" name=\"menuid\" value=\"";
echo $menuid;
echo "\">\r\n        </font> </td>\r\n    </tr>\r\n  </form>\r\n</table>\r\n<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"6\" bgcolor=\"#FFFFFF\" align=\"center\" background=\"images/mu1.jpg\" height=\"29\">\r\n  <tr> \r\n    <td class=pages>";
$pages->shownow( );
echo " </td>\r\n    <td class=pages width=\"300\" align=\"right\">";
$pages->output( $ShowPageList );
echo "</td>\r\n  </tr>\r\n</table><OBJECT id=dlgHelper CLASSID=\"clsid:3050f819-98b5-11cf-bb82-00aa00bdce0b\" width=\"0px\" height=\"0px\">\r\n  </OBJECT>\r\n</body>\r\n</html>\r\n";
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -