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


PHP XDateTime::printTime4TouchFixed方法代码示例

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


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

示例1: array_keys

<?php 
$proposalId2serviceOrderId = DAL::get()->find_id_by_sources('serviceOrder', 'Proposal', array_keys($statusDto->proposals));
$serviceOrders = DAL::get()->find('serviceOrder', $proposalId2serviceOrderId);
foreach($statusDto->proposals as $p) { 
?>
    <li class="psr">
    <div class="<?=$statusDto->divClass()?>"><?=$statusDto->statusDesc()?></div>
        <a href="<?=$router->urlfor('telpayment/showtelorder')?>?telOrderId=<?=$p->id?>&orderStatus=<?=$statusDto->getQueryStatus()?>" class="lh140">
             <p class="black pb5">订单号:<?=$serviceOrders[$proposalId2serviceOrderId[$p->id]]->id?></p>
             <p class="gray6 f15">
                 <?=$p->space->host->name?>(<?=$p->space->host->hospitalfaculty->hospital->commonName?>
                 <?=$p->space->host->hospitalfaculty->name?>)
             </p>
             <p class="gray6 f15">下单时间:<?=XDateTime::printTime4TouchFixed($p->ctime)?></p>
        </a>
    </li>
<?php } ?>
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:17,代码来源:_telorderlistcontent.php

示例2: if

<?php
if ($caseInfo->isNormalStatus() || $caseInfo->isPending())
{
    $str = "<span class='or_f40'>待回复</span>";
}
else if($caseInfo->isFinish())
{
    $str = "<span class='green_1'>已回复";
}
else
{
    $str = "<span class='gray1'>已失效</span>";
}

if($caseInfo->hasSpace())
{
    $viewDoctor = $caseInfo->space->host->name != '' ? ($caseInfo->space->host->name." (".$caseInfo->space->host->hospitalfaculty->hospital->name." ".$caseInfo->space->host->hospitalfaculty->name.")") : '';
}
else
{
    $viewDoctor = "管理员正在努力的为您推荐合适的大夫";
}
$lastReplyTime = XDateTime::printTime4TouchFixed($caseInfo->ctime);
?>
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:24,代码来源:_proposal_detail.php

示例3:

<?php
if ($caseInfo->isValid())
{
    if ($caseInfo->isLastPostBySpace())
    {
        $str = "<span class='green_1'>已回复";
    }
    else
    {
        $str = "<span class='or_f40'>待回复</span>";
    }
}
else
{
    $str = "<span class='gray1'>已关闭</span>";
}

$viewDoctor = $caseInfo->space->host->name != '' ? ($caseInfo->space->host->name." (".$caseInfo->space->host->hospitalfaculty->hospital->name." ".$caseInfo->space->host->hospitalfaculty->name.")") : '';
$lastReplyTime = ($caseInfo->lastPostUser->id > 0) ? XDateTime::printTime4TouchFixed($caseInfo->ctime) : '无';
?>
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:20,代码来源:_flow_detail.php

示例4: empty

        $sets = $intention->getBingLiSet();
        $disease = (isset($sets->disease) && false == empty($sets->disease)) ? array_shift($sets->disease)->diseaseName : '';
        $title = (isset($sets->title) && false == empty($sets->title)) ? array_shift($sets->title)->title : $intention->getDefaultTitle(); 
    }
    $title = Xstring::truncate($title, 14);
    $disease =Xstring::truncate($disease, 14);
    $msgStr = $disease." ".$title;
    if($title=='' && $disease=='')
    {
        $msgStr = "医疗请求";
    }
?>
    <a href="<?=$touchUrl?>/intention/intentiondetail?intentionId=<?=$intention->id?>" class="doc_list2_box">
        <div class="doc_list2">
            <ul>
                <li><div class="left">医疗请求:</div><div class="right"><?=$msgStr?></div></li>
                <li>
                    <div class="left">请求医生:</div>
                    <div class="right"><?=$intention->hasSpace()? (implode(' ', ($intention->space->host->getAllNameList()))): '无指定医生'?></div>
                </li>
                <li><div class="left">提交时间:</div><div class="right"><?=XDateTime::printTime4TouchFixed($intention->ctime)?></div></li>
                <li class="last"><div class="left">希望得到服务:</div><div class="right"><?=$intention->product->service->text?></div></li>
                <li class="position"><img src="http://i1.hdfimg.com/touch/images/go_r.png" width="25" height="25" /></li>
                <li class="position_zt">
                    <span class="<?=IntentionController::$intentionStatus2ListClass[$intention->status]?>"><?=$intention->getStatusDesc()?></span>
                </li>
            </ul> 
        </div>
    </a>
<?php } ?>
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:30,代码来源:_intentionlistcontent.php


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