当前位置: 首页>>代码示例>>PHP>>正文


PHP XString::hiddenTelNumber方法代码示例

本文整理汇总了PHP中XString::hiddenTelNumber方法的典型用法代码示例。如果您正苦于以下问题:PHP XString::hiddenTelNumber方法的具体用法?PHP XString::hiddenTelNumber怎么用?PHP XString::hiddenTelNumber使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在XString的用法示例。


在下文中一共展示了XString::hiddenTelNumber方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

echo $telorderEvent->space->host->hospitalfaculty->hospital->commonName . " " . $telorderEvent->space->host->hospitalfaculty->faculty->name . " " . $telorderEvent->space->name;
?>
        </td>
        <td>医生级别:</td>
        <td><?php 
echo $telorderEvent->space->adminlevel;
?>
级</td>
    </tr>
    <?php 
if ($telorderEvent->space->getSpaceExt() instanceof SpaceExt) {
    ?>
    <tr class="h40">
        <td>联系电话:</td>
        <td colspan=3><?php 
    echo XString::hiddenTelNumber($telorderEvent->space->getSpaceExt()->phone1) . ' ' . XString::hiddenTelNumber($telorderEvent->space->getSpaceExt()->phone2) . ' ' . XString::hiddenTelNumber($telorderEvent->space->getSpaceExt()->phone3);
    ?>
</td>
    </tr>
    <?php 
}
?>
    <tr class="h40">
        <td>备注:</td>
        <td colspan=3><?php 
echo $telorderEvent->remark;
?>
</td>
    </tr>
    <tr class="h40">
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:30,代码来源:showtelordereventdetail.php

示例2:

echo $space->host->hospitalfaculty->hospital->commonName . " " . $space->host->hospitalfaculty->faculty->name . " " . $space->name;
?>
</td>
        <td>医生级别:</td>
        <td><?php 
echo $space->adminlevel;
?>
级</td>
    </tr>
    <?php 
if ($space->getSpaceExt() instanceof SpaceExt) {
    ?>
    <tr class="h40">
        <td>联系电话:</td>
        <td colspan=3><?php 
    echo XString::hiddenTelNumber($space->getSpaceExt()->phone1) . ' ' . XString::hiddenTelNumber($space->getSpaceExt()->phone2) . ' ' . XString::hiddenTelNumber($space->getSpaceExt()->phone3);
    ?>
</td>
    </tr>
    <?php 
}
?>
    <?php 
if (false == empty($contracts)) {
    ?>
    <tr class="h40">
        <td>合同:</td>
        <td colspan=3>
<?php 
    if ($product->contract->isInvalid()) {
        ?>
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:31,代码来源:productdetail.php

示例3: showAgent4Intention

 public function showAgent4Intention($request, $response)
 {
     /*{{{*/
     if (is_numeric($request->phoneNumber)) {
         $phoneNumber = $request->phoneNumber;
         $response->phoneNumber = Codec::getInstance()->encodeId($phoneNumber);
     } else {
         $phoneNumber = Codec::getInstance()->decodeId($request->phoneNumber);
         $response->phoneNumber = $request->phoneNumber;
     }
     $userList = $patients = array();
     if (false == empty($phoneNumber)) {
         $userList = DAL::get()->find_all_by_phoneNumber('user', $phoneNumber);
         $patients = DAL::get()->find_all_by_phoneNumber('patient', $phoneNumber);
     }
     $isDoctorNumber = false;
     foreach ($userList as $user) {
         if ($user->hasSpace()) {
             $isDoctorNumber = true;
         }
     }
     $response->isDoctorNumber = $isDoctorNumber;
     if ($isDoctorNumber) {
         $response->showPhoneNumber = XString::hiddenTelNumber($phoneNumber);
     } else {
         $response->showPhoneNumber = $phoneNumber;
     }
     foreach ($patients as $patient) {
         if (false == isset($users[$patient->user->id])) {
             $userList[$patient->user->id] = $patient->user;
         }
     }
     $userName = $request->userName;
     if (false == empty($userName)) {
         $targetUser = DAL::get()->find_by_name('user', $request->userName);
         if ($targetUser instanceof User) {
             $userList = array();
             $userList[$targetUser->id] = $targetUser;
         }
     }
     $response->isNewUser = $request->isNewUser;
     $response->userName = $userName;
     $response->userList = $userList;
 }
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:44,代码来源:intentioncontroller.php

示例4:

    <!--tr class="h40">
        <td>开通时间:</td>
        <td><?php 
    echo $productApply->space->getSpaceExt()->starttime4tel;
    ?>
</td>
        <td>曾经关闭时间:</td>
        <td><?php 
    echo $productApply->space->getSpaceExt()->closetime4tel;
    ?>
</td>
    </tr-->
    <tr class="h40">
        <td>联系电话:</td>
        <td colspan=3><?php 
    echo XString::hiddenTelNumber($productApply->space->getSpaceExt()->phone1) . ' ' . XString::hiddenTelNumber($productApply->space->getSpaceExt()->phone2) . ' ' . XString::hiddenTelNumber($productApply->space->getSpaceExt()->phone3);
    ?>
</td>
    </tr>
    <?php 
}
?>
    <tr class="h40">
        <td>申请来源:</td>
        <td colspan=3><?php 
echo ProductApply::$sourceDesc[$productApply->source];
?>
</d>
    </tr>
    <?php 
if ($contract instanceof Contract) {
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:31,代码来源:productapplydetail.php

示例5:

<div style="padding: 10px 50px 10px; 10 px; width: 65%;">
<table cellpadding="4" cellspacing="0" border="1" class="adminlist">
	<tr>
		<td width="15%">接收人:</td>
<?php 
if (false == empty($userId)) {
    ?>
		<td width="85%"><input name="phoneNumber" id="phoneNumber" size="110" value="<?php 
    echo $userId;
    ?>
"/></td>
<?php 
} else {
    ?>
		<td width="85%"><input oninput="changePhoneValue()" name="showPhoneNumber" id="showPhoneNumber" size="110" value="<?php 
    echo $needHiddenPhone ? XString::hiddenTelNumber($phoneNumber) : $phoneNumber;
    ?>
"/></td>
		<input type="hidden" name="phoneNumber" id="phoneNumber" value="<?php 
    echo $phoneNumber;
    ?>
"/>
<?php 
}
?>
	</tr>
    <tr>
		<td colspan="2"><h3>业务部门如需大批量发送短信请提前2天向市场部同学报备,谢谢配合。</h3></td>
	</tr>
	<tr>
        <td width="15%">发送方式:</td>
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:31,代码来源:showsendmessage.php

示例6:

        <li>所在省市: <?php 
    echo $ref->patient->province;
    ?>
 <?php 
    echo $ref->patient->city;
    ?>
</li>
<?php 
    if ($ref->patient->mobile) {
        ?>
                <li>
                    <p>手    机: <?php 
        if ($spaceIsLogin) {
            echo $ref->patient->mobile;
        } else {
            echo XString::hiddenTelNumber($ref->patient->mobile);
        }
        ?>
</p>
<!-- 
<p class="mt5">友情提示:如需患者手机号码,<a target="_blank" href="http://<?php 
        echo $spaceBaseUrl;
        ?>
/adminsetup/sos">请让网站客服与您联系。</a></p>
-->
                </li>
<?php 
    }
    if ($ref->patient->email) {
        ?>
                <li>邮    箱: <?php 
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:31,代码来源:_space_content_right.php

示例7: foreach

                <th>管理员</th>
                <th>电话号码</th>
                <th>开始时间</th>
                <th>结束时间</th>
                <th>备注</th>
            </tr>
            <?php 
    foreach ($teleconversations as $t) {
        ?>
                <tr>
                    <td><?php 
        echo $t->getTeleOperator()->realName;
        ?>
</td>
                    <td><?php 
        echo XString::hiddenTelNumber($t->customerPhoneNumber);
        ?>
</td>
                    <td><?php 
        echo $t->startTime;
        ?>
</td>
                    <td><?php 
        echo $t->endTime;
        ?>
</td>
                    <td><?php 
        echo $t->remark;
        ?>
</td>
                </tr>
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:31,代码来源:_callrecords.php

示例8:

    echo $conversation->customerPhoneNumber;
    ?>
" class="iframeCallUser cp" src="http://i1.hdfimg.com/callcenter/images/icon01.png">
                     <img title="历史会话" rel="<?php 
    echo XString::hiddenTelNumber($conversation->customerPhoneNumber);
    ?>
" 
                                value="<?php 
    echo $conversation->id;
    ?>
" class="iframeRecoverCallUser cp" src="http://i1.hdfimg.com/callcenter/images/iconHideoffline01-01.png">
                <?php 
    if (XString::isMobile($conversation->customerPhoneNumber)) {
        ?>
                     <img title="短信" rel="<?php 
        echo XString::hiddenTelNumber($conversation->customerPhoneNumber);
        ?>
" 
                            value="<?php 
        echo $conversation->customerPhoneNumber;
        ?>
" class="iframeSendSms cp" 
                            src="http://i1.hdfimg.com/callcenter/images/buttonMessage01-01.png">
                <?php 
    }
    ?>
                 </span>
            </td>
            <td nowrap class="w150"><span title="<?php 
    echo $conversation->remark;
    ?>
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:31,代码来源:conversationlist.php

示例9:

        <li>所在省市:<?php 
    echo $proposal->patient->province;
    ?>
&nbsp; <?php 
    echo $proposal->patient->city;
    ?>
</li>
        <?php 
    if ($proposal->patient->mobile != '') {
        ?>
        <li>
            <p>手机:<?php 
        if ($spaceIsLogin) {
            echo $proposal->patient->mobile;
        } else {
            echo XString::hiddenTelNumber($proposal->patient->mobile);
        }
        ?>
</p>
            <p class="mt5">友情提示:如需患者手机号码,<a target="_blank" href="http://<?php 
        echo $spaceBaseUrl;
        ?>
/adminsetup/sos">请让网站客服与您联系。</a></p>
        </li>
        <?php 
    }
    if ($proposal->patient->email != '') {
        ?>
        <li>邮箱:<?php 
        echo $proposal->patient->email;
        ?>
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:31,代码来源:right_patient.php

示例10:

<?php 
    if (Patient::PAPER_TYPE_ID == $order->patient->paperstype) {
        $idCard = XString::hiddenPartIdentificationCard($patient->idcard);
    } else {
        $idCard = XString::hiddenPartOtherCard($patient->idcard);
    }
    ?>
      <td width="172" valign="top"><p><?php 
    echo $idCard;
    ?>
</p></td>
      <td width="106" valign="top"><p><?php 
    if ($spaceIsLogin) {
        echo $order->patient->mobile;
    } else {
        echo XString::hiddenTelNumber($order->patient->mobile);
    }
    ?>
</p></td>
      <td width="66" valign="top"><p><?php 
    echo $patient->province;
    if ($patient->city != '其他') {
        echo $patient->city;
    }
    ?>
</p>
     </td>
      <td width="147" valign="top"><p><?php 
    echo $order->schedule;
    ?>
</p></td>
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:31,代码来源:bookingprint.php

示例11: telControl

 public function telControl($request, $response)
 {
     /*{{{*/
     if ($this->curOperator->isOffWork()) {
         echo "-1";
         return parent::DIRECT_OUTPUT;
         //已经下班
     }
     if ($this->curOperator->isHangUp()) {
         return parent::DIRECT_OUTPUT;
     }
     $conversation = DAL::get()->find_by_operatorCanAnswer('TeleConversation', $this->curOperator->id);
     if ($conversation instanceof TeleConversation) {
         $res = array();
         $res['conversationId'] = $conversation->id;
         $res['phoneNumber'] = XString::hiddenTelNumber($conversation->customerPhoneNumber);
         echo json_encode($res);
     }
     return parent::DIRECT_OUTPUT;
 }
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:20,代码来源:operatorcontroller.php

示例12:

        <span style="padding-left:5px; cursor:pointer"><img title="呼叫" rel="<?php 
        echo XString::hiddenTelNumber($phoneNumber);
        ?>
" value="<?php 
        echo $phoneNumber;
        ?>
" class="callUser" src="http://i1.hdfimg.com/callcenter/images/icon01.png"></span>
        <span style="padding-left:5px; cursor:pointer"><img title="历史会话" rel="<?php 
        echo XString::hiddenTelNumber($phoneNumber);
        ?>
" value="<?php 
        echo $phoneNumber;
        ?>
" class="historyConversationListByPhoneNumber cp" src="http://i1.hdfimg.com/callcenter/images/iconHideoffline01-01.png"></span>
<?php 
        if (XString::isMobile($phoneNumber)) {
            ?>
        <span style="padding-left:5px; cursor:pointer"><img title="短信" rel="<?php 
            echo XString::hiddenTelNumber($phoneNumber);
            ?>
" value="<?php 
            echo $phoneNumber;
            ?>
" class="sendSMS " src="http://i1.hdfimg.com/callcenter/images/buttonMessage01-01.png"></span>
<?php 
        }
        ?>
    </li>
<?php 
    }
}
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:31,代码来源:searchphonenumber.php

示例13:

</td>
        <td nowrap>
            <?php 
            if ($isDoctorNumber || $user->hasSpace()) {
                ?>
                <table class="bc w80">
                    <tr class="h20"><td style="border:none;"><?php 
                echo $patient->mobile ? XString::hiddenTelNumber($patient->mobile) : '无';
                ?>
</td></tr>
                    <tr class="h20"><td style="border:none;"><?php 
                echo $patient->phone ? XString::hiddenTelNumber($patient->phone) : '无';
                ?>
</td></tr>
                    <tr class="h20"><td style="border:none;"><?php 
                echo $patient->backupPhone ? XString::hiddenTelNumber($patient->backupPhone) : '无';
                ?>
</td></tr>
                </table>
            <?php 
            } else {
                ?>
                <table class="bc w80">
                    <tr class="h20"><td style="border:none;"><?php 
                echo $patient->mobile ? $patient->mobile : '无';
                ?>
</td></tr>
                    <tr class="h20"><td style="border:none;"><?php 
                echo $patient->phone ? $patient->phone : '无';
                ?>
</td></tr>
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:31,代码来源:showagent4intention.php

示例14: array

        ?>
    <?php 
    }
    ?>
 
    <?php 
    if ($patient->backupPhone != '') {
        $mobileArea = DAL::get()->queryMobileAreaByPhoneNumber('mobilenumberarea', $patient->backupPhone);
        $blackBackupPhone = DAL::get()->find_by_blackphonenum('BlackList', $patient->backupPhone);
        ?>
        <span class="tb">备用电话2:</span>
        <?php 
        $patientBackupPhone = $patient->user->hasSpace() ? Codec::getInstance()->encodeId($patient->backupPhone) : $patient->backupPhone;
        ?>
        <?php 
        $showPatientBackupPhone = $patient->user->hasSpace() ? XString::hiddenTelNumber($patient->backupPhone) : $patient->backupPhone;
        ?>
        <a href="<?php 
        echo $callUrl . $patientBackupPhone;
        ?>
" target='_blank'><?php 
        echo $showPatientBackupPhone . " (" . $mobileArea . ") ";
        ?>
</a>
        <a class="f12" href="<?php 
        echo $router->urlfor('message/showsendmessage', array('userId' => $patient->user->id, 'phoneNumber' => $patientBackupPhone));
        ?>
" target='_blank'>[短信]</a>
         <?php 
        if (isset($blackBackupPhone) && false == $blackBackupPhone->isNull() && strpos($blackBackupPhone->addReason, '号贩子') > -1) {
            ?>
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:31,代码来源:_userandpatientphone.php


注:本文中的XString::hiddenTelNumber方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。