@@ -1,30 +1,30 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | - $this->set_css($this->default_theme_path.'/dashboard/css/style.css'); |
|
| 3 | - $this->set_js_lib($this->default_javascript_path.'/'.grocery_CRUD::JQUERY); |
|
| 2 | + $this->set_css($this->default_theme_path.'/dashboard/css/style.css'); |
|
| 3 | + $this->set_js_lib($this->default_javascript_path.'/'.grocery_CRUD::JQUERY); |
|
| 4 | 4 | |
| 5 | - $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/jquery.noty.js'); |
|
| 6 | - $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/config/jquery.noty.config.js'); |
|
| 7 | - $this->set_js_lib($this->default_javascript_path.'/common/lazyload-min.js'); |
|
| 5 | + $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/jquery.noty.js'); |
|
| 6 | + $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/config/jquery.noty.config.js'); |
|
| 7 | + $this->set_js_lib($this->default_javascript_path.'/common/lazyload-min.js'); |
|
| 8 | 8 | |
| 9 | - if (!$this->is_IE7()) { |
|
| 10 | - $this->set_js_lib($this->default_javascript_path.'/common/list.js'); |
|
| 11 | - } |
|
| 9 | + if (!$this->is_IE7()) { |
|
| 10 | + $this->set_js_lib($this->default_javascript_path.'/common/list.js'); |
|
| 11 | + } |
|
| 12 | 12 | |
| 13 | - $this->set_js($this->default_theme_path.'/flexigrid/js/cookies.js'); |
|
| 14 | - $this->set_js($this->default_theme_path.'/flexigrid/js/flexigrid.js'); |
|
| 13 | + $this->set_js($this->default_theme_path.'/flexigrid/js/cookies.js'); |
|
| 14 | + $this->set_js($this->default_theme_path.'/flexigrid/js/flexigrid.js'); |
|
| 15 | 15 | |
| 16 | 16 | $this->set_js($this->default_javascript_path.'/jquery_plugins/jquery.form.min.js'); |
| 17 | 17 | |
| 18 | - $this->set_js($this->default_javascript_path.'/jquery_plugins/jquery.numeric.min.js'); |
|
| 19 | - $this->set_js($this->default_theme_path.'/flexigrid/js/jquery.printElement.min.js'); |
|
| 18 | + $this->set_js($this->default_javascript_path.'/jquery_plugins/jquery.numeric.min.js'); |
|
| 19 | + $this->set_js($this->default_theme_path.'/flexigrid/js/jquery.printElement.min.js'); |
|
| 20 | 20 | |
| 21 | - /** Fancybox */ |
|
| 22 | - $this->set_css($this->default_css_path.'/jquery_plugins/fancybox/jquery.fancybox.css'); |
|
| 23 | - $this->set_js($this->default_javascript_path.'/jquery_plugins/jquery.fancybox-1.3.4.js'); |
|
| 24 | - $this->set_js($this->default_javascript_path.'/jquery_plugins/jquery.easing-1.3.pack.js'); |
|
| 21 | + /** Fancybox */ |
|
| 22 | + $this->set_css($this->default_css_path.'/jquery_plugins/fancybox/jquery.fancybox.css'); |
|
| 23 | + $this->set_js($this->default_javascript_path.'/jquery_plugins/jquery.fancybox-1.3.4.js'); |
|
| 24 | + $this->set_js($this->default_javascript_path.'/jquery_plugins/jquery.easing-1.3.pack.js'); |
|
| 25 | 25 | |
| 26 | - /** Jquery UI */ |
|
| 27 | - $this->load_js_jqueryui(); |
|
| 26 | + /** Jquery UI */ |
|
| 27 | + $this->load_js_jqueryui(); |
|
| 28 | 28 | |
| 29 | 29 | ?> |
| 30 | 30 | <script type='text/javascript'> |
@@ -108,9 +108,9 @@ discard block |
||
| 108 | 108 | <?php $paging_ends_to = "<span id='page-ends-to' class='page-ends-to'>". ($total_results < $default_per_page ? $total_results : $default_per_page) ."</span>"; ?> |
| 109 | 109 | <?php $paging_total_results = "<span id='total_items' class='total_items'>$total_results</span>"?> |
| 110 | 110 | <?php echo str_replace( array('{start}','{end}','{results}'), |
| 111 | - array($paging_starts_from, $paging_ends_to, $paging_total_results), |
|
| 112 | - $this->l('list_displaying') |
|
| 113 | - ); ?> |
|
| 111 | + array($paging_starts_from, $paging_ends_to, $paging_total_results), |
|
| 112 | + $this->l('list_displaying') |
|
| 113 | + ); ?> |
|
| 114 | 114 | </span> |
| 115 | 115 | </div> |
| 116 | 116 | <div class="pDiv"> |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | |
| 29 | 29 | ?> |
| 30 | 30 | <script type='text/javascript'> |
| 31 | - var base_url = '<?php echo base_url();?>'; |
|
| 31 | + var base_url = '<?php echo base_url(); ?>'; |
|
| 32 | 32 | |
| 33 | 33 | var subject = '<?php echo addslashes($subject); ?>'; |
| 34 | 34 | var ajax_list_info_url = '<?php echo $ajax_list_info_url; ?>'; |
@@ -38,20 +38,20 @@ discard block |
||
| 38 | 38 | |
| 39 | 39 | </script> |
| 40 | 40 | <div id='list-report-error' class='report-div error'></div> |
| 41 | -<div <?php if($success_message !== null){?>class="alert alert-success" role="alert" style="display:block;"<?php }?>><?php |
|
| 42 | -if($success_message !== null){?> |
|
| 41 | +<div <?php if ($success_message !== null) {?>class="alert alert-success" role="alert" style="display:block;"<?php }?>><?php |
|
| 42 | +if ($success_message !== null) {?> |
|
| 43 | 43 | <p style=" margin-top: -0px;"><?php echo $success_message; ?></p> |
| 44 | 44 | <?php } |
| 45 | 45 | ?></div> |
| 46 | 46 | <div class="flexigrid" style='width: 100%;' data-unique-hash="<?php echo $unique_hash; ?>"> |
| 47 | 47 | |
| 48 | - <?php echo form_open( $ajax_list_url, 'method="post" id="filtering_form" class="filtering_form" autocomplete = "off" data-ajax-list-info-url="'.$ajax_list_info_url.'"'); ?> |
|
| 48 | + <?php echo form_open($ajax_list_url, 'method="post" id="filtering_form" class="filtering_form" autocomplete = "off" data-ajax-list-info-url="'.$ajax_list_info_url.'"'); ?> |
|
| 49 | 49 | |
| 50 | 50 | <div id='main-table-box' class="main-table-box"> |
| 51 | 51 | |
| 52 | - <?php if(!$unset_add || !$unset_export || !$unset_print){?> |
|
| 52 | + <?php if (!$unset_add || !$unset_export || !$unset_print) {?> |
|
| 53 | 53 | <div class="tDiv"> |
| 54 | - <?php if(!$unset_add){?> |
|
| 54 | + <?php if (!$unset_add) {?> |
|
| 55 | 55 | <div class="tDiv2"> |
| 56 | 56 | <div class="displayadd"> |
| 57 | 57 | <a href='<?php echo $add_url?>' title='<?php echo $this->l('list_add'); ?> <?php echo $subject?>' class='add-anchor add_button'> |
@@ -64,11 +64,11 @@ discard block |
||
| 64 | 64 | </div> |
| 65 | 65 | <?php }?> |
| 66 | 66 | <div class="tDiv3"> |
| 67 | - <?php if(!$unset_export) { ?> |
|
| 67 | + <?php if (!$unset_export) { ?> |
|
| 68 | 68 | <a class="export-anchor" href="<?php echo $export_url; ?>" target="_blank"> |
| 69 | 69 | <div class="fbutton"> |
| 70 | 70 | <div> |
| 71 | - <span class="export"><?php echo $this->l('list_export');?></span> |
|
| 71 | + <span class="export"><?php echo $this->l('list_export'); ?></span> |
|
| 72 | 72 | </div> |
| 73 | 73 | </div> |
| 74 | 74 | </a> |
@@ -84,18 +84,18 @@ discard block |
||
| 84 | 84 | <?php list($show_lang_string, $entries_lang_string) = explode('{paging}', $this->l('list_show_entries')); ?> |
| 85 | 85 | <?php echo $show_lang_string; ?> |
| 86 | 86 | <select name="per_page" id='per_page' class="per_page"> |
| 87 | - <?php foreach($paging_options as $option){?> |
|
| 88 | - <option value="<?php echo $option; ?>" <?php if($option == $default_per_page){?>selected="selected"<?php }?>><?php echo $option; ?> </option> |
|
| 87 | + <?php foreach ($paging_options as $option) {?> |
|
| 88 | + <option value="<?php echo $option; ?>" <?php if ($option == $default_per_page) {?>selected="selected"<?php }?>><?php echo $option; ?> </option> |
|
| 89 | 89 | <?php }?> |
| 90 | 90 | </select> |
| 91 | 91 | <?php echo $entries_lang_string; ?> |
| 92 | - <input type='hidden' name='order_by[0]' id='hidden-sorting' class='hidden-sorting' value='<?php if(!empty($order_by[0])){?><?php echo $order_by[0]?><?php }?>' /> |
|
| 93 | - <input type='hidden' name='order_by[1]' id='hidden-ordering' class='hidden-ordering' value='<?php if(!empty($order_by[1])){?><?php echo $order_by[1]?><?php }?>'/> |
|
| 92 | + <input type='hidden' name='order_by[0]' id='hidden-sorting' class='hidden-sorting' value='<?php if (!empty($order_by[0])) {?><?php echo $order_by[0]?><?php }?>' /> |
|
| 93 | + <input type='hidden' name='order_by[1]' id='hidden-ordering' class='hidden-ordering' value='<?php if (!empty($order_by[1])) {?><?php echo $order_by[1]?><?php }?>'/> |
|
| 94 | 94 | </span> |
| 95 | 95 | </div> |
| 96 | 96 | <div class="displaysearch"> |
| 97 | - <?php echo $this->l('list_search');?>: <input type="text" class="qsbsearch_fieldox search_text" name="search_text" size="30" id='search_text'> |
|
| 98 | - <input type="button" value="<?php echo $this->l('list_search');?>" class="btn btn-default"> |
|
| 97 | + <?php echo $this->l('list_search'); ?>: <input type="text" class="qsbsearch_fieldox search_text" name="search_text" size="30" id='search_text'> |
|
| 98 | + <input type="button" value="<?php echo $this->l('list_search'); ?>" class="btn btn-default"> |
|
| 99 | 99 | </div> |
| 100 | 100 | |
| 101 | 101 | <div id='ajax_list' class="ajax_list"> |
@@ -105,9 +105,9 @@ discard block |
||
| 105 | 105 | <div class="displayshowing" style="margin-top: 10px;"> |
| 106 | 106 | <span class="pPageStat"> |
| 107 | 107 | <?php $paging_starts_from = "<span id='page-starts-from' class='page-starts-from'>1</span>"; ?> |
| 108 | - <?php $paging_ends_to = "<span id='page-ends-to' class='page-ends-to'>". ($total_results < $default_per_page ? $total_results : $default_per_page) ."</span>"; ?> |
|
| 108 | + <?php $paging_ends_to = "<span id='page-ends-to' class='page-ends-to'>".($total_results < $default_per_page ? $total_results : $default_per_page)."</span>"; ?> |
|
| 109 | 109 | <?php $paging_total_results = "<span id='total_items' class='total_items'>$total_results</span>"?> |
| 110 | - <?php echo str_replace( array('{start}','{end}','{results}'), |
|
| 110 | + <?php echo str_replace(array('{start}', '{end}', '{results}'), |
|
| 111 | 111 | array($paging_starts_from, $paging_ends_to, $paging_total_results), |
| 112 | 112 | $this->l('list_displaying') |
| 113 | 113 | ); ?> |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | class Index extends My_Force_Login { |
| 4 | 4 | |
| 5 | 5 | public function __construct() { |
| 6 | - parent::__construct(); |
|
| 6 | + parent::__construct(); |
|
| 7 | 7 | |
| 8 | 8 | } |
| 9 | 9 | |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | class Index extends My_Force_Login { |
| 4 | 4 | |
| 5 | 5 | public function __construct() { |
| 6 | - parent::__construct(); |
|
| 6 | + parent::__construct(); |
|
| 7 | 7 | |
| 8 | 8 | } |
| 9 | 9 | |
@@ -2,7 +2,7 @@ |
||
| 2 | 2 | defined('BASEPATH') OR exit('No direct script access allowed'); |
| 3 | 3 | |
| 4 | 4 | echo "\nERROR: ", |
| 5 | - $heading, |
|
| 6 | - "\n\n", |
|
| 7 | - $message, |
|
| 8 | - "\n\n"; |
|
| 9 | 5 | \ No newline at end of file |
| 6 | + $heading, |
|
| 7 | + "\n\n", |
|
| 8 | + $message, |
|
| 9 | + "\n\n"; |
|
| 10 | 10 | \ No newline at end of file |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | <input type="button" value="Approve" name="approve" class="btn btn-default" onclick="location.href = '<?= base_url('computing-support/room-move/eh-approve?id='.$room['id']); ?>';"/> |
| 74 | 74 | <input type="button" value="Reject" name="reject" class="btn btn-default" onclick="location.href = '<?= base_url('computing-support/room-move/history?reid='.$room['id']); ?>';"/> |
| 75 | 75 | <?php break; |
| 76 | - default: ?> |
|
| 76 | + default: ?> |
|
| 77 | 77 | No action Required |
| 78 | 78 | <?php break; ?> |
| 79 | 79 | <?php } } elseif (in_array('CN=Dashboard_CS_NS,OU=Dashboard_Group,OU=Intranet_Group,OU=Groups,DC=cant-col,DC=ac,DC=uk', $_SESSION['ldap']['groups'])) { ?> |
@@ -82,14 +82,14 @@ discard block |
||
| 82 | 82 | <input type="button" value="Overide Estates" name="overide_approve" class="btn btn-default" data-toggle="modal" data-target="#overide"/> |
| 83 | 83 | <input type="button" value="Reject" name="reject" class="btn btn-default" onclick="location.href = '<?= base_url('computing-support/room-move/history?rcid='.$room['id']); ?>';"/> |
| 84 | 84 | <?php break; |
| 85 | - case 1: ?> |
|
| 85 | + case 1: ?> |
|
| 86 | 86 | <input type="button" value="Approve" name="approve" class="btn btn-default" onclick="location.href = '<?= base_url('computing-support/room-move/cs-approve?id='.$room['id']); ?>';"/> |
| 87 | 87 | <input type="button" value="Reject" name="reject" class="btn btn-default" onclick="location.href = '<?= base_url('computing-support/room-move/history?rcid='.$room['id']); ?>';"/> |
| 88 | 88 | <?php break; |
| 89 | - case 5: ?> |
|
| 89 | + case 5: ?> |
|
| 90 | 90 | <input type="button" value="Move Complete" name="complete" class="btn btn-default" onclick="location.href = '<?= base_url('computing-support/room-move/cs-complete?id='.$room['id']); ?>';"/> |
| 91 | 91 | <?php break; |
| 92 | - default: ?> |
|
| 92 | + default: ?> |
|
| 93 | 93 | No action Required |
| 94 | 94 | <?php break; }?> |
| 95 | 95 | <?php } ?> |
@@ -32,15 +32,15 @@ discard block |
||
| 32 | 32 | <td><?= $room['furniture'] ?></td> |
| 33 | 33 | <td> |
| 34 | 34 | <?= $room['staff_involved'] ?> |
| 35 | - <?php if (isset($room['staff_involved2'])) { echo '<br>'. $room['staff_involved2']; } ?> |
|
| 36 | - <?php if (isset($room['staff_involved3'])) { echo '<br>'. $room['staff_involved3']; } ?> |
|
| 37 | - <?php if (isset($room['staff_involved4'])) { echo '<br>'. $room['staff_involved4']; } ?> |
|
| 38 | - <?php if (isset($room['staff_involved5'])) { echo '<br>'. $room['staff_involved5']; } ?> |
|
| 39 | - <?php if (isset($room['staff_involved6'])) { echo '<br>'. $room['staff_involved6']; } ?> |
|
| 40 | - <?php if (isset($room['staff_involved7'])) { echo '<br>'. $room['staff_involved7']; } ?> |
|
| 41 | - <?php if (isset($room['staff_involved8'])) { echo '<br>'. $room['staff_involved8']; } ?> |
|
| 42 | - <?php if (isset($room['staff_involved9'])) { echo '<br>'. $room['staff_involved9']; } ?> |
|
| 43 | - <?php if (isset($room['staff_involved10'])) { echo '<br>'. $room['staff_involved10']; } ?> |
|
| 35 | + <?php if (isset($room['staff_involved2'])) { echo '<br>'.$room['staff_involved2']; } ?> |
|
| 36 | + <?php if (isset($room['staff_involved3'])) { echo '<br>'.$room['staff_involved3']; } ?> |
|
| 37 | + <?php if (isset($room['staff_involved4'])) { echo '<br>'.$room['staff_involved4']; } ?> |
|
| 38 | + <?php if (isset($room['staff_involved5'])) { echo '<br>'.$room['staff_involved5']; } ?> |
|
| 39 | + <?php if (isset($room['staff_involved6'])) { echo '<br>'.$room['staff_involved6']; } ?> |
|
| 40 | + <?php if (isset($room['staff_involved7'])) { echo '<br>'.$room['staff_involved7']; } ?> |
|
| 41 | + <?php if (isset($room['staff_involved8'])) { echo '<br>'.$room['staff_involved8']; } ?> |
|
| 42 | + <?php if (isset($room['staff_involved9'])) { echo '<br>'.$room['staff_involved9']; } ?> |
|
| 43 | + <?php if (isset($room['staff_involved10'])) { echo '<br>'.$room['staff_involved10']; } ?> |
|
| 44 | 44 | </td> |
| 45 | 45 | <td width="20%"><?= $room['reason'] ?></td> |
| 46 | 46 | <?php switch ($room['status']) { |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | <?php break; |
| 65 | 65 | case 6: ?> |
| 66 | 66 | <td class='success'>Move Complete</td> |
| 67 | - <?php break;?> |
|
| 67 | + <?php break; ?> |
|
| 68 | 68 | <?php } ?> |
| 69 | 69 | <td> |
| 70 | 70 | <?php if (in_array('CN=Dashboard_Estates_Room_Move,OU=Dashboard_Group,OU=Intranet_Group,OU=Groups,DC=cant-col,DC=ac,DC=uk', $_SESSION['ldap']['groups'])) { ?> |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | $query = $this->db->get('users_ad'); |
| 8 | 8 | if ($query->num_rows() > 0) { |
| 9 | 9 | foreach ($query->result_array() as $row) { |
| 10 | - $row_set[] = htmlentities(stripslashes($row['first_name'] . ' ' . $row['last_name'] . ' (' . $row['username'] . ')')); //build an array |
|
| 10 | + $row_set[] = htmlentities(stripslashes($row['first_name'].' '.$row['last_name'].' ('.$row['username'].')')); //build an array |
|
| 11 | 11 | } |
| 12 | 12 | } |
| 13 | 13 | ?> |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | $query = $this->db->get('users_ad'); |
| 8 | 8 | if ($query->num_rows() > 0) { |
| 9 | 9 | foreach ($query->result_array() as $row) { |
| 10 | - $row_set[] = htmlentities(stripslashes($row['first_name'] . ' ' . $row['last_name']. ' (' . $row['username']. ')')); //build an array |
|
| 10 | + $row_set[] = htmlentities(stripslashes($row['first_name'].' '.$row['last_name'].' ('.$row['username'].')')); //build an array |
|
| 11 | 11 | } |
| 12 | 12 | } |
| 13 | 13 | ?> |
@@ -1,12 +1,12 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | - $this->set_css($this->default_theme_path.'/flexigrid/css/flexigrid.css'); |
|
| 3 | + $this->set_css($this->default_theme_path.'/flexigrid/css/flexigrid.css'); |
|
| 4 | 4 | |
| 5 | 5 | $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/jquery.form.min.js'); |
| 6 | - $this->set_js_config($this->default_theme_path.'/flexigrid/js/flexigrid-edit.js'); |
|
| 6 | + $this->set_js_config($this->default_theme_path.'/flexigrid/js/flexigrid-edit.js'); |
|
| 7 | 7 | |
| 8 | - $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/jquery.noty.js'); |
|
| 9 | - $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/config/jquery.noty.config.js'); |
|
| 8 | + $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/jquery.noty.js'); |
|
| 9 | + $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/config/jquery.noty.config.js'); |
|
| 10 | 10 | ?> |
| 11 | 11 | <div class="flexigrid crud-form" style='width: 100%;' data-unique-hash="<?php echo $unique_hash; ?>"> |
| 12 | 12 | <div class="mDiv"> |
@@ -24,12 +24,12 @@ discard block |
||
| 24 | 24 | <?php echo form_open( $update_url, 'method="post" id="crudForm" enctype="multipart/form-data"'); ?> |
| 25 | 25 | <div class='form-div'> |
| 26 | 26 | <?php |
| 27 | - $counter = 0; |
|
| 28 | - foreach($fields as $field) |
|
| 29 | - { |
|
| 30 | - $even_odd = $counter % 2 == 0 ? 'odd' : 'even'; |
|
| 31 | - $counter++; |
|
| 32 | - ?> |
|
| 27 | + $counter = 0; |
|
| 28 | + foreach($fields as $field) |
|
| 29 | + { |
|
| 30 | + $even_odd = $counter % 2 == 0 ? 'odd' : 'even'; |
|
| 31 | + $counter++; |
|
| 32 | + ?> |
|
| 33 | 33 | <div class='form-field-box <?php echo $even_odd?>' id="<?php echo $field->field_name; ?>_field_box"> |
| 34 | 34 | <div class='form-display-as-box' id="<?php echo $field->field_name; ?>_display_as_box"> |
| 35 | 35 | <?php echo $input_fields[$field->field_name]->display_as?><?php echo ($input_fields[$field->field_name]->required)? "<span class='required'>*</span> " : ""?> : |
@@ -43,10 +43,10 @@ discard block |
||
| 43 | 43 | <?php if(!empty($hidden_fields)){?> |
| 44 | 44 | <!-- Start of hidden inputs --> |
| 45 | 45 | <?php |
| 46 | - foreach($hidden_fields as $hidden_field){ |
|
| 47 | - echo $hidden_field->input; |
|
| 48 | - } |
|
| 49 | - ?> |
|
| 46 | + foreach($hidden_fields as $hidden_field){ |
|
| 47 | + echo $hidden_field->input; |
|
| 48 | + } |
|
| 49 | + ?> |
|
| 50 | 50 | <!-- End of hidden inputs --> |
| 51 | 51 | <?php }?> |
| 52 | 52 | <?php if ($is_ajax) { ?><input type="hidden" name="is_ajax" value="true" /><?php }?> |
@@ -16,23 +16,23 @@ discard block |
||
| 16 | 16 | </div> |
| 17 | 17 | <div class='clear'></div> |
| 18 | 18 | </div> |
| 19 | - <div title="<?php echo $this->l('minimize_maximize');?>" class="ptogtitle"> |
|
| 19 | + <div title="<?php echo $this->l('minimize_maximize'); ?>" class="ptogtitle"> |
|
| 20 | 20 | <span></span> |
| 21 | 21 | </div> |
| 22 | 22 | </div> |
| 23 | 23 | <div id='main-table-box'> |
| 24 | - <?php echo form_open( $update_url, 'method="post" id="crudForm" enctype="multipart/form-data"'); ?> |
|
| 24 | + <?php echo form_open($update_url, 'method="post" id="crudForm" enctype="multipart/form-data"'); ?> |
|
| 25 | 25 | <div class='form-div'> |
| 26 | 26 | <?php |
| 27 | 27 | $counter = 0; |
| 28 | - foreach($fields as $field) |
|
| 28 | + foreach ($fields as $field) |
|
| 29 | 29 | { |
| 30 | 30 | $even_odd = $counter % 2 == 0 ? 'odd' : 'even'; |
| 31 | 31 | $counter++; |
| 32 | 32 | ?> |
| 33 | 33 | <div class='form-field-box <?php echo $even_odd?>' id="<?php echo $field->field_name; ?>_field_box"> |
| 34 | 34 | <div class='form-display-as-box' id="<?php echo $field->field_name; ?>_display_as_box"> |
| 35 | - <?php echo $input_fields[$field->field_name]->display_as?><?php echo ($input_fields[$field->field_name]->required)? "<span class='required'>*</span> " : ""?> : |
|
| 35 | + <?php echo $input_fields[$field->field_name]->display_as?><?php echo ($input_fields[$field->field_name]->required) ? "<span class='required'>*</span> " : ""?> : |
|
| 36 | 36 | </div> |
| 37 | 37 | <div class='form-input-box' id="<?php echo $field->field_name; ?>_input_box"> |
| 38 | 38 | <?php echo $input_fields[$field->field_name]->input?> |
@@ -40,10 +40,10 @@ discard block |
||
| 40 | 40 | <div class='clear'></div> |
| 41 | 41 | </div> |
| 42 | 42 | <?php }?> |
| 43 | - <?php if(!empty($hidden_fields)){?> |
|
| 43 | + <?php if (!empty($hidden_fields)) {?> |
|
| 44 | 44 | <!-- Start of hidden inputs --> |
| 45 | 45 | <?php |
| 46 | - foreach($hidden_fields as $hidden_field){ |
|
| 46 | + foreach ($hidden_fields as $hidden_field) { |
|
| 47 | 47 | echo $hidden_field->input; |
| 48 | 48 | } |
| 49 | 49 | ?> |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | <div class='form-button-box'> |
| 58 | 58 | <input id="form-button-save" type='submit' value='<?php echo $this->l('form_update_changes'); ?>' class="btn btn-large"/> |
| 59 | 59 | </div> |
| 60 | -<?php if(!$this->unset_back_to_list) { ?> |
|
| 60 | +<?php if (!$this->unset_back_to_list) { ?> |
|
| 61 | 61 | <div class='form-button-box'> |
| 62 | 62 | <input type='button' value='<?php echo $this->l('form_update_and_go_back'); ?>' id="save-and-go-back-button" class="btn btn-large"/> |
| 63 | 63 | </div> |
@@ -1,11 +1,11 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | - $this->set_css($this->default_theme_path.'/flexigrid/css/flexigrid.css'); |
|
| 4 | - $this->set_js_lib($this->default_theme_path.'/flexigrid/js/jquery.form.js'); |
|
| 5 | - $this->set_js_config($this->default_theme_path.'/flexigrid/js/flexigrid-edit.js'); |
|
| 3 | + $this->set_css($this->default_theme_path.'/flexigrid/css/flexigrid.css'); |
|
| 4 | + $this->set_js_lib($this->default_theme_path.'/flexigrid/js/jquery.form.js'); |
|
| 5 | + $this->set_js_config($this->default_theme_path.'/flexigrid/js/flexigrid-edit.js'); |
|
| 6 | 6 | |
| 7 | - $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/jquery.noty.js'); |
|
| 8 | - $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/config/jquery.noty.config.js'); |
|
| 7 | + $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/jquery.noty.js'); |
|
| 8 | + $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/config/jquery.noty.config.js'); |
|
| 9 | 9 | ?> |
| 10 | 10 | <div class="flexigrid crud-form" style='width: 100%;' data-unique-hash="<?php echo $unique_hash; ?>"> |
| 11 | 11 | <div class="mDiv"> |
@@ -23,12 +23,12 @@ discard block |
||
| 23 | 23 | <?php echo form_open( $read_url, 'method="post" id="crudForm" enctype="multipart/form-data"'); ?> |
| 24 | 24 | <div class='form-div'> |
| 25 | 25 | <?php |
| 26 | - $counter = 0; |
|
| 27 | - foreach($fields as $field) |
|
| 28 | - { |
|
| 29 | - $even_odd = $counter % 2 == 0 ? 'odd' : 'even'; |
|
| 30 | - $counter++; |
|
| 31 | - ?> |
|
| 26 | + $counter = 0; |
|
| 27 | + foreach($fields as $field) |
|
| 28 | + { |
|
| 29 | + $even_odd = $counter % 2 == 0 ? 'odd' : 'even'; |
|
| 30 | + $counter++; |
|
| 31 | + ?> |
|
| 32 | 32 | <div class='form-field-box <?php echo $even_odd?>' id="<?php echo $field->field_name; ?>_field_box"> |
| 33 | 33 | <div class='form-display-as-box' id="<?php echo $field->field_name; ?>_display_as_box"> |
| 34 | 34 | <?php echo $input_fields[$field->field_name]->display_as?><?php echo ($input_fields[$field->field_name]->required)? "<span class='required'>*</span> " : ""?> : |
@@ -42,10 +42,10 @@ discard block |
||
| 42 | 42 | <?php if(!empty($hidden_fields)){?> |
| 43 | 43 | <!-- Start of hidden inputs --> |
| 44 | 44 | <?php |
| 45 | - foreach($hidden_fields as $hidden_field){ |
|
| 46 | - echo $hidden_field->input; |
|
| 47 | - } |
|
| 48 | - ?> |
|
| 45 | + foreach($hidden_fields as $hidden_field){ |
|
| 46 | + echo $hidden_field->input; |
|
| 47 | + } |
|
| 48 | + ?> |
|
| 49 | 49 | <!-- End of hidden inputs --> |
| 50 | 50 | <?php }?> |
| 51 | 51 | <?php if ($is_ajax) { ?><input type="hidden" name="is_ajax" value="true" /><?php }?> |
@@ -15,23 +15,23 @@ discard block |
||
| 15 | 15 | </div> |
| 16 | 16 | <div class='clear'></div> |
| 17 | 17 | </div> |
| 18 | - <div title="<?php echo $this->l('minimize_maximize');?>" class="ptogtitle"> |
|
| 18 | + <div title="<?php echo $this->l('minimize_maximize'); ?>" class="ptogtitle"> |
|
| 19 | 19 | <span></span> |
| 20 | 20 | </div> |
| 21 | 21 | </div> |
| 22 | 22 | <div id='main-table-box'> |
| 23 | - <?php echo form_open( $read_url, 'method="post" id="crudForm" enctype="multipart/form-data"'); ?> |
|
| 23 | + <?php echo form_open($read_url, 'method="post" id="crudForm" enctype="multipart/form-data"'); ?> |
|
| 24 | 24 | <div class='form-div'> |
| 25 | 25 | <?php |
| 26 | 26 | $counter = 0; |
| 27 | - foreach($fields as $field) |
|
| 27 | + foreach ($fields as $field) |
|
| 28 | 28 | { |
| 29 | 29 | $even_odd = $counter % 2 == 0 ? 'odd' : 'even'; |
| 30 | 30 | $counter++; |
| 31 | 31 | ?> |
| 32 | 32 | <div class='form-field-box <?php echo $even_odd?>' id="<?php echo $field->field_name; ?>_field_box"> |
| 33 | 33 | <div class='form-display-as-box' id="<?php echo $field->field_name; ?>_display_as_box"> |
| 34 | - <?php echo $input_fields[$field->field_name]->display_as?><?php echo ($input_fields[$field->field_name]->required)? "<span class='required'>*</span> " : ""?> : |
|
| 34 | + <?php echo $input_fields[$field->field_name]->display_as?><?php echo ($input_fields[$field->field_name]->required) ? "<span class='required'>*</span> " : ""?> : |
|
| 35 | 35 | </div> |
| 36 | 36 | <div class='form-input-box' id="<?php echo $field->field_name; ?>_input_box"> |
| 37 | 37 | <?php echo $input_fields[$field->field_name]->input?> |
@@ -39,10 +39,10 @@ discard block |
||
| 39 | 39 | <div class='clear'></div> |
| 40 | 40 | </div> |
| 41 | 41 | <?php }?> |
| 42 | - <?php if(!empty($hidden_fields)){?> |
|
| 42 | + <?php if (!empty($hidden_fields)) {?> |
|
| 43 | 43 | <!-- Start of hidden inputs --> |
| 44 | 44 | <?php |
| 45 | - foreach($hidden_fields as $hidden_field){ |
|
| 45 | + foreach ($hidden_fields as $hidden_field) { |
|
| 46 | 46 | echo $hidden_field->input; |
| 47 | 47 | } |
| 48 | 48 | ?> |