<?php defined('PHPNEW_STATIC_TPL') === false && exit('PHPnew Blog');?>
<style type="text/css">
/*-----简历详细页----------*/
#admincp_div{ background-color:#4298D3;}
.resume_show {width:700px; margin: 0 auto; margin-bottom:8px; border-collapse: collapse;}
.resume_show td{border: 1px solid #DBE8F2;}
.resume_show .tablebg{ background-color: #FAFAFA;}
.resume_show .tdbg{ background-color: #FFFFFF; padding-left: 6px; text-align: right;}
.resume_show .tdbgs{ background-color: #FFFFFF; padding-left: 6px; text-align: left;}
.resume_show .btit{padding:10px;}
.resume_show .title{ padding-left:15px; font-size:14px; background-color: #F2FAFD}
.resume_show .lefttit{ background-color:#FDF7EA}
.resume_show h1{ font-size:30px; font-family:"黑体"; margin-bottom:10px; color: #FFFFFF}
.resume_show .tip{ color: #FEE6B4; line-height:160%}
.link_white{text-align: right;}
.link_white a:link{color: white;}
.link_white a:visited {color: white}
.link_white a:hover{color: red;}
strong{line-height: 3em; height: 26px; line-height: 26px;}
.resume_show td{line-height: 30px;}
.resume_show input{width: 98%; line-height: 22px; border:none; color: #0080FF; height: 22px;}
.resume_show textarea{width: 95%; border:none; height: 120px;color: #0080FF;}
.qq-uploader { position:relative; width: 100%;}
</style>
<script src="./Static/Javascript/fileuploader.js?abb" type="text/javascript"></script>
<script type="text/javascript">
    var i = ht = type = mess = url = s = edit = 0;
    $(function (){
        $('.input').each(function (){
            $(this).click(function (){
            if(edit == 0){
                return false;
            }
                
            if(i != this){
                if(i){
                    parse_query(this)
                }else{
                    parse_inpust(this);
                }
            }
            
            });
        })
        // 点击时回收操作.
        $('.tdbg').click(function (){
            parse_query();
        });
        $('.title').click(function (){
            parse_query();
        });
        createUploader();
        // 选择权限
        $("input[name='userpower'][value='{$user_power}']").attr('checked','checked');
    })
    
    function parse_query(obj){
        
        if(!i || !$('.user_inputs').val()){
             i = 0;
             return false;
        }
        mess = $('.user_inputs').val();
        mess = encodeURIComponent(mess);
        url = './index.php?user=resume&type='+type+'&mess='+mess+'&ajaxin='+Math.random();
        s =  obj;
        $.get(url,'',function (data){
            if(data == '-1'){
                data = '数据异常';
            }
            $(i).html(data);
            parse_inpust(s);
        })
    }
    
    function parse_inpust(obj){
            mess = $(obj).html();
            type = $(obj).attr('title');
            ht = '<input class="user_inputs" value="" />';
            
            if(type == 'user_Skillsa' || type == 'user_Skillsb' || type == 'user_Skillsc' || type == 'user_introduce'){
                ht = '<textarea class="user_inputs"></textarea>';
            }else{
                mess = htmlspecialchars(mess);
            }
            
            $(obj).html(ht);
            $(".user_inputs").focus();
            $(".user_inputs").val(mess);
            i = obj
    }
function htmlspecialchars(str){
    if(str){
        str = str.replace(/&/g, '&amp;');
        str = str.replace(/</g, '&lt;');
        str = str.replace(/>/g, '&gt;');
        str = str.replace(/"/g, '&quot;');
        str = str.replace(/'/g, '&#039;');
        return str;
    }
}

function user_power(){
    parse_query();
    var newurl = $('input[name="newurl"]:checked').val();
    var userpower = $('.userpower').val();
    if(!userpower){
        userpower = $('input[name="userpower"]:checked').val();
    }
    userpower = encodeURIComponent(userpower);
    url = './index.php?user=resume&userpower='+userpower+'&newurl='+newurl+'&power=1&ajaxin='+Math.random();
    $.get(url,'',function (data){
        $('.newurl').val(data);
        alert('更新成功!');
    })
}

function createUploader(){            
    var uploader = new qq.FileUploader({
        element: document.getElementById('upload_logo'),
        action: './index.php?user=resume_upload',
        debug: false,
        multiple: false,
        allowedExtensions: ['jpeg', 'jpg', 'gif', 'png'],
        sizeLimit: 204800, // 200 kB = 200 * 1024 bytes
        onComplete: function(id,filename, resource){
            if(resource.success == true){
             $('.qq-upload-list').remove();
             $('.logo_user').attr('src',resource.path);  
            }
        }
    });           
}


</script>
<table class="resume_show" >
  <tr>
    <td style="border: none;"></td>
    <td class="link_white" style="border: none;"><a href="./index.php">网站首页</a> <a href="{$user_link}" target="_blank">我的简历</a></td>
  </tr>
</table>
<table class="resume_show" style="margin-bottom: 0px;">
  <tr>
    <td colspan="5" style="border: none;">
	<h1>{$data[user_name]}的个人简历</h1>
	<div class="tip">
			<span style="color: #CCFF00">更新日期：{$data[user_update]}</span>
			<br />
	学历: {$data[user_record]}　工作经验: {$data[user_worker]}　浏览: {$data[user_lookcount]} 次 </div>
    </td>
    <td style="text-align: right; border: none; vertical-align: bottom; color: white;"><input style="width: auto; vertical-align: middle;" onclick="parse_query(); if(this.checked){edit=1;}else{edit=0}" type="checkbox" /> <span style="font-weight: bolder;" title="勾中进入编辑模式">编辑</span> </td>
  </tr>
</table>
  <table class="resume_show tablebg">
  <tr>
    <td  colspan="5" class="title"><strong>基本信息</strong></td>
    </tr>
  <tr>
    <td class="tdbg">
	真实姓名：</td>
    <td class="tdbgs input" title="user_name" style="width: 180px; text-align: left;">{$data[user_name]}</td>
    <td class="tdbg" style="width: 90px;">性别：</td>
    <td class="tdbgs input" title="user_sex" style="width: 150px; text-align: left;">{$data[user_sex]}</td>
    <td class="tdbg" rowspan="6" style="text-align: center; line-height: 18px;"><img class="logo_user" style="margin-top: 3px; border: 1px solid #E9E9E9;" src="{$userlogo}" /><br /><a id="upload_logo" href="javascript:;">上传头像</a></td>
  </tr>
  <tr>
    <td class="tdbg">年龄：</td>
    <td class="tdbgs input" title="user_age" style="text-align: left;">{$data[user_age]}</td>
    <td class="tdbg">身高：</td>
    <td class="tdbgs input" title="user_height" style="text-align: left;">{$data[user_height]}</td>
  </tr>
  <tr>
    <td class="tdbg">婚姻状况：</td>
    <td class="tdbgs input" title="user_marriage" style="text-align: left;">{$data[user_marriage]}</td>
    <td class="tdbg">户籍所在：</td>
    <td class="tdbgs input" title="user_domicile" style="text-align: left;">{$data[user_domicile]}</td>
  </tr>
  <tr>
    <td class="tdbg">最高学历：</td>
    <td class="tdbgs input" title="user_record" style="text-align: left;">{$data[user_record]}</td>
    <td class="tdbg">工作经验：</td>
    <td class="tdbgs input" title="user_worker" style="text-align: left;">{$data[user_worker]}</td>
  </tr>
  <tr>
    <td class="tdbg">联系地址：</td>
    <td class="tdbgs input" title="user_addr" style="text-align: left;">{$data[user_addr]}</td>
    <td class="tdbg">浏览次数：</td>
    <td class="tdbg" style="text-align: left;"><span class="click">{$data[user_lookcount]}</span>次</td>
  </tr>
</table>

  <table class="resume_show">
    <tr>
      <td   colspan="2" class="title"><strong>求职意向</strong></td>
    </tr>
    <tr>
      <td class="tdbg" style="width: 120px;">最近工作过的职位：</td>
      <td class="tdbgs input" title="user_lodjob" style="text-align: left;">{$data[user_lodjob]}</td>
    </tr>
    <tr>
      <td class="tdbg">期望岗位性质：</td>
      <td class="tdbgs input" title="user_nature" style="text-align: left;">{$data[user_nature]}</td>
    </tr>
    <tr>
      <td class="tdbg">期望月薪：</td>
      <td class="tdbgs input" title="user_monpay" style="text-align: left;">{$data[user_monpay]}</td>
    </tr>
    <tr>
      <td class="tdbg">期望从事的岗位：</td>
      <td class="tdbgs input" title="user_hopejober" style="text-align: left;">{$data[user_hopejober]}</td>
    </tr>
    <tr>
      <td class="tdbg">期望从事的行业：</td>
      <td class="tdbgs input" title="user_hopeguild" style="text-align: left;">{$data[user_hopeguild]}</td>
    </tr>
</table>
  <table class="resume_show">
    <tr>
      <td  colspan="2" class="title"><strong>技能特长</strong></td>
    </tr>
    <tr>
      <td class="tdbg" style="width: 80px;">技能特长：</td>
      <td class="tdbgs input" title="user_Skillsa" style="text-align: left; line-height: 20px;">{$data[user_Skillsa]}</td>
    </tr>
    <tr>
      <td class="tdbg" style="width: 80px;">技能特长：</td>
      <td class="tdbgs input" title="user_Skillsb" style="text-align: left; line-height: 20px;">{$data[user_Skillsb]}</td>
    </tr>
    <tr>
      <td class="tdbg" style="width: 80px;">技能特长：</td>
      <td class="tdbgs input" title="user_Skillsc" style="text-align: left; line-height: 20px;">{$data[user_Skillsc]}</td>
    </tr>
</table>
  <table class="resume_show">
    <tr>
      <td  colspan="4" class="title"><strong>教育经历</strong></td>
    </tr>
   <tr>
      <td class="tdbgs input" title="user_Educationa-0" style=" width: 260px;text-align: center;">{$data[user_Educationa][0]}</td>
      <td class="tdbgs input" title="user_Educationa-1" style="width: 145px; text-align: center;">{$data[user_Educationa][1]}</td>
      <td class="tdbgs input" title="user_Educationa-2" style="width: 45px;text-align: center;">{$data[user_Educationa][2]}</td>
      <td class="tdbgs input" title="user_Educationa-3" style="text-align: center;">{$data[user_Educationa][3]}</td>
    </tr>
     <tr>
      <td class="tdbgs input" title="user_Educationb-0" style=" width: 260px;text-align: center;">{$data[user_Educationb][0]}</td>
      <td class="tdbgs input" title="user_Educationb-1" style="text-align: center;">{$data[user_Educationb][1]}</td>
      <td class="tdbgs input" title="user_Educationb-2" style="text-align: center;">{$data[user_Educationb][2]}</td>
      <td class="tdbgs input" title="user_Educationb-3" style="text-align: center;">{$data[user_Educationb][3]}</td>
    </tr>
     <tr>
      <td class="tdbgs input" title="user_Educationc-0" style=" width: 260px;text-align: center;">{$data[user_Educationc][0]}</td>
      <td class="tdbgs input" title="user_Educationc-1" style="text-align: center;">{$data[user_Educationc][1]}</td>
      <td class="tdbgs input" title="user_Educationc-2" style="text-align: center;">{$data[user_Educationc][2]}</td>
      <td class="tdbgs input" title="user_Educationc-3" style="text-align: center;">{$data[user_Educationc][3]}</td>
    </tr>
	</table>
  <table class="resume_show">
    <tr>
      <td  colspan="4" class="title"><strong>工作经历</strong></td>
    </tr>
    
       <tr>
      <td class="tdbgs input" title="user_workexpera-0" style=" width: 260px;text-align: center;">{$data[user_workexpera][0]}</td>
      <td class="tdbgs input" title="user_workexpera-1" style="width: 145px; text-align: center;">{$data[user_workexpera][1]}</td>
      <td class="tdbgs input" title="user_workexpera-2" style="width: 45px; text-align: center;">{$data[user_workexpera][2]}</td>
      <td class="tdbgs input" title="user_workexpera-3" style="text-align: center;">{$data[user_workexpera][3]}</td>
    </tr>
    <tr>
      <td class="tdbgs input" title="user_workexperb-0" style=" width: 260px;text-align: center;">{$data[user_workexperb][0]}</td>
      <td class="tdbgs input" title="user_workexperb-1" style="text-align: center;">{$data[user_workexperb][1]}</td>
      <td class="tdbgs input" title="user_workexperb-2" style="text-align: center;">{$data[user_workexperb][2]}</td>
      <td class="tdbgs input" title="user_workexperb-3" style="text-align: center;">{$data[user_workexperb][3]}</td>
    </tr>
    <tr>
      <td class="tdbgs input" title="user_workexperc-0" style=" width: 260px;text-align: center;">{$data[user_workexperc][0]}</td>
      <td class="tdbgs input" title="user_workexperc-1" style="text-align: center;">{$data[user_workexperc][1]}</td>
      <td class="tdbgs input" title="user_workexperc-2" style="text-align: center;">{$data[user_workexperc][2]}</td>
      <td class="tdbgs input" title="user_workexperc-3" style="text-align: center;">{$data[user_workexperc][3]}</td>
    </tr>
		</table>
  <table class="resume_show">
    <tr>
      <td  colspan="4" class="title"><strong>培训经历</strong></td>
    </tr>
     <tr>
      <td class="tdbgs" colspan="4" style="text-align: left;"><strong class="input" title="user_Traininga-0" style="margin-left: 20px;">{$data[user_Traininga][0]}</strong></td>
    </tr>
    <tr>
      <td class="tdbg" style="width: 80px;">起止日期：</td>
      <td class="tdbgs input" title="user_Traininga-1" style="text-align: left;">{$data[user_Traininga][1]}</td>
      <td class="tdbg">培训机构：</td>
      <td class="tdbgs input" title="user_Traininga-2" style="text-align: left;">{$data[user_Traininga][2]}</td>
    </tr>
	<tr>
      <td class="tdbg">培训课程：</td>
      <td class="tdbgs input" title="user_Traininga-3" style="text-align: left;">{$data[user_Traininga][3]}</td>
      <td class="tdbg">培训描述：</td>
      <td class="tdbgs input" title="user_Traininga-4" style="text-align: left;">{$data[user_Traininga][4]}</td>
    </tr>
     <tr>
      <td class="tdbgs" colspan="4" style="text-align: left;"><strong class="input" title="user_Trainingb-0" style="margin-left: 20px;">{$data[user_Trainingb][0]}</strong></td>
    </tr>
    <tr>
      <td class="tdbg" style="width: 80px;">起止日期：</td>
      <td class="tdbgs input" title="user_Trainingb-1" style="text-align: left;">{$data[user_Trainingb][1]}</td>
      <td class="tdbg">培训机构：</td>
      <td class="tdbgs input" title="user_Trainingb-2" style="text-align: left;">{$data[user_Trainingb][2]}</td>
    </tr>
	<tr>
      <td class="tdbg">培训课程：</td>
      <td class="tdbgs input" title="user_Trainingb-3" style="text-align: left;">{$data[user_Trainingb][3]}</td>
      <td class="tdbg">培训描述：</td>
      <td class="tdbgs input" title="user_Trainingb-4" style="text-align: left;">{$data[user_Trainingb][4]}</td>
    </tr>
</table>
  <table class="resume_show">
    <tr>
      <td colspan="4" class="title"><strong>自我介绍</strong></td>
    <tr>
    <td class="tdbgs input" title="user_introduce" style="text-align: left; line-height: 22px; padding-left: 20px;">{$data[user_introduce]}</td>
    </tr>
   
</table>
<table class="resume_show" >
    <tr>
      <td colspan="4" class="title"><strong>联系方式</strong></td>
    </tr>
    <tr>
      <td class="tdbg" style="width: 90px;">电话：</td>
       <td class="tdbgs input" title="user_tel" style="text-align: left; width: 220px;">{$data[user_tel]}</td>
        <td class="tdbg" style="width: 90px;">QQ：</td>
         <td class="tdbgs input" title="user_qq" style="text-align: left;">{$data[user_qq]}</td>
    </tr>
    <tr>
      <td class="tdbg" style="width: 90px;">邮件：</td>
       <td class="tdbgs input" title="user_email" style="text-align: left;">{$data[user_email]}</td>
        <td class="tdbg">个人主页：</td>
         <td class="tdbgs input" title="user_site" style="text-align: left;">{$data[user_site]}</td>
    </tr>
</table>

<table class="resume_show" >
    <tr>
      <td colspan="4" class="title"><strong>权限设置</strong></td>
    </tr>
    <tr>
      <td class="tdbg"> 许可访问： </td>
      <td class="tdbg" style="text-align: left;"> <input style="width: 15px; margin-left: 60px; vertical-align: middle;" type="radio" value="1" name="userpower" /> 本人 <input style="width: 15px;vertical-align: middle;" type="radio" value="2" name="userpower" /> 会员  <input type="radio" value="0" style="width: 15px;vertical-align: middle;" name="userpower" /> 游客 <input type="radio" value="3" style="width: 15px;vertical-align: middle;" name="userpower" /> 开放 <br />
      访问密码: <input class="userpower" style="width: auto; line-height: 18px; height: 18px; padding: 0; border: 1px solid silver;" type="password" name="userpower" value="" />
      </td>
          <td class="tdbg"> 计算新链接： </td>
      <td class="tdbg" style="text-align: left;"> <input type="checkbox" name="newurl" style="width: 15px; margin-left: 40px; vertical-align: middle;" value="1" /> 确认 (产生新的URL) <br />
      MD5: <input class="newurl" style="width: auto; line-height: 18px; height: 18px; padding: 0;" type="text" name="newurl" value="{$data[user_randmd5]}" /> <a href="{$user_link}" target="_blank">链接</a>
      </td>
    </tr>
    <tr>
        <td class="tdbg" colspan="4"><input type="submit" onclick="user_power()" style="width: 60px; vertical-align: middle; margin: 6px; border: 1px solid silver;" value="完成" /></td>
    </tr>
    <!--{if $user_history_array}-->
    <tr>
      <td colspan="4" class="title"><strong>访问记录: </strong></td>
    </tr>
    <tr>
        <td class="tdbg" style="vertical-align: top; text-align: left;" colspan="6">
         <!--{loop $user_history_array $val}-->
            <span title="访问时间: {$val[t]}">{$val[n]}</span> 
         <!--{/loop}-->
        </td>
    </tr>
    <!--{/if}-->
</table>