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

📄 index.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 'cript>
function CheckForm()
{
  msg=\'添加后只有OA管理员可以修改,确定添加吗?\';
  if(window.confirm(msg))
  {
    form1.submit();
  }
}
function cleardata()
{
  msg=\'确认要初始化固定资产参数配置吗?\';
  if(window.confirm(msg))
     location="clear.php";
}
</script>
</head>
<body class="bodycolor" topmargin="5">
<table border="0" width="100%" cellspacing="0" cellpadding="3" clas';
  echo 's="small">
  <tr>
    <td class="Big"><img src="/images/menu/asset.gif" WIDTH="24" HEIGHT="24">';
  echo '<s';
  echo 'pan class="big3"> 参数配置</span><br>
    </td>
  </tr>
</table>
';
  if (check_cfg ())
  {
    $query = 'select * from CP_ASSETCFG';
    $cursor = exequery ($connection, $query);
    if ($ROW = mysql_fetch_array ($cursor))
    {
      $DPCT_SORT = $ROW['DPCT_SORT'];
      $BAL_SORT = $ROW['BAL_SORT'];
    }
    if (($DPCT_SORT == 'M'))
    {
      $DPCT_SORT_DESC = '月';
    }
    else
    {
      if (($DPCT_SORT == 'S'))
      {
        $DPCT_SORT_DESC = '季';
      }
      else
      {
        if (($DPCT_SORT == 'Y'))
        {
          $DPCT_SORT_DESC = '年';
        }
      }
    }
    if (($BAL_SORT == '01'))
    {
      $BAL_SORT_DESC = '残值';
    }
    else
    {
      if (($BAL_SORT == '02'))
      {
        $BAL_SORT_DESC = '残值率';
      }
    }
    echo '<table border="0" cellspacing="1" width="300" class="small" bgcolor="#000000" cellpadding="3" align="center">
  <tr class="TableHeader">
      <td nowrap width="150" align="center">计提折旧方式</td>
      <td nowrap width="150" align="center">残值处理方式</td>
  </tr>
  <tr class="TableLine1">
      <td nowrap width="150" align="center">';
    echo $DPCT_SORT_DESC;
    echo '</td>
      <td nowrap width="150" align="center">';
    echo $BAL_SORT_DESC;
    echo '</td>
  </tr>
</table>
';
  }
  else
  {
    echo '<table border="0" cellspacing="1" width="300" class="small" bgcolor="#000000" cellpadding="3">
 <form action="add.php" method="post" name="form1">
  <tr>
      <td nowrap align="center" width="80" class="TableContent">计提折旧方式</td>
      <td nowrap align="left" class="TableData">
      ';
    echo '<s';
    echo 'elect name="DPCT_SORT" class="BigSelect">
        <option value="M" selected>月</option>
        <option value="S">季</option>
        <option value="Y">年</option>
      </select>
      </td>
  </tr>
  <tr>
      <td nowrap align="center" width="80" class="TableContent">残值处理方式</td>
      <td nowrap align="left" class="TableData">
      ';
    echo '<s';
    echo 'elect name="BAL_SORT" class="BigSelect">
        <option value="01" selected>残值</option>
        <option value="02">残值率</option>
      </select>
      </td>
  </tr>
  <tr class="TableControl">
      <td nowrap colspan="2" align="center" >
      <input type="button" value="添加" class="BigButton" onclick="CheckForm();">
      </td>
  </tr>
 </form>
</table>
';
  }
  echo '<br>
<table width="95%" border="0" cellspacing="0" cellpadding="0" height="3">
 <tr>
   <td background="/images/dian1.gif" width="100%"></td>
 </tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
  <tr>
    <td class="Big"><img src="/images/menu/asset.gif" WIDTH="24" HEIGHT="24">';
  echo '<s';
  echo 'pan class="big3"> 增减处理类型</span>
    </td>
  </tr>
</table>
<table border="0" cellspacing="1" width="460" class="small" bgcolor="#000000" cellpadding="3" align="center">
  <tr class="TableHeader">
      <td nowrap width="80" align="center">类别</td>
      <td nowrap width="80" align="center">名称</td>
      <td width="300" align="center">描述</td>
  </tr>
';
  $query = 'select * from CP_PRCS_PROP order by PRCS_CLASS';
  $cursor = exequery ($connection, $query);
  $ROW_COUNT = 0;
  while ($ROW = mysql_fetch_array ($cursor))
  {
    ++$ROW_COUNT;
    $PRCS_CLASS = $ROW['PRCS_CLASS'];
    $PRCS_DESC = $ROW['PRCS_DESC'];
    $PRCS_LONG_DESC = $ROW['PRCS_LONG_DESC'];
    if ((substr ($PRCS_CLASS, 0, 1) == 'A'))
    {
      $PRCS_CLASS_DESC = '增加';
    }
    else
    {
      if ((substr ($PRCS_CLASS, 0, 1) == 'D'))
      {
        $PRCS_CLASS_DESC = '减少';
      }
    }
    if (($ROW_COUNT % 2))
    {
      $TableLine = 'TableLine1';
    }
    else
    {
      $TableLine = 'TableLine2';
    }
    echo '  <tr class="';
    echo $TableLine;
    echo '">
      <td nowrap width="80" align="center">';
    echo $PRCS_CLASS_DESC;
    echo '</td>
      <td nowrap width="80" align="center">';
    echo $PRCS_DESC;
    echo '</td>
      <td width="300" align="left">';
    echo $PRCS_LONG_DESC;
    echo '</td>
  </tr>
';
  }
  echo '</table>
';
  if (($LOGIN_USER_PRIV == 1))
  {
    echo '<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
  <tr>
    <td class="Big"><img src="/images/menu/asset.gif" WIDTH="24" HEIGHT="24">';
    echo '<s';
    echo 'pan class="big3">参数配置初始化</span>
    </td>
  </tr>
</table>
<div align="center">
  <input type="button" value="初始化参数配置" class="BigButton" onClick="cleardata();" title="初始化固定资产参数配置">
</div>
';
  }
  echo '</body>
</html>
';
?>

⌨️ 快捷键说明

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