6 files deleted
9 files modified
2 files added
| | |
| | | * Begin Form configuration
|
| | | ******************************************/
|
| | |
|
| | | $list_def_file = "list/reseller.list.php";
|
| | | $tform_def_file = "form/reseller.tform.php";
|
| | | $list_def_file = "list/client.list.php"; |
| | | $tform_def_file = "form/client.tform.php"; |
| | |
|
| | | /******************************************
|
| | | * End Form configuration
|
| | |
| | | * Begin Form configuration
|
| | | ******************************************/
|
| | |
|
| | | $tform_def_file = "form/reseller.tform.php";
|
| | | $tform_def_file = "form/client.tform.php"; |
| | |
|
| | | /******************************************
|
| | | * End Form configuration
|
| | |
| | | * Begin Form configuration
|
| | | ******************************************/
|
| | |
|
| | | $list_def_file = "list/reseller.list.php";
|
| | | $list_def_file = "list/client.list.php"; |
| | |
|
| | | /******************************************
|
| | | * End Form configuration
|
| | |
| | |
|
| | | */
|
| | |
|
| | | $form["title"] = "Reseller";
|
| | | $form["title"] = "Client"; |
| | | $form["description"] = "";
|
| | | $form["name"] = "reseller";
|
| | | $form["action"] = "reseller_edit.php";
|
| | | $form["db_table"] = "reseller";
|
| | | $form["db_table_idx"] = "reseller_id";
|
| | | $form["name"] = "client"; |
| | | $form["action"] = "client_edit.php"; |
| | | $form["db_table"] = "client"; |
| | | $form["db_table_idx"] = "client_id"; |
| | | $form["db_history"] = "yes";
|
| | | $form["tab_default"] = "address";
|
| | | $form["list_default"] = "reseller_list.php";
|
| | | $form["list_default"] = "client_list.php"; |
| | | $form["auth"] = 'yes';
|
| | |
|
| | | $form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user
|
| | |
| | | $form["tabs"]['address'] = array (
|
| | | 'title' => "Address",
|
| | | 'width' => 100,
|
| | | 'template' => "templates/reseller_edit_address.htm",
|
| | | 'template' => "templates/client_edit_address.htm", |
| | | 'fields' => array (
|
| | | ##################################
|
| | | # Begin Datatable fields
|
| | | ##################################
|
| | | 'company' => array (
|
| | | 'company_name' => array ( |
| | | 'datatype' => 'VARCHAR',
|
| | | 'formtype' => 'TEXT',
|
| | | 'default' => '',
|
| | |
| | | 'rows' => '',
|
| | | 'cols' => ''
|
| | | ),
|
| | | 'title' => array (
|
| | | 'datatype' => 'VARCHAR',
|
| | | 'formtype' => 'SELECT',
|
| | | 'default' => '',
|
| | | 'value' => array('Mrs.' => 'Mrs.','Mr.'=>'Mr.','Company'=>'Company'),
|
| | | 'separator' => '',
|
| | | 'width' => '',
|
| | | 'maxlength' => '255',
|
| | | 'rows' => '',
|
| | | 'cols' => ''
|
| | | ),
|
| | | 'firstname' => array (
|
| | | 'contact_name' => array ( |
| | | 'datatype' => 'VARCHAR',
|
| | | 'formtype' => 'TEXT',
|
| | | 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
|
| | | 'errmsg'=> 'firstname_error_empty'),
|
| | | ),
|
| | | 'default' => '',
|
| | | 'value' => '',
|
| | | 'separator' => '',
|
| | | 'width' => '30',
|
| | | 'maxlength' => '255',
|
| | | 'rows' => '',
|
| | | 'cols' => ''
|
| | | ),
|
| | | 'surname' => array (
|
| | | 'datatype' => 'VARCHAR',
|
| | | 'formtype' => 'TEXT',
|
| | | 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
|
| | | 'errmsg'=> 'surname_error_empty'),
|
| | | 'errmsg'=> 'contact_error_empty'), |
| | | ),
|
| | | 'default' => '',
|
| | | 'value' => '',
|
| | |
| | | 'cols' => ''
|
| | | ),
|
| | | 'city' => array (
|
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | | 'default' => '', |
| | | 'value' => '', |
| | | 'separator' => '', |
| | | 'width' => '30', |
| | | 'maxlength' => '255', |
| | | 'rows' => '', |
| | | 'cols' => '' |
| | | ), |
| | | 'state' => array ( |
| | | 'datatype' => 'VARCHAR',
|
| | | 'formtype' => 'TEXT',
|
| | | 'default' => '',
|
| | |
| | | 'cols' => '30'
|
| | | ),
|
| | | ##################################
|
| | | # ENDE Datatable fields
|
| | | # END Datatable fields |
| | | ##################################
|
| | | )
|
| | | );
|
| | |
| | | $form["tabs"]['limits'] = array (
|
| | | 'title' => "Limits",
|
| | | 'width' => 80,
|
| | | 'template' => "templates/reseller_edit_limits.htm",
|
| | | 'template' => "templates/client_edit_limits.htm", |
| | | 'fields' => array (
|
| | | ##################################
|
| | | # Beginn Datatable fields
|
| | | # Begin Datatable fields |
| | | ##################################
|
| | | 'limit_client' => array (
|
| | | 'limit_maildomain' => array ( |
| | | 'datatype' => 'INTEGER',
|
| | | 'formtype' => 'TEXT',
|
| | | 'validators' => array ( 0 => array ( 'type' => 'ISINT',
|
| | | 'errmsg'=> 'limit_client_error_notint'),
|
| | | ),
|
| | | 'default' => '-1',
|
| | | 'value' => '',
|
| | | 'separator' => '',
|
| | | 'width' => '10',
|
| | | 'maxlength' => '10',
|
| | | 'rows' => '',
|
| | | 'cols' => ''
|
| | | ),
|
| | | 'limit_domain' => array (
|
| | | 'datatype' => 'INTEGER',
|
| | | 'formtype' => 'TEXT',
|
| | | 'validators' => array ( 0 => array ( 'type' => 'ISINT',
|
| | | 'errmsg'=> 'limit_domain_error_notint'),
|
| | | ),
|
| | | 'default' => '-1',
|
| | | 'value' => '',
|
| | | 'separator' => '',
|
| | | 'width' => '10',
|
| | | 'maxlength' => '10',
|
| | | 'rows' => '',
|
| | | 'cols' => ''
|
| | | ),
|
| | | 'limit_subdomain' => array (
|
| | | 'datatype' => 'INTEGER',
|
| | | 'formtype' => 'TEXT',
|
| | | 'validators' => array ( 0 => array ( 'type' => 'ISINT',
|
| | | 'errmsg'=> 'limit_client_subdomain_notint'),
|
| | | 'errmsg'=> 'limit_maildomain_error_notint'), |
| | | ),
|
| | | 'default' => '-1',
|
| | | 'value' => '',
|
| | |
| | | 'rows' => '',
|
| | | 'cols' => ''
|
| | | ),
|
| | | 'limit_webquota' => array (
|
| | | 'limit_mailcatchall' => array ( |
| | | 'datatype' => 'INTEGER',
|
| | | 'formtype' => 'TEXT',
|
| | | 'validators' => array ( 0 => array ( 'type' => 'ISINT',
|
| | | 'errmsg'=> 'limit_webquota_error_notint'),
|
| | | 'errmsg'=> 'limit_mailcatchall_error_notint'), |
| | | ), |
| | | 'default' => '-1', |
| | | 'value' => '', |
| | | 'separator' => '', |
| | | 'width' => '10', |
| | | 'maxlength' => '10', |
| | | 'rows' => '', |
| | | 'cols' => '' |
| | | ), |
| | | 'limit_mailrouting' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'TEXT', |
| | | 'validators' => array ( 0 => array ( 'type' => 'ISINT', |
| | | 'errmsg'=> 'limit_mailrouting_error_notint'), |
| | | ), |
| | | 'default' => '-1', |
| | | 'value' => '', |
| | | 'separator' => '', |
| | | 'width' => '10', |
| | | 'maxlength' => '10', |
| | | 'rows' => '', |
| | | 'cols' => '' |
| | | ), |
| | | 'limit_mailfilter' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'TEXT', |
| | | 'validators' => array ( 0 => array ( 'type' => 'ISINT', |
| | | 'errmsg'=> 'limit_mailfilter_error_notint'), |
| | | ), |
| | | 'default' => '-1', |
| | | 'value' => '', |
| | | 'separator' => '', |
| | | 'width' => '10', |
| | | 'maxlength' => '10', |
| | | 'rows' => '', |
| | | 'cols' => '' |
| | | ), |
| | | 'limit_fetchmail' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'TEXT', |
| | | 'validators' => array ( 0 => array ( 'type' => 'ISINT', |
| | | 'errmsg'=> 'limit_mailfetchmail_error_notint'), |
| | | ),
|
| | | 'default' => '-1',
|
| | | 'value' => '',
|
| | |
| | | 'rows' => '',
|
| | | 'cols' => ''
|
| | | ),
|
| | | 'limit_database' => array (
|
| | | 'datatype' => 'INTEGER',
|
| | | ################################## |
| | | # END Datatable fields |
| | | ################################## |
| | | ) |
| | | ); |
| | | |
| | | $form["tabs"]['login'] = array ( |
| | | 'title' => "Login", |
| | | 'width' => 100, |
| | | 'template' => "templates/client_edit_login.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | 'username' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT',
|
| | | 'validators' => array ( 0 => array ( 'type' => 'ISINT',
|
| | | 'errmsg'=> 'limit_database_error_notint'),
|
| | | ),
|
| | | 'default' => '-1',
|
| | | 'default' => '', |
| | | 'value' => '',
|
| | | 'separator' => '',
|
| | | 'width' => '10',
|
| | | 'maxlength' => '10',
|
| | | 'width' => '30', |
| | | 'maxlength' => '255', |
| | | 'rows' => '', |
| | | 'cols' => '' |
| | | ), |
| | | 'password' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'PASSWORD', |
| | | 'default' => '', |
| | | 'value' => '', |
| | | 'separator' => '', |
| | | 'width' => '30', |
| | | 'maxlength' => '255', |
| | | 'rows' => '', |
| | | 'cols' => '' |
| | | ), |
| | | 'language' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'SELECT', |
| | | 'default' => $conf["language"], |
| | | 'value' => array('en' => 'en'), |
| | | 'separator' => '', |
| | | 'width' => '30', |
| | | 'maxlength' => '255', |
| | | 'rows' => '', |
| | | 'cols' => '' |
| | | ), |
| | | 'theme' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'SELECT', |
| | | 'default' => 'default', |
| | | 'value' => array('default' => 'default'), |
| | | 'separator' => '', |
| | | 'width' => '30', |
| | | 'maxlength' => '255', |
| | | 'rows' => '',
|
| | | 'cols' => ''
|
| | | ),
|
| | | ##################################
|
| | | # ENDE Datatable fields
|
| | | ##################################
|
| | | )
|
| | | );
|
| | |
|
| | | $form["tabs"]['users'] = array (
|
| | | 'title' => "CP Users",
|
| | | 'width' => 100,
|
| | | 'template' => "templates/reseller_edit_users.htm",
|
| | | 'fields' => array (
|
| | | ##################################
|
| | | # Beginn Datatable fields
|
| | | ##################################
|
| | | |
| | | ##################################
|
| | | # ENDE Datatable fields
|
| | | # END Datatable fields |
| | | ##################################
|
| | | ),
|
| | | 'plugins' => array ( |
| | | 'cpuser_list' => array (
|
| | | 'class' => 'plugin_listview',
|
| | | 'options' => array('listdef' => 'list/users.list.php')
|
| | | )
|
| | | )
|
| | | );
|
| | |
|
| | | /* |
| | | $form["tabs"]['ipaddress'] = array (
|
| | | 'title' => "IP Addresses",
|
| | | 'width' => 100,
|
| | | 'template' => "templates/reseller_edit_ipaddress.htm",
|
| | | 'template' => "templates/client_edit_ipaddress.htm", |
| | | 'fields' => array (
|
| | | ##################################
|
| | | # Beginn Datatable fields
|
| | |
| | | ##################################
|
| | | )
|
| | | );
|
| | |
|
| | | */ |
| | |
|
| | |
|
| | | ?> |
| | |
| | | $wb["email_txt"] = 'Email';
|
| | | $wb["internet_txt"] = 'Internet';
|
| | | $wb["icq_txt"] = 'ICQ';
|
| | | $wb["notes_txt"] = 'Notes';
|
| | | $wb["btn_save_txt"] = 'Save';
|
| | | $wb["btn_cancel_txt"] = 'Cancel';
|
| | | $wb["limit_client_txt"] = 'limit_client';
|
| | | $wb["limit_domain_txt"] = 'limit_domain';
|
| | | $wb["limit_subdomain_txt"] = 'limit_subdomain';
|
| | |
| | | $wb["limit_mailquota_txt"] = 'limit_mailquota';
|
| | | $wb["limit_database_txt"] = 'limit_database';
|
| | | $wb["ip_address_txt"] = 'ip_address';
|
| | | $wb["notes_txt"] = 'Notes';
|
| | | $wb["btn_save_txt"] = 'Save';
|
| | | $wb["btn_cancel_txt"] = 'Cancel';
|
| | |
|
| | | // Error Messages
|
| | | $wb['limit_client_error_notint'] = 'Client Limit is not a number.';
|
| | | $wb['firstname_error_empty'] = 'Firstname is empty.';
|
| | | $wb['surname_error_empty'] = 'Surname is empty.';
|
| | |
|
| | |
|
| | |
|
| | |
|
| | | $wb["limit_client_error_notint"] = 'Client Limit is not a number.';
|
| | | $wb["firstname_error_empty"] = 'Firstname is empty.';
|
| | | $wb["surname_error_empty"] = 'Surname is empty.';
|
| | | ?> |
New file |
| | |
| | | <?php
|
| | | $wb["list_head_txt"] = 'clients';
|
| | | $wb["company_txt"] = 'company';
|
| | | $wb["firstname_txt"] = 'firstname';
|
| | | $wb["surname_txt"] = 'surname';
|
| | | $wb["city_txt"] = 'city';
|
| | | $wb["page_txt"] = 'Page';
|
| | | $wb["page_of_txt"] = 'of';
|
| | | $wb["page_next_txt"] = 'Next';
|
| | | $wb["page_back_txt"] = 'Back';
|
| | | $wb["delete_txt"] = 'Delete';
|
| | | $wb["filter_txt"] = 'Filter';
|
| | | ?> |
| | |
| | | <?php
|
| | | $module = array ( |
| | | 'name' => 'resellers', |
| | | 'title' => 'Resellers', |
| | | 'name' => 'client', |
| | | 'title' => 'Client', |
| | | 'template' => 'module.tpl.htm', |
| | | 'navframe_page' => '', |
| | | 'startpage' => 'resellers/reseller_list.php', |
| | | 'startpage' => 'client/client_list.php', |
| | | 'tab_width' => '', |
| | | 'nav' => |
| | | array ( |
| | | 0 => |
| | | array ( |
| | | 'title' => 'Resellers', |
| | | 'title' => 'Clients', |
| | | 'open' => 1, |
| | | 'items' => |
| | | array ( |
| | | 0 => |
| | | array ( |
| | | 'title' => 'Add Reseller', |
| | | 'title' => 'Add Client', |
| | | 'target' => 'content', |
| | | 'link' => 'resellers/reseller_edit.php', |
| | | 'link' => 'client/client_edit.php', |
| | | ), |
| | | 1 => |
| | | array ( |
| | | 'title' => 'Edit Reseller', |
| | | 'title' => 'Edit Client', |
| | | 'target' => 'content', |
| | | 'link' => 'resellers/reseller_list.php', |
| | | 'link' => 'client/client_list.php', |
| | | ), |
| | | ), |
| | | ), |
| | |
| | |
|
| | |
|
| | | // Name of the list
|
| | | $liste["name"] = "resellers";
|
| | | $liste["name"] = "clients"; |
| | |
|
| | | // Database table
|
| | | $liste["table"] = "reseller";
|
| | | $liste["table"] = "client"; |
| | |
|
| | | // Index index field of the database table
|
| | | $liste["table_idx"] = "reseller_id";
|
| | | $liste["table_idx"] = "client_id"; |
| | |
|
| | | // Search Field Prefix
|
| | | $liste["search_prefix"] = "search_";
|
| | |
| | | $liste["records_per_page"] = 15;
|
| | |
|
| | | // Script File of the list
|
| | | $liste["file"] = "reseller_list.php";
|
| | | $liste["file"] = "client_list.php"; |
| | |
|
| | | // Script file of the edit form
|
| | | $liste["edit_file"] = "reseller_edit.php";
|
| | | $liste["edit_file"] = "client_edit.php"; |
| | |
|
| | | // Script File of the delete script
|
| | | $liste["delete_file"] = "reseller_del.php";
|
| | | $liste["delete_file"] = "client_del.php"; |
| | |
|
| | | // Paging Template
|
| | | $liste["paging_tpl"] = "templates/paging.tpl.htm";
|
New file |
| | |
| | | <div class="frmTextHead"><tmpl_var name="list_head_txt"></div><br /> |
| | | <input type="button" value="{tmpl_var name="add_new_record_txt"}" class="button" onClick="loadContent('client/client_edit.php');" /><div class="buttonEnding"></div><br /><br /> |
| | | <table width="100%" border="0" cellspacing="0" cellpadding="4" class="listTable"> |
| | | <tr> |
| | | <td class="tblHead"><tmpl_var name="company_txt"></td>
|
| | | <td class="tblHead"><tmpl_var name="firstname_txt"></td>
|
| | | <td class="tblHead"><tmpl_var name="surname_txt"></td>
|
| | | <td class="tblHead"><tmpl_var name="city_txt"></td>
|
| | | <td class="tblHead"> </td> |
| | | </tr> |
| | | <tr> |
| | | <td class="frmText11"><input type="text" name="search_company" value="{tmpl_var name='search_company'}" class="text" /></td>
|
| | | <td class="frmText11"><input type="text" name="search_firstname" value="{tmpl_var name='search_firstname'}" class="text" /></td>
|
| | | <td class="frmText11"><input type="text" name="search_surname" value="{tmpl_var name='search_surname'}" class="text" /></td>
|
| | | <td class="frmText11"><input type="text" name="search_city" value="{tmpl_var name='search_city'}" class="text" /></td>
|
| | | <td class="frmText11" align="right"><input name="Filter" type="button" id="Filter" value="{tmpl_var name="filter_txt"}" class="button" onClick="submitForm('pageForm','client/client_list.php');"><div class="buttonEnding"></div></td> |
| | | </tr> |
| | | <tmpl_loop name="records"> |
| | | <tr bgcolor="{tmpl_var name="bgcolor"}"> |
| | | <td class="frmText11"><a href="#" onClick="loadContent('client/client_edit.php?id={tmpl_var name='id'}');" class="frmText11">{tmpl_var name="company"}</a></td>
|
| | | <td class="frmText11"><a href="#" onClick="loadContent('client/client_edit.php?id={tmpl_var name='id'}');" class="frmText11">{tmpl_var name="firstname"}</a></td>
|
| | | <td class="frmText11"><a href="#" onClick="loadContent('client/client_edit.php?id={tmpl_var name='id'}');" class="frmText11">{tmpl_var name="surname"}</a></td>
|
| | | <td class="frmText11"><a href="#" onClick="loadContent('client/client_edit.php?id={tmpl_var name='id'}');" class="frmText11">{tmpl_var name="city"}</a></td>
|
| | | <td class="frmText11" align="right">[<a href="javascript: del_record('client/client_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}');" class="frmText11">{tmpl_var name='delete_txt'}</a>]</td> |
| | | </tr> |
| | | </tmpl_loop> |
| | | |
| | | <tr> |
| | | <td colspan="5" height="40" align="center" class="tblFooter"><tmpl_var name="paging"></td> |
| | | </tr> |
| | | </table> |
| | |
| | | |
| | | } |
| | | .navTopDefault { |
| | | background-color: #496FA8; |
| | | border: 1px solid #BFCBD9; |
| | | background-color: #DEE4F2; |
| | | /*border: 1px solid #FFFFFF;*/ |
| | | border-top: 1px solid #FFFFFF; |
| | | border-right: 1px none #FFFFFF; |
| | | border-bottom: 0px none #BFCBD9; |
| | | border-left: 1px solid #FFFFFF; |
| | | text-align: center; |
| | | |
| | | |
| | |
| | | font-family: Verdana, Arial, Helvetica, sans-serif; |
| | | font-size: 11px; |
| | | font-weight: bold; |
| | | color: #FFFFFF; |
| | | color: #496FA8; |
| | | text-decoration: none; |
| | | } |
| | | .txtNavTopSelected { |
| | |
| | | <tr bgcolor="#496FA8"> |
| | | <td height="30" colspan="2" align="right" valign="top" background="themes/default/images/bg_nav_1.jpg"><!--<img src="themes/default/images/mydnsconfig_logo.gif" border="0" alt="">--></td> |
| | | </tr> |
| | | <tr bgcolor="#FFFFFF"> |
| | | <td height="1" colspan="2" align="center" valign="bottom"><img src="themes/default/images/x.gif" width="1" height="1"></td> |
| | | </tr> |
| | | <tr> |
| | | <td width="128" height="18" align="left" valign="middle" bgcolor="#496FA8"><img src="themes/default/images/login_logout.gif" width="115" height="10" border="0" usemap="#Map"><br> |
| | | </td> |