Пример #1
0
<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">
	&nbsp;
</div>
<div class="clear"></div>
<div class="column span-3">
	&nbsp;
</div>
Пример #2
0
</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));
?>
Пример #3
0
    $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;
}
?>
Пример #4
0
?>
</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>
Пример #5
0
<div class="column span-7">
	<?php 
echo form_label('Id', 'rid');
?>
	<br>
	<?php 
echo form_input('rid', element('_documents.rid', $search, ''), 'id="rid" class="text" style="width:90px;"');
?>
</div>
<div class="column span-7">
	<?php 
echo form_label(lang('DOC_FROM'), 'doc_from');
?>
	<br>
	<?php 
echo form_input('doc_from', date_conv(element('_emp_to_positions_headers.date_doc >=', $search, null)), 'id="doc_from" class="text date-entry"');
?>
	<script type="text/javascript">
		$('#doc_from').dateEntry({dateFormat: '<?php 
echo $this->config->item('crm_date_entry_format');
?>
', spinnerImage:''});
	</script>
</div>
<div class="column span-7 last">
	<?php 
echo form_label(lang('DOC_TO'), 'doc_to');
?>
	<br>
	<?php 
echo form_input('doc_to', date_conv(element('_emp_to_positions_headers.date_doc <=', $search, null)), 'id="doc_to" class="text date-entry"');
Пример #6
0
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');
?>
Пример #7
0
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">
Пример #8
0
?>
</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">
Пример #9
0
<div class="column span-6">
	<?php 
echo form_label('Id', 'rid');
?>
	<br>
	<?php 
echo form_input('rid', element('_documents.rid', $search, ''), 'id="rid" class="text part"');
?>
</div>
<div class="column span-7">
	<?php 
echo form_label(lang('DOC_FROM'), 'doc_from');
?>
	<br>
	<?php 
echo form_input('doc_from', date_conv(element('_advertises_headers.date_doc >=', $search, null)), 'id="doc_from" class="text date-entry"');
?>
	<script type="text/javascript">
		$('#doc_from').dateEntry({dateFormat: '<?php 
echo $this->config->item('crm_date_entry_format');
?>
', spinnerImage:''});
	</script>
</div>
<div class="column span-8 last">
	<?php 
echo form_label(lang('DOC_TO'), 'doc_to');
?>
	<br>
	<?php 
echo form_input('doc_to', date_conv(element('_advertises_headers.date_doc <=', $search, null)), 'id="doc_to" class="text date-entry"');
Пример #10
0
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
0
	<script type="text/javascript">
		$('#departure').dateEntry({dateFormat: '<?php 
echo $this->config->item('crm_date_entry_format');
?>
', spinnerImage:''});
	</script>
</div>	
<div class="column span-4">
	<?php 
echo form_label(lang('ARRIVAL') . required_field(), 'arrival');
?>
 
</div>
<div class="column span-8 last">
	<?php 
echo form_input('arrival', date_conv(set_value('arrival', date('Y-m-d'))), 'id="arrival" class="text date-entry"');
?>
	<script type="text/javascript">
		$('#arrival').dateEntry({dateFormat: '<?php 
echo $this->config->item('crm_date_entry_format');
?>
', spinnerImage:''});
	</script>
</div>	
<div class="column span-24 last controls">
	<?php 
echo form_button('add_route_row', lang('ADD'), 'id="add_route_row" class="button"');
?>
</div>
</fieldset>
Пример #12
0
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">
	&nbsp;
</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">
Пример #13
0
 <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>
Пример #14
0
</legend>
	<div class="column span-4">
		<?php 
echo form_label(lang('DATE_DOC'), 'date_doc');
?>
 <font color="red">*</font>
	</div>
	<div class="column span-20 last">
		<?php 
echo form_input('date_doc', date_conv(set_value('date_doc', date('Y-m-d'))), '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>
<div class="column span-4">
	<?php 
echo form_label(lang('EMPLOYEER'), 'full_name');
?>
 <font color="red">*</font>
</div>
<div class="column span-20 last">
	<?php 
echo get_employeers_vp(set_value('_employeers_rid', null));
?>
</div>
<div class="column span-4">
Пример #15
0
?>
<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');