本文整理汇总了PHP中date_conv函数的典型用法代码示例。如果您正苦于以下问题:PHP date_conv函数的具体用法?PHP date_conv怎么用?PHP date_conv使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了date_conv函数的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: form_label
<div class="column span-3">
<?php
echo form_label(lang('DOC_TO'), 'doc_to');
?>
<br>
<?php
echo form_input('doc_to', date_conv(element('_inout_headers.date_doc <=', $search, null)), 'id="doc_to" class="text date-entry"');
?>
<script type="text/javascript">
$('#doc_to').dateEntry({dateFormat: '<?php
echo $this->config->item('crm_date_entry_format');
?>
', spinnerImage:''});
</script>
</div>
<div class="column span-6 last">
<?php
echo form_label(lang('STATE'), '_account_states_rid');
?>
<br>
<?php
echo form_dropdown('_account_states_rid', get_states_list(), element('_finjournal._account_states_rid', $search, null), 'id="_account_states_rid" class="text" ');
?>
</div>
<div class="column span-6 last">
</div>
<div class="clear"></div>
<div class="column span-3">
</div>
示例2: fopen
$fh = fopen($fname, "rb");
fpassthru($fh);
unlink($fname);
exit;
}
function get_order($od_id)
{
global $g5;
$sql = " select * from {$g5['g5_shop_order_table']} where od_id = '{$od_id}' ";
return sql_fetch($sql);
}
$g5['title'] = "주문내역";
include_once G5_PATH . '/head.sub.php';
if ($case == 1) {
$fr_date = date_conv($fr_date);
$to_date = date_conv($to_date);
$sql = " SELECT DISTINCT a.od_id FROM {$g5['g5_shop_order_table']} a, {$g5['g5_shop_cart_table']} b\r\n where a.od_id = b.od_id\r\n and a.od_time between '{$fr_date} 00:00:00' and '{$to_date} 23:59:59' ";
} else {
$sql = " SELECT DISTINCT a.od_id FROM {$g5['g5_shop_order_table']} a, {$g5['g5_shop_cart_table']} b\r\n where a.od_id = b.od_id\r\n and a.od_id between '{$fr_od_id}' and '{$to_od_id}' ";
}
if ($ct_status) {
$sql .= " and b.ct_status = '{$ct_status}' ";
}
$sql .= " order by a.od_id ";
$result = sql_query($sql);
if (mysql_num_rows($result) == 0) {
echo "<script>alert('출력할 내역이 없습니다.'); window.close();</script>";
exit;
}
?>
示例3: form_input
?>
</div>
<div class="column span-8 last">
<?php
echo form_input('order_num', set_value('order_num', $ds->order_num), 'id="order_num" class="text" style="width:90px;"');
?>
</div>
<div class="column span-4">
<?php
echo form_label(lang('ORDER_DATE'), 'order_date');
?>
</div>
<div class="column span-20 last">
<?php
echo form_input('order_date', date_conv(set_value('order_date', $ds->order_date)), 'id="order_date" class="text date-entry"');
?>
<script type="text/javascript">
$('#order_date').dateEntry({dateFormat: '<?php
echo $this->config->item('crm_date_entry_format');
?>
', spinnerImage:''});
</script>
</div>
<?php
echo get_doc_balance($ds->rid);
?>
<?php
echo anchor_popup(site_url('finjournal/journal/' . $ds->rid), lang('SHOW_FIN_OPERS'), array('title' => lang('SHOW_FIN_OPERS'), 'id' => "sbtn_cities_rid", 'name' => "sbtn_clients_rid", 'width' => '950', 'height' => '600'));
?>
</fieldset>
示例4: form_label
echo form_label('Id', 'rid');
?>
</div>
<div class="column span-9">
<?php
echo form_input('rid', set_value('rid', $ds->rid), 'id="rid" class="text part" readonly');
?>
</div>
<div class="column span-3">
<?php
echo form_label(lang('DATE_DOC') . required_field(), 'date_doc');
?>
</div>
<div class="column span-9 last">
<?php
echo form_input('date_doc', date_conv(set_value('date_doc', $ds->date_doc)), 'id="date_doc" class="text date-entry"');
?>
<script type="text/javascript">
$('#date_doc').dateEntry({dateFormat: '<?php
echo $this->config->item('crm_date_entry_format');
?>
', spinnerImage:''});
</script>
</div>
</fieldset>
<fieldset>
<legend><?php
echo lang('FINANCIAL_INFO');
?>
示例5: form_label
echo form_label(lang('STATE'), '_account_states_rid');
?>
</div>
<div class="column span-8">
<?php
echo form_dropdown('_account_states_rid', get_states_list(), set_value('_account_states_ridd', $ds->_account_states_rid), 'id="_account_states_rid" readonly="readonly" class="text" ');
?>
</div>
<div class="column span-4">
<?php
echo form_label(lang('DATE'), 'oper_date');
?>
</div>
<div class="column span-8 last">
<?php
echo form_input('oper_date', date_conv(set_value('oper_date', $ds->oper_date)), 'id="oper_date" class="text date-entry" readonly="readonly"');
?>
</div>
<div class="column span-4">
<?php
echo form_label(lang('PAYMENT_TYPE'), 'payment_type');
?>
</div>
<div class="column span-20 last">
<?php
echo form_dropdown('payment_type', get_payment_types(), set_value('payment_type', $ds->payment_type), 'id="payment_type" class="text" ');
?>
</div>
<div class="column span-4">
示例6: form_dropdown
?>
</div>
<div class="column span-20 last">
<?php
echo form_dropdown('_positions_rid', get_positions_list(), set_value('_positions_rid', $ds->_positions_rid), 'id="_positions_rid" class="text"');
?>
</div>
<div class="column span-4">
<?php
echo form_label(lang('BDATE') . required_field(), 'bdate');
?>
</div>
<div class="column span-20 last">
<?php
echo form_input('bdate', date_conv(set_value('bdate', $ds->bdate)), 'id="bdate" class="text date-entry"');
?>
<script type="text/javascript">
$('#bdate').dateEntry({dateFormat: '<?php
echo $this->config->item('crm_date_entry_format');
?>
', spinnerImage:''});
</script>
</div>
<fieldset>
<legend><?php
echo lang('SALARY');
?>
</legend>
<div class="column span-4">
示例7: form_input
echo form_input('doc_to', date_conv(element('_demands_headers.date_doc <=', $search, null)), 'id="doc_to" class="text date-entry"');
?>
<script type="text/javascript">
$('#doc_to').dateEntry({dateFormat: '<?php
echo $this->config->item('crm_date_entry_format');
?>
', spinnerImage:''});
</script>
</div>
<div class="column span-6 last">
<?php
echo form_label(lang('TOUR_NUM'), 'tour_num');
?>
<br>
<?php
echo form_input('tour_num', element('_demands_headers.tour_num', $search, null), 'id="tour_num" class="text" style="width:50px;"');
?>
</div>
<div class="column span-3">
</div>
<div class="column span-5">
<?php
echo form_label(lang('COUNTRY'), '_countries_rid');
?>
<br>
<?php
echo form_dropdown('_countries_rid', get_countries_list(), element('_countries.rid', $search, ''), 'id="_countries_rid" class="text" style="width:150px;"');
?>
</div>
<div class="column span-5">
示例8: form_dropdown
<font color="red">*</font>
</div>
<div class="column span-8">
<?php
echo form_dropdown('_account_states_rid', get_states_list(), set_value('_account_states_rid', ''), 'id="_account_states_rid" class="text" ');
?>
</div>
<div class="column span-4">
<?php
echo form_label(lang('DATE'), 'oper_date');
?>
<font color="red">*</font>
</div>
<div class="column span-8 last">
<?php
echo form_input('oper_date', date_conv(set_value('oper_date', '')), 'id="oper_date" class="text date-entry"');
?>
<script type="text/javascript">
$('#oper_date').dateEntry({dateFormat: '<?php
echo $this->config->item('crm_date_entry_format');
?>
', spinnerImage:''});
</script>
</div>
<div class="column span-4">
<?php
echo form_label(lang('PAYMENT_TYPE'), 'payment_type');
?>
<font color="red">*</font>
</div>
示例9: form_label
</div>
<div class="column span-4">
<?php
echo form_label(lang('F_NAME') . get_field_help('aircalls', 'CLIENT'), 'f_name');
?>
</div>
<div class="column span-20 last">
<?php
echo form_input('f_name', set_value('f_name', ''), 'id="f_name" class="text part-5"');
?>
</div>
<div class="column span-4">
<?php
echo form_label(lang('S_NAME'), 's_name');
?>
</div>
<div class="column span-20 last">
<?php
echo form_input('s_name', set_value('s_name', ''), 'id="s_name" class="text part-5"');
?>
</div>
<div class="column span-4">
<?php
echo form_label(lang('CLIENT') . get_field_help('aircalls', 'CLIENT'), '_clients_rid');
?>
</div>
<div class="column span-20 last">
<?php
echo get_clients_vp(set_value('_clients_rid', null));
?>
示例10: form_input
echo form_input('f_name', set_value('f_name', $ds->f_name), 'id="f_name" readonly="readonly" class="text part-5"');
?>
</div>
<div class="column span-4">
<?php
echo form_label(lang('S_NAME'), 's_name');
?>
</div>
<div class="column span-20 last">
<?php
echo form_input('s_name', set_value('s_name', $ds->s_name), 'id="s_name" readonly="readonly" class="text part-5"');
?>
</div>
<div class="column span-4">
<?php
echo form_label(lang('CLIENT'), '_clients_rid');
?>
</div>
<div class="column span-20 last">
<?php
echo form_input('client_name', get_clientname_byrid(set_value('_clients_rid', $ds->_clients_rid)), 'id="client_name" class="text part-5" readonly="readonly"');
?>
</div>
<div class="column span-4">
<?php
echo form_label(lang('PHONES'), 'phones');
?>
</div>
<div class="column span-20 last">
<?php
echo form_input('phones', set_value('phones', $ds->phones), 'id="phones" readonly="readonly" class="text part-5"');
示例11: validation_errors
?>
<div class="container editform">
<?if(validation_errors()){?>
<div class="error">
<?php
echo validation_errors('<div>', '</div>');
?>
</div>
<?}?>
<?if($success===False){?>
<div class="error">
<?php
echo lang('SAVE_SYSTEM_ERROR');
?>
</div>
<?}?>
<?if($success===True){?>
<div class="success">
<?php
echo lang('SAVE_SYSTEM_SUCCESS');
?>
</div>
<?}?>
<fieldset>
<legend><?php
echo lang('DOCUMENT');
?>
</legend>
<div class="column span-3">
<?php
echo form_label(lang('DATE_DOC') . required_field(), 'date_doc');