コード例 #1
0
                    <?php 
                        if($type == 5 || $type == 4)
                        {
                            $colorScheme = array('0'=>'gray','1'=>'red', '2'=>'green', '3'=>'blue','4'=>'#860','5'=>'#f80');
//                            $num = hexdec(substr(md5($order->getExecuterBySpace()->id), 0, 6))%3;
							$num = $order->queueno;
                    ?>
                    <td><span class="fb" style="color:<?=isset($colorScheme[$num])?$colorScheme[$num]:'gray';?>"><?=$num ?></span></td>
                    <?php }?>

                    <?php if($type != 2) {?>
                    <td>
                        <?= $order->getTelTime()?>
                    </td>
                     <td>
                    <a target="_blank" title="<?=TelOrder::formatOrderLogListStr(isset($orderid_logs[$order->id])?$orderid_logs[$order->id]:array())?>" href="<?= $router->urlfor('telorder/orderdetail', array('orderId'=>$order->id))?>#remark">备注</a>
                    </td>
                    <? } ?>

                    <td><?=$order->ctime->toStringByFormat('Y-m-d H:i')?></td>
                    <?php if($type != 2) 
                    {   ?>
                    <td>
                    <?=$order->notification->isPending() ? "<span class='ml5 red'>已挂起</span>" : ""?>
                    <?= TelOrder::$statusDesc[$order->status]?></td>
                    <?php if($type == TelOrder::SEARCH_FEFUND){ ?>
                    <td>
                        <?=$order->isCopy() ? '已复制' : '未复制'?>
                    </td>
                    <?php } 
                    } ?>
コード例 #2
0
<?php 
if (false == empty($callingLogs)) {
    ?>
        <div class="mb30 mr_line">
            <p class="f18 mr_title">最近通话</p>
            <ul class="pt5 pl15 pr15 pb15 fs">
<?php 
    foreach ($callingLogs as $log) {
        ?>
                <li class="lh180 pt10 pb10 bb_d">
                    <p class="f14 lh140 pb10">
                        <span class="green3 mr5"><?php 
        echo $space->name;
        ?>
</span> 大夫解答:<a target="_blank" href="<?php 
        echo TelOrder::getNewFeedBackUrlImp($log['id']);
        ?>
"><?php 
        echo $log['title'];
        ?>
</a>

                    </p>
                    <p>
                        <span class="green3 mr5">
<?php 
        if ($log['username'] != "") {
            if ("hdf" == substr($log['username'], 0, 3)) {
                ?>
                                ***<?php 
                echo substr($log['username'], 3);
コード例 #3
0
 /**
  * getOrderList 取订单列表 
  * 
  * @param mixed $userId 
  * @param mixed $status 
  * @param mixed $pageId 
  * @param mixed $pageSize 
  * @access public
  * @return void
  */
 public function getOrderList($userId, $status, $pageId, $pageSize)
 {/*{{{*/
     $pageSize = MainDataBucket::_initFetchCount($pageSize);
     $pageId = MainDataBucket::_initPageId($pageId, $pageSize);
     $status = empty($status) ? 0 : $status;
     $space = DAL::get()->find('space', $userId);
     if($space->isNull())
     {
         $this->setErrorCode(328);
         return 0;
     }
     $params['wap'] = true; 
     if($status == self::STATUS_NEED_ILLNESS)
     {
         $params['confirmstarttimeDesc'] = true;
     }
     $telOwner = DAL::get()->find_by_relatedObject('telowner', $space->user);
     $status = $this->getOrderSearchStatus($status);
     if($status != TelOrder::SEARCH_FINISHED_CLOSE)
     {
         $params['noLimit'] = true;
     }
     $res = TelOrderClient::getInstance()->getList($status, $pageId, $pageSize, $telOwner->id, $params);
     $telOrderList = TelOrder::getNoPendingOrderList($res['list'], $status);
     $pageList = $res['pageInfo'];
     $this->pageInfo = array("nowpage" => $pageList['nowpage'], 'pages' =>$pageList['pages'] , 
         'total'=>$pageList['total'], 'pagesize' => $pageList['pagesize']);
     $this->content = $this->getOrderMsg($telOrderList, $status);
 }/*}}}*/
コード例 #4
0
							<!--start userFeedback-->
<?php 
    foreach ($phoneServiceLists as $user => $feedBackInfo) {
        ?>
                            <ul class="userFeedback">
                            <li class="pr"><input type='hidden'/><a  target="_blank" href="http://<?php 
        echo URL_PREFIX;
        ?>
400.haodf.com/haodf/<?php 
        echo $feedBackInfo['spaceusername'];
        ?>
" class="green telDoc-floatBtn"><?php 
        echo $feedBackInfo['spacehostname'];
        ?>
</a>大夫解答:<a target="_blank" href="<?php 
        echo TelOrder::getNewFeedBackUrlImp($feedBackInfo['orderid']);
        ?>
"><span class="gray"><?php 
        if (isset($feedBackInfo['title']) && mb_strlen($feedBackInfo['title'], 'gbk') < 32) {
            echo mb_substr($feedBackInfo['title'], 0, 12, 'gbk');
        }
        ?>
</em></span></a></a></li>
            <li class="clearfix">
                <span class="fl">患者<?php 
        echo substr($feedBackInfo['spaceusername'], 0, 2);
        ?>
**反馈</span>:
                       <span class="red" id="score"><?php 
        echo $ScoreDesc[$feedBackInfo['score']];
        ?>
コード例 #5
0
                <ul class="pl20">
<?php 
        if ($from == 'dzone') {
            ?>
                    <li><a target="_blank" href="<?php 
            echo $phoneServiceList['flow']->url;
            ?>
" class="green fb"><?php 
            echo $phoneServiceList['title'];
            ?>
</a></li>
<?php 
        } else {
            ?>
                    <li><a href="<?php 
            echo TelOrder::getNewFeedBackUrlImp($phoneServiceList['id']);
            ?>
" class="green fb"><?php 
            echo $phoneServiceList['title'];
            ?>
</a></li>
<?php 
        }
        ?>
                <li class="mt5">用户反馈: <span  ><span><?php 
        echo $content;
        ?>
</span>
                    <em class="openfeedback cp green">展开>></em></span>
                </li>
                    <li class="mt5">通话时间:<?php