本文整理汇总了PHP中Helper::convertDate方法的典型用法代码示例。如果您正苦于以下问题:PHP Helper::convertDate方法的具体用法?PHP Helper::convertDate怎么用?PHP Helper::convertDate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Helper
的用法示例。
在下文中一共展示了Helper::convertDate方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: 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>
示例2: foreach
<tbody>
<?php
$rowNumb = 1;
$balance = $po->PO_Total ? $po->PO_Total : 0;
if (count($poTracks) > 0) {
foreach($poTracks as $key => $poTrack) {
$balance -= $poTrack->PO_Trkng_Pmt_Amt;
echo '<tr class="in_place_edit" data-id="'.$poTrack->PO_Trkng_ID.'">
<td class="width60" data-name="PO_Trkng_ID" data-initial-value="'.$rowNumb.'">
' . $rowNumb . '
</td>
<td class="text_left width200" data-name="PO_Trkng_Desc" data-initial-value="'.$poTrack->PO_Trkng_Desc.'">
' . $poTrack->PO_Trkng_Desc . '
</td>
<td class="width60" data-name="PO_Trkng_Inv_Date" data-initial-value="'.$poTrack->PO_Trkng_Inv_Date.'">
' . Helper::convertDate($poTrack->PO_Trkng_Inv_Date ). '
</td>
<td class="width75" data-name="PO_Trkng_Inv_Number" data-initial-value="'.$poTrack->PO_Trkng_Inv_Number.'">
' . Chtml::encode($poTrack->PO_Trkng_Inv_Number) . '
</td>
<td class="width75" data-name="PO_Trkng_Pmt_Amt" data-initial-value="'.$poTrack->PO_Trkng_Pmt_Amt.'">
' . Chtml::encode(number_format($poTrack->PO_Trkng_Pmt_Amt, 2)) . '
</td>
<td>
' . Chtml::encode(number_format($balance, 2)) . '
</td>
</tr>';
$rowNumb++;
}
}
if ($balance > 0) {
示例3: number_format
<td>Waiting for payments <br/>(Tiers <?=$pending_client_service_settings->Service_Level_ID?>)<br/>active to:
<?=date('m/d/Y',strtotime($pending_client_service_settings->Pending_Active_To))?></td>
<td id="set_pen_users"><?php echo $pending_client_service_settings->Additional_Users?></td>
<td id="set_pen_projects"><?php echo $pending_client_service_settings->Additional_Projects?></td>
<td id="set_pen_storage"><?php echo $pending_client_service_settings->Additional_Storage+1?></td>
<td id="set_pen_full_fee"><?php echo number_format($pending_client_service_settings->Fee_To_Upgrade,2)?></td>
</tr>
<? } ?>
</tbody>
</table>
<div class="group">
<?php
if (preg_match('/^\d{4}\-\d{2}\-\d{2}$/', $settings->Active_To)) {
$settings->Active_To = Helper::convertDate($settings->Active_To);
}
?>
<?php echo CHtml::activeLabel($settings, "Active_To");?>
<?php echo CHtml::activeTextField($settings, "Active_To",array(
'disabled'=>(Yii::app()->user->id=='db_admin') ? false : true
));?>
</div>
<?php echo CHtml::activeHiddenField($settings, "Client_ID");?>
<input type="hidden" name="ClientServiceSettings[Service_Level_ID]" id="ClientServiceSettings_Sevice_Level_ID" value="<?=$summary_sl_settings['Tiers_Str'];?>">
<div id="service_levels_company_payments">
<div id="service_levels_company_add_payment" class="left">
<p class="cl_adm_company_name_row">Add Payment:</p>
示例4: Service
<div class="sidebar_item">
<p class="fs15">
Service (<?php echo $summary_sl_settings['Tier_Name']; ?>) expires on <?php echo Helper::convertDate($client_service_settings->Active_To); ?>.
Total renewal cost $<?php echo number_format($summary_sl_settings['Base_Fee'] + $summary_sl_settings['Additional_Fee'], 2);?></td>.
Please renew by choosing a payment method:
</p>
<div id="monthly_payment">
<div class="row">
<input type="radio" checked="checked" data-amount="<?php echo $client_service_settings->Fee;?>" name="service_payment_type_m" id="service_payment_type_m1" class="service_payment_type" value="1"/>
<label for="service_payment_type_m1">Manual Payment</label>
<div class="service_payment_type_descr">
Download Invoice, pay it and upload payment document trought the system.
If You have already had a payment doc. you can upload it <a href="javascript:void(0);" id="upload_service_payment_m">here</a>.
</div>
</div>
<div class="row">
<input type="radio" name="service_payment_type_m" data-amount="<?php echo $client_service_settings->Fee;?>" id="service_payment_type_m2" class="service_payment_type" value="2" />
<label for="service_payment_type_m2">Online Payment</label>
<div class="service_payment_type_descr">
Pay now using credit card info.
</div>
</div>
</div>
<div class="center">
<button id="submit_monthly_payment" class="button">Continue</button>
<button id="cancel_monthly_payment" class="button" style="display: none;">Cancel</button>
</div>
<div class="center">
示例5: isset
<span class="sidebar_block_header">Details:</span>
<ul class="sidebar_list">
<li><h2 class="sidebar_block_list_header"><?php echo isset($company->Company_Name) ? CHtml::encode(Helper::truncLongWords($company->Company_Name,17)) : '<span class="not_set">Vendor not attached</span>'; ?></h2></li>
<li>Amount: <span class="details_page_value"><?php echo CHtml::encode($ap->Invoice_Amount) ? CHtml::encode(number_format($ap->Invoice_Amount, 2,'.', ',')) : '<span class="not_set">Not set</span>'; ?></span></li>
<li>Date: <span class="details_page_value"><?php echo CHtml::encode($ap->Invoice_Date) ? CHtml::encode(Helper::convertDate($ap->Invoice_Date)) : '<span class="not_set">Not Set</span>'; ?></span></li>
<li>Due Date: <span class="details_page_value"><?php echo CHtml::encode($ap->Invoice_Due_Date) ? CHtml::encode(Helper::convertDate($ap->Invoice_Due_Date)) : '<span class="not_set">Not set</span>'; ?></span></li>
<li>Number: <span class="details_page_value"><?php echo (($ap->Invoice_Number != '0') ? CHtml::encode($ap->Invoice_Number) : '<span class="not_set">Not set</span>'); ?></span></li>
<li>Vendor ID: <span class="details_page_value"><?php echo (($ap->Vendor_ID != 0) ? CHtml::encode($ap->Vendor_ID) : '<span class="not_set">Not set</span>'); ?></span></li>
<li>Check Number: <span class="details_page_value"><?php echo $paymentCheckNumber ? CHtml::encode($paymentCheckNumber) : '<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>
<?php
/*
echo '<br/>AP ID :';
echo $ap->AP_ID;
echo '<br/>AP approval value :';
echo $ap->AP_Approval_Value;
echo '<br/>AP Approved :';
echo $ap->Approved;
echo '<br/>AP prev appr value :';
echo $ap->Previous_AP_A_Val;
echo '<br/>AP ClientID :';
//var_dump($user);
echo $document->Client_ID;
示例6: isset
<td colspan="5" style="text-align: left;color: #808080;text-decoration: underline;">
Project : "<?=Projects::getProjectNameByID($prId);?>"
</td>
</tr>
<?}?>
<tr id="doc<?php echo $ap->Document_ID; ?>" <?php echo $color; ?>>
<td class="width30">
<input type="checkbox" class='list_checkbox' name="documents[<?php echo $ap->Document_ID; ?>]" data-project-id="<?=intval($prId)?>" data-client-id="<?=intval($clientID)?>" value="<?php echo $ap->Document_ID; ?>" <?php echo $checked; ?>/>
</td>
<td class="width140">
<?php echo isset($ap->vendor->client->company->Company_Name) ? Helper::cutText(15, 160, 14, $ap->vendor->client->company->Company_Name) : '<span class="not_set">Vendor not attached</span>'; ?>
</td>
<td class="amount_cell width70"><?php echo CHtml::encode($ap->Invoice_Amount) ? Helper::cutText(15, 75, 10, number_format($ap->Invoice_Amount, 2, '.', ',')) : '<span class="not_set">Not set</span>'; ?></td>
<td class="width70">
<?php echo CHtml::encode($ap->Invoice_Due_Date) ? CHtml::encode(Helper::convertDate($ap->Invoice_Due_Date)) : '<span class="not_set">Not set</span>'; ?>
</td>
<td>
<span class="cutted_cell">
<?php
echo CHtml::encode($notes[$ap->AP_ID]) ? Helper::cutText(11, 240, 29, $notes[$ap->AP_ID]) : '<span class="not_set">No comments</span>';
?>
</span>
</td>
</tr>
<?php
}
} else {
示例7: isset
?>
<tr id="doc<?php echo $payment->Document_ID; ?>">
<td class="width30">
<input type="checkbox" class='list_checkbox' name="documents[<?php echo $payment->Document_ID; ?>]" value="<?php echo $payment->Document_ID; ?>"/>
</td>
<td class="width180">
<?php echo isset($payment->vendor->client->company->Company_Name) ? Helper::cutText(15, 230, 20, $payment->vendor->client->company->Company_Name) : '<span class="not_set">Vendor not attached</span>'; ?>
</td>
<td class="amount_cell width80">
<?php echo ($payment->Payment_Amount != 0) ? Helper::cutText(15, 85, 11, number_format($payment->Payment_Amount, 2)) : '<span class="not_set">Not set</span>'; ?>
</td>
<td class="width100">
<?php echo $payment->Payment_Check_Number ? CHtml::encode($payment->Payment_Check_Number) : '<span class="not_set">Not set</span>'; ?>
</td>
<td class="width80">
<?php echo $payment->Payment_Check_Date ? CHtml::encode(Helper::convertDate($payment->Payment_Check_Date)) : '<span class="not_set">Not set</span>'; ?>
</td>
<td>
<span class="cutted_cell">
<?php echo isset($payment->bank_account->Account_Number) ? CHtml::encode(Helper::prepareAcctNum($payment->bank_account->Account_Number, 4)) : '<span class="not_set">Not set</span>'; ?>
</span>
</td>
</tr>
<?php
}
} else {
echo '<tr>
<td>
Payments were not found.
</td>
</tr>';
示例8:
}
// convert date string to view format
if (preg_match('/^\d{4}\-\d{2}\-\d{2}$/', $ckReqDet->Rental_Begin)) {
$ckReqDet->Rental_Begin = Helper::convertDate($ckReqDet->Rental_Begin);
}
?>
<label for="CkReqDetails_Rental_Begin">Rental Begins</label>
<?php echo $form->textField($ckReqDet,'Rental_Begin', $options); ?>
<?php echo $form->error($ckReqDet,'Rental_Begin'); ?>
</div>
<div class="group">
<?php
// convert date string to view format
if (preg_match('/^\d{4}\-\d{2}\-\d{2}$/', $ckReqDet->Rental_End)) {
$ckReqDet->Rental_End = Helper::convertDate($ckReqDet->Rental_End);
}
?>
<label for="CkReqDetails_Rental_End">Rental Ends</label>
<?php echo $form->textField($ckReqDet,'Rental_End', $options); ?>
<?php echo $form->error($ckReqDet,'Rental_End'); ?>
</div>
</fieldset>
</div>
<div class="left po_creating_top_left">
</div>
<div class="right po_creating_top_right">
<!--
<div class="group_radio">
<input type="radio" checked="checked" name="mail_act" id="mail_act_check" value="0"> <label for="mail_act_check">Mail Check</label>
示例9: isset
}
*/
?>
<tr id="doc<?php echo $pc->Document_ID; ?>">
<td class="width30">
<input type="checkbox" class='list_checkbox' name="documents[<?php echo $pc->Document_ID; ?>]" value="<?php echo $pc->Document_ID; ?>"/>
</td>
<td class="width235">
<?php echo isset($pc->Employee_Name) ? Helper::cutText(15, 250, 20, $pc->Employee_Name) : '<span class="not_set">Not set</span>'; ?>
</td>
<td class="width100">
<?php echo $pc->Envelope_Number ? CHtml::encode($pc->Envelope_Number) : '<span class="not_set">Not set</span>'; ?>
</td>
<td class="amount_cell width80">
<?php echo ($pc->Envelope_Total != 0) ? Helper::cutText(15, 85, 11, number_format($pc->Envelope_Total, 2)) : '<span class="not_set">Not set</span>'; ?>
</td>
<td>
<?php echo $pc->Envelope_Date ? CHtml::encode(Helper::convertDate($pc->Envelope_Date)) : '<span class="not_set">Not set</span>'; ?>
</td>
</tr>
<?php
}
} else {
echo '<tr>
<td>
PCs were not found.
</td>
</tr>';
}
?>
示例10:
<h2>Service Level</h2>
<?php
$expirationDate = $settings->Active_To;
if (preg_match('/^\d{4}\-\d{2}\-\d{2}$/', $expirationDate)) {
$expirationDate = Helper::convertDate($expirationDate);
}
?>
<div class="group">
<p><?php echo 'Expiration date: ' . $expirationDate;?> (<?=$summary_sl_settings['Tier_Name']?>)</p>
</div>
<?php
if ($client_admin) {
echo '<button class="button right" id="add_service">+/- Service</button>';
}
$restricted_users_array=array('user','data_entry_clerk');
$alowed_users_array=array('client_admin','db_admin','admin','approver','processor');
if(in_array($user_role,$alowed_users_array)){
echo '<div id="user_allowed" data-id="allowed"></div>';
?>
<br/><br/>
<div class="grid-view">
<form method="post" action="/myaccount/updatecompanyservicelevel" id="company_service_level_form">
<table class="items mbot0" id="company_service_level_table">
<thead>
<tr>
示例11:
<td class="width110">' . Helper::cutText(15, 100, 14, $document->image->File_Name) . '</td>
<td class="dropdown_cell width110" id="doc_client" data="' . $document->Client_ID . '">
<div class="dropdown_cell_ul">
<span class="dropdown_cell_value">' . $document->Client_ID . ' / ' . ($document->client ? CHtml::encode($document->client->company->Company_Name) : '') . '</span>
<ul>' . $clientsList . '</ul>
</div>
</td>
<td class="dropdown_cell" id="doc_project">
<div class="dropdown_cell_ul">
<span class="dropdown_cell_value">' . $document->Project_ID . ' / ' . (isset($userProjects[$document->Client_ID][$document->Project_ID]) ? CHtml::encode($userProjects[$document->Client_ID][$document->Project_ID]) : 'No Project') . '</span>
<ul>' . (isset($userProjectsHtml[$document->Client_ID]) ? $userProjectsHtml[$document->Client_ID] : '') . '</ul>
</div>
</td>';
} else {
echo '<td class="width70">' . Helper::convertDate($document->Created) . '</td>
<td class="width110">' . Helper::cutText(15, 100, 14, $document->image->File_Name) . '</td>
<td class="dropdown_cell width110" id="doc_client" data="' . $document->Client_ID . '">
<div class="dropdown_cell_ul">
<span class="dropdown_cell_value">' . $document->Client_ID . ' / ' . ($document->client ? CHtml::encode($document->client->company->Company_Name) : '') . '</span>
</div>
</td>
<td class="dropdown_cell" id="doc_project">
<div class="dropdown_cell_ul">
<span class="dropdown_cell_value">' . $document->Project_ID . ' / ' . (isset($userProjects[$document->Client_ID][$document->Project_ID]) ? CHtml::encode($userProjects[$document->Client_ID][$document->Project_ID]) : 'No Project') . '</span>
</div>
</td>';
}
echo '</tr>';
示例12: foreach
<tbody>
<?php
if (count($batchesList) > 0) {
foreach ($batchesList as $batches) {?>
<tr id="doc<?php echo $batches->Batch_ID ?>">
<td class="width10">
<input type="checkbox" class='list_checkbox' name="batches[<?php echo $batches->Batch_ID ?>]" value="<?php echo $batches->Batch_ID; ?>"/>
</td>
<td class="width40" style="text-align: center;">
<?php echo $batches->Batch_ID; ?>
</td>
<td class="width50" style="text-align: center;">
<?= Helper::convertDate($batches['Batch_Creation_Date']); ?>
</td>
<td class="width30" style="text-align: center;">
<?=$batches['Batch_Source'] ?>
</td>
<td class="width50" style="text-align: center;">
<a href="/documents/getbatchfiles?batch_id=<?=$batches->Batch_ID?>&file=document" > Download</a>
</td>
<td class="width30" style="text-align: center;">
<a href="/documents/getbatchfiles?batch_id=<?=$batches->Batch_ID?>&file=report" target="_blank" > Open</a>
</td>
<td class="width40" style="text-align: center;" >
<input type="checkbox" class="checkbox_uploaded" <?php echo $batches->Batch_Uploaded ? 'checked="checked"' : ''; ?> >
</td>
<td class="width40" style="text-align: center;" >
示例13:
<td style="<?php echo $ckReqDet->CK_Req_Purchase == 1 ? 'border: 1px solid #000;' : ''; ?>">Purchase</td>
<td style="width: 30px;"></td>
<td style="<?php echo $ckReqDet->CK_Req_Rental == 1 ? 'border: 1px solid #000;' : ''; ?>">Rental</td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="height: 12px; font-size: 12px; width:80px; text-align: right;">Rental Begins:</td>
<td style="width: 1px;"></td>
<td style="height: 12px; font-size: 12px; border-bottom: 1px solid #000; width: 240px;"><?php echo $ckReqDet->Rental_Begin ? Helper::convertDate($ckReqDet->Rental_Begin) : ''; ?> </td>
</tr>
<tr>
<td style="height: 12px; font-size: 12px; width:80px; text-align: right;">Rental Ends:</td>
<td style="width: 1px;"></td>
<td style="height: 12px; font-size: 12px; border-bottom: 1px solid #000; width: 240px;"><?php echo $ckReqDet->Rental_End ? Helper::convertDate($ckReqDet->Rental_End) : ''; ?> </td>
</tr>
</table>
</td>
<td>
<!--
<table>
<tr>
<td style="height: 12px; font-size: 12px; width: 80px; text-align: right;">(circle one)</td>
<td style="width: 1px;"></td>
<td style="height: 12px; font-size: 12px; width: 240px;">
<table>
<tr>
<td style="">Mail Check</td>
<td style="width: 30px;"></td>
<td style="border: 1px solid #000;">Hold for Pick Up</td>
示例14: if
<?php if (count($doclist) > 0) {
foreach($doclist as $doc)
{
$type = explode('/', $doc['Mime_Type']); $type = $type[1];
echo "<tr>
<td class='width30'>
<input type='checkbox' class='delete_checkbox' name='Documents[".$doc['Document_ID']."][Document_ID]]' value='".$doc['Document_ID']."' />
<input type='hidden' class='hidden_doctype' name='Documents[".$doc['Document_ID']."][Document_Type]' value='".$doc['Document_Type']."' />
</td>
<td class='width20'>".$doc['Document_Type']."</td>
<td data-id='" . $doc['Document_ID'] ."' class='pointer_file' >
<img src='" . Yii::app()->request->baseUrl . "/images/file_types/" . $type . ".png' alt='" . strtoupper($type) . "' class='img_type' />"
. substr($doc['File_Name'],0,20) ."...".
"</td>
<td class='width130'>".Helper::convertDate($doc['Created'])."</td>
<td >".$doc['First_Name']." ".$doc['Last_Name']."</td>
<td ><a class='show_canvas' href='#' data-id='" . $doc['Document_ID'] ."'>Change file</a></td>
<td >Name date time of modification</td>
</tr>";
}
} else {
?>
<tr id="no_images">
<td>Documents were not found.</td>
</tr>
<?php } ?>
示例15:
<span class="sidebar_block_header">Details:</span>
<ul class="sidebar_list">
<li><br/></li>
<li></li>
<li>Total: <span class="details_page_value"><?php echo CHtml::encode(number_format($data['amount'], 2)); ?></span></li>
<li>Batch type: <span class="details_page_value"><?php echo $data['type']?></span></li>
<li>Batch format: <span class="details_page_value"><?php echo $data['format']?></span></li>
<li></li>
<li></li>
<li><br/></li>
<li><br/></li>
<li>Created: <br/><span class="created_on_date"><?php echo Helper::convertDate($data['created']) . ' by ' . $data['user_name'] . ' ' ; ?></span></li>
</ul>