 <% 
	data_path="../../" 'ACCݿ·SQLЧ
	numid="101"
	dir="../err.asp" 
 %>
<!--#include file="../../conn/conn.asp"-->
<!--#include file="../../inc/safe.asp"-->
 <!--#include file="../rolecheck.asp"-->

<%
 
id=replace(request.QueryString("id"),"'","")
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>վHTMLģϢ</title>
<LINK href="../css/style.css" rel=stylesheet type=text/css>
</head>
<body>
<SCRIPT language=javascript>
<!--
function admin_Size(num,objname)
{
	var obj=document.getElementById(objname)
	if (parseInt(obj.rows)+num>=3) {
		obj.rows = parseInt(obj.rows) + num;	
	}
	if (num>0)
	{
		obj.width="90%";
	}
}
//--> 
</SCRIPT>
<table border="0" cellspacing="1" cellpadding="3" align=center class="tableBorder"> 
  <tr> 
    <th width="180%" class="tableHeaderText" height=25>վHTMLģ</th> 
  </tr> 
  <tr> 
    <td class="forumRowHighlight"><p><B>ע</B><BR> 
        ޸ģ壬Ա༭񣬲ʱ밴ҳʾдϢ<BR> 
        ִɾʱҪأκεɾǲġ<br> </td> 
  </tr> 
</table>
<%
If request("action")="" Then
sql="select home_index,tradeinfo_index,seller_index,yx_tempname,corporation_index,job_index,productshow_index,vipinfo_index,expo_index,info_index,help_index,feedback_index from websen_worldec_Temp where id="&id
Set rs= Server.CreateObject("ADODB.Recordset")
rs.open sql,conn,1,1
home_index=rs("home_index")
tradeinfo_index=rs("tradeinfo_index")
seller_index=rs("seller_index")
corporation_index=rs("corporation_index")
productshow_index=rs("productshow_index")
vipinfo_index=rs("expo_index")
expo_index=rs("vipinfo_index")
info_index=rs("info_index")
help_index=rs("help_index")
feedback_index=rs("feedback_index")
job_index=rs("job_index")
yx_tempname=rs("yx_tempname")
%> 
<form name="Form" action="?action=saveedit&id=<%=id%>" method=post>
  <table border="0" cellspacing="1" cellpadding="3" align=center class="tableBorder">
    <tr>
      <th class="tableHeaderText" colspan=3 height=25>վҳģ</th>
    </tr>
    <tr>
      <td class="forumRowHighlight" height=30 align=left>ģƣ</td>
      <td class="forumRowHighlight" height=25 align=left><label>
        <input name="yx_tempname"  onBlur="this.value=this.value.replace(/\s/igm,'')" type="text" id="yx_tempname" value="<%=yx_tempname%>" size="50" maxlength="50">
      </label></td>
      <td class="forumRowHighlight">&nbsp;</td>
    </tr>
    <tr>
      <td class="forumRowHighlight" width=19% height=40 align=left>վҳģ棺<br></td>
      <td class="forumRowHighlight" width=78% height=25 align=left><textarea name="home_index" id="home_index" cols="100" rows="5"><%=rs("home_index")%></textarea>
      </td>
      <td width="3%" class="forumRowHighlight"><a href="javascript:admin_Size(-5,'home_index')"><img src="../images/minus.gif" width="20" height="20" border='0' unselectable="on"></a> <a href="javascript:admin_Size(5,'home_index')"><img src="../images/plus.gif" width="20" height="20" border='0' unselectable="on"></a> </td>
    </tr>
    <tr>
      <td class="forumRowHighlight" width=19% height=40 align=left>Ҫɹҳģ棺<br>
        <a href="worldec_tradeinfo.asp?id=<%=id%>&HOPE_Type=other"><u>Ҫɹģ</u></a></td>
      <td class="forumRowHighlight" width=78% height=25 align=left><textarea name="tradeinfo_index" id="tradeinfo_index" cols="100" rows="5"><%=rs("tradeinfo_index")%></textarea></td>
      <td class="forumRowHighlight"><a href="javascript:admin_Size(-5,'tradeinfo_index')"><img src="../images/minus.gif" width="20" height="20" border='0' unselectable="on"></a> <a href="javascript:admin_Size(5,'tradeinfo_index')"><img src="../images/plus.gif" width="20" height="20" border='0' unselectable="on"></a> </td>
    </tr>
    <tr>
      <td class="forumRowHighlight" width=19% height=40 align=left>Ҫҳģ棺<br>
        <a href="worldec_seller.asp?id=<%=id%>&HOPE_Type=other"><u>Ҫģ</u></a></td>
      <td class="forumRowHighlight" width=78% height=25 align=left><textarea name="seller_index" id="seller_index" cols="100" rows="5"><%=rs("seller_index")%></textarea></td>
      <td class="forumRowHighlight"><a href="javascript:admin_Size(-5,'seller_index')"><img src="../images/minus.gif" width="20" height="20" border='0' unselectable="on"></a> <a href="javascript:admin_Size(5,'seller_index')"><img src="../images/plus.gif" width="20" height="20" border='0' unselectable="on"></a> </td>
    </tr>
    <tr>
      <td class="forumRowHighlight" width=19% height=40 align=left>˾ҳģ棺<br>
        <a href="worldec_corporation.asp?id=<%=id%>&HOPE_Type=other"><u>빫˾ģ</u></a></td>
      <td class="forumRowHighlight" width=78% height=25 align=left><textarea name="corporation_index" id="corporation_index" cols="100" rows="5"><%=rs("corporation_index")%></textarea></td>
      <td class="forumRowHighlight"><a href="javascript:admin_Size(-5,'corporation_index')"><img src="../images/minus.gif" width="20" height="20" border='0' unselectable="on"></a> <a href="javascript:admin_Size(5,'corporation_index')"><img src="../images/plus.gif" width="20" height="20" border='0' unselectable="on"></a> </td>
    </tr>
    <tr>
      <td class="forumRowHighlight" width=19% height=40 align=left>Ʒҳģ棺<br>
        <a href="worldec_productshow.asp?id=<%=id%>&HOPE_Type=other"><u>Ʒģ</u></a></td>
      <td class="forumRowHighlight" width=78% height=25 align=left><textarea name="productshow_index" id="productshow_index" cols="100" rows="5"><%=rs("productshow_index")%></textarea></td>
      <td class="forumRowHighlight"><a href="javascript:admin_Size(-5,'productshow_index')"><img src="../images/minus.gif" width="20" height="20" border='0' unselectable="on"></a> <a href="javascript:admin_Size(5,'productshow_index')"><img src="../images/plus.gif" width="20" height="20" border='0' unselectable="on"></a> </td>
    </tr>
    <tr>
      <td class="forumRowHighlight" width=19% height=40 align=left>ר̻ҳģ壺<br>
          <a href="../webtemp/Template_index.asp?skinorder=5&id=5"><u> ר̻ģ</u></a> <br>
          <br>
      </td>
      <td class="forumRowHighlight" width=78% height=25 align=left><textarea name="vipinfo_index" id="vipinfo_index" cols="100" rows="5"><%=rs("vipinfo_index")%></textarea></td>
      <td class="forumRowHighlight"><a href="javascript:admin_Size(-5,'vipinfo_index')"><img src="../images/minus.gif" width="20" height="20" border='0' unselectable="on"></a> <a href="javascript:admin_Size(5,'vipinfo_index')"><img src="../images/plus.gif" width="20" height="20" border='0' unselectable="on"></a> </td>
    </tr>
    <tr>
      <td class="forumRowHighlight" width=19% height=40 align=left>չҳģ棺<br>
        <a href="worldec_expo.asp?id=<%=id%>&HOPE_Type=other"><u>չģ</u></a></td>
      <td class="forumRowHighlight" width=78% height=25 align=left><textarea name="expo_index" id="expo_index" cols="100" rows="5"><%=rs("expo_index")%></textarea></td>
      <td class="forumRowHighlight"><a href="javascript:admin_Size(-5,'expo_index')"><img src="../images/minus.gif" width="20" height="20" border='0' unselectable="on"></a> <a href="javascript:admin_Size(5,'expo_index')"><img src="../images/plus.gif" width="20" height="20" border='0' unselectable="on"></a> </td>
    </tr>
    <tr>
      <td class="forumRowHighlight" width=19% height=40 align=left>ҵѶҳģ棺<br>
        <a href="worldec_info.asp?id=<%=id%>&HOPE_Type=other"><u>ҵѶģ</u></a></td>
      <td class="forumRowHighlight" width=78% height=25 align=left><textarea name="info_index" id="info_index" cols="100" rows="5"><%=rs("info_index")%></textarea></td>
      <td class="forumRowHighlight"><a href="javascript:admin_Size(-5,'info_index')"><img src="../images/minus.gif" width="20" height="20" border='0' unselectable="on"></a> <a href="javascript:admin_Size(5,'info_index')"><img src="../images/plus.gif" width="20" height="20" border='0' unselectable="on"></a> </td>
    </tr>
    <tr>
      <td class="forumRowHighlight" width=19% height=40 align=left>Ϣҳģ棺<br>
        <a href="worldec_help.asp?id=<%=id%>&HOPE_Type=other"><u>Ϣģ</u></a></td>
      <td class="forumRowHighlight" width=78% height=25 align=left><textarea name="help_index" id="help_index" cols="100" rows="5"><%=rs("help_index")%></textarea></td>
      <td class="forumRowHighlight"><a href="javascript:admin_Size(-5,'help_index')"><img src="../images/minus.gif" width="20" height="20" border='0' unselectable="on"></a> <a href="javascript:admin_Size(5,'help_index')"><img src="../images/plus.gif" width="20" height="20" border='0' unselectable="on"></a> </td>
    </tr>
    <tr>
      <td class="forumRowHighlight" height=40 align=left>˲ҳģ棺</td>
      <td class="forumRowHighlight" height=25 align=left><textarea name="job_index" id="job_index" cols="100" rows="5"><%=rs("job_index")%></textarea></td>
      <td class="forumRowHighlight"><a href="javascript:admin_Size(-5,'job_index')"><img src="../images/minus.gif" width="20" height="20" border='0' unselectable="on"></a> <a href="javascript:admin_Size(5,'job_index')"><img src="../images/plus.gif" width="20" height="20" border='0' unselectable="on"></a> </td>
    </tr>
    <tr>
      <td class="forumRowHighlight" width=19% height=40 align=left>Աģ棺</td>
      <td class="forumRowHighlight" width=78% height=25 align=left><textarea name="feedback_index" id="feedback_index" cols="100" rows="5"><%=rs("feedback_index")%></textarea></td>
      <td class="forumRowHighlight"><a href="javascript:admin_Size(-5,'feedback_index')"><img src="../images/minus.gif" width="20" height="20" border='0' unselectable="on"></a> <a href="javascript:admin_Size(5,'feedback_index')"><img src="../images/plus.gif" width="20" height="20" border='0' unselectable="on"></a> </td>
    </tr>
    <tr>
      <td height="25" colspan="3" align="center" class="forumRowHighlight"><input type="submit" name="B1" value="ȷ޸"></td>
    </tr>
  </table>
</form> 
<%
rs.close
set rs=nothing
end if
If request("action")="saveedit" Then
home_index=replace(Request.Form("home_index"),"","'")
tradeinfo_index=Request.Form("tradeinfo_index")
seller_index=Request.Form("seller_index")
corporation_index=Request.Form("corporation_index")
productshow_index=Request.Form("productshow_index")
vipinfo_index=Request.Form("vipinfo_index")
expo_index=Request.Form("expo_index")
info_index=Request.Form("info_index")
help_index=replace(Request.Form("help_index"),"","'")
feedback_index=Request.Form("feedback_index")
job_index=Request.Form("job_index")
yx_tempname=Request.Form("yx_tempname")

sql="select home_index,tradeinfo_index,yx_tempname,seller_index,job_index,corporation_index,productshow_index,vipinfo_index,expo_index,info_index,help_index,feedback_index from websen_worldec_Temp where id="&id
Set rs= Server.CreateObject("ADODB.Recordset") 
rs.open sql,conn,1,3

rs("home_index")=home_index
rs("tradeinfo_index")=tradeinfo_index
rs("seller_index")=seller_index
rs("corporation_index")=corporation_index
rs("productshow_index")=productshow_index
rs("vipinfo_index")=vipinfo_index
rs("expo_index")=expo_index
rs("info_index")=info_index
rs("help_index")=help_index
rs("feedback_index")=feedback_index
rs("job_index")=job_index
rs("yx_tempname")=yx_tempname

rs.update
rs.close
set rs=nothing
conn.close
set conn=nothing

response.write"<br><table cellpadding=2 cellspacing=1 border=0 width=400 class=tableBorder align=center>"
response.write"<TR>"
response.write"<TH class=tableHeaderText colSpan=2 height=25>վģϢ</TH>"
response.write"<TR><tr><td height=85 valign=top class=forumRow><div align=center><br><br>վģ屣ɹ</div></td></tr>"
response.write"<tr align=center><td height=30 class=forumRowHighlight><a href='worldec_index.asp?id="&id&"'>&lt;&lt; һҳ</a></td>"
response.write"</tr>"
response.write"</table>"
response.write"<br><br>"
end if
%>
 
</body>
</html>
<!--#include file="../copy.asp"-->