bianjunhui 2 years ago
parent
commit
b2c58f150c

+ 5 - 0
application/module/ctrl/Send_sms_adminAction.class.php

@@ -342,6 +342,10 @@ class Send_sms_adminAction extends Action
         $info           = $_REQUEST['info'];
         $error			= $_REQUEST['error'];
         $uname          = $_SESSION['user_infos']['uname'];
+        $tel = trim($_REQUEST['tel']);
+        if(!empty($tel)) {
+            $where.=" and (mobile='$tel' or from_phone ='$tel' )";
+        }
         $list  = $admin->select_smsdidlog_list($where,$limit);
 
         $all_total = $admin->select_smsdidlog_count($where);
@@ -356,6 +360,7 @@ class Send_sms_adminAction extends Action
             $new[$k]=$v;
             $new[$k]['uname']=$this->getName($admin,$v['uid']);
         }
+        $this->assign('tel',$tel);
         $this->assign('status_array',$status_array);
         $this->assign('info',$info);
         $this->assign('error',$error);

+ 9 - 1
application/module/view/send_sms_admin/didquery.html

@@ -22,7 +22,15 @@
 
 			<div id='main' class="form-actions">
 
-				<!--<a href="/?a=sms_template_admin&m=add" style="font-weight:bold;text-decoration:underline;">添加短信模板</a>-->
+				<form method="post" action="/?a=send_sms_admin&m=didquery" >
+					<div style="margin-left:20px;float:left;margin-bottom:20px;margin-right:20px;">
+						手机号码:<input type="text" name="tel" value="<{$tel}>" style="width:200px;">
+					</div>
+
+					<div style="clear:both;margin-left:20px;">
+						<input type="submit" class="btn btn-info" value="查询" style="clear:both;height: 30px; width: 260px; "/>
+					</div>
+				</form>
 
 				<div style="height:20px;"></div>