</tr> <tr> <td width="100px" colspan="9" height="30px"><span style="color:red";> <?php if (isset($error)) { echo $error; } ?> </span> </td> </tr> </table> <?php $guiTools = new GuiTools(); $guiTools->beginTable(); $guiTools->beginRow(); $guiTools->cellHidden('hdn_id', 'hdn_id', $id); $guiTools->endRow(); if ($mode == 'view') { $guiTools->beginRow(); $guiTools->cellLabelTitle('120px', $this->lang->line('code')); $guiTools->cellLabelValue('800px', $code); //The 750px width to have agood apearence. $guiTools->endRow(); $guiTools->beginRow(); $guiTools->cellLabelTitle('100px', $this->lang->line('name')); $guiTools->cellLabelValue('200px', $name); $guiTools->endRow(); $guiTools->beginRow();
</tr> <tr> <td width="100px" colspan="9" height="10px"><span style="color:red";> <?php if (isset($error)) { echo $error; } ?> </span> </td> </tr> </table> <?php $guiTools = new GuiTools(); $guiTools->beginTable(); $guiTools->beginRow(); $guiTools->cellHidden('hdn_parent_id', 'hdn_parent_id', $parent_id); $guiTools->endRow(); $guiTools->beginRow(); $guiTools->cellHidden('hdn_id', 'hdn_id', $id); $guiTools->endRow(); if ($mode == 'view') { $guiTools->beginRow(); $guiTools->cellLabelTitle('120px', $this->lang->line('code')); $guiTools->cellLabelValue('800px', $code); //The 750px width to have agood apearence. $guiTools->endRow(); $guiTools->beginRow(); $guiTools->cellLabelTitle('100px', $this->lang->line('name'));
</div> <div class="login"> <?php $this->load->helper('form'); $guiTools = new GuiTools(); //Adding Attributes. $attributes = array('name' => 'frmLogin', 'id' => 'frmLogin'); //Adding Hidden Input Fields. $hidden = array('username' => 'gouda', 'password' => 'gouda'); echo form_open('main/login', $attributes, $hidden); $guiTools->beginTable(); $guiTools->beginRow(); $guiTools->cellLabel(100, '', '', $this->lang->line('login_username'), ''); $guiTools->cellTextbox(100, 'txtUserName', 'txtUserName'); $guiTools->cellLabel(100); $guiTools->endRow(); $guiTools->beginRow(); $guiTools->cellLabel(100, '', '', $this->lang->line('login_password'), ''); $guiTools->cellPassword(100, 'txtPassword', 'txtPassword'); $guiTools->cellLabel(100);
<?php $this->load->view('includes/header'); $this->lang->load('gl/accounts_types', $this->config->item('language')); ?> <?php $guiTools = new GuiTools(); $guiTools->beginDiv('background-color: #667799; width:100%; height:40px; text-align:center ; font: 28px Verdana, Arial, Helvetica, sans-serif;font-weight: bold;color:white; -moz-border-radius: 5px 5px 5px 5px ;'); echo 'Accounts Types'; $guiTools->endDiv(); $guiTools->newLine(); $guiTools->newLine(); $guiTools->beginTable('width: 100%;'); $guiTools->beginRow(); $guiTools->cellLabel(150, '', '', $this->lang->line('accounts_types_code'), ''); $guiTools->cellTextbox(100, 'txtAccountTypeCode', 'txtAccountTypeCode', 'width:200'); $guiTools->endRow(); $guiTools->beginRow(); $guiTools->cellLabel(150, '', '', $this->lang->line('accounts_types_name_en'), ''); $guiTools->cellTextbox(100, 'txtAccountTypeNameEn', 'txtAccountTypeNameEn', 'width:500'); $guiTools->cellLabel(100); $guiTools->endRow(); $guiTools->beginRow(); $guiTools->cellLabel(150, '', '', $this->lang->line('accounts_types_name_ar'), ''); $guiTools->cellTextbox(100, 'txtAccountTypeNameAr', 'txtAccountTypeNameAr', 'width:500'); $guiTools->endRow(); $guiTools->beginRow(); $guiTools->cellLabel(150, '', '', $this->lang->line('accounts_types_class'), ''); $guiTools->cellTextbox(100, 'txtAccountTypeClass', 'txtAccountTypeClass', 'width:400'); $guiTools->endRow();
public function display_data_table($array_of_data, $link_to_screen = '', $object) { $current_language = $object->config->item('language'); echo "<table class='screen_display_table' >"; $index = 0; $color_row = ''; $height_row = ''; foreach ($array_of_data as $record) { $current_row_id = 0; if ($index == 0) { echo "<tr>"; echo "<th >" . $object->lang->line('develop_screens') . "</th>"; echo "<th >" . $object->lang->line('access_level') . "</th>"; echo "</tr>"; } $screen_id = $record->id; $screen_code = $record->code; if ($current_language == 'english') { $screen_name = $record->name_en; } else { if ($current_language == 'arabic') { $screen_name = $record->name_ar; } } echo "<tr>"; echo "<td colspan='3' align='center'> {$screen_name} </td>"; echo "</tr>"; //if($mode=='add' || ($mode=='return' && $id==0) ) //{ $data['develop_screens_inner'] = $object->Screens_access_model->get_screens_by_parent($screen_id); $develop_screens_inner = $data['develop_screens_inner']; //$object->session->set_userdata('group_screens', $develop_screens_inner); foreach ($develop_screens_inner as $record_inner) { $screen_code = $record_inner->code; if ($current_language == 'english') { $screen_name = $record_inner->name_en; } else { if ($current_language == 'arabic') { $screen_name = $record_inner->name_ar; } } echo "<tr>"; //$color_row='#C2D1E0'; $color_row = '#FFFFFF'; $height_row = '25px'; $arr_data = $object->Screens_access_model->get_screens_access(); $value_field = 'id'; if ($current_language == 'english') { $display_field = 'name_en'; } else { if ($current_language == 'arabic') { $display_field = 'name_ar'; } } $guiTools = new GuiTools(); echo "<td align='center' style='font-size: 11px; height:{$height_row}; background-color:{$color_row};'> {$screen_name} </td>"; echo "<td align='center' style='font-size: 11px; height:{$height_row}; background-color:{$color_row};'>"; $guiTools->dropdown('dropdown_screen_access', 'dropdown_screen_access', $arr_data, $value_field, $display_field); echo "</td>"; echo "</tr>"; } $index = $index + 1; //} } echo "</table>"; }
<tr> <td width="100px" colspan="9" height="30px"><span style="color:red";> <?php if (isset($error)) { echo $error; } ?> </span> </td> </tr> </table> <?php $guiTools = new GuiTools(); $dropdowns = new Dropdowns(); $popups = new Popups(); $guiTools->beginTable(); $guiTools->beginRow(); $guiTools->cellHidden('hdn_id', 'hdn_id', $id); if ($mode == 'edit') { $guiTools->cellHidden('hdn_updated_at', 'hdn_updated_at', $updated_at); } $guiTools->endRow(); if ($mode == 'view') { $guiTools->beginRow(); $guiTools->cellLabelTitle('120px', $this->lang->line('username')); $guiTools->cellLabelValue('700px', $username); //The 750px width to have agood apearence. $guiTools->endRow();