📄 index.php
字号:
<?php
include_once( "inc/auth.php" );
echo "\r\n<html>\r\n<head>\r\n<title>接收短信查询</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n<script>\r\nfunction CheckForm()\r\n{\r\n if(document.form1.BEGIN_DATE.value==\"\"&&document.form1.END_DATE.value==\"\")\r\n { alert(\"起始时间和结束时间不能同时为空!\");\r\n return (false);\r\n }\r\n\r\n return true;\r\n}\r\n\r\nfunction td_calendar(fieldname)\r\n{\r\n myleft=document.body.scrollLeft+event.clientX-event.offsetX-80;\r\n mytop=document.body.scrollTop+event.clientY-event.offsetY+140;\r\n window.showModalDialog(\"/inc/calendar.php?FIELDNAME=\"+fieldname,self,\"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:280px;dialogHeight:215px;dialogTop:\"+mytop+\"px;dialogLeft:\"+myleft+\"px\");\r\n}\r\nfunction td_clock(fieldname)\r\n{\r\n myleft=document.body.scrollLeft+event.clientX-event.offsetX-80;\r\n mytop=document.body.scrollTop+event.clientY-event.offsetY+140;\r\n\r\n window.showModalDialog(\"/inc/clock.php?FIELDNAME=\"+fieldname,self,\"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:280px;dialogHeight:120px;dialogTop:\"+mytop+\"px;dialogLeft:\"+myleft+\"px\");\r\n}\r\n\r\nfunction clear_user()\r\n{\r\n document.form1.TO_NAME.value=\"\";\r\n document.form1.TO_ID.value=\"\";\r\n}\r\n\r\nfunction LoadWindow()\r\n{\r\n URL=\"/module/user_select\";\r\n loc_x=document.body.scrollLeft+event.clientX-event.offsetX-100;\r\n loc_y=document.body.scrollTop+event.clientY-event.offsetY+170;\r\n 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\");\r\n}\r\n\r\nfunction export_sms()\r\n{\r\n document.form1.action=\"export.php\";\r\n document.form1.submit();\r\n}\r\n</script>\r\n</head>\r\n<body class=\"bodycolor\" topmargin=\"5\">\r\n";
$CUR_DATE = date( "Y-m-d H:i:s", time( ) );
$query1 = "select * from USER where USER_ID='".$LOGIN_USER_ID."'";
$cursor = exequery( $connection, $query1 );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
$MOBIL_NO = $ROW['MOBIL_NO'];
}
if ( $MOBIL_NO == "" )
{
message( "提示", "尚未设置本用户的手机号码" );
exit( );
}
$query1 = "select * from USER where MOBIL_NO='".$MOBIL_NO."'";
$cursor = exequery( $connection, $query1 );
while ( $ROW = mysql_fetch_array( $cursor ) )
{
$USER_NAME .= $ROW['USER_NAME'].",";
}
if ( 1 < substr_count( $USER_NAME, "," ) )
{
message( "提示", "以下用户的手机号码同为 ".$MOBIL_NO.":<br> {$USER_NAME}<br>查询已禁用" );
exit( );
}
echo "\r\n<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\" class=\"small\">\r\n <tr>\r\n <td class=\"Big\"><img src=\"/images/menu/mobile_sms.gif\" WIDTH=\"22\" HEIGHT=\"20\" align=\"absmiddle\"><span class=\"big3\"> 接收短信查询</span>\r\n </td>\r\n </tr>\r\n</table>\r\n<br>\r\n\r\n<table border=\"0\" width=\"400\" cellpadding=\"2\" cellspacing=\"1\" align=\"center\" bgcolor=\"#000000\" class=\"small\">\r\n <form action=\"search.php\" name=\"form1\" onsubmit=\"return CheckForm();\">\r\n <tr>\r\n <td nowrap class=\"TableData\">发送人:</td>\r\n <td class=\"TableData\">\r\n <input type=\"hidden\" name=\"TO_ID\" value=\"\">\r\n <textarea cols=23 name=\"TO_NAME\" rows=\"3\" class=\"BigStatic\" wrap=\"yes\" readonly></textarea>\r\n <input type=\"button\" value=\"添 加\" class=\"SmallButton\" onClick=\"LoadWindow()\" title=\"添加用户\" name=\"button\">\r\n <input type=\"button\" value=\"清 空\" class=\"SmallButton\" onClick=\"clear_user()\" title=\"清空用户\" name=\"button\">\r\n </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableData\">内容:</td>\r\n <td class=\"TableData\"><textarea cols=40 name=\"CONTENT\" rows=\"3\" class=\"BigInput\" wrap=\"yes\"></textarea>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableData\">起始时间:</td>\r\n <td class=\"TableData\"><input type=\"text\" name=\"BEGIN_DATE\" size=\"20\" maxlength=\"20\" class=\"BigInput\" value=\"\">\r\n <img src=\"/images/menu/calendar.gif\" border=\"0\" style=\"cursor:hand\" onclick=\"td_calendar('form1.BEGIN_DATE');\">\r\n <img src=\"/images/menu/clock.gif\" border=\"0\" style=\"cursor:hand\" onclick=\"td_clock('form1.BEGIN_DATE');\">\r\n </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableData\">截止时间:</td>\r\n <td class=\"TableData\"><input type=\"text\" name=\"END_DATE\" size=\"20\" maxlength=\"20\" class=\"BigInput\" value=\"";
echo $CUR_DATE;
echo "\">\r\n <img src=\"/images/menu/calendar.gif\" border=\"0\" style=\"cursor:hand\" onclick=\"td_calendar('form1.END_DATE');\">\r\n <img src=\"/images/menu/clock.gif\" border=\"0\" style=\"cursor:hand\" onclick=\"td_clock('form1.END_DATE');\">\r\n </td>\r\n </tr>\r\n <tr >\r\n <td nowrap class=\"TableControl\" colspan=\"2\" align=\"center\">\r\n \t <input type=\"hidden\" name=\"PHONE\" value=\"";
echo $MOBIL_NO;
echo "\">\r\n <input type=\"submit\" value=\"查询\" class=\"BigButton\" title=\"进行查询\" name=\"button\"> \r\n <input type=\"button\" value=\"导出\" class=\"BigButton\" title=\"进行导出\" name=\"button\" onclick=\"export_sms();\"> \r\n </td>\r\n </tr>\r\n </form>\r\n </table>\r\n\r\n</body>\r\n</html>\r\n";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -