?
Path : /home/admin/domains/happytokorea.com/public_html/backend/modules/users/ |
Current File : /home/admin/domains/happytokorea.com/public_html/backend/modules/users/action.php |
<?php session_start(); require_once('com_user.php'); require_once('com_menu.php'); require_once('mod_article.php'); require_once('com_category.php'); require_once('function.php'); $listgroup=new category(); //$group=new group(); $member=new members(); $Html=new Html(); echo $Html->menu(); echo msg_feedback(); if($ac==""){$ac="user";} switch($ac){ case edit;{ echo $Html->Edit(); break; } case user;{ $header_name=Array( 'user_login'=> "User Login", 'user_email'=> "Email", 'user_name'=>'Name', 'user_type'=> "Group", 'nickname'=>"ชื่อแสดงหน้าเขียนรีวิว", 'user_last_visit_time'=>"Last visit date", ); $header_td_width=Array('100','150','150','80','80','150','150'); $orderby=$_GET['orderby']; $sort=$_GET['sort']; if($sort==""){$sort="Max2Min";} $chksort=$_GET['chksort']; $link="admin.php?mod=user"; $member->setLimit(20); $member->setPage(); $member->total_links(9); echo $member->listData($table='users',$condition='',$orderby,$sort,$chksort,$header_name,$header_td_width,$link); break; } case new_group;{ require_once('com_new_category.php'); break; } case add_group;{ $name=$_POST['name']; $detail=$_POST['access']; $group->add_category($name,$detail); break; } case edit_group;{ require_once('com_edit_category.php'); break; } case edit_group_do;{ $cat_id=$_POST['cat_id']; $cat_name=$_POST['name']; $cat_detail=$_POST['access']; $group->edit_category($cat_name,$cat_detail,$cat_id); break; } case del_group;{ $group->del_cat(); break; } case new_user;{ require_once('com_regis.php'); break; } case add_new_account: $user->add_new_account(); break; case edit_user;{ require_once('com_edit_user.php'); break; } case add_topic;{ $article->add_topic(); break; } case edit_user_do;{ $user->edit_user(); break; } case del_user;{ $user->del_user(); break; } }//end switch ?>