Exemplo n.º 1
0
$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();
$guiTools->beginRow();
$guiTools->endRow();
$guiTools->beginRow();
$guiTools->cellLabel(100);
$guiTools->cellLabel(100, '2', '', $this->lang->line('login_invalid'), 'color:red');
$guiTools->endRow();
Exemplo n.º 2
0
    $guiTools->beginRow();
    $guiTools->cellLabelTitle('100px', $this->lang->line('user_group'));
    $guiTools->cellLabelValue('200px', $user_group);
    $guiTools->endRow();
    $guiTools->beginRow();
    $guiTools->cellLabelTitle('120px', $this->lang->line('user_rule'));
    $guiTools->cellLabelValue('200px', $user_rule);
    $guiTools->endRow();
} else {
    $guiTools->beginRow();
    $guiTools->cellLabelTitle_Required('120px', $this->lang->line('username'));
    $guiTools->cellTextbox('700px', '20', '20', 'txt_username', 'txt_username', $username);
    $guiTools->endRow();
    $guiTools->beginRow();
    $guiTools->cellLabelTitle_Required('100px', $this->lang->line('password'));
    $guiTools->cellPassword('200px', '30', '30', 'txt_password', 'txt_password', $password);
    $guiTools->endRow();
    $guiTools->beginRow();
    $guiTools->cellLabelTitle_Required('100px', $this->lang->line('name'));
    $guiTools->cellTextbox('200px', '40', '50', 'txt_name', 'txt_name', $name);
    $guiTools->endRow();
    $guiTools->beginRow();
    $guiTools->cellLabelTitle('120px', $this->lang->line('mobile'));
    $guiTools->cellTextbox('200px', '30', '30', 'txt_mobile', 'txt_mobile', $mobile);
    $guiTools->endRow();
    $guiTools->beginRow();
    $guiTools->cellLabelTitle('100px', $this->lang->line('telephone'));
    $guiTools->cellTextbox('200px', '30', '30', 'txt_telephone', 'txt_telephone', $telephone);
    $guiTools->endRow();
    $guiTools->beginRow();
    $guiTools->cellLabelTitle('100px', $this->lang->line('email'));