-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodules.php
More file actions
27 lines (23 loc) · 1.13 KB
/
modules.php
File metadata and controls
27 lines (23 loc) · 1.13 KB
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
<?php
require_once(dirname(__FILE__) . '/lib/tbs_class.php');
require_once(dirname(__FILE__) . '/classes/order.class.php');
require_once(dirname(__FILE__) . '/classes/ordermodule.class.php');
require_once(dirname(__FILE__) . '/classes/orderstoredcomponent.class.php');
require_once(dirname(__FILE__) . '/classes/inputfilter.class.php');
if (!defined('W2P_BASE_DIR')) {
die('You should not access this file directly');
}
// Check ACL to see if the user is allowed to view items in the order module
if (!$acl->checkModule('ordermgmt', 'view')) {
$AppUI->setMsg("Access denied: Insufficient privilegies to access module view", UI_MSG_ERROR);
$AppUI->redirect('index.php');
}
$titleBlock = new w2p_Theme_TitleBlock('Offer Management', 'folder5.png', $m, "$m.$a");
$titleBlock->addCrumb("?m=ordermgmt", "Back to orders");
$titleBlock->addCrumb("?m=ordermgmt&a=offers", "Offer View");
$titleBlock->show();
$tbs = & new clsTinyButStrong();
$tbs->LoadTemplate(dirname(__FILE__) . "/templates/module_view.html");
$modules = COrderModule::createListFromDb(0, 1000);
$tbs->MergeBlock("modules", $modules);
$tbs->Show(TBS_OUTPUT);