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.
		
		
		
		
		
			
		
			
				
					
					
						
							46 lines
						
					
					
						
							1.2 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							46 lines
						
					
					
						
							1.2 KiB
						
					
					
				
								<?php
							 | 
						|
								defined('BASEPATH') OR exit('No direct script access allowed');
							 | 
						|
								/**
							 | 
						|
								 * Class Memo
							 | 
						|
								 * ------------------------------------------------------------------------------
							 | 
						|
								 * 주문페이지
							 | 
						|
								 */
							 | 
						|
								class order extends WB_Controller {
							 | 
						|
								
							 | 
						|
								
							 | 
						|
								    public function index()
							 | 
						|
								    {
							 | 
						|
								        $this->db->select('*');
							 | 
						|
								        $this->db->from('order');
							 | 
						|
								        $this->db->order_by('idx DESC');
							 | 
						|
								        $result = $this->db->get()->result_array();
							 | 
						|
								
							 | 
						|
								        $this->data['list'] = $result;
							 | 
						|
								        // 레이아웃 & 뷰파일 설정
							 | 
						|
								        $this->theme    = $this->site->get_layout();
							 | 
						|
								        $this->view     = "/order/index";
							 | 
						|
								        $this->active   = "/order/index";
							 | 
						|
								
							 | 
						|
								
							 | 
						|
								    }
							 | 
						|
								
							 | 
						|
								    public function view($getValue="") {
							 | 
						|
								        $this->db->select('*');
							 | 
						|
								        $this->db->from('order');
							 | 
						|
								        $this->db->where('idx', $getValue);
							 | 
						|
								        $this->db->order_by('idx DESC');
							 | 
						|
								        $result = $this->db->get()->row_array();
							 | 
						|
								
							 | 
						|
								        if(! $result) {
							 | 
						|
								            alert("없는 페이지 입니다");
							 | 
						|
								            exit;
							 | 
						|
								
							 | 
						|
								        }
							 | 
						|
								        // 레이아웃 & 뷰파일 설정
							 | 
						|
								        $this->theme    = $this->site->get_layout();
							 | 
						|
								        $this->view     = "/order/index";
							 | 
						|
								        $this->active   = "/order/index";
							 | 
						|
								
							 | 
						|
								
							 | 
						|
								    }
							 | 
						|
								}
							 |