Вход Регистрация
Файл: source/app/objects/install/data/user/config/crud_users.php
Строк: 217
<?php 
$lang 
Lang::singleton();
$conf = array (
        
'title' => $lang->line('user_manager'),
        
'limit' => '20',
        
'frm_type' => '2',
        
'join' =>
        array (
        ),
        
'order_field' => 'crud_users.user_name',
        
'order_type' => 'asc',
        
'search_form' =>
        array (
                
=>
                array (
                        
'alias' => $lang->line('user_name'),
                        
'field' => 'crud_users.user_name',
                ),
                
=>
                array (
                        
'alias' => $lang->line('group'),
                        
'field' => 'crud_users.group_id',
                ),
                
=>
                array (
                        
'alias' => $lang->line('first_name'),
                        
'field' => 'crud_users.user_first_name',
                ),
                
=>
                array (
                        
'alias' => $lang->line('last_name'),
                        
'field' => 'crud_users.user_las_name',
                ),
                
=>
                array (
                        
'alias' => $lang->line('email'),
                        
'field' => 'crud_users.user_email',
                ),
        ),
        
'validate' =>
        array (
                
'crud_users.user_name' =>
                array (
                        
'rule' => 'notEmpty',
                        
'message' => sprintf($lang->line('please_enter_value'), $lang->line('user_name')),
                ),
                
'crud_users.user_password' =>
                array (
                        
'rule' => 'notEmpty',
                        
'message' => sprintf($lang->line('please_enter_value'), $lang->line('user_password')),
                ),
                
'crud_users.user_email' =>
                array (
                        
=>
                        array (
                                
'rule' => 'notEmpty',
                                
'message' => sprintf($lang->line('please_provide_valid_email'), $lang->line('email')),
                        ),
                        
=>
                        array (
                                
'rule' => 'email',
                                
'message' => sprintf($lang->line('please_provide_valid_email'), $lang->line('email')),
                        ),
                ),
                
'crud_users.user_first_name' =>
                array (
                        
'rule' => 'notEmpty',
                        
'message' => sprintf($lang->line('please_enter_value'), $lang->line('first_name')),
                ),
                
'crud_users.user_las_name' =>
                array (
                        
'rule' => 'notEmpty',
                        
'message' => sprintf($lang->line('please_enter_value'), $lang->line('last_name')),
                ),
        ),
        
'data_list' =>
        array (
                
'no' =>
                array (
                        
'alias' => $lang->line('no_'),
                        
'width' => 40,
                        
'align' => 'center',
                        
'format' => '{no}',
                ),
                
'crud_users.user_name' =>
                array (
                        
'alias' => $lang->line('user_name'),
                        
'width' => '150',
                ),
                
'crud_users.group_id' =>
                array (
                        
'alias' => $lang->line('group'),
                        
'width' => '100',
                        
'align' => 'center',
                ),
                
'crud_users.user_first_name' =>
                array (
                        
'alias' => $lang->line('first_name'),
                ),
                
'crud_users.user_las_name' =>
                array (
                        
'alias' => $lang->line('last_name'),
                        
'width' => '210',
                ),
                
'crud_users.user_email' =>
                array (
                        
'alias' => $lang->line('email'),
                        
'width' => '150',
                ),
                
'crud_users.user_status' =>
                array (
                        
'alias' => $lang->line('status'),
                        
'width' => '60',
                        
'align' => 'center',
                ),
                
'action' =>
                array (
                        
'alias' => $lang->line('actions'),
                        
'format' => '<a type="button" onclick="__view('{ppri}'); return false;" class="btn btn-mini">'.$lang->line('view').'</a> <a type="button" onclick="__edit('{ppri}'); return false;" class="btn btn-mini btn-info">'.$lang->line('edit').'</a> <a type="button" onclick="__delete('{ppri}'); return false;" class="btn btn-mini btn-danger">'.$lang->line('delete').'</a>',
                        
'width' => 130,
                        
'align' => 'center',
                ),
        ),
        
'form_elements' =>
        array (
                
'crud_users.user_name' =>
                array (
                        
'alias' => $lang->line('user_name'),
                        
'element' =>
                        array (
                                
=> 'text',
                                
=>
                                array (
                                        
'style' => 'width:210px;',
                                ),
                        ),
                ),
                
'crud_users.user_password' =>
                array (
                        
'alias' => $lang->line('user_password'),
                        
'element' =>
                        array (
                                
=> 'password',
                                
=>
                                array (
                                        
'style' => 'width:210px;',
                                ),
                        ),
                ),
                
'crud_users.group_id' =>
                array (
                        
'alias' => $lang->line('group'),
                        
'element' =>
                        array (
                                
=> 'select',
                                
=>
                                array (
                                        
'option_table' => 'crud_groups',
                                        
'option_key' => 'id',
                                        
'option_value' => 'group_name',
                                ),
                        ),
                ),
                
'crud_users.user_email' =>
                array (
                        
'alias' => $lang->line('email'),
                        
'element' =>
                        array (
                                
=> 'text',
                                
=>
                                array (
                                        
'style' => 'width:210px;',
                                ),
                        ),
                ),
                
'crud_users.user_first_name' =>
                array (
                        
'alias' => $lang->line('first_name'),
                        
'element' =>
                        array (
                                
=> 'text',
                                
=>
                                array (
                                        
'style' => 'width:390px;',
                                ),
                        ),
                ),
                
'crud_users.user_las_name' =>
                array (
                        
'alias' => $lang->line('last_name'),
                        
'element' =>
                        array (
                                
=> 'text',
                                
=>
                                array (
                                        
'style' => 'width:390px;',
                                ),
                        ),
                ),
                
'crud_users.user_status' =>
                array (
                        
'alias' => $lang->line('status'),
                        
'element' =>
                        array (
                                
=> 'radio',
                                
=>
                                array (
                                        
=> 'Active',
                                        
=> 'InActive',
                                ),
                        ),
                ),
                
'crud_users.user_info' =>
                array (
                        
'alias' => $lang->line('user_information'),
                        
'element' =>
                        array (
                                
=> 'editor',
                        ),
                ),
        ),
        
'elements' =>
        array (
                
'crud_users.user_name' =>
                array (
                        
'alias' => $lang->line('user_name'),
                        
'element' =>
                        array (
                                
=> 'text',
                                
=>
                                array (
                                        
'style' => 'width:210px;',
                                ),
                        ),
                ),
                
'crud_users.user_password' =>
                array (
                        
'alias' => $lang->line('user_password'),
                        
'element' =>
                        array (
                                
=> 'password',
                                
=>
                                array (
                                        
'style' => 'width:210px;',
                                ),
                        ),
                ),
                
'crud_users.group_id' =>
                array (
                        
'alias' => $lang->line('group'),
                        
'element' =>
                        array (
                                
=> 'select',
                                
=>
                                array (
                                        
'option_table' => 'crud_groups',
                                        
'option_key' => 'id',
                                        
'option_value' => 'group_name',
                                ),
                        ),
                ),
                
'crud_users.user_email' =>
                array (
                        
'alias' => $lang->line('email'),
                        
'element' =>
                        array (
                                
=> 'text',
                                
=>
                                array (
                                        
'style' => 'width:210px;',
                                ),
                        ),
                ),
                
'crud_users.user_first_name' =>
                array (
                        
'alias' => $lang->line('first_name'),
                        
'element' =>
                        array (
                                
=> 'text',
                                
=>
                                array (
                                        
'style' => 'width:390px;',
                                ),
                        ),
                ),
                
'crud_users.user_las_name' =>
                array (
                        
'alias' => $lang->line('last_name'),
                        
'element' =>
                        array (
                                
=> 'text',
                                
=>
                                array (
                                        
'style' => 'width:390px;',
                                ),
                        ),
                ),
                
'crud_users.user_status' =>
                array (
                        
'alias' => $lang->line('status'),
                        
'element' =>
                        array (
                                
=> 'radio',
                                
=>
                                array (
                                        
=> $lang->line('active'),
                                        
=> $lang->line('inactive'),
                                ),
                        ),
                ),
                
'crud_users.user_info' =>
                array (
                        
'alias' => $lang->line('user_information'),
                        
'element' =>
                        array (
                                
=> 'editor',
                        ),
                ),
        ),
);
Онлайн: 2
Реклама