<!-- #include file="include/con_user.asp" -->
<!-- #include file="include/jk_put.asp" -->
<!-- #include file="include/jk_frm.asp" -->
<!-- #include file="include/jk_nsort.asp" -->
<!-- #include file="include/jk_upload.asp" -->
<!-- #include file="include/common_music.asp"-->
<%

call time_lock()
dim c_id,s_id,n_id,d_id
c_id=Request.QueryString ("c_id")
s_id=Request.QueryString ("s_id")
n_id=Request.QueryString ("n_id")
d_id=Request.QueryString ("d_id")
dim nsort,data_name,session_for,go_back,dim_down,types
session_for=joekoe_cms.web_cookies&"_put_"
go_back="<input type=button name=go_back value='返回上一页' onclick=""javascript:history.back(1);"">"
class_td=" class=bg_td"
tit="发布信息"

call web_head(2,1,0,0,0)
'----------------------------左边 开始----------------------------
call user_left("")
'----------------------------左边 结束----------------------------
call web_center(0)
'----------------------------中间 开始----------------------------
%>
<table cellspacing=1 cellpadding=4 class=table>
<tr><td class=td0 colspan=2>&nbsp;<%response.write img_skin("m_user")&tit%></td></tr>
<tr class=bg_tds><td height=30 colspan=2>
  <table border=0 align="center">
  <tr bgcolor="#999999"> 
          <td height="1" colspan="11"></td>
        </tr>
        <tr> 
          <td> 
            <%response.write img_skin("m_")%>
            <a href='?action=pris'<%if action="pris" then response.write " class=red"%>>发布企业黄页</a></td>
          <td width=10></td>
          <td> 
            <%response.write img_skin("m_")%>
            <a href='?action=house'<%if action="house" then response.write " class=red"%>>发布房源</a></td>
          <td width=5></td>
          <td> 
            <%response.write img_skin("m_")%>
            <a href='?action=job'<%if action="job" then response.write " class=red"%>>发布招聘</a></td>
          <td width=5></td>
          <td> 
            <%response.write img_skin("m_")%>
            <a href='?action=flea'<%if action="flea" then response.write " class=red"%>>发布二手</a></td>
          <td width=5></td>
          <td> 
            <%response.write img_skin("m_")%>
            <a href='?action=party'<%if action="party" then response.write " class=red"%>>发布聚会</a></td>
          <td width=5></td>
          <td> 
            <%response.write img_skin("m_")%>
            <a href='?action=down'<%if action="down" then response.write " class=red"%>>发布软件</a></td>
        </tr>
        <tr bgcolor="#999999"> 
          <td height="1" colspan="11"></td>
        </tr>
        <tr> 
          <td><b><font color="#FF0000">发布文章系统 
            <%response.write img_skin("m_")%>
            </font></b></a></td>
          <td width=10></td>
          <td><a href='?action=news'<%if action="news" then response.write " class=red"%>>新闻</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href='?action=gsjs'<%if action="gsjs" then response.write " class=red"%>>沧州</a></td>
          <td width=5></td>
          <td><a href='?action=art'<%if action="art" then response.write " class=red"%>>女性</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href='?action=xxgz'<%if action="xxgz" then response.write " class=red"%>>母婴</a></td>
          <td width=5></td>
          <td><a href='?action=jswz'<%if action="jswz" then response.write " class=red"%>>生活</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href='?action=gsgl'<%if action="gsgl" then response.write " class=red"%>>房产</a></td>
          <td width=5></td>
          <td><a href='?action=jspx'<%if action="jspx" then response.write " class=red"%>>服装</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href='?action=zlcg'<%if action="zlcg" then response.write " class=red"%>>学习</a></td>
          <td width=5></td>
          <td><a href='?action=chms'<%if action="chms" then response.write " class=red"%>>文学</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href='?action=jsjl'<%if action="jsjl" then response.write " class=red"%>>美食</a></td>
        </tr>
		<tr bgcolor="#999999"> 
          <td height="1" colspan="11"></td>
        </tr>
      </table>
</td></tr>
<form name=add_frm action='?action=<%response.write action%>' method=post onsubmit="javascript:frm_submitonce(this);">
<form name=add_frm action='?action=<%response.write action%>' method=post onsubmit=<%if action="job" then%>"return job_true()"<%else%>"javascript:frm_submitonce(this);"<%end if%>>
<input type=hidden name=chk value='yes'>
<input type=hidden name=upid value=''>
<%
select case action
case "news"
  nsort=action
  index_url="news"
  data_name="news"
  tit_fir="新闻"
  if int(format_mid_num(21))=1 then
    call put_news()
  else
    call put_close("推荐")
  end if
case "paste","flash"
  nsort=action
  types=action
  if nsort="paste" then nsort="gall"
  index_url="gallery"
  data_name="gallery"
  tit_fir="贴图"
  if action="flash" then tit_fir="Flash"
  if int(format_mid_num(24))=1 then
    call put_gallery()
  else
    call put_close("上传")
  end if
  case "party"
  nsort=action
  index_url="party"
  data_name="party_list"
  tit_fir="聚会"
  if int(format_mid_num(31))=1 then
    call put_party()
  else
    call put_close("发布")
  end if  
case "down"
 nsort=action
 index_url="down"
 data_name="down"
 tit_fir="软件"
 if int(format_mid_num(23))=1 then
  dim_down=split(web_down,"|")
   call put_down()
  erase dim_down
  else
   call put_close("发布")
  end if
case "web"
  nsort=action
  index_url="website"
  data_name="website"
  tit_fir="网站"
  if int(format_mid_num(25))=1 then
    call put_web()
  else
    call put_close("推荐")
  end if
  case "house"
  nsort=action
  index_url="house"
  data_name="house"
  tit_fir="房源"
  if int(format_mid_num(46))=1 then
   if int(dim_num(46))>login_emoney then
    call admin_error("注意：发布"&tit_fir&"需要 <font class=red>"&dim_num(46)&"</font> "&web_dim(9)&"，您只拥有 <font class=blue>"&login_emoney&"</font> "&web_dim(9)&"，不够支付！")
   else
      call put_house()
   end if
  else
    call put_close("发布")
  end if
case "pris"
  nsort=action
  index_url="pris"
  data_name="pris"
  tit_fir="企业"
  if int(format_mid_num(45))=1 then
   if int(dim_num(45))>login_emoney then
    call admin_error("注意：发布"&tit_fir&"需要 <font class=red>"&dim_num(45)&"</font> "&web_dim(9)&"，您只拥有 <font class=blue>"&login_emoney&"</font> "&web_dim(9)&"，不够支付！")
   else
      call put_pris()
   end if
  else
    call put_close("发布")
  end if
case "job"
nsort=action
index_url="job"
data_name="job"
tit_fir="招聘"

if login_cname="" or isnull(login_cname) then
call web_js_msg(1,"您还未曾填写企业履历！\n\n确定转到履历注册页面！","company_reg.asp")
else
if int(format_mid_num(37))=1 then
call joekoe_cms.js_put("style/put_job.js",0)
call put_job()
else
call put_close("招聘")

end if
end if
case "art"
  nsort=action
  index_url="article"
  data_name="article"
  tit_fir="女性"
  if int(format_mid_num(22))=1 then
    call put_art()
  else
    call put_close("发表")
  end if
  case "gsjs"
  nsort=action
  index_url="gsjs"
  data_name="gsjs"
  tit_fir="本埠"
  if int(format_mid_num(27))=1 then
    call put_gsjs()
  else
    call put_close("发表")
  end if
     case "xxgz"
  nsort=action
  index_url="xxgz"
  data_name="xxgz"
  tit_fir="母婴"
  if int(format_mid_num(30))=1 then
    call put_xxgz()
  else
    call put_close("发表")
  end if
     case "jswz"
  nsort=action
  index_url="jswz"
  data_name="jswz"
  tit_fir="生活"
  if int(format_mid_num(32))=1 then
    call put_jswz()
  else
    call put_close("发表")
  end if  
     case "gsgl"
  nsort=action
  index_url="gsgl"
  data_name="gsgl"
  tit_fir="房产"
  if int(format_mid_num(33))=1 then
    call put_gsgl()
  else
    call put_close("发表")
  end if  
    case "jspx"
  nsort=action
  index_url="jspx"
  data_name="jspx"
  tit_fir="服装"
  if int(format_mid_num(35))=1 then
    call put_jspx()
  else
    call put_close("发表")
  end if  
      case "zlcg"
  nsort=action
  index_url="zlcg"
  data_name="zlcg"
  tit_fir="学习"
  if int(format_mid_num(36))=1 then
    call put_zlcg()
  else
    call put_close("发表")
  end if  
     case "chms"
  nsort=action
  index_url="chms"
  data_name="chms"
  tit_fir="文学"
  if int(format_mid_num(38))=1 then
    call put_chms()
  else
    call put_close("发表")
  end if 
     case "jsjl"
  nsort=action
  index_url="jsjl"
  data_name="jsjl"
  tit_fir="笑林"
  if int(format_mid_num(39))=1 then
    call put_jsjl()
  else
    call put_close("发表")
  end if 
case "flea"
  nsort=action
  index_url="flea"
  data_name="flea"
  tit_fir="市场"
  if int(format_mid_num(40))=1 then
    call put_flea()
  else
    call put_close("发布")
  end if
end select
response.write vbcrlf&"</table>"
response.write ukong
'----------------------------中间 结束----------------------------
call web_end(0,0)

sub put_web()
  dim name,url,pic,ispic,username,country,lang,remark,counter,isgood,hidden,tim
  if chk() then
    name=code_admin("name",1,50)
    url=code_admin("url",1,100)
    remark=code_admin("remark",1,250)
    csid=trim(request.form("c_id"))
    if cs_nd(csid)=false then
      call admin_error("请选择 "&tit_fir&"类型 ！")
      exit sub
    end if
    if name="" or url="" or lcase(url)="http://" or remark="" then
      call admin_error(tit_fir&"名称、地址和说明 不能为空！")
      exit sub
    end if
    pic=code_admin("pic",1,100)
    username=code_admin("username",1,20)
    if symbol_name(username)=false then username=login_username
    country=code_admin("country",1,20)
    lang=code_admin("lang",1,20)
    tim=joekoe_cms.now_time
    counter=0
    isgood=false
    hidden=false
    call chk_cid_sid()
    sql="select * from "&data_name
    call joekoe_cms.exec(sql,-1)
    rs.open sql,conn,1,3
    rs.addnew
    rs("c_id")=cid
    rs("s_id")=sid
    rs("name")=name
    rs("url")=url
    rs("pic")=pic
    rs("username")=username
    rs("country")=country
    rs("lang")=lang
    rs("remark")=remark
    rs("counter")=counter
    rs("isgood")=isgood
    rs("hidden")=true
    rs("tim")=tim
    rs.update
    rs.close
    call upload_note(index_url,first_id(data_name,"id"))
    call admin_msg("推荐")
    exit sub
  end if
  call form_first()
  ispic=joekoe_cms.rand_file(nsort)
%>
<tr class=bg_td><td width='15%'><%response.write tit_fir%>名称：</td><td width='85%'><input type=text size=60 name=name value='' maxlength=50><%response.write redx%></td></tr>
<tr class=bg_td><td><%response.write tit_fir%>类型：</td><td><%call chk_csid(nsort,cid,sid)%></td></tr>
<tr class=bg_td><td><%response.write tit_fir%>地址：</td><td><input type=text size=60 name=url value='http://' maxlength=100><%response.write redx%></td></tr>
<tr class=bg_td><td>国家地区：</td><td><select name=country size=1>
<option>中国</option>
<option>香港</option>
<option>台湾</option>
<option>美国</option>
<option>英国</option>
<option>日本</option>
<option>韩国</option>
<option>加拿大</option>
<option>澳大利亚</option>
<option>新西兰</option>
<option>俄罗斯</option>
<option>意大利</option>
<option>法国</option>
<option>西班牙</option>
<option>德国</option>
<option>其它国家</option>
</select>&nbsp;&nbsp;&nbsp;<%response.write tit_fir%>语言：<select name=lang size=1>
<option>简体中文</option>
<option>繁体中文</option>
<option>English</option>
<option>其它语言</option>
</select></td></tr>
<tr class=bg_td><td>图片说明：</td><td><input type=text name=pic value='' size=60 maxlength=100></td></tr>
<tr class=bg_td><td>上传图片：</td><td><iframe frameborder=0 name=upload_frame width='100%' height=30 scrolling=no src='upload.asp?uppath=website&upname=<%response.write ispic%>&uptext=pic'></iframe></td></tr>
<tr class=bg_td><td valign=top class=htd><br><%response.write tit_fir%>说明：<br><=250B</td><td><textarea name=remark rows=5 cols=60></textarea></td></tr>
<%
  call submit_add()
end sub

sub put_gallery()
  dim name,ispic,spic,pic,remark,username,power,emoney,counter,tim,istop,hidden
  if chk() then
    name=code_admin("name",1,50)
    pic=code_admin("pic",1,100)
    remark=code_admin("remark",1,250)
    csid=trim(request.form("c_id"))
    if cs_nd(csid)=false then
      call admin_error("请选择 "&tit_fir&"类型 ！")
      exit sub
    end if
    if name="" or pic="" or remark="" then
      call admin_error(tit_fir&"名称、地址和说明 不能为空！")
      exit sub
    end if
    spic=code_admin("spic",1,100)
    username=code_admin("username",1,20)
    if symbol_name(username)=false then username=login_username
    power=code_admin("power",1,50)
    power=replace(power," ","")
    power=replace(power,",",".")
    emoney=trim(request.form("emoney"))
    if not isnumeric(emoney) then emoney=0
    tim=joekoe_cms.now_time
    counter=0
    istop=0
    hidden=false
    call chk_cid_sid()
    sql="select * from "&data_name
    call joekoe_cms.exec(sql,-1)
    rs.open sql,conn,1,3
    rs.addnew
    rs("c_id")=cid
    rs("s_id")=sid
    rs("types")=types
    rs("name")=name
    rs("spic")=spic
    rs("spic")=spic
    rs("pic")=pic
    rs("remark")=remark
    rs("username")=username
    rs("power")=power
    rs("emoney")=emoney
    rs("counter")=counter
    rs("istop")=istop
    rs("hidden")=hidden
    rs("tim")=tim
    rs.update
    rs.close
    call upload_note(index_url,first_id(data_name,"id"))
    call admin_msg("上传")
    exit sub
  end if
  call form_first()
  ispic=joekoe_cms.rand_file(nsort)
%>
<tr class=bg_td><td width='15%'><%response.write tit_fir%>名称：</td><td width='85%'><input type=text size=40 name=name value='' maxlength=50><%response.write redx%></td></tr>
<tr class=bg_td><td><%response.write tit_fir%>分类：</td><td><%call chk_csid(nsort,cid,sid)%></td></tr>
<%ispic=joekoe_cms.rand_file(nsort)%>
<tr class=bg_td><td><%response.write tit_fir%>小图片：</td><td><input type=text name=spic value='' size=50 maxlength=100>&nbsp;　<a href='upload.asp?uppath=gallery&upname=<%response.write ispic%>&uptext=spic' target=upload_frames>上传小图片</a></td></tr>
<%ispic=joekoe_cms.rand_file(nsort)%>
<tr class=bg_td><td><%response.write tit_fir%>地址：</td><td><input type=text name=pic value='' size=50 maxlength=100><%response.write redx%><a href='upload.asp?uppath=gallery&upname=<%response.write ispic%>&uptext=pic' target=upload_frames>上传<%response.write tit_fir%></a></td></tr>
<tr class=bg_td><td>上传文件：</td><td><iframe frameborder=0 name=upload_frames width='100%' height=30 scrolling=no src='upload.asp?uppath=gallery&upname=<%response.write ispic%>&uptext=pic'></iframe></td></tr>
<tr class=bg_td>
<td><%call frm_ubb_type(" class=bg_td")%></td>
<td><%call frm_ubb("add_frm","remark","&nbsp;&nbsp;")%></td>
</tr>
<tr class=bg_td><td><%response.write tit_fir%>说明：<br><br><=250字符</td><td><textarea name=remark maxlength=250 rows=8 cols=60></textarea></td></tr>
<%
  call chk_power("浏览","",1)
  call submit_add()
end sub

sub put_down()
  dim ddim,name,keyes,url,url2,homepage,sizes,types,genre,os,power,emoney,username,tim,counter,hidden,pic,ispic,remark
  if chk() then
    name=code_admin("name",1,50)
    url=code_admin("url",1,200)
    remark=request.form("remark")
    csid=trim(request.form("c_id"))
    if cs_nd(csid)=false then
      call admin_error("请选择 "&tit_fir&"类型 ！")
      exit sub
    end if
    if name="" or url="" or remark="" then
      call admin_error(tit_fir&"标题、下载地址 和 "&tit_fir&"内容 不能为空！")
      exit sub
    end if
    url2=code_admin("url2",1,200)
    homepage=code_admin("homepage",1,50)
    sizes=code_admin("sizes",1,10)
    types=trim(request.form("types"))
    if not isnumeric(types) then types=0
    genre=code_admin("genre",1,5)
    os=code_admin("os",1,100)
    os=replace(os," ","")
    pic=code_admin("pic",1,100)
    keyes=code_admin("keyes",1,20)
    power=code_admin("power",1,50)
    power=replace(power," ","")
    power=replace(power,",",".")
    emoney=trim(request.form("emoney"))
    if not isnumeric(emoney) then emoney=0
    username=code_admin("username",1,20)
    if symbol_name(username)=false then username=login_username
    tim=joekoe_cms.now_time
    counter=0
    hidden=false
    call chk_cid_sid()
    sql="select * from "&data_name
    call joekoe_cms.exec(sql,-1)
    rs.open sql,conn,1,3
    rs.addnew
    rs("c_id")=cid
    rs("s_id")=sid
    rs("name")=name
    rs("url")=url
    rs("url2")=url2
    rs("homepage")=homepage
    rs("sizes")=sizes
    rs("types")=types
    rs("genre")=genre
    rs("os")=os
    rs("power")=power
    rs("emoney")=emoney
    rs("username")=username
    rs("tim")=tim
    rs("counter")=counter
    rs("hidden")=hidden
    rs("keyes")=keyes
    rs("pic")=pic
    rs("remark")=remark
    rs.update
    rs.close
    call upload_note(index_url,first_id(data_name,"id"))
    call admin_msg("发布")
    exit sub
  end if
  call form_first()
  ispic=joekoe_cms.rand_file(index_url)
%>
<tr class=bg_td>
<td width='15%'><%response.write tit_fir%>标题：</td>
<td width='85%'><input type=text name=name size=60 maxlength=50><%response.write redx%></td>
</tr>
<tr class=bg_td>
<td><%response.write tit_fir%>分类：</td>
<td><%call chk_csid(nsort,cid,sid)%></td>
</tr>
<tr class=bg_td>
<td><%response.write tit_fir%>关键字：</td>
<td><%call frm_keyes("")%></td>
</tr>
<tr class=bg_td>
<td><%response.write tit_fir%>发布人：</td>
<td><input type=text name=username value='<%response.write login_username%>' size=20 maxlength=20>&nbsp;&nbsp;<%call chk_emoney(0)%></td>
</tr>
<%call chk_power("下载","",1)%>
<tr class=bg_td>
<td>软件大小：</td><td><input type=text name=sizes value='KB' size=10 maxlength=10>&nbsp;&nbsp;授权类型：<select name=genre size=1><%
  ddim=split(dim_down(1),":")
  for i=0 to ubound(ddim)
    response.write vbcrlf&"<option>"&ddim(i)&"</option>"
  next
  erase ddim
%></select>&nbsp;&nbsp;推荐等级：<select name=types size=1>
<option value='0'>没有等级</option>
<option value='1'>一星级</option>
<option value='2'>二星级</option>
<option value='3'>三星级</option>
<option value='4'>四星级</option>
<option value='5'>五星级</option>
</select>&nbsp;五星级同时为推荐</td>
</tr>
<tr class=bg_td>
<td>运行环境：</td><td><%
  ddim=split(dim_down(0),":")
  for i=0 to ubound(ddim)
    response.write "<input type=checkbox name=os value='"&ddim(i)&"' class=bg_td>"&ddim(i)
  next
  erase ddim
%></td>
</tr>
<tr class=bg_td>
<td>本站下载：</td>
<td><input type=text name=url value='' size=60 maxlength=200><%response.write redx%></td>
</tr>
<tr class=bg_td>
<td>镜像下载：</td>
<td><input type=text name=url2 value='http://' size=60 maxlength=200></td>
</tr>
<tr class=bg_td>
<td><%response.write tit_fir%>主页：</td>
<td><input type=text name=homepage value='http://' size=40 maxlength=50></td>
</tr>
<tr class=bg_td>
<td><%call frm_ubb_type(" class=bg_td")%></td>
<td><%call frm_ubb("add_frm","remark","&nbsp;&nbsp;")%></td>
</tr>
<tr class=bg_td>
<td valign=top><%response.write tit_fir%>内容：</td>
<td><textarea name=remark rows=10 cols=65></textarea></td>
</tr>
<tr class=bg_td>
<td><%response.write tit_fir%>图片：</td>
<td><input type=text name=pic value='<%response.write pic%>' size=40 maxlength=100>&nbsp;&nbsp;&nbsp;<a href='upload.asp?uppath=<%response.write index_url%>&upname=<%response.write ispic%>&uptext=pic' target=upload_frame>上传图片</a>&nbsp;&nbsp;<a href='upload.asp?uppath=<%response.write index_url%>&upname=<%response.write left(index_url,1)%>&uptext=remark' target=upload_frame>上传至内容</a></td>
</tr>
<tr class=bg_td>
<td>上传图片：</td>
<td><iframe frameborder=0 name=upload_frame width='100%' height=30 scrolling=no src='upload.asp?uppath=<%response.write index_url%>&upname=<%response.write ispic%>&uptext=pic'></iframe></td>
</tr>
<%
  call submit_add()
end sub

sub put_news()
  dim topic,keyes,comto,username,tim,counter,istop,hidden,pic,ispic,word
  if chk() then
    topic=code_admin("topic",1,40)
    word=request.form("word")
    csid=trim(request.form("c_id"))
    if cs_nd(csid)=false then
      call admin_error("请选择 "&tit_fir&"类型 ！")
      exit sub
    end if
    if topic="" or word="" then
      call admin_error(tit_fir&"标题 和 "&tit_fir&"内容 不能为空！")
      exit sub
    end if
    keyes=code_admin("keyes",1,20)
    comto=code_admin("comto",1,20)
    username=code_admin("username",1,20)
    if symbol_name(username)=false then username=login_username
    tim=joekoe_cms.now_time
    pic=code_admin("pic",1,100)
    ispic=true
    if pic="" then ispic=false
    counter=0
    istop=0
    hidden=false
    call chk_cid_sid()
    sql="select * from "&data_name
    call joekoe_cms.exec(sql,-1)
    rs.open sql,conn,1,3
    rs.addnew
    rs("c_id")=cid
    rs("s_id")=sid
    rs("cod")=cod_type()
    rs("topic")=topic
    rs("comto")=comto
    rs("username")=username
    rs("tim")=tim
    rs("counter")=counter
    rs("istop")=istop
    rs("hidden")=hidden
    rs("keyes")=keyes
    rs("pic")=pic
    rs("ispic")=ispic
    rs("word")=word
    rs.update
    rs.close
    call upload_note(index_url,first_id(data_name,"id"))
    call admin_msg("发布")
    exit sub
  end if
  call form_first()
  ispic=joekoe_cms.rand_file(index_url)
%>
<tr class=bg_td>
<td width='15%'><%response.write tit_fir%>标题：</td>
<td width='85%'><input type=text name=topic size=60 maxlength=40><%response.write redx%></td>
</tr>
<tr class=bg_td>
<td><%response.write tit_fir%>分类：</td>
<td><%call chk_csid(nsort,cid,sid)%></td>
</tr>
<tr class=bg_td>
<td><%response.write tit_fir%>关键字：</td>
<td><%call frm_keyes("")%></td>
</tr>
<tr class=bg_td>
<td><%response.write tit_fir%>出处：</td>
<td><input type=text name=comto size=20 maxlength=20>&nbsp;&nbsp;<%response.write tit_fir%>发布人：<input type=text name=username value='<%response.write login_username%>' size=20 maxlength=20></td>
</tr>
<%call html_edit(1,"add_frm","word"," class=bg_td")%>
<tr class=bg_td>
<td valign=top><%response.write tit_fir%>内容：</td>
<td><textarea name=word rows=15 cols=65></textarea></td>
</tr>
<tr class=bg_td>
<td><%response.write tit_fir%>图片：</td>
<td><input type=text name=pic value='<%response.write pic%>' size=40 maxlength=100>&nbsp;&nbsp;&nbsp;<a href='upload.asp?uppath=<%response.write index_url%>&upname=<%response.write ispic%>&uptext=pic' target=upload_frame>上传图片</a>&nbsp;&nbsp;<a href='upload.asp?uppath=<%response.write index_url%>&upname=<%response.write left(index_url,1)%>&uptext=word' target=upload_frame>上传至内容</a></td>
</tr>
<tr class=bg_td>
<td>上传图片：</td>
<td><iframe frameborder=0 name=upload_frame width='100%' height=30 scrolling=no src='upload.asp?uppath=<%response.write index_url%>&upname=<%response.write ispic%>&uptext=pic'></iframe></td>
</tr>
<%
  call submit_add()
end sub

sub put_art()
  dim topic,keyes,comto,author,power,emoney,username,tim,counter,istop,hidden,word
  if chk() then
    topic=code_admin("topic",1,50)
    word=request.form("word")
    csid=trim(request.form("c_id"))
    if cs_nd(csid)=false then
      call admin_error("请选择 "&tit_fir&"类型 ！")
      exit sub
    end if
    if topic="" or word="" then
      call admin_error(tit_fir&"标题 和 "&tit_fir&"内容 不能为空！")
      exit sub
    end if
    keyes=code_admin("keyes",1,20)
    comto=code_admin("comto",1,20)
    author=code_admin("author",1,20)
    power=code_admin("power",1,50)
    power=replace(power," ","")
    power=replace(power,",",".")
    emoney=trim(request.form("emoney"))
    if not isnumeric(emoney) then emoney=0
    username=code_admin("username",1,20)
    if symbol_name(username)=false then username=login_username
    tim=joekoe_cms.now_time
    counter=0
    istop=0
    hidden=false
    call chk_cid_sid()
    sql="select * from "&data_name
    call joekoe_cms.exec(sql,-1)
    rs.open sql,conn,1,3
    rs.addnew
    rs("c_id")=cid
    rs("s_id")=sid
    rs("cod")=cod_type()
    rs("topic")=topic
    rs("comto")=comto
    rs("author")=author
    rs("power")=power
    rs("emoney")=emoney
    rs("username")=username
    rs("tim")=tim
    rs("counter")=counter
    rs("istop")=istop
    rs("hidden")=hidden
    rs("keyes")=keyes
    rs("word")=word
    rs.update
    rs.close
    call upload_note(index_url,first_id(data_name,"id"))
    call admin_msg("发表")
    exit sub
  end if
  call form_first()
%>
<tr class=bg_td>
<td width='15%'><%response.write tit_fir%>标题：</td>
<td width='85%'><input type=text name=topic size=60 maxlength=50><%response.write redx%></td>
</tr>
<tr class=bg_td>
<td><%response.write tit_fir%>分类：</td>
<td><%call chk_csid(nsort,cid,sid)%></td>
</tr>
<tr class=bg_td>
<td><%response.write tit_fir%>关键字：</td>
<td><%call frm_keyes("")%></td>
</tr>
<tr class=bg_td>
<td><%response.write tit_fir%>出处：</td>
<td><input type=text name=comto size=20 maxlength=20>  <%response.write tit_fir%>作者：<input type=text name=author value='' size=20 maxlength=20></td>
</tr>
<tr class=bg_td>
<td><%response.write tit_fir%>发布人：</td>
<td><input type=text name=username value='<%response.write login_username%>' size=20 maxlength=20 readonly>  <%call chk_emoney(0)%></td>
</tr>
<%
call chk_power("浏览","",1)
call html_edit(1,"add_frm","word"," class=bg_td")
%>
<tr class=bg_td>
<td valign=top><%response.write tit_fir%>内容：</td>
<td><textarea name=word rows=15 cols=65></textarea></td>
</tr>
<tr class=bg_td>
<td>上传图片：</td>
<td><iframe frameborder=0 name=upload_frame width='100%' height=30 scrolling=no src='upload.asp?uppath=<%response.write index_url%>&upname=<%response.write left(index_url,1)%>&uptext=word'></iframe></td>
</tr>
<%
  call submit_add()
end sub
sub put_gsjs()
  dim topic,keyes,comto,author,power,emoney,username,tim,counter,istop,hidden,word
  if chk() then
    topic=code_admin("topic",1,50)
    word=request.form("word")
    csid=trim(request.form("c_id"))
    if cs_nd(csid)=false then
      call admin_error("请选择 "&tit_fir&"类型 ！")
      exit sub
    end if
    if topic="" or word="" then
      call admin_error(tit_fir&"标题 和 "&tit_fir&"内容 不能为空！")
      exit sub
    end if
    keyes=code_admin("keyes",1,20)
    comto=code_admin("comto",1,20)
    author=code_admin("author",1,20)
    power=code_admin("power",1,50)
    power=replace(power," ","")
    power=replace(power,",",".")
    emoney=trim(request.form("emoney"))
    if not isnumeric(emoney) then emoney=0
    username=code_admin("username",1,20)
    if symbol_name(username)=false then username=login_username
    tim=joekoe_cms.now_time
    counter=0
    istop=0
    hidden=false
    call chk_cid_sid()
    sql="select * from "&data_name
    call joekoe_cms.exec(sql,-1)
    rs.open sql,conn,1,3
    rs.addnew
    rs("c_id")=cid
    rs("s_id")=sid
    rs("cod")=cod_type()
    rs("topic")=topic
    rs("comto")=comto
    rs("author")=author
    rs("power")=power
    rs("emoney")=emoney
    rs("username")=username
    rs("tim")=tim
    rs("counter")=counter
    rs("istop")=istop
    rs("hidden")=hidden
    rs("keyes")=keyes
    rs("word")=word
    rs.update
    rs.close
    call upload_note(index_url,first_id(data_name,"id"))
    call admin_msg("发表")
    exit sub
  end if
  call form_first()
%>
<tr class=bg_td>
<td width='15%'><%response.write tit_fir%>标题：</td>
<td width='85%'><input type=text name=topic size=60 maxlength=50><%response.write redx%></td>
</tr>
<tr class=bg_td>
<td><%response.write tit_fir%>分类：</td>
<td><%call chk_csid(nsort,cid,sid)%></td>
</tr>
<tr class=bg_td>
<td><%response.write tit_fir%>关键字：</td>
<td><%call frm_keyes("")%></td>
</tr>
<tr class=bg_td>
<td><%response.write tit_fir%>出处：</td>
<td><input type=text name=comto size=20 maxlength=20>  <%response.write tit_fir%>作者：<input type=text name=author value='' size=20 maxlength=20></td>
</tr>
<tr class=bg_td>
<td><%response.write tit_fir%>发布人：</td>
<td><input type=text name=username value='<%response.write login_username%>' size=20 maxlength=20 readonly>  <%call chk_emoney(0)%></td>
</tr>
<%
call chk_power("浏览","",1)
call html_edit(1,"add_frm","word"," class=bg_td")
%>
<tr class=bg_td>
<td valign=top><%response.write tit_fir%>内容：</td>
<td><textarea name=word rows=15 cols=65></textarea></td>
</tr>
<tr class=bg_td>
<td>上传图片：</td>
<td><iframe frameborder=0 name=upload_frame width='100%' height=30 scrolling=no src='upload.asp?uppath=<%response.write index_url%>&upname=<%response.write left(index_url,1)%>&uptext=word'></iframe></td>
</tr>
<%
  call submit_add()
end sub
sub put_xxgz()
  dim topic,keyes,comto,author,power,emoney,username,tim,counter,istop,hidden,word
  if chk() then
    topic=code_admin("topic",1,50)
    word=request.form("word")
    csid=trim(request.form("c_id"))
    if cs_nd(csid)=false then
      call admin_error("请选择 "&tit_fir&"类型 ！")
      exit sub
    end if
    if topic="" or word="" then
      call admin_error(tit_fir&"标题 和 "&tit_fir&"内容 不能为空！")
      exit sub
    end if
    keyes=code_admin("keyes",1,20)
    comto=code_admin("comto",1,20)
    author=code_admin("author",1,20)
    power=code_admin("power",1,50)
    power=replace(power," ","")
    power=replace(power,",",".")
    emoney=trim(request.form("emoney"))
    if not isnumeric(emoney) then emoney=0
    username=code_admin("username",1,20)
    if symbol_name(username)=false then username=login_username
    tim=joekoe_cms.now_time
    counter=0
    istop=0
    hidden=false
    call chk_cid_sid()
    sql="select * from "&data_name
    call joekoe_cms.exec(sql,-1)
    rs.open sql,conn,1,3
    rs.addnew
    rs("c_id")=cid
    rs("s_id")=sid
    rs("cod")=cod_type()
    rs("topic")=topic
    rs("comto")=comto
    rs("author")=author
    rs("power")=power
    rs("emoney")=emoney
    rs("username")=username
    rs("tim")=tim
    rs("counter")=counter
    rs("istop")=istop
    rs("hidden")=hidden
    rs("keyes")=keyes
    rs("word")=word
    rs.update
    rs.close
    call upload_note(index_url,first_id(data_name,"id"))
    call admin_msg("发表")
    exit sub
  end if
  call form_first()
%>
<tr class=bg_td>
<td width='15%'><%response.write tit_fir%>标题：</td>
<td width='85%'><input type=text name=topic size=60 maxlength=50><%response.write redx%></td>
</tr>
<tr class=bg_td>
<td><%response.write tit_fir%>分类：</td>
<td><%call chk_csid(nsort,cid,sid)%></td>
</tr>
<tr class=bg_td>
<td><%response.write tit_fir%>关键字：</td>
<td><%call frm_keyes("")%></td>
</tr>
<tr class=bg_td>
<td><%response.write tit_fir%>出处：</td>
<td><input type=text name=comto size=20 maxlength=20>  <%response.write tit_fir%>作者：<input type=text name=author value='' size=20 maxlength=20></td>
</tr>
<tr class=bg_td>
<td><%response.write tit_fir%>发布人：</td>
<td><input type=text name=username value='<%response.write login_username%>' size=20 maxlength=20 readonly>  <%call chk_emoney(0)%></td>
</tr>
<%
call chk_power("浏览","",1)
call html_edit(1,"add_frm","word"," class=bg_td")
%>
<tr class=bg_td>
<td valign=top><%response.write tit_fir%>内容：</td>
<td><textarea name=word rows=15 cols=65></textarea></td>
</tr>
<tr class=bg_td>
<td>上传图片：</td>
<td><iframe frameborder=0 name=upload_frame width='100%' height=30 scrolling=no src='upload.asp?uppath=<%response.write index_url%>&upname=<%response.write left(index_url,1)%>&uptext=word'></iframe></td>
</tr>
<%
  call submit_add()
end sub
sub put_jswz()
  dim topic,keyes,comto,author,power,emoney,username,tim,counter,istop,hidden,word
  if chk() then
    topic=code_admin("topic",1,50)
    word=request.form("word")
    csid=trim(request.form("c_id"))
    if cs_nd(csid)=false then
      call admin_error("请选择 "&tit_fir&"类型 ！")
      exit sub
    end if
    if topic="" or word="" then
      call admin_error(tit_fir&"标题 和 "&tit_fir&"内容 不能为空！")
      exit sub
    end if
    keyes=code_admin("keyes",1,20)
    comto=code_admin("comto",1,20)
    author=code_admin("author",1,20)
    power=code_admin("power",1,50)
    power=replace(power," ","")
    power=replace(power,",",".")
    emoney=trim(request.form("emoney"))
    if not isnumeric(emoney) then emoney=0
    username=code_admin("username",1,20)
    if symbol_name(username)=false then username=login_username
    tim=joekoe_cms.now_time
    counter=0
    istop=0
    hidden=false
    call chk_cid_sid()
    sql="select * from "&data_name
    call joekoe_cms.exec(sql,-1)
    rs.open sql,conn,1,3
    rs.addnew
    rs("c_id")=cid
    rs("s_id")=sid
    rs("cod")=cod_type()
    rs("topic")=topic
    rs("comto")=comto
    rs("author")=author
    rs("power")=power
    rs("emoney")=emoney
    rs("username")=username
    rs("tim")=tim
    rs("counter")=counter
    rs("istop")=istop
    rs("hidden")=hidden
    rs("keyes")=keyes
    rs("word")=word
    rs.update
    rs.close
    call upload_note(index_url,first_id(data_name,"id"))
    call admin_msg("发表")
    exit sub
  end if
  call form_first()
%>
<tr class=bg_td>
<td width='15%'><%response.write tit_fir%>标题：</td>
<td width='85%'><input type=text name=topic size=60 maxlength=50><%response.write redx%></td>
</tr>
<tr class=bg_td>
<td><%response.write tit_fir%>分类：</td>
<td><%call chk_csid(nsort,cid,sid)%></td>
</tr>
<tr class=bg_td>
<td><%response.write tit_fir%>关键字：</td>
<td><%call frm_keyes("")%></td>
</tr>
<tr class=bg_td>
<td><%response.write tit_fir%>出处：</td>
<td><input type=text name=comto size=20 maxlength=20>  <%response.write tit_fir%>作者：<input type=text name=author value='' size=20 maxlength=20></td>
</tr>
<tr class=bg_td>
<td><%response.write tit_fir%>发布人：</td>
<td><input type=text name=username value='<%response.write login_username%>' size=20 maxlength=20 readonly>  <%call chk_emoney(0)%></td>
</tr>
<%
call chk_power("浏览","",1)
call html_edit(1,"add_frm","word"," class=bg_td")
%>
<tr class=bg_td>
<td valign=top><%response.write tit_fir%>内容：</td>
<td><textarea name=word rows=15 cols=65></textarea></td>
</tr>
<tr class=bg_td>
<td>上传图片：</td>
<td><iframe frameborder=0 name=upload_frame width='100%' height=30 scrolling=no src='upload.asp?uppath=<%response.write index_url%>&upname=<%response.write left(index_url,1)%>&uptext=word'></iframe></td>
</tr>
<%
  call submit_add()
end sub
sub put_gsgl()
  dim topic,keyes,comto,author,power,emoney,username,tim,counter,istop,hidden,word
  if chk() then
    topic=code_admin("topic",1,50)
    word=request.form("word")
    csid=trim(request.form("c_id"))
    if cs_nd(csid)=false then
      call admin_error("请选择 "&tit_fir&"类型 ！")
      exit sub
    end if
    if topic="" or word="" then
      call admin_error(tit_fir&"标题 和 "&tit_fir&"内容 不能为空！")
      exit sub
    end if
    keyes=code_admin("keyes",1,20)
    comto=code_admin("comto",1,20)
    author=code_admin("author",1,20)
    power=code_admin("power",1,50)
    power=replace(power," ","")
    power=replace(power,",",".")
    emoney=trim(request.form("emoney"))
    if not isnumeric(emoney) then emoney=0
    username=code_admin("username",1,20)
    if symbol_name(username)=false then username=login_username
    tim=joekoe_cms.now_time
    counter=0
    istop=0
    hidden=false
    call chk_cid_sid()
    sql="select * from "&data_name
    call joekoe_cms.exec(sql,-1)
    rs.open sql,conn,1,3
    rs.addnew
    rs("c_id")=cid
    rs("s_id")=sid
    rs("cod")=cod_type()
    rs("topic")=topic
    rs("comto")=comto
    rs("author")=author
    rs("power")=power
    rs("emoney")=emoney
    rs("username")=username
    rs("tim")=tim
    rs("counter")=counter
    rs("istop")=istop
    rs("hidden")=hidden
    rs("keyes")=keyes
    rs("word")=word
    rs.update
    rs.close
    call upload_note(index_url,first_id(data_name,"id"))
    call admin_msg("发表")
    exit sub
  end if
  call form_first()
%>
<tr class=bg_td>
<td width='15%'><%response.write tit_fir%>标题：</td>
<td width='85%'><input type=text name=topic size=60 maxlength=50><%response.write redx%></td>
</tr>
<tr class=bg_td>
<td><%response.write tit_fir%>分类：</td>
<td><%call chk_csid(nsort,cid,sid)%></td>
</tr>
<tr class=bg_td>
<td><%response.write tit_fir%>关键字：</td>
<td><%call frm_keyes("")%></td>
</tr>
<tr class=bg_td>
<td><%response.write tit_fir%>出处：</td>
<td><input type=text name=comto size=20 maxlength=20>  <%response.write tit_fir%>作者：<input type=text name=author value='' size=20 maxlength=20></td>
</tr>
<tr class=bg_td>
<td><%response.write tit_fir%>发布人：</td>
<td><input type=text name=username value='<%response.write login_username%>' size=20 maxlength=20 readonly>  <%call chk_emoney(0)%></td>
</tr>
<%
call chk_power("浏览","",1)
call html_edit(1,"add_frm","word"," class=bg_td")
%>
<tr class=bg_td>
<td valign=top><%response.write tit_fir%>内容：</td>
<td><textarea name=word rows=15 cols=65></textarea></td>
</tr>
<tr class=bg_td>
<td>上传图片：</td>
<td><iframe frameborder=0 name=upload_frame width='100%' height=30 scrolling=no src='upload.asp?uppath=<%response.write index_url%>&upname=<%response.write left(index_url,1)%>&uptext=word'></iframe></td>
</tr>
<%
  call submit_add()
end sub
sub put_jspx()
  dim topic,keyes,comto,author,power,emoney,username,tim,counter,istop,hidden,word
  if chk() then
    topic=code_admin("topic",1,50)
    word=request.form("word")
    csid=trim(request.form("c_id"))
    if cs_nd(csid)=false then
      call admin_error("请选择 "&tit_fir&"类型 ！")
      exit sub
    end if
    if topic="" or word="" then
      call admin_error(tit_fir&"标题 和 "&tit_fir&"内容 不能为空！")
      exit sub
    end if
    keyes=code_admin("keyes",1,20)
    comto=code_admin("comto",1,20)
    author=code_admin("author",1,20)
    power=code_admin("power",1,50)
    power=replace(power," ","")
    power=replace(power,",",".")
    emoney=trim(request.form("emoney"))
    if not isnumeric(emoney) then emoney=0
    username=code_admin("username",1,20)
    if symbol_name(username)=false then username=login_username
    tim=joekoe_cms.now_time
    counter=0
    istop=0
    hidden=false
    call chk_cid_sid()
    sql="select * from "&data_name
    call joekoe_cms.exec(sql,-1)
    rs.open sql,conn,1,3
    rs.addnew
    rs("c_id")=cid
    rs("s_id")=sid
    rs("cod")=cod_type()
    rs("topic")=topic
    rs("comto")=comto
    rs("author")=author
    rs("power")=power
    rs("emoney")=emoney
    rs("username")=username
    rs("tim")=tim
    rs("counter")=counter
    rs("istop")=istop
    rs("hidden")=hidden
    rs("keyes")=keyes
    rs("word")=word
    rs.update
    rs.close
    call upload_note(index_url,first_id(data_name,"id"))
    call admin_msg("发表")
    exit sub
  end if
  call form_first()
%>
<tr class=bg_td>
<td width='15%'><%response.write tit_fir%>标题：</td>
<td width='85%'><input type=text name=topic size=60 maxlength=50><%response.write redx%></td>
</tr>
<tr class=bg_td>
<td><%response.write tit_fir%>分类：</td>
<td><%call chk_csid(nsort,cid,sid)%></td>
</tr>
<tr class=bg_td>
<td><%response.write tit_fir%>关键字：</td>
<td><%call frm_keyes("")%></td>
</tr>
<tr class=bg_td>
<td><%response.write tit_fir%>出处：</td>
<td><input type=text name=comto size=20 maxlength=20>  <%response.write tit_fir%>作者：<input type=text name=author value='' size=20 maxlength=20></td>
</tr>
<tr class=bg_td>
<td><%response.write tit_fir%>发布人：</td>
<td><input type=text name=username value='<%response.write login_username%>' size=20 maxlength=20 readonly>  <%call chk_emoney(0)%></td>
</tr>
<%
call chk_power("浏览","",1)
call html_edit(1,"add_frm","word"," class=bg_td")
%>
<tr class=bg_td>
<td valign=top><%response.write tit_fir%>内容：</td>
<td><textarea name=word rows=15 cols=65></textarea></td>
</tr>
<tr class=bg_td>
<td>上传图片：</td>
<td><iframe frameborder=0 name=upload_frame width='100%' height=30 scrolling=no src='upload.asp?uppath=<%response.write index_url%>&upname=<%response.write left(index_url,1)%>&uptext=word'></iframe></td>
</tr>
<%
  call submit_add()
end sub
sub put_zlcg()
  dim topic,keyes,comto,author,power,emoney,username,tim,counter,istop,hidden,word
  if chk() then
    topic=code_admin("topic",1,50)
    word=request.form("word")
    csid=trim(request.form("c_id"))
    if cs_nd(csid)=false then
      call admin_error("请选择 "&tit_fir&"类型 ！")
      exit sub
    end if
    if topic="" or word="" then
      call admin_error(tit_fir&"标题 和 "&tit_fir&"内容 不能为空！")
      exit sub
    end if
    keyes=code_admin("keyes",1,20)
    comto=code_admin("comto",1,20)
    author=code_admin("author",1,20)
    power=code_admin("power",1,50)
    power=replace(power," ","")
    power=replace(power,",",".")
    emoney=trim(request.form("emoney"))
    if not isnumeric(emoney) then emoney=0
    username=code_admin("username",1,20)
    if symbol_name(username)=false then username=login_username
    tim=joekoe_cms.now_time
    counter=0
    istop=0
    hidden=false
    call chk_cid_sid()
    sql="select * from "&data_name
    call joekoe_cms.exec(sql,-1)
    rs.open sql,conn,1,3
    rs.addnew
    rs("c_id")=cid
    rs("s_id")=sid
    rs("cod")=cod_type()
    rs("topic")=topic
    rs("comto")=comto
    rs("author")=author
    rs("power")=power
    rs("emoney")=emoney
    rs("username")=username
    rs("tim")=tim
    rs("counter")=counter
    rs("istop")=istop
    rs("hidden")=hidden
    rs("keyes")=keyes
    rs("word")=word
    rs.update
    rs.close
    call upload_note(index_url,first_id(data_name,"id"))
    call admin_msg("发表")
    exit sub
  end if
  call form_first()
%>
<tr class=bg_td>
<td width='15%'><%response.write tit_fir%>标题：</td>
<td width='85%'><input type=text name=topic size=60 maxlength=50><%response.write redx%></td>
</tr>
<tr class=bg_td>
<td><%response.write tit_fir%>分类：</td>
<td><%call chk_csid(nsort,cid,sid)%></td>
</tr>
<tr class=bg_td>
<td><%response.write tit_fir%>关键字：</td>
<td><%call frm_keyes("")%></td>
</tr>
<tr class=bg_td>
<td><%response.write tit_fir%>出处：</td>
<td><input type=text name=comto size=20 maxlength=20>  <%response.write tit_fir%>作者：<input type=text name=author value='' size=20 maxlength=20></td>
</tr>
<tr class=bg_td>
<td><%response.write tit_fir%>发布人：</td>
<td><input type=text name=username value='<%response.write login_username%>' size=20 maxlength=20 readonly>  <%call chk_emoney(0)%></td>
</tr>
<%
call chk_power("浏览","",1)
call html_edit(1,"add_frm","word"," class=bg_td")
%>
<tr class=bg_td>
<td valign=top><%response.write tit_fir%>内容：</td>
<td><textarea name=word rows=15 cols=65></textarea></td>
</tr>
<tr class=bg_td>
<td>上传图片：</td>
<td><iframe frameborder=0 name=upload_frame width='100%' height=30 scrolling=no src='upload.asp?uppath=<%response.write index_url%>&upname=<%response.write left(index_url,1)%>&uptext=word'></iframe></td>
</tr>
<%
  call submit_add()
end sub
sub put_chms()
  dim topic,keyes,comto,author,power,emoney,username,tim,counter,istop,hidden,word
  if chk() then
    topic=code_admin("topic",1,50)
    word=request.form("word")
    csid=trim(request.form("c_id"))
    if cs_nd(csid)=false then
      call admin_error("请选择 "&tit_fir&"类型 ！")
      exit sub
    end if
    if topic="" or word="" then
      call admin_error(tit_fir&"标题 和 "&tit_fir&"内容 不能为空！")
      exit sub
    end if
    keyes=code_admin("keyes",1,20)
    comto=code_admin("comto",1,20)
    author=code_admin("author",1,20)
    power=code_admin("power",1,50)
    power=replace(power," ","")
    power=replace(power,",",".")
    emoney=trim(request.form("emoney"))
    if not isnumeric(emoney) then emoney=0
    username=code_admin("username",1,20)
    if symbol_name(username)=false then username=login_username
    tim=joekoe_cms.now_time
    counter=0
    istop=0
    hidden=false
    call chk_cid_sid()
    sql="select * from "&data_name
    call joekoe_cms.exec(sql,-1)
    rs.open sql,conn,1,3
    rs.addnew
    rs("c_id")=cid
    rs("s_id")=sid
    rs("cod")=cod_type()
    rs("topic")=topic
    rs("comto")=comto
    rs("author")=author
    rs("power")=power
    rs("emoney")=emoney
    rs("username")=username
    rs("tim")=tim
    rs("counter")=counter
    rs("istop")=istop
    rs("hidden")=hidden
    rs("keyes")=keyes
    rs("word")=word
    rs.update
    rs.close
    call upload_note(index_url,first_id(data_name,"id"))
    call admin_msg("发表")
    exit sub
  end if
  call form_first()
%>
<tr class=bg_td>
<td width='15%'><%response.write tit_fir%>标题：</td>
<td width='85%'><input type=text name=topic size=60 maxlength=50><%response.write redx%></td>
</tr>
<tr class=bg_td>
<td><%response.write tit_fir%>分类：</td>
<td><%call chk_csid(nsort,cid,sid)%></td>
</tr>
<tr class=bg_td>
<td><%response.write tit_fir%>关键字：</td>
<td><%call frm_keyes("")%></td>
</tr>
<tr class=bg_td>
<td><%response.write tit_fir%>出处：</td>
<td><input type=text name=comto size=20 maxlength=20>  <%response.write tit_fir%>作者：<input type=text name=author value='' size=20 maxlength=20></td>
</tr>
<tr class=bg_td>
<td><%response.write tit_fir%>发布人：</td>
<td><input type=text name=username value='<%response.write login_username%>' size=20 maxlength=20 readonly>  <%call chk_emoney(0)%></td>
</tr>
<%
call chk_power("浏览","",1)
call html_edit(1,"add_frm","word"," class=bg_td")
%>
<tr class=bg_td>
<td valign=top><%response.write tit_fir%>内容：</td>
<td><textarea name=word rows=15 cols=65></textarea></td>
</tr>
<tr class=bg_td>
<td>上传图片：</td>
<td><iframe frameborder=0 name=upload_frame width='100%' height=30 scrolling=no src='upload.asp?uppath=<%response.write index_url%>&upname=<%response.write left(index_url,1)%>&uptext=word'></iframe></td>
</tr>
<%
  call submit_add()
end sub

sub put_jsjl()
  dim topic,keyes,comto,author,power,emoney,username,tim,counter,istop,hidden,word
  if chk() then
    topic=code_admin("topic",1,50)
    word=request.form("word")
    csid=trim(request.form("c_id"))
    if cs_nd(csid)=false then
      call admin_error("请选择 "&tit_fir&"类型 ！")
      exit sub
    end if
    if topic="" or word="" then
      call admin_error(tit_fir&"标题 和 "&tit_fir&"内容 不能为空！")
      exit sub
    end if
    keyes=code_admin("keyes",1,20)
    comto=code_admin("comto",1,20)
    author=code_admin("author",1,20)
    power=code_admin("power",1,50)
    power=replace(power," ","")
    power=replace(power,",",".")
    emoney=trim(request.form("emoney"))
    if not isnumeric(emoney) then emoney=0
    username=code_admin("username",1,20)
    if symbol_name(username)=false then username=login_username
    tim=joekoe_cms.now_time
    counter=0
    istop=0
    hidden=false
    call chk_cid_sid()
    sql="select * from "&data_name
    call joekoe_cms.exec(sql,-1)
    rs.open sql,conn,1,3
    rs.addnew
    rs("c_id")=cid
    rs("s_id")=sid
    rs("cod")=cod_type()
    rs("topic")=topic
    rs("comto")=comto
    rs("author")=author
    rs("power")=power
    rs("emoney")=emoney
    rs("username")=username
    rs("tim")=tim
    rs("counter")=counter
    rs("istop")=istop
    rs("hidden")=hidden
    rs("keyes")=keyes
    rs("word")=word
    rs.update
    rs.close
    call upload_note(index_url,first_id(data_name,"id"))
    call admin_msg("发表")
    exit sub
  end if
  call form_first()
%>
<tr class=bg_td>
<td width='15%'><%response.write tit_fir%>标题：</td>
<td width='85%'><input type=text name=topic size=60 maxlength=50><%response.write redx%></td>
</tr>
<tr class=bg_td>
<td><%response.write tit_fir%>分类：</td>
<td><%call chk_csid(nsort,cid,sid)%></td>
</tr>
<tr class=bg_td>
<td><%response.write tit_fir%>关键字：</td>
<td><%call frm_keyes("")%></td>
</tr>
<tr class=bg_td>
<td><%response.write tit_fir%>出处：</td>
<td><input type=text name=comto size=20 maxlength=20>  <%response.write tit_fir%>作者：<input type=text name=author value='' size=20 maxlength=20></td>
</tr>
<tr class=bg_td>
<td><%response.write tit_fir%>发布人：</td>
<td><input type=text name=username value='<%response.write login_username%>' size=20 maxlength=20 readonly>  <%call chk_emoney(0)%></td>
</tr>
<%
call chk_power("浏览","",1)
call html_edit(1,"add_frm","word"," class=bg_td")
%>
<tr class=bg_td>
<td valign=top><%response.write tit_fir%>内容：</td>
<td><textarea name=word rows=15 cols=65></textarea></td>
</tr>
<tr class=bg_td>
<td>上传图片：</td>
<td><iframe frameborder=0 name=upload_frame width='100%' height=30 scrolling=no src='upload.asp?uppath=<%response.write index_url%>&upname=<%response.write left(index_url,1)%>&uptext=word'></iframe></td>
</tr>
<%
  call submit_add()
end sub

sub put_close(tvar)
  response.write "<tr class=bg_td><td colspan=2 height=200 align=center><font class=red>对不起！本站暂时关闭 <font class=blue>"&tvar&tit_fir&"</font> 的功能。</font><br><br>如有需要，请与管理员联系。谢谢！</td></tr>"
end sub

sub admin_error(tvar)
  response.write vbcrlf&"<tr class=bg_td><td colspan=2 align=center><br>"&tvar&"<br><br>"&go_back&"<br><br></td></tr>"
end sub

function chk()
  chk=joekoe_cms.chk()
  if session(session_for&"addfrm")=false then chk=false
end function

sub form_first()
  session(session_for&"addfrm")=true
end sub

sub admin_msg(tvar)
  session(session_for&"addfrm")=false
if action="music" then
    call joekoe_cms.exec("update user_data set integral=integral+"&int(music_dim(8))&" where username='"&login_username&"'",0)
  else
    call joekoe_cms.exec("update user_data set integral=integral+"&int(dim_num(24))&" where username='"&login_username&"'",0)
  end if
%>
<tr class=bg_td><td colspan=2 align=center height=200><font class=red>已成功<%response.write tvar%>了一个<%response.write tit_fir%>！</font><br><br>请等待管理审核通过……</td></tr>
<%
end sub


sub put_flea()
  dim name,isgood,remark,nname,email,price,url,phone,types,pic,ispic,username,tim,address,otim,submit_add 
  if chk() then
    name=code_admin("name",1,50)
    csid=trim(request.form("c_id"))
    nname=code_admin("nname",1,100)
    email=code_admin("email",1,100)
    remark=code_admin("remark",1,250)
	address=code_admin("address",1,100)
	tim=code_admin("tim",1,20)
    tim=joekoe_cms.time_type(tim,1)
    if tim="" then tim=joekoe_cms.now_time
	otim=code_admin("otim",1,20)
    if cs_nd(csid)=false then
      call admin_error("请选择 "&tit_fir&"类型 ！")
      exit sub
    end if    
	if not(isdate(otim)) or instr(otim,"-")=0 or instr(otim,":")>0 then
      call admin_error(tit_fir&"的 <font class=red>过期时间</font> 为空或不符合规则！")
      exit sub
    end if
    if name="" or nname="" or remark="" or email_ok(email,50)=false then 
      call admin_error(tit_fir&"名称、联系人、电子邮件、"&tit_fir&"说明 为空或电子邮件不符合规则！")
      exit sub
    end if
	if trim(request.form("read"))<>"yes" then
      call admin_error("抱歉，必须阅读并同意下面的声明才能发布！")
      exit sub
    end if
    isgood=0
    username=code_admin("username",1,20)
    types=code_admin("types",1,100)  
    price=code_admin("price",1,100)
    url=code_admin("url",1,100)
    if url="http://" or isnull(url) then url=""
    phone=code_admin("phone",1,100)
    pic=code_admin("pic",1,100)
      call chk_cid_sid()
      sql="select * from "&data_name
      rs.open sql,conn,1,3
      rs.addnew
      rs("c_id")=cid
      rs("s_id")=sid
      rs("username")=login_username
      rs("types")=types
      rs("hidden")=true_hidden
      rs("name")=name
      rs("nname")=nname
      rs("remark")=remark
      rs("email")=email
      rs("price")=price
      rs("url")=url
      rs("phone")=phone
      rs("isgood")=isgood
      if len(pic)<3 then
        rs("pic")=""
      else
        rs("pic")=pic
      end if
      rs("tim")=tim
	  rs("otim")=otim
      rs("counter")=0
	  rs("address")=address
      rs.update
      rs.close
      call upload_note(index_url,first_id(data_name,"id"))
      call joekoe_cms.exec("update user_data set emoney=emoney-"&dim_num(27)&" where username='"&login_username&"'",0)
      call admin_msg("推荐")
    exit sub
  end if
  call form_first()
  ispic=joekoe_cms.rand_file(nsort)
%>
  <tr class=bg_td><td colspan=2 align=center height=30>发布信息注意事项：发布一条信息将扣取您 <font class=red2><%response.write dim_num(27)%></font> <%response.write joekoe_cms.web_unit%>，标有“<%response.write redx%>”为必填项。</td></tr>
  <tr class=bg_td>
  <td width='18%'><%response.write tit_fir%>名称：</td>
  <td width='82%'><input type=text size=50 name=name value='' maxlength=50><%response.write redx%></td>
  </tr>
  <tr class=bg_td>
  <td><%response.write tit_fir%>类型：</td>
  <td><%call chk_csid(nsort,cid,sid)%></td>
  </tr> 
  <tr class=bg_td>
  <td>供需类型：</td>
  <td><select name=types size=1>
  <option value='供方' selected>供方</option>
  <option value='求方'>求方</option>
  </select></td>
  </tr>
  <tr class=bg_td>
  <td>发布时间：</td>
  <td><input type=text name=tim value='<%response.write joekoe_cms.now_time%>' size=28 maxlength=40>&nbsp;<input type=button name=st_btn value="选择" onclick="javascript:select_time(tim);return false;"></td>
  </tr>
  <tr class=bg_td>
  <td>过期时间：</td>
  <td><input type=text name=otim value='' size=28>&nbsp;<input type=button name=st_btn value="选择" onclick="javascript:select_time(otim);return false;">&nbsp;&nbsp;<%response.write redx%></td>
  </tr>
  <tr class=bg_td>
  <td>联 系 人：</td>
  <td><input type=text size=10 name=nname maxlength=50><%=redx%>&nbsp;&nbsp;发 布 人：<input type=text size=11 name=username  value='<%response.write login_username%>' maxlength=50 disabled>&nbsp;&nbsp;交易价格：<input type=text size=20 name=price value='' maxlength=20></td></tr>
  <tr class=bg_td>
  <td>联系地址：</td>
  <td><input type=text size=62 name=address value='' maxlength=100></td>
  </tr>
  <tr class=bg_td>
  <td>电子邮件：</td>
  <td><input type=text size=20 name=email maxlength=50><%response.write redx%>&nbsp;&nbsp;联系电话：<input type=text size=20 name=phone value='' maxlength=50></td>
  </tr>
  <tr class=bg_td>
  <td>相关网址：</td>
  <td><input type=text size=54 name=url value='http://' maxlength=100></td>
  </tr>
  <tr class=bg_td>
  <td valign=top class=htd><br><%response.write tit_fir%>说明：<br><=250B</td>
  <td>
  <table border=0><tr>
  <td><textarea name=remark rows=8 cols=65></textarea></td>
  <td width=5></td>
  <td valign=bottom><%call textarea_resize("remark")%></td>
  </tr></table>
  </td>
  </tr>
  <tr class=bg_td>
  <td><%response.write tit_fir%>图片：</td>
  <td><input type=text name=pic value='<%response.write pic%>' size=40 maxlength=100></td></tr>
  <tr class=bg_td>
  <td>上传图片：</td>
  <td><iframe frameborder=0 name=upload_frame width='100%' height=30 scrolling=no src='upload.asp?uppath=<%response.write index_url%>&upname=<%response.write ispic%>&uptext=pic'></iframe></td>
  </tr>
  <tr class=bg_tds>
	<td></td>
	<td height=30><input type=submit value='提交<%response.write tit_fir%>发布'>　　<input type=reset value='重新填写'>　　<input type=checkbox name=read value='yes' class=bg_tds> 请阅读并同意下面的声明</td>
	</tr></form>
<tr><td align=middle colspan=2 class=bg_td>
<table class=bg_td>
<tbody><tr>
<td align=middle>
<fieldset style="width: 100%" align=center><legend>
<table style="border-right: #808080 1px solid; border-top: #808080 1px solid; border-left: #808080 1px solid; border-bottom: #808080 1px solid" cellspacing=0 cellpadding=0 width=200 border=0>
<tbody>
<tr><td valign=bottom align=middle height=18><font color=#ff0000><b>请您仔细阅读下面的郑重声明</b></font></td></tr>
</tbody></table></legend>
<table cellspacing=0 cellpadding=0 width="98%" align=center border=0>
<tbody>
<tr><td height=5></td></tr>
<tr><td class=htd>1、禁止发布含有色情和反动言论以及与国家法律法规相抵触的任何信息；禁止发布在网上对他人进行人身攻击评议的言论……等信息。
<br>2、信息发布者提供的信息必须是真实可靠的，不得有欺骗行为否则后果自负；每条信息的发布不得超过二百五十个字节；敬请不要进行重复发布。
<br>3、这里的信息发布是全免费的，<%response.write web_dim(1)%>对其不负任何的法律责任（由发布者自负责任敬请郑重），<%response.write web_dim(1)%>有选择和删除权。</td></tr>
<tr><td height=5></td></tr>
</tbody></table></fieldset> 
</td></tr></tbody></table>
</td></tr>
<%
end sub
sub submit_add()
  response.write vbcrlf&"<tr class=bg_tds>" & _
		 vbcrlf&"<td></td>" & _
		 vbcrlf&"<td height=30><input type=submit value='提交添加'>　　<input type=reset value='重新填写'>　　"&go_back&"</td>" & _
		 vbcrlf&"</tr></form>"
end sub

sub put_flea()
dim name,isgood,remark,nname,email,price,url,phone,types,tim,pic,ispic,username,hidden,now_time,m,p,pe:pe=dim_num(27)
m=dim_num(27)
p=login_emoney
if chk() then
name=code_admin("name",1,50)
csid=trim(request.form("c_id"))
nname=code_admin("nname",1,100)
email=code_admin("email",1,100)
remark=code_admin("remark",1,250)
if len(p)<-len(m)<0 then 
response.write vbcrlf&"<tr class=bg_td><td colspan=2 align=center><br><font class=blue>您没有足够的"&web_dim(9)&"<font class=red> <b></b></font> 发布市场信息！</font><br><br><font class=red>（每发布一次市场信息需要 <b>"&pe&"</b> !您拥有"&login_emoney&""&web_dim(9)&"不够支付！）</font><br><br><a href='user_emoney.asp'><b>去购买或兑换 </b></a></td></tr>"
exit sub
end if
if cs_nd(csid)=false then
call admin_error("请选择 "&tit_fir&"类型 ！")
exit sub
end if
if name="" or nname="" or email="" or remark="" then 
call admin_error(tit_fir&"你的姓名、交易名称、地址和联系方法 不能为空！")
exit sub
end if
isgood=false
hidden=false
username=code_admin("username",1,20)
types=code_admin("types",1,100) 
price=code_admin("price",1,100)
tim=code_admin("tim",1,100)
url=code_admin("url",1,100)
phone=code_admin("phone",1,100)
pic=code_admin("pic",1,100)
call chk_cid_sid()
sql="select * from "&data_name
rs.open sql,conn,1,3
rs.addnew
rs("c_id")=cid
rs("s_id")=sid
rs("username")=login_username
rs("types")=types
rs("hidden")=hidden
rs("name")=name
rs("nname")=nname
rs("remark")=remark
rs("email")=email
rs("price")=price
rs("tim")=tim
rs("url")=url
rs("phone")=phone
rs("isgood")=isgood
if len(pic)<3 then
rs("pic")="no_pic.gif"
else
rs("pic")=pic
end if
rs("counter")=0
rs.update
rs.close
call upload_note(index_url,first_id(data_name,"id"))
sql="update user_data set emoney=emoney-"&pe&" where username='"&login_username&"'"
conn.execute(sql)
call admin_msg("推荐")
exit sub
end if
call form_first()
ispic=joekoe_cms.rand_file(nsort)
%>
<tr class=bg_td><td colspan=2 align=center height=30>发布信息注意事项：发布一条信息将扣取您 <font class=red2><%response.write dim_num(27)%></font> <%response.write joekoe_cms.web_unit%>，标有“*”为必填项。</td></tr>
<tr class=bg_td><td width='15%'><%response.write tit_fir%>名称：</td><td width='85%'><input type=text size=60 name=name value='' maxlength=50><%response.write redx%></td></tr>
<tr class=bg_td><td><%response.write tit_fir%>类型：</td><td><font color=blue><b><%call chk_csid(nsort,cid,sid)%></b></font>   
供需类型：<select name=types size=1>
<option value='供方' selected>供方</option>
<option value='求方'>求方</option>
</select><%response.write redx%></td></tr>

<tr class=bg_td>
  <td>发布时间：</td>
  <td><input type=text name=tim value='2005-11-21' size=12 maxlength=40>&nbsp;</td>
  </tr>
<tr class=bg_td><td>交易价格：</td><td><input type=text size=20 name=price value='元' maxlength=20>  联 系 人：<input type=text size=20 name=nname maxlength=50 value='久久时空'><%=redx%></td></tr>
<tr class=bg_td><td>联系地址：</td><td><input type=text size=70 name=url value='' maxlength=100></td></tr>
<tr class=bg_td><td>联系电话：</td><td><input type=text size=20 name=phone value='未知' maxlength=50>  电子邮件：<input type=text size=20 name=email maxlength=50 value='@'></td></tr>
<tr class=bg_td>
<td><%response.write tit_fir%>图片：</td>
<td><input type=text name=pic value='<%response.write pic%>' size=40 maxlength=100>   <a href='upload.asp?uppath=<%response.write index_url%>&upname=<%response.write ispic%>&uptext=pic' target=upload_frame>上传图片</a></td></tr>
<tr class=bg_td>
<td>上传图片：</td>
<td><iframe frameborder=0 name=upload_frame width='100%' height=30 scrolling=no src='upload.asp?uppath=<%response.write index_url%>&upname=<%response.write ispic%>&uptext=pic'></iframe></td>
</tr>
<tr class=bg_td><td valign=top class=htd><br>交易说明：<br><=250B</td><td><textarea name=remark rows=5 cols=70></textarea></td></tr>
<%
call submit_add()
end sub

sub put_job()
  if chk() then
  dim zptext,job,zpnum,gzdd,nianlings,zyes,edus,moneys,youxiaos,jobtypes
  dim sexs,shisus,hkas,hkbs,languages,computers,marrys,pthuas
  zptext=code_admin("zptext",1,500)
  job=code_admin("job",1,50)
  gzdd=trim(request.form("gzdd"))
  nianlings=trim(request.form("nianlings"))
  zpnum=trim(request.form("zpnum"))
  if not isnumeric(zpnum) then zpnum=1
  if not isnumeric(nianlings) then nianlings=20
  if job="" or zpnum="" or nianlings="" then
      call admin_error(tit_fir&"职位、人数和年龄 不能为空！")
      exit sub
  end if
  if zptext="" or len(zptext)>250 then
      call admin_error(tit_fir&"岗位描述是必须的！并且不多于250个字符！")
      exit sub
  end if
     sql="select * from "&data_name
     call joekoe_cms.exec(sql,-1)
     rs.open sql,conn,1,3
     rs.addnew
     rs("username")=login_username
     rs("zptext")=zptext
     rs("jobtypes")=trim(request("jobtypes"))
     rs("edus")=trim(request("edus"))
     rs("shisus")=trim(request("shisus"))
     rs("zyes")=trim(request("zyes"))
     rs("nianlings")=nianlings
     rs("languages")=trim(request("languages"))
     rs("hkas")=trim(request("hkas"))
     rs("pthuas")=trim(request("pthuas"))
     rs("hkbs")=trim(request("hkbs"))
     rs("sexs")=trim(request("sexs"))
     rs("marrys")=trim(request("marrys"))
     rs("computers")=trim(request("computers"))
     rs("job")=job
     rs("moneys")=trim(request("moneys"))
     rs("youxiaos")=trim(request("youxiaos"))
     rs("zpnum")=int(zpnum)
     rs("gzdd")=gzdd
     rs("tim")=joekoe_cms.now_time
     rs("cname")=login_cname
     rs("counter")=0
     rs("hidden")=0
     rs("istop")=0
     rs.update
     rs.close
     call admin_msg("发表")
     exit sub
  end if
  call form_first()
%>
<tr>
<td width='100%'>
<table border=0 cellspacing=1 cellpadding=1 align=center width='100%'>
<tr align=right class=bg_td><td width='18%'>招聘职位：</td><td width='84%' colspan=3 align=left>&nbsp;<select size=1 name=job>
<option>-----------经营/管理类------------</option>
<option value='(正/副)总裁/总经理/CEO'>(正/副)总裁/总经理/CEO</option>
<option value='企业策划'>企业策划</option>
<option value='投资管理'>投资管理</option>
<option value='企管部经理/企业管理顾问'>企管部经理/企业管理顾问</option>
<option value='企业管理人员'>企业管理人员</option>
<option value='质管部经理/质量管理顾问'>质管部经理/质量管理顾问</option>
<option value='质管人员/质量工程师'>质管人员/质量工程师</option>
<option value='技术经理/项目经理/CTO'>技术经理/项目经理/CTO</option>
<option value='信息主管/CIO'>信息主管/CIO</option>
<option>--------------财务类--------------</option>
<option value='财务总监/经理/副经理/主任'>财务总监/经理/副经理/主任</option>
<option value='会计师'>会计师</option>
<option value='会计'>会计</option>
<option value='出纳/收银'>出纳/收银</option>
<option value='统计'>统计</option>
<option value='审计'>审计</option>
<option>-----------销售/业务类------------</option>
<option value='销售经理/副经理/主任'>销售经理/副经理/主任</option>
<option value='商务/贸易/国际业务'>商务/贸易/国际业务</option>
<option value='销售工程师'>销售工程师</option>
<option value='业务员/业务代表'>业务员/业务代表</option>
<option value='报关'>报关</option>
<option>--------------市场类--------------</option>
<option value='市场经理/副经理'>市场经理/副经理</option>
<option value='市场/行销策划'>市场/行销策划</option>
<option value='市场调研/业务分析'>市场调研/业务分析</option>
<option value='公关、促销、礼仪'>公关、促销、礼仪</option>
<option>--------------设计类--------------</option>
<option value='美术/图形设计'>美术/图形设计</option>
<option value='广告设计'>广告设计</option>
<option value='文案策划'>文案策划</option>
<option value='工业设计/产品设计'>工业设计/产品设计</option>
<option value='多媒体设计与制作'>多媒体设计与制作</option>
<option value='装潢设计'>装潢设计</option>
<option value='工艺品设计'>工艺品设计</option>
<option value='纺织服装设计'>纺织服装设计</option>
<option value='家具/珠宝设计'>家具/珠宝设计</option>
<option value='电脑绘图人员'>电脑绘图人员</option>
<option>------------客户服务类------------</option>
<option value='客服部经理/副经理'>客服部经理/副经理</option>
<option value='技术支持/客户培训'>技术支持/客户培训</option>
<option value='客服/热线咨询'>客服/热线咨询</option>
<option value='前台/接待'>前台/接待</option>
<option>-----------行政/人事类------------</option>
<option value='行政/人力资源经理'>行政/人力资源经理</option>
<option value='行政/人事人员'>行政/人事人员</option>
<option value=ā'员工培训人员'>员工培训人员</option>
<option value='企业文化/工会'>企业文化/工会</option>
<option>--------------文职类--------------</option>
<option value='英语翻译'>英语翻译</option>
<option value='其它外语翻译'>其它外语翻译</option>
<option value='图书情报/资料管理'>图书情报/资料管理</option>
<option value='技术资料编写'>技术资料编写</option>
<option value='文秘/高级文员'>文秘/高级文员</option>
<option value='文员/电脑打字员/操作员'>文员/电脑打字员/操作员</option>
<option>-----------工业/工厂类------------</option>
<option value='厂长/副厂长'>厂长/副厂长</option>
<option value='生产管理'>生产管理</option>
<option value='工程管理'>工程管理</option>
<option value='品质管理'>品质管理</option>
<option value='物料管理'>物料管理</option>
<option value='设备管理'>设备管理</option>
<option value='采购管理'>采购管理</option>
<option value='仓库管理'>仓库管理</option>
<option value='计划员'>计划员</option>
<option value='化验员'>化验员</option>
<option value='技工'>技工</option>
<option value='普工'>普工</option>
<option>-----------后勤/服务类------------</option>
<option value='司机'>司机</option>
<option value='保安/厨师/清洁工'>保安/厨师/清洁工</option>
<option value='服务员'>服务员</option>
<option value='营业员'>营业员</option>
<option>----------计算机专业人员----------</option>
<option value='系统分析员'>系统分析员</option>
<option value='软件（测试）工程师'>软件（测试）工程师</option>
<option value='硬件（测试）工程师'>硬件（测试）工程师</option>
<option value='系统工程师/网管'>系统工程师/网管</option>
<option value='网站策划/信息编辑'>网站策划/信息编辑</option>
<option value='数据库开发/WEB应用程序设计'>数据库开发/WEB应用程序设计</option>
<option value='网页设计/电脑美工'>网页设计/电脑美工</option>
<option value='Internet/WEB/电子商务开发'>Internet/WEB/电子商务开发</option>
<option>-------电子/通讯类专业人员--------</option>
<option value='电子工程师'>电子工程师</option>
<option value='电子元器件工程师'>电子元器件工程师</option>
<option value='自动控制'>自动控制</option>
<option value='智能大厦/综合布线/弱电'>智能大厦/综合布线/弱电</option>
<option value='仪器仪表/计量'>仪器仪表/计量</option>
<option value='电气'>电气</option>
<option value='电力'>电力</option>
<option value='通讯工程师'>通讯工程师</option>
<option value='单片机/DSP/底层软件开发'>单片机/DSP/底层软件开发</option>
<option value='OA设备维修工程师'>OA设备维修工程师</option>
<option>-----------机械专业人员-----------</option>
<option value='机械工程师'>机械工程师</option>
<option value='模具工程师'>模具工程师ā</option>
<option value='机电工程师'>机电工程师</option>
<option value='各种车辆/飞行器设计'>各种车辆/飞行器设计</option>
<option>-------房地产/建筑专业人员--------</option>
<option value='房地产开发/策划'>房地产开发/策划</option>
<option value='房地产评估/交易'>房地产评估/交易</option>
<option value='建筑/结构工程师'>建筑/结构工程师</option>
<option value='工程监理师'>工程监理师</option>
<option value='工程预决算'>工程预决算</option>
<option value='给排水/水电工程师'>给排水/水电工程师</option>
<option value='制冷暖通'>制冷暖通</option>
<option value='物业管理'>物业管理</option>
<option>--------金融/经济专业人员---------</option>
<option value='金融业'>金融业</option>
<option value='证券期货'>证券期货</option>
<option value='保险业'>保险业</option>
<option value='税务人员'>税务人员</option>
<option value='其它金融/经济人员'>其它金融/经济人员</option>
<option>------文教体卫/法律专业人员-------</option>
<option value='新闻/出版'>新闻/出版</option>
<option value='广播电视/文化艺术'>广播电视/文化艺术</option>
<option value='高等教育'>高等教育</option>
<option value='中等教育'>中等教育</option>
<option value='小学/幼儿教育'>小学/幼儿教育</option>
<option value='职业教育/培训/家教'>职业教育/培训/家教</option>
<option value='体育类'>体育类</option>
<option value='卫生医疗'>卫生医疗</option>
<option value='律师/法律顾问'>律师/法律顾问</option>
<option>----------服务业专业人员----------</option>
<option value='旅游/导游'>旅游/导游</option>
<option value='酒店/餐饮'>酒店/餐饮</option>
<option value='寻呼/声讯'>寻呼/声讯</option>
<option value='其它服务行业'>其它服务行业</option>
<option>----------其它专业人员------------</option>
<option value='动力/能源'>动力/能源</option>
<option value='声光学技术'>声光学技术</option>
<option value='化工技术'>化工技术</option>
<option value='生物制药'>生物制药</option>
<option value='测绘技术'>测绘技术</option>
<option value='道桥技术'>道桥技术</option>
<option value='环境/城市规划'>环境/城市规划</option>
<option value='地质/矿产'>地质/矿产</option>
<option value='粮食/食品/糖酒'>粮食/食品/糖酒</option>
<option value='纺织服装技术'>纺织服装技术</option>
<option value='包装/印刷/造纸'>包装/印刷/造纸</option>
<option value='冶金/喷涂/金属材料'>冶金/喷涂/金属材料</option>
<option value='安全消防'>安全消防</option>
<option value='农林渔牧/园林/园艺'>农林渔牧/园林/园艺</option>
<option value='交通运输（海陆空）'>交通运输（海陆空）</option>
</select>&nbsp;<%=redx%></td></tr>
<tr class=bg_td><td align=right width='18%'>工作地区：</td><td width='32%' align=left>&nbsp;<SELECT size=1 name=gzdd>
<option>安徽省</option>
<option>北京市</option>
<option>天津市</option>
<option>上海市</option>
<option>重庆市</option>
<option>福建省</option>
<option>甘肃省</option>
<option>广东省</option>
<option>广西省</option>
<option>四川省</option>
<option>河南省</option>
<option>河北省</option>
<option>贵州省</option>
<option>湖北省</option>
<option>湖南省</option>
<option>吉林省</option>
<option>江苏省</option>
<option>江西省</option>
<option>辽宁省</option>
<option>青海省</option>
<option>山东省</option>
<option>山西省</option>
<option>陕西省</option>
<option>云南省</option>
<option>浙江省</option>
<option>黑龙江省</option>
<option>宁夏自治区</option>
<option>新疆自治区</option>
<option>西藏自治区</option>
<option>内蒙古自治区</option>
<option>香港特别行政区</option>
<option>澳门特别行政区</option>
<option>台湾省</option>
</SELECT></td>
<td width='18%' align=right>有效期限：</td><td align=left width='32%'>&nbsp;<SELECT size=1 name=youxiaos>
<option>长期有效</option>
<option>一星期</option>
<option>半个月</option>
<option>一个月</option>
<option>三个月</option>
<option>半年</option>
<option>一年</option>
<option>一年以上</option>
</SELECT></td></tr>
<tr align=right class=bg_td><td>招聘人数：</td><td align=left>&nbsp;<INPUT maxLength=5 size=5 name=zpnum>　人&nbsp;<%=redx%></td>
<td align=right height=25>年龄要求：</td><td align=left>&nbsp;<INPUT maxLength=2 size=4 name=nianlings>　岁&nbsp;<%=redx%></td>
</tr>
<tr align=right class=bg_td><td>专业要求：</td><td align=left>&nbsp;<SELECT size=1 name=zyes> 
<option>不限</option>
<option>计算机类</option>
<option>管理类</option>
<option>行政管理</option>
<option>党政管理</option>
<option>管理工程类</option>
<option>工科</option>
<option>机械制造类</option>
<option>仪器仪表类</option>
<option>热工类</option>
<option>电气自动化</option>
<option>电子技术</option>
<option>工业自动化</option>
<option>通信类</option>
<option>土建类</option>
<option>化工类</option>
<option>轻工/粮食/食品类</option>
<option>纺织类</option>
<option>运输类</option>
<option>水利类</option>
<option>测绘类</option>
<option>环境类</option>
<option>原子能类</option>
<option>应用理科及力学类</option>
<option>地质类</option>
<option>矿业类</option>
<option>冶金类</option>
<option>材料类</option>
<option>军工类</option>
<option>财经类</option>
<option>政法类</option>
<option>文科类</option>
<option>中国语言文学</option>
<option>外语类</option>
<option>历史类</option>
<option>政治类</option>
<option>哲学类</option>
<option>图书馆学</option>
<option>文科类其他专业</option>
<option>理科类</option>
<option>数学类</option>
<option>物理学类</option>
<option>化学类</option>
<option>力学类</option>
<option>地学类</option>
<option>天文学类</option>
<option>海洋学类</option>
<option>生物学类</option>
<option>理科类其他专业</option>
<option>医药类</option>
<option>师范类</option>
<option>农科类</option>
<option>林科类</option>
<option>体育类</option>
<option>艺术类</option>
<option>音乐类</option>
<option>工艺美术类</option>
<option>工业美术类</option>
<option>戏剧舞蹈类</option>
<option>电影电视</option>
<option>技工类</option>
</SELECT></td>
<td align=right>户籍要求：</td><td align=left>&nbsp;<SELECT size=1 name=hkas>
<option>不限</option>
<option>安徽省</option>
<option>北京市</option>
<option>天津市</option>
<option>上海市</option>
<option>重庆市</option>
<option>福建省</option>
<option>甘肃省</option>
<option>广东省</option>
<option>四川省</option>
<option>贵州省</option>
<option>湖北省</option>
<option>湖南省</option>
<option>吉林省</option>
<option>江苏省</option>
<option>江西省</option>
<option>辽宁省</option>
<option>青海省</option>
<option>山东省</option>
<option>山西省</option>
<option>陕西省</option>
<option>云南省</option>
<option>浙江省</option>
<option>黑龙江省</option>
<option>宁夏自治区</option>
<option>新疆自治区</option>
<option>西藏自治区</option>
<option>内蒙古自治区</option>
<option>香港特别行政区</option>
<option>澳门特别行政区</option>
<option>台湾省</option>
</SELECT></td></tr>
<tr align=right class=bg_td><td>学历要求：</td><td align=left>&nbsp;<SELECT size=1 name=edus>
<option>不限</option>
<option>初中</option>
<option>高中</option>
<option>中技</option>
<option>中专</option>
<option>大专</option>
<option>本科</option>
<option>硕士</option>
<option>博士</option>
</SELECT></td>
<td align=right>目前住地：</td><td align=left>&nbsp;<SELECT size=1 name=hkbs>
<option>不限</option>
<option>安徽省</option>
<option>北京市</option>
<option>天津市</option>
<option>上海市</option>
<option>重庆市</option>
<option>福建省</option>
<option>甘肃省</option>
<option>广东省</option>
<option>广西省</option>
<option>四川省</option>
<option>河南省</option>
<option>河北省</option>
<option>贵州省</option>
<option>湖北省</option>
<option>湖南省</option>
<option>吉林省</option>
<option>江苏省</option>
<option>江西省</option>
<option>辽宁省</option>
<option>青海省</option>
<option>山东省</option>
<option>山西省</option>
<option>陕西省</option>
<option>云南省</option>
<option>浙江省</option>
<option>黑龙江省</option>
<option>宁夏自治区</option>
<option>新疆自治区</option>
<option>西藏自治区</option>
<option>内蒙古自治区</option>
<option>香港特别行政区</option>
<option>澳门特别行政区</option>
<option>台湾省</option>
</SELECT></td></tr>
<tr align=right class=bg_td><td>外语要求：</td><td align=left>&nbsp;<SELECT size=1 name=languages>
<option>不限</option>
<option>英语</option>
<option>日语</option>
<option>法语</option>
<option>德语</option>
<option>俄语</option>
<option>朝鲜语</option>
<option>西班牙语</option>
<option>阿拉伯语</option>
<option>其它语种</option>
</SELECT></td>
<td align=right>普通话程度：</td><td align=left>&nbsp;<SELECT size=1 name=pthuas>
<option>标准</option>
<option>精通</option>
<option>优秀</option>
<option>良好</option>
<option>一般</option>
<option>较差</option>
</SELECT></td></tr>
<tr align=right class=bg_td><td>性别要求：</td><td align=left>&nbsp;<SELECT size=1 name=sexs>
<option>不限</option>
<option>男</option>
<option>女</option>
</SELECT></td>
<td align=right>工作性质：</td><td align=left>&nbsp;<SELECT size=1 name=jobtypes>
<option>全职</option>
<option>兼职</option>
<option>两者兼可</option>
</SELECT></td></tr>
<tr align=right class=bg_td><td>婚姻状况：</td><td align=left>&nbsp;<SELECT size=1 name=marrys>
<option>不限</option>
<option>未婚</option>
<option>已婚</option>
<option>离异</option>
</SELECT></td>
<td align=right>计算机能力：</td><td align=left>&nbsp;<SELECT size=1 name=computers>
<option>不限</option>
<option>一般</option>
<option>精通</option>
<option>优秀</option>
<option>良好</option>
<option>较差</option>
</SELECT></td></tr>
<tr align=right class=bg_td><td>提供食宿：</td><td align=left>&nbsp;<SELECT size=1 name=shisus>
<option>不提供</option>
<option>提供</option>
<option>只提供吃</option>
<option>只提供住</option>
</SELECT></td>
<td align=right>薪金水平：</td><td align=left>&nbsp;<SELECT size=1 name=moneys>
<option>面议</option>
<option>300—500</option>
<option>501—1000</option>
<option>1001—2000</option>
<option>2001—3000</option>
<option>3001—4000</option>
<option>4001—5000</option>
<option>5001—10000</option>
<option>10000以上</option>
</SELECT>　/月</td></tr>
<tr class=bg_td><td width='100%' colspan=4 height=25><p align=center>岗 位 职 责 描 述 及 其 它 要 求&nbsp;<%=redx%></td></tr>
<tr><td width='100%' colspan=4 height=25><p align=center><textarea rows=8 name=zptext cols=72></textarea><br></td></tr>
<tr class=bg_td><td width='100%' colspan=4 height=30><p align=center><input type=submit value='发 布 招 聘'>　　<input type=reset value='重 新 填 写'></td></tr>
</form></table>
</td></tr>
</table>
<%
end sub
sub put_pris()
  dim name,isgood,remark,dname,fname,yzbm,sname,nname,yname,email,price,url,phone,types,pic,ispic,username,hidden,tim,address
  if chk() then
    name=code_admin("name",1,50)
    csid=trim(request.form("c_id"))
    nname=code_admin("nname",1,100)
	sname=code_admin("sname",1,100)
	yname=code_admin("yname",1,100)
	dname=code_admin("dname",1,100)
	fname=code_admin("fname",1,100)
	yzbm=code_admin("yzbm",1,100)
    email=code_admin("email",1,100)
    remark=code_admin("remark",1,250)
	address=code_admin("address",1,100)
    if trim(request.form("read"))<>"yes" then
      call admin_error("抱歉，必须阅读并同意下面的声明才能发布！")
      exit sub
    end if
    if cs_nd(csid)=false then
      call admin_error("请选择 "&tit_fir&"类型 ！")
      exit sub
    end if
    if name="" or nname="" or remark=false then 
      call admin_error(tit_fir&"名称、联系人、电子邮件、"&tit_fir&"说明 为空或电子邮件不符合规则！")
      exit sub
    end if
    tim=joekoe_cms.now_time
    isgood=false
    hidden=false
    username=code_admin("username",1,20)
    types=code_admin("types",1,100)  
    price=code_admin("price",1,100)
    url=code_admin("url",1,100)
    if url="http://" or isnull(url) then url=""
    phone=code_admin("phone",1,100)
    pic=code_admin("pic",1,100)
      call chk_cid_sid()
      sql="select * from "&data_name
      rs.open sql,conn,1,3
      rs.addnew
      rs("c_id")=cid
      rs("s_id")=sid
      rs("username")=login_username
      rs("types")=types
      rs("hidden")=hidden
      rs("name")=name
      rs("dname")=dname
	  rs("fname")=fname
      rs("nname")=nname
	  rs("sname")=sname
	  rs("yname")=yname
      rs("remark")=remark
	  rs("yzbm")=yzbm
	  rs("fname")=fname
      rs("remark")=remark
      rs("email")=email
      rs("price")=price
      rs("url")=url
      rs("phone")=phone
      rs("isgood")=isgood
      if len(pic)<3 then
        rs("pic")=""
      else
        rs("pic")=pic
      end if
      rs("tim")=tim
      rs("counter")=0
	  rs("address")=address
      rs.update
      rs.close
      call upload_note(index_url,first_id(data_name,"id"))
      call joekoe_cms.exec("update user_data set emoney=emoney-"&dim_num(42)&" where username='"&login_username&"'",0)
      call admin_msg("推荐")
    exit sub
  end if
  call form_first()
  ispic=joekoe_cms.rand_file(nsort)
%>
  <tr class=bg_td><td colspan=2 align=center height=30>发布企业信息注意事项：发布一条企业信息将扣取您 <font class=red2><%response.write dim_num(45)%></font> <%response.write joekoe_cms.web_unit%>，标有“*”为必填项。</td></tr>
  <tr class=bg_td><td width='15%'><%response.write tit_fir%>名称：</td><td width='85%'><input type=text size=62 name=name value='' maxlength=50><%response.write redx%></td></tr>
  <tr class=bg_td><td><%response.write tit_fir%>类型：</td><td><font color=blue><b><%call chk_csid(nsort,cid,sid)%></b></font>&nbsp;
 <%response.write tit_fir%>性质：<select name=types size=1>
  <option value='社会团体'>社会团体</option>
  <option value='事业单位'>事业单位</option>
  <option value='国有企业'>国有企业</option>
  <option value='三资企业'>三资企业</option>
  <option value='集体企业'>集体企业</option>
  <option value='乡镇企业'>乡镇企业</option>
  <option value='私营企业'>私营企业</option>
  </select><%response.write redx%></td></tr>
  <tr class=bg_td><td>注册资金：</td><td><input type=text size=20 name=price value='未填写' maxlength=20><%response.write redx%>万人民币&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;联 系 人：<input type=text size=10 name=nname maxlength=50 value='未填写'><%=redx%></td></tr>
  <tr class=bg_td><td>法人代表：</td><td><input type=text size=20 name=fname value='未填写' maxlength=20><%response.write redx%>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;发布人：<font class=blue><%=login_username%></font></td></tr>
  <tr class=bg_td><td>员工人数：</td><td><input type=text size=20 name=yname value='未填写' maxlength=50><%response.write redx%>个人&nbsp;&nbsp;&nbsp;&nbsp;成立时间：<input type=text size=20 name=sname maxlength=50 value='2004-10-01'><%response.write redx%></td></tr>
  <tr class=bg_td><td>所在地区：</td><td><select name=dname size=1>
  <option value='北京市' selected>北京市</option>
  <option value='天津市'>天津市</option>
  <option value='上海市'>上海市</option>
  <option value='重庆市'>重庆市</option>
  <option value='山西省'>山西省</option>
  <option value='安徽省'>安徽省</option>
  <option value='福建省'>福建省</option>
  <option value='甘肃省'>甘肃省</option>
  <option value='广东省'>广东省</option>
  <option value='广西省'>广西省</option>
  <option value='河南省'>河南省</option>
  <option value='河北省'>河北省</option>
  <option value='四川省'>四川省</option>
  <option value='贵州省'>贵州省</option>
  <option value='湖北省'>湖北省</option>
  <option value='湖南省'>湖南省</option>
  <option value='吉林省'>吉林省</option>
  <option value='江苏省'>江苏省</option>
  <option value='江西省'>江西省</option>
  <option value='辽宁省'>辽宁省</option>
  <option value='青海省'>青海省</option>
  <option value='山东省'>山东省</option>
  <option value='陕西省'>陕西省</option>
  <option value='云南省'>云南省</option>
  <option value='浙江省'>浙江省</option>
  <option value='台湾省'>台湾省</option>
  <option value='黑龙江省'>黑龙江省</option>
  <option value='宁夏自治区'>宁夏自治区</option>
  <option value='新疆自治区'>新疆自治区</option>
  <option value='西藏自治区'>西藏自治区</option>
  <option value='内蒙古自治区'>内蒙古自治区</option>
  <option value='香港特别行政区'>香港特别行政区</option>
  <option value='澳门特别行政区'>澳门特别行政区</option>
  </select><%response.write redx%>&nbsp;&nbsp;邮政编码：<input type=text size=20 name=yzbm value='未填写' maxlength=100><%response.write redx%></td></tr>
  <tr class=bg_td><td>联系地址：</td><td><input type=text size=62 name=address value='' maxlength=100><%response.write redx%></td></tr>
  <tr class=bg_td><td>联系电话：</td><td><input type=text size=20 name=phone value='未填写' maxlength=50><%response.write redx%>&nbsp;&nbsp;电子邮件：<input type=text size=20 name=email maxlength=50 value='@'><%response.write redx%></td></tr>
  <tr class=bg_td><td>相关网址：</td><td><input type=text size=54 name=url value='http://' maxlength=100></td></tr>
  <tr class=bg_td><td valign=top class=htd><br><%response.write tit_fir%>说明：<br><=250B</td><td><textarea name=remark rows=5 cols=65></textarea></td></tr>
  <tr class=bg_td>
  <td><%response.write tit_fir%>图片：</td>
  <td><input type=text name=pic value='<%response.write pic%>' size=40 maxlength=100></td></tr>
  <tr class=bg_td>
  <td>上传图片：</td>
  <td><iframe frameborder=0 name=upload_frame width='100%' height=30 scrolling=no src='upload.asp?uppath=<%response.write index_url%>&upname=<%response.write ispic%>&uptext=pic'></iframe></td>
  </tr>
  <tr class=bg_tds>
	<td></td>
	<td height=30><input type=submit value='提交<%response.write tit_fir%>发布'>　　<input type=reset value='重新填写'>　　<input type=checkbox name=read value='yes' checked class=bg_tds style='display:none'> 发布前请阅读并同意下面的声明</td>
	</tr></form>
<tr><td align=middle colspan=2 class=bg_td>
<table class=bg_td>
<tbody><tr>
<td align=middle>
<fieldset style="width: 100%" align=center><legend>
<table style="border-right: #808080 1px solid; border-top: #808080 1px solid; border-left: #808080 1px solid; border-bottom: #808080 1px solid" cellspacing=0 cellpadding=0 width=200 border=0>
<tbody>
<tr><td valign=bottom align=middle height=18><font color=#ff0000><b>请您仔细阅读下面的郑重声明</b></font></td></tr>
</tbody></table></legend>
<table cellspacing=0 cellpadding=0 width="98%" align=center border=0>
<tbody>
<tr><td height=5></td></tr>
<tr><td class=htd>1、禁止发布含有色情和反动言论以及与国家法律法规相抵触的任何信息；禁止发布在网上对他人进行人身攻击评议的言论……等信息。
<br>2、信息发布者提供的信息必须是真实可靠的，不得有欺骗行为否则后果自负；每条信息的发布不得超过二百五十个字节；敬请不要进行重复发布。
<br>3、这里的信息发布是全免费的，<%response.write web_dim(1)%>对其不负任何的法律责任（由发布者自负责任敬请郑重），<%response.write web_dim(1)%>有选择和删除权。</td></tr>
<tr><td height=5></td></tr>
</tbody></table></fieldset> 
</td></tr></tbody></table>
</td></tr>
<%
end sub
sub put_house()
  dim name,isgood,remark,dname,fname,yzbm,sname,nname,yname,email,price,url,phone,types,pic,ispic,username,hidden,tim,address
  if chk() then
    name=code_admin("name",1,50)
    csid=trim(request.form("c_id"))
    nname=code_admin("nname",1,100)
	sname=code_admin("sname",1,100)
	yname=code_admin("yname",1,100)
	dname=code_admin("dname",1,100)
	fname=code_admin("fname",1,100)
	yzbm=code_admin("yzbm",1,100)
    email=code_admin("email",1,100)
    remark=code_admin("remark",1,250)
	address=code_admin("address",1,100)
    if trim(request.form("read"))<>"yes" then
      call admin_error("抱歉，必须阅读并同意下面的声明才能发布！")
      exit sub
    end if
    if cs_nd(csid)=false then
      call admin_error("请选择 "&tit_fir&"类型 ！")
      exit sub
    end if
    if name="" or nname="" or remark=false then 
      call admin_error(tit_fir&"名称、联系人、电子邮件、"&tit_fir&"说明 为空或电子邮件不符合规则！")
      exit sub
    end if
    if address=""  then 
      call admin_error("地址不能为空！")
      exit sub
    end if

    tim=joekoe_cms.now_time
    isgood=false
    hidden=false
    username=code_admin("username",1,20)
    types=code_admin("types",1,100)  
    price=code_admin("price",1,100)
    url=code_admin("url",1,100)
    if url="http://" or isnull(url) then url=""
    phone=code_admin("phone",1,100)
    pic=code_admin("pic",1,100)
      call chk_cid_sid()
      sql="select * from "&data_name
      rs.open sql,conn,1,3
      rs.addnew
      rs("c_id")=cid
      rs("s_id")=sid
      rs("username")=login_username
      rs("types")=types
      rs("hidden")=hidden
      rs("name")=name
      rs("dname")=dname
	  rs("fname")=fname
      rs("nname")=nname
	  rs("sname")=sname
	  rs("yname")=yname
      rs("remark")=remark
	  rs("yzbm")=yzbm
	  rs("fname")=fname
      rs("remark")=remark
      rs("email")=email
      rs("price")=price
      rs("url")=url
      rs("phone")=phone
      rs("isgood")=isgood
      if len(pic)<3 then
        rs("pic")=""
      else
        rs("pic")=pic
      end if
      rs("tim")=tim
      rs("counter")=0
	  rs("address")=address
      rs.update
      rs.close
      call upload_note(index_url,first_id(data_name,"id"))
      call joekoe_cms.exec("update user_data set emoney=emoney-"&dim_num(42)&" where username='"&login_username&"'",0)
      call admin_msg("推荐")
    exit sub
  end if
  call form_first()
  ispic=joekoe_cms.rand_file(nsort)
%>
  <tr class=bg_td><td colspan=2 align=center height=30>发布信息注意事项：发布一条信息将扣取您 <font class=red2><%response.write dim_num(46)%></font> <%response.write joekoe_cms.web_unit%>，标有“*”为必填项。</td></tr>
  <tr class=bg_td><td width='15%'><%response.write tit_fir%>地址：</td>
  <td width='85%'><input type=text size=62 name=name value='' maxlength=50><%response.write redx%></td></tr>
  <tr class=bg_td><td><%response.write tit_fir%>类别：</td><td><%call chk_csid(nsort,cid,sid)%>&nbsp;&nbsp;&nbsp;
 物业类型：<select name=types size=1>
  <option value='普通住房'>普通住房</option>
  <option value='商用房'>商用房</option>
  <option value='二手房'>二手房</option>
  <option value='门面'>门面</option>
  </select><%response.write redx%></td></tr>
  <tr class=bg_td><td>房 价：</td><td><input type=text size=15 name=price value='500/月' maxlength=20><%response.write redx%>
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;房屋结构：<select name=dname size=1>
  <option value='仅单间' selected>仅单间</option>
  <option value='单间1卫'>单间1卫</option>
  <option value='单间1厨1卫'>单间1厨1卫</option>
  <option value='1室1厅1厨1卫'>1室1厅1厨1卫</option>
  <option value='2室1厅1厨1卫'>2室1厅1厨1卫</option>
  <option value='2室2厅1厨1卫'>2室2厅1厨1卫</option>
  <option value='2室2厅2厨2卫'>2室2厅2厨2卫</option>
  <option value='3室1厅1厨1卫'>3室1厅1厨1卫</option>
  <option value='3室1厅2厨2卫'>3室1厅2厨2卫</option>
  <option value='3室2厅1厨1卫'>3室2厅1厨1卫</option>
  <option value='3室2厅2厨2卫'>3室2厅2厨2卫</option>
  <option value='其它'>其它</option>
  </select><%response.write redx%> &nbsp;建筑面积<input type=text size=4 name=url value='100' maxlength=100>平方米</td></tr>
  <tr class=bg_td><td>设施设备：</td><td><input type=text size=26 name=fname value='水、电齐全' maxlength=20><%response.write redx%>如：水、电、宽带、家具。&nbsp;&nbsp;注册用户：<font class=blue><%=login_username%></font></td></tr>
  <tr class=bg_td><td>楼 层：</td><td><input type=text size=20 name=yname value='2楼' maxlength=50><%response.write redx%>如：4楼、平街&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;有效时间：<input type=text value='7'  size=4 name=sname maxlength=50>天<%response.write redx%></td></tr>
  <tr class=bg_td><td>联 系 人：</td><td> 
    <input type=text size=10 name=nname maxlength=50 value='未公布'><%=redx%>&nbsp;&nbsp;邮政编码：<input type=text size=20 name=yzbm value='未公布' maxlength=100><%response.write redx%></td></tr>
  <tr class=bg_td><td>联系地址：</td><td><input type=text size=62 name=address value='' maxlength=100><%response.write redx%></td></tr>
  <tr class=bg_td><td>联系电话：</td><td><input type=text size=20 name=phone value='未公布' maxlength=50><%response.write redx%>&nbsp;&nbsp;电子邮件：<input type=text size=20 name=email maxlength=50 value='@'><%response.write redx%></td></tr>
  <tr class=bg_td><td valign=top class=htd><br><%response.write tit_fir%>说明：<br><=250B</td><td><textarea name=remark rows=5 cols=65></textarea></td></tr>
  <tr class=bg_td>
  <td><%response.write tit_fir%>图片：</td>
  <td><input type=text name=pic value='<%response.write pic%>' size=40 maxlength=100></td></tr>
  <tr class=bg_td>
  <td>上传图片：</td>
  <td><iframe frameborder=0 name=upload_frame width='100%' height=30 scrolling=no src='upload.asp?uppath=<%response.write index_url%>&upname=<%response.write ispic%>&uptext=pic'></iframe></td>
  </tr>
  <tr class=bg_tds>
	<td></td>
	<td height=30><input type=submit value='提交<%response.write tit_fir%>发布'>　　<input type=reset value='重新填写'>　　<input type=checkbox name=read value='yes' class=bg_tds checked style='display:none'> 发布前请阅读并同意下面的声明</td>
	</tr></form>
<tr><td align=middle colspan=2 class=bg_td>
<table class=bg_td>
<tbody><tr>
<td align=middle>
<fieldset style="width: 100%" align=center><legend>
<table style="border-right: #808080 1px solid; border-top: #808080 1px solid; border-left: #808080 1px solid; border-bottom: #808080 1px solid" cellspacing=0 cellpadding=0 width=200 border=0>
<tbody>
<tr><td valign=bottom align=middle height=18><font color=#ff0000><b>请您仔细阅读下面的郑重声明</b></font></td></tr>
</tbody></table></legend>
<table cellspacing=0 cellpadding=0 width="98%" align=center border=0>
<tbody>
<tr><td height=5></td></tr>
<tr><td class=htd>1、禁止发布含有色情和反动言论以及与国家法律法规相抵触的任何信息；禁止发布在网上对他人进行人身攻击评议的言论……等信息。
<br>2、信息发布者提供的信息必须是真实可靠的，不得有欺骗行为否则后果自负；每条信息的发布不得超过二百五十个字节；敬请不要进行重复发布。
<br>3、这里的信息发布是全免费的，本站对其不负任何的法律责任（由发布者自负责任敬请郑重），我们有选择和删除权。</td></tr>
<tr><td height=5></td></tr>
</tbody></table></fieldset> 
</td></tr></tbody></table>
</td></tr>

<%
end sub







sub put_party()
  dim topic,party_user,comto,username,tim,party_link,address,hidden,word,party_Sign,party_Mark,party_date,party_time,contact,party_money,party_price
if chk() then
    topic=code_admin("topic",1,50)
    word=request.form("word")
    comto=code_admin("comto",1,20)
    party_user=request("party_user")  '发起人真名
    party_link=request("party_link")  '发起人联系方式
    address=request("address")        '地点
    party_Sign=request("party_Sign")  '暗号
    party_Mark=request("party_Mark")  '标志
    party_date=request("party_date")  '日期
    party_time=request("party_time")  '时间
    contact=request("contact")     '参加人联系方式
    party_money=request("party_money") 'AA制费用
    party_price=request("party_price") '其它费用
    if topic="" then
      call admin_error(tit_fir&"标题不能为空！")
      exit sub
    end if
    if comto="" then
      call admin_error(tit_fir&"城市不能为空！")
      exit sub
    end if
    if party_user="" then
      call admin_error(tit_fir&"发起人真名不能为空！")
      exit sub
    end if
    if party_link="" then
      call admin_error(tit_fir&"发起人联系方式不能为空！")
      exit sub
    end if
    if address="" then
      call admin_error(tit_fir&"地点不能为空！")
      exit sub
    end if
    if party_date="" then
      call admin_error(tit_fir&"日期不能为空！")
      exit sub
    end if
    if party_time="" then
      call admin_error(tit_fir&"时间不能为空！")
      exit sub
    end if
    if party_money="" then
      call admin_error(tit_fir&"AA制费用不能为空！")
      exit sub
    end if
    if word="" then
      call admin_error(tit_fir&"详情不能为空！")
      exit sub
    end if

    username=code_admin("username",1,20)
    if symbol_name(username)=false then username=login_username
    tim=code_admin("tim",1,20)
    tim=joekoe_cms.time_type(tim,1)

    if tim="" then tim=joekoe_cms.now_time
    if login_mode="admin" or login_mode="vip" then
    hidden=true
    else
end if
    hidden=false
    sql="select * from "&data_name
    call joekoe_cms.exec(sql,-1)
    rs.open sql,conn,1,3
    rs.addnew
    rs("party_info")=topic
    rs("party_add")=comto
    rs("party_master")=username
    rs("star_time")=tim
    rs("hidden")=hidden
    rs("memo")=word
 rs("party_user")=party_user
 rs("party_link")=party_link
 rs("address")=address
 rs("party_Sign")=party_Sign
 rs("party_Mark")=party_Mark
 rs("party_date")=party_date
 rs("party_time")=party_time
 rs("contact")=contact
 rs("party_money")=party_money
 rs("party_price")=party_price
    rs.update
    rs.close
    call upload_note(index_url,first_id(data_name,"id"))
    call admin_msg("发布")
    exit sub
  end if

  call form_first()
%>
<tr>
<td><%response.write tit_fir%>聚会主题：</td>
<td><input type=text name=topic size=60 maxlength=50><%response.write redx%></td>
</tr>
<tr>
<td><%response.write tit_fir%>所在城市：</td>
<td><select name=comto size=1>
<option>所在城市</option>
<option value='上海市'>上海市</option>
<option value='郑州市'>郑州市</option>
<option value='北京市'>北京市</option>
<option value="上海市">上海市</option>
<option value="广州市">广州市</option>
<option value="深圳市">深圳市</option>
<option value="重庆市">重庆市</option>
<option value="天津市">天津市</option>
<option value="杭州市">杭州市</option>
<option value="南京市">南京市</option>
<option value="武汉市">武汉市</option>
<option value="宁波市">宁波市</option>
<option value="大连市">大连市</option>
<option value="青岛市">青岛市</option>
<option value="上海市">上海市</option>
<option value="西安市">西安市</option>
<option value="哈尔滨市">哈尔滨市</option>
<option value="成都市">成都市</option>
</select><%response.write redx%>&nbsp;&nbsp;<%response.write tit_fir%>发起人姓名： <input class=wu maxlength=10 name=party_user size=10><%response.write redx%></td>
</tr>
<tr>
<td>聚会地点：</td>
<td><input class=wu maxlength=50 name=address size=60><%response.write redx%></td>
</tr>
<tr>
<td>会员帐号：</td>
<td><input type=text name=username size=20 maxlength=20>&nbsp;&nbsp;发布时间：<input type=text name=tim size=20 maxlength=20>
</td>
</tr>
<tr>
<td>接头暗号：</td>
<td><input maxlength=50 name=party_Sign size=20>&nbsp;&nbsp;聚会标志：<input maxlength=50 name=party_Mark size=20></td>
</tr>
<tr>
<td>聚会日期：</td>
<td><input maxlength=50 name=party_date size=20 value=2008-7-7><%response.write redx%>&nbsp;&nbsp;具体时间：<input class=wu maxlength=30 name=party_time size=20 value=14:30:00><%response.write redx%><br>填写格式：键盘切换至英文（2005-12-8）（17:50）</td>
</tr>

<tr>
<td>发起人联系方式：</td>
<td><input maxlength=40 name=party_link size=30><%response.write redx%>(电话或email)</td>
</tr>
<tr>
<td>开销支付方式：</td>
<td>AA制： <input maxlength=4 name=party_money size=3>元/人<%response.write redx%><br>其它： <input maxlength=50 name=party_price></td>
</tr>
<tr>
<td valign=top><%response.write tit_fir%>聚会设计构想：</td>
<td><textarea name=word rows=15 cols=65></textarea><%response.write redx%></td>
</tr>
<%
  call submit_add()
end sub
%>

