mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-05-05 22:35:29 -04:00
Bootstrapify sales and receivings forms (#116)
This commit is contained in:
@@ -59,9 +59,9 @@ class Reports extends Secure_area
|
||||
|
||||
$report_data = $model->getDataBySaleId($sale_id);
|
||||
|
||||
$summary_data = array(anchor('sales/edit/'.$report_data['sale_id'] . '/width:'.FORM_WIDTH,
|
||||
$summary_data = array(anchor('sales/edit/'.$report_data['sale_id'],
|
||||
'POS '.$report_data['sale_id'],
|
||||
array('class' => 'modal')),
|
||||
array('class' => 'modal-dlg modal-btn-submit')),
|
||||
$report_data['sale_date'],
|
||||
$report_data['items_purchased'],
|
||||
$report_data['employee_name'],
|
||||
@@ -872,7 +872,7 @@ class Reports extends Secure_area
|
||||
|
||||
foreach($report_data['summary'] as $key=>$row)
|
||||
{
|
||||
$summary_data[] = array(anchor('sales/edit/'.$row['sale_id'] . '/width:'.FORM_WIDTH, 'POS '.$row['sale_id'], array('class' => 'modal')), $row['sale_date'], $row['items_purchased'], $row['employee_name'], $row['customer_name'], to_currency($row['subtotal']), to_currency($row['total']), to_currency($row['tax']), to_currency($row['cost']), to_currency($row['profit']), $row['payment_type'], $row['comment']);
|
||||
$summary_data[] = array(anchor('sales/edit/'.$row['sale_id'], 'POS '.$row['sale_id'], array('class' => 'modal-dlg modal-btn-submit')), $row['sale_date'], $row['items_purchased'], $row['employee_name'], $row['customer_name'], to_currency($row['subtotal']), to_currency($row['total']), to_currency($row['tax']), to_currency($row['cost']), to_currency($row['profit']), $row['payment_type'], $row['comment']);
|
||||
|
||||
foreach($report_data['details'][$key] as $drow)
|
||||
{
|
||||
@@ -915,7 +915,7 @@ class Reports extends Secure_area
|
||||
|
||||
foreach($report_data['summary'] as $key=>$row)
|
||||
{
|
||||
$summary_data[] = array(anchor('receivings/edit/'.$row['receiving_id'].'/width:'.FORM_WIDTH, 'RECV '.$row['receiving_id'], array('class' => 'modal')), $row['receiving_date'], $row['items_purchased'], $row['employee_name'], $row['supplier_name'], to_currency($row['total']), $row['payment_type'], $row['invoice_number'], $row['comment']);
|
||||
$summary_data[] = array(anchor('receivings/edit/'.$row['receiving_id'], 'RECV '.$row['receiving_id'], array('class' => 'modal-dlg modal-btn-submit')), $row['receiving_date'], $row['items_purchased'], $row['employee_name'], $row['supplier_name'], to_currency($row['total']), $row['payment_type'], $row['invoice_number'], $row['comment']);
|
||||
|
||||
foreach($report_data['details'][$key] as $drow)
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<fieldset id="item_basic_info">
|
||||
<legend><?php echo $this->lang->line("items_basic_information"); ?></legend>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label($this->lang->line('items_item_number'), 'item_number',array('class'=>'control-label col-xs-3')); ?>
|
||||
<div class='col-xs-6'>
|
||||
<?php echo form_input(array(
|
||||
@@ -18,7 +18,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label($this->lang->line('items_name'), 'name',array('class'=>'required control-label col-xs-3')); ?>
|
||||
<div class='col-xs-6'>
|
||||
<?php echo form_input(array(
|
||||
@@ -30,7 +30,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label($this->lang->line('items_category'), 'category',array('class'=>'required control-label col-xs-3')); ?>
|
||||
<div class='col-xs-6'>
|
||||
<?php echo form_input(array(
|
||||
@@ -42,18 +42,18 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label($this->lang->line('items_supplier'), 'supplier',array('class'=>'required control-label col-xs-3')); ?>
|
||||
<div class='col-xs-6'>
|
||||
<?php echo form_dropdown('supplier_id', $suppliers, $selected_supplier, 'class="form-control"');?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label($this->lang->line('items_cost_price'), 'cost_price',array('class'=>'required control-label col-xs-3')); ?>
|
||||
<div class="col-xs-3">
|
||||
|
||||
<div class="input-group">
|
||||
<div class="input-group input-group-sm">
|
||||
<span class="input-group-addon"><?php echo $this->config->item('currency_symbol'); ?></span>
|
||||
<?php echo form_input(array(
|
||||
'name'=>'cost_price',
|
||||
@@ -65,10 +65,10 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label($this->lang->line('items_unit_price'), 'unit_price',array('class'=>'required control-label col-xs-3')); ?>
|
||||
<div class='col-xs-3'>
|
||||
<div class="input-group">
|
||||
<div class="input-group input-group-sm">
|
||||
<span class="input-group-addon"><?php echo $this->config->item('currency_symbol'); ?></span>
|
||||
<?php echo form_input(array(
|
||||
'name'=>'unit_price',
|
||||
@@ -80,7 +80,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label($this->lang->line('items_tax_1'), 'tax_percent_1',array('class'=>'control-label col-xs-3')); ?>
|
||||
<div class='col-sm-3'>
|
||||
<?php echo form_input(array(
|
||||
@@ -91,7 +91,7 @@
|
||||
);?>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="input-group">
|
||||
<div class="input-group input-group-sm">
|
||||
<?php echo form_input(array(
|
||||
'name'=>'tax_percents[]',
|
||||
'id'=>'tax_percent_name_1',
|
||||
@@ -104,7 +104,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label($this->lang->line('items_tax_2'), 'tax_percent_2',array('class'=>'control-label col-xs-3')); ?>
|
||||
<div class='col-sm-3'>
|
||||
<?php echo form_input(array(
|
||||
@@ -115,7 +115,7 @@
|
||||
);?>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="input-group">
|
||||
<div class="input-group input-group-sm">
|
||||
<?php echo form_input(array(
|
||||
'name'=>'tax_percents[]',
|
||||
'class'=>'form-control',
|
||||
@@ -131,7 +131,7 @@
|
||||
foreach($stock_locations as $key=>$location_detail)
|
||||
{
|
||||
?>
|
||||
<div class="form-group">
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label($this->lang->line('items_quantity').' '.$location_detail['location_name'] ,
|
||||
$key.'_quantity',
|
||||
array('class'=>'required control-label col-xs-3')); ?>
|
||||
@@ -148,7 +148,7 @@
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label($this->lang->line('items_receiving_quantity'), 'receiving_quantity',array('class'=>'control-label col-xs-3')); ?>
|
||||
<div class='col-xs-2'>
|
||||
<?php echo form_input(array(
|
||||
@@ -160,7 +160,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label($this->lang->line('items_reorder_level'), 'reorder_level',array('class'=>'required control-label col-xs-3')); ?>
|
||||
<div class='col-xs-2'>
|
||||
<?php echo form_input(array(
|
||||
@@ -172,7 +172,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label($this->lang->line('items_description'), 'description',array('class'=>'control-label col-xs-3')); ?>
|
||||
<div class='col-xs-6'>
|
||||
<?php echo form_textarea(array(
|
||||
@@ -184,7 +184,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label($this->lang->line('items_image'), 'item_image',array('class'=>'control-label col-xs-3')); ?>
|
||||
<div class='col-xs-6'>
|
||||
<label class="file">
|
||||
@@ -194,7 +194,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label($this->lang->line('items_allow_alt_description'), 'allow_alt_description',array('class'=>'control-label col-xs-3')); ?>
|
||||
<div class='col-xs-1'>
|
||||
<?php echo form_checkbox(array(
|
||||
@@ -206,7 +206,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label($this->lang->line('items_is_serialized'), 'is_serialized',array('class'=>'control-label col-xs-3')); ?>
|
||||
<div class='col-xs-1'>
|
||||
<?php echo form_checkbox(array(
|
||||
@@ -218,7 +218,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label($this->lang->line('items_is_deleted'), 'is_deleted',array('class'=>'control-label col-xs-3')); ?>
|
||||
<div class='col-xs-1'>
|
||||
<?php echo form_checkbox(array(
|
||||
@@ -238,7 +238,7 @@
|
||||
{
|
||||
$item_arr = (array)$item_info;
|
||||
?>
|
||||
<div class="form-group">
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label($this->config->item('custom'.$i.'_name'), 'custom'.$i,array('class'=>'control-label col-xs-3')); ?>
|
||||
<div class='col-xs-6'>
|
||||
<?php echo form_input(array(
|
||||
|
||||
@@ -3,57 +3,51 @@
|
||||
<ul id="error_message_box" class="error_message_box"></ul>
|
||||
|
||||
<fieldset id="receiving_basic_info">
|
||||
<?php echo form_open("receivings/save/".$receiving_info['receiving_id'],array('id'=>'recvs_edit_form')); ?>
|
||||
<?php echo form_open("receivings/save/".$receiving_info['receiving_id'],array('id'=>'recvs_edit_form', 'class' => 'form-horizontal')); ?>
|
||||
<legend><?php echo $this->lang->line("recvs_basic_information"); ?></legend>
|
||||
|
||||
<div class="field_row clearfix">
|
||||
<?php echo form_label($this->lang->line('recvs_receipt_number').':', 'supplier'); ?>
|
||||
<div class='form_field'>
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label($this->lang->line('recvs_receipt_number'), 'supplier', array('class' => 'control-label col-xs-3')); ?>
|
||||
<div class='col-xs-6'>
|
||||
<?php echo anchor('receivings/receipt/'.$receiving_info['receiving_id'], $this->lang->line('recvs_receipt_number') .$receiving_info['receiving_id'], array('target' => '_blank'));?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="field_row clearfix">
|
||||
<?php echo form_label($this->lang->line('recvs_date').':', 'date'); ?>
|
||||
<div class='form_field'>
|
||||
<?php echo form_input(array('name'=>'date','value'=>date($this->config->item('dateformat') . ' ' . $this->config->item('timeformat'), strtotime($receiving_info['receiving_time'])), 'id'=>'datetime', 'readonly'=>'true'));?>
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label($this->lang->line('recvs_date'), 'date', array('class' => 'control-label col-xs-3')); ?>
|
||||
<div class='col-xs-6'>
|
||||
<?php echo form_input(array('name'=>'date','value'=>date($this->config->item('dateformat') . ' ' . $this->config->item('timeformat'), strtotime($receiving_info['receiving_time'])), 'id'=>'datetime', 'class' => 'form-control', 'readonly'=>'true'));?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="field_row clearfix">
|
||||
<?php echo form_label($this->lang->line('recvs_supplier').':', 'supplier'); ?>
|
||||
<div class='form_field'>
|
||||
<?php echo form_input(array('name' => 'supplier_id', 'value' => $selected_supplier, 'id' => 'supplier_id'));?>
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label($this->lang->line('recvs_supplier'), 'supplier', array('class' => 'control-label col-xs-3')); ?>
|
||||
<div class='col-xs-6'>
|
||||
<?php echo form_input(array('name' => 'supplier_id', 'value' => $selected_supplier, 'id' => 'supplier_id', 'class'=>'form-control'));?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="field_row clearfix">
|
||||
<?php echo form_label($this->lang->line('recvs_invoice_number').':', 'invoice_number'); ?>
|
||||
<div class='form_field'>
|
||||
<?php echo form_input(array('name' => 'invoice_number', 'value' => $receiving_info['invoice_number'], 'id' => 'invoice_number'));?>
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label($this->lang->line('recvs_invoice_number'), 'invoice_number', array('class' => 'control-label col-xs-3')); ?>
|
||||
<div class='col-xs-6'>
|
||||
<?php echo form_input(array('name' => 'invoice_number', 'value' => $receiving_info['invoice_number'], 'id' => 'invoice_number', 'class' => 'form-control'));?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="field_row clearfix">
|
||||
<?php echo form_label($this->lang->line('recvs_employee').':', 'employee'); ?>
|
||||
<div class='form_field'>
|
||||
<?php echo form_dropdown('employee_id', $employees, $receiving_info['employee_id'], 'id="employee_id"');?>
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label($this->lang->line('recvs_employee'), 'employee', array('class' => 'control-label col-xs-3')); ?>
|
||||
<div class='col-xs-6'>
|
||||
<?php echo form_dropdown('employee_id', $employees, $receiving_info['employee_id'], 'id="employee_id" class="form-control"');?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="field_row clearfix">
|
||||
<?php echo form_label($this->lang->line('recvs_comments').':', 'comment'); ?>
|
||||
<div class='form_field'>
|
||||
<?php echo form_textarea(array('name'=>'comment','value'=>$receiving_info['comment'],'rows'=>'4','cols'=>'23', 'id'=>'comment'));?>
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label($this->lang->line('recvs_comments'), 'comment', array('class' => 'control-label col-xs-3')); ?>
|
||||
<div class='col-xs-6'>
|
||||
<?php echo form_textarea(array('name'=>'comment','value'=>$receiving_info['comment'], 'id'=>'comment', 'class' => 'form-control'));?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php echo form_submit(array(
|
||||
'name'=>'submit',
|
||||
'value'=>$this->lang->line('common_submit'),
|
||||
'class'=> 'btn btn-primary btn-sm pull-right')
|
||||
);
|
||||
?>
|
||||
|
||||
<?php echo form_close(); ?>
|
||||
|
||||
<?php echo form_open("receivings/delete/".$receiving_info['receiving_id'],array('id'=>'recvs_delete_form')); ?>
|
||||
|
||||
@@ -3,63 +3,57 @@
|
||||
<ul id="error_message_box" class="error_message_box"></ul>
|
||||
|
||||
<fieldset id="sale_basic_info">
|
||||
<?php echo form_open("sales/save/".$sale_info['sale_id'], array('id'=>'sales_edit_form')); ?>
|
||||
<?php echo form_open("sales/save/".$sale_info['sale_id'], array('id'=>'sales_edit_form', 'class' => 'form-horizontal')); ?>
|
||||
<legend><?php echo $this->lang->line("sales_basic_information"); ?></legend>
|
||||
|
||||
<div class="field_row clearfix">
|
||||
<?php echo form_label($this->lang->line('sales_receipt_number').':', 'customer'); ?>
|
||||
<div class='form_field'>
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label($this->lang->line('sales_receipt_number'), 'customer', array('class' => 'control-label col-xs-3')); ?>
|
||||
<div class='col-xs-6'>
|
||||
<?php echo anchor('sales/receipt/'.$sale_info['sale_id'], $this->lang->line('sales_receipt_number') .$sale_info['sale_id'], array('target' => '_blank'));?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="field_row clearfix">
|
||||
<?php echo form_label($this->lang->line('sales_date').':', 'date'); ?>
|
||||
<div class='form_field'>
|
||||
<?php echo form_input(array('name'=>'date','value'=>date($this->config->item('dateformat') . ' ' . $this->config->item('timeformat'), strtotime($sale_info['sale_time'])), 'id'=>'datetime', 'readonly'=>'true'));?>
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label($this->lang->line('sales_date'), 'date', array('class' => 'control-label col-xs-3')); ?>
|
||||
<div class='col-xs-6'>
|
||||
<?php echo form_input(array('name'=>'date','value'=>date($this->config->item('dateformat') . ' ' . $this->config->item('timeformat'), strtotime($sale_info['sale_time'])), 'id'=>'datetime', 'class' => 'form-control', 'readonly'=>'true'));?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="field_row clearfix">
|
||||
<?php echo form_label($this->lang->line('sales_invoice_number').':', 'invoice_number'); ?>
|
||||
<div class='form_field'>
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label($this->lang->line('sales_invoice_number'), 'invoice_number', array('class' => 'control-label col-xs-3')); ?>
|
||||
<div class='col-xs-6'>
|
||||
<?php if (isset($sale_info["invoice_number"]) && !empty($sale_info["invoice_number"]) &&
|
||||
isset($sale_info['customer_id']) && isset($sale_info['email']) && !empty($sale_info['email'])): ?>
|
||||
<?php echo form_input(array('name'=>'invoice_number', 'size'=>10, 'value'=>$sale_info['invoice_number'], 'id'=>'invoice_number'));?>
|
||||
<?php echo form_input(array('name'=>'invoice_number', 'size'=>10, 'value'=>$sale_info['invoice_number'], 'id'=>'invoice_number', 'class' => 'form-control'));?>
|
||||
<a id="send_invoice" href="javascript:void(0);"><?=$this->lang->line('sales_send_invoice')?></a>
|
||||
<?php else: ?>
|
||||
<?php echo form_input(array('name'=>'invoice_number', 'value'=>$sale_info['invoice_number'], 'id'=>'invoice_number'));?>
|
||||
<?php echo form_input(array('name'=>'invoice_number', 'value'=>$sale_info['invoice_number'], 'id'=>'invoice_number', 'class' => 'form-control'));?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="field_row clearfix">
|
||||
<?php echo form_label($this->lang->line('sales_customer').':', 'customer'); ?>
|
||||
<div class='form_field'>
|
||||
<?php echo form_input(array('name' => 'customer_id', 'value' => $selected_customer, 'id' => 'customer_id'));?>
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label($this->lang->line('sales_customer'), 'customer', array('class' => 'control-label col-xs-3')); ?>
|
||||
<div class='col-xs-6'>
|
||||
<?php echo form_input(array('name' => 'customer_id', 'value' => $selected_customer, 'id' => 'customer_id', 'class' => 'form-control'));?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="field_row clearfix">
|
||||
<?php echo form_label($this->lang->line('sales_employee').':', 'employee'); ?>
|
||||
<div class='form_field'>
|
||||
<?php echo form_dropdown('employee_id', $employees, $sale_info['employee_id'], 'id="employee_id"');?>
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label($this->lang->line('sales_employee'), 'employee', array('class' => 'control-label col-xs-3')); ?>
|
||||
<div class='col-xs-6'>
|
||||
<?php echo form_dropdown('employee_id', $employees, $sale_info['employee_id'], 'id="employee_id" class="form-control"');?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="field_row clearfix">
|
||||
<?php echo form_label($this->lang->line('sales_comment').':', 'comment'); ?>
|
||||
<div class='form_field'>
|
||||
<?php echo form_textarea(array('name'=>'comment', 'value'=>$sale_info['comment'], 'rows'=>'4', 'cols'=>'23', 'id'=>'comment'));?>
|
||||
<div class="form-group form-group-sm">
|
||||
<?php echo form_label($this->lang->line('sales_comment'), 'comment',array('class' => 'control-label col-xs-3')); ?>
|
||||
<div class='col-xs-6'>
|
||||
<?php echo form_textarea(array('name'=>'comment', 'value'=>$sale_info['comment'], 'id'=>'comment', 'class' => 'form-control'));?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php echo form_submit(array(
|
||||
'name' => 'submit',
|
||||
'value' => $this->lang->line('common_submit'),
|
||||
'class' => 'btn btn-primary btn-sm pull-right')
|
||||
);
|
||||
?>
|
||||
<?php echo form_close(); ?>
|
||||
|
||||
<?php echo form_open("sales/delete/".$sale_info['sale_id'], array('id'=>'sales_delete_form')); ?>
|
||||
@@ -107,106 +101,7 @@ $(document).ready(function()
|
||||
}).responseText).success;
|
||||
}, '<?php echo $this->lang->line("sales_invoice_number_duplicate"); ?>');
|
||||
|
||||
// set the locale language for the datetime picker
|
||||
$.fn.datetimepicker.dates['<?php echo $this->config->item("language"); ?>'] = {
|
||||
days: ["<?php echo $this->lang->line("common_days_sunday"); ?>",
|
||||
"<?php echo $this->lang->line("common_days_monday"); ?>",
|
||||
"<?php echo $this->lang->line("common_days_tueday"); ?>",
|
||||
"<?php echo $this->lang->line("common_days_wednesday"); ?>",
|
||||
"<?php echo $this->lang->line("common_days_thursday"); ?>",
|
||||
"<?php echo $this->lang->line("common_days_friday"); ?>",
|
||||
"<?php echo $this->lang->line("common_days_saturday"); ?>",
|
||||
"<?php echo $this->lang->line("common_days_sunday"); ?>"],
|
||||
daysShort: ["<?php echo $this->lang->line("common_daysshort_sunday"); ?>",
|
||||
"<?php echo $this->lang->line("common_daysshort_monday"); ?>",
|
||||
"<?php echo $this->lang->line("common_daysshort_tueday"); ?>",
|
||||
"<?php echo $this->lang->line("common_daysshort_wednesday"); ?>",
|
||||
"<?php echo $this->lang->line("common_daysshort_thursday"); ?>",
|
||||
"<?php echo $this->lang->line("common_daysshort_friday"); ?>",
|
||||
"<?php echo $this->lang->line("common_daysshort_saturday"); ?>",
|
||||
"<?php echo $this->lang->line("common_daysshort_sunday"); ?>"],
|
||||
daysMin: ["<?php echo $this->lang->line("common_daysmin_sunday"); ?>",
|
||||
"<?php echo $this->lang->line("common_daysmin_monday"); ?>",
|
||||
"<?php echo $this->lang->line("common_daysmin_tueday"); ?>",
|
||||
"<?php echo $this->lang->line("common_daysmin_wednesday"); ?>",
|
||||
"<?php echo $this->lang->line("common_daysmin_thursday"); ?>",
|
||||
"<?php echo $this->lang->line("common_daysmin_friday"); ?>",
|
||||
"<?php echo $this->lang->line("common_daysmin_saturday"); ?>",
|
||||
"<?php echo $this->lang->line("common_daysmin_sunday"); ?>"],
|
||||
months: ["<?php echo $this->lang->line("common_months_january"); ?>",
|
||||
"<?php echo $this->lang->line("common_months_february"); ?>",
|
||||
"<?php echo $this->lang->line("common_months_march"); ?>",
|
||||
"<?php echo $this->lang->line("common_months_april"); ?>",
|
||||
"<?php echo $this->lang->line("common_months_may"); ?>",
|
||||
"<?php echo $this->lang->line("common_months_june"); ?>",
|
||||
"<?php echo $this->lang->line("common_months_july"); ?>",
|
||||
"<?php echo $this->lang->line("common_months_august"); ?>",
|
||||
"<?php echo $this->lang->line("common_months_september"); ?>",
|
||||
"<?php echo $this->lang->line("common_months_october"); ?>",
|
||||
"<?php echo $this->lang->line("common_months_november"); ?>",
|
||||
"<?php echo $this->lang->line("common_months_december"); ?>"],
|
||||
monthsShort: ["<?php echo $this->lang->line("common_monthsshort_january"); ?>",
|
||||
"<?php echo $this->lang->line("common_monthsshort_february"); ?>",
|
||||
"<?php echo $this->lang->line("common_monthsshort_march"); ?>",
|
||||
"<?php echo $this->lang->line("common_monthsshort_april"); ?>",
|
||||
"<?php echo $this->lang->line("common_monthsshort_may"); ?>",
|
||||
"<?php echo $this->lang->line("common_monthsshort_june"); ?>",
|
||||
"<?php echo $this->lang->line("common_monthsshort_july"); ?>",
|
||||
"<?php echo $this->lang->line("common_monthsshort_august"); ?>",
|
||||
"<?php echo $this->lang->line("common_monthsshort_september"); ?>",
|
||||
"<?php echo $this->lang->line("common_monthsshort_october"); ?>",
|
||||
"<?php echo $this->lang->line("common_monthsshort_november"); ?>",
|
||||
"<?php echo $this->lang->line("common_monthsshort_december"); ?>"],
|
||||
today: "<?php echo $this->lang->line("common_today"); ?>",
|
||||
<?php
|
||||
if( strpos($this->config->item('timeformat'), 'a') !== false )
|
||||
{
|
||||
?>
|
||||
meridiem: ["am", "pm"],
|
||||
<?php
|
||||
}
|
||||
else if( strpos($this->config->item('timeformat'), 'A') !== false )
|
||||
{
|
||||
?>
|
||||
meridiem: ["AM", "PM"],
|
||||
<?php
|
||||
}
|
||||
else
|
||||
{
|
||||
?>
|
||||
meridiem: [],
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
weekStart: <?php echo $this->lang->line("common_weekstart"); ?>,
|
||||
};
|
||||
|
||||
$('#datetime').datetimepicker({
|
||||
format: "<?php echo dateformat_bootstrap($this->config->item("dateformat")) . ' ' . dateformat_bootstrap($this->config->item("timeformat"));?>",
|
||||
startDate: "<?php echo date($this->config->item('dateformat') . ' ' . $this->config->item('timeformat'), mktime(0, 0, 0, 1, 1, 2010));?>",
|
||||
<?php
|
||||
$t = $this->config->item('timeformat');
|
||||
$m = $t[strlen($t)-1];
|
||||
if( strpos($this->config->item('timeformat'), 'a') !== false || strpos($this->config->item('timeformat'), 'A') !== false )
|
||||
{
|
||||
?>
|
||||
showMeridian: true,
|
||||
<?php
|
||||
}
|
||||
else
|
||||
{
|
||||
?>
|
||||
showMeridian: false,
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
minuteStep: 1,
|
||||
autoclose: true,
|
||||
todayBtn: true,
|
||||
todayHighlight: true,
|
||||
bootcssVer: 3,
|
||||
language: "<?php echo $this->config->item('language'); ?>"
|
||||
});
|
||||
<?php $this->load->view('partial/datepicker_locale'); ?>
|
||||
|
||||
var format_item = function(row)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user