wy_trip_solutioninforup.asp
上传用户:hnxqingdao
上传日期:2013-05-22
资源大小:1283k
文件大小:11k
源码类别:

其他行业

开发平台:

ASP/ASPX

  1.  <!--#include file="../wy_trip_inc/wy_trip_cnn.inc"-->
  2. <!--#include file="../wy_trip_inc/wy_trip_fun.inc"-->
  3. <html>
  4. <head>
  5. <title>PTrip Server 2005 For 数据库课程设计
  6. </title>
  7. <META http-equiv=Content-Type content="text/html; charset=gb2312">
  8. <link rel="stylesheet" type="text/css" href="../wy_trip_css/wy_trip.css">
  9. </head>
  10. <%
  11.      
  12.   solname=request.QueryString("solname")
  13.   tablename=request.QueryString("tablename")
  14.   kind=request.QueryString("kind")
  15.   'delete item
  16.   if(kind=0) then  
  17.      set rst=server.CreateObject("adodb.recordset")
  18.  sqlstr="select * from "&tablename&" where solname='"&solname&"'"
  19.  rst.open sqlstr,conn,1,3
  20.          if not (rst.eof or rst.bof) then
  21.       pfile1=rst("solpic1")
  22.   pfile2=rst("solpic2")
  23.   pfile3=rst("solpic3")
  24.  end if
  25.  rst.close
  26.  set rst=nothing
  27.   
  28.       
  29.  set objfilesys=server.createobject("scripting.filesystemobject")
  30.  
  31.     ss1="wy_trip_images/"&pfile1
  32.     ss2="wy_trip_images/"&pfile2
  33. ss3="wy_trip_images/"&pfile3
  34.     ss1=server.mappath(ss1)
  35.     ss2=server.mappath(ss2)
  36.    ss3=server.mappath(ss3)
  37.    
  38.     if objfilesys.FILEExists(ss1) then
  39.      objfilesys.deleteFILE ss1
  40.     end if
  41.     if objfilesys.FILEExists(ss2) then
  42.      objfilesys.deleteFILE ss2
  43.     end if
  44.     if objfilesys.FILEExists(ss3) then
  45.      objfilesys.deleteFILE ss3
  46.     end if
  47.  
  48.  
  49.      tablenameinfor=tablename&"infor"
  50.      i=deleteitem(solname,tablename)
  51.      j=deleteitem(solname,tablenameinfor)
  52.  'response.Write(solname&"<br>")
  53.      'response.Write(tablename&"<br>")
  54.      'response.Write(tablenameinfor)
  55.  'response.Write(i)
  56.  'response.Write(j)
  57. 'if(i=1 and j=1 ) then
  58.    response.Redirect("wy_trip_admin.asp")
  59.  'else
  60.    '  response.Write("error")
  61. ' end if
  62.  
  63.   else
  64.   
  65.   
  66.  
  67. %>
  68. <script language="javascript" src="../wy_trip_js/wy_trip_uppic.js"></script>
  69. <script language="javascript" src="../wy_trip_js/wy_trip_check.js"></script>
  70. <body leftmargin="0" topmargin="0"  bottommargin="0" rightmargin="0" link="#3357B3" vlink="#3357B3" alink="#3357B3" bgcolor="#e8eefc">
  71.  
  72. <table width="734" height="100%" cellpadding="0" cellspacing="0">
  73. <tr>
  74.   <td valign="top" class="Main">
  75. <p class="NoBreakBeforeAfter"><img src="../wy_trip_images/TopCol3.gif" WIDTH="247" HEIGHT="23"></p>
  76. <p class="NoBreakBeforeAfter"><img src="../wy_trip_images/HeaderOtherDestination.gif" width="229" height="28"></p>
  77. <p class="Indented1" align="center"><font size="6"><b>PTrip 2005 后台管理</b></font></p>
  78. <p class="Indented1" align="center"><b>欢迎管理员 <%=adname%> 登录</b></p>
  79. <hr align="center" width="80%" color="#999999">
  80. <%
  81.          if(kind=1) then
  82.      'response.Write(solkind)
  83. sqlstr="select * from "&tablename&" where solname='"&solname&"'"
  84. 'sqlstr="select * from  trip_soloverseas  where solname='"&solname&"'"
  85. set rst=server.CreateObject("adodb.recordset")
  86. rst.open sqlstr,conn,1,1
  87. if not(rst.eof or rst.bof) then
  88.        sinfor1=rst("solinfor1")
  89.    sinfor2=rst("solinfor2")
  90.    sinfor3=rst("solinfor3")
  91. end if
  92. rst.close
  93. set rst=nothing
  94. %>  
  95. <form name="form1" action="wy_trip_asp/wy_trip_solutionupasp.asp?solname=<%=solname%>" method="post" onSubmit="return wychecksolinfor(this)" >
  96. <table width="85%"  border="0" align="center" cellpadding="0" cellspacing="0">
  97.               <tr>
  98.                 <td width="27%" scope="col" valign="top" align="center">说明信息1</td>
  99.                 <td width="73%" colspan="5" scope="col"><textarea name="solinfor1" cols="70" rows="3" id="solinfor1"><%=sinfor1%></textarea></td>
  100.               </tr>
  101.               <tr>
  102.                 <td valign="top" align="center">说明信息2</td>
  103.                 <td colspan="5"><textarea name="solinfor2" cols="70" rows="3" id="solinfor2"><%=sinfor2%></textarea></td>
  104.               </tr>
  105.               <tr>
  106.                 <td valign="top" align="center">说明信息3</td>
  107.                 <td colspan="5"><textarea name="solinfor3" cols="70" rows="3" id="solinfor3"><%=sinfor3%></textarea></td>
  108.               </tr>
  109.               <tr>
  110.                 <td>&nbsp;</td>
  111.                 <td colspan="5">&nbsp;</td>
  112.               </tr>
  113.               <tr>
  114.                 <td>&nbsp;</td>
  115.                 <td>
  116.                   <div align="right">
  117.                     <input type="submit" name="Submit" value=" 提 交 ">
  118.                 </div></td>
  119.                 <td>&nbsp;</td>
  120.                 <td>&nbsp;</td>
  121.                 <td>&nbsp;</td>
  122.                     <td>
  123.                       <div align="left">
  124.                         <input type="reset" name="Submit" value=" 重 置 ">
  125.                     </div></td></tr>
  126.             </table>
  127. </form>
  128. <p align="center">
  129. <div id="sponsorAdDiv" style="visibility:hidden; left: 2px; top: 15px; width: 197px; height: 13px"> 
  130.    <table width="200" height="25" bgcolor="#0099cc" border=0 cellspacing=1>
  131.      <tr> 
  132.        <td> 
  133.          <table width="100%" height="100%"  border=0 cellspacing=0>
  134.            <tr bgcolor="#d2e9fe"> 
  135.              <td> &nbsp;&nbsp;&nbsp;&nbsp;正在上传图片,请稍候...... </td>
  136.            </tr>
  137.          </table>
  138.        </td>
  139.      </tr>
  140.    </table>
  141. </div> 
  142. </p>
  143. <table width="85%"  border="0" align="center" cellpadding="0" cellspacing="0">
  144.               <tr>
  145.                 <th scope="col"><a href="wy_trip_solutionpicup.asp?solname=<%=solname%>&tablename=trip_soloverseas&picnu=1">更新图片1</a></th>
  146.                 <th colspan="3" scope="col">
  147. <form method="post" action="wy_trip_up/wy_upload2.asp?up=<%=up%>&solname=<%=solname%>&tablename=trip_soloverseas&solpic=1" enctype="multipart/form-data" name="form2" onsubmit="initAd();">
  148.                   <input type=file name="sf_upfile" size="25" class=text>  
  149.                   <input type="submit" name="submit" value="上 传 图 片" class="text">
  150. </form>
  151. </th>
  152.                 <th scope="col">&nbsp;</th>
  153.               </tr>
  154.               <tr>
  155.                 <th scope="col"><a href="wy_trip_solutionpicup.asp?solname=<%=solname%>&tablename=trip_soloverseas&picnu=2">更新图片2</a></th>
  156.                 <th colspan="3" scope="col">
  157. <form method="post" action="wy_trip_up/wy_upload2.asp?up=<%=up%>&solname=<%=solname%>&tablename=trip_soloverseas&solpic=2" enctype="multipart/form-data" name="form2" onsubmit="initAd();">
  158.                   <input type=file name="sf_upfile" size="25" class=text>  
  159.                   <input type="submit" name="submit" value="上 传 图 片" class="text">
  160. </form>
  161. </th>
  162.                 <th scope="col">&nbsp;</th>
  163.               </tr>
  164.               <tr>
  165.                 <th scope="col"><a href="wy_trip_solutionpicup.asp?solname=<%=solname%>&tablename=trip_soloverseas&picnu=3">更新图片3</a></th>
  166.                 <th colspan="3" scope="col">
  167. <form method="post" action="wy_trip_up/wy_upload2.asp?up=<%=up%>&solname=<%=solname%>&tablename=trip_soloverseas&solpic=3" enctype="multipart/form-data" name="form2" onsubmit="initAd();">
  168.                   <input type=file name="sf_upfile" size="25" class=text>  
  169.                   <input type="submit" name="submit" value="上 传 图 片" class="text">
  170. </form>
  171. </th>
  172.                 <th scope="col">&nbsp;</th>
  173.               </tr>
  174.               <tr>
  175.                 <th scope="col">&nbsp;</th>
  176.                 <th scope="col">&nbsp;</th>
  177.                 <th scope="col">&nbsp;</th>
  178.                 <th scope="col">&nbsp;</th>
  179.                 <th scope="col">&nbsp;</th>
  180.               </tr>
  181.               <tr>
  182.                 <th scope="col">&nbsp;</th>
  183.                 <th scope="col">&nbsp;</th>
  184.                 <th scope="col">&nbsp;</th>
  185.                 <th scope="col"><a href="wy_trip_admin.asp">返回上一页</a></th>
  186.                 <th scope="col">&nbsp;</th>
  187.               </tr>
  188.             </table>
  189. <p>&nbsp;</p>
  190. <p>&nbsp;</p>
  191. <p>&nbsp;</p></td>
  192. </tr>
  193. </table>
  194. <%
  195.        else   
  196.    
  197.     sqlstr="select * from "&tablename&" where solname='"&solname&"'"
  198. 'sqlstr="select * from  trip_soloverseas  where solname='"&solname&"'"
  199. set rst=server.CreateObject("adodb.recordset")
  200. rst.open sqlstr,conn,1,1
  201. if not(rst.eof or rst.bof) then
  202.       solna=rst("solname")
  203.  soladdress=rst("soladdress")
  204.  soltype=rst("soltype")
  205.  solabode=rst("solabode")
  206.  solmoney=rst("solmoney")
  207.  solnote=rst("solnote")
  208.  soltime=rst("soltime")
  209. end if
  210. rst.close
  211. set rst=nothing
  212. %>
  213. <form name="form2" action="wy_trip_asp/wy_trip_solutioninforupasp.asp?tsolname=<%=solname%>&tablename=<%=tablename%>" method="post">
  214. <table width="734"  height="67%" border="0" align="center" cellpadding="0" cellspacing="0">
  215.               <tr>
  216.                 <td width="30%" height="22" scope="col"><div align="center">方案名称</div></td>
  217.                 <td width="70%" colspan="4" scope="col"><input name="solname" type="text" id="solname" value="<%=solna%>"></td>
  218.               </tr>
  219.               <tr>
  220.                 <td height="22"><div align="center">地点</div></td>
  221.                 <td colspan="4"><input name="soladdress" type="text" id="soladdress" value="<%=soladdress%>"></td>
  222.               </tr>
  223.               <tr>
  224.                 <td height="24"><div align="center">类型</div></td>
  225.                 <td colspan="4"><select name="soltype">
  226. <option value="<%=soltype%>" selected><%=soltype%></option>
  227. <option value="山" >山</option>
  228. <option value="水">水</option>
  229. <option value="海">海</option>
  230. <option value="其它">其它</option>
  231.                 </select></td>
  232.               </tr>
  233.               <tr>
  234.                 <td height="22"><div align="center">下榻地点</div></td>
  235.                 <td colspan="4"><input name="solabode" type="text" id="solabode" value="<%=solabode%>"></td>
  236.               </tr>
  237.               <tr>
  238.                 <td height="22"><div align="center">费用</div></td>
  239.                 <td colspan="4"><input name="solmoney" type="text" id="solmoney" value="<%=solmoney%>"></td>
  240.               </tr>
  241.               <tr>
  242.                 <td height="70"><div align="center">其它说明</div></td>
  243.                 <td colspan="4"><textarea name="solnote" cols="70" rows="3" id="solnote"><%=solnote%></textarea></td>
  244.               </tr>
  245.               <tr>
  246.                 <td height="22"><div align="center">公布时间</div></td>
  247.                 <td colspan="4"><input name="soltime" type="text" id="soltime" value="<%=soltime%>" readonly="true"></td>
  248.               </tr>
  249.               <tr>
  250.                 <td height="13">&nbsp;</td>
  251.                 <td colspan="4">&nbsp;</td>
  252.               </tr>
  253.               <tr>
  254.                 <td>&nbsp;</td>
  255.                 <td><div align="right">
  256.                   <input type="submit" name="Submit" value=" 提 交 ">
  257.                 </div></td>
  258.                 <td>&nbsp;</td>
  259.                 <td><input type="reset" name="Submit" value=" 重 置 "></td>
  260.                 <td>&nbsp;</td>
  261.               </tr>
  262.   <tr>
  263.     <td>&nbsp;</td>
  264. <td>&nbsp;</td>
  265. <td>&nbsp;</td>
  266. <td><a href="wy_trip_admin.asp" target="main">放弃</a></td>
  267.   </tr>
  268.          </table>
  269. </form>
  270. <%
  271.         end if
  272.      end if
  273. %>
  274. </body>
  275. </html>