本文整理汇总了PHP中Jobs::findAll方法的典型用法代码示例。如果您正苦于以下问题:PHP Jobs::findAll方法的具体用法?PHP Jobs::findAll怎么用?PHP Jobs::findAll使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Jobs
的用法示例。
在下文中一共展示了Jobs::findAll方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: flash
$vals['modified'] = $time_stamp;
$result = $job->save($vals, "update", $id, null, "member_id=" . $the_memberid);
} else {
if ($g['max_job'] && $now_job_amount >= $g['max_job']) {
flash('one_day_max');
}
$vals['created'] = $vals['modified'] = $time_stamp;
$vals['company_id'] = $companyinfo['id'];
$vals['member_id'] = $the_memberid;
$vals['cache_spacename'] = $pdb->GetOne("SELECT space_name FROM {$tb_prefix}members WHERE id=" . $the_memberid);
$result = $job->save($vals);
}
if (!$result) {
flash();
} else {
flash($message_info);
}
}
$result = $job->findAll("*", null, "Job.member_id=" . $the_memberid, "id DESC", 0, 10);
if (!empty($result)) {
for ($i = 0; $i < count($result); $i++) {
$result[$i]['pubdate'] = df($result[$i]['created']);
$result[$i]['expire_date'] = df($result[$i]['expire_time']);
}
setvar("Items", $result);
}
$job_status = explode(",", L('product_status', 'tpl'));
setvar("CheckStatus", $job_status);
setvar("Worktype", $typeoption->get_cache_type("work_type"));
setvar("Salary", $typeoption->get_cache_type("salary"));
template($tpl_file);
示例2: flash
}
if (!empty($id)) {
$vals['modified'] = $time_stamp;
$result = $job->save($vals, "update", $id, null, "member_id=" . $_SESSION['MemberID']);
} else {
if ($g['max_job'] && $now_job_amount >= $g['max_job']) {
flash('one_day_max');
}
$vals['created'] = $vals['modified'] = $time_stamp;
$vals['company_id'] = $companyinfo['id'];
$vals['member_id'] = $_SESSION['MemberID'];
$vals['cache_spacename'] = $pdb->GetOne("SELECT space_name FROM {$tb_prefix}members WHERE id=" . $_SESSION['MemberID']);
$result = $job->save($vals);
}
if (!$result) {
flash();
} else {
flash($message_info);
}
}
$result = $job->findAll("*", null, "Job.member_id=" . $_SESSION['MemberID'], "id DESC", 0, 10);
if (!empty($result)) {
for ($i = 0; $i < count($result); $i++) {
$result[$i]['pubdate'] = date("Y-m-d", $result[$i]['created']);
$result[$i]['expire_date'] = date("Y-m-d", $result[$i]['expire_time']);
}
setvar("Items", $result);
}
setvar("Worktype", $typeoption->get_cache_type("work_type"));
setvar("Salary", $typeoption->get_cache_type("salary"));
template($tpl_file);