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

📄 member_notice.php

📁 学校网站源码http://您的网址/admin/admin_login.asp 默认登录用户:admin 默认登录密码:admin
💻 PHP
字号:
<?php


include( "../config.inc.php" );
include( "../includes/SysGlobal.php" );
include( "language/".$aLan."_".$charset.".php" );
include( "../includes/version.php" );
include( "../includes/pro.php" );
include( "func/adm.inc.php" );
include( "func/common.inc.php" );
include( "func/member.inc.php" );
include( "func/db.inc.php" );
include( "func/nocatch.php" );
needauth( 57 );
echo "<html>\r\n<head >\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=";
echo $charset;
echo "\">\r\n<link id=\"style_sheet\" href=\"css/commonstyle.css\" type=\"text/css\" rel=\"stylesheet\">\r\n<title>";
echo $strAdminTitle;
echo "</title>\r\n\r\n ";
echo "<S";
echo "CRIPT>\r\nfunction cm(nn){\r\nqus=confirm(\"";
echo $strDeleteConfirm;
echo "\")\r\nif(qus!=0){\r\nwindow.location='member_notice.php?step=del&id='+nn;\r\n}\r\n}\r\n</SCRIPT>\r\n</head>\r\n\r\n<body  class=\"NormalPage\">\r\n<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" align=\"center\" background=\"images/mu8.gif\" height=\"30\" >\r\n  <tr> \r\n    <td width=\"150\" >&nbsp;&nbsp;<img src=\"images/bar.gif\" >&nbsp;&nbsp;";
echo $strMemberNCManage;
echo " \r\n    </td>\r\n    <td >&nbsp;</td>    <td width=\"100\" >&nbsp;</td>\r\n  </tr>\r\n  </table>\r\n<br>\r\n";
$step = $_REQUEST['step'];
$title = $_REQUEST['title'];
$xuhao = $_REQUEST['xuhao'];
$ifnew = $_REQUEST['ifnew'];
$ifred = $_REQUEST['ifred'];
$id = $_REQUEST['id'];
$page = $_REQUEST['page'];
$pid = $_REQUEST['pid'];
$key = $_REQUEST['key'];
if ( $step == "mod" )
{
	if ( $title == "" )
	{
		err( $strMemberNC1, "", "" );
	}
	if ( 200 < strlen( $title ) )
	{
		err( $strMemberNC2, "", "" );
	}
	$title = htmlspecialchars( $title );
	$msql->query( "update {$tbl_member_notice} set title='{$title}',xuhao='{$xuhao}',ifnew='{$ifnew}',ifred='{$ifred}' where id='{$id}'  " );
}
if ( $step == "del" )
{
	$msql->query( "delete from {$tbl_member_notice} where id='{$id}' " );
}
echo " \r\n<table width=625 border=0 cellspacing=0 cellpadding=0 align=center height=22>\r\n  <tr> \r\n    <td  align=center height=22 width=10 valign=top>&nbsp;</td>\r\n    <td  align=left height=22 width=3 class=title valign=top><img src=images/menubg10.gif width=3></td>\r\n    <td  align=center height=22 width=130 class=title><a href='member_notice.php' style=\"color:#ffffff\">";
echo $strMemberNCManage;
echo "</a></td>\r\n    <td  align=center height=22 width=1  class=title><img src=images/menubg11.gif width=3 height=22></td>\r\n    <td  align=left height=22 width=3 class=con valign=top><img src=images/menubg10.gif width=3></td>\r\n    <td  align=center height=22 width=130 class=con><a href='member_notice_add.php'  style=\"color:#333333\">";
echo $strMemberNCPub;
echo "</a></td>\r\n    <td  align=center height=22 width=1  class=con><img src=images/menubg11.gif width=3 height=22></td>\r\n    <td  align=center height=22>&nbsp;</td>\r\n  </tr>\r\n</table>\r\n<table width=\"625\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" height=\"22\">\r\n  <tr> \r\n    <td class=title align=\"left\" height=\"22\" valign=\"top\" width=\"3\"><img src=\"images/menubg16.gif\" width=\"3\" height=\"30\"></td>\r\n    <td";
echo " class=title align=\"center\" height=\"22\" colspan=\"2\">";
echo $strMemberNCManage;
echo "</td>\r\n    <td class=title align=\"right\" height=\"22\" width=\"3\" valign=\"top\"><img src=\"images/menubg17.gif\" width=\"3\" height=\"30\"></td>\r\n  </tr>\r\n</table>\r\n";
$scl = " id!='' ";
$totalnums = tblcount( $tbl_member_notice, "id", $scl );
$pages = new pages( );
$pages->setvar( array(
	"menuid" => $menuid
) );
$pages->set( 10, $totalnums );
$pagelimit = $pages->limit( );
echo " \r\n<table width=\"623\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" height=\"8\" background=\"images/mu1.jpg\">\r\n  <tr> \r\n    <td  align=\"center\" height=\"2\" colspan=\"2\"></td>\r\n  </tr>\r\n</table>\r\n<table width=\"625\" border=\"0\" cellspacing=\"1\" cellpadding=\"4\" align=\"center\">\r\n  <tr> \r\n    <td height=\"28\" align=\"center\"  class=\"title\"><font color=\"#FFFFFF\">";
echo $strXuhao;
echo "</font></td>\r\n    <td height=\"28\" class=\"title\" width=\"70\" align=\"center\">";
echo $strMemberNCTo;
echo "</td>\r\n    <td height=\"28\" class=\"title\" align=\"center\"><font color=\"#FFFFFF\">";
echo $strMemberNCTitle;
echo "</font></td>\r\n    <td height=\"28\" width=\"50\"  class=\"title\" align=\"center\">";
echo $strMemberNCBrowse;
echo "</td>\r\n    <td height=\"28\" width=\"50\"  class=\"title\" align=\"center\">";
echo $strMemberNCNew;
echo "</td>\r\n    <td height=\"28\" width=\"50\"  class=\"title\" align=\"center\">";
echo $strMemberNCRed;
echo "</td>\r\n    <td height=\"28\" width=\"32\"  class=\"title\" align=\"center\"><font color=\"#FFFFFF\">";
echo $strModify;
echo "</font></td>\r\n    <td height=\"28\" width=\"32\"  class=\"title\"> \r\n      <div align=\"center\"><font color=\"#FFFFFF\">";
echo $strEdit;
echo "</font></div>\r\n    </td>\r\n    <td height=\"28\" width=\"32\"  class=\"title\"> \r\n      <div align=\"center\"><font color=\"#FFFFFF\">";
echo $strDelete;
echo "</font></div>\r\n    </td>\r\n  </tr>\r\n  ";
$msql->query( "select * from {$tbl_member_notice} where {$scl} order by id desc  limit {$pagelimit}" );
while ( $msql->next_record( ) )
{
	$id = $msql->f( "id" );
	$membertypeid = $msql->f( "membertypeid" );
	$title = $msql->f( "title" );
	$xuhao = $msql->f( "xuhao" );
	$cl = $msql->f( "cl" );
	$ifnew = $msql->f( "ifnew" );
	$ifred = $msql->f( "ifred" );
	echo " \r\n  <form action=\"member_notice.php\" method=get>\r\n    <tr> \r\n      <td align=\"center\"  class=\"con\"> \r\n        <input type=\"text\" name=\"xuhao\" size=\"2\" value=\"";
	echo "{$xuhao}";
	echo "\" class=input>\r\n      </td>\r\n      <td class=\"con\" width=\"70\" align=\"center\">";
	echo membertypeid2membertype( $membertypeid );
	echo "</td>\r\n      <td class=\"con\" align=\"center\"><font color=\"#000000\"> \r\n        <input type=\"text\" name=\"title\" size=\"28\" value=\"";
	echo "{$title}";
	echo "\" class=input>\r\n        <input type=\"hidden\" name=\"id\" value=\"";
	echo "{$id}";
	echo "\">\r\n        <input type=\"hidden\" name=\"page\" value=\"";
	echo "{$page}";
	echo "\">\r\n        <input type=\"hidden\" name=\"pid\" value=\"";
	echo "{$pid}";
	echo "\">\r\n        <input type=\"hidden\" name=\"key\" value=\"";
	echo "{$key}";
	echo "\">\r\n        </font></td>\r\n      <td width=\"50\" align=\"center\" class=\"con\">";
	echo "{$cl}";
	echo "</td>\r\n      <td width=\"50\" align=\"center\" class=\"con\"> \r\n        ";
	echo "<s";
	echo "elect name=\"ifnew\">\r\n          <option value=\"1\" ";
	echo seld( $ifnew, "1" );
	echo ">";
	echo $strYes;
	echo "</option>\r\n          <option value=\"0\" ";
	echo seld( $ifnew, "0" );
	echo ">";
	echo $strNo;
	echo "</option>\r\n        </select>\r\n      </td>\r\n      <td width=\"50\" align=\"center\" class=\"con\"> \r\n        ";
	echo "<s";
	echo "elect name=\"ifred\">\r\n          <option value=\"1\" ";
	echo seld( $ifred, "1" );
	echo ">";
	echo $strYes;
	echo "</option>\r\n          <option value=\"0\" ";
	echo seld( $ifred, "0" );
	echo ">";
	echo $strNo;
	echo "</option>\r\n        </select>\r\n      </td>\r\n      <td width=\"32\" align=\"center\" class=\"con\"> <font color=\"#000000\"> \r\n        <input type=\"hidden\" name=\"step\" value=\"mod\">\r\n        </font> \r\n        <input type=\"image\" border=\"0\" name=\"imageField\" src=\"images/toolbar_modi_up.gif\" width=\"22\" height=\"20\">\r\n      </td>\r\n      <td width=\"32\" class=\"con\"> \r\n        <div align=\"center\"> <img src=\"images/toolbar_edit";
	echo "_up.gif\" style=\"cursor:hand\" width=\"22\" height=\"20\" onClick=\"window.location='member_notice_mod.php?id=";
	echo $id;
	echo "'\"> \r\n        </div>\r\n      </td>\r\n      <td width=\"32\" class=\"con\" 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  </form>\r\n  ";
}
echo " \r\n</table>\r\n<table width=\"623\" border=\"0\" cellspacing=\"0\" cellpadding=\"6\" bgcolor=\"#FFFFFF\" align=\"center\" background=\"images/mu1.jpg\" height=\"29\">\r\n  <tr> \r\n    <td class=pages width=\"300\">";
$pages->shownow( );
echo " </td>\r\n    <td class=pages width=\"325\" align=\"right\">";
$pages->output( $ShowPageList );
echo "</td>\r\n  </tr>\r\n</table>\r\n</body>\r\n</html>\r\n";
?>

⌨️ 快捷键说明

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