Commit acbf53a3 authored by tbrehm's avatar tbrehm
Browse files

changed client form

parent 81d69be3
......@@ -32,8 +32,8 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* 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
......
......@@ -32,7 +32,7 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* Begin Form configuration
******************************************/
$tform_def_file = "form/reseller.tform.php";
$tform_def_file = "form/client.tform.php";
/******************************************
* End Form configuration
......
......@@ -6,7 +6,7 @@ require_once('../../lib/app.inc.php');
* Begin Form configuration
******************************************/
$list_def_file = "list/reseller.list.php";
$list_def_file = "list/client.list.php";
/******************************************
* End Form configuration
......
......@@ -33,15 +33,15 @@
*/
$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
......@@ -53,12 +53,12 @@ $form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d =
$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' => '',
......@@ -69,22 +69,11 @@ $form["tabs"]['address'] = array (
'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'),
'errmsg'=> 'contact_error_empty'),
),
'default' => '',
'value' => '',
......@@ -94,12 +83,9 @@ $form["tabs"]['address'] = array (
'rows' => '',
'cols' => ''
),
'surname' => array (
'street' => array (
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
'errmsg'=> 'surname_error_empty'),
),
'default' => '',
'value' => '',
'separator' => '',
......@@ -108,29 +94,29 @@ $form["tabs"]['address'] = array (
'rows' => '',
'cols' => ''
),
'street' => array (
'zip' => array (
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'value' => '',
'separator' => '',
'width' => '30',
'width' => '10',
'maxlength' => '255',
'rows' => '',
'cols' => ''
),
'zip' => array (
'city' => array (
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'value' => '',
'separator' => '',
'width' => '10',
'width' => '30',
'maxlength' => '255',
'rows' => '',
'cols' => ''
),
'city' => array (
'state' => array (
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
......@@ -230,7 +216,7 @@ $form["tabs"]['address'] = array (
'cols' => '30'
),
##################################
# ENDE Datatable fields
# END Datatable fields
##################################
)
);
......@@ -238,16 +224,16 @@ $form["tabs"]['address'] = array (
$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'),
'errmsg'=> 'limit_maildomain_error_notint'),
),
'default' => '-1',
'value' => '',
......@@ -257,11 +243,11 @@ $form["tabs"]['limits'] = array (
'rows' => '',
'cols' => ''
),
'limit_domain' => array (
'limit_mailbox' => array (
'datatype' => 'INTEGER',
'formtype' => 'TEXT',
'validators' => array ( 0 => array ( 'type' => 'ISINT',
'errmsg'=> 'limit_domain_error_notint'),
'errmsg'=> 'limit_mailbox_error_notint'),
),
'default' => '-1',
'value' => '',
......@@ -271,11 +257,11 @@ $form["tabs"]['limits'] = array (
'rows' => '',
'cols' => ''
),
'limit_subdomain' => array (
'limit_mailalias' => array (
'datatype' => 'INTEGER',
'formtype' => 'TEXT',
'validators' => array ( 0 => array ( 'type' => 'ISINT',
'errmsg'=> 'limit_client_subdomain_notint'),
'errmsg'=> 'limit_mailalias_error_notint'),
),
'default' => '-1',
'value' => '',
......@@ -285,11 +271,11 @@ $form["tabs"]['limits'] = array (
'rows' => '',
'cols' => ''
),
'limit_mailbox' => array (
'limit_mailcatchall' => array (
'datatype' => 'INTEGER',
'formtype' => 'TEXT',
'validators' => array ( 0 => array ( 'type' => 'ISINT',
'errmsg'=> 'limit_mailbox_error_notint'),
'errmsg'=> 'limit_mailcatchall_error_notint'),
),
'default' => '-1',
'value' => '',
......@@ -299,11 +285,11 @@ $form["tabs"]['limits'] = array (
'rows' => '',
'cols' => ''
),
'limit_mailalias' => array (
'limit_mailrouting' => array (
'datatype' => 'INTEGER',
'formtype' => 'TEXT',
'validators' => array ( 0 => array ( 'type' => 'ISINT',
'errmsg'=> 'limit_mailalias_error_notint'),
'errmsg'=> 'limit_mailrouting_error_notint'),
),
'default' => '-1',
'value' => '',
......@@ -313,11 +299,11 @@ $form["tabs"]['limits'] = array (
'rows' => '',
'cols' => ''
),
'limit_webquota' => array (
'limit_mailfilter' => array (
'datatype' => 'INTEGER',
'formtype' => 'TEXT',
'validators' => array ( 0 => array ( 'type' => 'ISINT',
'errmsg'=> 'limit_webquota_error_notint'),
'errmsg'=> 'limit_mailfilter_error_notint'),
),
'default' => '-1',
'value' => '',
......@@ -327,11 +313,11 @@ $form["tabs"]['limits'] = array (
'rows' => '',
'cols' => ''
),
'limit_mailquota' => array (
'limit_fetchmail' => array (
'datatype' => 'INTEGER',
'formtype' => 'TEXT',
'validators' => array ( 0 => array ( 'type' => 'ISINT',
'errmsg'=> 'limit_mailquota_error_notint'),
'errmsg'=> 'limit_mailfetchmail_error_notint'),
),
'default' => '-1',
'value' => '',
......@@ -341,11 +327,11 @@ $form["tabs"]['limits'] = array (
'rows' => '',
'cols' => ''
),
'limit_database' => array (
'limit_mailquota' => array (
'datatype' => 'INTEGER',
'formtype' => 'TEXT',
'validators' => array ( 0 => array ( 'type' => 'ISINT',
'errmsg'=> 'limit_database_error_notint'),
'errmsg'=> 'limit_mailquota_error_notint'),
),
'default' => '-1',
'value' => '',
......@@ -356,36 +342,74 @@ $form["tabs"]['limits'] = array (
'cols' => ''
),
##################################
# ENDE Datatable fields
# END Datatable fields
##################################
)
);
$form["tabs"]['users'] = array (
'title' => "CP Users",
$form["tabs"]['login'] = array (
'title' => "Login",
'width' => 100,
'template' => "templates/reseller_edit_users.htm",
'template' => "templates/client_edit_login.htm",
'fields' => array (
##################################
# Beginn Datatable fields
# Begin Datatable fields
##################################
'username' => array (
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'value' => '',
'separator' => '',
'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
# 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
......@@ -402,7 +426,7 @@ $form["tabs"]['ipaddress'] = array (
##################################
)
);
*/
?>
\ No newline at end of file
......@@ -13,6 +13,9 @@ $wb["fax_txt"] = 'Fax';
$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';
......@@ -22,16 +25,7 @@ $wb["limit_webquota_txt"] = 'limit_webquota';
$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.';
?>
\ No newline at end of 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';
?>
\ No newline at end of file
<?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',
),
),
),
......
......@@ -13,13 +13,13 @@
// 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_";
......@@ -28,13 +28,13 @@ $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";
......
<table width="500" border="0" cellspacing="0" cellpadding="2">
<tr>
<td width="126" class="frmText11">{tmpl_var name='company_txt'}:</td>
<td width="366" class="frmText11"><input name="company" type="text" class="text" value="{tmpl_var name='company'}" size="30" maxlength="255"></td>
</tr>
<tr>
<td width="126" class="frmText11">{tmpl_var name='title_txt'}:</td>
<td width="366" class="frmText11">
<select name="title" class="text">
{tmpl_var name='title'}
</select>
</td>
</tr>
<tr>
<td width="126" class="frmText11">{tmpl_var name='firstname_txt'}:</td>
<td width="366" class="frmText11"><input name="firstname" type="text" class="text" value="{tmpl_var name='firstname'}" size="30" maxlength="255"></td>
</tr>
<tr>
<td width="126" class="frmText11">{tmpl_var name='surname_txt'}:</td>
<td width="366" class="frmText11"><input name="surname" type="text" class="text" value="{tmpl_var name='surname'}" size="30" maxlength="255"></td>
</tr>
<tr>
<td width="126" class="frmText11">{tmpl_var name='street_txt'}:</td>
<td width="366" class="frmText11"><input name="street" type="text" class="text" value="{tmpl_var name='street'}" size="30" maxlength="255"></td>
</tr>
<tr>
<td width="126" class="frmText11">{tmpl_var name='zip_txt'}:</td>
<td width="366" class="frmText11"><input name="zip" type="text" class="text" value="{tmpl_var name='zip'}" size="10" maxlength="255"></td>
</tr>
<tr>
<td width="126" class="frmText11">{tmpl_var name='city_txt'}:</td>
<td width="366" class="frmText11"><input name="city" type="text" class="text" value="{tmpl_var name='city'}" size="30" maxlength="255"></td>
</tr>
<tr>
<td width="126" class="frmText11">{tmpl_var name='country_txt'}:</td>
<td width="366" class="frmText11"><input name="country" type="text" class="text" value="{tmpl_var name='country'}" size="30" maxlength="255"></td>
</tr>
<tr>
<td width="126" class="frmText11">{tmpl_var name='telephone_txt'}:</td>
<td width="366" class="frmText11"><input name="telephone" type="text" class="text" value="{tmpl_var name='telephone'}" size="30" maxlength="255"></td>
</tr>
<tr>
<td width="126" class="frmText11">{tmpl_var name='mobile_txt'}:</td>
<td width="366" class="frmText11"><input name="mobile" type="text" class="text" value="{tmpl_var name='mobile'}" size="30" maxlength="255"></td>
</tr>
<tr>
<td width="126" class="frmText11">{tmpl_var name='fax_txt'}:</td>
<td width="366" class="frmText11"><input name="fax" type="text" class="text" value="{tmpl_var name='fax'}" size="30" maxlength="255"></td>
</tr>
<tr>
<td width="126" class="frmText11">{tmpl_var name='email_txt'}:</td>
<td width="366" class="frmText11"><input name="email" type="text" class="text" value="{tmpl_var name='email'}" size="30" maxlength="255"></td>
</tr>
<tr>
<td width="126" class="frmText11">{tmpl_var name='internet_txt'}:</td>
<td width="366" class="frmText11"><input name="internet" type="text" class="text" value="{tmpl_var name='internet'}" size="30" maxlength="255"></td>
</tr>
<tr>
<td width="126" class="frmText11">{tmpl_var name='icq_txt'}:</td>
<td width="366" class="frmText11"><input name="icq" type="text" class="text" value="{tmpl_var name='icq'}" size="30" maxlength="255"></td>
</tr>
<tr>
<td width="126" class="frmText11">{tmpl_var name='notes_txt'}:</td>
<td width="366" class="frmText11"><textarea name='notes' cols='30' rows='5'>{tmpl_var name='notes'}</textarea></td>
</tr>
<tr>
<td class="frmText11">&nbsp;</td>
<td class="frmText11">&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td><input name="btn_save" type="submit" class="button" value="{tmpl_var name='btn_save_txt'}">
<input name="btn_cancel" type="button" class="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="self.location.href='reseller_list.php';">
</td>
</tr>
</table>
<input type="hidden" name="id" value="{tmpl_var name='id'}">
\ No newline at end of file
<table width="500" border="0" cellspacing="0" cellpadding="2">
<tr>
<td width="126" class="frmText11">{tmpl_var name='ip_address_txt'}:</td>
<td width="366" class="frmText11">{tmpl_var name='ip_address'}</td>
</tr> <tr>
<td class="frmText11">&nbsp;</td>
<td class="frmText11">&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td><input name="Speichern" type="submit" class="button" value="Speichern">
<input name="Abbrechen" type="button" class="button" value="Abbrechen" onClick="self.location.href='reseller_list.php';">
</td>
</tr>
</table>
<input type="hidden" name="id" value="{tmpl_var name='id'}">
\ No newline at end of file
<table width="500" border="0" cellspacing="0" cellpadding="2">
<tr>
<td width="126" class="frmText11">{tmpl_var name='limit_client_txt'}:</td>
<td width="366" class="frmText11"><input name="limit_client" type="text" class="text" value="{tmpl_var name='limit_client'}" size="10" maxlength="10"></td>
</tr>
<tr>
<td width="126" class="frmText11">{tmpl_var name='limit_domain_txt'}:</td>
<td width="366" class="frmText11"><input name="limit_domain" type="text" class="text" value="{tmpl_var name='limit_domain'}" size="10" maxlength="10"></td>
</tr>
<tr>
<td width="126" class="frmText11">{tmpl_var name='limit_subdomain_txt'}:</td>
<td width="366" class="frmText11"><input name="limit_subdomain" type="text" class="text" value="{tmpl_var name='limit_subdomain'}" size="10" maxlength="10"></td>
</tr>
<tr>
<td width="126" class="frmText11">{tmpl_var name='limit_mailbox_txt'}:</td>
<td width="366" class="frmText11"><input name="limit_mailbox" type="text" class="text" value="{tmpl_var name='limit_mailbox'}" size="10" maxlength="10"></td>
</tr>
<tr>
<td width="126" class="frmText11">{tmpl_var name='limit_mailalias_txt'}:</td>
<td width="366" class="frmText11"><input name="limit_mailalias" type="text" class="text" value="{tmpl_var name='limit_mailalias'}" size="10" maxlength="10"></td>
</tr>
<tr>
<td width="126" class="frmText11">{tmpl_var name='limit_webquota_txt'}:</td>