Example #1
0
 public function editUser($usrid)
 {
     //$users =  m_user::GetByUserID($usrid)->first();
     $users = m_user::find($usrid);
     $page_title = "Add User";
     $title = "Admin - Edit User " . $usrid;
     $button_name = "Update User";
     $url = 'user/updateUser';
     $usergrp = m_user_grp::lists('grp_desc', 'id_grp');
     $status = m_status::lists('desc', 'code');
     return view('backend.formuser', ['title' => $title, 'page_title' => $page_title, 'button_name' => $button_name, 'users' => $users, 'url' => $url, 'usergrp' => $usergrp, 'status' => $status]);
 }
Example #2
0
 public function editArt($artid)
 {
     $art = m_art::find($artid);
     $page_title = "Edit Article";
     $title = "Admin - Edit Article ";
     $button_name = "Update Article";
     $url = 'art/updateArt';
     $status = m_status::lists('desc', 'code');
     $myclass = new myclass();
     $cb_cat = $myclass->gen_cat();
     return view('backend.formart', ['title' => $title, 'page_title' => $page_title, 'button_name' => $button_name, 'url' => $url, 'status' => $status, 'cb_cat' => $cb_cat, 'art' => $art]);
 }