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


PHP Jobs::read方法代码示例

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


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

示例1: trim

}
if (isset($_GET['do'])) {
    $do = trim($_GET['do']);
    if (isset($_GET['id'])) {
        $id = intval($_GET['id']);
    }
    if ($do == "del" && !empty($id)) {
        $job->del($id, "member_id=" . $_SESSION['MemberID']);
    }
    if ($do == "edit") {
        setvar("Genders", $typeoption->get_cache_type('gender'));
        setvar("Educations", $typeoption->get_cache_type('education'));
        setvar("Salary", $typeoption->get_cache_type('salary'));
        setvar("Worktype", $typeoption->get_cache_type('work_type'));
        if (!empty($id)) {
            $res = $job->read("*", $id, null, "Job.member_id=" . $_SESSION['MemberID']);
            if (empty($res)) {
                flash("action_failed");
            }
            $res['expire_date'] = date("Y-m-d", $res['expire_time']);
            setvar("item", $res);
        }
        $tpl_file = "job_edit";
        template($tpl_file);
        exit;
    }
}
if (!empty($_POST['job']) && $_POST['save']) {
    $vals = $_POST['job'];
    pb_submit_check('job');
    $now_job_amount = $job->findCount(null, "created>" . $today_start . " AND member_id=" . $_SESSION['MemberID']);
开发者ID:vuong93st,项目名称:w-game,代码行数:31,代码来源:job.php

示例2: trim

}
if (isset($_GET['do'])) {
    $do = trim($_GET['do']);
    if (isset($_GET['id'])) {
        $id = intval($_GET['id']);
    }
    if ($do == "del" && !empty($id)) {
        $job->del($id, "member_id=" . $the_memberid);
    }
    if ($do == "edit") {
        setvar("Genders", $typeoption->get_cache_type('gender'));
        setvar("Educations", $typeoption->get_cache_type('education'));
        setvar("Salary", $typeoption->get_cache_type('salary'));
        setvar("Worktype", $typeoption->get_cache_type('work_type'));
        if (!empty($id)) {
            $res = $job->read("*", $id, null, "Job.member_id=" . $the_memberid);
            if (empty($res)) {
                flash("action_failed");
            }
            $res['expire_date'] = df($res['expire_time']);
            $r1 = $industry->disSubOptions($res['industry_id'], "industry_");
            $r2 = $area->disSubOptions($res['area_id'], "area_");
            $res = am($res, $r1, $r2);
            setvar("item", $res);
        }
        $tpl_file = "job_edit";
        template($tpl_file);
        exit;
    }
}
if (!empty($_POST['job']) && $_POST['save']) {
开发者ID:renduples,项目名称:alibtob,代码行数:31,代码来源:job.php

示例3: exit

/**
 *      [PHPB2B] Copyright (C) 2007-2099, Ualink Inc. All Rights Reserved.
 *      The contents of this file are subject to the License; you may not use this file except in compliance with the License. 
 *
 *      @version $Revision: 2048 $
 */
if (!defined('IN_PHPB2B')) {
    exit('Not A Valid Entry Point');
}
uses("job", "typeoption");
$job = new Jobs();
$conditions = "Job.status=1 AND company_id=" . $company->info['id'];
if (isset($_GET['nid'])) {
    $id = intval($_GET['nid']);
    if ($id) {
        $info = $job->read("*", $id, null, $conditions);
        if (empty($info)) {
            flash('data_not_exists', null, 0);
        }
        $sql = "UPDATE {$tb_prefix}jobs SET clicked=clicked+1 WHERE id=" . $id . " AND status=1 AND company_id='" . $company->info['id'] . "'";
        $pdb->Execute($sql);
        $tpl_file = "job_detail";
        setvar("item", $info);
        $space->render($tpl_file);
        exit;
    }
}
$amount = $job->findCount(null, $conditions, "id");
setvar("paging", array('total' => $amount));
$space->render("job");
开发者ID:renduples,项目名称:alibtob,代码行数:30,代码来源:job.inc.php


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