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


PHP Helpers::formatDateFromDb方法代码示例

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


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

示例1: run

 public function run()
 {
     $field = $this->field;
     if ($this->defaultToday && $this->model->{$field} == '') {
         $this->model->{$field} = Helpers::formatDateFromDb(date('Y-m-d'));
     } elseif ($this->model->{$field} != '' && gettype($this->model->{$field}) == 'string') {
         $this->model->{$field} = Helpers::formatDateFromDb($this->model->{$field});
     }
     $this->render('dateField', array('model' => $this->model, 'field' => $this->field, 'label' => $this->label, 'dateOptions' => $this->dateOptions, 'naked' => $this->naked, 'groupId' => $this->groupId, 'htmlOptions' => $this->htmlOptions));
 }
开发者ID:chovajsa,项目名称:dasch,代码行数:10,代码来源:DateField.php

示例2: mb_substr

    ?>
								<?php 
    echo $application->name;
    ?>
 <?php 
    echo $application->surname;
    ?>
							

								<?php 
    // if ($application->color == 'white' || $application->color == 'turquoiseLight') {
    if ($application->hasDownselledApplication == 1) {
        echo '<span style="color:red;"> D </span>';
    }
    if ($application->commentTS != '0000-00-00 00:00:00') {
        echo '<span style="color:blue; font-size:10px;">(' . (strlen($application->comment) <= 9 ? $application->comment : mb_substr($application->comment, 0, 9, 'utf-8') . '...') . ' - ' . Helpers::formatDateFromDb($application->commentTS) . ')</span>';
    }
    // }
    ?>


								<span style="font-size: 80%; vertical-align:top; color:white">
								<?php 
    if ($application->bankTransfer == 1) {
        switch ((int) trim($application->bankAccountCode)) {
            case 200:
                echo 'VUB';
                break;
            case 1100:
                echo 'TB';
                break;
开发者ID:chovajsa,项目名称:dasch,代码行数:31,代码来源:applicationList.php

示例3: date

            <tr>
              <td>
                Due Date 
              </td>
              <td>
                <span style="font-weight:bold">
                <?php 
if ($application->isPaidBack()) {
    $d = $application->paidBackDate;
} else {
    $d = date('Y-m-d');
}
?>
                <?php 
echo Helpers::formatDateFromDb($application->dueDate, true);
?>
 (<?php 
echo -1 * ceil((strtotime($application->dueDate) - strtotime($d)) / 86400);
?>
)
                </span>
              </td>
            </tr>

            <tr>
              <td>
                PLUS count
              </td>
              <td>
                <?php 
开发者ID:chovajsa,项目名称:dasch,代码行数:30,代码来源:collectionUpdate.php

示例4:

" rel="<?php 
        echo $prolong->application->id;
        ?>
"  data-href="<?php 
        echo $app->createControllerRoute();
        ?>
/update/id/<?php 
        echo $app->id;
        ?>
/tab/plus/prolongId/<?php 
        echo $prolong->id;
        ?>
">
							<td width="20%">
								<span style="backround-color:white; color:blue"> P </span> <?php 
        echo Helpers::formatDateFromDb($prolong->arrivedDate);
        ?>
							</td>
							<td>
								<?php 
        echo $prolong->price;
        ?>
							</td>

							<td>
								<?php 
        echo $prolong->term;
        ?>
							</td>

							<td>
开发者ID:chovajsa,项目名称:dasch,代码行数:31,代码来源:applicationHistory.php

示例5:

								Customer from
							</td>
							<td>
								<?php 
echo Helpers::formatDateFromDb($customerFrom);
?>
							</td>
						</tr>
						
						<tr>
							<td>
								Last Application is from
							</td>
							<td>
								<?php 
echo Helpers::formatDateFromDb($lastApplicationFrom);
?>
							</td>
						</tr>
						
						<?php 
if ($averageRepaymentTime != '') {
    ?>
						<tr>
							<td>
								Average overdue time
							</td>
							<td>
								<?php 
    echo $averageRepaymentTime . ' days';
    ?>
开发者ID:chovajsa,项目名称:dasch,代码行数:31,代码来源:customerDetail.php

示例6: switch

    if ($application->approved == 'not_set') {
        if ($application->hasDownselledApplication()) {
            echo '<span style="color:red;"> D </span>';
        }
        $callHistory = CallHistory::model()->find(array('condition' => 'applicationId = ' . $application->id, 'order' => 'id DESC'));
        if ($callHistory) {
            $status = $callHistory->status;
            if (!trim($status)) {
                $comment = Comment::model()->find(array('condition' => 'id = ' . $callHistory->commentId, 'order' => 'id DESC'));
                if ($comment) {
                    $status = $comment->content;
                } else {
                    $status = '';
                }
            }
            echo '<span style="color:blue; font-size:10px;">(' . $status . ' - ' . Helpers::formatDateFromDb($callHistory->ts) . ')</span>';
        }
    }
    ?>


								<span style="font-size: 80%; vertical-align:top; color:white">
								<?php 
    if ($application->bankTransfer && $application->canBePaid()) {
        switch ((int) trim($application->bankAccountCode)) {
            case 200:
                echo 'VUB';
                break;
            case 1100:
                echo 'TB';
                break;
开发者ID:chovajsa,项目名称:dasch,代码行数:31,代码来源:applicationArchiveList.php

示例7:

        echo $add->id;
        ?>
][price]" type="text" value="<?php 
        echo $add->price;
        ?>
" /> 
						</td>
						<td>
							<input class="datefield" name="ShippingPriceAdditional[<?php 
        echo $shipper->id;
        ?>
][<?php 
        echo $add->id;
        ?>
][date]" type="text" value="<?php 
        echo Helpers::formatDateFromDb($add->getDate());
        ?>
" /> 
						</td>
						<td>
							<input class="datefield" name="ShippingPriceAdditional[<?php 
        echo $shipper->id;
        ?>
][<?php 
        echo $add->id;
        ?>
][note]" type="text" value="<?php 
        echo $add->note;
        ?>
" /> 
						</td>
开发者ID:chovajsa,项目名称:dasch,代码行数:31,代码来源:oceanTrade.php


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