示例#1
0
文件: login.php 项目: goudaelalfy/erp
 
 
 
<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);
$guiTools->endRow();
$guiTools->beginRow();
$guiTools->endRow();
$guiTools->beginRow();
$guiTools->cellLabel(100);
$guiTools->cellSubmit(100, 'smtLogin', 'smtLogin', $this->lang->line('login_smt'));
$guiTools->cellLabel(100);
$guiTools->endRow();
示例#2
0
<?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();