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


PHP Jobs::set方法代码示例

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


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

示例1: Jobs

            <div class="row">
                <div class="box col-md-12">
                    <div class="box-inner">
                        <div class="box-header well" data-original-title="">
                            <h2><i class="glyphicon glyphicon-edit"></i>Job View</h2>


                        </div>
                        <div class="box-content">
                            <div class="control-group">
                                <?php 
$id = Request::get("id");
if (is_numeric($id) && $id > 0) {
    $jobsObj = new Jobs();
    $jobsObj->set("id", $id);
    $result = $jobsObj->getName();
    if (count($result)) {
        $row = $result[0];
        $id = $row['id'];
        //                                    $topic = $row['topic'];
        $active = $row['active'];
    }
}
?>
                                <div class="error"><?php 
echo Error::displayError();
?>
</div>

                                <form action="" method="POST">
开发者ID:sonaljain888,项目名称:project-legal-lawyer-,代码行数:30,代码来源:Jobs.php

示例2: getPageTemplate

 public static function getPageTemplate($url)
 {
     if (count(Request::getAllRequest())) {
         switch (Request::post("type")) {
             case 'user':
                 $user = new User();
                 $user->set("email_id", Request::post("email"));
                 $user->set("password", Request::post("password"));
                 $user->set("re_pass", Request::post("r_password"));
                 $user->set("name", Request::post("name"));
                 $user->set("mobile", Request::post("mobile"));
                 $user->set("website", Request::post("website"));
                 $user->set("add", Request::post("add"));
                 $user->set("city", Request::post("city"));
                 $user->set("location", Request::post("location"));
                 $user->set("experience", Request::post("experience"));
                 $user->set("education", Request::post("education"));
                 $user->set("specialization", Request::post("specialization"));
                 $user->set("pra_court", Request::post("pra_court"));
                 $action = Request::post("action");
                 $result = $user->{$action}();
                 $page = new Page();
                 if ($result && $action == 'login') {
                     $page->set("access_id", Session::read("access_type"));
                     $pageType = $page->getPageTypeUrl();
                     $r_url = SERVER_URL . "/{$pageType}/home";
                 } elseif ($result && $action == 'registration') {
                     $page->set("access_id", Session::read("access_type"));
                     $pageType = $page->getPageTypeUrl();
                     $r_url = SERVER_URL . "/{$pageType}/home";
                 } elseif ($result && $action == 'editProfile') {
                     $page->set("access_id", Session::read("access_type"));
                     $pageType = $page->getPageTypeUrl();
                     $r_url = SERVER_URL . "/{$pageType}/profile";
                 } else {
                     $r_url = SERVER_URL . "/login";
                 }
                 General::redirectUrl($r_url);
                 break;
             case 'company':
                 $company = new Company();
                 $company->set("user_id", Request::post("userid"));
                 $company->set("name", Request::post("name"));
                 $company->set("city", Request::post("city"));
                 $company->set("location", Request::post("location"));
                 $company->set("website", Request::post("website"));
                 $company->set("email", Request::post("email"));
                 $company->set("phone", Request::post("phone"));
                 $company->set("specialization", Request::post("specialization"));
                 $company->set("description", Request::post("description"));
                 $action = Request::post("action");
                 $result = $company->{$action}();
                 //                        print_r($result);                        exit();
                 $page = new Page();
                 if ($result && $action == 'addcompany') {
                     $page->set("access_id", Session::read("access_type"));
                     $pageType = $page->getPageTypeUrl();
                     $r_url = SERVER_URL . "/{$pageType}/company";
                 } else {
                     $r_url = SERVER_URL . "/lpo-training";
                 }
                 General::redirectUrl($r_url);
                 break;
             case 'question':
                 $ques = new Questions();
                 $ques->set("user_id", Request::post("userid"));
                 $ques->set("question", Request::post("question"));
                 $ques->set("heading", Request::post("heading"));
                 $ques->set("topic_id", Request::post("topic_id"));
                 $ques->set("city", Request::post("city"));
                 $action = Request::post("action");
                 $result = $ques->{$action}();
                 //                       print_r($result);                        exit();
                 $page = new Page();
                 if ($result && $action == 'addquestion') {
                     $page->set("access_id", Session::read("access_type"));
                     $pageType = $page->getPageTypeUrl();
                     $r_url = SERVER_URL . "/{$pageType}/online-legal-advice";
                 } else {
                     $r_url = SERVER_URL . "/home";
                 }
                 General::redirectUrl($r_url);
                 break;
             case 'jobs':
                 $job = new Jobs();
                 $job->set("user_id", Request::post("userid"));
                 $job->set("heading", Request::post("heading"));
                 $job->set("education", Request::post("education"));
                 $job->set("exp_min", Request::post("exp_min"));
                 $job->set("exp_max", Request::post("exp_max"));
                 $job->set("salary", Request::post("salary"));
                 $job->set("description", Request::post("description"));
                 $job->set("c_name", Request::post("companyname"));
                 $job->set("email", Request::post("email"));
                 $job->set("phone", Request::post("phone"));
                 $job->set("city", Request::post("city"));
                 $job->set("address", Request::post("address"));
                 $result = $company->{$action}();
                 //                        print_r($result);                        exit();
                 $page = new Page();
//.........这里部分代码省略.........
开发者ID:sonaljain888,项目名称:project-legal-lawyer-,代码行数:101,代码来源:class.General.php


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