index.php

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

PHP
135
字号
<?
  include_once 'inc/auth.php';
  include_once 'inc/utility_all.php';
  $ARRAY_FIELD1 = explode (',', $ARRAY_FIELD);
  $lgraphValues1 = explode (',', $graphValues1);
  $lgraphValues2 = explode (',', $graphValues2);
  $lgraphValues3 = explode (',', $graphValues3);
  echo '<html>
<head>
<title>销售统计结果</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body topmargin="0">
<div align="center">
<TABLE border="0" cellspacing="1" width="70%" class="small" bgcolor="#000000" cellpadding="3">
  <tr class="TableControl">
   <td nowrap align="center" colspan=4><input type="radio" name=\'FLAG\' id=\'FLAG1\' value="a"  onclick="return chk(th';
  echo 'is,\'graphValuesa\');"><label for="FLAG1">销售总额</label>&nbsp;&nbsp;<input type="radio" name=\'FLAG\' id=\'FLAG2\' value="b"  onclick="return chk(this,\'graphValuesb\');"><label for="FLAG2">产品销售额</label> &nbsp;&nbsp;<input type="radio" name=\'FLAG\' id=\'FLAG3\' value="c"  onclick="return chk(this,\'graphValuesc\');"><label for="FLAG3">服务销售额</label></td>
   </tr>
   <tr class="TableHeader">
      <td nowrap ';
  echo 'align="center">';
  echo $showname;
  echo '</td>
       <td nowrap align="center">销售总额</td>
      <td nowrap align="center">产品销售额</td>
      <td nowrap align="center">服务销售额</td>
   </tr>
';
  $ARRAY_COUNT = sizeof ($ARRAY_FIELD1);
  for ($I = 0; ($I < ($ARRAY_COUNT - 1)); ++$I)
  {
    if (((($I + 1) % 2) == 1))
    {
      $TableLine = 'TableLine1';
    }
    else
    {
      $TableLine = 'TableLine2';
    }
    echo '     <tr class="';
    echo $TableLine;
    echo '">
      <td nowrap align="center">';
    echo $ARRAY_FIELD1[$I];
    echo '</td>
      <td nowrap align="center">';
    echo $lgraphValues1[$I];
    echo '</td>
      <td nowrap align="center">';
    echo $lgraphValues2[$I];
    echo '</td>
      <td nowrap align="center">';
    echo $lgraphValues3[$I];
    echo '</td>
    </tr>
	<div align="center">
';
  }
  if (($type == '1'))
  {
    echo '   	<img id="graphValuesa" src="staticspaint.php?ARRAY_FIELD1=';
    echo $ARRAY_FIELD;
    echo '&graphValues1=';
    echo $graphValues1;
    echo '&unit=';
    echo $unit;
    echo '">
    <img id="graphValuesb" style="display:none" src="staticspaint.php?ARRAY_FIELD1=';
    echo $ARRAY_FIELD;
    echo '&graphValues1=';
    echo $graphValues2;
    echo '&unit=';
    echo $unit;
    echo '">
    <img id="graphValuesc" style="display:none" src="staticspaint.php?ARRAY_FIELD1=';
    echo $ARRAY_FIELD;
    echo '&graphValues1=';
    echo $graphValues3;
    echo '&unit=';
    echo $unit;
    echo '">
';
  }
  else
  {
    echo '    <img id="graphValuesa" src="cakeimg.php?ARRAY_FIELD1=';
    echo $ARRAY_FIELD;
    echo '&graphValues1=';
    echo $graphValues1;
    echo '">
    <img id="graphValuesb" style="display:none" src="cakeimg.php?ARRAY_FIELD1=';
    echo $ARRAY_FIELD;
    echo '&graphValues1=';
    echo $graphValues2;
    echo '">
    <img id="graphValuesc" style="display:none" src="cakeimg.php?ARRAY_FIELD1=';
    echo $ARRAY_FIELD;
    echo '&graphValues1=';
    echo $graphValues3;
    echo '">
';
  }
  echo '  </div>
</TABLE>
</div>
</body>
</html>
';
  echo '<s';
  echo 'cript Language="JavaScript">
function chk(input,strwher)
  {
      if(strwher=="graphValuesa")
      {document.all.graphValuesa.style.display=\'\';
  	   document.all.graphValuesb.style.display=\'none\';
  	   document.all.graphValuesc.style.display=\'none\';
  	   }
  	  if(strwher=="graphValuesb")
      {
       document.all.graphValuesa.style.display=\'none\';
  	   document.all.graphValuesb';
  echo '.style.display=\'\';
  	   document.all.graphValuesc.style.display=\'none\';
  	   }
  	    if(strwher=="graphValuesc")
      {
       document.all.graphValuesa.style.display=\'none\';
  	   document.all.graphValuesb.style.display=\'none\';
  	   document.all.graphValuesc.style.display=\'\';
	   }
	}
</script>';
?>

⌨️ 快捷键说明

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