예제 #1
0
         write_memberslog($_SESSION['uid'], 1, 9002, $_SESSION['username'], "下载了 {$ruser['username']} 发布的高级简历,还可以下载 {$setmeal['download_resume_senior']} 份高级简历", 2, 1005, "下载高级简历", "1", "{$setmeal['download_resume_senior']}");
         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");
     }
 }
예제 #2
0
                } else {
                    exit("您累计参加的招聘会已经超过了最大限制,请升级服务套餐!");
                }
            }
        }
        $company_profile = get_company($_SESSION['uid']);
        $setsqlarr['jobfairid'] = $id;
        $setsqlarr['uid'] = intval($_SESSION['uid']);
        $setsqlarr['etypr'] = 1;
        $setsqlarr['eaddtime'] = $timestamp;
        $setsqlarr['companyname'] = $company_profile['companyname'];
        $setsqlarr['company_id'] = $company_profile['id'];
        $setsqlarr['company_addtime'] = $company_profile['addtime'];
        $setsqlarr['jobfair_title'] = $jobfair['title'];
        $setsqlarr['jobfair_addtime'] = $jobfair['addtime'];
        $setsqlarr['note'] = "{$_SESSION['username']} 预定了招聘会 《{$jobfair['title']}》 的展位,已成功扣除积分 {$jobfair['predetermined_point']}";
        if ($db->inserttable(table('jobfair_exhibitors'), $setsqlarr)) {
            if ($jobfair['predetermined_point'] > 0 && $_CFG['operation_mode'] == '1') {
                report_deal($_SESSION['uid'], 2, $jobfair['predetermined_point']);
                $user_points = get_user_points($_SESSION['uid']);
                write_memberslog($_SESSION['uid'], 1, 9001, $_SESSION['username'], "预定了招聘会 《{$jobfair['title']}》 的展位,(-{$jobfair['predetermined_point']}),(剩余:{$user_points})", 1, 1019, "预定招聘会展位", "-{$jobfair['predetermined_point']}", "{$user_points}");
            } elseif ($_CFG['operation_mode'] == '2') {
                action_user_setmeal($_SESSION['uid'], 'jobsfair_num');
                $jobsfair_num = $setmeal['jobsfair_num'] - 1;
                write_memberslog($_SESSION['uid'], 1, 9002, $_SESSION['username'], "预定了招聘会 《{$jobfair['title']}》 的展位,剩余参加招聘会{$jobsfair_num}场次", 2, 1019, "预定招聘会展位", "1", "{$jobsfair_num}");
            }
            write_memberslog($_SESSION['uid'], 1, 1401, $_SESSION['username'], "预定了招聘会 《{$jobfair['title']}》 的展位");
            exit("预定成功!");
        }
    }
}
예제 #3
0
파일: hunter_jobs.php 프로젝트: winiceo/job
        if ($_CFG['operation_hunter_mode'] == '1') {
            if ($points_rule['hunter_hunterjobs_add']['value'] > 0) {
                report_deal($_SESSION['uid'], $points_rule['hunter_hunterjobs_add']['type'], $points_rule['hunter_hunterjobs_add']['value']);
                $user_points = get_user_points($_SESSION['uid']);
                $operator = $points_rule['hunter_hunterjobs_add']['type'] == "1" ? "+" : "-";
                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);
예제 #4
0
     $setsqlarr['cp_endtime'] = strtotime("{$days} day");
     $setsqlarr['cp_val'] = $_GET['val'];
     $setsqlarr['cp_hour_cn'] = trim($_GET['hour']);
     $setsqlarr['cp_hour'] = intval($_GET['hour']);
     if ($setsqlarr['cp_promotionid'] == "4" && empty($setsqlarr['cp_val'])) {
         showmsg("请选择颜色!", 1);
     }
     if (inserttable(table('promotion'), $setsqlarr)) {
         set_job_promotion($jobsid, $setsqlarr['cp_promotionid'], $_GET['val']);
         if ($_CFG['operation_mode'] == '1' && $pro_cat['cat_points'] > 0) {
             report_deal($_SESSION['uid'], 2, $points);
             $user_points = get_user_points($_SESSION['uid']);
             write_memberslog($_SESSION['uid'], 1, 9001, $_SESSION['username'], "{$pro_cat['cat_name']}:<strong>{$jobs['jobs_name']}</strong>,推广 {$days} 天,(-{$points}),(剩余:{$user_points})");
         } elseif ($_CFG['operation_mode'] == '2') {
             $user_pname = trim($_GET['pro_name']);
             action_user_setmeal($_SESSION['uid'], $user_pname);
             //更新套餐中相应推广方式的条数
             $setmeal = get_user_setmeal($_SESSION['uid']);
             //获取会员套餐
             write_memberslog($_SESSION['uid'], 1, 9002, $_SESSION['username'], "{$pro_cat['cat_name']}:<strong>{$jobs['jobs_name']}</strong>,推广 {$days} 天,套餐内剩余{$pro_cat['cat_name']}条数:{$setmeal[$user_pname]}条。");
             //9002是套餐操作
         }
         write_memberslog($_SESSION['uid'], 1, 3004, $_SESSION['username'], "{$pro_cat['cat_name']}:<strong>{$jobs['jobs_name']}</strong>,推广 {$days} 天。");
         if ($_GET['golist']) {
             exit("1");
             // showmsg("推广成功!",2,$link);
         } else {
             exit("1");
         }
     }
 } else {
예제 #5
0
     //判断套餐是否允许邀请
     $setmeal = get_user_setmeal($_SESSION['uid']);
     if ($resume['talent'] == '2') {
         if (intval($setmeal['interview_senior']) > 0) {
             $db->inserttable(table('company_interview'), $addarr);
             action_user_setmeal($_SESSION['uid'], "interview_senior");
             $setmeal = get_user_setmeal($_SESSION['uid']);
             write_memberslog($_SESSION['uid'], 1, 9002, $_SESSION['username'], "邀请了 {$resume_user['username']} 面试,还可以邀请高级人才 {$setmeal['interview_senior']} 次", 2, 1007, "邀请高级人才面试", "1", "{$setmeal['interview_senior']}");
             write_memberslog($_SESSION['uid'], 1, 6001, $_SESSION['username'], "邀请了 {$resume_user['username']} 面试");
         } else {
             exit("您的套餐超出服务条数,不能进行邀请面试!");
         }
     } else {
         if (intval($setmeal['interview_ordinary']) > 0) {
             $db->inserttable(table('company_interview'), $addarr);
             action_user_setmeal($_SESSION['uid'], "interview_ordinary");
             $setmeal = get_user_setmeal($_SESSION['uid']);
             write_memberslog($_SESSION['uid'], 1, 9002, $_SESSION['username'], "邀请了 {$resume_user['username']} 面试,还可以邀请普通人才 {$setmeal['interview_ordinary']} 次", 2, 1006, "邀请普通人才面试", "1", "{$setmeal['interview_ordinary']}");
             write_memberslog($_SESSION['uid'], 1, 6001, $_SESSION['username'], "邀请了 {$resume_user['username']} 面试");
         } else {
             exit("您的套餐超出服务条数,不能进行邀请面试!");
         }
     }
 } elseif ($_CFG['operation_mode'] == "1") {
     $mypoints = get_user_points($_SESSION['uid']);
     $points_rule = get_cache('points_rule');
     $points = $resume['talent'] == '2' ? $points_rule['interview_invite_advanced']['value'] : $points_rule['interview_invite']['value'];
     $ptype = $resumeshow['talent'] == '2' ? $points_rule['interview_invite_advanced']['type'] : $points_rule['interview_invite']['type'];
     if ($mypoints < $points) {
         exit("您的积分不足,不能进行邀请面试!");
     }
예제 #6
0
        $setsqlarr['cp_days'] = $days;
        $setsqlarr['cp_starttime'] = time();
        $setsqlarr['cp_endtime'] = strtotime("{$days} day");
        $setsqlarr['cp_val'] = $val_code;
        if ($setsqlarr['cp_promotionid'] == "4" && empty($setsqlarr['cp_val'])) {
            exit("请选择颜色!");
        }
        if ($db->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} 天。");
            exit('推广成功!');
        }
    } else {
        exit("推广失败!");
    }
} elseif ($act == "reward_add_save") {
    //悬赏招聘添加
    $_POST = $_GET;
예제 #7
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" ? "+" : "-";
                write_memberslog($_SESSION['uid'], 4, 9101, $_SESSION['username'], "发布普通课程:<strong>{$_POST['course_name']}</strong>,有效期为{$_POST['days']}天,({$operator}{$points_day}),(剩余:{$user_points})");
            }
        } elseif ($_CFG['operation_train_mode'] == '2') {
            action_user_setmeal($_SESSION['uid'], "course_num");
            $setmeal = get_user_setmeal($_SESSION['uid']);
            write_memberslog($_SESSION['uid'], 4, 9102, $_SESSION['username'], "发布普通课程:<strong>{$_POST['course_name']}</strong>,还可以发布普通课程:<strong>{$setmeal['course_num']}</strong>条");
        }
    }
    $link[0]['text'] = '继续添加课程';
    $link[0]['href'] = 'train_course.php?act=addcourse';
    $link[1]['text'] = "会员中心首页";
    $link[1]['href'] = 'train_index.php?act=';
    showmsg("发布成功!", 2, $link);
} elseif ($act == 'course_perform') {
    $yid = !empty($_POST['y_id']) ? $_POST['y_id'] : $_GET['y_id'];
    $course_num = count($yid);
    if (empty($yid)) {
        showmsg("你没有选择课程!", 1);
    }
예제 #8
0
         $ptype = $points_rule['interview_invite']['type'];
         //减积分
         if (intval($ptype) == 2 && $mypoints < $points) {
             exit("您邀请面试次数已经超出限制 , 并且积分不足 !");
         }
         $is_points = '1';
     } else {
         exit("你邀请高级人才面试次数已经超出了限制。");
     }
 }
 //写日志以及插数据库
 $db->inserttable(table('company_interview'), $addarr);
 //$is_points为空 : 说明用套餐操作的   不为空 :  说明是用积分操作的
 if (empty($is_points)) {
     $resume_talent = $resume['talent_'] == '1' ? 'interview_ordinary' : 'interview_senior';
     action_user_setmeal($_SESSION['uid'], $resume_talent);
     $setmeal = get_user_setmeal($_SESSION['uid']);
     $messgae = $resume['talent_'] == '1' ? "邀请了 {$resume_user['username']} 面试,还可以邀请普通人才 {$setmeal['interview_ordinary']} 次" : "邀请了 {$resume_user['username']} 面试,还可以邀请高级人才 {$setmeal['interview_senior']} 次";
     $message_type = $resume['talent_'] == '1' ? "邀请普通人才面试" : "邀请高级人才面试";
     write_memberslog($_SESSION['uid'], 1, 9002, $_SESSION['username'], $messgae, 2, 1007, $message_type, "1", "{$setmeal['interview_senior']}");
     write_memberslog($_SESSION['uid'], 1, 6001, $_SESSION['username'], "邀请了 {$resume_user['username']} 面试");
 } else {
     if ($points > 0) {
         report_deal($_SESSION['uid'], $ptype, $points);
         $user_points = get_user_points($_SESSION['uid']);
         $operator = $ptype == "1" ? "+" : "-";
         if ($resume['talent_'] == '2') {
             write_memberslog($_SESSION['uid'], 1, 9001, $_SESSION['username'], "邀请 {$resume_user['username']} 面试({$operator}{$points}),(剩余:{$user_points})", 1, 1007, "邀请高级人才面试", "{$operator}{$points}", "{$user_points}");
         } else {
             write_memberslog($_SESSION['uid'], 1, 9001, $_SESSION['username'], "邀请 {$resume_user['username']} 面试({$operator}{$points}),(剩余:{$user_points})", 1, 1006, "邀请普通人才面试", "{$operator}{$points}", "{$user_points}");
         }
예제 #9
0
 if ($add_mode == '1') {
     if ($points_rule['jobs_add']['value'] > 0) {
         report_deal($_SESSION['uid'], $points_rule['jobs_add']['type'], $points_rule['jobs_add']['value']);
         $user_points = get_user_points($_SESSION['uid']);
         $operator = $points_rule['jobs_add']['type'] == "1" ? "+" : "-";
         write_memberslog($_SESSION['uid'], 1, 9001, $_SESSION['username'], "发布了职位:<strong>{$setsqlarr['jobs_name']}</strong>,({$operator}{$points_rule['jobs_add']['value']}),(剩余:{$user_points})", 1, 1001, "发布职位", "{$operator}{$points_rule['jobs_add']['value']}", "{$user_points}");
     }
     if (intval($_POST['days']) > 0 && $points_rule['jobs_daily']['value'] > 0) {
         $points_day = intval($_POST['days']) * $points_rule['jobs_daily']['value'];
         report_deal($_SESSION['uid'], $points_rule['jobs_daily']['type'], $points_day);
         $user_points = get_user_points($_SESSION['uid']);
         $operator = $points_rule['jobs_daily']['type'] == "1" ? "+" : "-";
         write_memberslog($_SESSION['uid'], 1, 9001, $_SESSION['username'], "发布职位:<strong>{$_POST['jobs_name']}</strong>,有效期为{$_POST['days']}天,({$operator}{$points_day}),(剩余:{$user_points})", 1, 1001, "发布职位", "{$operator}{$points_day}", "{$user_points}");
     }
 } elseif ($add_mode == '2') {
     action_user_setmeal($_SESSION['uid'], "jobs_ordinary");
     $setmeal = get_user_setmeal($_SESSION['uid']);
     write_memberslog($_SESSION['uid'], 1, 9002, $_SESSION['username'], "发布普通职位:<strong>{$_POST['jobs_name']}</strong>,还可以发布普通职位:<strong>{$setmeal['jobs_ordinary']}</strong>条", 2, 1001, "发布职位", "1", "{$setmeal['jobs_ordinary']}");
 }
 $searchtab['id'] = $pid;
 $searchtab['uid'] = $setsqlarr['uid'];
 $searchtab['subsite_id'] = $setsqlarr['subsite_id'];
 $searchtab['recommend'] = $setsqlarr['recommend'];
 $searchtab['emergency'] = $setsqlarr['emergency'];
 $searchtab['nature'] = $setsqlarr['nature'];
 $searchtab['sex'] = $setsqlarr['sex'];
 $searchtab['topclass'] = $setsqlarr['topclass'];
 $searchtab['category'] = $setsqlarr['category'];
 $searchtab['subclass'] = $setsqlarr['subclass'];
 $searchtab['trade'] = $setsqlarr['trade'];
 $searchtab['district'] = $setsqlarr['district'];
예제 #10
0
        $setsqlarr['cp_jobid'] = $jobid;
        $setsqlarr['cp_days'] = $day;
        $setsqlarr['cp_starttime'] = time();
        $setsqlarr['cp_endtime'] = strtotime("{$day} day");
        $color = get_color();
        $val_code = $color[0]['value'];
        $setsqlarr['cp_val'] = $val_code;
        if ($db->inserttable(table('promotion'), $setsqlarr)) {
            set_job_promotion($jobid, $setsqlarr['cp_promotionid'], $val_code);
            if ($typeid == 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>,推广 {$day} 天,(-{$points}),(剩余:{$user_points})", 1, 1018, "{$pro_cat['cat_name']}", "-{$points}", "{$user_points}");
            } elseif ($typeid == 2) {
                $user_pname = trim($_POST['pro_name']);
                action_user_setmeal($uid, $setmeal['name']);
                //更新套餐中相应推广方式的条数
                $setmeal = get_user_setmeal($uid);
                //获取会员套餐
                write_memberslog($uid, 1, 9002, $_SESSION['username'], "{$pro_cat['cat_name']}:<strong>{$jobs['jobs_name']}</strong>,推广 {$day} 天,套餐内剩余{$pro_cat['cat_name']}条数:{$setmeal[$user_pname]}条。", 2, 1018, "{$pro_cat['cat_name']}", "-{$day}", "{$setmeal[$user_pname]}");
                //9002是套餐操作
            }
            write_memberslog($uid, 1, 3004, $_SESSION['username'], "{$pro_cat['cat_name']}:<strong>{$jobs['jobs_name']}</strong>,推广 {$day} 天。");
            exit('ok');
        } else {
            exit("推广失败!");
        }
    } else {
        exit("职位或者推广天数参数错误!");
    }
}
예제 #11
0
    <td align="center" height="60"><img src="<?php 
    echo $_CFG['site_template'];
    ?>
images/30.gif"  border="0"/></td>
  </tr>
  <tr>
    <td align="center" >请稍后...</td>
  </tr>
</table>
<div id="download_ok"></div>
<?php 
} elseif ($act == "download_save") {
    $ruser = get_user_info($applyshow['personal_uid']);
    if ($_CFG['operation_train_mode'] == '2') {
        if ($setmeal['down_apply'] > 0 && add_down_apply($id, $_SESSION['uid'])) {
            action_user_setmeal($_SESSION['uid'], "down_apply");
            $setmeal = get_user_setmeal($_SESSION['uid']);
            write_memberslog($_SESSION['uid'], 4, 9102, $_SESSION['username'], "查看了 {$ruser['username']} 的课程申请联系方式,还可以查看 {$setmeal['down_apply']} 个课程申请的联系方式");
            write_memberslog($_SESSION['uid'], 4, 8206, $_SESSION['username'], "查看了 {$ruser['username']} 的课程申请联系方式");
            $mailconfig = get_cache('mailconfig');
            $sms = get_cache('sms_config');
            $personuser = get_user_info($applyshow['personal_uid']);
            if ($mailconfig['set_downapp'] == '1' && $personuser['email_audit'] == '1') {
                dfopen("{$_CFG['site_domain']}{$_CFG['site_dir']}plus/asyn_mail.php?uid={$_SESSION['uid']}&key=" . asyn_userkey($_SESSION['uid']) . "&act=set_downapp&coursename={$applyshow['course_name']}&trainname={$applyshow['train_name']}&email={$personuser['email']}");
            }
            //sms
            if ($sms['open'] == '1' && $sms['set_downapp'] == '1' && $personuser['mobile_audit'] == "1") {
                dfopen("{$_CFG['site_domain']}{$_CFG['site_dir']}plus/asyn_sms.php?uid={$_SESSION['uid']}&key=" . asyn_userkey($_SESSION['uid']) . "&act=set_downapp&coursename={$applyshow['course_name']}&trainname={$applyshow['train_name']}&mobile={$personuser['mobile']}");
            }
            exit("ok");
        }
예제 #12
0
     make_dir($photo_dir);
     $setsqlarr['photo_img'] = _asUpFiles($photo_dir, "photo", '1000', 'gif/jpg/bmp/png', true);
     $setsqlarr['photo_img'] = date("Y/m/d/") . $setsqlarr['photo_img'];
     $setsqlarr['photo'] = 1;
 }
 //套餐或积分操作
 if (intval($_REQUEST['pid']) === 0) {
     if ($_CFG['operation_train_mode'] == '1') {
         if ($points_rule['teacher_add']['value'] > 0) {
             report_deal($_SESSION['uid'], $points_rule['teacher_add']['type'], $points_rule['teacher_add']['value']);
             $user_points = get_user_points($_SESSION['uid']);
             $operator = $points_rule['teacher_add']['type'] == "1" ? "+" : "-";
             write_memberslog($_SESSION['uid'], 4, 9101, $_SESSION['username'], "添加讲师:<strong>{$setsqlarr['teachername']}</strong>,({$operator}{$points_rule['teacher_add']['value']}),(剩余:{$user_points})");
         }
     } 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");