本文整理汇总了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 } ?>
示例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);
?>
示例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) : '无';
?>
示例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 } ?>