Line | |
---|
1 | <?php |
---|
2 | defined('MPS_PATH') or die('Hacking attempt!'); |
---|
3 | |
---|
4 | global $template; |
---|
5 | |
---|
6 | $query='SELECT * FROM '.MPS_PRODUCT_TABLE.' ORDER BY `order`;'; |
---|
7 | $result = pwg_query($query); |
---|
8 | $product = array(); |
---|
9 | |
---|
10 | while($row = pwg_db_fetch_assoc($result)){ |
---|
11 | $product[]= $row; |
---|
12 | } |
---|
13 | |
---|
14 | $query='SELECT * FROM '.MPS_CONF_TABLE.';'; |
---|
15 | $result = pwg_query($query); |
---|
16 | while($row = pwg_db_fetch_assoc($result)){ |
---|
17 | $config = $row ; |
---|
18 | } |
---|
19 | |
---|
20 | $template->assign(array( |
---|
21 | 'mps_product' => $product, |
---|
22 | 'mps_conf' => $config |
---|
23 | )); |
---|
24 | |
---|
25 | |
---|
Note: See
TracBrowser
for help on using the repository browser.