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


PHP Helper::convertDateString方法代码示例

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


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

示例1: foreach

            echo '<p class="center"><img src="' . Yii::app()->request->baseUrl . '/images/verified_doc.jpg" alt=""/></p>';
        } else {
            echo '<p class="center"><img src="' . Yii::app()->request->baseUrl . '/images/notverified_doc.jpg" alt=""/></p>';
        }
        ?>
    </div>
    <div class="sidebar_item" id="notes_blok">
        <span>Add an Internal Note:</span>
        <textarea name="" class="note_textarea" maxlength="250"></textarea>
        <input type="hidden" name="note_to_company" id="note_to_company" value="<?php echo $company->Company_ID; ?>"/>
        <button class="button block-center" id="add_note_button">Add Note</button>
        <div id="notes_list">
            <?php
                foreach ($notes as $note) {
                    echo '<div class="note_item">
                            <p class="note_date">' . Helper::convertDateString($note->Created) . '</p>
                            <p class="note_title">' . CHtml::encode($note->user->person->First_Name) . ' ' . CHtml::encode($note->user->person->Last_Name) . '</p>
                            <p class="note_body">' . CHtml::encode($note->Comment) . '</p>
                          </div>';
                }
            ?>
        </div>
    </div>
    <div class="sidebar_item OCR_Layer ">
        <span class="sidebar_block_header">Details</span>
    </div>
</div>
<script>
    $(document).ready(function() {
        setEqualHeight($(".wrapper,.sidebar_right"));
        new W9Detail;
开发者ID:ranvijayj,项目名称:htmlasa,代码行数:31,代码来源:detail.php

示例2: isset

<span class="sidebar_block_header">Details:</span>
<ul class="sidebar_list">
    <li><h2 class="sidebar_block_list_header"><?php echo isset($pc->Employee_Name) ? CHtml::encode($pc->Employee_Name) : '<span class="not_set">Not set</span>'; ?></h2></li>
    <li>Total: <span class="details_page_value"><?php echo ($pc->Envelope_Total != 0) ? CHtml::encode(number_format($pc->Envelope_Total, 2)) : '<span class="not_set">Not set</span>'; ?></span></li>
    <li>Number: <span class="details_page_value"><?php echo ($pc->Envelope_Number) ? CHtml::encode($pc->Envelope_Number) : '<span class="not_set">Not set</span>'; ?></span></li>
    <li>Date: <span class="details_page_value"><?php echo ($pc->Envelope_Date) ? CHtml::encode(Helper::convertDate($pc->Envelope_Date)) : '<span class="not_set">Not set</span>'; ?></span></li>
    <li>Created on: <br/><span class="created_on_date"><?php echo $document->Created ? Helper::convertDateString($document->Created) . ' ' . CHtml::encode($user->person->First_Name) . ' ' . CHtml::encode($user->person->Last_Name) : '<span class="not_set">Not set</span>'; ?></span></li>
</ul>
开发者ID:ranvijayj,项目名称:htmlasa,代码行数:8,代码来源:pc_info_block.php

示例3: foreach

<span class="sidebar_block_header">User Info:</span>
<ul class="sidebar_list">
    <li>Username: <?php echo $user->User_Login; ?></li>
    <li>Active: <?php echo $user->Active ? 'Yes' : 'No'; ?></li>
    <li>Last Login: <?php  echo $user->Last_Login ? Helper::convertDateString($user->Last_Login) : ''; ?></li>
</ul>
<div class="grid-view" style="padding-top: 11px;" >
    <table class="items mbot0">
        <thead>
        <tr>
            <th><span>Company Name / Project Name</span></th>
        </tr>
        </thead>
    </table>
    <div style="height: 280px; overflow: auto">
        <table class="items" id="user_to_<?php echo $tab; ?>_projects">
            <tbody>
            <?php
            if (count($projects)) {
                foreach ($projects as $project) {
                    echo '<tr>';
                    echo '<td>' . CHtml::encode($project) .  '</td>';
                    echo '</tr>';
                }
            } else {
                echo '<tr>';
                echo '<td>Companies were not found</td>';
                echo '</tr>';
            }
            ?>
            </tbody>
开发者ID:ranvijayj,项目名称:htmlasa,代码行数:31,代码来源:user_to_type_info.php

示例4: isset

<div class="sidebar_item details_sidebar_block" id="company_info">
    <span class="sidebar_block_header">Details:</span>
    <ul class="sidebar_list">
        <li><h2 class="sidebar_block_list_header"><?php echo isset($company->Company_Name) ? wordwrap(CHtml::encode($company->Company_Name), 20, "\n", true) : '<span class="not_set">Vendor not attached</span>'; ?></h2></li>
        <li>Amount: <span class="details_page_value"><?php echo ($payment->Payment_Amount != 0) ? CHtml::encode(number_format($payment->Payment_Amount, 2)) : '<span class="not_set">Not set</span>'; ?></span></li>
        <li>Check # / Date: <span class="details_page_value"><?php echo ($payment->Payment_Check_Number && $payment->Payment_Check_Date) ? CHtml::encode($payment->Payment_Check_Number)  . ' / ' .  CHtml::encode(Helper::convertDate($payment->Payment_Check_Date)) : '<span class="not_set">Not set</span>'; ?></span></li>
        <li>Account Num: <span class="details_page_value"><?php echo $bankAccount ? CHtml::encode($bankAccount) : '<span class="not_set">Not set</span>'; ?></span></li>
        <li>Address: <span class="details_page_value"><?php echo isset($address->Address1) ? CHtml::encode($address->Address1) : '<span class="not_set">Not set</span>'; ?></span></li>
        <li><span class="details_page_value" style="margin-left: 50px;"><?php echo isset($address->Address2) ? CHtml::encode($address->Address2) : '<span class="not_set">Not set</span>'; ?></span></li>
        <li>City: <span class="details_page_value"><?php echo isset($address->City) ? CHtml::encode($address->City) : '<span class="not_set">Not set</span>'; ?></span></li>
        <li>State, Zip: <span class="details_page_value"><?php echo isset($address->State) ? (CHtml::encode($address->State) . ', ' . CHtml::encode($address->ZIP)) : '<span class="not_set">Not set</span>'; ?></span></li>
        <li>Check Number: <span class="details_page_value"><?php echo $payment->Payment_Check_Number ? CHtml::encode($payment->Payment_Check_Number) : '<span class="not_set">Not set</span>'; ?></span></li>
        <li>Country: <span class="details_page_value"><?php echo isset($address->Country) ? CHtml::encode($address->Country) : '<span class="not_set">Not set</span>'; ?></span></li>
    </ul>
    <span class="sidebar_block_header">Invoices Attached:</span>
    <div class="sidebar_attd_inv_list">
        <?php
            if (is_array($aps)) {
                foreach ($aps as $ap) {
                    echo '<span class="details_page_value">' . CHtml::encode($ap->Check_Invoice_Number) . ' / ' . CHtml::encode(number_format($ap->Check_Invoice_Amount, 2)) . '</span><br />';
                }
            }
        ?>
    </div>
</div>
<span class="sidebar_block_header">Created on:</span><br/>
<span class="created_on_date"><?php echo Helper::convertDateString($document->Created) . ' ' . CHtml::encode($user->person->First_Name) . ' ' . CHtml::encode($user->person->Last_Name); ?></span>
开发者ID:ranvijayj,项目名称:htmlasa,代码行数:27,代码来源:payment_info_block.php

示例5:

<div class="note_item">
    <p class="note_date"><?php echo Helper::convertDateString($note->Created); ?></p>
    <p class="note_title"><?php echo CHtml::encode($user->person->First_Name) . ' ' . CHtml::encode($user->person->Last_Name); ?></p>
    <p class="note_body"><?php echo CHtml::encode($note->Comment); ?></p>
</div>
开发者ID:ranvijayj,项目名称:htmlasa,代码行数:5,代码来源:note_item_block.php

示例6: wordwrap

<span class="sidebar_block_header">Details:</span>
<ul class="sidebar_list">
    <li><h2 class="sidebar_block_list_header"><?php echo wordwrap(CHtml::encode($company->Company_Name), 20, "\n", true); ?></h2></li>
    <li>Fed ID: <span class="details_page_value"><?php echo $company->Company_Fed_ID; ?></span></li>
    <li>Addre. 1: <span class="details_page_value"><?php echo $adress->Address1 ? CHtml::encode($adress->Address1) : '<span class="not_set">Not set</span>'; ?></span></li>
    <li>Addre. 2: <span class="details_page_value"><?php echo $adress->Address2 ? CHtml::encode($adress->Address2) : '<span class="not_set">Not set</span>'; ?></span></li>
    <li>City: <span class="details_page_value"><?php echo $adress->City ? CHtml::encode($adress->City) : '<span class="not_set">Not set</span>'; ?></span></li>
    <li>State: <span class="details_page_value"><?php echo $adress->State ? CHtml::encode($adress->State) : '<span class="not_set">Not set</span>'; ?></span></li>
    <li>Zip: <span class="details_page_value"><?php echo $adress->ZIP ? CHtml::encode($adress->ZIP) : '<span class="not_set">Not set</span>'; ?></span></li>
    <li>Country: <span class="details_page_value"><?php echo $adress->Country ? CHtml::encode($adress->Country) : '<span class="not_set">Not set</span>'; ?></span></li>
    <li>Contact - Phone: <span class="details_page_value"><?php echo (isset($adminPerson->First_Name) ? (CHtml::encode($adminPerson->First_Name . ' ' . $adminPerson->Last_Name)) : ''); if (isset($adminPerson->Direct_Phone) && $adminPerson->Direct_Phone) echo ', ' . CHtml::encode($adminPerson->Direct_Phone);?></span></li>
    <li>Created on: <span class="created_on_date"><?php echo Helper::convertDateString($lastDocument->Created); ?></span></li>
</ul>
开发者ID:ranvijayj,项目名称:htmlasa,代码行数:13,代码来源:company_info_block.php

示例7: if

    <div class="info">
        <button class="close-alert">&times;</button>
        <?php echo Yii::app()->user->getFlash('success'); ?>
    </div>
<?php endif; ?>

<?php if(Yii::app()->user->hasFlash('error')):?>
    <div class="error_flash" style="color: #ff0000;">
        <button class="close-alert">&times;</button>
        <?php echo Yii::app()->user->getFlash('error'); ?>
    </div>
<?php endif; ?>

<div class="wrapper">
    <div class="w9_details">
        <span class="right created_on">Created on: <span class="created_on_date"><?php echo isset($po->document->Created) ? Helper::convertDateString($po->document->Created) . ' ' . CHtml::encode(Helper::shortenString($po->document->user->person->First_Name. ' ' . $po->document->user->person->Last_Name,20)) : Helper::convertDateString(date("Y-m-d H:i:s")); ?></span></span>
    </div>
    <?php
    $tab_css = '/css/jquery.yiitab.css';
    if (Helper::checkIE() || Helper::getMobileDetect()->isMobile() || Helper::getMobileDetect()->isTablet() || Helper::checkMobile()) {
        $tab_css = '/css/jquery.yiitabie.css';
    }
    $this->widget('CTabView', array(
        'activeTab'=>'tab1',
        'cssFile'=>$tab_css,
        'tabs'=>array(
            'tab1'=>array(
                'title'=>'Create PO',
                'view'=>'tabs/create',
                'data'=>array(
                    'clientApprovers' => $clientApprovers,
开发者ID:ranvijayj,项目名称:htmlasa,代码行数:31,代码来源:create.php

示例8: if

        'page' => $page,
        'num_pages' => $num_pages,
        'url' => '/vendor/detail',
    )); ?>
</div>
<?php if(Yii::app()->user->hasFlash('success')):?>
    <div class="info">
        <button class="close-alert">&times;</button>
        <?php echo Yii::app()->user->getFlash('success'); ?>
    </div>
<?php endif; ?>

<div class="wrapper">

    <div class="w9_details" style="<?= $enable_editing_w9_form ? 'cursor :pointer;' : '';?>">
        <span class="right created_on">Created on: <span class="created_on_date"><?php echo $lastDocument ? Helper::convertDateString($lastDocument->Created) : ''; ?></span></span>
        <h2><?php
            $str = $company->Company_Name . ($vendor->Vendor_ID_Shortcut ? '('.CHtml::encode($vendor->Vendor_ID_Shortcut).')' : '');
            echo wordwrap(CHtml::encode($str),40, "\n", true);;
            ?>
        </h2>
        <input type="hidden" value="<?=$w9->Document_ID?>" id="w9_doc_id">
        <input type="hidden" value="<?=$company->Company_ID?>" id="company_id">
        <input type="hidden" value="<?=$vendor->Vendor_ID?>" id="vendor_id">
        <input type="hidden" value="<?=$adminPerson->Person_ID?>" id="cli_adm_user_id">

        <table class="details_table">
            <tr>
                <td class="width240">
                    <ul class="details_table_list">
                        <li>Fed ID: <span class="details_page_value"><?php echo $company->Company_Fed_ID; ?></span></li>
开发者ID:ranvijayj,项目名称:htmlasa,代码行数:31,代码来源:detail.php


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