<?php //引入静态常量 require_once '../../../util/StackConst.php'; //引入CategoryDao require_once '../dao/CategoryDao.php'; //实例化dao $categoryDao = new CategoryDao(); //获取招聘类别集合 $arrCagegorys = $categoryDao->getCategoryList(); //引入招聘信息 require_once '../dao/RecruitmentDao.php'; //实例化招聘dao $recruitmentDao = new RecruitmentDao(); //获取招聘信息对象数组 $arrRecruitments = $recruitmentDao->getRecruitmentList(); //获得招聘信息id $in_id = @$_GET['in_id']; //根据招聘id获得招聘内容详情 $arrRecruitmentDetail = $recruitmentDao->getRecruitmentById($in_id); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script language="javascript" type="text/javascript" src="../../zjs/jquery-1.8.3.js"></script> <title>招聘信息修改</title> <script type="text/javascript"> function hhfwz(){ var descrip = $("#in_content").val(); descrip=descrip.replace(/\r\n|\n/g,'<br/>');
<?php //引入静态常量 require_once '../../../util/StackConst.php'; //引入招聘DAO require_once '../dao/RecruitmentDao.php'; //实例化招聘dao $recruitmentDao = new RecruitmentDao(); //获取招聘信息对象数组 $arrRecruitments = $recruitmentDao->getRecruitmentList(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>服务支持|技术解答</title> </head> <body> <table border="1" width="100%"> <tr> <th width="50px;">序号</th> <th width="100px;">招聘类别</th> <th>招聘信息</th> <th width="200px;" colspan="2">操作</th> </tr> <?php $XH = 1; foreach ($arrRecruitments as $recruitment) { ?> <tr>
} else { echo "招聘信息保存失败!"; } } else { if ("deleteRec" == $type) { //引入招聘操作DAO类 require_once '../dao/RecruitmentDao.php'; //实例化招聘类 $recruitmentDao = new RecruitmentDao(); if ($recruitmentDao->deleteRecruitmentById(@$_GET['in_id'])) { echo "招聘信息保存成功!"; StackConst::jump_page("../view/inrea1recruitmentlist.php"); } else { echo "招聘信息保存失败!"; } } else { if ("updateRec" == $type) { //引入招聘操作DAO类 require_once '../dao/RecruitmentDao.php'; //实例化招聘类 $recruitmentDao = new RecruitmentDao(); $arrRecruitmentInfo = array("in_id" => @$_POST['in_id'], "fk_in_category" => @$_POST['fk_in_category'], "in_content" => @$_POST['in_content']); if ($recruitmentDao->updateRecruitmentById($arrRecruitmentInfo)) { echo "招聘信息修改成功!"; StackConst::jump_page("../view/inrea1recruitmentlist.php"); } else { echo "招聘信息修改失败!"; } } } }
<?php //引入操作类 require_once 'dao/RecruitmentDao.php'; $recType = @$_GET['recType'] == "" ? "销售类" : @$_GET['recType']; //实例化dao $recruitmentDao = new RecruitmentDao(); //获取招聘信息对象集合 $arrRecruitments = $recruitmentDao->getRecruitmentList($recType); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link type="text/css" rel="stylesheet" href="../zcss/index.css" /> <link type="text/css" rel="stylesheet" href="css/inrea1.css" /> <script language="javascript" type="text/javascript" src="../zjs/jquery-1.8.3.js"></script> <script language="javascript" type="text/javascript" src="../zjs/jquery.corner.js"></script> <script type="text/javascript" language="javascript" src="../zjs/jquery-ui-1.9.2.custom.js"></script> <script language="javascript" type="text/javascript" src="../zjs/fzw.js"></script> <script language="javascript" type="text/javascript"> $(function(){ $(".PMOne,.PMTwo,.PMThree,.PMFour,.offers").corner("5px"); }); </script> <title>加入rea1</title> </head> <body> <!--头部div logo start--> <div class="headDiv">