statics.php

来自「通达OA2007SE源代码 非常好的」· PHP 代码 · 共 66 行

PHP
66
字号
<?
  include_once 'inc/auth.php';
  $query = (((''.'SELECT * from SCORE_ITEM where GROUP_ID=\'').$GROUP_ID).'\'');
  $cursor = exequery ($connection, $query);
  $VOTE_COUNT = 0;
  $TOTAL_SAM = 0;
  while ($ROW = mysql_fetch_array ($cursor))
  {
    $ITEM_NAME[$VOTE_COUNT] = $ROW['ITEM_NAME'];
    $TOTAL_SAM = ($TOTAL_SAM + $ROW['MAX']);
    ++$VOTE_COUNT;
  }
  echo '<html>
<head>
<title>分值统计</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
';
  echo '<s';
  echo 'cript Language="JavaScript">
function CheckForm()
{
   if(document.form1.STATICS.value=="")
   { alert("请输入要统计的分值段!!!");
     return (false);
   }
   return (true);
}
</script>
</head>
 <table border="0" width="450" cellpadding="2" cellspacing="1" align="center" bgcolor="#000000" class="small">
  <form action="result.php?GROUP_ID=';
  echo $GROUP_ID;
  echo '&FLOW_ID=';
  echo $FLOW_ID;
  echo '"  method="post" name="form1" onsubmit="return CheckForm();">
    <tr>
      <td nowrap class="TableData">请输入要统计的分值段:</td>
    </tr>
    <tr><td class="TableData">
        <textarea name="STATICS" cols="45" rows="5" class="BigInput"></textarea>
        </td>
    </tr>
    <tr>
    	<td nowrap class="TableData">该考核指标集的总分:';
  echo $TOTAL_SAM;
  echo '</td>
    </tr>
    <tr align="center" class="TableControl">
      <td colspan="2" nowrap>
        <input type="submit" value="确定" class="SmallButton">&nbsp;&nbsp;
        <input type="button"  value="关闭" class="SmallButton" onclick="window.close();">
      </td>
    </tr>
  </table>
</form>
<div align=left>
 <table border="0" width="450" cellpadding="2" cellspacing="0"  bgcolor="#000000" c';
  echo 'lass="small">
    <tr>
      <td nowrap class="TableData">说明:统计特定分数段的人数,例如输入(100,90,89,80,79,70,69,60,59)统计的分数段为(100-90,89-80,79-70,69-60,59-0)</td>
    </tr>
</div>
</body>
</html>';
?>

⌨️ 快捷键说明

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