forked from steven-copley/nubuilder4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnudrag.php
52 lines (33 loc) · 934 Bytes
/
nudrag.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
<?php
function nuDragSave($data){
if($_SESSION['nubuilder_session_data']['IsDemo']){
nuDisplayError('Not available in the Demo...');
return;
}
/*
if(!nuIsGlobeadmin()){
nuDisplayError('Access to Arrange Objects is not allowed');
return new stdClass;
}
*/
foreach($data['nuDragState']['tabs'] as $tab){
if($tab['objects'] !== null){
$tabID = $tab['tab_id'];
for($i = 0; $i < sizeof($tab['objects']); $i++) {
$field = $tab['objects'][$i];
nuRunQuery("
UPDATE zzzzsys_object SET
sob_all_order = ?,
sob_all_left = ?,
sob_all_top = ?,
sob_all_width = ?,
sob_all_height = ?,
sob_all_zzzzsys_tab_id = ?
WHERE zzzzsys_object_id = ?
", array($field['tab_order'], $field['left'], $field['top'], $field['width'], $field['height'], $tabID, $field['object_id']));
}
}
}
return new stdClass;
}
?>