📄 sms_receive.php
字号:
<?
session_start();
include "api/sms.inc.php";
$newclient=new SMS();
$respxml=$newclient->readSMS();
$_SESSION["xml"]=$newclient->sendXML;
$_SESSION["respxml"]=$respxml;
$code=$newclient->getCode();
$respArr=$newclient->toArray();
$mess=$respArr["msg"];
$id=$respArr["id"][0];
$src=$respArr["src"][0];
$time=$respArr["time"][0];
$message=$respArr["message"][0];
$err=$respArr["err"][0];
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>接口模式演示程序</title>
<link href="../share/api_style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" bgcolor="#00314F"><img src="../images/api_01.jpg" width="713" height="87" /></td>
<td align="left" bgcolor="#00314F"><table width="100%" height="80" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="right" style="padding-right:20px;"><a href="#"><font color="#ffffff">中文版</font></a> <a href="#"><font color="#ffffff">English</font></a></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td style="color:#FFFFFF;padding-right:20px;" align="right"><strong>时代互联接口模式源程序 Version 2.0</strong></td>
</tr>
</table></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="25" background="../images/api_03.jpg"></td>
<td bgcolor="#000000"> </td>
</tr>
<tr>
<td width="186" rowspan="2" valign="top" bgcolor="#787878"><? include "left.inc.php";?>
</td>
<td valign="top" bgcolor="#FFFFFF" style="padding:1px 0px 1px 1px;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" bgcolor="#030504"><img src="../images/api_07.jpg" width="819" height="183" /></td>
</tr>
<tr>
<td align="left"><img src="../images/api_08.jpg" width="819" height="12" /></td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign="top" style="padding:5px 5px 10px 10px;" bgcolor="#FFFFFF">
<table width="100%" border="1" align="center" cellpadding="1" cellspacing="0" bordercolorlight="#FFFFFF" bordercolor="#ECF4F8" style="margin-top:15px;">
<tr>
<td scope="row">
<table width="90%" align="center" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#ECF4F8" class="text_blue14" align="center"><strong> = 接口模式演示程序使用说明 -回复短信查询- =</strong></td>
</tr>
</table>
<table width="90%" border="1" align="center" cellpadding="1" cellspacing="0" bordercolorlight="#FFFFFF" bordercolor="#F5EEE8">
<tr>
<td width="16%" height="75" rowspan="5" bgcolor="#FFFFFF" scope="row"><font color="#000000">
<img src="../images/pic_1.jpg" width="66" height="66" hspace="10" vspace="10"><br>
</font></td>
<td width="84%" height="24" bgcolor="#FFFFFF" scope="row"> 返回结果说明:<font color="#000000"> </font></td>
</tr>
<tr>
<td height="23" bgcolor="#FFFFFF" scope="row"><font color="#000000"> 状态:
<?=$code?>
</font></td>
</tr>
<tr>
<td height="24" bgcolor="#FFFFFF" scope="row"> 信息:<font color="#000000"><? for($i=0;$i<count($mess);$i++) echo $mess[$i]."<br>"; ?></font></td>
</tr>
<tr>
<td height="24" bgcolor="#FFFFFF" scope="row"><font color="#000000"> 是否有回复短信:<?=$id>0?"有":"没有回复短信(".$err.")"?><br>
回复短信ID:<?=$id?><br>
回复手机:<?=$src?><br>
回复时间:<?=$time?><br>
回复内容:<?=base64_decode($message)?><br>
错误信息:<?=$err?><br>
</font></td>
</tr>
<tr>
<td height="24" bgcolor="#FFFFFF" scope="row"> 注:<font color="#000000">每次查询只能取到一条回复短信,多次查询时间间隔要大于五秒。</font></td>
</tr>
</table>
<table width="90%" align="center" border="0" cellspacing="0" cellpadding="0">
<tr>
<th height="29" align="left" scope="row">
发送的XML信息如下:
</th>
</tr>
<tr>
<th height="17" align="center" scope="row">
<iframe name="sendXML" src='xmldisplay.php?flag=0&create=1' class="formstyle" width="100%" height="250"></iframe>
</th>
</tr>
<tr>
<th height="27" align="left" scope="row">返回的XML信息如下:</th>
</tr>
<tr>
<th align="center" scope="row">
<iframe name="respXML" src='xmldisplay.php?flag=1' class="formstyle" width="100%" height="250"></iframe>
</th>
</tr>
</table>
<table width="90%" align="center" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="29" align="center">
<input name="next" type="button" value="进行发送短信" onClick="location.href='sms_send.php'" class="button_orange">
<!--input name="return" type="button" value="上一步" class="buttonback" onClick="location.href='sms_.php'"-->
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="30" align="center" bgcolor="#00314F" style="color:#FFFFFF">时代互联 版权所有</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -