1234567891011121314151617181920212223242526272829303132 |
- <?php
- class refill_order_showControl extends SystemControl
- {
- public function __construct()
- {
- parent::__construct();
- }
- public function indexOp()
- {
- $model_refill_order = Model('refill_order');
- $condition['inner_status'] = 0;
- $order_list = $model_refill_order->getMerchantOrderList($condition, 50, 'refill_order.*,vr_order.order_state', 'refill_order.order_time desc');
- $merchant_list = Model('')->table('merchant')->limit(1000)->select();
- $provider_list = Model('')->table('refill_provider,store')
- ->field('refill_provider.*,store.store_name')
- ->join('inner')
- ->on('store.store_id=refill_provider.store_id')
- ->order('opened asc, provider_id desc')
- ->limit(1000)
- ->select();
- Tpl::output('order_list', $order_list);
- Tpl::output('provider_list', $provider_list);
- Tpl::output('merchant_list', $merchant_list);
- Tpl::output('show_page', $model_refill_order->showpage());
- Tpl::showpage('refill.order.show.index');
- }
- }
|