edit.php

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

PHP
106
字号
<?
  include_once 'inc/auth.php';
  include_once 'inc/reg_func.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.FUNC_NAME.value=="")
   { alert("子菜单名称不能为空!");
     return (false);
   }
   if(document.form1.MENU_ID.value.length!=4 && document.form1.MENU_ID.value.length!=6)
   { alert("菜单项代码应为4位或6位数字!");
     return (false);
   }
}
</script>
</head>
';
  $query = ((''.'SELECT * from SYS_FUNCTION where FUNC_ID=').$FUNC_ID1);
  $cursor = exequery ($connection, $query);
  if ($ROW = mysql_fetch_array ($cursor))
  {
    $MENU_ID = $ROW['MENU_ID'];
    $FUNC_NAME = $ROW['FUNC_NAME'];
    $FUNC_CODE = $ROW['FUNC_CODE'];
  }
  echo '
<body class="bodycolor" topmargin="5" onload="document.form1.FUNC_NAME.focus();">
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
  <tr>
    <td class="Big"><img src="/images/edit.gif" WIDTH="22" HEIGHT="20" align="absmiddle">';
  echo '<s';
  echo 'pan class="big3"> 编辑子菜单项</span>
    </td>
  </tr>
</table>
<br>
<table border="0" cellspacing="1" width="450" class="small" bgcolor="#000000" cellpadding="3" align="center" >
  <form action="update.php"  method="post" name="form1" onsubmit="return CheckForm();">
   <tr>
    <td nowrap class="TableData" width="120">子菜单项ID:</td>
    <td nowrap class="TableData">
        <input type="text" n';
  echo 'ame="FUNC_ID1" class="BigStatic" size="20" maxlength="50" value="';
  echo $FUNC_ID1;
  echo '" readonly>
    </td>
   </tr>
   <tr>
    <td nowrap class="TableData" width="120">子菜单项代码:</td>
    <td nowrap class="TableData">
        <input type="text" name="MENU_ID" class="BigInput" size="20" maxlength="50" value="';
  echo $MENU_ID;
  echo '"><br>
        说明:此代码共分3段,每两位代表一级菜单,为4位或6位数字
    </td>
   </tr>
   <tr>
    <td nowrap class="TableData">子菜单名称:</td>
    <td nowrap class="TableData">
        <input type="text" name="FUNC_NAME" class="BigInput" size="20" maxlength="50" value="';
  echo $FUNC_NAME;
  echo '">&nbsp;
    </td>
   </tr>
   <tr>
    <td nowrap class="TableData">子菜单模块路径:</td>
    <td nowrap class="TableData">
        <input type="text" name="FUNC_CODE1" class="BigInput" size="40" value="';
  echo $FUNC_CODE;
  echo '">
   </tr>
   <tr>
    <td class="TableData" colspan=2>
        <b>子菜单模块路径定义方式,应根据此菜单项的类型决定</b>:<br><br>
        <b>类型一</b>:如果此菜单下仍存在下级菜单,则填写@英文名称,格式如:@mail,对应的图片是:OA安装目录/webroot/images/menu/@mail.gif<br>
        <br>
        <b>类型二</b>:如果此菜单是挂接OA系统中的模块,则填写程序路径,格式如:email,则实际对应的路径是:OA安装目录/web';
  echo 'root/general/email,对应的图片是:OA安装目录/webroot/images/menu/email.gif<br>
        <br>
        <b>类型三</b>:如果此菜单是挂接外部的B/S结构的系统,则填写该系统网址,格式如:http://';
  echo $TD_MYOA_WEB_SITE;
  echo ',注意:请一定要以http://开头<br>
        <br>
        <b>类型四</b>:如果此菜单是挂接外部的C/S结构或单机版系统,则填写可执行文件路径,格式如:file://c:/abc.exe,注意:请一定要以file://开头,后面的程序路径用斜杠或反斜杠均可
    </td>
   </tr>
   <tr>
    <td nowrap  class="TableControl" colspan="2" align="center">
        <input type="submit" value="确定" class="BigButton">&nbsp;&nbsp;
        <inpu';
  echo 't type="button" value="返回" class="BigButton" onclick="history.back();">
    </td>
  </form>
</table>
</body>
</html>';
?>

⌨️ 快捷键说明

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