本文整理汇总了PHP中gopage函数的典型用法代码示例。如果您正苦于以下问题:PHP gopage函数的具体用法?PHP gopage怎么用?PHP gopage使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了gopage函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct()
{
parent::__construct();
$CI =& get_instance();
if (!$this->auth->isLoggedIn()) {
gopage('admin');
}
}
示例2: logout
public function logout()
{
$this->auth->logout();
gopage('admin');
}
示例3: show_ckp
function show_ckp($info, $page, $menu, $name, $user)
{
gopage($info, NULL, 'dockp', $page, $menu, $name, $user);
}
示例4: show_mpayouts
function show_mpayouts($info, $page, $menu, $name, $user)
{
gopage($info, NULL, 'dompayouts', $page, $menu, $name, $user);
}
示例5: show_shifts
function show_shifts($info, $page, $menu, $name, $user)
{
gopage($info, NULL, 'doshifts', $page, $menu, $name, $user);
}
示例6: show_percent
function show_percent($info, $page, $menu, $name, $user)
{
gopage($info, NULL, 'dopercent', $page, $menu, $name, $user);
}
示例7: show_settings
function show_settings($info, $page, $menu, $name, $user)
{
gopage($info, NULL, 'dosettings', $page, $menu, $name, $user);
}
示例8: save_member_group
function save_member_group()
{
global $data;
global $TABLE;
// Set validation rules
/*$this->form_validation->set_rules('member', 'member', 'required');
// If validation is failed
if ($this->form_validation->run() == FALSE)
{
$this->load->admin_view("add_member_group", $data);
}
// If validation is successed
else
{*/
try {
$seq = $this->post("seq", "");
$member_arr = $this->post("member", "");
$adminseq = $this->post("adminseq", "");
$account = $this->auth->getUser();
foreach ($member_arr as $val) {
$this->dbop->update($TABLE['user'], array("GroupSeq" => $seq, "CreateBy" => $adminseq, "DateModified" => now()), array("Seq" => $val));
}
gopage("admin/cgroup/details?page=" . $this->post("page", 0) . '&seq=' . $seq);
} catch (Exception $e) {
}
//}
}
示例9: show_reset
function show_reset($info, $page, $menu, $name, $u)
{
gopage($info, array(), 'doreset', $page, $menu, $name, $u, true, true, false);
}
示例10: show_events
function show_events($info, $page, $menu, $name, $user)
{
gopage($info, NULL, 'doevents', $page, $menu, $name, $user);
}
示例11: show_index
function show_index($info, $page, $menu, $name, $user)
{
gopage($info, NULL, 'doindex', $page, $menu, $name, $user);
}
示例12: try_reset
function try_reset($info, $page, $menu, $name, $u)
{
$user = getparam('user', false);
$mail = trim(getparam('mail', false));
$data = array();
if (!nuem($user)) {
$user = loginStr($user);
}
if (!nuem($user) && !nuem($mail)) {
$ans = userSettings($user);
if ($ans['STATUS'] == 'ok' && isset($ans['email']) && $ans['email'] == $mail) {
$data = array('user' => $user, 'email' => $mail);
gopage($info, $data, 'doreset2', $page, $menu, $name, $u, true, true, false);
}
}
gopage($info, $data, 'doregres', $page, $menu, $name, $u, true, true, false);
}
示例13: show_help
function show_help($info, $page, $menu, $name, $user)
{
gopage($info, NULL, 'dohelp', $page, $menu, $name, $user);
}
示例14: modify_trainer
function modify_trainer()
{
global $data;
global $TABLE;
// Set validation rules
$this->form_validation->set_rules('centercode', 'Center Code', 'required');
$this->form_validation->set_rules('userid', 'User ID', 'required');
$this->form_validation->set_rules('userpwd', 'Password', 'required');
// If validation is failed
if ($this->form_validation->run() == FALSE) {
$this->load->admin_view("trainer_register", $data);
} else {
try {
$seq = $this->post("seq", "");
$this->dbop->update($TABLE['trainer'], array("CenterCode" => $this->post("centercode", ""), "Name" => $this->post("name", ""), "UserID" => $this->post("userid", ""), "UserPW" => $this->post("userpwd", ""), "RegDate" => now(), "Sex" => $this->post("sex", "1")), array("Seq" => $seq));
$this->dbop->update($TABLE['admin'], array("AdminID" => $this->post("userid", ""), "AdminPW" => $this->post("userpwd", ""), "CenterCode" => $this->post("centercode", "")), array("AdminSeq" => $seq, "Permission" => "2"));
gopage("admin/ctrainer/lists?page=" . $this->post("page", 0));
} catch (Exception $e) {
}
}
}
示例15: save_member_category
function save_member_category()
{
global $data;
global $TABLE;
// Set validation rules
$this->form_validation->set_rules('member', 'member', 'required');
// If validation is failed
if ($this->form_validation->run() == FALSE) {
$this->load->admin_view("add_member_category", $data);
} else {
try {
$seq = $this->post("seq", "");
$member = $this->post("member", "");
$adminseq = $this->post("adminseq", "");
$this->dbop->insert($TABLE['category_detail'], array("Name" => $member, "CategorySeq" => $seq, "DateModified" => now()));
gopage("admin/ccategory/details?page=" . $this->post("page", 0) . '&seq=' . $seq);
} catch (Exception $e) {
}
}
}