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

📄 user_list.php

📁 通达OA2007SE源代码 非常好的
💻 PHP
字号:
<?
  include_once 'inc/auth.php';
  include_once 'inc/utility_all.php';
  echo '
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
';
  echo '<s';
  echo 'tyle>
.menulines{}
</style>
</head>
<body class="bodycolor" topmargin="1" leftmargin="0">
';
  $query1 = ((''.'select * from SCORE_FLOW  where FLOW_ID=').$FLOW_ID);
  $cursor1 = exequery ($connection, $query1);
  if ($ROW = mysql_fetch_array ($cursor1))
  {
    $PARTICIPANT = $ROW['PARTICIPANT'];
  }
  $GROUP_ID = $ROW['GROUP_ID'];
  $FLOW_FLAG = $ROW['FLOW_FLAG'];
  $tempcount = 0;
  if (($FLOW_FLAG == 0))
  {
    $MY_ARRAY = explode (',', $PARTICIPANT);
  }
  else
  {
    $TEMP_ARRAY = explode (',', $PARTICIPANT);
    $ARRAY_COUNT = sizeof ($TEMP_ARRAY);
    if (($TEMP_ARRAY[($ARRAY_COUNT - 1)] == ''))
    {
      --$ARRAY_COUNT;
    }
    for ($I = 0; ($I < $ARRAY_COUNT); ++$I)
    {
      $query1 = (((''.'select DEPT_ID from USER where USER_ID=\'').$TEMP_ARRAY[$I]).'\'');
      $cursor1 = exequery ($connection, $query1);
      if ($ROW = mysql_fetch_array ($cursor1))
      {
        $DEPT_ID = $ROW['DEPT_ID'];
      }
      if ((is_dept_priv ($DEPT_ID) == 1))
      {
        $MY_ARRAY[$tempcount] = $TEMP_ARRAY[$I];
        $tempcount = ($tempcount + 1);
        continue;
      }
    }
  }
  $ARRAY_COUNT = sizeof ($MY_ARRAY);
  if (($MY_ARRAY[($ARRAY_COUNT - 1)] == ''))
  {
    --$ARRAY_COUNT;
  }
  for ($I = 0; ($I < $ARRAY_COUNT); ++$I)
  {
    $query1 = (((''.'SELECT `USER_ID` , `USER_NAME` , PRIV_NAME, DEPT_NAME FROM `USER` a LEFT OUTER JOIN DEPARTMENT b ON a.DEPT_ID = b.DEPT_ID LEFT OUTER JOIN USER_PRIV c ON a.USER_PRIV = c.USER_PRIV where a.USER_ID=\'').$MY_ARRAY[$I]).'\'');
    $cursor1 = exequery ($connection, $query1);
    if ($ROW = mysql_fetch_array ($cursor1))
    {
      $MY_ARRAY_NAME[$I] = $ROW['USER_NAME'];
    }
    $MY_ARRAY_PRIVE[$I] = $ROW['PRIV_NAME'];
    $MY_ARRAY_DEPT[$I] = $ROW['DEPT_NAME'];
    $query1 = (((((((''.'SELECT count(*) from SCORE_DATE where FLOW_ID=\'').$FLOW_ID).'\' and RANKMAN=\'').$LOGIN_USER_ID).'\' and PARTICIPANT=\'').$MY_ARRAY[$I]).'\' ');
    $cursor1 = exequery ($connection, $query1);
    if ($ROW = mysql_fetch_array ($cursor1))
    {
      $MY_ARRAY_FLAG[$I] = $ROW[0];
      continue;
    }
  }
  echo '
<table border="0" cellspacing="1" width="100%" class="small" cellpadding="3" bgcolor="#000000">
<tr class="TableHeader">
  <td colspan="2" align="center"><b>被考核人员列表</b></td>
</tr>
';
  $USER_COUNT = 0;
  $ARRAY_COUNT = sizeof ($MY_ARRAY);
  if (($MY_ARRAY[($ARRAY_COUNT - 1)] == ''))
  {
    --$ARRAY_COUNT;
  }
  for ($I = 0; ($I < $ARRAY_COUNT); ++$I)
  {
    if (($MY_ARRAY[$I] == $LOGIN_USER_ID))
    {
      continue;
    }
    else
    {
      $USER_COUNT = ($USER_COUNT + 1);
      echo '<tr class="TableContent">
  <td nowrap class="menulines" BgColor="#FFFFFF" style="cursor:hand" align="center" onclick="do_Score(\'';
      echo $MY_ARRAY[$I];
      echo '\',\'';
      echo $FLOW_ID;
      echo '\',\'';
      echo $GROUP_ID;
      echo '\',this,\'';
      echo $I;
      echo '\');" onmouseover="setPointer(this, \'#B3D1FF\',\'';
      echo $I;
      echo '\');" onmouseout="setPointer(this, \'#FFFFFF\',\'';
      echo $I;
      echo '\');" title="';
      echo $MY_ARRAY_DEPT[$I];
      echo '  ';
      echo $MY_ARRAY_PRIVE[$I];
      echo '">
  	 ';
      if ((0 < $MY_ARRAY_FLAG[$I]))
      {
        echo '     <img src="/images/score_flag.gif" align="absmiddle">
     ';
      }
      echo '     ';
      echo $MY_ARRAY_NAME[$I];
      echo '  </td>
</tr>
';
      continue;
    }
  }
  if (($USER_COUNT == 0))
  {
    echo '<tr class="TableControl">
  <td align="center">未定义用户</td>
</tr>
';
  }
  echo '
</table>
</body>
</html>
';
  echo '<s';
  echo 'cript>
var ControlId=-1;
var menu_id=-1;
function do_Score(USER_ID,FLOW_ID,GROUP_ID,theRow,DoId)
{
 menu_id=DoId;
 URL="score_data.php?GROUP_ID="+GROUP_ID+"&USER_ID="+USER_ID+"&FLOW_ID="+FLOW_ID;
 parent.frames["hrms"].location=URL;
 theRow.bgColor=\'#D9E8FF\';
 if (ControlId!=-1 & ControlId!=theRow)ControlId.bgColor=\'#FFFFFF\';
 ControlId=theRow;
}
function setPointer(theRow, thePointe';
  echo 'rColor,menu_id_over)
{
  if((menu_id!=menu_id_over))
     theRow.bgColor = thePointerColor;
}
</script>';
?>

⌨️ 快捷键说明

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