Skip to content

Commit 7550de6

Browse files
author
Till Brehm
committed
Added global settings for customer number template.
1 parent c6f36f0 commit 7550de6

File tree

4 files changed

+47
-0
lines changed

4 files changed

+47
-0
lines changed

install/tpl/system.ini.master

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,6 @@ reseller_dashlets_left=
4646
reseller_dashlets_right=
4747
client_dashlets_left=
4848
client_dashlets_right=
49+
customer_no_template=C[CUSTOMER_NO]
50+
customer_no_start=1
51+
customer_no_counter=0

interface/web/admin/form/system_config.tform.php

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,34 @@
445445
'default' => '',
446446
'value' => ''
447447
),
448+
'customer_no_template' => array (
449+
'datatype' => 'VARCHAR',
450+
'formtype' => 'TEXT',
451+
'validators' => array ( 0 => array ( 'type' => 'REGEX',
452+
'regex' => '/^[a-zA-Z0-0\-\_\[\]]{0,50}$/',
453+
'errmsg'=> 'customer_no_template_error_regex'),
454+
),
455+
'default' => '',
456+
'value' => '',
457+
'width' => '30',
458+
'maxlength' => '255'
459+
),
460+
'customer_no_start' => array (
461+
'datatype' => 'INTEGER',
462+
'formtype' => 'TEXT',
463+
'default' => '',
464+
'value' => '',
465+
'width' => '30',
466+
'maxlength' => '255'
467+
),
468+
'customer_no_counter' => array (
469+
'datatype' => 'INTEGER',
470+
'formtype' => 'TEXT',
471+
'default' => '',
472+
'value' => '',
473+
'width' => '30',
474+
'maxlength' => '255'
475+
),
448476
//#################################
449477
// ENDE Datatable fields
450478
//#################################

interface/web/admin/lib/lang/en_system_config.lng

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,8 @@ $wb['reseller_dashlets_left_txt'] = 'Left Reseller Dashlets';
5959
$wb['reseller_dashlets_right_txt'] = 'Right Reseller Dashlets';
6060
$wb['client_dashlets_left_txt'] = 'Left Client Dashlets';
6161
$wb['client_dashlets_right_txt'] = 'Right Client Dashlets';
62+
$wb['customer_no_template_txt'] = 'Customer No. template';
63+
$wb['customer_no_template_error_regex_txt'] = 'The customer No. template contains invalid characters';
64+
$wb['customer_no_start_txt'] = 'Customer No. start value';
65+
$wb['customer_no_counter_txt'] = 'Customer No. counter';
6266
?>

interface/web/admin/templates/system_config_misc_edit.htm

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,18 @@ <h2><tmpl_var name="list_head_txt"></h2>
6868
<div class="multiField">
6969
{tmpl_var name='use_combobox'}<br/>{tmpl_var name='f5_to_reload_js_txt'}
7070
</div>
71+
</div>
72+
<div class="ctrlHolder">
73+
<label for="customer_no_template">{tmpl_var name='customer_no_template_txt'}</label>
74+
<input name="customer_no_template" id="customer_no_template" value="{tmpl_var name='customer_no_template'}" size="30" maxlength="255" type="text" class="textInput formLengthHalf" />
75+
</div>
76+
<div class="ctrlHolder">
77+
<label for="customer_no_start">{tmpl_var name='customer_no_start_txt'}</label>
78+
<input name="customer_no_start" id="customer_no_start" value="{tmpl_var name='customer_no_start'}" size="30" maxlength="255" type="text" class="textInput formLengthHalf" />
79+
</div>
80+
<div class="ctrlHolder">
81+
<label for="customer_no_counter">{tmpl_var name='customer_no_counter_txt'}</label>
82+
<input name="customer_no_counter" id="customer_no_counter" value="{tmpl_var name='customer_no_counter'}" size="30" maxlength="255" type="text" class="textInput formLengthHalf" />
7183
</div>
7284
<div class="ctrlHolder">
7385
<p class="label">{tmpl_var name='maintenance_mode_txt'}</p>

0 commit comments

Comments
 (0)