本文整理汇总了PHP中date_for_display函数的典型用法代码示例。如果您正苦于以下问题:PHP date_for_display函数的具体用法?PHP date_for_display怎么用?PHP date_for_display使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了date_for_display函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: parse_message_shortcodes
function parse_message_shortcodes($message)
{
switch ($this->module) {
case 'timesheet':
$find = array('[first_name]', '[last_name]', '[email]', '[manager_first_name]', '[manager_last_name]', '[period_start]', '[period_end]', '[chargable_hours]', '[holiday]', '[unpaid_time_off]', '[personal_time]', '[total_hours]', '[vacation]', '[sicktime]', '[birthday]', '[other]', '[date_created]');
$replace = array($this->user->meta['first_name'], $this->user->meta['last_name'], $this->user->user_email, $this->manager->meta['first_name'], $this->manager->meta['last_name'], date_for_display($this->data['period_start']), date_for_display($this->data['period_end']), $this->data['chargable_hours'], $this->data['holiday'], $this->data['unpaid_time_off'], $this->data['personal_time'], $this->data['total_hours'], $this->data['vacation'], $this->data['sicktime'], $this->data['birthday'], $this->data['other'], date_for_display($this->data['date_created']));
break;
case 'timeoff':
$find = array('[first_name]', '[last_name]', '[email]', '[manager_first_name]', '[manager_last_name]', '[current_status]', '[request_type]', '[combination]', '[days_or_hours]', '[request_start]', '[request_end]', '[comments]', '[date_created]');
$replace = array($this->user->meta['first_name'], $this->user->meta['last_name'], $this->user->user_email, $this->manager->meta['first_name'], $this->manager->meta['last_name'], $this->data['current_status'], $this->data['request_type'], $this->data['combination'], $this->data['days_or_hours'], date_for_display($this->data['request_start']), date_for_display($this->data['request_end']), $this->data['comments'], date_for_display($this->data['date_created']));
break;
case 'travel':
$find = array('[first_name]', '[last_name]', '[email]', '[manager_first_name]', '[manager_last_name]', '[current_status]', '[month_of]', '[date_created]');
$replace = array($this->user->meta['first_name'], $this->user->meta['last_name'], $this->user->user_email, $this->manager->meta['first_name'], $this->manager->meta['last_name'], $this->data['current_status'], $this->data['for_month'], date_for_display($this->data['date_created']));
break;
default:
$find = $replace = array();
break;
}
return str_replace($find, $replace, $message);
}
示例2: form_dropdown
</td>
</tr>
<tr>
<th style="width: 330px;">
<label for="office">Office</label><br />
(care consultatn's location / office)
</th>
<td><?php
echo form_dropdown('office', $locations, $office);
?>
</td>
</tr>
<tr>
<th><label for="date">Date</label></th>
<td><?php
echo form_input('event_date', date_for_display($event_date), 'class="datepicker"');
?>
</td>
</tr>
<tr>
<th><label for="month">Month</label></th>
<td><?php
echo form_dropdown('month', getMonthList(), $month);
?>
</td>
</tr>
<tr>
<th>
<label for="quarter">Quarter</label><br />
<div class="note">
(current quarter: July-Sept = Q1; Oct-Dec = Q2;<br />
示例3: date_for_display
?>
</td>
<td><?php
echo $procurement->current_status;
?>
</td>
<td><?php
echo $procurement->order_id;
?>
</td>
<td><?php
echo date_for_display($procurement->date_inv_rec);
?>
</td>
<td><?php
echo date_for_display($procurement->chk_req_sub);
?>
</td>
<td>$<?php
echo number_format($procurement->aprox_total, 2, '.', '');
?>
</td>
<td>
<?php
echo anchor('procurement/order/' . $procurement->template_id . '/' . $procurement->ID, 'edit');
?>
/<?php
echo anchor('procurement/delete/' . $procurement->template_id . '/' . $procurement->ID, 'delete', array('class' => 'delete'));
?>
</td>
示例4: foreach
foreach ($timesheets['rows'] as $timesheet) {
?>
<tr>
<td><a href="<?php
echo site_url('timesheet/edit/' . $timesheet->ID);
?>
"><?php
echo $timesheet->first_name . ' ' . $timesheet->last_name;
?>
</a></td>
<td><?php
echo date_for_display($timesheet->period_start);
?>
</td>
<td><?php
echo date_for_display($timesheet->period_end);
?>
</td>
<td><?php
echo $timesheet->current_status;
?>
</td>
</tr>
<?php
}
}
?>
</tbody>
</table>
</div>
</div>
示例5: date_for_display
?>
</td>
<td><?php
echo date_for_display($timesheet->period_start);
?>
</td>
<td><?php
echo date_for_display($timesheet->period_end);
?>
</td>
<td><?php
echo $timesheet->current_status;
?>
</td>
<td><?php
echo date_for_display($timesheet->last_edit);
?>
</td>
<td>
<?php
if (can_this_user('timesheet/edit/all') || can_this_user('timesheet/edit') && ($timesheet->user_id == $this->user->ID || $timesheet->manager == $this->user->ID) && $timesheet->current_status == 'In Process') {
?>
<?php
echo anchor('timesheet/edit/' . $timesheet->ID, 'edit');
?>
<?php
} else {
?>
<?php
示例6: date_for_display
<td><?php
echo @form_input('date_of_request', date_for_display($data->date_of_request), 'class="datepicker"');
?>
</td>
</tr>
<tr>
<th style="width: 250px;">Decision Date</th>
<td><?php
echo @form_input('decision_date', date_for_display($data->decision_date), 'class="datepicker"');
?>
</td>
</tr>
<tr>
<th style="width: 250px;">Fund Date</th>
<td><?php
echo @form_input('fund_date', date_for_display($data->fund_date), 'class="datepicker"');
?>
</td>
</tr>
<tr>
<th style="width: 250px;">Approved Account List</th>
<td>
<?php
echo form_upload('account_list', $data->account_list);
?>
<?php
if (isset($data->account_list) && strlen($data->account_list)) {
echo anchor('uploads/' . $data->account_list, $data->account_list);
}
?>
</td>
示例7: foreach
<th>Total # attn.</th>
<th>By SPA</th>
<th>By ETH</th>
<th>Grant / Program</th>
<th></th>
</tr>
</thead>
<tbody>
<?php
if (isset($items) && sizeof($items) > 0) {
foreach ($items as $education_program) {
?>
<tr class="ui-helper-reset">
<td><?php
echo date_for_display($education_program->date);
?>
</td>
<td><?php
echo $education_program->office;
?>
</td>
<td><?php
echo $education_program->quarter;
?>
</td>
<td><?php
echo $education_program->fiscial_year;
?>
</td>
<td><?php
示例8: download
public function download($value = '')
{
$FileName = 'timesheets-' . date("d-m-y") . '.csv';
header('Content-Type: application/csv');
header('Content-Disposition: attachment; filename="' . $FileName . '"');
header("Pragma: no-cache");
header("Expires: 0");
$list = $this->timesheet_model->get_timesheets($this->input->get('user_id'), $this->config->item('pagination_per_page'), 0, $this->input->get_post(NULL, TRUE));
$timesheets = $list['rows'];
$headers = array_keys(get_object_vars($timesheets[0]));
unset($headers[9], $headers[10], $headers[11], $headers[12], $headers[13], $headers[26]);
echo implode(',', $headers) . "\n";
foreach ($timesheets as $request) {
$request = get_object_vars($request);
$manager = $this->users_model->get_user_meta($request['manager']);
$request['date_created'] = date_for_display($request['date_created']);
unset($request['accounts'], $request['gweek1'], $request['gweek2'], $request['week1'], $request['week2'], $request['type']);
$request['manager'] = @$manager['first_name'] . ' ' . @$manager['last_name'];
$request['period_start'] = date_for_display($request['period_start']);
$request['period_end'] = date_for_display($request['period_end']);
$request['last_edit'] = date_for_display($request['last_edit']);
echo implode(',', $request) . "\n";
}
}
示例9: get_sort_link
<th>Prefered Contact <?php
echo get_sort_link('volunteers', 'called', '');
?>
</th>
<th></th>
</tr>
</thead>
<tbody>
<?php
if (isset($volunteers) && sizeof($volunteers) > 0) {
foreach ($volunteers as $volunteer) {
?>
<tr class="ui-helper-reset">
<td><?php
echo date_for_display($volunteer->date);
?>
</td>
<td><?php
echo $volunteer->name;
?>
</td>
<td><?php
echo $volunteer->email;
?>
</td>
<td><?php
echo $volunteer->address;
?>
</td>
<td><?php
示例10: form_dropdown
echo form_dropdown('nce_status', array('To Submit' => 'To Submit', 'On Deck' => 'On Deck', 'Funded' => 'Funded', 'Pending' => 'Pending', 'Declined' => 'Declined', 'Prospect' => 'Prospect', 'Approved' => 'Approved'));
?>
</td>
<th><label for="nce_duration">Duration:</label></th>
<td><?php
echo form_input('nce_duration', $nce_duration);
?>
</td>
<th><label for="nce_aprvl_date">Aprvl Date:</label></th>
<td><?php
echo form_input('nce_aprvl_date', date_for_display($nce_aprvl_date), 'class="datepicker"');
?>
</td>
<th><label for="nce_submission_date">Submission Date:</label></th>
<td><?php
echo form_input('nce_submission_date', date_for_display($nce_submission_date), 'class="datepicker"');
?>
</td>
</tr>
</table>
<br>
<table cellspacing="0" border="0">
<tr>
<th style="vertical-align: top; padding-top: 3px;"><label for="">Notes:</label></th>
<td><?php
echo form_textarea('nce_notes', $nce_notes, 'style="width: 92%"');
?>
</td>
</tr>
<tr>
<th><label for="attachments">Attachments</label></th>
示例11: form_input
<div class="ui-block wide">
<h3><a href="#">General Info</a></h3>
<div>
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td style="width: 180px;">Prior year Carry Forward:</td>
<td>$<?php
echo form_input('prior_year', $prior_year, '');
?>
</td>
</tr>
<tr>
<td>Expected Completion Date:</td>
<td> <?php
echo form_input('ex_comp_date', date_for_display($ex_comp_date), 'class="datepicker"');
?>
</td>
</tr>
<tr>
<td>Current Status:</td>
<td> <?php
echo form_dropdown('status', array('' => 'Select One', 'In Process' => 'In Process', 'Submitted Budget' => 'Submitted Budget', 'Approved Budget' => 'Approved Budget'), $status);
?>
</td>
</tr>
<tr>
<td>Budget Manager</td>
<td> <select name="manager">
<?php
foreach ($users as $u) {
示例12: date_for_display
?>
</td>
<td><?php
echo $project->current_status;
?>
</td>
<td><?php
echo $project->order_id;
?>
</td>
<td><?php
echo date_for_display($project->date_inv_rec);
?>
</td>
<td><?php
echo date_for_display($project->chk_req_sub);
?>
</td>
<td>$<?php
echo number_format($project->aprox_total, 2, '.', '');
?>
</td>
<td>
<?php
echo anchor('project/order/' . $project->template_id . '/' . $project->ID, 'edit');
?>
/<?php
echo anchor('project/delete/' . $project->template_id . '/' . $project->ID, 'delete', array('class' => 'delete'));
?>
</td>
示例13: foreach
<thead>
<tr>
<th>Date Created</th>
<th>Template Name</th>
<th></th>
</tr>
</thead>
<tbody>
<?php
if (isset($templates)) {
foreach ($templates as $template) {
?>
<tr class="ui-helper-reset">
<td><?php
echo date_for_display($template->date_created);
?>
</td>
<td><?php
echo $template->template_name;
?>
</td>
<td>
<?php
echo anchor('procurement/edit/' . $template->ID, 'edit');
?>
/<?php
echo anchor('procurement/delete/' . $template->ID, 'delete', array('class' => 'delete'));
?>
/<?php
示例14: number_format
?>
</td>
<td><?php
echo $project->grant_title;
?>
</td>
<td>$<?php
echo number_format($total_amt_grant, 2, '.', ',');
?>
</td>
<td><?php
echo date_for_display($project->start_date);
?>
</td>
<td><?php
echo date_for_display($project->end_date);
?>
</td>
<?php
$t = 0;
foreach ($project->cumulative_total as $total) {
$t += $total;
}
?>
<td>$<?php
echo number_format($t, 2, '.', '');
?>
</td>
示例15: form_input
?>
</td>
</tr>
<tr class="ui-helper-reset">
<th>From</th>
<td><?php
echo form_input('request_start', date_for_display($timeoff_request->request_start), 'class="datepicker"');
?>
</td>
</tr>
<tr class="ui-helper-reset">
<th>To</th>
<td><?php
echo form_input('request_end', date_for_display($timeoff_request->request_end), 'class="datepicker"');
?>
</td>
</tr>
<tr class="ui-helper-reset">
<th valign="top" style="padding-top: 5px;">Comments</th>
<td><?php
echo form_textarea('comments', $timeoff_request->comments);
?>
</td>
</tr>
</tbody>
</table>
<?php