Skip to content

Commit 4e44dd7

Browse files
committed
changed client form
1 parent 1f6ae2a commit 4e44dd7

File tree

9 files changed

+200
-327
lines changed

9 files changed

+200
-327
lines changed
Lines changed: 120 additions & 119 deletions
Original file line numberDiff line numberDiff line change
@@ -1,120 +1,121 @@
1-
<?php
2-
3-
$module["name"] = "admin";
4-
$module["title"] = "System";
5-
$module["template"] = "module.tpl.htm";
6-
$module["startpage"] = "admin/users_list.php";
7-
$module["tab_width"] = '60';
8-
9-
10-
$items[] = array( 'title' => "Add user",
11-
'target' => 'content',
12-
'link' => 'admin/users_edit.php');
13-
14-
$items[] = array( 'title' => "Edit user",
15-
'target' => 'content',
16-
'link' => 'admin/users_list.php');
17-
18-
19-
$module["nav"][] = array( 'title' => 'CP Users',
20-
'open' => 1,
21-
'items' => $items);
22-
23-
24-
// aufräumen
25-
unset($items);
26-
27-
$items[] = array( 'title' => "Add group",
28-
'target' => 'content',
29-
'link' => 'admin/groups_edit.php');
30-
31-
$items[] = array( 'title' => "Edit group",
32-
'target' => 'content',
33-
'link' => 'admin/groups_list.php');
34-
35-
36-
$module["nav"][] = array( 'title' => 'Groups',
37-
'open' => 1,
38-
'items' => $items);
39-
40-
41-
// aufräumen
42-
unset($items);
43-
44-
$items[] = array( 'title' => "Add server",
45-
'target' => 'content',
46-
'link' => 'admin/server_edit.php');
47-
48-
$items[] = array( 'title' => "Edit server",
49-
'target' => 'content',
50-
'link' => 'admin/server_list.php');
51-
52-
53-
$module["nav"][] = array( 'title' => 'Servers',
54-
'open' => 1,
55-
'items' => $items);
56-
57-
58-
// aufräumen
59-
unset($items);
60-
61-
$items[] = array( 'title' => "Add user",
62-
'target' => 'content',
63-
'link' => 'admin/dbsync_edit.php');
64-
65-
$items[] = array( 'title' => "Edit user",
66-
'target' => 'content',
67-
'link' => 'admin/dbsync_list.php');
68-
69-
70-
$items[] = array( 'title' => "Sync. Now",
71-
'target' => 'content',
72-
'link' => 'admin/dbsync_cron.php');
73-
74-
$module["nav"][] = array( 'title' => 'DB Sync.',
75-
'open' => 1,
76-
'items' => $items);
77-
78-
79-
// aufräumen
80-
unset($items);
81-
82-
$items[] = array( 'title' => "Add user",
83-
'target' => 'content',
84-
'link' => 'admin/filesync_edit.php');
85-
86-
$items[] = array( 'title' => "Edit user",
87-
'target' => 'content',
88-
'link' => 'admin/filesync_list.php');
89-
90-
91-
$module["nav"][] = array( 'title' => 'File Sync.',
92-
'open' => 1,
93-
'items' => $items);
94-
95-
96-
// aufräumen
97-
unset($items);
98-
99-
100-
101-
// Getting the admin options from other modules
102-
$modules = explode(',',$_SESSION["s"]["user"]["modules"]);
103-
if(is_array($modules)) {
104-
foreach($modules as $mt) {
105-
if(is_file($mt."/lib/admin.conf.php")) {
106-
$options = array();
107-
include_once($conf["rootpath"]."/web/".$mt."/lib/admin.conf.php");
108-
if(is_array($options)) {
109-
foreach($options as $opt) {
110-
$module["nav"][] = $opt;
111-
}
112-
}
113-
}
114-
}
115-
}
116-
117-
118-
119-
1+
<?php
2+
3+
$module["name"] = "admin";
4+
$module["title"] = "System";
5+
$module["template"] = "module.tpl.htm";
6+
$module["startpage"] = "admin/users_list.php";
7+
$module["tab_width"] = '60';
8+
9+
10+
$items[] = array( 'title' => "Add user",
11+
'target' => 'content',
12+
'link' => 'admin/users_edit.php');
13+
14+
$items[] = array( 'title' => "Edit user",
15+
'target' => 'content',
16+
'link' => 'admin/users_list.php');
17+
18+
19+
$module["nav"][] = array( 'title' => 'CP Users',
20+
'open' => 1,
21+
'items' => $items);
22+
23+
24+
// aufräumen
25+
unset($items);
26+
27+
$items[] = array( 'title' => "Add group",
28+
'target' => 'content',
29+
'link' => 'admin/groups_edit.php');
30+
31+
$items[] = array( 'title' => "Edit group",
32+
'target' => 'content',
33+
'link' => 'admin/groups_list.php');
34+
35+
36+
$module["nav"][] = array( 'title' => 'Groups',
37+
'open' => 1,
38+
'items' => $items);
39+
40+
41+
// aufräumen
42+
unset($items);
43+
44+
$items[] = array( 'title' => "Add server",
45+
'target' => 'content',
46+
'link' => 'admin/server_edit.php');
47+
48+
$items[] = array( 'title' => "Edit server",
49+
'target' => 'content',
50+
'link' => 'admin/server_list.php');
51+
52+
53+
$module["nav"][] = array( 'title' => 'Servers',
54+
'open' => 1,
55+
'items' => $items);
56+
57+
58+
// aufräumen
59+
unset($items);
60+
61+
$items[] = array( 'title' => "Add user",
62+
'target' => 'content',
63+
'link' => 'admin/dbsync_edit.php');
64+
65+
$items[] = array( 'title' => "Edit user",
66+
'target' => 'content',
67+
'link' => 'admin/dbsync_list.php');
68+
69+
70+
$items[] = array( 'title' => "Sync. Now",
71+
'target' => 'content',
72+
'link' => 'admin/dbsync_cron.php');
73+
74+
$module["nav"][] = array( 'title' => 'DB Sync.',
75+
'open' => 1,
76+
'items' => $items);
77+
78+
79+
// aufräumen
80+
unset($items);
81+
82+
/*
83+
$items[] = array( 'title' => "Add user",
84+
'target' => 'content',
85+
'link' => 'admin/filesync_edit.php');
86+
87+
$items[] = array( 'title' => "Edit user",
88+
'target' => 'content',
89+
'link' => 'admin/filesync_list.php');
90+
91+
92+
$module["nav"][] = array( 'title' => 'File Sync.',
93+
'open' => 1,
94+
'items' => $items);
95+
96+
97+
// aufräumen
98+
unset($items);
99+
*/
100+
101+
102+
// Getting the admin options from other modules
103+
$modules = explode(',',$_SESSION["s"]["user"]["modules"]);
104+
if(is_array($modules)) {
105+
foreach($modules as $mt) {
106+
if(is_file($mt."/lib/admin.conf.php")) {
107+
$options = array();
108+
include_once($conf["rootpath"]."/web/".$mt."/lib/admin.conf.php");
109+
if(is_array($options)) {
110+
foreach($options as $opt) {
111+
$module["nav"][] = $opt;
112+
}
113+
}
114+
}
115+
}
116+
}
117+
118+
119+
120+
120121
?>

interface/web/client/form/client.tform.php

Lines changed: 44 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,50 @@
8383
'rows' => '',
8484
'cols' => ''
8585
),
86+
'username' => array (
87+
'datatype' => 'VARCHAR',
88+
'formtype' => 'TEXT',
89+
'default' => '',
90+
'value' => '',
91+
'separator' => '',
92+
'width' => '30',
93+
'maxlength' => '255',
94+
'rows' => '',
95+
'cols' => ''
96+
),
97+
'password' => array (
98+
'datatype' => 'VARCHAR',
99+
'formtype' => 'PASSWORD',
100+
'default' => '',
101+
'value' => '',
102+
'separator' => '',
103+
'width' => '30',
104+
'maxlength' => '255',
105+
'rows' => '',
106+
'cols' => ''
107+
),
108+
'language' => array (
109+
'datatype' => 'VARCHAR',
110+
'formtype' => 'SELECT',
111+
'default' => $conf["language"],
112+
'value' => array('en' => 'en'),
113+
'separator' => '',
114+
'width' => '30',
115+
'maxlength' => '255',
116+
'rows' => '',
117+
'cols' => ''
118+
),
119+
'usertheme' => array (
120+
'datatype' => 'VARCHAR',
121+
'formtype' => 'SELECT',
122+
'default' => 'default',
123+
'value' => array('default' => 'default','grey' => 'grey'),
124+
'separator' => '',
125+
'width' => '30',
126+
'maxlength' => '255',
127+
'rows' => '',
128+
'cols' => ''
129+
),
86130
'street' => array (
87131
'datatype' => 'VARCHAR',
88132
'formtype' => 'TEXT',
@@ -347,64 +391,6 @@
347391
)
348392
);
349393

350-
$form["tabs"]['login'] = array (
351-
'title' => "Login",
352-
'width' => 100,
353-
'template' => "templates/client_edit_login.htm",
354-
'fields' => array (
355-
##################################
356-
# Begin Datatable fields
357-
##################################
358-
'username' => array (
359-
'datatype' => 'VARCHAR',
360-
'formtype' => 'TEXT',
361-
'default' => '',
362-
'value' => '',
363-
'separator' => '',
364-
'width' => '30',
365-
'maxlength' => '255',
366-
'rows' => '',
367-
'cols' => ''
368-
),
369-
'password' => array (
370-
'datatype' => 'VARCHAR',
371-
'formtype' => 'PASSWORD',
372-
'default' => '',
373-
'value' => '',
374-
'separator' => '',
375-
'width' => '30',
376-
'maxlength' => '255',
377-
'rows' => '',
378-
'cols' => ''
379-
),
380-
'language' => array (
381-
'datatype' => 'VARCHAR',
382-
'formtype' => 'SELECT',
383-
'default' => $conf["language"],
384-
'value' => array('en' => 'en'),
385-
'separator' => '',
386-
'width' => '30',
387-
'maxlength' => '255',
388-
'rows' => '',
389-
'cols' => ''
390-
),
391-
'usertheme' => array (
392-
'datatype' => 'VARCHAR',
393-
'formtype' => 'SELECT',
394-
'default' => 'default',
395-
'value' => array('default' => 'default','grey' => 'grey'),
396-
'separator' => '',
397-
'width' => '30',
398-
'maxlength' => '255',
399-
'rows' => '',
400-
'cols' => ''
401-
),
402-
##################################
403-
# END Datatable fields
404-
##################################
405-
),
406-
);
407-
408394
/*
409395
$form["tabs"]['ipaddress'] = array (
410396
'title' => "IP Addresses",

interface/web/client/lib/lang/en_client.lng

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ $wb["contact_name_txt"] = 'Contact name';
1818
$wb["street_txt"] = 'Street';
1919
$wb["zip_txt"] = 'ZIP';
2020
$wb["city_txt"] = 'City';
21-
$wb["state_txt"] = 'state';
21+
$wb["state_txt"] = 'State';
2222
$wb["country_txt"] = 'Country';
2323
$wb["telephone_txt"] = 'Telephone';
2424
$wb["mobile_txt"] = 'Mobile';

interface/web/client/lib/lang/en_clients_list.lng

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ $wb["page_next_txt"] = 'Next';
1010
$wb["page_back_txt"] = 'Back';
1111
$wb["delete_txt"] = 'Delete';
1212
$wb["filter_txt"] = 'Filter';
13+
$wb["add_new_record_txt"] = 'Add new client';
1314
?>

0 commit comments

Comments
 (0)