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