standard sorting by main characteristic for most lists
| | |
| | | |
| | | global $app; |
| | | |
| | | $sql = "SELECT template_id,template_name FROM client_template WHERE template_type = 'a'"; |
| | | $sql = "SELECT template_id,template_name FROM client_template WHERE template_type = 'a' ORDER BY template_name ASC"; |
| | | $tpls = $app->db->queryAllRecords($sql); |
| | | $option = ''; |
| | | $tpl = array(); |
| | |
| | | if(!$_SESSION["s"]["user"]["typ"] == 'admin') die('Client-Templates are only for Admins.'); |
| | | |
| | | $app->uses('listform_actions'); |
| | | $app->listform_actions->SQLOrderBy = 'ORDER BY template_name'; |
| | | $app->listform_actions->onLoad(); |
| | | ?> |
| | |
| | | ), |
| | | 'country' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | |
| | | 'formtype' => 'SELECT', |
| | | 'default' => (isset($conf['language']) ? strtoupper($conf['language']) : ''), |
| | | 'datasource' => array ( 'type' => 'SQL', |
| | | 'querystring' => 'SELECT iso,printable_name FROM country ORDER BY printable_name', |
| | | 'querystring' => 'SELECT iso,printable_name FROM country ORDER BY iso ASC', |
| | | 'keyfield'=> 'iso', |
| | | 'valuefield'=> 'printable_name' |
| | | ), |
| | |
| | | |
| | | $liste["item"][] = array( 'field' => "country", |
| | | 'datatype' => "VARCHAR", |
| | | 'formtype' => "TEXT", |
| | | 'op' => "like", |
| | | 'prefix' => "%", |
| | | 'suffix' => "%", |
| | | 'formtype' => "SELECT", |
| | | 'op' => "=", |
| | | 'prefix' => "", |
| | | 'suffix' => "", |
| | | 'width' => "", |
| | | 'value' => ""); |
| | | |
| | | |
| | | ?> |
| | |
| | | |
| | | $liste["item"][] = array( 'field' => "country", |
| | | 'datatype' => "VARCHAR", |
| | | 'formtype' => "TEXT", |
| | | 'op' => "like", |
| | | 'prefix' => "%", |
| | | 'suffix' => "%", |
| | | 'formtype' => "SELECT", |
| | | 'op' => "=", |
| | | 'prefix' => "", |
| | | 'suffix' => "", |
| | | 'width' => "", |
| | | 'value' => ""); |
| | | |
| | | |
| | | ?> |
| | |
| | | <td class="tbl_col_contact_name"><input type="text" name="search_contact_name" value="{tmpl_var name='search_contact_name'}" style="width:120px;" /></td> |
| | | <td class="tbl_col_username"><input type="text" name="search_username" value="{tmpl_var name='search_username'}" style="width:120px;" /></td> |
| | | <td class="tbl_col_city"><input type="text" name="search_city" value="{tmpl_var name='search_city'}" style="width:120px;" /></td> |
| | | <td class="tbl_col_country"><input type="text" name="search_country" value="{tmpl_var name='search_country'}" style="width:30px;" /></td> |
| | | <td class="tbl_col_country"><select name="search_country" style="width:120px;">{tmpl_var name='search_country'}</select></td> |
| | | <td class="tbl_col_buttons"><div class="buttons"><button type="button" class="icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','client/client_list.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td> |
| | | </tr> |
| | | </thead> |
| | |
| | | <td class="tbl_col_company_name"><input type="text" name="search_company_name" value="{tmpl_var name='search_company_name'}" style="width:120px;" /></td> |
| | | <td class="tbl_col_contact_name"><input type="text" name="search_contact_name" value="{tmpl_var name='search_contact_name'}" style="width:120px;" /></td> |
| | | <td class="tbl_col_city"><input type="text" name="search_city" value="{tmpl_var name='search_city'}" style="width:120px;" /></td> |
| | | <td class="tbl_col_country"><input type="text" name="search_country" value="{tmpl_var name='search_country'}" style="width:30px;" /></td> |
| | | <td class="tbl_col_country"><select name="search_country" style="width:120px;">{tmpl_var name='search_country'}</select></td> |
| | | <td class="tbl_col_buttons"><div class="buttons"><button type="button" class="icons16 icoFilter" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" onClick="submitForm('pageForm','client/reseller_list.php');"><span>{tmpl_var name="filter_txt"}</span></button></div></td> |
| | | </tr> |
| | | </thead> |
| | |
| | | $app->uses('listform_actions'); |
| | | // $app->listform_actions->SQLExtWhere = "access = 'REJECT'"; |
| | | |
| | | $app->listform_actions->SQLOrderBy = 'ORDER BY name'; |
| | | $app->listform_actions->onLoad(); |
| | | |
| | | |
| | |
| | | |
| | | |
| | | // Load the templates |
| | | $records = $app->db->queryAllRecords("SELECT * FROM dns_template WHERE visible = 'Y'"); |
| | | $records = $app->db->queryAllRecords("SELECT * FROM dns_template WHERE visible = 'Y' ORDER BY name ASC"); |
| | | $template_id_option = ''; |
| | | $n = 0; |
| | | foreach($records as $rec){ |
| | |
| | | 'suffix' => "%", |
| | | 'width' => "", |
| | | 'value' => ""); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | ?> |
| | |
| | | 'suffix' => "%", |
| | | 'width' => "", |
| | | 'value' => ""); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | ?> |
| | |
| | | |
| | | $app->uses('listform_actions'); |
| | | |
| | | $app->listform_actions->SQLOrderBy = 'ORDER BY domain'; |
| | | $app->listform_actions->onLoad(); |
| | | |
| | | ?> |
| | |
| | | // Limit the results to alias domains |
| | | // $app->listform_actions->SQLExtWhere = "type = 'local'"; |
| | | |
| | | $app->listform_actions->SQLOrderBy = 'ORDER BY domain'; |
| | | $app->listform_actions->onLoad(); |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | $list = new list_action; |
| | | $list->SQLOrderBy = 'ORDER BY database_name'; |
| | | $list->onLoad(); |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | $list = new list_action; |
| | | $list->SQLOrderBy = 'ORDER BY username'; |
| | | $list->onLoad(); |
| | | |
| | | |
| | |
| | | // Limit the results to alias domains |
| | | //$app->listform_actions->SQLExtWhere = "type = 'subdomain'"; |
| | | |
| | | $app->listform_actions->SQLOrderBy = 'ORDER BY username'; |
| | | $app->listform_actions->onLoad(); |
| | | |
| | | |
| | |
| | | |
| | | $list = new list_action; |
| | | $list->SQLExtWhere = "type = 'vhost'"; |
| | | |
| | | $list->SQLOrderBy = 'ORDER BY domain'; |
| | | $list->onLoad(); |
| | | |
| | | |
| | |
| | | |
| | | // Limit the results to alias domains |
| | | $app->listform_actions->SQLExtWhere = "type = 'alias'"; |
| | | |
| | | $app->listform_actions->SQLOrderBy = 'ORDER BY domain'; |
| | | $app->listform_actions->onLoad(); |
| | | |
| | | |
| | |
| | | |
| | | $list = new list_action; |
| | | $list->SQLExtWhere = "type = 'vhost'"; |
| | | $list->SQLOrderBy = 'ORDER BY domain'; |
| | | $list->onLoad(); |
| | | |
| | | |
| | | ?> |
| | |
| | | |
| | | $list = new list_action; |
| | | $list->SQLExtWhere = "type = 'vhost'"; |
| | | |
| | | $list->SQLOrderBy = 'ORDER BY domain'; |
| | | $list->onLoad(); |
| | | |
| | | |
| | |
| | | |
| | | // Limit the results to alias domains |
| | | $app->listform_actions->SQLExtWhere = "type = 'subdomain'"; |
| | | |
| | | $app->listform_actions->SQLOrderBy = 'ORDER BY domain'; |
| | | $app->listform_actions->onLoad(); |
| | | |
| | | |
| | |
| | | $app->auth->check_module_permissions('sites'); |
| | | |
| | | $app->uses('listform_actions'); |
| | | |
| | | $app->listform_actions->SQLOrderBy = 'ORDER BY username'; |
| | | $app->listform_actions->onLoad(); |
| | | |
| | | |
| | |
| | | |
| | | $app->uses('listform_actions'); |
| | | |
| | | // $app->listform_actions->SQLOrderBy = 'ORDER BY company_name, contact_name, client_id'; |
| | | // $app->listform_actions->SQLExtWhere = "limit_client = 0"; |
| | | $app->listform_actions->SQLOrderBy = 'ORDER BY server_id,ip_address'; |
| | | $app->listform_actions->onLoad(); |
| | | |
| | | |