index.php

来自「极限网络智能办公系统 Office Automation V3.0官方100%源」· PHP 代码 · 共 95 行

PHP
95
字号
<?
include_once("inc/auth.php");

if($TO_ID!="" &&(substr($TO_ID,strlen($TO_ID)-1,1)!=","))
{
   $TO_ID=$TO_ID.",";
   $TO_NAME=$TO_NAME.",";
}
?>

<html>
<head>
<title>发送内部短信</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<script 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 LoadWindow()
{
  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:350px;dialogHeight:350px;dialogTop:"+loc_y+"px;dialogLeft:"+loc_x+"px");
//  window.open(URL,null,"height=400,width=550,status=1,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 class="Big"><img src="/images/menu/sms.gif" WIDTH="22" HEIGHT="20" align="absmiddle"><span class="big3"> 发送内部短信</span>
    </td>
  </tr>
</table>

 <table border="0" width="450" cellpadding="3" 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="hidden" name="TO_ID" value="<?=$TO_ID?>">
        <textarea cols=30 name="TO_NAME" rows="3" class="BigStatic" wrap="yes" readonly><?=$TO_NAME?></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 nowrap class="TableData"> 短信内容:</td>
      <td class="TableData">
        <textarea cols=30 name="CONTENT" rows="3" class="BigInput" wrap="on" onkeypress="CheckSend()"></textarea>
        &nbsp;按Ctrl+回车键发送消息
      </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='index.php'">
      </td>
    </tr>
  </table>
</form>

</body>
</html>

⌨️ 快捷键说明

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