本文整理汇总了PHP中get_user_setmeal函数的典型用法代码示例。如果您正苦于以下问题:PHP get_user_setmeal函数的具体用法?PHP get_user_setmeal怎么用?PHP get_user_setmeal使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_user_setmeal函数的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: intval
} else {
$setsqlarr['endtime'] = 0;
}
if ($_POST['days'] != "") {
if (intval($_POST['days']) != 0) {
$oldendtime = intval($_POST['oldendtime']);
$setsqlarr['endtime'] = strtotime("" . intval($_POST['days']) . " days", $oldendtime == 0 ? time() : $oldendtime);
}
if (intval($_POST['days']) == "0") {
$setsqlarr['endtime'] = 0;
}
}
$setmealtime = $setsqlarr['endtime'];
$company_uid = intval($_POST['company_uid']);
if ($company_uid) {
$setmeal = get_user_setmeal($company_uid);
if (!updatetable(table('members_setmeal'), $setsqlarr, " uid=" . $company_uid . "")) {
adminmsg('修改出错!', 0);
}
//会员套餐变更记录。管理员后台修改会员套餐:修改会员。3表示:管理员后台修改
$setmeal['endtime'] = date('Y-m-d', $setmeal['endtime']);
$setsqlarr['endtime'] = date('Y-m-d', $setsqlarr['endtime']);
$setsqlarr['log_amount'] = round($_POST['log_amount']);
$notes = edit_setmeal_notes($setsqlarr, $setmeal);
if ($notes) {
$user = get_user($_POST['company_uid']);
$ismoney = round($_POST['log_amount']) ? 2 : 1;
write_setmeallog($company_uid, $user['username'], $notes, 3, $setsqlarr['log_amount'], $ismoney, 2, 1);
}
if ($setsqlarr['endtime'] != "") {
$setmeal_deadline['setmeal_deadline'] = $setmealtime;
示例2: write_memberslog
write_memberslog($_SESSION['uid'], 1, 4001, $_SESSION['username'], "下载了 {$ruser['username']} 发布的简历");
//站内信
if ($pms_notice == '1') {
$company = $db->getone("select id,companyname from " . table('company_profile') . " where uid ={$_SESSION['uid']} limit 1");
// $user=$db->getone("select username from ".table('members')." where uid ={$resumeshow['uid']} limit 1");
$resume_url = url_rewrite('QS_resumeshow', array('id' => $id));
$company_url = url_rewrite('QS_companyshow', array('id' => $company['id']));
$message = $_SESSION['username'] . "下载了您发布的简历:<a href=\"{$resume_url}\" target=\"_blank\">{$resumeshow['resume_name']}</a>,<a href=\"{$company_url}\" target=\"_blank\">点击查看公司详情</a>";
write_pmsnotice($resumeshow['uid'], $ruser['username'], $message);
}
exit("ok");
}
} else {
if ($setmeal['download_resume_ordinary'] > 0 && add_down_resume($id, $_SESSION['uid'], $resumeshow['uid'], $resumeshow['resume_name'])) {
action_user_setmeal($_SESSION['uid'], "download_resume_ordinary");
$setmeal = get_user_setmeal($_SESSION['uid']);
write_memberslog($_SESSION['uid'], 1, 9002, $_SESSION['username'], "下载了 {$ruser['username']} 发布的普通简历,还可以下载 {$setmeal['download_resume_ordinary']} 份普通简历", 2, 1004, "下载普通简历", "1", "{$setmeal['download_resume_ordinary']}");
write_memberslog($_SESSION['uid'], 1, 4001, $_SESSION['username'], "下载了 {$ruser['username']} 发布的简历");
//站内信
if ($pms_notice == '1') {
$company = $db->getone("select id,companyname from " . table('company_profile') . " where uid ={$_SESSION['uid']} limit 1");
// $user=$db->getone("select username from ".table('members')." where uid ={$resumeshow['uid']} limit 1");
$resume_url = url_rewrite('QS_resumeshow', array('id' => $id));
$company_url = url_rewrite('QS_companyshow', array('id' => $company['id']));
$message = $_SESSION['username'] . "下载了您发布的简历:<a href=\"{$resume_url}\" target=\"_blank\">{$resumeshow['resume_name']}</a>,<a href=\"{$company_url}\" target=\"_blank\">点击查看公司详情</a>";
write_pmsnotice($resumeshow['uid'], $ruser['username'], $message);
}
exit("ok");
}
}
} elseif ($_CFG['operation_mode'] == "1") {
示例3: is_delay_jobs
function is_delay_jobs($sqlin, $uid, $days)
{
global $db;
$days = intval($days);
$uid = intval($uid);
$setmeal = get_user_setmeal($uid);
$return = 0;
if (empty($days)) {
return false;
}
$time = time();
if (preg_match("/^(\\d{1,10},)*(\\d{1,10})\$/", $sqlin)) {
$result = $db->query("SELECT id,deadline FROM " . table('jobs') . " WHERE id IN ({$sqlin}) UNION ALL SELECT id,deadline FROM " . table('jobs_tmp') . " WHERE id IN ({$sqlin})");
while ($row = $db->fetch_array($result)) {
//职位到期时间 大于等于 套餐有效时间 (这种情况下不能延期)
if ($row['deadline'] >= $setmeal['endtime'] && $setmeal['endtime'] != "0") {
return false;
}
//延期的时间超过了套餐有效时间
$deadline = strtotime("+{$days} day", $row['deadline']);
if ($deadline > $setmeal['endtime'] && $setmeal['endtime'] != "0") {
return false;
}
}
return true;
} else {
return false;
}
}
示例4: intval
} else {
$setsqlarr['endtime'] = 0;
}
if ($_POST['days'] != "") {
if (intval($_POST['days']) != 0) {
$oldendtime = intval($_POST['oldendtime']);
$setsqlarr['endtime'] = strtotime("" . intval($_POST['days']) . " days", $oldendtime == 0 ? time() : $oldendtime);
}
if (intval($_POST['days']) == "0") {
$setsqlarr['endtime'] = 0;
}
}
$setmealtime = $setsqlarr['endtime'];
$hunter_uid = intval($_POST['hunter_uid']);
if ($hunter_uid) {
$setmeal = get_user_setmeal($hunter_uid);
if (!$db->updatetable(table('members_hunter_setmeal'), $setsqlarr, " uid=" . $hunter_uid . "")) {
adminmsg('修改出错!', 0);
}
//会员套餐变更记录。管理员后台修改会员套餐:修改会员。3表示:管理员后台修改
$setmeal['endtime'] = date('Y-m-d', $setmeal['endtime']);
$setsqlarr['endtime'] = date('Y-m-d', $setsqlarr['endtime']);
$setsqlarr['log_amount'] = round($_POST['log_amount']);
$notes = edit_setmeal_notes($setsqlarr, $setmeal);
if ($notes) {
$user = get_user($_POST['hunter_uid']);
$ismoney = round($_POST['log_amount']) ? 2 : 1;
write_setmeallog($hunter_uid, $user['username'], $notes, 3, $setsqlarr['log_amount'], $ismoney, 2, 3);
}
if ($setsqlarr['endtime'] != "") {
$setmeal_deadline['setmeal_deadline'] = $setmealtime;
示例5: date
$notes = date('Y-m-d H:i', time()) . "通过:" . get_payment_info($order['payment_name'], true) . " 成功充值 " . $order['amount'] . "元并开通{$setmeal['setmeal_name']}";
write_memberslog($order['uid'], 1, 9002, $user['username'], $notes);
//会员套餐变更记录。会员购买成功。2表示:会员自己购买
write_setmeallog($order['uid'], $user['username'], $notes, 2, $order['amount'], $ismoney, 2, 1);
}
} elseif ($order['pay_type'] == '2') {
$order_name = "广告位订单";
write_memberslog($_SESSION['uid'], 1, 9001, $_SESSION['username'], "申请广告位:<strong>{$order['description']}</strong>,(花费: {$order['amount']})。", 1, 1020, "申请广告位", "-{$order['amount']}", "{$user_points}");
} elseif ($order['pay_type'] == '3') {
$order_name = "短信套餐订单";
$user = get_user_info($order['uid']);
if ($order['setmeal'] > 0) {
//查看短信套餐
set_members_sms($order['uid'], intval($order['setmeal']));
//支付成功,向用户增加短信条数
$user_points = get_user_setmeal($order['uid']);
write_memberslog($_SESSION['uid'], 1, 9003, $_SESSION['username'], "短信充值套餐:<strong>{$order['description']}</strong>,(- {$order['amount']}),(剩余:{$user_points['set_sms']})", 1, 1020, "申请广告位", "- {$order['amount']}", "{$user_points['set_sms']}");
}
}
//sendemail
$mailconfig = get_cache('mailconfig');
if ($mailconfig['set_payment'] == "1" && $user['email_audit'] == "1" && $order['amount'] > 0) {
dfopen("{$_CFG['site_domain']}{$_CFG['site_dir']}plus/asyn_mail.php?uid={$order['uid']}&key=" . asyn_userkey($order['uid']) . "&act=set_payment");
}
//sms
$sms = get_cache('sms_config');
if ($sms['open'] == "1" && $sms['set_payment'] == "1" && $user['mobile_audit'] == "1" && $order['amount'] > 0) {
dfopen("{$_CFG['site_domain']}{$_CFG['site_dir']}plus/asyn_sms.php?uid={$order['uid']}&key=" . asyn_userkey($order['uid']) . "&act=set_payment");
}
//return true;
}
示例6: add_favorites
function add_favorites($id, $company_uid)
{
global $db, $_CFG;
$timestamp = time();
$setmeal = get_user_setmeal($company_uid);
$count = count_favorites($company_uid);
if (strpos($id, "-")) {
$id = explode("-", $id);
}
if (!is_array($id)) {
$id = array($id);
}
$i = 0;
foreach ($id as $v) {
$v = intval($v);
if ($_CFG['operation_mode'] == "2" || $_CFG['operation_mode'] == "3") {
if ($count >= $setmeal['talent_pool']) {
return "full";
}
}
if (!check_favorites($v, $company_uid)) {
$db->query("INSERT INTO " . table('company_favorites') . " (resume_id,company_uid,favoritesa_ddtime) VALUES ('{$v}','{$company_uid}','{$timestamp}')");
write_memberslog($_SESSION['uid'], 1, 5001, $_SESSION['username'], "将简历({$v})添加至人才库");
$i++;
}
}
write_memberslog($_SESSION['uid'], 1, 9002, $_SESSION['username'], "添加简历至人才库", 2, 1017, "添加人才库", $i, $count - $i);
return $i;
}
示例7: strtotime
$setsqlarr['cp_endtime'] = strtotime("{$days} day");
$setsqlarr['cp_val'] = $val_code;
if ($setsqlarr['cp_promotionid'] == "4" && empty($setsqlarr['cp_val'])) {
exit("请选择颜色!");
}
if (inserttable(table('promotion'), $setsqlarr)) {
set_job_promotion($jobid, $setsqlarr['cp_promotionid'], $val_code);
if ($_CFG['operation_mode'] == '1' && $pro_cat['cat_points'] > 0) {
report_deal($uid, 2, $points);
$user_points = get_user_points($uid);
write_memberslog($uid, 1, 9001, $_SESSION['username'], "{$pro_cat['cat_name']}:<strong>{$jobs['jobs_name']}</strong>,推广 {$days} 天,(-{$points}),(剩余:{$user_points})", 1, 1018, "{$pro_cat['cat_name']}", "-{$points}", "{$user_points}");
} elseif ($_CFG['operation_mode'] == '2') {
$user_pname = trim($_POST['pro_name']);
action_user_setmeal($uid, $user_pname);
//更新套餐中相应推广方式的条数
$setmeal = get_user_setmeal($uid);
//获取会员套餐
write_memberslog($uid, 1, 9002, $_SESSION['username'], "{$pro_cat['cat_name']}:<strong>{$jobs['jobs_name']}</strong>,推广 {$days} 天,套餐内剩余{$pro_cat['cat_name']}条数:{$setmeal[$user_pname]}条。", 2, 1018, "{$pro_cat['cat_name']}", "-{$days}", "{$setmeal[$user_pname]}");
//9002是套餐操作
}
write_memberslog($uid, 1, 3004, $_SESSION['username'], "{$pro_cat['cat_name']}:<strong>{$jobs['jobs_name']}</strong>,推广 {$days} 天。");
if ($_POST['golist']) {
exit("1");
} else {
exit("1");
}
}
} else {
exit("-1");
}
}
示例8: set_members_setmeal
function set_members_setmeal($uid, $setmealid)
{
global $db, $timestamp, $_CFG;
$setmeal = $db->getone("select * from " . table('setmeal') . " WHERE id = " . intval($setmealid) . " AND display=1 LIMIT 1");
if (empty($setmeal)) {
return false;
}
$user_setmeal = get_user_setmeal(intval($uid));
// 新添加会员开通套餐
if ($user_setmeal['setmeal_id'] == 0) {
$setsqlarr['effective'] = 1;
$setsqlarr['setmeal_id'] = $setmeal['id'];
$setsqlarr['setmeal_name'] = $setmeal['setmeal_name'];
$setsqlarr['days'] = $setmeal['days'];
$setsqlarr['starttime'] = $timestamp;
if ($setmeal['days'] > 0) {
$setsqlarr['endtime'] = strtotime("" . $setmeal['days'] . " days");
} else {
$setsqlarr['endtime'] = "0";
}
$setsqlarr['expense'] = $setmeal['expense'];
$setsqlarr['jobs_ordinary'] = $setmeal['jobs_ordinary'];
$setsqlarr['download_resume_ordinary'] = $setmeal['download_resume_ordinary'];
$setsqlarr['download_resume_senior'] = $setmeal['download_resume_senior'];
$setsqlarr['interview_ordinary'] = $setmeal['interview_ordinary'];
$setsqlarr['interview_senior'] = $setmeal['interview_senior'];
$setsqlarr['talent_pool'] = $setmeal['talent_pool'];
$setsqlarr['recommend_num'] = $setmeal['recommend_num'];
$setsqlarr['recommend_days'] = $setmeal['recommend_days'];
$setsqlarr['stick_num'] = $setmeal['stick_num'];
$setsqlarr['stick_days'] = $setmeal['stick_days'];
$setsqlarr['emergency_num'] = $setmeal['emergency_num'];
$setsqlarr['emergency_days'] = $setmeal['emergency_days'];
$setsqlarr['highlight_num'] = $setmeal['highlight_num'];
$setsqlarr['highlight_days'] = $setmeal['highlight_days'];
$setsqlarr['change_templates'] = $setmeal['change_templates'];
$setsqlarr['jobsfair_num'] = $setmeal['jobsfair_num'];
$setsqlarr['map_open'] = $setmeal['map_open'];
$setsqlarr['added'] = $setmeal['added'];
$setsqlarr['refresh_jobs_space'] = $setmeal['refresh_jobs_space'];
$setsqlarr['refresh_jobs_time'] = $setmeal['refresh_jobs_time'];
$setsqlarr['set_sms'] = $setmeal['set_sms'];
if (!$db->updatetable(table('members_setmeal'), $setsqlarr, " uid=" . $uid . "")) {
return false;
}
// 短信数套餐数
if (!$db->query("update " . table("members") . " set sms_num=sms_num+" . $setsqlarr['set_sms'] . " where uid={$uid}")) {
return false;
}
$setmeal_jobs['setmeal_deadline'] = $setsqlarr['endtime'];
$setmeal_jobs['setmeal_id'] = $setsqlarr['setmeal_id'];
$setmeal_jobs['setmeal_name'] = $setsqlarr['setmeal_name'];
if (!$db->updatetable(table('jobs'), $setmeal_jobs, " uid=" . intval($uid) . " AND add_mode='2' ")) {
return false;
}
if (!$db->updatetable(table('jobs_tmp'), $setmeal_jobs, " uid=" . intval($uid) . " AND add_mode='2' ")) {
return false;
}
distribution_jobs_uid($uid);
return true;
} elseif ($_CFG['is_superposition'] == 1) {
//判断套餐保留表中是否有保留记录 (如果有记录说明 之前的套餐过期过 如果没有记录说明套餐没有过期过)
$setmeal_reserved = $db->getone("select * from " . table("members_setmeal_reserved") . " where uid=" . intval($uid));
//有记录的情况 (根据是否在保留时间范围内 来判断是否叠加保留表中的数据)
if ($setmeal_reserved) {
//保留时间范围外 则无需叠加 直接开通新的套餐
if ($timestamp > $setmeal_reserved['reserved_time']) {
$setsqlarr['effective'] = 1;
$setsqlarr['setmeal_id'] = $setmeal['id'];
$setsqlarr['setmeal_name'] = $setmeal['setmeal_name'];
$setsqlarr['days'] = $setmeal['days'];
$setsqlarr['starttime'] = $timestamp;
if ($setmeal['days'] > 0) {
$setsqlarr['endtime'] = strtotime("" . $setmeal['days'] . " days");
} else {
$setsqlarr['endtime'] = "0";
}
$setsqlarr['expense'] = $setmeal['expense'];
$setsqlarr['jobs_ordinary'] = $setmeal['jobs_ordinary'];
$setsqlarr['download_resume_ordinary'] = $setmeal['download_resume_ordinary'];
$setsqlarr['download_resume_senior'] = $setmeal['download_resume_senior'];
$setsqlarr['interview_ordinary'] = $setmeal['interview_ordinary'];
$setsqlarr['interview_senior'] = $setmeal['interview_senior'];
$setsqlarr['talent_pool'] = $setmeal['talent_pool'];
$setsqlarr['recommend_num'] = $setmeal['recommend_num'];
$setsqlarr['recommend_days'] = $setmeal['recommend_days'];
$setsqlarr['stick_num'] = $setmeal['stick_num'];
$setsqlarr['stick_days'] = $setmeal['stick_days'];
$setsqlarr['emergency_num'] = $setmeal['emergency_num'];
$setsqlarr['emergency_days'] = $setmeal['emergency_days'];
$setsqlarr['highlight_num'] = $setmeal['highlight_num'];
$setsqlarr['highlight_days'] = $setmeal['highlight_days'];
$setsqlarr['change_templates'] = $setmeal['change_templates'];
$setsqlarr['jobsfair_num'] = $setmeal['jobsfair_num'];
$setsqlarr['map_open'] = $setmeal['map_open'];
$setsqlarr['added'] = $setmeal['added'];
$setsqlarr['refresh_jobs_space'] = $setmeal['refresh_jobs_space'];
$setsqlarr['refresh_jobs_time'] = $setmeal['refresh_jobs_time'];
$setsqlarr['set_sms'] = $setmeal['set_sms'];
if (!$db->updatetable(table('members_setmeal'), $setsqlarr, " uid=" . $uid . "")) {
//.........这里部分代码省略.........
示例9: order_paid
function order_paid($v_oid)
{
global $db, $timestamp, $_CFG;
$order = $db->getone("select * from " . table('order') . " WHERE oid ='{$v_oid}' AND is_paid= '1' LIMIT 1 ");
if ($order['pay_type'] == '1' || $order['pay_type'] == '4') {
$user = get_user($order['uid']);
$sql = "UPDATE " . table('order') . " SET is_paid= '2',payment_time='{$timestamp}' WHERE oid='{$v_oid}' LIMIT 1 ";
if (!$db->query($sql)) {
return false;
}
if ($order['amount'] == '0.00') {
$ismoney = 1;
} else {
$ismoney = 2;
}
if ($order['points'] > 0) {
report_deal($order['uid'], 1, $order['points']);
$user_points = get_user_points($order['uid']);
$notes = "操作人:{$_SESSION['admin_name']},说明:确认收款。收款金额:{$order['amount']} 。" . date('Y-m-d H:i', time()) . "通过:" . get_payment_info($order['payment_name'], true) . " 成功充值 " . $order['amount'] . "元,(+{$order['points']}),(剩余:{$user_points}),订单:{$v_oid}";
write_memberslog($order['uid'], 1, 9001, $user['username'], $notes);
//会员套餐变更记录。管理员后台设置会员订单购买成功。4表示:管理员后台开通
write_setmeallog($order['uid'], $user['username'], $notes, 4, $order['amount'], $ismoney, 1, 1);
}
if ($order['setmeal'] > 0) {
set_members_setmeal($order['uid'], $order['setmeal']);
$setmeal = get_setmeal_one($order['setmeal']);
$notes = "操作人:{$_SESSION['admin_name']},说明:确认收款,收款金额:{$order['amount']} 。" . date('Y-m-d H:i', time()) . "通过:" . get_payment_info($order['payment_name'], true) . " 成功充值 " . $order['amount'] . "元并开通{$setmeal['setmeal_name']}";
write_memberslog($order['uid'], 1, 9002, $user['username'], $notes);
//会员套餐变更记录。管理员后台设置会员订单购买成功。4表示:管理员后台开通
write_setmeallog($order['uid'], $user['username'], $notes, 4, $order['amount'], $ismoney, 2, 1);
}
} elseif ($order['pay_type'] == '2') {
$sql = "UPDATE " . table('order') . " SET is_paid= '2',payment_time='{$timestamp}' WHERE oid='{$v_oid}' LIMIT 1 ";
//is_paid =2 为确定支付
if (!$db->query($sql)) {
return false;
}
write_memberslog($_SESSION['uid'], 1, 9001, $_SESSION['username'], "申请广告位:<strong>{$order['description']}</strong>,(花费: {$order['amount']})。", 1, 1020, "申请广告位", "-{$order['amount']}", "{$user_points}");
} elseif ($order['pay_type'] == '3') {
$user = get_user($order['uid']);
$sql = "UPDATE " . table('order') . " SET is_paid= '2',payment_time='{$timestamp}' WHERE oid='{$v_oid}' LIMIT 1 ";
if (!$db->query($sql)) {
return false;
}
if ($order['setmeal'] > 0) {
//查看短信套餐
set_members_sms($order['uid'], intval($order['setmeal']));
//支付成功,向用户增加短信条数
$user_points = get_user_setmeal($order['uid']);
write_memberslog($_SESSION['uid'], 1, 9003, $_SESSION['username'], "短信充值套餐:<strong>{$order['description']}</strong>,(- {$order['amount']}),(剩余:{$user_points['set_sms']})", 1, 1020, "申请广告位", "- {$order['amount']}", "{$user_points['set_sms']}");
}
}
//发送邮件
$mailconfig = get_cache('mailconfig');
if ($mailconfig['set_payment'] == "1" && $user['email_audit'] == "1") {
dfopen($_CFG['site_domain'] . $_CFG['site_dir'] . "plus/asyn_mail.php?uid=" . $order['uid'] . "&key=" . asyn_userkey($order['uid']) . "&act=set_payment");
}
//发送邮件完毕
//sms
$sms = get_cache('sms_config');
if ($sms['open'] == "1" && $sms['set_payment'] == "1" && $user['mobile_audit'] == "1") {
dfopen($_CFG['site_domain'] . $_CFG['site_dir'] . "plus/asyn_sms.php?uid=" . $order['uid'] . "&key=" . asyn_userkey($order['uid']) . "&act=set_payment");
}
//sms
write_log("将订单号为" . $v_oid . "的订单设置为确认收款", $_SESSION['admin_name'], 3);
return true;
}
示例10: intval
} else {
$setsqlarr['endtime'] = 0;
}
if ($_POST['days'] != "") {
if (intval($_POST['days']) != 0) {
$oldendtime = intval($_POST['oldendtime']);
$setsqlarr['endtime'] = strtotime("" . intval($_POST['days']) . " days", $oldendtime == 0 ? time() : $oldendtime);
}
if (intval($_POST['days']) == "0") {
$setsqlarr['endtime'] = 0;
}
}
$setmealtime = $setsqlarr['endtime'];
$train_uid = intval($_POST['train_uid']);
if ($train_uid) {
$setmeal = get_user_setmeal($train_uid);
if (!$db->updatetable(table('members_train_setmeal'), $setsqlarr, " uid=" . $train_uid . "")) {
adminmsg('修改出错!', 0);
}
//会员套餐变更记录。管理员后台修改会员套餐:修改会员。3表示:管理员后台修改
$setmeal['endtime'] = date('Y-m-d', $setmeal['endtime']);
$setsqlarr['endtime'] = date('Y-m-d', $setsqlarr['endtime']);
$setsqlarr['log_amount'] = round($_POST['log_amount']);
$notes = edit_setmeal_notes($setsqlarr, $setmeal);
if ($notes) {
$user = get_user($_POST['train_uid']);
$ismoney = round($_POST['log_amount']) ? 2 : 1;
write_setmeallog($train_uid, $user['username'], $notes, 3, $setsqlarr['log_amount'], $ismoney, 2, 4);
}
if ($setsqlarr['endtime'] != "") {
$setmeal_deadline['setmeal_deadline'] = $setmealtime;
示例11: exit
} else {
exit("-6");
}
} elseif ($act == 'setmeal_product') {
$smarty->cache = false;
//顾问信息
$member_info = get_user_info(intval($_SESSION['uid']));
if (intval($member_info['consultant']) > 0) {
$consultant = $db->getone("SELECT * FROM " . table('consultant') . " WHERE id=" . intval($member_info['consultant']));
$smarty->assign('consultant', $consultant);
}
$smarty->display("m/company/m-setmealproduct.html");
} elseif ($act == 'setmeal_surplus') {
$smarty->cache = false;
//账户状态
$user_setmeal = get_user_setmeal(intval($_SESSION['uid']));
$smarty->assign('user_setmeal', $user_setmeal);
//剩余发布职位数 发布的招聘职位 = 发布中的 + 待审核的
$jobs = "SELECT COUNT(*) AS num FROM " . table('jobs') . " where uid='{$_SESSION['uid']}'";
$jobs_num = $db->get_total($jobs);
$jobs_tmp = "SELECT COUNT(*) AS num FROM " . table('jobs_tmp') . " where uid='{$_SESSION['uid']}' and audit=2 ";
$jobs_tmp_num = $db->get_total($jobs_tmp);
$smarty->assign('jobs_num', intval($user_setmeal['jobs_ordinary']) - (intval($jobs_num) + intval($jobs_tmp_num)));
//人才库容量
$favorites = "SELECT COUNT(*) AS num FROM " . table('company_favorites') . " where company_uid='{$_SESSION['uid']}'";
$favorites_num = $db->get_total($favorites);
$favorites_num = intval($user_setmeal['talent_pool']) - intval($favorites_num);
$smarty->assign('favorites_num', intval($favorites_num));
$smarty->display("m/company/m-setmeal-margin.html");
} elseif ($act == "company_auth") {
$company_profile = get_company($_SESSION['uid']);