diff --git a/www/application/controllers/Member.php b/www/application/controllers/Member.php index 297b480..aac84b9 100644 --- a/www/application/controllers/Member.php +++ b/www/application/controllers/Member.php @@ -18,16 +18,81 @@ class Member extends Member_Controller { } public function page() { - // echo 'yes'; view_mypage + $data = array(); + + + $page_items = array( + ['NOTECARD', 'Note Card', 'btn-primary'], + ['VIDEOCARD', 'Video Content', 'btn-danger'], + ['ACTIONITEM', 'Action Item', 'btn-secondary'], + ['FORUMITEM', 'Forum Item', 'btn-success'], + ['TASKCARD', 'Task', 'btn-danger'], + ['RESOURCES', 'Resources', 'btn-light'], + ['RESEARCH', 'Research', 'btn-info'] + ); + + $data['page_items'] = $page_items; + + $page_toindex = true; - //$mysql = "SELECT * FROM members_pages WHERE member_id = " . $_SESSION["member_id"]; - // $r = $this->db->query($mysql); - // $data["page_card"] = $r->result(); - $this->renderMemberPages('view_mypage', $data); + if ($_SERVER['REQUEST_METHOD'] == 'GET') { + + $page_key = $this->input->get('pgname'); + $member_id = $_SESSION["member_id"]; + if ($member_id > 0 && $page_key != '') { + //echo 'yes'; + $mysql = "SELECT * FROM members_pages WHERE member_id = " . $_SESSION["member_id"] . " AND page_key='$page_key'"; + $r = $this->db->query($mysql); + $drow = $r->row(); + + if (isset($drow)) { + $data['title'] = $drow->title; + $data['description'] = $drow->description; + $data['what_page'] = $drow->page_mode; + $this->renderMemberPages('view_mypage', $data); + $page_toindex = false; + } + } + } + if( true == $page_toindex ){ + $this->index(); + } + + } + public function viewCardAddAction(){ + ///member/viewCardAddAction?proc=PROCESS&action_name="+action_name+"&member_id=" + member_id + "&limit=" + limit + "&offset=" + offset + $data =[]; + + if ($_SERVER['REQUEST_METHOD'] == 'GET') { + + $action_name = $this->input->get('action_name'); + $member_id = $_SESSION["member_id"]; + /* if ($member_id > 0 && $page_key != '') { + //echo 'yes'; + $mysql = "SELECT * FROM members_pages WHERE member_id = " . $_SESSION["member_id"] . " AND page_key='$page_key'"; + $r = $this->db->query($mysql); + $drow = $r->row(); + + if (isset($drow)) { + $data['title'] = $drow->title; + $data['description'] = $drow->description; + $data['what_page'] = $drow->page_mode; + $this->renderMemberPages('view_mypage', $data); + $page_toindex = false; + } + } + */ + $this->load->view('member/addpages/'.$action_name, $data); + } + + + + // echo "Yes i got to the controller"; + } public function configure() { // echo 'yes'; view_mypage diff --git a/www/application/views/member/addpages/ACTIONITEM.php b/www/application/views/member/addpages/ACTIONITEM.php new file mode 100644 index 0000000..2691330 --- /dev/null +++ b/www/application/views/member/addpages/ACTIONITEM.php @@ -0,0 +1,29 @@ +
Some quick example text to build on the card title and make up the bulk of + the card's content.
+Thank you for purchasing Vuexy admin template. If you have any queries that are beyond the scope of this help file, please feel free to create a support ticket on our support portal : https://pixinvent.ticksy.com/
+ +Vuexy admin is super flexible, powerful, clean & modern responsive bootstrap admin template with unlimited possibilities. It includes 4 pre-built templates with organized folder structure, clean & commented code, 100+ pages, 70+ components, 50+ charts, 50+ advance cards (widgets) and many more.
+Vuexy admin provides searchable navigation, unique menu layouts, advance cards and incredible support. Vuexy admin can be used for any type of web applications: Project Management, eCommerce backends, CRM, Analytics, Fitness or any custom admin panels.
+It comes with 2 niche dashboards. Vuexy admin template is powered with HTML 5, SASS & Twitter Bootstrap 4 which looks great on Desktops, Tablets, and Mobile Devices. Vuexy admin template comes with starter kit which will help developers to get started quickly.
+ +Updated: 13/11/2019 - V4.1 Vuesax is now Vuexy :)
+By: PIXINVENT Team
+Support Portal: https://pixinvent.ticksy.com/
+ + +Some quick example text to build on the card title and make up the bulk of + the card's content.
+Candy canes donut chupa chups candy canes lemon drops oat cake wafer. Cotton candy candy canes + marzipan carrot cake. Sesame snaps lemon drops candy marzipan donut brownie tootsie roll. Icing + croissant bonbon biscuit gummi bears.
+ + +Some quick example text to build on the card title and make up the bulk of + the card's content.
+Thank you for purchasing Vuexy admin template. If you have any queries that are beyond the scope of this help file, please feel free to create a support ticket on our support portal : https://pixinvent.ticksy.com/
+ +Vuexy admin is super flexible, powerful, clean & modern responsive bootstrap admin template with unlimited possibilities. It includes 4 pre-built templates with organized folder structure, clean & commented code, 100+ pages, 70+ components, 50+ charts, 50+ advance cards (widgets) and many more.
+Vuexy admin provides searchable navigation, unique menu layouts, advance cards and incredible support. Vuexy admin can be used for any type of web applications: Project Management, eCommerce backends, CRM, Analytics, Fitness or any custom admin panels.
+It comes with 2 niche dashboards. Vuexy admin template is powered with HTML 5, SASS & Twitter Bootstrap 4 which looks great on Desktops, Tablets, and Mobile Devices. Vuexy admin template comes with starter kit which will help developers to get started quickly.
+ +Updated: 13/11/2019 - V4.1 Vuesax is now Vuexy :)
+By: PIXINVENT Team
+Support Portal: https://pixinvent.ticksy.com/
+ + +Candy canes donut chupa chups candy canes lemon drops oat cake wafer. Cotton candy candy canes - marzipan carrot cake. Sesame snaps lemon drops candy marzipan donut brownie tootsie roll. Icing - croissant bonbon biscuit gummi bears.
- - -Pudding candy canes sugar plum cookie chocolate cake powder croissant. Carrot cake tiramisu danish - candy cake muffin croissant tart dessert. Tiramisu caramels candy canes chocolate cake sweet roll - liquorice icing cupcake.
+