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

📄 index.php

📁 通达网络办公 - Office Anywhere 2008 增强版100%源码(3.4.081216) 内含 通达OA2008增強版接近完美破解补丁20081216集 及 最新通达OA2008ADV(
💻 PHP
字号:
<?php

include_once( "inc/auth.php" );
include_once( "inc/utility_all.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<script>\r\nfunction CheckForm()\r\n{\r\n   if(document.form1.GROUP_NAME.value==\"\")\r\n   { alert(\"考核指标集名称不能空!!!\");\r\n     return (false);\r\n   }\r\n   return (true);\r\n}\r\n\r\n</script>\r\n</head>\r\n<body class=\"bodycolor\" topmargin=\"5\">\r\n\r\n<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\" class=\"small\">\r\n  <tr>\r\n    <td class=\"Big\"><img src=\"/images/notify_new.gif\" WIDTH=\"22\" HEIGHT=\"22\" align=\"absmiddle\"><span class=\"big3\"> 新建考核指标集</span><br>\r\n    </td>\r\n  </tr>\r\n</table>\r\n<br>\r\n\r\n<div align=\"center\">\r\n\r\n <table width=\"450\" align=\"center\" class=\"TableBlock\">\r\n  <form action=\"add.php?CUR_PAGE=";
echo $CUR_PAGE;
echo "\"  method=\"post\" name=\"form1\" onsubmit=\"return CheckForm();\">\r\n    <tr>\r\n      <td nowrap class=\"TableData\">考核指标集名称:</td>\r\n      <td class=\"TableData\">\r\n         <INPUT type=\"text\"name=\"GROUP_NAME\" class=BigInput size=\"20\">\r\n      </td>\r\n    </tr>\r\n    <tr>\r\n      <td nowrap class=\"TableData\">考核指标集描述:</td>\r\n      <td class=\"TableData\">\r\n        <textarea name=\"GROUP_DESC\" cols=\"45\" rows=\"3\" class=\"BigInput\"></textarea>\r\n      </td>\r\n    </tr>\r\n    <tr>\r\n      <td nowrap class=\"TableData\">设定考核依据模块:</td>\r\n      <td class=\"TableData\">\r\n       <input type=\"checkbox\" name=\"DIARY\" id=\"DIARY_ID\"><label for=\"DIARY_ID\">个人工作日志</label>&nbsp;&nbsp;<input type=\"checkbox\" name=\"CALENDAR\" id=\"CALENDAR_ID\"><label for=\"CALENDAR_ID\">个人日程安排</label>    \r\n      </td>\r\n    </tr>\r\n    <tfoot align=\"center\" class=\"TableFooter\">\r\n      <td colspan=\"2\" nowrap>\r\n        <input type=\"submit\" value=\"新建\" class=\"BigButton\">&nbsp;&nbsp;\r\n      </td>\r\n    </tfoot>\r\n  </table>\r\n</form>\r\n</div>\r\n\r\n\r\n<table width=\"95%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"3\">\r\n <tr>\r\n    <td background=\"/images/dian1.gif\" width=\"100%\"></td>\r\n </tr>\r\n</table>\r\n\r\n";
$query = "SELECT count(*) from SCORE_GROUP";
$cursor = exequery( $connection, $query );
$VOTE_COUNT = 0;
if ( $ROW = mysql_fetch_array( $cursor ) )
{
	$VOTE_COUNT = $ROW[0];
}
if ( $VOTE_COUNT == 0 )
{
	echo "<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\" class=\"small\">\r\n  <tr>\r\n    <td class=\"Big\"><img src=\"/images/menu/score.gif\" WIDTH=\"20\" HEIGHT=\"20\" align=\"absmiddle\"><span class=\"big3\"> 考核指标集管理</span><br>\r\n    </td>\r\n  </tr>\r\n</table>\r\n\r\n";
	message( "", "无考核指标集" );
	exit( );
}
$PER_PAGE = 5;
$PAGES = 10;
$PAGE_COUNT = ceil( $VOTE_COUNT / $PER_PAGE );
if ( $CUR_PAGE <= 0 || $CUR_PAGE == "" )
{
	$CUR_PAGE = 1;
}
if ( $PAGE_COUNT < $CUR_PAGE )
{
	$CUR_PAGE = $PAGE_COUNT;
}
echo "\r\n<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\" class=\"small\">\r\n  <tr>\r\n    <td class=\"Big\"><img src=\"/images/menu/score.gif\"  WIDTH=\"20\" HEIGHT=\"20\" align=\"absmiddle\"><span class=\"big3\"> 考核指标集管理</span><br>\r\n    </td>\r\n    <td align=\"right\" valign=\"bottom\" class=\"small1\">共<span class=\"big4\">&nbsp;";
echo $VOTE_COUNT;
echo "</span>&nbsp;条\r\n    </td>\r\n    <td align=\"right\" valign=\"bottom\" class=\"small1\">\r\n       <a class=\"A1\" href=\"index.php?CUR_PAGE=1\">首页</a>&nbsp;\r\n       <a class=\"A1\" href=\"index.php?CUR_PAGE=";
echo $PAGE_COUNT;
echo "\">末页</a>&nbsp;&nbsp;\r\n";
if ( $CUR_PAGE % $PAGES == 0 )
{
	$J = $PAGES;
}
else
{
	$J = $CUR_PAGE % $PAGES;
}
if ( $PAGES < $CUR_PAGE )
{
	echo "       <a class=\"A1\" href=\"index.php?CUR_PAGE=";
	echo $CUR_PAGE - $J - $PAGES + 1;
	echo "\">上";
	echo $PAGES;
	echo "页</a>&nbsp;&nbsp;\r\n";
}
$I = $CUR_PAGE - $J + 1;
for ( ;	$I <= $CUR_PAGE - $J + $PAGES;	++$I	)
{
	if ( $PAGE_COUNT < $I )
	{
		break;
	}
	if ( $I == $CUR_PAGE )
	{
		echo "       [";
		echo $I;
		echo "]&nbsp;\r\n";
	}
	else
	{
		echo "       [<a class=\"A1\" href=\"index.php?CUR_PAGE=";
		echo $I;
		echo "\">";
		echo $I;
		echo "</a>]&nbsp;\r\n";
	}
}
echo "      &nbsp;\r\n";
if ( $I - 1 < $PAGE_COUNT )
{
	echo "       <a class=\"A1\" href=\"index.php?CUR_PAGE=";
	echo $I;
	echo "\">下";
	echo $PAGES;
	echo "页</a>&nbsp;&nbsp;\r\n";
}
if ( 1 <= $CUR_PAGE - 1 )
{
	echo "       <a class=\"A1\" href=\"index.php?CUR_PAGE=";
	echo $CUR_PAGE - 1;
	echo "\">上一页</a>&nbsp;\r\n";
}
else
{
	echo "       上一页&nbsp;\r\n";
}
if ( $CUR_PAGE + 1 <= $PAGE_COUNT )
{
	echo "       <a class=\"A1\" href=\"index.php?CUR_PAGE=";
	echo $CUR_PAGE + 1;
	echo "\">下一页</a>&nbsp;\r\n";
}
else
{
	echo "       下一页&nbsp;\r\n";
}
echo "       &nbsp;\r\n    </td>\r\n    </tr>\r\n</table>\r\n\r\n<div align=\"center\">\r\n<table width=\"95%\" class=\"TableList\">\r\n  <tr class=\"TableHeader\">\r\n  \t<td nowrap align=\"center\">考核指标集名称</td>\r\n  \t<td nowrap align=\"center\">考核指标集描述</td>\r\n    <td nowrap align=\"center\">操作</td>\r\n  </tr>\r\n\r\n";
$query = "SELECT * from SCORE_GROUP order by GROUP_ID DESC";
$cursor = exequery( $connection, $query );
$VOTE_COUNT = 0;
while ( $ROW = mysql_fetch_array( $cursor ) )
{
	++$VOTE_COUNT;
	if ( !( $VOTE_COUNT < $CUR_PAGE * $PER_PAGE - $PER_PAGE + 1 ) )
	{
		if ( $CUR_PAGE * $PER_PAGE < $VOTE_COUNT )
		{
			break;
		}
		$GROUP_ID = $ROW['GROUP_ID'];
		$GROUP_NAME = $ROW['GROUP_NAME'];
		$GROUP_DESC = $ROW['GROUP_DESC'];
		if ( $VOTE_COUNT % 2 == 1 )
		{
			$TableLine = "TableLine1";
		}
		else
		{
			$TableLine = "TableLine2";
		}
		echo "     <tr class=\"";
		echo $TableLine;
		echo "\">\r\n\r\n\r\n      <td align=\"center\">";
		echo $GROUP_NAME;
		echo "</td>\r\n      <td align=\"center\">";
		echo $GROUP_DESC;
		echo "</td>\r\n      <td nowrap align=\"center\">\r\n       <a href=\"detail?GROUP_ID=";
		echo $GROUP_ID;
		echo "&CUR_PAGE=";
		echo $CUR_PAGE;
		echo "\">指标集明细</a>\r\n      <a href=\"modify.php?GROUP_ID=";
		echo $GROUP_ID;
		echo "&CUR_PAGE=";
		echo $CUR_PAGE;
		echo "\"> 修改</a>\r\n      <a href=\"javascript:delete_vote('";
		echo $GROUP_ID;
		echo "','";
		echo $CUR_PAGE;
		echo "');\"> 删除</a>\r\n      </td>\r\n    </tr>\r\n";
	}
}
echo "\r\n\r\n</table>\r\n</div>\r\n</body>\r\n</html>\r\n<script>\r\n\r\nfunction delete_vote(GROUP_ID,CUR_PAGE)\r\n{\r\n msg='确认要删除该指标集?';\r\n if(window.confirm(msg))\r\n {\r\n  URL=\"delete.php?GROUP_ID=\" + GROUP_ID + \"&CUR_PAGE=\" + CUR_PAGE;\r\n  window.location=URL;\r\n }\r\n }\r\n\r\n\r\nfunction delete_all()\r\n{\r\n msg='确认要删除所有指标集?';\r\n if(window.confirm(msg))\r\n {\r\n  URL=\"delete_all.php\";\r\n  window.location=URL;\r\n }\r\n}\r\n\r\n</script>";
?>

⌨️ 快捷键说明

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