refill_order_show.php 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. class refill_order_showControl extends SystemControl
  3. {
  4. public function __construct()
  5. {
  6. parent::__construct();
  7. }
  8. public function indexOp()
  9. {
  10. $model_refill_order = Model('refill_order');
  11. $condition['inner_status'] = 0;
  12. $order_list = $model_refill_order->getMerchantOrderList($condition, 50, 'refill_order.*,vr_order.order_state', 'refill_order.order_time desc');
  13. $merchant_list = Model('')->table('merchant')->limit(1000)->select();
  14. $provider_list = Model('')->table('refill_provider,store')
  15. ->field('refill_provider.*,store.store_name')
  16. ->join('inner')
  17. ->on('store.store_id=refill_provider.store_id')
  18. ->order('opened asc, provider_id desc')
  19. ->limit(1000)
  20. ->select();
  21. Tpl::output('order_list', $order_list);
  22. Tpl::output('provider_list', $provider_list);
  23. Tpl::output('merchant_list', $merchant_list);
  24. Tpl::output('show_page', $model_refill_order->showpage());
  25. Tpl::showpage('refill.order.show.index');
  26. }
  27. }