</table>'); } if ($act == "report") { $id = isset($_GET['jobs_id']) ? $_GET['jobs_id'] : exit("id 丢失"); $jobs = app_get_jobs($id); if (empty($jobs)) { exit('<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tableall"> <tr> <td width="20" align="right"></td> <td> 举报信息失败! </td> </tr> </table>'); } if (check_jobs_report($_SESSION['uid'], intval($_GET['jobs_id']))) { exit('<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tableall"> <tr> <td width="20" align="right"></td> <td> 您已经举报过此职位! </td> </tr> </table>'); } ?> <script type="text/javascript"> $(".but80").hover(function(){$(this).addClass("but80_hover")},function(){$(this).removeClass("but80_hover")}); //计算今天申请数量 //验证
* ============================================================================ * 版权所有: 骑士网络,并保留所有权利。 * 网站地址: http://www.74cms.com; * ---------------------------------------------------------------------------- * 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和 * 使用;不允许对程序代码以任何形式任何目的的再发布。 * ============================================================================ */ define('IN_QISHI', true); require_once dirname(__FILE__) . '/personal_common.php'; $smarty->assign('leftmenu', "index"); if ($act == 'report') { $smarty->assign('title', '举报信息 - 个人会员中心 - ' . $_CFG['site_name']); $smarty->assign('url', $_SERVER['HTTP_REFERER']); $smarty->display('member_personal/personal_report.htm'); } elseif ($act == 'report_save') { $link[0]['text'] = "返回上一页!"; $link[0]['href'] = $_POST['url']; if (check_jobs_report($_SESSION['uid'], $_POST['jobs_id'])) { showmsg("您已经举报过此职位!", 1, $link); } $setsqlarr['content'] = trim($_POST['content']) ? trim($_POST['content']) : showmsg('请输入相关描述!', 1); $setsqlarr['jobs_id'] = $_POST['jobs_id'] ? intval($_POST['jobs_id']) : showmsg('没有职位ID', 1); $setsqlarr['jobs_name'] = trim($_POST['jobs_name']) ? trim($_POST['jobs_name']) : showmsg('没有职位名称', 1); $setsqlarr['jobs_addtime'] = intval($_POST['jobs_addtime']); $setsqlarr['uid'] = $_SESSION['uid']; $setsqlarr['addtime'] = time(); write_memberslog($_SESSION['uid'], 2, 7003, $_SESSION['username'], "举报职位({$_POST['jobs_id']})"); !inserttable(table('report'), $setsqlarr) ? showmsg("举报失败!", 0, $link) : showmsg("举报成功,管理员会认真处理!", 2, $link); } unset($smarty);