<!--#include file="conn/conn_index.asp"-->
<!--#include file="inc/setup.asp"-->
<!--#include file="inc/char.asp"-->
<!--#include file="inc/sql.asp"-->
<%
	end if
	action=ReplaceBadChar(Trim(Request.QueryString("action")))
	if action="add" then
		qq=ReplaceBadChar(Trim(Request.Form("qq")))
		address=ReplaceBadChar(Trim(Request.Form("address")))
		if qq="" then qq="未填写"
		if address="" then address="未填写"
		set rs=server.createobject("adodb.recordset")
		sql="select * from jianzhi order by id asc"
		rs.open sql,conn,2,3
		rs.addnew
		rs("lxname")=ReplaceBadChar(Trim(Request.Form("name")))
		rs("sex")=int(ReplaceBadChar(Trim(Request.Form("sex"))))
		rs("tel")=ReplaceBadChar(Trim(Request.Form("contact")))
		rs("qq")=qq
		rs("address")=address
		rs("lasttime")=ReplaceBadChar(Trim(Request.Form("vdate")))
		rs("notice")=ReplaceBadChar(Trim(Request.Form("content")))
		rs("title")=ReplaceBadChar(Trim(Request.Form("title")))
		rs("shenhe")=freejz
		rs("ttype")=ReplaceBadChar(Trim(Request.Form("ttype")))
		rs("stime")=now()
		rs("num")=1
		rs("shenhe")=0
		rs.update
		response.write"<SCRIPT language=JavaScript>alert('兼职信息发布成功，现在正为您返回，请稍等');"
		response.write"window.location.href = 'jianzhi.asp'"&" </script>"
		response.end
		rs.close
		set rs=nothing
	end if
		
%>
<!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>
<link rel="Shortcut Icon" href="Images/favicon.ico">
<link rel="Bookmark" href="Images/favicon.ico">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<TITLE><%= homename %>--兼职信息</TITLE>
<meta name="Keywords" content="<%= webmeta %>">
<meta name="Description" content="<%= webmeta1 %>">
<link href="css/jianzi.css" rel="stylesheet" type="text/css">
<script type="text/javascript" language="JavaScript">
var clickCount = 0;
function clearCommentContent(oObject) {
    clickCount++;
    if (clickCount == 1) {
        oObject.value = "";
    }
}
function mOvr(src,clrOver) { if (!src.contains(event.fromElement)) { src.style.cursor = 'hand'; src.bgColor = clrOver; }}
function mOut(src,clrIn) { if (!src.contains(event.toElement)) { src.style.cursor = 'default'; src.bgColor = clrIn; }}
function doZoom(size)
{
document.getElementById('zoom').style.fontSize=size+'pt';
}
</script>
<script language="JavaScript">
 function check(){
 if (document.form1.name.value==""){
  alert("-请输入联系人名字-");
  document.form1.name.focus();
  return false;
 }
  if (document.form1.sex.value==""){
  alert("-请选择您的性别-");
  document.form1.sex.focus();
  return false;
 }
  if (document.form1.contact.value==""){
  alert("-请输入您的电话-");
  document.form1.contact.focus();
  return false;
 }
  if (document.form1.title.value==""){
  alert("-请输入标题-");
  document.form1.title.focus();
  return false;
 }
  if (document.form1.content.value==""){
  alert("-请输入求职内容-");
  document.form1.content.focus();
  return false;
 }
  if (document.form1.vdate.value==""){
  alert("-请输入信息有效期-");
  document.form1.vdate.focus();
  return false;
 }
}
</script>
</HEAD>
<BODY topMargin=0 leftmargin="0" rightmargin="0">
<!--#include file="top.asp"-->
  <div class="jz_center">
    <img src="images/jianzi/banner_tools.jpg" width="975" height="200" />
    <div class="jz_leftbox">
      <div id="form1">
        <form action="?action=add" method="post" name="form1" onSubmit="return check()">
          <div class="jz_fabubox">
            
            <div style="width:220px; float:left">
              <div class="jz_fabuleft"><span style="color:#FF0000">*</span>联&nbsp;系&nbsp;人:  <input name="name" type="text" class="jz_text1" / maxlength=8>
              </div>
            <div class="jz_fabuleft"><span style="color:#FF0000">*</span>性&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;别: 
              <input type="radio" name="sex" value="1" />
              男 
  <input type="radio" name="sex" value="0" />
              女 </div>
            <div class="jz_fabuleft"><span style="color:#FF0000">*</span>联系电话:  <input name="contact" type="text" class="jz_text1" maxlength=30 />
              </div>
            <div class="jz_fabuleft"><span style="font-size:11px">&nbsp;&nbsp;QQ/MSN</span>:  
              <input name="qq" type="text" class="jz_text1" maxlength=20 />
              </div>
            <div class="jz_fabuleft">&nbsp;&nbsp;联系地址:  
              <input name="address" type="text" class="jz_text1" maxlength=50 />
              </div>
            <div class="jz_fabuleft"><span style="color:#FF0000">*</span>信息有效期:
              <select name="vdate">
                <option value="一个星期">一个星期</option>
                <option value="半个月">半个月</option>
                <option value="一个月">一个月</option>
                <option value="三个月">三个月</option>
                <option value="六个月">六个月</option>
                <option value="永久有效">永久有效</option>
                </select>
  </div>
          </div>
		  
        <div style="width:450px; float:right">
            <div class="jz_faburight"><span style="color:#FF0000">*</span>类型: 
              <input type="radio" name="ttype" value="1" checked/>
              做兼职 
  <input type="radio" name="ttype" value="0" />
              请兼职 </div>
          <div class="jz_faburight"><span style="color:#FF0000">*</span>标题: 
            <input name="title" type="text" maxlength=40 size="40" /> 
            <span class="jz_fengtxt">比如兼职教师...</span></div>
			  <div class="jz_faburight">
			    <textarea name="content" class="jz_text2" maxlength=50 onClick="clearCommentContent(this)">请在这里写下您要发布信息的内容</textarea>最多可填写500个字&nbsp;&nbsp;&nbsp;<span id="lettercounts" style="color:red; font-weight:bold"></span>		      </div>
			  <div class="jz_faburight">
			    <div align="right"><span class="jz_fengtxt"> <input name="submit" type="image" src="images/jianzi/jianzi_r16_c16.gif" width="86" height="21" border="0" id="jianzi_r16_c16" alt="" align="absmiddle" style="margin-right:20px"/></span></div>
			  </div>
          </div>
        </div>
        </form>
      </div>
      <div class="jz_tuijian">
        <div class="jz_tuijianbt"><img name="jianzi_r18_c5" src="images/jianzi/jianzi_r18_c5.gif" width="10" height="9" border="0" id="jianzi_r18_c5" alt="" /> 推荐求职信息</div>
        <div id="main"><font color="#FF0000">
<%
	Set Rs= Server.CreateObject("ADODB.RecordSet")
	sql="select top 13 * from jianzhi where shenhe=1 order by id desc"
	Rs.open sql,conn,1,1
	if rs.eof then
%>
      	  <div class="jz_tuijianbox">
        		<div class="jz_tuijianpic"><img name="jianzi_r20_c3" src="images/jianzi/jianzi_r20_c3.gif" width="80" height="80" border="0" id="jianzi_r20_c3" alt="" /></div> 
            	<div class="jz_tuijiantxt"><span class="jz_backblue">做兼职</span> <strong>求兼职</strong>
                	<div class="jz_tjtxt1">望找一份家教作为兼职，数学或语文．<a href="#">查看详情</a> </div>
                    <div class="jz_tjtxt2"><span class="jz_tjblue">黄国栋</span>  男  <%= year(now()) %>-<%= month(now()) %>-<%= day(now()) %> 广东省深圳市  有效期:长期有效</div>
                </div>
           </div>
<%
	else
		Do While Not Rs.Eof
		'for i=1 to 13
		if rs("sex")=1 then k=0 else k=7
%>
      	  <div class="jz_tuijianbox">
        		<div class="jz_tuijianpic"><img name="jianzi_r20_c3" src="images/jianzi/jianzi_r2<%= k %>_c3.gif" width="80" height="80" border="0" id="jianzi_r20_c3" alt="" /></div> 
            	<div class="jz_tuijiantxt"><span class="jz_backblue"><% If rs("ttype")=1 Then Response.Write("做兼职") else Response.Write("请兼职")%></span> <strong><%= left(rs("title"),10) %><% If len(rs("title"))>10 Then Response.Write("...")%></strong>
                	<div class="jz_tjtxt1"><%= left(rs("notice"),20) %><% If len(rs("notice"))>20 Then Response.Write("...")%>．<a href="view_jianzhi.asp?id=<%= rs("id") %>" target="_blank">查看详情</a> </div>
                    <div class="jz_tjtxt2"><span class="jz_tjblue"><%= rs("lxname") %></span>  <%= rs("sex") %>  <%= year(rs("stime")) %>-<%= month(rs("stime")) %>-<%= day(rs("stime")) %> &nbsp;<%= rs("address") %>  有效期:<%= rs("lasttime") %></div>
                </div>
           </div>
<%
		'next
		Rs.movenext
		Loop
	end if
	Rs.Close
	set rs=nothing
%>
        </font></div>
      </div>
    </div>
	<div class="jz_rightbox">
	  <div class="jz_zhuixing">
	    <div class="jz_zhuixingbt"><img name="jianzi_r12_c18" src="images/jianzi/jianzi_r12_c18.gif" width="11" height="10" border="0" id="jianzi_r12_c18" alt="" /> 热门兼职信息</div>
		
	    <div class="jz_zxtxt" id="newest">
        
        <font color="#FF0000"><ul>
<%
	Set Rs= Server.CreateObject("ADODB.RecordSet")
	sql="select top 6 * from jianzhi where shenhe=1 order by num desc,id desc"
	Rs.open sql,conn,1,1
	if rs.eof then
%>
        <li><a href="#">﹢ <span class="jz_tjblue">黄国栋</span>  什么工作都可以 <span class="jz_zxtime"><%= year(now()) %>-<%= month(now()) %>-<%= day(now()) %></span> </a></li>
<%
	else
		Do While Not Rs.Eof
		'for i=1 to 6
%>
        <li><a href="view_jianzhi.asp?id=<%= rs("id") %>" target="_blank">﹢ <span class="jz_tjblue"><%= rs("lxname") %></span>  <%= left(rs("notice"),8) %><% If len(rs("notice"))>8 Then Response.Write("...")%> <span class="jz_zxtime"><%= year(rs("stime")) %>-<%= month(rs("stime")) %>-<%= day(rs("stime")) %></span> </a></li>
<%
		'next
		Rs.movenext
		Loop
	end if
	Rs.Close
	set rs=nothing
%>
        </ul></font></div>
	  </div>
	  <div class="jz_zhuixing">
	    <div class="jz_zhuixingbt"><img name="jianzi_r12_c18" src="images/jianzi/jianzi_r12_c18.gif" width="11" height="10" border="0" id="jianzi_r12_c18" alt="" /> 推荐兼职职位</div>
		
	    <div class="jz_hotbox" id="recommd">
		  <font color="#FF0000">
<%
	Set Rs= Server.CreateObject("ADODB.RecordSet")
	sql="select top 10 * from jianzhi where shenhe=1 order by num desc,id desc"
	Rs.open sql,conn,1,1
	if rs.eof then
%>
        <div class="jz_hot"><p><b> 求兼职</b><span class="jz_tjblue"> 黄国栋</span><span class="jz_zxtime"> <%= year(now()) %>-<%= month(now()) %>-<%= day(now()) %></span></p><div class="jz_hot_txt"><img name="jianzi_r21_c21" src="images/jianzi/jianzi_r21_c21.gif" width="190" height="10" border="0" id="jianzi_r21_c21" alt="" /></div><div class="jz_hot_txt1">望找一份家教作为兼职，数学或语文．<a href="#">查看详情</a> </div><div class="jz_hot_txt"><img name="jianzi_r28_c21" src="images/jianzi/jianzi_r28_c21.gif" width="190" height="4" border="0" id="jianzi_r28_c21" alt="" /></div></div>
<%
	else
		Do While Not Rs.Eof
		'for i=1 to 10
%>
          <div class="jz_hot"><p><b> <% If rs("ttype")=1 Then Response.Write("做兼职") else Response.Write("请兼职")%></b><span class="jz_tjblue"> <%= rs("lxname") %></span><span class="jz_zxtime"> <%= year(rs("stime")) %>-<%= month(rs("stime")) %>-<%= day(rs("stime")) %></span></p><div class="jz_hot_txt"><img name="jianzi_r21_c21" src="images/jianzi/jianzi_r21_c21.gif" width="190" height="10" border="0" id="jianzi_r21_c21" alt="" /></div><div class="jz_hot_txt1"><%= left(rs("notice"),16) %><% If len(rs("notice"))>16 Then Response.Write("...")%>&nbsp;<a href="view_jianzhi.asp?id=<%= rs("id") %>" target="_blank">查看详情</a> </div><div class="jz_hot_txt"><img name="jianzi_r28_c21" src="images/jianzi/jianzi_r28_c21.gif" width="190" height="4" border="0" id="jianzi_r28_c21" alt="" /></div></div>
<%
		'next
		Rs.movenext
		Loop
	end if
	Rs.Close
	set rs=nothing
%>
          </font>
	    </div>
	  </div>
	</div>
  </div>
<!--#include file="end.asp"-->