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

📄 index.php

📁 通达OA2007SE源代码 非常好的
💻 PHP
字号:
<?
  include_once 'inc/auth.php';
  if ((($TO_ID != '') AND (substr ($TO_ID, (strlen ($TO_ID) - 1), 1) != ',')))
  {
    $TO_ID = ($TO_ID.',');
    $TO_NAME = ($TO_NAME.',');
  }
  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.TO_ID.value=="")
   { alert("请添加收信人!");
     return (false);
   }
   if(document.form1.CONTENT.value=="")
   { alert("短信内容不能为空!");
     return (false);
   }
   return (true);
}
function clear_user()
{
  document.form1.TO_NAME.value="";
  document.form1.TO_ID.value="";
}
function LoadW';
  echo 'indow()
{
  URL="/module/user_select";
  loc_x=document.body.scrollLeft+event.clientX-event.offsetX-100;
  loc_y=document.body.scrollTop+event.clientY-event.offsetY+170;
  window.showModalDialog(URL,self,"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:400px;dialogHeight:350px;dialogTop:"+loc_y+"px;dialogLeft:"+loc_x+"px");
//  window.open(URL,null,"height=400,width=550,status=1';
  echo ',toolbar=no,menubar=no,location=no,scrollbars=yes,top=150,left=100,resizable=yes");
}
function CheckSend()
{
  if(event.keyCode==10)
  {
    if(CheckForm())
       document.form1.submit();
  }
}
</script>
</head>
<body class="bodycolor" topmargin="5" onload="document.form1.CONTENT.focus();">
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
  <tr>
    <td';
  echo ' class="Big"><img src="/images/menu/sms.gif" WIDTH="22" HEIGHT="20" align="absmiddle">';
  echo '<s';
  echo 'pan class="big3"> 发送内部短信</span>
    </td>
  </tr>
</table>
 <table border="0" width=500" cellpadding="5" align=center cellspacing="1"  bgcolor="#000000" class="small">
  <form action="submit.php"  method="post" name="form1" onsubmit="return CheckForm();">
    <tr>
      <td class="TableHeader">
      	收信人
      </td>
    </tr>
    <tr>
      <td class="TableData">
        <input type="h';
  echo 'idden" name="TO_ID" value="';
  echo $TO_ID;
  echo '">
        <textarea cols=50 name="TO_NAME" rows="6" class="BigStatic" wrap="yes" readonly>';
  echo $TO_NAME;
  echo '</textarea>
        &nbsp;<input type="button" value="添 加" class="SmallButton" onClick="LoadWindow()" title="添加收信人" name="button">
        &nbsp;<input type="button" value="清 空" class="SmallButton" onClick="clear_user()" title="清空收信人" name="button">
      </td>
    </tr>
    <tr>
      <td class="TableHeader">
      	短信内容
      </td>
    </tr>
    <tr>
      <td class="TableData"';
  echo '>
        <textarea cols=70 name="CONTENT" rows="8" class="BigInput" wrap="on" onkeypress="CheckSend()">';
  echo $CONTENT;
  echo '</textarea>
        <br>按Ctrl+回车键发送消息
      </td>
    </tr>
    <tr align="center" class="TableControl">
      <td colspan="2" nowrap>
        <input type="submit" value="发送短信" class="BigButton">&nbsp;&nbsp;
      </td>
    </tr>
  </table>
</form>
</body>
</html>';
?>

⌨️ 快捷键说明

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