forked from tholum/crm42
-
Notifications
You must be signed in to change notification settings - Fork 0
/
manage_categories.php
executable file
·159 lines (140 loc) · 4.33 KB
/
manage_categories.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<?php
//ini_set('display_errors',1);
require('app_code/config.inc.php');
require_once 'class/class.contacts.php';
require('class/class.ManageCategories.php');
$page = new basic_page();
$user=new User();
$page->auth->Checklogin();
$obj = new ManageCategories();
//$notify= new Notification();
$contact = new Company_Global();
$contact->SetUserID($page->auth->Get_user_id());
$contact->SetUserName($page->auth->Get_user_name());
$ajax = new PHPLiveX();
//$ajax -> AjaxifyObjects(array(""));
//$task -> SetUserObject($user);
//$task -> SetUserID($page->auth->Get_user_id());
$page -> setPageKeywords('');
$page -> setPageDescription('');
$page -> setPageTitle("MANAGE CATEGORIES");
$page -> setActiveButton('5');
$page -> setInnerNav('0');
$page -> SetDynamicCSS_1('main_style.php');
$page -> SetDynamicCSS_2('form.php');
$page -> setCustomJavaScripts('');
//*********************Page Style *******************************//
// used to set page styles. This should be used sparingly. External css should be used instead.
$page -> setPageStyle($page_style);
$page -> displayPageTop();
// **********************Start html for content column ****************************//
//$notify->Notify();
$ajax->Run(); // Must be called inside the 'html' or 'body' tags
?>
<div id="prl" style="visibility:hidden;"><img id="prl_image" src="images/spinner.gif" /></div>
<div id="content_column_header">
Manage master fields :
</div>
<div class="form_main" style="text-align:left !important;">
<?php
/////////BindingOptions/////////////
if(@$_POST['go7']=='go')
echo $obj->set_archive('server');
else
echo $obj->set_archive('local');
?>
</div>
<?php
if(@$_REQUEST['action6']=='delete_archive') {
$obj->delete_archive(@$_REQUEST['event12'],@$_REQUEST['event13']);
}
?>
<div class="form_main" style="text-align:left !important;">
<?php
/////////BindingOptions/////////////
if(@$_POST['go8']=='go')
echo $obj->set_read('server');
else
echo $obj->set_read('local');
?>
</div>
<?php
if(@$_REQUEST['action7']=='delete_read') {
$obj->delete_read(@$_REQUEST['event12'],@$_REQUEST['event13']);
}
?>
<div class="form_main" style="text-align:left !important;">
<?php
/////////FCT/////////////
if(@$_POST['go_fct_search_level']=='go')
echo $obj->set_fct_search_level('server');
else
echo $obj->set_fct_search_level('local');
?>
</div>
<?php
if(@$_REQUEST['action_fct_search_level']=='delete_fct_search_level') {
$obj->delete_fct_search_level(@$_REQUEST['event14'],@$_REQUEST['event15']);
}
?>
<div class="form_main" style="text-align:left !important;">
<?php
/////////Origin/////////////
if(@$_POST['go_origin']=='go')
echo $obj->set_origin('server');
else
echo $obj->set_origin('local');
?>
</div>
<?php
if(@$_REQUEST['action_origin']=='delete_origin') {
$obj->delete_origin(@$_REQUEST['event16'],@$_REQUEST['event17']);
}
?>
<div class="form_main" style="text-align:left !important;">
<?php
/////////Type/////////////
if(@$_POST['go_type']=='go')
echo $obj->set_type('server');
else
echo $obj->set_type('local');
?>
</div>
<?php
if(@$_REQUEST['action_type']=='delete_type') {
$obj->delete_type(@$_REQUEST['event18'],@$_REQUEST['event19']);
}
?>
<div class="form_main" style="text-align:left !important;">
<?php
/////////staus/////////////
if(@$_POST['go_staus']=='go')
echo $obj->set_staus('server');
else
echo $obj->set_staus('local');
?>
</div>
<?php
if(@$_REQUEST['action_staus']=='delete_staus') {
$obj->delete_staus(@$_REQUEST['event20'],@$_REQUEST['event21']);
} ?>
<div class="form_main" style="text-align:left !important;">
<div id="case_type_suboption">
<?php
/////////Case Type Suboptions/////////////
if(@$_POST['go_type_suboption']=='go')
echo $obj->set_type_suboptions('server');
else
echo $obj->set_type_suboptions('local');
?>
</div>
</div>
<?php
if(@$_REQUEST['action_type_suboption']=='delete_type_suboption') {
$obj->delete_typ_suboption(@$_REQUEST['event28'],@$_REQUEST['event29'],@$_REQUEST['tion']);
}
// **********************Closes the Content Column and begins Info Column ****************************//
$page-> printContentColumnEnd();
// **********************Start code for Info Column ****************************//
$page -> displayPageBottom();
?>