Esempio n. 1
0
<?php

echo form_open();
echo toolbar_open('User Edit');
echo toolbar_item('logs', 'Logs', 'log_view.png');
echo toolbar_save();
echo toolbar_apply();
echo toolbar_cancel();
echo toolbar_close();
echo message_note();
?>

<div class='content'>
<table class='DataRow'>
<tr><th>Id:</th><td><?php 
echo $row->id;
?>
</td></tr>
<tr><th>Group:</th><td><?php 
echo form_dropdown('group_id', $groups, $row->group_id);
?>
</td></tr>
<tr><th>Published:</th><td><?php 
echo form_checkbox('is_published', 'True', $row->is_published == 'True');
?>
</td></tr>
<tr><th>Name:</th><td><?php 
echo form_input('name', quotes_to_entities($row->name), 'size="60"');
?>
</td></tr>
<tr><th>Username:</th><td><?php 
Esempio n. 2
0
<?php

echo form_open('admin/uniforms/delete_size');
echo toolbar_open('Multiple Sizes of uniforms');
?>
<div class="btn-toolbar pull-right"><div class="btn-group">
<a href="<?php 
echo base_url();
?>
index.php/admin/uniforms/add_sizes">
<input type="button" class="btn btn-primary" value="+ Add Sizes">
</a>
</div>



<div class="btn-group">
<input type="submit" class="btn btn-primary" value="- Delete Sizes" onclick="return confirm('Are you sure to delete selected items?');">



</div>



</div>




<div style="clear:both; height:20px"></div>
Esempio n. 3
0
<?php

echo form_open();
echo toolbar_open('Staff Edit');
echo toolbar_save();
echo toolbar_apply();
echo toolbar_cancel();
echo toolbar_close();
echo message_note();
?>

<div class='content'>
	
<?php 
echo jquery_tab_open(array('main' => 'Staff', 'assignments' => 'Sites'));
echo jquery_tab_page_open('main');
?>

<div class='toolbar_sub'>
<?php 
echo toolbar_button('google_sync', 'Google Sync', '', '', 'btn-primary btn-sm');
echo toolbar_button('request_setup', 'Request Setup', '', '', 'btn-primary btn-sm');
?>
</div>
<table class='DataRow' cellpadding='0' cellspacing='0'>
<tr><th>Id:</th><td><?php 
echo $row->id;
?>
</td></tr>
<tr><th>Last Name:</th><td><?php 
echo form_input('last_name', quotes_to_entities($row->last_name), 'size="60"');
Esempio n. 4
0
<?php

echo form_open();
echo toolbar_open('Reply Status Edit');
echo toolbar_save();
echo toolbar_apply();
echo toolbar_cancel();
echo toolbar_close();
echo message_note();
?>

<div class='content'>
<table class='DataRow' cellpadding='0' cellspacing='0'>
<tr><th>Id:</th><td><?php 
echo $row->id;
?>
</td></tr>
<tr><th>Number:</th><td><?php 
echo form_input('number', quotes_to_entities($row->number), 'size="10"');
?>
</td></tr>
<tr><th>Title:</th><td><?php 
echo form_input('title', quotes_to_entities($row->title), 'size="60"');
?>
</td></tr>
<tr><th>Code:</th><td><?php 
echo form_input('code', quotes_to_entities($row->code), 'size="10"');
?>
</td></tr>
<tr><th>Color:</th><td><?php 
echo jscolor_picker('background_color', quotes_to_entities($row->background_color), 'size="12"');
Esempio n. 5
0
<?php

echo form_open();
echo toolbar_open('Reply Status');
echo toolbar_reload();
echo toolbar_edit();
echo toolbar_close();
echo message_note();
echo form_sort_order($sort_order);
?>

<div class='content'>
		
		
		
<table cellpadding='0' cellspacing='0' class="DataRows">
<tr>
	<th width="5%"><?php 
echo form_checkids_header();
?>
</th>
	<?php 
echo form_sort_header('title', 'Title');
?>
	<th>Code</th>
	<th>Number</th>
	<th>Id</th>
</tr>
<?php 
foreach ($rows as $row) {
    ?>
Esempio n. 6
0
<?php

echo form_open('admin/duty/url_save');
echo toolbar_open('SOP Configuration');
echo toolbar_item('url_save', 'Save');
echo toolbar_cancel();
echo toolbar_close();
echo message_note();
?>

<div class='content'>
    <table class='DataRow' cellpadding='0' cellspacing='0'>
        <tr><th><i class="glyphicon-1x glyphicon-asterisk text-danger"></i> URL:</th><td><?php 
echo form_input('sop_url', quotes_to_entities($url), 'size="100"');
?>
</td></tr>
    </table>
    </div>

<?php 
echo form_close();
Esempio n. 7
0
<?php

echo form_open();
echo toolbar_open('Schedule Edit');
echo toolbar_save();
echo toolbar_apply();
echo toolbar_cancel();
echo toolbar_close();
echo message_note();
?>

<div class='content'>
<table class='DataRow' cellpadding='0' cellspacing='0'>
<tr><th>Id:</th><td><?php 
echo $row->id;
?>
</td></tr>
<tr><th>Date:</th><td><?php 
echo form_input('start_date', $row->start_date);
?>
</td></tr>
<tr><th>Site:</th><td><?php 
echo form_dropdown('site_id', $site_list, $row->site_id);
?>
</td></tr>
<tr><th>Staff:</th><td><?php 
echo form_dropdown('staff_id', $staff_list, $row->staff_id);
?>
</td></tr>
<tr><th>Work Status:</th><td><?php 
echo form_dropdown('work_status_id', $work_status_list, $row->work_status_id);
Esempio n. 8
0
<?php

echo form_open('admin/uniforms/update_type');
echo toolbar_open('Update Type');
//echo toolbar_item('url_save','Save');
//echo toolbar_close();
?>
<div class="btn-group"><input type="submit" class="btn btn-primary" value=" &nbsp;Update Record" onclick="return validateaddfrm();">
</div>

<div class="btn-group"><a href="<?php 
echo base_url();
?>
index.php/admin/uniforms/typeslist" style="color:#FFF"><input type="button" class="btn btn-primary" value="&laquo; &nbsp;Cancel"></a>
</div>
<?php 
echo toolbar_close();
?>
<input type="hidden" name="u_id" value="<?php 
echo $id;
?>
" id="type_id" />

<div class='content'>
    <table class='DataRow' cellpadding='0' cellspacing='0'>
        <tr><th><i class="glyphicon-1x glyphicon-asterisk text-danger"></i>Type Title:</th><td><input type="text" name="typetitle" id="typetitle" value="<?php 
echo $title;
?>
" /></td></tr>
    </table>
    </div>
Esempio n. 9
0
<?php

echo form_open();
echo toolbar_open('Work Status Edit');
echo toolbar_save();
echo toolbar_apply();
echo toolbar_cancel();
echo toolbar_close();
echo message_note();
?>

<div class='content'>
<table class='DataRow' cellpadding='0' cellspacing='0'>
<tr><th>Id:</th><td><?php 
echo $row->id;
?>
</td></tr>
<tr><th>Title:</th><td><?php 
echo form_input('title', quotes_to_entities($row->title), 'size="60"');
?>
</td></tr>
<tr><th>Code:</th><td><?php 
echo form_input('code', quotes_to_entities($row->code), 'size="10"');
?>
</td></tr>
<tr><th>Text Color:</th><td><?php 
echo jscolor_picker('text_color', quotes_to_entities($row->text_color), 'size="12"');
?>
</td></tr>
<tr><th>Background Color:</th><td><?php 
echo jscolor_picker('background_color', quotes_to_entities($row->background_color), 'size="12"');
Esempio n. 10
0
		
		$.ajax({
			type:"GET",
			async: false,
			//data: {getSitesData,getSitesData},
			data: selectedSites,
			url: SITEURL+"index.php/admin/timesheets/getSiteStaffs/"+selectedSites,
			success: function(msg) {
				document.getElementById("staffNames").innerHTML=msg;
			}
		});	
    });
});
</script>
<?php 
echo toolbar_open('Timesheets');
echo toolbar_close();
?>
<div class='content' style="overflow:auto;">
	<fieldset class='filter'>
	<legend>Filter</legend>
		<?php 
$attributes = array('name' => 'frmTimesheets', 'id' => 'frmTimesheets');
echo form_open('admin/timesheets', $attributes);
?>
			<table cellpadding='0' cellspacing='0' class='filter'>
				<tr>
					<th>Sites</th>
					<th>Staffs</th>
					<th>Month</th>
					<th>&nbsp;</th>
Esempio n. 11
0
<?php

echo form_open();
echo toolbar_open('Twilio Configuration');
echo toolbar_save();
echo toolbar_cancel();
echo toolbar_close();
echo message_note();
?>

<div class='content'>
    <table class='DataRow' cellpadding='0' cellspacing='0'>
        <tr><th><i class="glyphicon-1x glyphicon-asterisk text-danger"></i> SID:</th><td><?php 
echo form_input('twilio_sid', quotes_to_entities($row->twilio_sid), 'size="60"');
?>
</td></tr>
<tr><th><i class="glyphicon-1x glyphicon-asterisk text-danger"></i> Token:</th><td><?php 
echo form_input('twilio_token', quotes_to_entities($row->twilio_token), 'size="60"');
?>
</td></tr>
<tr><th><i class="glyphicon-1x glyphicon-asterisk text-danger"></i> From Number:</th><td><?php 
echo form_input('twilio_number', $row->twilio_number, 'size="20"');
?>
</td></tr>
</table>
    </div>

<?php 
echo form_close();
Esempio n. 12
0
<?php

echo form_open();
echo toolbar_open('Database Backup and Restore', 'Current version ' . $version);
echo toolbar_delete();
echo toolbar_item("backup", "Backup");
echo toolbar_item("restore", "Restore");
echo toolbar_close();
echo message_note();
?>
	
<div class='content'>
<?php 
if (count($rows) == 0) {
    ?>
	<h3>No backup files found</h3>
<?php 
    return;
}
?>

<table cellpadding='0' cellspacing='0' class="DataRows">
<th width="5%"><?php 
echo form_checkids_header();
?>
</th>
<th>Filename</th>
<th>Date Time</th>
<th>Database Name</th>
<th>Version</th>
<th>Size</th>
Esempio n. 13
0
<?php

echo form_open('admin/uniforms/save_type');
echo toolbar_open('Add Type');
//echo toolbar_item('url_save','Save');
//echo toolbar_close();
?>
<div class="btn-group"><input type="submit" class="btn btn-primary" value=" &nbsp;Save" onclick="return validateaddfrm();">
</div>

<div class="btn-group"><a href="<?php 
echo base_url();
?>
index.php/admin/uniforms/typeslist" style="color:#FFF"><input type="button" class="btn btn-primary" value="&laquo; &nbsp;Cancel"></a>
</div>
<?php 
echo toolbar_close();
?>
<div class='content'>
    <table class='DataRow' cellpadding='0' cellspacing='0'>
        <tr><th><i class="glyphicon-1x glyphicon-asterisk text-danger"></i> Type Title:</th><td><input type="text" name="typetitle" id="typetitle" /></td></tr>
    </table>
    </div>

<?php 
echo form_close();
?>

<script>
function validateaddfrm()
{
Esempio n. 14
0
<?php

echo form_open();
echo toolbar_open('Broadcast Message');
echo toolbar_save('SMS', 'glyphicon-comment');
echo toolbar_apply('Call', 'glyphicon-phone');
echo toolbar_cancel('Reset', 'glyphicon-remove');
echo toolbar_close();
echo message_note();
//var_dump($site_list);
?>

<div class='content'>
    <table class='DataRow' cellpadding='0' cellspacing='0'>
        <tr><th><i class="glyphicon-1x glyphicon-asterisk text-danger"></i> Site:</th><td><?php 
echo form_dropdown('site_id', $site_list, '', 'onchange="get_staff(this.value)"');
?>
</td></tr>
<tr><th><i class="glyphicon-1x glyphicon-asterisk text-danger"></i> Staffs:</th><td><?php 
echo form_dropdown('staff_id[]', $staff_list, '', 'id="staff_id" multiple="multiple"');
?>
</td></tr>
<tr><th><i class="glyphicon-1x glyphicon-asterisk text-danger"></i> Message:</th><td><?php 
echo form_textarea('text_msg');
?>
</td></tr>
</table>
    </div>

<?php 
echo form_close();
Esempio n. 15
0
<?php

echo form_open('admin/uniforms/delete_type');
echo toolbar_open('Uniforms In Stock');
?>
<div class="btn-toolbar pull-right"><div class="btn-group">
<a href="<?php 
echo base_url();
?>
index.php/admin/uniforms/add">
<input type="button" class="btn btn-primary" value="+ Add Type">
</a>
</div>



<div class="btn-group">
<input type="submit" class="btn btn-primary" value="- Delete Type" onclick="return confirm('Are you sure to delete selected items?');">



</div>



</div>




<div style="clear:both; height:20px"></div>
Esempio n. 16
0
<?php

echo form_open();
echo toolbar_open('System Control');
echo toolbar_item('build_schedule', 'Build Schedule');
echo toolbar_item('build_data', 'Build Data');
echo toolbar_close();
echo message_note();
?>

<div class='content'>



</div>

<?php 
echo form_close();
Esempio n. 17
0
<?php

echo form_open('admin/uniforms/save_inventory');
echo toolbar_open('Issue/Return Uniform');
//echo toolbar_item('url_save','Save');
?>
<div class="btn-group"><input type="submit" class="btn btn-primary" value=" &nbsp;Save" onclick="return validateaddfrm();">
</div>
<div class="btn-group"><a href="<?php 
echo base_url();
?>
index.php/admin/uniforms/listings" style="color:#FFF"><input type="button" class="btn btn-primary" value="&laquo; &nbsp;Cancel"></a>
</div>
<?php 
echo toolbar_close();
?>
<div class='content'>
<input type="hidden" name="type_id" value="<?php 
echo $id;
?>
" id="type_id" />
<input type="hidden" name="stock" value="" id="stock" />
    <table class='DataRow' cellpadding='0' cellspacing='0' width="50%">
        <tr><th><i class="glyphicon-1x glyphicon-asterisk text-danger"></i> Uniform Title:</th><td><strong><?php 
echo $title;
?>
</strong></td></tr>
         <tr><th><i class="glyphicon-1x glyphicon-asterisk text-danger"></i> Select Size:</th>
         	<td>
            	<select name="size_id" id="size_id" onchange="CheckStock();">
                	<option value="">Select Size</option>
Esempio n. 18
0
<?php

echo form_open();
echo toolbar_open('Database Upgrade', 'Current version ' . $version);
echo toolbar_item("upgrade", "Upgrade");
echo toolbar_close();
echo message_note();
?>
	
<div class='content'>
<table cellpadding='0' cellspacing='0' class="DataRows">
<th width="5%"><?php 
echo form_checkids_header();
?>
</th>
	<th>Filename</th>
	<th>Version From</th>
	<th>Version To</th>
</tr>

<?php 
foreach ($rows as $row) {
    ?>
	
<?php 
    echo form_row_color_open();
    ?>
<td><?php 
    echo form_checkids_item($row->id, $row->name);
    ?>
</td>
Esempio n. 19
0
<?php

echo form_open();
echo toolbar_open('Site Edit');
echo toolbar_save();
echo toolbar_apply();
echo toolbar_cancel();
echo toolbar_close();
echo message_note();
?>

<div class='content'>
	
<?php 
echo jquery_tab_open(array('main' => 'Site', 'shifts' => 'Shift Times', 'assignments' => 'Staff', 'workingdays' => 'Working Days'));
echo jquery_tab_page_open('main');
?>
<table class='DataRow' cellpadding='0' cellspacing='0'>
<tr><th>Id:</th><td><?php 
echo $row->id;
?>
</td></tr>
<tr><th>Name:</th><td><?php 
echo form_input('name', quotes_to_entities($row->name), 'size="60"');
?>
</td></tr>
<tr><th>Code:</th><td><?php 
echo form_input('code', quotes_to_entities($row->code), 'size="60"');
?>
</td></tr>
<tr><th>Street Number:</th><td><?php 
Esempio n. 20
0
<?php

echo form_open();
echo toolbar_open('Users');
echo toolbar_reload();
echo toolbar_toggle_publish();
echo toolbar_delete();
echo toolbar_edit();
echo toolbar_add();
echo toolbar_close();
echo message_note();
echo form_sort_order($sort_order);
?>

<div class='content'>
	
	
<fieldset class='filter'>
<legend>Filter</legend>
<table cellpadding='0' cellspacing='0' class='filter'>
	<tr>
		<th>Name</th>
		<th>Username</th>
		<th>Group</th>
	</tr>
	<tr>
		<td><?php 
echo form_input('filter[name_match]', $filter->name_match);
?>
</td>
		<td><?php 
Esempio n. 21
0
<?php

echo form_open('admin/staff/staffurl_save');
echo toolbar_open('PLRD Active Staff');
echo toolbar_item('staffurl_save', 'Save');
echo toolbar_cancel();
echo toolbar_close();
echo message_note();
?>

<div class='content'>
    <table class='DataRow' cellpadding='0' cellspacing='0'>
        <tr><th><i class="glyphicon-1x glyphicon-asterisk text-danger"></i> URL:</th><td><?php 
echo form_input('staff_url', quotes_to_entities($url), 'size="100"');
?>
</td></tr>
    </table>
    </div>

<?php 
echo form_close();
Esempio n. 22
0
<?php

echo form_open('admin/uniforms/save_items');
echo toolbar_open('Add Uniform Item');
//echo toolbar_item('url_save','Save');
?>

<div class="btn-group"><input type="submit" class="btn btn-primary" value=" &nbsp;Save" onclick="return validateaddfrm();">
</div>

<div class="btn-group"><a href="<?php 
echo base_url();
?>
index.php/admin/uniforms/listings" style="color:#FFF"><input type="button" class="btn btn-primary" value="&laquo; &nbsp;Cancel"></a>
</div>
<?php 
echo toolbar_close();
?>
<div class='content'>
<input type="hidden" name="type_id" value="<?php 
echo $id;
?>
" />
    <table class='DataRow' cellpadding='0' cellspacing='0'>
        <tr><th><i class="glyphicon-1x glyphicon-asterisk text-danger"></i> Uniform Title:</th><td><strong><?php 
echo $title;
?>
</strong></td></tr>
         <tr><th><i class="glyphicon-1x glyphicon-asterisk text-danger"></i> Select Size:</th>
         	<td>
            	<select name="size_id" id="size_id">
Esempio n. 23
0
<?php

echo form_open();
echo toolbar_open('Work Status');
echo toolbar_reload();
echo toolbar_edit();
echo toolbar_close();
echo message_note();
echo form_sort_order($sort_order);
?>

<div class='content'>
		
		
		
<table cellpadding='0' cellspacing='0' class="DataRows">
<tr>
	<th width="5%"><?php 
echo form_checkids_header();
?>
</th>
	<?php 
echo form_sort_header('title', 'Title');
?>
	<th>Code</th>
	<th>Id</th>
</tr>
<?php 
foreach ($rows as $row) {
    ?>
	
Esempio n. 24
0
<?php

echo form_open();
echo toolbar_open('Schedules');
echo toolbar_reload();
echo toolbar_toggle_publish();
echo toolbar_delete();
echo toolbar_edit();
echo toolbar_add();
echo toolbar_close();
echo message_note();
echo form_sort_order($sort_order);
?>

<div class='content'>
		
		
<fieldset class='filter'>
<legend>Filter</legend>
<table cellpadding='0' cellspacing='0' class='filter'>
	<tr>
		<th>Date</th>
		<th>Site</th>
	</tr>
	<tr>
		<td><?php 
echo form_input('filter[start_date]', $filter->start_date);
?>
</td>
		<td><?php 
echo form_dropdown('filter[site_id_match]', $site_list, $filter->site_id_match, 'onchange="this.form.submit();"');
Esempio n. 25
0
<?php

echo form_open();
echo toolbar_open('Staff');
echo toolbar_item('google_staffsync', 'Google Sync');
echo toolbar_reload();
echo toolbar_toggle_publish();
echo toolbar_delete();
echo toolbar_edit();
echo toolbar_add();
echo toolbar_close();
echo message_note();
echo form_sort_order($sort_order);
?>

<div class='content'>
		
		
<fieldset class='filter'>
<legend>Filter</legend>
<table cellpadding='0' cellspacing='0' class='filter'>
	<tr>
		<th>Name</th>
		<th>Published</th>
	</tr>
	<tr>
		<td><?php 
echo form_input('filter[name_match]', $filter->name_match);
?>
</td>
		<td><?php 
Esempio n. 26
0
<?php

echo form_open();
echo toolbar_open('System Configuration');
echo toolbar_save();
echo toolbar_close();
echo message_note();
?>

<div class='content'>
<table class='DataRow' cellpadding='0' cellspacing='0'>
        <tr><th><i class="glyphicon-1x glyphicon-asterisk text-danger"></i> Automatic Call Confirmation:</th><td><?php 
echo form_checkbox('autocall_confirm', 'True', $row->autocall_confirm == 'True');
?>
</td></tr>
        <tr><th><i class="glyphicon-1x glyphicon-asterisk text-danger"></i> Automatic Call Confirmation Time Before:</th><td><?php 
echo form_input('autocall_time', quotes_to_entities($row->autocall_time), 'size="30" placeholder="0"');
?>
 Minutes<br/><span class="note">Keep 0 If want to confirm on shift start time</span></td></tr>
        <tr><th><i class="glyphicon-1x glyphicon-asterisk text-danger"></i> Check-in Reminder SMS:</th><td><?php 
echo form_checkbox('check_in_alert', 'True', $row->check_in_alert == 'True');
?>
</td></tr>
        <tr><th><i class="glyphicon-1x glyphicon-asterisk text-danger"></i> Check-out Reminder SMS:</th><td><?php 
echo form_checkbox('check_out_alert', 'True', $row->check_out_alert == 'True');
?>
</td></tr>
        <tr><th><i class="glyphicon-1x glyphicon-asterisk text-danger"></i> SOP Alert By Calls:</th><td><?php 
echo form_checkbox('sop_alert', 'True', $row->sop_alert == 'True');
?>
</td></tr>
Esempio n. 27
0
<?php

echo form_open();
echo toolbar_open('Duty');
//echo toolbar_reload();
//echo toolbar_item('google_sitesync','Google Sync');
//echo toolbar_item('site_upload','Upload Excel Sheet');
////echo toolbar_button('send_dutysms', 'Send SMS');
//echo toolbar_toggle_publish();
//echo toolbar_delete();
//echo toolbar_edit();
//echo toolbar_add();
echo toolbar_send('Send', 'Send');
echo toolbar_close();
//echo toolbar_open('');
//echo toolbar_item('google_sitesync/sites','Google Sync');
//echo toolbar_close();
echo message_note();
echo form_sort_order($sort_order);
?>

<div class='content'>  
		
		
<!--<fieldset class='filter'>
<legend>Filter</legend>
<table cellpadding='0' cellspacing='0' class='filter'>
	<tr>
		<th>Name</th>
		<th>Published</th>
	</tr>
Esempio n. 28
0
<?php

echo form_open('admin/uniforms/update_sizes');
echo toolbar_open('Update Sizes');
?>
<div class="btn-group"><input type="submit" class="btn btn-primary" value=" &nbsp;Save" onclick="return validateaddfrm();">
</div>
<?php 
echo toolbar_close();
?>
<input type="hidden" name="s_id" value="<?php 
echo $id;
?>
" id="s_id" />

<div class='content'>
    <table class='DataRow' cellpadding='0' cellspacing='0'>
        <tr><th><i class="glyphicon-1x glyphicon-asterisk text-danger"></i> Size Title:</th><td><input type="text" value="<?php 
echo $size;
?>
" name="typetitle" id="typetitle" /></td></tr>
    </table>
    </div>

<?php 
echo form_close();
?>
<script>
function validateaddfrm()
{
	if(document.getElementById('typetitle').value=="")
Esempio n. 29
0
<?php

echo form_open();
echo toolbar_open('Sites');
echo toolbar_item('google_sitesync', 'Google Sync');
echo toolbar_reload();
echo toolbar_toggle_publish();
echo toolbar_delete();
echo toolbar_edit();
echo toolbar_add();
echo toolbar_close();
echo message_note();
echo form_sort_order($sort_order);
?>

<div class='content'>
		
		
<fieldset class='filter'>
<legend>Filter</legend>
<table cellpadding='0' cellspacing='0' class='filter'>
	<tr>
		<th>Name</th>
		<th>Published</th>
	</tr>
	<tr>
		<td><?php 
echo form_input('filter[name_match]', $filter->name_match);
?>
</td>
		<td><?php 
Esempio n. 30
0
<?php

echo form_open();
?>

<?php 
echo toolbar_open('Uniforms Stock History');
?>
<div class='content'>  
		
	<div class='container text-center'><?php 
echo $pagination_links;
?>
</div>		

		
<table cellpadding='0' cellspacing='0' class="DataRows">
<tr>
	<th width="5%">#</th>
    <th width='15%'>Action</th>
  	<th width='35%'>Type</th>
    <th width='15%'>Name</th>
    <th width='15%'>Quantity</th>
    <th width='15%'>Time</th>
    
</tr>
<?php 
$i = $this->uri->segment(4) ? $this->uri->segment(4) : 0;
foreach ($rows as $row) {
    $i++;
    ?>