Marius Cramer
2015-08-06 37b29231e47a0c4458dc1c15d98588f16f07e1e2
commit | author | age
b5a2f8 1 <?php
T 2 /*
7e5f92 3     Datatypes:
P 4     - INTEGER
5     - DOUBLE
6     - CURRENCY
7     - VARCHAR
8     - TEXT
9     - DATE
b5a2f8 10 */
T 11
7e5f92 12 //* Name of the list
14b91f 13 $liste['name']                  = 'users';
b5a2f8 14
7e5f92 15 //* Database table
b1a6a5 16 $liste['table']   = 'sys_user';
b5a2f8 17
7e5f92 18 //* Primary index column
b1a6a5 19 $liste['table_idx']  = 'userid';
b5a2f8 20
7e5f92 21 //* Search column prefix
b1a6a5 22 $liste['search_prefix']  = 'search_';
b5a2f8 23
7e5f92 24 //* Records per page
b1a6a5 25 $liste['records_per_page']  = "15";
b5a2f8 26
7e5f92 27 //* Script file for list
b1a6a5 28 $liste['file']   = 'users_list.php';
b5a2f8 29
7e5f92 30 //* Script file to edit
b1a6a5 31 $liste['edit_file']  = 'users_edit.php';
b5a2f8 32
7e5f92 33 //* Script file to delete
b1a6a5 34 $liste['delete_file']  = 'users_del.php';
b5a2f8 35
7e5f92 36 //* Paging template
b1a6a5 37 $liste['paging_tpl']  = 'templates/paging.tpl.htm';
b5a2f8 38
7e5f92 39 //* Enable auth
b1a6a5 40 $liste['auth']   = 'no';
b5a2f8 41
T 42
43 /*****************************************************
44 * Suchfelder
45 *****************************************************/
46
14b91f 47 $liste["item"][] = array(   'field'     => "client_id",
b1a6a5 48     'datatype' => "INTEGER",
MC 49     'formtype' => "TEXT",
50     'op' => "=",
51     'prefix' => "",
52     'suffix' => "",
53     'width' => "",
54     'value' => "");
4a32aa 55
b1a6a5 56 $liste["item"][] = array(   'field' => "active",
MC 57     'datatype' => "VARCHAR",
58     'formtype' => "SELECT",
59     'op' => "=",
60     'prefix' => "",
61     'suffix' => "",
62     'width' => "",
2c408f 63     'value' => array('1' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", '0' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
4a32aa 64
b1a6a5 65 $liste['item'][] = array(   'field' => 'username',
MC 66     'datatype' => 'VARCHAR',
67     'op' => 'like',
68     'prefix' => '%',
69     'suffix' => '%',
70     'width' => '');
4a32aa 71
b1a6a5 72 $liste['item'][] = array(   'field' => 'groups',
MC 73     'datatype' => 'VARCHAR',
74     'op' => 'like',
75     'prefix' => '%',
76     'suffix' => '%',
77     'width' => '');
b5a2f8 78
b1a6a5 79 ?>