当前位置: 首页>>代码示例>>PHP>>正文


PHP General::redirectUrl方法代码示例

本文整理汇总了PHP中General::redirectUrl方法的典型用法代码示例。如果您正苦于以下问题:PHP General::redirectUrl方法的具体用法?PHP General::redirectUrl怎么用?PHP General::redirectUrl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在General的用法示例。


在下文中一共展示了General::redirectUrl方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Page

    $access_type = Request::post("access_type");
    $page_status = Validation::getStautsTinyVal(Request::post("active"));
    $pageObj = new Page();
    $pageObj->set("page_id", $page_id);
    $pageObj->set("category_id", $category_id);
    $pageObj->set("page_name", $page_name);
    $pageObj->set("url", $url);
    $pageObj->set("top_description", $top_description);
    $pageObj->set("bottom_description", $bottom_description);
    $pageObj->set("keyword", $keyword);
    $pageObj->set("title", $title);
    $pageObj->set("pagedescription", $description);
    $pageObj->set("access_type", $access_type);
    $pageObj->set("page_status", $page_status);
    if ($pageObj->save()) {
        General::redirectUrl("page.php");
    } else {
        $error = "page Name alreday exist !";
    }
}
include 'header.php';
include 'sitebar.php';
?>
<script src="ckeditor/ckeditor.js"></script>
<div class="ch-container">
    <div class="row">
        <div id="content" class="col-lg-10 col-sm-10">
            <!-- content starts -->
            <div>
                <ul class="breadcrumb">
                    <li>
开发者ID:sonaljain888,项目名称:project-legal-lawyer-,代码行数:31,代码来源:add_page.php

示例2: pagecategory

<?php

include 'admin-config.php';
$pagecategory_id = $pagecategory_name = $pagecategory_url = $pagecategory_status = $error = "";
if (strlen(Request::post("submit"))) {
    $pagecategory_id = Request::post("pagecategory_id");
    $pagecategory_name = Request::post("pagecategory_name");
    $pagecategory_url = Request::post("pagecategory_url");
    $pagecategory_status = Validation::getStautsTinyVal(Request::post("active"));
    $pagecategoryObj = new pagecategory();
    $pagecategoryObj->set("pagecategory_id", $pagecategory_id);
    $pagecategoryObj->set("pagecategory_name", $pagecategory_name);
    $pagecategoryObj->set("pagecategory_url", $pagecategory_url);
    $pagecategoryObj->set("pagecategory_status", $pagecategory_status);
    if ($pagecategoryObj->save()) {
        General::redirectUrl("page_category.php");
    } else {
        $error = "Page Category Name alreday exist !";
    }
}
include 'header.php';
include 'sitebar.php';
?>
<div class="ch-container">
    <div class="row">

        <div id="content" class="col-lg-10 col-sm-10">
            <!-- content starts -->
            <div>
                <ul class="breadcrumb">
                    <li>
开发者ID:sonaljain888,项目名称:project-legal-lawyer-,代码行数:31,代码来源:add_pagecategory.php

示例3:

    $menuObj->set("menu_id", $menu_id);
    $menuObj->set("menu_name", $menu_name);
    $menuObj->set("category_id", $category_id);
    $menuObj->set("parent_id", $parent_id);
    $menuObj->set("url", $url);
    $menuObj->set("access_type", $access_type);
    $menuObj->set("menu_order", $menu_order);
    $menuObj->set("menu_status", $menu_status);
    if ($menuObj->isMenuExist()) {
        $upload = Upload::factory(MENU_IMG_FOLDER . "/");
        $upload->file($_FILES["menu-image"]);
        $results = $upload->upload();
        $menuObj->set("image", $results["filename"]);
        if ($menuObj->isImageExist()) {
            if ($menuObj->save()) {
                General::redirectUrl("menu.php");
            } else {
                $error = "Menu Name alreday exist !";
            }
        }
    }
}
include 'header.php';
include 'sitebar.php';
?>
<div class="ch-container">
    <div class="row">
        <div id="content" class="col-lg-10 col-sm-10">
            <div>
                <ul class="breadcrumb">
                    <li>
开发者ID:sonaljain888,项目名称:project-legal-lawyer-,代码行数:31,代码来源:add_menu.php

示例4: City

<?php 
include 'admin-config.php';
$city_id = $state_id = $city_name = $city_status = $error = "";
if (strlen(Request::post("submit"))) {
    $city_id = Request::post("city_id");
    $state_id = Request::post("state_id");
    $city_name = Request::post("city_name");
    $city_status = Validation::getStautsTinyVal(Request::post("active"));
    $cityObj = new City();
    $cityObj->set("city_id", $city_id);
    $cityObj->set("state_id", $state_id);
    $cityObj->set("city_name", $city_name);
    $cityObj->set("city_status", $city_status);
    if ($cityObj->save()) {
        General::redirectUrl("city.php");
    } else {
        $error = "City Name alreday exist !";
    }
}
include 'header.php';
include 'sitebar.php';
?>
<div class="ch-container">
    <div class="row">
        <div id="content" class="col-lg-10 col-sm-10">
            <!-- content starts -->
            <div>
                <ul class="breadcrumb">
                    <li>
                        <a href="#">Home</a>
开发者ID:sonaljain888,项目名称:legal-lawyer,代码行数:30,代码来源:add_city.php

示例5: Jobs

<?php 
include 'admin-config.php';
include 'header.php';
$id = $active = $error = "";
if (strlen(Request::post("submit"))) {
    $id = Request::post("id");
    $active = Validation::getStautsTinyVal(Request::post("active"));
    $jobsObj = new Jobs();
    $jobsObj->set("id", $id);
    $jobsObj->set("active", $active);
    if ($jobsObj->save()) {
        General::redirectUrl("post-law-legal-jobs.php");
    } else {
        $error = "jobs Name alreday exist !";
    }
}
?>
<div class="ch-container">
    <div class="row">

        <!-- left menu starts -->
        <?php 
include 'sitebar.php';
?>
        <!--/span-->
        <!-- left menu ends -->



        <div id="content" class="col-lg-10 col-sm-10">
开发者ID:sonaljain888,项目名称:project-legal-lawyer-,代码行数:30,代码来源:Jobs.php

示例6: Topic

<?php

include 'admin-config.php';
include 'header.php';
$topic_id = $topic = $active = $error = "";
if (strlen(Request::post("submit"))) {
    $topic_id = Request::post("topic_id");
    $topic = Request::post("topic");
    $active = Validation::getStautsTinyVal(Request::post("active"));
    $topicObj = new Topic();
    $topicObj->set("topic_id", $topic_id);
    $topicObj->set("topic", $topic);
    $topicObj->set("active", $active);
    if ($topicObj->save()) {
        General::redirectUrl("topic.php");
    } else {
        $error = "topic Name alreday exist !";
    }
}
?>

<div class="ch-container">
    <div class="row">
        
        <!-- left menu starts -->
       <?php 
include 'sitebar.php';
?>
        <!--/span-->
        <!-- left menu ends -->
开发者ID:sonaljain888,项目名称:project-legal-lawyer-,代码行数:30,代码来源:add_topic.php

示例7: logOut

 public static function logOut()
 {
     if (strlen(Session::read("email")) && strlen(Session::read("userid")) && strlen(Session::read("access_type"))) {
         Session::delete("email");
         Session::delete("userid");
         Session::delete("access_type");
         Session::destroy();
     }
     General::redirectUrl(SERVER_URL);
     return true;
 }
开发者ID:sonaljain888,项目名称:legal-lawyer1,代码行数:11,代码来源:class.Session.php

示例8: BlogCategory

<?php

include 'admin-config.php';
$blogcategory_id = $blogcategory_name = $blogcategory_status = $error = "";
if (strlen(Request::post("submit"))) {
    $blogcategory_id = Request::post("blogcategory_id");
    $blogcategory_name = Request::post("blogcategory_name");
    $blogcategory_status = Validation::getStautsTinyVal(Request::post("active"));
    $blogcategoryObj = new BlogCategory();
    $blogcategoryObj->set("blogcategory_id", $blogcategory_id);
    $blogcategoryObj->set("blogcategory_name", $blogcategory_name);
    $blogcategoryObj->set("blogcategory_status", $blogcategory_status);
    if ($blogcategoryObj->save()) {
        General::redirectUrl("blog_category.php");
    } else {
        $error = "blog Category Name alreday exist !";
    }
}
include 'header.php';
include 'sitebar.php';
?>
<div class="ch-container">
    <div class="row">

        <div id="content" class="col-lg-10 col-sm-10">
            <!-- content starts -->
            <div>
                <ul class="breadcrumb">
                    <li>
                        <a href="blog_category.php">Home</a>
                    </li>
开发者ID:sonaljain888,项目名称:legal-lawyer1,代码行数:31,代码来源:add_blogcategory.php

示例9: User

<?php 
include 'admin-config.php';
include 'header.php';
$UserId = $active = $error = "";
if (strlen(Request::post("submit"))) {
    $UserId = Request::post("UserId");
    $active = Validation::getStautsTinyVal(Request::post("active"));
    $userObj = new User();
    $userObj->set("UserId", $UserId);
    $userObj->set("active", $active);
    if ($userObj->save()) {
        General::redirectUrl("users.php");
    } else {
        $error = " Name alreday exist !";
    }
}
?>
<div class="ch-container">
    <div class="row">

        <!-- left menu starts -->
        <?php 
include 'sitebar.php';
?>
        <!--/span-->
        <!-- left menu ends -->



        <div id="content" class="col-lg-10 col-sm-10">
开发者ID:sonaljain888,项目名称:project-legal-lawyer-,代码行数:30,代码来源:edit_user.php

示例10: DocumentCategory

<?php

include 'admin-config.php';
$id = $doc_type_id = $name = $active = $error = "";
if (strlen(Request::post("submit"))) {
    $id = Request::post("id");
    $doc_type_id = Request::post("doc_type_id");
    $name = Request::post("name");
    $active = Validation::getStautsTinyVal(Request::post("active"));
    $documentcategoryObj = new DocumentCategory();
    $documentcategoryObj->set("id", $id);
    $documentcategoryObj->set("doc_type_id", $doc_type_id);
    $documentcategoryObj->set("name", $name);
    $documentcategoryObj->set("active", $active);
    if ($documentcategoryObj->save()) {
        General::redirectUrl("documentCategory.php");
    } else {
        $error = "Category Name alreday exist !";
    }
}
include 'header.php';
include 'sitebar.php';
?>
<div class="ch-container">
    <div class="row">
        <div id="content" class="col-lg-10 col-sm-10">
            <!-- content starts -->
            <div>
                <ul class="breadcrumb">
                    <li>
                        <a href="#">Home</a>
开发者ID:sonaljain888,项目名称:project-legal-lawyer-,代码行数:31,代码来源:add_documentCategory.php

示例11: MenuCategory

<?php

include 'admin-config.php';
$menucategory_id = $menucategory_name = $menucategory_status = $error = "";
if (strlen(Request::post("submit"))) {
    $menucategory_id = Request::post("menucategory_id");
    $menucategory_name = Request::post("menucategory_name");
    $menucategory_status = Validation::getStautsTinyVal(Request::post("active"));
    $menucategoryObj = new MenuCategory();
    $menucategoryObj->set("menucategory_id", $menucategory_id);
    $menucategoryObj->set("menucategory_name", $menucategory_name);
    $menucategoryObj->set("menucategory_status", $menucategory_status);
    if ($menucategoryObj->save()) {
        General::redirectUrl("menu_category.php");
    } else {
        $error = "Menu Category Name alreday exist !";
    }
}
include 'header.php';
include 'sitebar.php';
?>
<div class="ch-container">
    <div class="row">

        <div id="content" class="col-lg-10 col-sm-10">
            <!-- content starts -->
            <div>
                <ul class="breadcrumb">
                    <li>
                        <a href="menu_category.php">Home</a>
                    </li>
开发者ID:sonaljain888,项目名称:legal-lawyer1,代码行数:31,代码来源:add_menucategory.php

示例12: getPageTemplate

 public static function getPageTemplate($url)
 {
     $request = Request::getAllRequest();
     if (count($request)) {
         switch ($request['type']) {
             case 'user':
                 $user = new User();
                 $user->set("request", $request);
                 $result = $user->{$request}['action']();
                 $page = new Page();
                 if ($result && $request['action'] == 'login') {
                     $pageType = $page->getPageTypeUrl(Session::read("access_type"));
                     $r_url = SERVER_URL . "/{$pageType}/home";
                 } elseif ($result && $request['action'] == 'registration') {
                     $pageType = $page->getPageTypeUrl(Session::read("access_type"));
                     $r_url = SERVER_URL . "/{$pageType}/home";
                 } else {
                     $r_url = SERVER_URL . "/login";
                 }
                 General::redirectUrl($r_url);
                 break;
         }
     }
     $general = new General();
     $general->url = $url;
     return $general->setTempalte();
 }
开发者ID:sonaljain888,项目名称:legal-lawyer1,代码行数:27,代码来源:class.General.php

示例13: Country

<?php

include 'admin-config.php';
$country_id = $country_name = $country_status = $error = "";
if (strlen(Request::post("submit"))) {
    $country_id = Request::post("country_id");
    $country_name = Request::post("country_name");
    $country_status = Validation::getStautsTinyVal(Request::post("active"));
    $countryObj = new Country();
    $countryObj->set("country_id", $country_id);
    $countryObj->set("country_name", $country_name);
    $countryObj->set("country_status", $country_status);
    if ($countryObj->save()) {
        General::redirectUrl("country.php");
    } else {
        $error = "Country Name alreday exist !";
    }
}
include 'header.php';
include 'sitebar.php';
?>
<div class="ch-container">
    <div class="row">

        <div id="content" class="col-lg-10 col-sm-10">
            <!-- content starts -->
            <div>
                <ul class="breadcrumb">
                    <li>
                        <a href="country.php">Home</a>
                    </li>
开发者ID:sonaljain888,项目名称:legal-lawyer1,代码行数:31,代码来源:add_country.php

示例14: DatabaseBean

<?php

include 'config.php';
$dbBean = new DatabaseBean();
$general = new General($dbBean);
$Package = new Package($dbBean);
if ($_REQUEST['FLAG'] == 'ADD_PACKAGE') {
    if (trim($_REQUEST['packagename']) == "") {
        $_SESSION['msg'] = 'Please enter package name';
        $num = 'danger';
        $url = ADMIN_URL . "/packages/add.php";
        $general->redirectUrl($url, $num);
        exit;
    }
    if (trim($_REQUEST['cost']) == "") {
        $_SESSION['msg'] = 'Please enter cost';
        $num = 'danger';
        $url = ADMIN_URL . "/packages/add.php";
        $general->redirectUrl($url, $num);
        exit;
    } else {
        $pattern = '/^[0-9]+(?:\\.[0-9]{0,2})?$/';
        if (preg_match($pattern, trim($_REQUEST['cost'])) == '0') {
            $_SESSION['msg'] = 'Please enter valid cost';
            $num = 'danger';
            $url = ADMIN_URL . "/packages/add.php";
            $general->redirectUrl($url, $num);
            exit;
        }
    }
    if (trim($_REQUEST['creditprovided']) == "" && trim($_REQUEST['servicediscount']) == "" && trim($_REQUEST['productdiscount']) == "") {
开发者ID:sandeepsis,项目名称:nuwax,代码行数:31,代码来源:DB.php

示例15: State

<?php

include 'admin-config.php';
$state_id = $country_id = $state_name = $state_status = $error = "";
if (strlen(Request::post("submit"))) {
    $state_id = Request::post("state_id");
    $country_id = Request::post("country_id");
    $state_name = Request::post("state_name");
    $state_status = Validation::getStautsTinyVal(Request::post("active"));
    $stateObj = new State();
    $stateObj->set("state_id", $state_id);
    $stateObj->set("country_id", $country_id);
    $stateObj->set("state_name", $state_name);
    $stateObj->set("state_status", $state_status);
    if ($stateObj->save()) {
        General::redirectUrl("state.php");
    } else {
        $error = "State Name alreday exist !";
    }
}
?>

<?php 
include 'header.php';
include 'sitebar.php';
?>
<div class="ch-container">
    <div class="row">

        <div id="content" class="col-lg-10 col-sm-10">
            <!-- content starts -->
开发者ID:sonaljain888,项目名称:legal-lawyer1,代码行数:31,代码来源:add_state.php


注:本文中的General::redirectUrl方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。