index.php

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

PHP
124
字号
<?
  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 Language="JavaScript">
function CheckForm()
{
   if(document.form1.DISK_NAME.value=="")
   { alert("共享目录名称不能为空!");
     return (false);
   }
   if(document.form1.DISK_PATH.value=="")
   { alert("共享目录路径不能为空!");
     return (false);
   }
   if(document.form1.DISK_TYPE.value=="2" && document.form1.DEPT_ID.value=="0")
   { alert("请指定部门!");
     return';
  echo ' (false);
   }
   return (true);
}
</script>
</head>
<body class="bodycolor" topmargin="5" onload="document.form1.DISK_NAME.focus();">
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
  <tr>
    <td class="Big"><img src="/images/sys_config.gif" WIDTH="22" HEIGHT="20" align="absmiddle">';
  echo '<s';
  echo 'pan class="big3"> 新建共享目录</span>
    </td>
  </tr>
</table>
<br>
 <table border="0" width="500" cellpadding="2" cellspacing="1" align="center" bgcolor="#000000" class="small">
  <form action="submit.php"  method="post" name="form1" onsubmit="return CheckForm();">
    <tr>
      <td nowrap class="TableData"> 排序号:</td>
      <td class="TableData">
        <input type="text" name="DISK_NO" s';
  echo 'ize="4" class="BigInput">
      </td>
    </tr>
    <tr>
      <td nowrap class="TableData"> 共享目录名称:</td>
      <td class="TableData">
        <input type="text" name="DISK_NAME" size="30" class="BigInput">
      </td>
    </tr>
    <tr>
      <td nowrap class="TableData"> 共享目录路径:</td>
      <td class="TableData">
        <input type="text" name="DISK_PATH" size="30" class="BigInput"><b';
  echo 'r>OA服务器的文件路径,如 d:\\soft
      </td>
    </tr>
    <tr>
      <td nowrap class="TableData"> 共享目录开放范围:</td>
      <td class="TableData">
        ';
  echo '<s';
  echo 'elect name="DISK_TYPE" class="BigSelect">
         <option value="1">全体</option>
         <option value="2">指定部门</option>
         <option value="3">指定人员</option>
        </select>
      </td>
    </tr>
    <tr>
      <td nowrap class="TableData"> 选择部门(对指定部门开放):</td>
      <td class="TableData">
        ';
  echo '<s';
  echo 'elect name="DEPT_ID" class="BigSelect">
         <option value="0"></option>
';
  echo my_dept_tree (0, $DEPT_ID, 0);
  echo '        </select>
      </td>
    </tr>
    <tr>
      <td nowrap class="TableData"> 最大容量:</td>
      <td class="TableData">
        <input type="text" name="SPACE_LIMIT" size="10" class="BigInput" value="0"> MB (0为不限制)
      </td>
    </tr>
    <tr>
      <td nowrap class="TableData"> 默认排序:</td>
      <td class="TableData">
        ';
  echo '<s';
  echo 'elect name="ORDER_BY" class="BigSelect">
         <option value="nom">名称</option>
         <option value="taille">大小</option>
         <option value="type">类型</option>
         <option value="mod">最后修改时间</option>
        </select>
        ';
  echo '<s';
  echo 'elect name="ASC_DESC" class="BigSelect">
         <option value="0">升序</option>
         <option value="1">降序</option>
        </select>
      </td>
    </tr>
    <tr align="center" class="TableControl">
      <td colspan="2" nowrap>
        <input type="submit" value="确定" class="BigButton">&nbsp;&nbsp;
        <input type="button" value="返回" class="BigButton" onClick="location=\'../\'">
    ';
  echo '  </td>
    </tr>
  </table>
</form>
</body>
</html>';
?>

⌨️ 快捷键说明

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