本文整理汇总了PHP中XString::encodeMobileNo方法的典型用法代码示例。如果您正苦于以下问题:PHP XString::encodeMobileNo方法的具体用法?PHP XString::encodeMobileNo怎么用?PHP XString::encodeMobileNo使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类XString
的用法示例。
在下文中一共展示了XString::encodeMobileNo方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: smsLogList
public function smsLogList($request, $response)
{
/*{{{*/
$extAll = $request->extAll;
$date = $request->getRequest('date', '');
$type = $request->getRequest('type', '');
$optType = $request->getRequest('optType', '');
$mobile = $request->getRequest('mobile', '');
$userName = $request->getRequest('userName', '');
$extStr = $this->getPageUrlExt($request->ext);
DBC::requireFalse(false == empty($userName) && false == empty($mobile), '用户名和手机号只能写一个');
$p = (int) $request->getRequest('page', 1);
$pageSize = 20;
$mobile = XString::decodeMobileNo($mobile);
$mobiles = $this->getSMSMobiles($userName, $mobile);
$response->extAll = $request->extAll;
$exts = $request->ext ? implode(',', $request->ext) : '';
if ($extAll == 'extall') {
$exts = '';
}
$res = SMSClient::getInstance()->smsLogList($date, $type, $optType, $mobiles, $p, $pageSize, $exts);
$response->logList = $res['logList'];
if (empty($res['logList']) == false) {
$mobile = XString::encodeMobileNo($mobile);
$response->pagelink = PageNav::getNavLink(PageNav::getPageNavTemplate("/message/smsloglist?date={$date}&type={$type}&optType={$optType}{$extStr}&extAll={$extAll}&userName={$userName}&mobile={$mobile}&page="), $res['pageInfo']['nowpage'], $res['pageInfo']['pagesize'], $res['pageInfo']['total']);
}
$response->date = $date;
$response->type = $type;
$response->optType = $optType;
$response->mobile = $mobile;
$response->userName = $userName;
$response->ext = $request->ext;
}
示例2:
" <?php
echo $mobileNOs[$i] == $partner1->phoneNumber ? "checked" : "";
?>
/><?php
echo $mobile;
?>
<br />
<?php
$i++;
}
?>
<?php
if ($isFixedLineCallable) {
?>
<input type="radio" name="doctorphone" id="radio" value="<?php
echo XString::encodeMobileNo($fixedlineno);
?>
" <?php
echo $fixedlineno == $partner1->phoneNumber ? "checked" : "";
?>
/><?php
echo $shownFixedlineno;
?>
<br />
<?php
}
?>
</div>
<?php
if (false == $admin->isNull() && $admin->isConf()) {
?>
示例3: showOrderDetail
public function showOrderDetail($request, $response)
{
/*{{{*/
$response->showContent = true;
$orderId = $request->orderId;
DBC::requireNotEmptyString($orderId, '无效的订单ID');
$response->doctortype = $request->doctortype;
$order = DAL::get()->mustFind('BookingOrder', $orderId, true);
$space = $order->space;
$taskList = DAL::get()->find_all_by_objectid_and_objecttype('BookingTask', $orderId, 'bookingorder');
//约满
$seatLimits = BookingClient::getInstance()->getseatLimitCount($order->space, date('Y-m-d', strtotime("+ 0 day")), date('Y-m-d', strtotime("+ 17 day")));
//停诊
$stopDiagnose = DAL::get()->find_all_by_spaceid('StopDiagnose', $order->space->id);
$doctorOrderTotal = BookingClient::getInstance()->countDoctorOrder('BookingOrder', $order->space->id);
$proposalIds = DAL::get()->querySpacePatientProposals('proposal', $order->space, array(), $order->patient->id);
$proposals = DAL::get()->find('proposal', $proposalIds);
$doctorPatientRef = new NullEntity();
if (empty($proposalIds)) {
$doctorPatientRef = DAL::get()->find_by_spaceid_and_patientid('doctorpatientref', $order->space->id, $order->patient->id);
}
$response->doctorPatientRef = $doctorPatientRef;
$response->order = $order;
$response->taskList = $taskList;
$response->patientOrderTotal = BookingClient::getInstance()->countPatientOrder('BookingOrder', $order->user->id);
$response->doctorOrderTotal = $doctorOrderTotal;
$response->seatLimits = $seatLimits;
$response->stopDiagnose = $stopDiagnose;
//$bingLis4Schedule = BingLiDtoClient::getInstance()->getBingLiByRelatedObj($order->notification->proposal)->schedule;
//$response->bingLiSchedule = $bingLis4Schedule[0]->schedule;
//$response->bingLiAddress = BingLiDtoClient::getInstance()->getBingLiByRelatedObj($order->notification->proposal)->address;
$response->space = $space;
$response->doctorMobileEncoded = XString::encodeMobileNo($space->user->mobile);
$response->doctorMobileFaked = XString::generateFakePhoneno($space->user->mobile);
$response->cardOrderTotal = BookingClient::getInstance()->countCardOrder($order->patient->idcard);
$response->mobileOrderTotal = BookingClient::getInstance()->countMobileOrder($order->patient->mobile);
$response->patientDefaulted = BookingClient::getInstance()->countPatientDefaulted('BookingBlackList', $order->user->id, $order->patient->idcard, $order->user->mobile, $order->patient->mobile);
$response->proposals = $proposals;
$response->scheduleList = $this->getSchedule($order->space);
$isMobileCallable = XString::isMobile($space->user->mobile);
$isFixedLineCallable = XString::findPhoneNO($space->user->phone) != false;
$response->isCallPanelLinkShown = $isMobileCallable || $isFixedLineCallable;
$response->spaceBusinessRequirement = $space->getSpaceBusinessRequirement4Booking();
}
示例4: foreach
<table cellpadding="4" cellspacing="0" border="1" class="adminlist">
<tr >
<th class="title" width="50%">发送日期</th>
<th class="title" width="50%">发送总数</th>
</tr>
<?php
if (empty($lettercntList) == false) {
foreach ($lettercntList as $cntInfo) {
?>
<tr>
<td><?php
echo $cntInfo['querydate'];
?>
</td>
<td><a href="<?php
echo $router->urlfor('message/letterCountDetail', array('userName' => $userName, 'tel' => XString::encodeMobileNo($tel), 'date' => $cntInfo['querydate']));
?>
" ><?php
echo $cntInfo['lettercount'];
?>
</a></td>
</tr>
<?php
}
?>
<tr>
<td colspan="7"><?php
echo $pagelink;
?>
</td>
</tr>
示例5: array
<td><a href="<?php
echo $router->urlfor('message/smsStatDetail', array('userName' => $userName, 'mobile' => XString::encodeMobileNo($mobile), 'date' => $statInfo['date1'], 'type' => 'sendfail'));
?>
" ><?php
echo $statInfo['sendfailcnt'];
?>
</a></td>
<td><a href="<?php
echo $router->urlfor('message/smsStatDetail', array('userName' => $userName, 'mobile' => XString::encodeMobileNo($mobile), 'date' => $statInfo['date1'], 'type' => 'noreport'));
?>
" ><?php
echo $statInfo['noreportcnt'];
?>
</a></td>
<td><a href="<?php
echo $router->urlfor('message/smsStatDetail', array('userName' => $userName, 'mobile' => XString::encodeMobileNo($mobile), 'date' => $statInfo['date1'], 'type' => 'receive'));
?>
" ><?php
echo $statInfo['receivecnt'];
?>
</a></td>
</tr>
<?php
}
?>
<tr>
<td colspan="7"><?php
echo $pagelink;
?>
</td>
</tr>
示例6: foreach
<?php
if ($teleConversationList) {
?>
<p class="mt10">通话历史: <a href="conversationlist?customerPhoneNumber=<?php
echo XString::encodeMobileNo($teleConversation->customerPhoneNumber);
?>
&type=history" target="_blank" class="fl20 blue cp">所有历史通话记录</a> </p>
<table class="list w960 mt10">
<tr class="ml20 fb title h30">
<td width="100">会话ID</td>
<td width="100">开始时间</td>
<td width="100">结束时间</td>
<td width="100">操作员</td>
<td width="100">所属队列</td>
<td width="50">类型</td>
<td width="100">电话号码</td>
<td width="200">备注</td>
<td width="50">录音</td>
</tr>
<?php
foreach ($teleConversationList as $conversation) {
?>
<tr>
<td><?php
echo $conversation->id;
?>
</td>
<td class="h20 w150"><?php
echo $conversation->startTime;
?>
示例7:
<a target="_blank" href="http://www.haodf.com/faculty/<?php
echo Codec::getInstance()->encodeId($spaceBusinessRequirement->space->host->hospitalfaculty->id);
?>
.htm"><?php
echo $spaceBusinessRequirement->space->host->hospitalfaculty->name;
?>
</a>|
<a target="_blank" href="/spacebusinessrequirement/showdoctordetaillist?id=<?php
echo $spaceBusinessRequirement->id;
?>
" >查看详情</a></td>
</tr>
<tr>
<td valign="middle" width="100px">电话:</td>
<td valign="middle"><a target="_blank" href="/?a=showsmsstat&c=message&type=1&tel=<?php
echo XString::encodeMobileNo($spaceBusinessRequirement->space->user->mobile);
?>
&orderid="><?php
echo XString::generateFakePhoneno($spaceBusinessRequirement->space->user->mobile);
?>
</a></td>
</tr>
<tr>
<td valign="middle" width="100px">加号要求:</td>
<td valign="middle"><?php
echo $spaceBusinessRequirement->disease;
?>
</td>
</tr>
<tr>
<td valign="middle" width="100px">患者要求:</td>