new_room.php

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

PHP
111
字号
<?
  include_once 'inc/auth.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.MR_NAME.value=="")
 { alert("请指定会议室名称!");
   return (false);
 }
 form1.submit();
}
</script>
</head>
<body class="bodycolor" topmargin="5">
';
  if (($MR_ID != ''))
  {
    $query = (((''.'SELECT * from MEETING_ROOM where MR_ID=\'').$MR_ID).'\'');
    $cursor = exequery ($connection, $query);
    if ($ROW = mysql_fetch_array ($cursor))
    {
      $MR_NAME = $ROW['MR_NAME'];
      $MR_CAPACITY = $ROW['MR_CAPACITY'];
      $MR_DEVICE = $ROW['MR_DEVICE'];
      $MR_DESC = $ROW['MR_DESC'];
      $MR_PLACE = $ROW['MR_PLACE'];
    }
  }
  echo '<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
<tr>
  <td class="Big"><img src="/images/notify_new.gif" align="absmiddle">';
  echo '<s';
  echo 'pan class="big3"> 新建会议室</span>
  </td>
</tr>
</table><br>
<table align="center" border="0" width="460" cellpadding="2" cellspacing="1" align="center" bgcolor="#000000" class="small">
<form enctype="multipart/form-data" action="add.php" method="post" name="form1">
<tr>
 <td nowrap class="TableContent" width="80">会议室名称:</td>
 <td class="TableData" colspan="3">
  <input type="text" name="MR_N';
  echo 'AME" size="40" maxlength="100" class="BigInput" value="';
  echo $MR_NAME;
  echo '">
 </td>
</tr>
<tr>
 <td nowrap class="TableContent" width="80">可容纳人数:</td>
 <td class="TableData" colspan="3">
  <input type="text" name="MR_CAPACITY" size="5" maxlength="100" class="BigInput" value="';
  echo $MR_CAPACITY;
  echo '">
 </td>
</tr>
<tr>
 <td nowrap class="TableContent" width="80">设备情况:</td>
 <td class="TableData" colspan="3">
  <textarea name="MR_DEVICE" class="BigInput" cols="45" rows="3">';
  echo $MR_DEVICE;
  echo '</textarea>
 </td>
</tr>
<tr>
 <td nowrap class="TableContent" width="80">会议室描述:</td>
 <td class="TableData" colspan="3">
  <textarea name="MR_DESC" class="BigInput" cols="45" rows="3">';
  echo $MR_DESC;
  echo '</textarea>
 </td>
</tr>
<tr>
 <td nowrap class="TableContent" width="80">地址:</td>
 <td class="TableData" colspan="3">
  <input type="text" name="MR_PLACE" size="40" maxlength="100" class="BigInput" value="';
  echo $MR_PLACE;
  echo '">
 </td>
</tr>
<tr class="TableControl">
 <td nowrap colspan="4" align="center">
 	<input type="hidden" value="';
  echo $MR_ID;
  echo '" name="MR_ID">
  <input type="button" value="保存" class="BigButton" onclick="CheckForm();">&nbsp;&nbsp;
';
  if (($MR_ID != ''))
  {
    echo '   <input type="button" class="BigButton" value="返回" onclick="location=\'index.php\';">
';
  }
  else
  {
    echo '   <input type="button" class="BigButton" value="返回" onclick="location=\'index.php\';">
';
  }
  echo ' </td>
</tr>
</form>
</table>
</body>
</html>';
?>

⌨️ 快捷键说明

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