You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.2 KiB

  1. <?php
  2. defined('BASEPATH') OR exit('No direct script access allowed');
  3. /**
  4. * Class Memo
  5. * ------------------------------------------------------------------------------
  6. * 주문페이지
  7. */
  8. class order extends WB_Controller {
  9. public function index()
  10. {
  11. $this->db->select('*');
  12. $this->db->from('order');
  13. $this->db->order_by('idx DESC');
  14. $result = $this->db->get()->result_array();
  15. $this->data['list'] = $result;
  16. // 레이아웃 & 뷰파일 설정
  17. $this->theme = $this->site->get_layout();
  18. $this->view = "/order/index";
  19. $this->active = "/order/index";
  20. }
  21. public function view($getValue="") {
  22. $this->db->select('*');
  23. $this->db->from('order');
  24. $this->db->where('idx', $getValue);
  25. $this->db->order_by('idx DESC');
  26. $result = $this->db->get()->row_array();
  27. if(! $result) {
  28. alert("없는 페이지 입니다");
  29. exit;
  30. }
  31. // 레이아웃 & 뷰파일 설정
  32. $this->theme = $this->site->get_layout();
  33. $this->view = "/order/index";
  34. $this->active = "/order/index";
  35. }
  36. }