示例#1
0
                write_memberslog($_SESSION['uid'], 3, 9201, $_SESSION['username'], "发布了职位:<strong>{$setsqlarr['jobs_name']}</strong>,({$operator}{$points_rule['hunter_hunterjobs_add']['value']}),(剩余:{$user_points})");
            }
            if (intval($_POST['days']) > 0 && $points_rule['hunter_hunterjobs_daily']['value'] > 0) {
                $points_day = intval($_POST['days']) * $points_rule['hunter_hunterjobs_daily']['value'];
                report_deal($_SESSION['uid'], $points_rule['hunter_hunterjobs_daily']['type'], $points_day);
                $user_points = get_user_points($_SESSION['uid']);
                $operator = $points_rule['hunter_hunterjobs_daily']['type'] == "1" ? "+" : "-";
                write_memberslog($_SESSION['uid'], 3, 9201, $_SESSION['username'], "发布普通职位:<strong>{$_POST['jobs_name']}</strong>,有效期为{$_POST['days']}天,({$operator}{$points_day}),(剩余:{$user_points})");
            }
        } elseif ($_CFG['operation_hunter_mode'] == '2') {
            action_user_setmeal($_SESSION['uid'], "jobs_add");
            $setmeal = get_user_setmeal($_SESSION['uid']);
            write_memberslog($_SESSION['uid'], 3, 9202, $_SESSION['username'], "发布职位:<strong>{$_POST['jobs_name']}</strong>,还可以发布职位:<strong>{$setmeal['jobs_add']}</strong>条");
        }
        write_memberslog($_SESSION['uid'], 3, 8502, $_SESSION['username'], "发布了职位:{$setsqlarr['jobs_name']}");
        baidu_submiturl(url_rewrite('QS_hunter_jobsshow', array('id' => $pid)), 'addhunterjob');
    }
    header("location:?act=addjobs_save_succeed");
} elseif ($act == 'addjobs_save_succeed') {
    $uid = intval($_SESSION['uid']);
    $smarty->assign('concern_id', get_concern_id($uid));
    $smarty->assign('title', '发布职位 - 企业会员中心 - ' . $_CFG['site_name']);
    $smarty->display('member_hunter/hunter_addjobs_succeed.htm');
} elseif ($act == 'jobs_perform') {
    $yid = !empty($_POST['y_id']) ? $_POST['y_id'] : $_GET['y_id'];
    $jobs_num = count($yid);
    if (empty($yid)) {
        showmsg("你没有选择职位!", 1);
    }
    $refresh = !empty($_POST['refresh']) ? $_POST['refresh'] : $_GET['refresh'];
    $delete = !empty($_POST['delete']) ? $_POST['delete'] : $_GET['delete'];
示例#2
0
    $setsqlarr['predetermined_point'] = intval($_POST['predetermined_point']);
    if ($_POST['predetermined_start'] == "") {
        $setsqlarr['predetermined_start'] = 0;
    } else {
        $setsqlarr['predetermined_start'] = intval(convert_datefm($_POST['predetermined_start'], 2));
    }
    if ($_POST['predetermined_end'] == "") {
        $setsqlarr['predetermined_end'] = 0;
    } else {
        $setsqlarr['predetermined_end'] = intval(convert_datefm($_POST['predetermined_end'], 2));
    }
    $setsqlarr['addtime'] = time();
    $insertid = $db->inserttable(table('jobfair'), $setsqlarr, 1);
    if ($insertid) {
        write_log("添加招聘会:" . $setsqlarr['title'], $_SESSION['admin_name'], 3);
        baidu_submiturl(url_rewrite('QS_jobfairshow', array('id' => $insertid)), 'addjobfair');
        $link[0]['text'] = "继续添加";
        $link[0]['href'] = '?act=jobfair_add';
        $link[1]['text'] = "返回列表";
        $link[1]['href'] = '?act=';
        adminmsg("添加成功!", 2, $link);
    } else {
        adminmsg("添加失败!", 0);
    }
} elseif ($act == 'jobfair_edit') {
    check_permissions($_SESSION['admin_purview'], "jobfair");
    $id = intval($_GET['id']);
    $sql = "select * from " . table('jobfair') . " where id=" . intval($id) . " LIMIT 1";
    $info = $db->getone($sql);
    $info['holddate_start'] = convert_datefm($info['holddate_start'], 1);
    $info['holddate_end'] = convert_datefm($info['holddate_end'], 1);
示例#3
0
    $setsqlarr['is_display'] = intval($_POST['is_display']);
    $setsqlarr['is_url'] = trim($_POST['is_url']);
    $setsqlarr['seo_keywords'] = trim($_POST['seo_keywords']);
    $setsqlarr['seo_description'] = trim($_POST['seo_description']);
    $setsqlarr['sort'] = intval($_POST['sort']);
    $setsqlarr['addtime'] = $timestamp;
    $link[0]['text'] = "继续添加";
    $link[0]['href'] = '?act=add&type_id=' . $setsqlarr['type_id'];
    $link[1]['text'] = "返回列表";
    $link[1]['href'] = '?';
    write_log("添加公告:" . $setsqlarr['title'], $_SESSION['admin_name'], 3);
    $insertid = $db->inserttable(table('notice'), $setsqlarr, 1);
    if (!$insertid) {
        adminmsg("添加失败!", 0);
    } else {
        baidu_submiturl(url_rewrite('QS_noticeshow', array('id' => $insertid)), 'addnotice');
        adminmsg("添加成功!", 2, $link);
    }
} elseif ($act == 'notice_del') {
    check_token();
    check_permissions($_SESSION['admin_purview'], "notice_del");
    $id = $_REQUEST['id'];
    if ($num = del_notice($id)) {
        write_log("删除公告,共删除" . $num . "行", $_SESSION['admin_name'], 3);
        adminmsg("删除成功!共删除" . $num . "行", 2);
    } else {
        adminmsg("删除失败!", 0);
    }
} elseif ($act == 'category') {
    get_token();
    check_permissions($_SESSION['admin_purview'], "notice_category");
示例#4
0
        showmsg("添加失败!", 0);
    } else {
        // 发布企业动态 获得积分
        $rule = get_cache('points_rule');
        if ($rule['company_news_points']['value'] > 0) {
            $info = $db->getone("SELECT uid FROM " . table('members_handsel') . " WHERE uid ='{$_SESSION['uid']}' AND htype='company_news_points' LIMIT 1");
            if (empty($info)) {
                $time = time();
                $db->query("INSERT INTO " . table('members_handsel') . " (uid,htype,addtime) VALUES ('{$_SESSION['uid']}', 'company_news_points','{$time}')");
                report_deal($_SESSION['uid'], $rule['company_news_points']['type'], $rule['company_news_points']['value']);
                $user_points = get_user_points($_SESSION['uid']);
                $operator = $rule['company_news_points']['type'] == "1" ? "+" : "-";
                write_memberslog($_SESSION['uid'], 1, 9001, $_SESSION['username'], " 发布企业动态,{$_CFG['points_byname']}({$operator}{$rule['company_news_points']['value']}),(剩余:{$user_points})", 1, 1016, "发布企业动态", "{$operator}{$rule['company_news_points']['value']}", "{$user_points}");
            }
        }
        baidu_submiturl(url_rewrite('QS_companynewsshow', array('id' => $insertid)), 'addcompanynews');
        showmsg("添加成功!", 2, $link);
    }
}
if ($act == 'company_news_edit') {
    $uid = intval($_SESSION['uid']);
    $id = intval($_GET['id']);
    $smarty->assign('news', $db->getone("select * from " . table('company_news') . " where uid='{$uid}' AND id ='{$id}' LIMIT 1"));
    $smarty->assign('title', '修改公司新闻 - 会员中心 - ' . $_CFG['site_name']);
    $smarty->display('member_company/company_news_edit.htm');
} elseif ($act == 'company_news_edit_save') {
    if ($company_profile['audit'] == "1") {
        $_CFG['audit_verifycom_editnews'] != "-1" ? $setsqlarr['audit'] = intval($_CFG['audit_verifycom_editnews']) : '';
    } else {
        $_CFG['audit_unexaminedcom_editnews'] != "-1" ? $setsqlarr['audit'] = intval($_CFG['audit_unexaminedcom_editnews']) : '';
    }
示例#5
0
 $setsqlarr_contact['telephone'] = !empty($_POST['telephone']) ? trim($_POST['telephone']) : showmsg('您没有填写联系电话!', 1);
 check_word($_CFG['filter'], $_POST['telephone']) ? showmsg($_CFG['filter_tips'], 0) : '';
 $setsqlarr_contact['address'] = !empty($_POST['address']) ? trim($_POST['address']) : showmsg('您没有填写联系地址!', 1);
 check_word($_CFG['filter'], $_POST['address']) ? showmsg($_CFG['filter_tips'], 0) : '';
 $setsqlarr_contact['email'] = !empty($_POST['email']) ? trim($_POST['email']) : showmsg('您没有填写联系邮箱!', 1);
 check_word($_CFG['filter'], $_POST['email']) ? showmsg($_CFG['filter_tips'], 0) : '';
 $setsqlarr_contact['notify'] = intval($_POST['notify']);
 $setsqlarr_contact['contact_show'] = intval($_POST['contact_show']);
 $setsqlarr_contact['email_show'] = intval($_POST['email_show']);
 $setsqlarr_contact['telephone_show'] = intval($_POST['telephone_show']);
 $setsqlarr_contact['address_show'] = intval($_POST['address_show']);
 $setsqlarr_contact['qq_show'] = intval($_POST['qq_show']);
 //添加课程信息
 $pid = $db->inserttable(table('course'), $setsqlarr, true);
 empty($pid) ? showmsg("添加失败!", 0) : '';
 baidu_submiturl(url_rewrite('QS_train_curriculumshow', array('id' => $pid)), 'addcourse');
 //添加联系方式
 $setsqlarr_contact['pid'] = $pid;
 !$db->inserttable(table('course_contact'), $setsqlarr_contact) ? showmsg("添加失败!", 0) : '';
 if ($_CFG['operation_train_mode'] == '1') {
     if ($points_rule['course_add']['value'] > 0) {
         report_deal($_SESSION['uid'], $points_rule['course_add']['type'], $points_rule['course_add']['value']);
         $user_points = get_user_points($_SESSION['uid']);
         $operator = $points_rule['course_add']['type'] == "1" ? "+" : "-";
         write_memberslog($_SESSION['uid'], 4, 9101, $_SESSION['username'], "发布了课程:<strong>{$setsqlarr['course_name']}</strong>,({$operator}{$points_rule['course_add']['value']}),(剩余:{$user_points})");
     }
     if (intval($_POST['days']) > 0 && $points_rule['course_daily']['value'] > 0) {
         $points_day = intval($_POST['days']) * $points_rule['course_daily']['value'];
         report_deal($_SESSION['uid'], $points_rule['course_daily']['type'], $points_day);
         $user_points = get_user_points($_SESSION['uid']);
         $operator = $points_rule['course_daily']['type'] == "1" ? "+" : "-";
示例#6
0
                $qid = uniqid();
                $img_path = $img_path . $qid . "." . $name[1];
                if (move_uploaded_file($_FILES['image']['tmp_name'][$key], $img_path)) {
                    $imgarr = array();
                    $imgarr['img'] = date("Y/m/d/") . $qid . "." . $name[1];
                    $imgarr['addtime'] = $timestamp;
                    $imgarr['campus_id'] = $ad_id;
                    $db->inserttable(table('cooperate_campus_img'), $imgarr);
                }
            }
        } else {
            adminmsg('请上传风采图片!', 1);
        }
        //填写管理员日志
        write_log("后台成功添加合作院校", $_SESSION['admin_name'], 3);
        baidu_submiturl(url_rewrite('QS_campusshow', array('id' => $ad_id)), 'addcampus');
        adminmsg("添加成功!", 2, $link);
    }
} elseif ($act == 'del_img') {
    $id = !empty($_GET['id']) ? intval($_GET['id']) : adminmsg("风采图片id丢失!", 0);
    $campus_id = !empty($_GET['c_id']) ? intval($_GET['c_id']) : adminmsg("院校id丢失!", 0);
    $link[0]['text'] = "继续删除";
    $link[0]['href'] = "?act=edit_campus&id={$campus_id}";
    $link[1]['text'] = "返回院校列表";
    $link[1]['href'] = "?act=campus_list";
    if (del_campus_img($id, $campus_id)) {
        adminmsg("删除成功!", 2, $link);
    } else {
        adminmsg("删除失败!", 0, $link);
    }
} elseif ($act == 'edit_campus') {
示例#7
0
        $_CFG['audit_edit_hunter'] != "-1" ? $setsqlarr['audit'] = intval($_CFG['audit_edit_hunter']) : '';
        if ($db->updatetable(table('hunter_profile'), $setsqlarr, " uid='{$uid}'")) {
            unset($setsqlarr);
            write_memberslog($_SESSION['uid'], $_SESSION['utype'], 8501, $_SESSION['username'], "修改猎头资料");
            showmsg("保存成功!", 2, $link);
        } else {
            showmsg("保存失败!", 0);
        }
    } else {
        $setsqlarr['audit'] = intval($_CFG['audit_add_hunter']);
        $setsqlarr['addtime'] = $timestamp;
        $setsqlarr['refreshtime'] = $timestamp;
        $insertid = $db->inserttable(table('hunter_profile'), $setsqlarr, 1);
        if ($insertid) {
            write_memberslog($_SESSION['uid'], $_SESSION['utype'], 8500, $_SESSION['username'], "完善猎头资料");
            baidu_submiturl(url_rewrite('QS_hunter_show', array('id' => $insertid)), 'addhunter');
            showmsg("保存成功!", 2, $link);
        } else {
            showmsg("保存失败!", 0);
        }
    }
} elseif ($act == 'photo') {
    if (empty($hunter_profile)) {
        showmsg('请先完善猎头基本资料!', 0);
    }
    $smarty->assign('title', '照片认证 - 猎头会员中心 - ' . $_CFG['site_name']);
    $smarty->assign('points', get_cache('points_rule'));
    $smarty->assign('hunter_profile', $hunter_profile);
    $smarty->display('member_hunter/hunter_photo.htm');
} elseif ($act == 'photo_save') {
    require_once QISHI_ROOT_PATH . 'include/upload.php';
示例#8
0
    $setsqlarr['is_url'] = trim($_POST['is_url']);
    $setsqlarr['seo_keywords'] = trim($_POST['seo_keywords']);
    $setsqlarr['seo_description'] = trim($_POST['seo_description']);
    $setsqlarr['show_order'] = intval($_POST['show_order']);
    $setsqlarr['subsite_id'] = intval($_POST['subsite_id']);
    $setsqlarr['addtime'] = $timestamp;
    $link[0]['text'] = "继续添加说明页";
    $link[0]['href'] = '?act=add&type_id=' . $setsqlarr['type_id'];
    $link[1]['text'] = "返回说明页列表";
    $link[1]['href'] = '?';
    write_log("添加说明页:" . $setsqlarr['title'], $_SESSION['admin_name'], 3);
    $insertid = $db->inserttable(table('explain'), $setsqlarr, 1);
    if (!$insertid) {
        adminmsg("添加失败!", 0);
    } else {
        baidu_submiturl(url_rewrite('QS_explainshow', array('id' => $insertid)), 'addexplain');
        adminmsg("添加成功!", 2, $link);
    }
} elseif ($act == 'explain_del') {
    check_token();
    check_permissions($_SESSION['admin_purview'], "explain_del");
    $id = $_REQUEST['id'];
    if ($num = del_explain($id)) {
        adminmsg("删除成功!共删除" . $num . "行", 2);
    } else {
        adminmsg("删除失败!", 0);
    }
} elseif ($act == 'category') {
    get_token();
    check_permissions($_SESSION['admin_purview'], "explain_category");
    $smarty->assign('get_explain_category', get_explain_category());
示例#9
0
        makethumb($makefile, $thumb_dir . date("Y/m/d/"), $thumbwidth, $thumbheight);
        $setsqlarr['Small_img'] = date("Y/m/d/") . $Small_img;
    }
    $setsqlarr['addtime'] = $timestamp;
    $setsqlarr['parentid'] = get_article_parentid($setsqlarr['type_id']);
    $setsqlarr['subsite_id'] = intval($_POST['subsite_id']);
    $link[0]['text'] = "继续添加文章";
    $link[0]['href'] = '?act=news_add&type_id_cn=' . trim($_POST['type_id_cn']) . "&type_id=" . $_POST['type_id'];
    $link[1]['text'] = "返回文章列表";
    $link[1]['href'] = '?act=newslist';
    write_log("添加文章:" . $setsqlarr['title'], $_SESSION['admin_name'], 3);
    $insertid = $db->inserttable(table('article'), $setsqlarr, 1);
    if (!$insertid) {
        adminmsg("添加失败!", 0);
    } else {
        baidu_submiturl(url_rewrite('QS_newsshow', array('id' => $insertid)), 'addarticle');
        adminmsg("添加成功!", 2, $link);
    }
} elseif ($act == 'article_edit') {
    check_permissions($_SESSION['admin_purview'], "article_edit");
    $id = intval($_GET['id']);
    $sql = "select * from " . table('article') . " where id=" . intval($id) . " LIMIT 1";
    $edit_article = $db->getone($sql);
    $smarty->assign('edit_article', $edit_article);
    $smarty->assign('upfiles_dir', $upfiles_dir);
    $smarty->assign('thumb_dir', $thumb_dir);
    $smarty->assign('article_category', get_article_category());
    $smarty->assign('subsite', get_subsite_list(intval($_CFG['subsite_id'])));
    $smarty->assign('pageheader', "新闻资讯");
    get_token();
    $smarty->display('article/admin_article_edit.htm');
示例#10
0
            if (!$db->updatetable(table('train_teachers'), $coursearr, " uid=" . $setsqlarr['uid'] . "")) {
                showmsg('修改培训机构名称出错!', 0);
            }
            write_memberslog($_SESSION['uid'], $_SESSION['utype'], 8101, $_SESSION['username'], "修改培训机构资料");
            showmsg("保存成功!", 2, $link);
        } else {
            showmsg("保存失败!", 0);
        }
    } else {
        $setsqlarr['audit'] = intval($_CFG['audit_add_train']);
        $setsqlarr['addtime'] = $timestamp;
        $setsqlarr['refreshtime'] = $timestamp;
        $insertid = $db->inserttable(table('train_profile'), $setsqlarr, 1);
        if ($insertid) {
            write_memberslog($_SESSION['uid'], $_SESSION['utype'], 8100, $_SESSION['username'], "完善培训机构资料");
            baidu_submiturl(url_rewrite('QS_train_agencyshow', array('id' => $insertid)), 'addagency');
            showmsg("保存成功!", 2, $link);
        } else {
            showmsg("保存失败!", 0);
        }
    }
} elseif ($act == 'train_auth') {
    $link[0]['text'] = "完善机构资料";
    $link[0]['href'] = '?act=train_profile';
    $link[1]['text'] = "管理首页";
    $link[1]['href'] = 'train_index.php';
    if (empty($train_profile['trainname'])) {
        showmsg("请完善您的机构资料再上传营业执照!", 1, $link);
    }
    $smarty->assign('title', '营业执照 - 培训机构会员中心 - ' . $_CFG['site_name']);
    $smarty->assign('points', get_cache('points_rule'));
示例#11
0
            $infoarr['realname'] = $setsqlarr['fullname'];
            $infoarr['sex'] = $setsqlarr['sex'];
            $infoarr['sex_cn'] = $setsqlarr['sex_cn'];
            $infoarr['birthday'] = $setsqlarr['birthdate'];
            $infoarr['residence'] = $setsqlarr['residence'];
            $infoarr['residence'] = $setsqlarr['residence'];
            $infoarr['education'] = $setsqlarr['education'];
            $infoarr['education_cn'] = $setsqlarr['education_cn'];
            $infoarr['experience'] = $setsqlarr['experience'];
            $infoarr['experience_cn'] = $setsqlarr['experience_cn'];
            $infoarr['phone'] = $setsqlarr['telephone'];
            $infoarr['email'] = $setsqlarr['email'];
            $infoarr['uid'] = intval($_SESSION['uid']);
            $db->inserttable(table('members_info'), $infoarr);
        }
        baidu_submiturl(url_rewrite('QS_resumeshow', array('id' => $pid)), 'addresume');
        echo $pid;
        // header("Location: ?act=resume_success&pid=".$pid);
    }
} elseif ($act == "resume_success") {
    $smarty->cache = false;
    $id = intval($_GET['pid']);
    $sql = "select j.* from " . table("jobs") . " as j left join " . table("resume_jobs") . " as r on r.category=j.category where r.pid={$id} limit 5";
    $resume_jobs = $db->getall($sql);
    $smarty->assign('resume_jobs', $resume_jobs);
    $smarty->display('wap/personal/wap-create-resume-success.html');
} elseif ($act == "resume_list") {
    $smarty->cache = false;
    $wheresql = " WHERE uid='" . intval($_SESSION['uid']) . "' ";
    $sql = "SELECT * FROM " . table('resume') . $wheresql;
    $resume_list = get_resume_list($sql, 12, true, true, true);
示例#12
0
     } elseif ($_CFG['operation_train_mode'] == '2') {
         action_user_setmeal($_SESSION['uid'], 'teachers_num');
         $setmeal = get_user_setmeal($_SESSION['uid']);
         write_memberslog($_SESSION['uid'], 4, 9102, $_SESSION['username'], "添加讲师:<strong>{$_POST['teachername']}</strong>,还可以添加讲师:<strong>{$setmeal['teachers_num']}</strong>位");
     }
 }
 if (intval($_REQUEST['pid']) === 0) {
     if ($train_profile['audit'] == "1") {
         $setsqlarr['audit'] = intval($_CFG['audit_verifytrain_addtea']);
     } else {
         $setsqlarr['audit'] = intval($_CFG['audit_unexaminedtrain_addtea']);
     }
     $setsqlarr['addtime'] = $timestamp;
     $pid = $db->inserttable(table('train_teachers'), $setsqlarr, 1);
     write_memberslog($_SESSION['uid'], 4, 8107, $_SESSION['username'], "添加了讲师:{$setsqlarr['teachername']}");
     baidu_submiturl(url_rewrite('QS_train_lecturershow', array('id' => $pid)), 'addteacher');
     header("Location: train_teacher.php?act=teachers");
 } else {
     if ($train_profile['audit'] == "1") {
         if (intval($_CFG['audit_verifytrain_edittea']) != "-1") {
             $setsqlarr['audit'] = intval($_CFG['audit_verifytrain_edittea']);
         }
     } else {
         if (intval($_CFG['audit_verifytrain_edittea']) != "-1") {
             $setsqlarr['audit'] = intval($_CFG['audit_unexaminedtrain_edittea']);
         }
     }
     $db->updatetable(table('train_teachers'), $setsqlarr, " id='" . intval($_REQUEST['pid']) . "'  AND uid='{$setsqlarr['uid']}'");
     $teaarr['teacher_cn'] = $setsqlarr['teachername'];
     $db->updatetable(table('course'), $teaarr, " teacher_id='" . intval($_REQUEST['pid']) . "'  AND uid='{$setsqlarr['uid']}'");
     write_memberslog($_SESSION['uid'], 4, 8108, $_SESSION['username'], "修改了讲师:{$setsqlarr['teachername']}的信息");