查看: 7944|回复: 0
打印 上一主题 下一主题

猎头服务update.php源代码之一

[复制链接]
跳转到指定楼层
1#
发表于 2007-9-8 15:59:54 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
台州网址导航
<?php
//////////////////////////////////////////////////////////////////////////////////////////////////////////
//File:    update.php
//Author:   TZNKTG
//Purpose:  This page is update user
///////////////////////////////////////////////////////////////////////////////////////////////////////////

require('include/dbfun.php');
require('include/commonvar.php');
require('include/seek_array.php');
require('include/seek_array2.php');
require('include/seek_array3.php');
require('include/seek_arrayso.php');
session_start();

$isuser=$_SESSION['isuser'];
$username=$_SESSION['username'];
if($isuser==1 && $username!=""){
$update_userinfo_sql="select * from ".$userinfo_table." where username='".$username."'";
$db->execute($update_userinfo_sql);

echo "<html>";
echo "<head><title>$title-高级人才维护</title>";
echo "<meta http-equiv='content-type' content='text/html; charset=gb2312'>";
echo "<meta content='copyright 2004-2010 job125.com' name=author>";
echo "<link href='huntercss/15hr.css' type='text/css' rel='stylesheet'>";
echo "<meta content='mshtml 6.00.2900.2802' name='generator'>";
echo "<script language='javascript' src='css_js/Options.js'></script>";
echo "<script language='javascript' src='css_js/per_jslib.js'></script>";
echo "<script language='javascript' src='css_js/jobAndCityCatalog.js'></script>";
echo "<script language='javascript' src='css_js/common.js'></script>";
echo "<script language='javascript' src='css_js/script.js'></script>";
echo "<script language='javascript' src='css_js/gr_careerwill.js'></script>";

echo "</head>";
echo "<body>";
     
require('hunter_left.php');


echo "<table cellspacing='0' cellpadding='0' width='200' align='center' border='0'>";
echo "<tbody>";
echo "<tr><td><img height='10' src='images/hunter_topline.gif' width='538'></td></tr>";
echo "<tr><td background='images/hunter_bgblank.gif'>";
echo "<table cellspacing='0' cellpadding='0' width='100%' align='center' border='0'>";
echo "<tbody>";
echo "<tr><td height='30'>  <strong>高级人才维护</strong></td></tr>";
echo "<tr><td align='center'><img style='background-color: #cccccc' height=1 alt='job125' src='images/job125.htm' width='510'></td></tr>";
echo "<tr><td> </td></tr>";

while($userinfo=$db->reader())
{

                ##############################################################################
               
                $userid = $userinfo['id'];//用户编号
                $_SESSION['userid'] = $userid;
                $userpwd = $userinfo['userpwd']; //用户密码
                $reuserpwd = $userpwd; //用户确认密码
                $truename = $userinfo['truename']; //真实姓名
                $idcard = $userinfo['idcard']; //身份证号
                if($userinfo['sex']=="1") //性别
                {
                         $sex1=" checked";
                         $sex2=" ";
                }
                else
                {
                         $sex1=" ";
                         $sex2=" checked";
                }
                $birthdate = explode("-",$userinfo['birthdate']);//出生年月
                $year = $birthdate[0];//年数
                $level1 = $userinfo['fllevel1'];
                $level2 = $userinfo['fllevel2'];
                $level3 = $userinfo['fllevel3'];
                $edubrup = $userinfo['edubrup'];//教育与培训背景        
                $wkedyears = $userinfo['wkedyears'];//工作经历业绩--年数
                $wkedmonths = $userinfo['wkedmonths'];//工作经历业绩--月份
                $wkedcompnum = $userinfo['wkedcompnum'];//工作经历业绩--工作公司家数
                $wkedexperience = $userinfo['wkedexperience'];//工作经历业绩
                $remark = $userinfo['remark'];//自评报告
                $nowwkaddress = $userinfo['nowwkaddress'];//现在工作地址
                $appwkpos = $userinfo['appwkpos'];//求职意向               
                if($userinfo['reqhousing']=="1")//住房要求
                {
                        $rehousing1=" checked";
                        $rehousing2=" ";
                }
                else
                {
                        $rehousing1=" ";
                        $rehousing2=" checked";
                }
                $dealother = $userinfo['dealother'];//待遇及其它要求
                $relphone = $userinfo['relphone'];//联系电话
                $mobphone = $userinfo['mobphone'];//手机
                $lookmachine = $userinfo['lookmachine'];//寻呼机
                $email = $userinfo['email'];//电子邮件
                $homepage = $userinfo['homepage'];//个人主页
                $comaddress = $userinfo['comaddress'];//通信地址
                $postcode = $userinfo['postcode'];//邮政编码
                ##############################################################################

                echo "<tr><td valign='top' align='center'>";
                echo "<form name='frm' action='updateinfo_result.php' method='post'>";
                echo "<table cellspacing='0' cellpadding='5' width='95%' border='0'>";
                echo "<tbody>";
                echo "<tr><td>欢迎 <b><font color='#FF0000' size='2'>$username</font></b> 进入高级人才简历维护中心。        若您的简历已经通过了审核,简历更新后您的简历将被重新审核,请将您的用户名、真实姓名、个人身份证号码Email:<font color='#FF0000'><b>info@job125.com</b></font>,我们的工作人员将重新对您的简历进行审核并Email通知您,若您的简历还是第一次填写,请将个人身份证复印件及用户名传真至本公司。三天内未传真或Email的用户将被删除个人简历。</td></tr>";
                echo "<tr><td align='center'>";
                echo "<table cellspacing='1' cellpadding='2' width='100%' border='0'>";
                echo "<tbody>";
                echo "<tr><td bgcolor='white' colspan='2'><font color='#669900'>注意:带“<font color='#0000ff'>*</font>”项可以不填</font></td></tr>";
                echo "<tr><td bgcolor='#d1d3d4' colspan='2' height='25'>一、基本信息</td></tr>";

                echo "<tr><td width='91' height='25'>用户类别:</td><td width='450' height='25'>";
                echo "<select class='fieldhz' style='width: 184px' name='usersort'>";
                usersortfun();
                echo "</select>";
                echo "<font color='#666600'> (请选择您所属的人才分类) </font>";
                echo "</td></tr>";

                 echo "<tr bgcolor='#f6f6f6'>";
                echo "<td width='91' bgcolor='#f6f6f6' height='25'>密  码:</td><td width='450' height='25'><input class='fieldhz' id='password' style='width: 184px; height: 21px' type='password' maxlength='14' name='password' value=".$userpwd."> <font color='#666600'>(至少六位)</font></td>";
                echo "</tr>";

                echo "<tr>";
                echo "<td width='91' height='25'>密码确认:</td><td width='450' height='25'><input class='fieldhz'         id='confirmpassword' style='width: 184px; height: 21px' type='password' maxlength='14' name='repassword' value=".$reuserpwd."></td>";
                echo "</tr>";

                echo "<tr>";
                echo "<td width='91' bgcolor='#f6f6f6'>真实姓名<span style='font-size: 12px; font-family: verdana'>:</span></td>        <td width='450' bgcolor='#f6f6f6'><input class='fieldhz' id='name' style='width: 184px; height: 21px' maxlength='10' value=".$truename." name='name'><font color='#666600'> (填写真实姓名)</font></td>";
                echo "</tr>";
               
                echo "<tr><td width='91'>身份证号<span         style='font-size: 12px; font-family: verdana'>:</span></td><td width='450'><input class='fieldnumber' id='id' style='width: 184px; height: 21px' maxlength='18' value=".$idcard." name='idcode'> <font color='666600'>(填写真实身份证号)</font></td></tr>";

                echo "<tr>";
                echo "<td width='91'bgcolor='#f6f6f6'>性  别<spanstyle='font-size:12px;font-family:verdana'>:</span></td>";        
                echo "<td width=450 bgcolor='#f6f6f6'><input id='sex' style='font-size: 12px; color: rgb(224,226,222); font-family: 宋体' type='radio' name='sex' value='0'".$sex1.">男 <input id='sex' style='font-size:12px;color:rgb(224,226,222); font-family: 宋体' type='radio' name='sex'  value='1'".$sex2."> 女</td>";
                echo "</tr>";

               
                echo "<tr>";
                echo "<td width=91>出生年月<span style='font-size: 12px; font-family: verdana'>:</span></td>";
                echo "<td width=450><input class='fieldnumber' id='birthday_y' maxlength='4' size='3' value=".$year." name='year'        > 年 ";               
                echo "<select class='fieldnumber' id='birthday_m' size='1' name='month' maxlength='2'> ";
                monthfun();
                echo "</select> 月";
                echo "<select class='fieldnumber' id='birthday_d' size='1' name='day' maxlength='2'>";
                dayfun();
                echo "</select> 日";
                echo " <font color='#666600'>(年龄为≥25岁,与身份证上年龄一致) </font><font color='#006699'> </font></td></tr>";

                echo "<tr>";
                echo "<td width='91' bgcolor='#f6f6f6'>外语水平<span style='font-size: 12px; font-family: verdana'>:</span></td>";
                echo "<td width='450' bgcolor=#f6f6f6><font color=#669900><font color=#0000ff>*</font></font></td>";
                echo "</tr>";

                echo "<tr>";
                echo "<td width='91'> </td>";
                echo "<td width='450'><font color='#3333ff'><select class='fieldhz' id='language_type' size='1' name='language1'>";
                languagefun();
                echo "</select>";
                echo "</font> 水平 <input class='fieldhz' id='language_extent' maxlength='6' size='9' value=".$level1." name='level1'> (第一外语)<br>";
                echo "<select class='fieldhz' id='language_type1' size='1' name='language2'>";
                languagettfun();
                echo "</select>";
                echo " 水平 <input class='fieldhz' id='language_extent1' maxlength='6' size='9' name='level2' value=".$level2."> (第二外语)<br>";
                echo "<select class='fieldh' id='language_type2' size='1' name='language3'>";
                languagettfun();
                echo "</select>";
                echo " 水平 <input class='fieldhz' id='language_extent2' maxlength='6' size='9' name='level3' value=".$level3."> (第三外语)</td>";                 
                echo "</tr>";

                echo "<tr>";
                echo "<td width='91' bgcolor=#f6f6f6>最高学历<span style='font-size: 12px; font-family: verdana'>:</span></td>";
                echo "<td width='450' bgcolor='#f6f6f6'>";
                echo "<font color='#3333ff'>";
                echo "<select class='fieldhz' id='education' style='width: 184px; height: 21px' size='1' name='education'>"; highedutionfun();
                echo "</select>";
                echo "</font>";
                echo "</td>";
                echo "</tr>";

                echo "<tr>";
                echo "<td width='91'>计算机水平<span style='font-size: 12px; font-family: verdana'>:</span></td>";
                echo "<td width='450'><font color='#3333ff'>";
                echo "<select class='fieldhz' id='computerlevel' size='1' name='computerlevel'>";
                computerlevelfun();
                echo "</select>";
                echo "</font><font color='#669900'><font color='#0000ff'> *</font></font></td>";
                echo "</tr>";

                echo "<tr>";
                echo "<td bgcolor=#f6f6f6 colspan=2>教育与培训背景<span style='font-size: 12px; font-family:verdana'>:</span></td>";
                echo "</tr>";
                echo "<tr>";
                echo "<td width='91'></td>";
                echo "<td width='450'><font face=宋体><textarea class='fieldhz' name='education_content' rows='8' cols='55'>".$edubrup."</textarea></font></td>";
                echo "</tr>";
                echo "<tr>";
                echo "<td bgcolor=#f6f6f6 colspan=2>工作经历业绩<span style='font-size: 12px; font-family: verdana'>:</span></td>";
                echo "</tr>";

                echo "<tr>";
                echo "<td width='91'></td>";
                echo "<td valign='top' width='450'><font class='truetext'>我有</font>";
                echo "<input class='fieldnumber' id='jobyears_y' maxlength='2' size='2'  name='jobyears_y' value=".        $wkedyears." > 年";
                echo "<input class='fieldnumber' id='jobyears_m' maxlength='2' size='2'  name='jobyears_m' value=".$wkedmonths."> 月工作经验  曾在";
                echo "<input class='fieldnumber' id='workcompanynumber' maxlength='2' size='2'  name='workcompanynumber' value=".$wkedcompnum."> 家公司任职<br><font face='宋体'>";
                echo "<textarea class='fieldhz' name='job_experience' rows='8' cols='55'>".$wkedexperience."</textarea></font><br>";
                echo "<font face='宋体'><font color='#666600'>(如发现毕业年限与工作经验不符,则不予以注册。)</font></font><br></td>";
                echo "</tr>";

                echo "<tr>";
                echo "<td bgcolor='#f6f6f6' colspan='2'>自评报告<span style='font-size: 12px; font-family:verdana'>:</span></td>";
                echo "</tr>";
               
                echo "<tr>";
                echo "<td width='91'></td>";
                echo "<td width='450'><font face=宋体><textarea class='fieldhz' id='remark' name='remark' rows='8' cols='55'>".$remark ."</textarea></font></td>";
                echo "</tr>";

                echo "<tr>";
                echo "<td width='91' bgcolor=#f6f6f6>现工作地点<span style='font-size: 12px; font-family: verdana'>:</span></td>";
                echo "<td width='450' bgcolor='#f6f6f6'><input class='fieldhz' id='jobaddress' maxlength='30' size='28'  name='jobaddress' value=".$nowwkaddress."></td>";
                echo "</tr>";

                echo "<tr><td bgcolor='#d1d3d4' colspan='2' height='25'>二、您的要求:</td></tr>";
                echo "<tr>";
                echo "<td width='91' bgcolor='#f6f6f6'>求职意向<span style='font-size: 12px; font-family: verdana'>:</span></td>";
                echo "<td width='450' bgcolor='#f6f6f6'><input class='fieldhz' id='objective' maxlength='200' size='28' value=".$appwkpos." name='objective'>(多意向可以用;分隔) </td>";
                echo "</tr>";

                /*echo "<tr>";
                echo "<td width='91'>岗位类别<span style='font-size: 12px; font-family: verdana'>:</span></td>";
                echo "<td width='450'>";
                echo "<select class='fieldhz' id='station' style='width: 180px' name='jobMainCatalogry' onchange='javascript:selectOnchange(frm.jobMainCatalogry,frm.jobfunction,'jobcatelog')';>";
                usersortfun();
                //echo "<script language=\"javascript\">writeJobs();</script>";
                echo "</select> ";
                echo "<select class='fieldhz' id='station' style='width: 180px' name='jobfunction'>";
                //usersubsortfun();
                echo "</select>";
                echo "</font></td>";
                echo "</tr>";*/?>
                <tr>
                  <td width="91">岗位类别<span
                        style="font-size: 12px; font-family: verdana">:</span></td>
                  <td width="450">
                        <select style="width: 150px" onchange="javascript:selectOnchange(frm.jobMainCatalogry,frm.jobfunction,'jobcatelog');"  name="jobMainCatalogry">
                                <option value="00" selected>-------请选择------</option>
                                <script language="javascript">writeJobs();</script>
                        </select>
                        <select class="fieldhz" id="station" style="width: 180px" name="jobfunction">
                                <option value="<? echo $subpostsort ?>" checked><?php echo $jobFunction{$userinfo['subpostsort']} ?></option>
                        </select>
                  </td>
                </tr>     
        <?php
                echo "<tr>";
                echo "<td width='91' bgcolor='#f6f6f6'>工作地点<span style='font-size: 12px; font-family:verdana'>:</span></td>";
                echo "<td width=450 bgcolor=#f6f6f6>";
                echo "<select class='fieldhz' id='locus' style='width: 100px' name='province' onChange=\"javascript:selectOnchange(frm.province,frm.workplace,'citys0');\">";
                provincefun();
                echo "</select> ";
                echo "<select class='fieldhz' id='locus' style='width: 100px' name='workplace'>";
                echo "<option value='' selected>不限</option></select>";  
        echo "</font></td>";
                echo "</tr>";
               
                echo "<tr>";
                echo "<td width='91'>住房要求<span         style='font-size: 12px; font-family: verdana'>:</span></td>";
                echo "<td width='450'><input id='homeneed' style='font-size: 12px; font-family: 宋体' type='radio'                 name='homeneed' value='1'".$rehousing1."> 要求提供 <input id='homeneed' style='font-size: 12px; font-family: 宋体' type='radio' name='homeneed value='0'".$rehousing2."> 不需要</td>";
                echo "</tr>";

                echo "<tr>";
                echo "<td bgcolor='#f6f6f6' colspan='2'>待遇及其它要求<span style='font-size: 12px; font-family: verdana'>:</span></td>";
                echo "</tr>";
                echo "<tr>";
                echo "<td width='91' bgcolor='#ffffff'></td><td width='450' bgcolor='#ffffff'><textarea class='fieldhz' id='deal' name='deal' rows='8' cols='55'>".$dealother."</textarea><br></td>";
                echo "</tr>";

                echo "<tr><td bgcolor='#d1d3d4' colspan='2' height='25'>三、联系方式:</td></tr>";
                 
                echo "<tr>";
                echo "<td width='91' bgcolor='#f6f6f6'>联系电话<span style='font-size: 12px; font-family: verdana'>:</span></td>";
                echo "<td width='450' bgcolor='#f6f6f6'><input class='fieldnumber' id='tel' style='width: 214px; height: 20px' maxlength='30' size='30' value=".$relphone." name='tel'> <font color='#ff0000'>(注明区号)</font></td>";
                echo "</tr>";

                echo "<tr>";
                echo "<td width='91' bgcolor='#ffffff'>手    机<span style='font-size: 12px; font-family: verdana'>:</span></td>";
                echo "<td width='450' bgcolor='#ffffff'><input class='fieldnumber' id='mobile' style='width: 214px; height: 20px' maxlength='30' size='30' value=".$mobphone." name='mobile'><font color='#669900'><font color='#669900'><font color='#666600'> (注:联系电话和手机必填一项)</font></font><font color='#0000ff'></font></font></td>";
                echo "</tr>";

                echo "<tr>";
                echo "<td width='91' bgcolor='#f6f6f6'>寻 呼 机: </td>";
                echo "<td width='450' bgcolor='#f6f6f6'><input class='fieldnumber' id='bp' style='width: 214px; height: 20px' maxlength='20' size='30' name='bp' value=".$lookmachine."> <font color='#669900'></font></td>";
                echo "</tr>";

                echo "<tr>";
                echo "<td width='91' bgcolor='#ffffff'>电子邮件:</td>";
                echo "<td width=450 bgcolor='#ffffff'><input class=fieldalp id=email style='width: 214px; height: 20px' maxlength='40' size='32' value=".$email." name='email'> <font color='#666600'>(请准确填写,以便联系!)</font></td>";
                echo "</tr>";

                echo "<tr>";
                echo "<td width=91 bgcolor=#f6f6f6>个人主页<span style='font-size: 12px; font-family: verdana'>:</span></td>        <td width='450' bgcolor='#f6f6f6'><input class='fieldalp' id='homepage' style='width: 214px; height: 20px' maxlength='48' size='32' value=".$homepage." name='homepage'></td>";
                echo "</tr>";

                echo "<tr>";
                echo "<td width=91 bgcolor='#ffffff'>通信地址<span style='font-size: 12px; font-family: verdana'>:</span></td><td width='450' bgcolor='#ffffff'><input class='fieldhz' id='address' style='width: 214px; height: 20px' maxlength='150' size='33' value=".$comaddress." name='address'>  <font color='#669900'><font color='#0000ff'>*</font></font></td>";
                echo "</tr>";

                echo "<tr>";
                echo "<td width=91 bgcolor=#f6f6f6>邮政编码<span style='font-size: 12px; font-family:verdana'>:</span></td><td width='450' bgcolor='#f6f6f6'><input class='fieldnumber'                 id='post_code' style='width: 214px; height: 21px' maxlength='6' size='33' value=".$postcode." name='post_code'> <font color='#669900'><font color='#0000ff'>*</font></font></td>";
                echo "</tr>";
               
                echo "<tr>";
                echo "<td width='541' height='35' colspan='2' align='center'><input id='okbutton' style='font-size: 12px; font-family: 宋体' onclick='return checkform(this)' type='submit' value=' 修 改 'name='submit'>    <input id='cancelbutton' style='font-size: 12px; font-family: 宋体' type='reset' value=' 重 写 ' name='reset'></td>";
                echo "</tr>";
                ?>

                <script language="javascript">
                function js_init_cn()
                {

                        //用户人才分类
                        js_set_sel(document.frm.usersort, "<? echo $userinfo[usersort];?>");
                        //用户出生月份
                        js_set_sel(document.frm.month, "<? echo $birthdate[1];?>");
                        //用户出生日数
                        js_set_sel(document.frm.day, "<? echo $birthdate[2];?>");
                        //第一外语
                        js_set_sel(document.frm.language1, "<? echo $userinfo[flsort1];?>");
                        //第二外语
                        js_set_sel(document.frm.language2, "<? echo $userinfo[flsort2];?>");
                        //第三外语
                        js_set_sel(document.frm.language3, "<? echo $userinfo[flsort3];?>");
                        //最高学历
                        js_set_sel(document.frm.education, '<? echo $userinfo[highedu];?>');
                        //计算机水平
                        js_set_sel(document.frm.computerlevel, '<? echo $userinfo[complevel];?>');
                        //岗位大类别
                        js_set_sel(document.frm.jobMainCatalogry, '<? echo $userinfo[postsort];?>');
                        //岗位小类别
                        js_set_sel(document.frm.jobfunction, '<? echo $userinfo[subpostsort];?>');
                        add_subitem1(document.all.jobMainCatalogry , document.all.jobfunction, 0);
                        add_city(document.frm.jobfunction, "<? echo englishcn($userinfo[postsort]);?>", "<? echo englishcn($userinfo[subpostsort]);?>", 0);
                        //工作地点(省、直辖市、自治区)
                        js_set_sel(document.frm.province, '<? echo $userinfo[wkaddress];?>');
                        //工作地点 (地级市、县级市、区)
                        js_set_sel(document.frm.workplace, '<? echo $userinfo[subwkaddress];?>');
                        
                        
                        
                }
                js_init_cn();

</script>

<?php
}
echo "</td></tr></tbody></table>";
echo "</td></tr></tbody></table>";
echo "<table cellspacing='0' cellpadding='0' width='94%' align=center border=0>";
echo "<tbody>";           
echo "<tr><td><img height='10' src='images/hunter_bottomline.gif' width='538'></td></tr>";
echo "</tbody>";
echo "</table>";
echo "</td></tr></tbody></table>";
echo "</td></tr></tbody></table>";
echo "</body>";
echo "</html>";
}
else
{
        unset($_SESSION['isuser']);
        unset($_SESSION['username']);
        echo "<script>window.alert(\"您还未登陆!\");window.location=\"hunter_login.php\"</script>";
}
?>
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 转播转播 分享分享 分享淘帖
台州维博网络(www.tzweb.com)专门运用PHP+MYSQL/ASP.NET+MSSQL技术开发网站门户平台系统等。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

网站推广
关于我们
  • 台州朗动科技(Tzweb.com)拥有多年开发网站平台系统门户手机客户端等业务的成功经验。主要从事:政企网站,系统平台,微信公众号,各类小程序,手机APP客户端,浙里办微应用,浙政钉微应用、主机域名、虚拟空间、后期维护等服务,满足不同企业公司的需求,是台州地区领先的网络技术服务商!

Hi,扫描关注我

Copyright © 2005-2026 站长论坛 All rights reserved

Powered by 站长论坛 with TZWEB Update Techonolgy Support

快速回复 返回顶部 返回列表