forked from tholum/crm42
-
Notifications
You must be signed in to change notification settings - Fork 0
/
product_inventory.php
executable file
·177 lines (139 loc) · 5.62 KB
/
product_inventory.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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
<?php
//ini_set("display_errors",1);
require_once('app_code/global.config.php');
require_once('class/config.inc.php');
require_once('class/class.ProductInventory.php');
$page = new basic_page();
/*******Checking Authentication****************/
$page->auth->Checklogin();
$user = new User();
$notify = new Notification();
$obj_product = new ProductInventory();
$ajax = new PHPLiveX();
$ajax->AjaxifyObjects(array("obj_product"));
/**********************************************/
/*******Setting Page access Rules & checking Authorization****************/
/*$access_rule = array( "Admin" =>"Admin"
);
$page -> setAccessRules($access_rule);
$page -> setAccessRulesType('all'); // any or all
$page -> CheckAuthorization();
*/
/************************************************************************/
$page -> setPageKeywords('');
$page -> setPageDescription('');
$page -> setPageTitle("PRODUCT");
$page -> setActiveButton('3');
$page -> setInnerNav('');
//$page -> setImportCss1('main_style.css');
//$page -> setImportCss2('form.css'); // each page should have it's own .css sheet. Link mulitple sheets here and below
$page -> SetDynamicCSS_1('main_style.php');
$page -> SetDynamicCSS_2('form.php');
$page -> setImportCss3('src/css/jscal2.css');
$page -> setImportCss4('src/css/border-radius.css');
//$page -> setImportCss5('src/css/win2k/win2k.css');
$page -> setImportCss6('tablesort/themes/blue/style.css');
$page -> setImportCss7('contact_profile.css');
$page -> setImportCss8('css/JTip.css');
$page -> setImportCss9('auto/style.css');
$page -> setExtJavaScripts1('<script src="js/301a.js" type="text/javascript"></script>'); // might not need //
$page -> setExtJavaScripts2('<script type="text/javascript" src="src/js/jscal2.js"></script>'); // might not need //
$page -> setExtJavaScripts3('<script type="text/javascript" src="src/js/lang/en.js"></script>'); // might not need
$page -> setExtJavaScripts4('<script type="text/javascript" src="autocomplete/jquery-1.2.6.min.js"></script>');
$page -> setExtJavaScripts5('<script type="text/javascript" src="autocomplete/jquery.jSuggest.1.0.js"></script>');
$page -> setExtJavaScripts6('<script type="text/javascript" src="tablesort/jquery.tablesorter.js"></script>');
$page -> setExtJavaScripts7('<script type="text/javascript" src="tablesort/chili-1.8b.js"></script>');
$page -> setExtJavaScripts9('<script language="javascript" SRC="js/jtip.js"></script>');
$page -> setExtJavaScripts8('<script src="auto/jquery.fcbkcomplete.js" type="text/javascript" charset="utf-8"></script>');
//*********************Page Style *******************************//
// used to set page styles. This should be used sparingly. External css should be used instead.
$page -> setCustomJavaScripts('
$(function() {
$("#search_table")
.tablesorter({widthFixed: true, widgets: ["zebra"], sortList: [[0,0]], headers: {5:{sorter: false}} } )
});
$(document).ready(function() {
$("#vendor").fcbkcomplete({
json_url: "useslist.php?type=user",
cache: false,
filter_hide: true,
filter_selected: true,
maxitems: 1,
});
});
function autoinve(){
$(document).ready(function() {
$("#vendor").fcbkcomplete({
json_url: "useslist.php?type=user",
cache: false,
filter_hide: true,
filter_selected: true,
maxitems: 1,
});
});
}
function autosuggest(){
$(document).ready(function() {
$("#add_product").fcbkcomplete({
json_url: "useslist.php?type=product",
cache: false,
filter_hide: true,
filter_selected: true,
maxitems: 1,
});
});
}
$(document).ready(function(){
$("a#hideanchor").click(function(){
$("p#hide").hide(1000);
});
});
');
$page_style = '
ul.holder{
background-color:#fff !important;
width: 100% !important;
}
.facebook-auto {
width: 200px !important;
}
';
//$page_style = '';
$page -> setPageStyle($page_style);
$page -> displayPageTop('full');
$ajax->Run('phplivex.js'); // Must be called inside the 'html' or 'body' tags
// **********************Start html for content column ****************************//
$notify->Notify();
?>
<div id="div_order" class="" style="display:none;"></div>
<div id="prl" style="display:none;"><img id="prl_image" src="images/spinner.gif" /></div>
<div id="content_column_header" style="background-color:#EEEEEE;">
<h2>Product Screen</h2>
<div id="invedetails">
<?php echo $obj_product->InVeDetails(); ?></div>
</div>
<div id="form_main">
<div style="float:inherit; margin:0;">
<a href="javascript:void(0);" onclick="javascript:obj_product.add_item('local',
{onUpdate: function(response,root){
document.getElementById('show_value').innerHTML=response;
document.getElementById('show_value').style.display='';
},preloader:'prl'});">ADD ITEM</a>
</div>
<div id="show_value" style="background-color:#EEEEEE; float:right; margin-top:10.5px; width:600px;"></div>
<div id="task_area" style="float:left; overflow-y:scroll; overflow-x:hidden; height:690px; width:450px;">
<?php echo $obj_product->show_searchproductinventory(); ?>
</div>
</div>
<?php if($_REQUEST['add_this_item']=='add'){
echo $obj_product->add_item('server');
}
?>
<?php
// **********************Closes the Content Column and begins Info Column ****************************//
$page-> printContentColumnEnd();
// **********************Start code for Info Column ****************************//
?>
<?php
$page -> displayPageBottom();
?>