Marius Burkard
2016-04-20 4569cae57f127afd093794310ccd290d2d9fdf36
commit | author | age
acbf53 1 <?php
b1a6a5 2 require_once '../../lib/config.inc.php';
MC 3 require_once '../../lib/app.inc.php';
acbf53 4
T 5 /******************************************
6 * Begin Form configuration
7 ******************************************/
8
9 $list_def_file = "list/client.list.php";
10
11 /******************************************
12 * End Form configuration
13 ******************************************/
14
910093 15 //* Check permissions for module
T 16 $app->auth->check_module_permissions('client');
acbf53 17
T 18 $app->uses('listform_actions');
9157d2 19
d22277 20 class list_action extends listform_actions {
MB 21     function onShow() {
22         global $app;
23         
24         if(is_file(ISPC_WEB_PATH.'/robot/lib/robot_config.inc.php')){
25             $app->tpl->setVar('has_robot', true);
26         }
27         
28         parent::onShow();
29     }
acbf53 30
d22277 31 }
acbf53 32
d22277 33 $list = new list_action;
MB 34 $list->SQLOrderBy = 'ORDER BY client.company_name, client.contact_name, client.client_id';
35 $list->SQLExtWhere = "client.limit_client = 0";
36 $list->SQLExtSelect = ', LOWER(client.country) as countryiso';
37 $list->onLoad();
b1a6a5 38 ?>