예제 #1
0
    gui_cols_width(1, 2);
    gui_cols_width(2, 2);
    gui_meta("espace_nom", "Comment créer une UI avec Tendoo GUI")->push_to(1);
    gui_meta("super_nombre", "Super Nombre")->push_to(2);
    $this->visual_editor->loadEditor(1);
    //
    $form = array('action' => '', 'method' => 'POST', "submit_text" => "Enregistrer", "reset_text" => "Reinitialiser");
    $fields[] = array('label' => 'Nom', 'type' => 'text', 'name' => 'name');
    $fields[] = array('label' => 'Nom', 'type' => 'password', 'name' => 'name');
    $fields[] = array('label' => array('Se connecter', 'fuir', 'troisie'), 'type' => 'radio', 'name' => array('se_connecter', 'se_deconnecter', 'troisie'), 'value' => array('connect', 'escape', 'troisie'));
    $fields[] = array('label' => array('Option 1', 'Option 2', 'Option 3'), 'type' => 'checkbox', 'name' => array('se_connecter', 'se_deconnecter', 'troisie'), 'value' => array('connect', 'escape', 'troisie'));
    $fields[] = array('label' => "Une options", 'placeholder' => 'Choissiez une option', 'type' => 'select', 'name' => "select", 'value' => array('connect', 'escape', 'troisie'), 'text' => array('connect', 'escape', 'troisie'));
    for ($i = 0; $i < count($fields); $i++) {
        gui_item($fields[$i])->push_to("espace_nom");
    }
    /*$fields[]		=	array(
    	'label'		=>	'Contenu',
    	'type'		=>	'visual_editor',
    	'name'		=>	'nom',
    	'id'		=>	'mon_editeur'
    );*/
    gui_item(array('label' => 'Contenu', 'type' => 'visual_editor', 'name' => 'nom', 'id' => 'mon_editeur'))->push_to('super_nombre');
    unset($config, $fields, $form);
    $form = array('action' => '', 'method' => 'POST', "submit_text" => "Enregistrer", "reset_text" => "Reinitialiser");
    $fields[] = array('label' => 'Nom', 'type' => 'text', 'name' => 'name');
    $fields[] = array('label' => 'Contenu', 'type' => 'visual_editor', 'name' => 'nom_2', 'id' => 'mon_Rediteur');
    $fields[] = array('label' => 'Nom', 'type' => 'text', 'name' => 'name');
    $config[] = array('namespace' => 'hello_world_2', 'type' => 'panel', 'title' => 'Hello World', 'content' => $fields, 'form_wrap' => $form);
    // $this->gui->col_push( 2 , $config );
    $this->gui->get();
}
예제 #2
0
<?php

$this->gui->cols_width(1, 4);
$this->gui->set_meta(core_meta_namespace(array('users', 'list')), __('Users'), 'panel-ho')->push_to(1);
$rows = array();
$subadmin = get_core_vars('get_users');
if (is_array($subadmin)) {
    if (count($subadmin) > 0) {
        foreach ($subadmin as $s) {
            $role = $this->instance->roles->get($s['REF_ROLE_ID']);
            if (!$role) {
                $priv[0]['NAME'] = $this->instance->users_global->convertCurrentPrivilege($s['REF_ROLE_ID']);
            }
            $rows[] = array($s['ID'], '<a href="' . $this->instance->url->site_url(array('admin', 'users', 'edit', $s['PSEUDO'])) . '">' . $s['PSEUDO'] . '</a>', $role[0]['NAME'], $s['EMAIL'] == '' ? __('Unavailable') : $s['EMAIL']);
        }
    }
}
gui_item(array('label' => 'Contenu', 'type' => 'table-panel', 'name' => 'nom', 'id' => 'mon_editeur', 'cols' => array(__('Id'), __('Pseudo'), __('Role'), __('Email')), 'rows' => $rows))->push_to(core_meta_namespace(array('users', 'list')));
$this->gui->get();