From 3ac42666a90613c2c923ad346696bc928253114e Mon Sep 17 00:00:00 2001 From: kmj1996 Date: Tue, 23 Jun 2020 17:52:48 +0900 Subject: [PATCH] =?UTF-8?q?=EC=98=A4=EB=8D=94=EB=B7=B0=ED=8C=8C=EC=9D=BC?= =?UTF-8?q?=EC=88=98=EC=A0=95=ED=95=B4=EC=95=BC=ED=95=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wheeparam/application/controllers/Memo.php | 51 +++++++++++++++++++ wheeparam/application/controllers/order.php | 46 +++++++++++++++++ wheeparam/config/no_install.php | 51 ------------------- wheeparam/config/wheeparam.php | 12 ++--- wheeparam/views/themes/desktop/memo/index.php | 15 ++++++ wheeparam/views/themes/desktop/memo/view.php | 4 ++ .../views/themes/desktop/order/index.php | 25 +++++++++ wheeparam/views/themes/desktop/order/view.php | 1 + 8 files changed, 148 insertions(+), 57 deletions(-) create mode 100644 wheeparam/application/controllers/Memo.php create mode 100644 wheeparam/application/controllers/order.php delete mode 100644 wheeparam/config/no_install.php create mode 100644 wheeparam/views/themes/desktop/memo/index.php create mode 100644 wheeparam/views/themes/desktop/memo/view.php create mode 100644 wheeparam/views/themes/desktop/order/index.php create mode 100644 wheeparam/views/themes/desktop/order/view.php diff --git a/wheeparam/application/controllers/Memo.php b/wheeparam/application/controllers/Memo.php new file mode 100644 index 0000000..4b6b223 --- /dev/null +++ b/wheeparam/application/controllers/Memo.php @@ -0,0 +1,51 @@ +db->select('*'); + $this->db->from('memo'); + $this->db->where('status', 'Y'); + $this->db->order_by('idx DESC'); + $result = $this->db->get()->result_array(); + // SELECT * FROM wb_memo WHERE status = 'Y' ORDER BY idx DESC; + + + $this->data['abcd'] = "1234"; + $this->data['list'] = $result; + + // 레이아웃 & 뷰파일 설정 + $this->theme = $this->site->get_layout(); + $this->view = "memo/index"; + $this->active = "/memo/index"; + + } + + public function view($getValue="") + { + $this->db->select('*'); + $this->db->from('memo'); + $this->db->where('status', 'Y'); + $this->db->where('idx', $getValue); + $this->db->order_by('idx DESC'); + $result = $this->db->get()->row_array(); + if(! $result) { + alert('요청하신 메모는 삭제되었습니다.'); + exit; + } + + + $this->data['result'] = $result; + + // 레이아웃 & 뷰파일 설정 + $this->theme = $this->site->get_layout(); + $this->view = "memo/view"; + $this->active = "/memo/view"; + } +} diff --git a/wheeparam/application/controllers/order.php b/wheeparam/application/controllers/order.php new file mode 100644 index 0000000..27674a9 --- /dev/null +++ b/wheeparam/application/controllers/order.php @@ -0,0 +1,46 @@ +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"; + + + } +} \ No newline at end of file diff --git a/wheeparam/config/no_install.php b/wheeparam/config/no_install.php deleted file mode 100644 index 9aff96a..0000000 --- a/wheeparam/config/no_install.php +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - 휘파람 보드 초기 설치 - - - - - - -
- -
- - diff --git a/wheeparam/config/wheeparam.php b/wheeparam/config/wheeparam.php index 544a525..ff30d47 100644 --- a/wheeparam/config/wheeparam.php +++ b/wheeparam/config/wheeparam.php @@ -7,20 +7,20 @@ date_default_timezone_set('Asia/Seoul'); // 프로젝트 이름 -define('PROJECT', 'wheeparamboard'); +define('PROJECT', 'minjoonpractice'); // 개발용 설정 if( IS_TEST ) { - define("BASE_URL", "http://www.wboard.com"); // 기본 설정 URL - define("COOKIE_DOMAIN", ".wboard.com"); // 쿠키도메인 + define("BASE_URL", "http://www.mj.com"); // 기본 설정 URL + define("COOKIE_DOMAIN", ".mj.com"); // 쿠키도메인 define("SSL_VERFIY", FALSE); // 보안인증서 사용 여부 // 데이타베이스 설정 define("DB_HOST", "115.68.120.149"); // DB 호스트 - define("DB_USER", "wboard"); // DB 아이디 - define("DB_PASS", "!@wboard12"); // DB 비밀번호 - define("DB_NAME", "wboard"); // DB 네임 + define("DB_USER", "songwritersg"); // DB 아이디 + define("DB_PASS", "jang7668!@"); // DB 비밀번호 + define("DB_NAME", "practice"); // DB 네임 } // 실제 서버용 설정 else diff --git a/wheeparam/views/themes/desktop/memo/index.php b/wheeparam/views/themes/desktop/memo/index.php new file mode 100644 index 0000000..4511c97 --- /dev/null +++ b/wheeparam/views/themes/desktop/memo/index.php @@ -0,0 +1,15 @@ + + +
+ + + + + + + + + + + +
\ No newline at end of file diff --git a/wheeparam/views/themes/desktop/memo/view.php b/wheeparam/views/themes/desktop/memo/view.php new file mode 100644 index 0000000..ff37d7a --- /dev/null +++ b/wheeparam/views/themes/desktop/memo/view.php @@ -0,0 +1,4 @@ +

+
+ +
\ No newline at end of file diff --git a/wheeparam/views/themes/desktop/order/index.php b/wheeparam/views/themes/desktop/order/index.php new file mode 100644 index 0000000..55f6975 --- /dev/null +++ b/wheeparam/views/themes/desktop/order/index.php @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + +
배송확정일주문번호주문자명상품명수량배송
\ No newline at end of file diff --git a/wheeparam/views/themes/desktop/order/view.php b/wheeparam/views/themes/desktop/order/view.php new file mode 100644 index 0000000..b3d9bbc --- /dev/null +++ b/wheeparam/views/themes/desktop/order/view.php @@ -0,0 +1 @@ +