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

其他行业

开发平台:

ASP/ASPX

  1. <!--#include file="../wy_trip_inc/wy_trip_fun.inc"-->
  2. <html>
  3. <head>
  4. <title>PTrip Server 2005 For 数据库课程设计
  5. </title>
  6. <META http-equiv=Content-Type content="text/html; charset=gb2312">
  7. <link rel="stylesheet" type="text/css" href="../wy_trip_css/wy_trip.css">
  8. </head>
  9. <script language="javascript" src="../wy_trip_js/wy_trip_check.js"></script>
  10. <script language="javascript" src="../wy_trip_js/wy_trip_inputcheck.js"></script>
  11. <%  
  12.     '获得公司关于信息
  13. aboutus=sqlshow("select * from trip_infor","aboutus")
  14. strlen=len(aboutus)
  15. if(strlen>=420)then
  16.     strlen=420
  17. strend="... ..."
  18.     else
  19.     strend=""
  20. end if
  21. aboutus=left(aboutus,strlen)
  22. aboutus=aboutus&strend
  23. '获得旅游说明信息
  24. statement=sqlshow("select * from trip_infor","statement")
  25. strlen=len(statement)
  26. if(strlen>=260)then
  27.    strlen=260
  28.    strend="... ..."
  29. else
  30.    strend=""   
  31. end if
  32. statement=left(statement,strlen)
  33. statement=statement&strend
  34. set rst=server.CreateObject("adodb.recordset")
  35. sqlstr="select * from  trip_soloverseas order by id "
  36. rst.open sqlstr,conn,1,1
  37. dim solt(4)
  38.     for i=0 to 3 
  39. if not (rst.eof or rst.bof) then
  40.      solt(i)=rst("solname")
  41.  rst.movenext
  42. else
  43.     exit for  
  44. end if
  45.     next
  46. rst.close
  47. set rst=nothing
  48. ppath=pictitle("trip_infor")
  49.     'response.Write(ppath)
  50. set rst=server.CreateObject("adodb.recordset")
  51. sqlstr="select * from trip_infor"
  52. rst.open sqlstr,conn,1,1
  53. if not (rst.eof or rst.bof) then
  54.     solpname1="../wy_trip_images/"&rst("solpic1")
  55. solpname2="../wy_trip_images/"&rst("solpic2")
  56. solpname3="../wy_trip_images/"&rst("solpic3")
  57. solpname4="../wy_trip_images/"&rst("solpic4")
  58. end if
  59. rst.close
  60. set rst=nothing
  61. %>
  62. <body leftmargin="0" topmargin="0" link="#3357B3" vlink="#3357B3" alink="#3357B3" bgcolor="#e8eefc">
  63. <table width="726" height="552" cellpadding="0" cellspacing="0">
  64. <tr>
  65. <td width="56%" height="552" valign="top" class="Main">
  66. <p class="NoBreakBeforeAfter"><img src="../wy_trip_images/TopCol3.gif" WIDTH="247" HEIGHT="23"></p>
  67. <p class="NoBreakBeforeAfter"><img src="../wy_trip_images/HeaderAboutUs.gif" WIDTH="229" HEIGHT="26"></p>
  68. <p class="Indented1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<%=aboutus%></p>
  69. <p class="Indented1">
  70.   <table cellpadding="0" cellspacing="0">
  71. <tr height="1">
  72. <td><img src="<%=ppath%>" class="Bordered" WIDTH="103" HEIGHT="145"></td>
  73. <td><img src="_blank.gif" width="6" height="1"></td>
  74. <td>
  75. <table cellpadding="0" cellspacing="0" height="100%">
  76. <tr>
  77. <td>
  78. <p><%=statement%></p>
  79. </td>
  80. </tr>
  81. <tr height="100%">
  82. <td></td>
  83. </tr>
  84. <tr>
  85. <td>
  86. <table cellpadding="0" cellspacing="0">
  87. <tr>
  88. <td><a href="index.html"><img src="../wy_trip_images/Icon1.gif" border="0" WIDTH="30" HEIGHT="32"></a></td>
  89. <td><img src="_blank.gif" width="6" height="0"></td>
  90. <td valign="bottom"><img src="../wy_trip_images/Caption.gif" WIDTH="173" HEIGHT="17"></td>
  91. </tr>
  92. </table>
  93. </td>
  94. </tr>
  95. </table>
  96. </td>
  97. </tr>
  98.   </table>
  99. </p>
  100. <br>
  101. <p><img src="../wy_trip_images/HeaderOtherDestination.gif" WIDTH="229" HEIGHT="28"></p>
  102. <table cellpadding="0" cellspacing="0">
  103. <tr>
  104. <td><img src="_blank.gif" width="14" height="8"></td>
  105. <td><a href="../wy_trip_sol/wy_trip_sol.asp?solname=<%=solt(0)%>" target="main"><img src="<%=solpname1%>" class="Bordered" border="0" WIDTH="103" HEIGHT="82"></a><p align="center"><a href="../wy_trip_sol/wy_trip_sol.asp?solname=<%=solt(0)%>" target="main"><%=solt(0)%></a></p></td>
  106. <td><img src="_blank.gif" width="15" height="8"></td>
  107. <td><a href="../wy_trip_sol/wy_trip_sol.asp?solname=<%=solt(1)%>" target="main"><img src="<%=solpname2%>" class="Bordered" border="0" WIDTH="107" HEIGHT="82"></a><p align="center"><a href="../wy_trip_sol/wy_trip_sol.asp?solname=<%=solt(1)%>" target="main"><%=solt(1)%></a></p></td>
  108. <td><img src="_blank.gif" width="15" height="8"></td>
  109. <td><a href="../wy_trip_sol/wy_trip_sol.asp?solname=<%=solt(2)%>" target="main"><img src="<%=solpname3%>" class="Bordered" border="0" WIDTH="103" HEIGHT="82"></a><p align="center"><a href="../wy_trip_sol/wy_trip_sol.asp?solname=<%=solt(2)%>" target="main"><%=solt(2)%></a></p></td>
  110. <td><img src="_blank.gif" width="15" height="8"></td>
  111. <td><a href="../wy_trip_sol/wy_trip_sol.asp?solname=<%=solt(3)%>" target="main"><img src="<%=solpname4%>" class="Bordered" border="0" WIDTH="103" HEIGHT="82"></a><p align="center"><a href="../wy_trip_sol/wy_trip_sol.asp?solname=<%=solt(3)%>" target="main"><%=solt(3)%></a></p></td>
  112. </tr>
  113. </table>
  114. <br>
  115.   </td>
  116. <td width="1%" class="Main"><img src="_blank.gif" width="12" height="1"></td>
  117.   <td width="43%" valign="top">
  118. <p align="right"><img src="../wy_trip_images/HeaderNews.gif" WIDTH="169" HEIGHT="26"></p>
  119. <p><img src="_blank.gif" width="1" height="12"></p>
  120. <p class="Indented1">
  121.   <table width="226" cellpadding="0" cellspacing="0">
  122. <tr>
  123. <td width="80" valign="top"><a href="index.html"><img src="../wy_trip_images/Photo2.jpg" class="Bordered" border="0" WIDTH="78" HEIGHT="78"></a><br><br></td>
  124. <td width="12"><img src="_blank.gif" width="12" height="1"></td>
  125. <td width="162" valign="top">
  126. <p class="Title NoBreakBefore"><a href="../wy_trip_sol/wy_trip_solho.asp?soladdress=0" target="main">国内旅游解决方案</a></p>
  127.   <p class="Indented2"> 为您提供国内最新的旅游方案,其方案覆全国数十个省市。北起冰雪之国哈尔滨,南到祖国宝岛台湾,西起... ... <br>
  128.             <br>
  129.   </p>
  130.   </td>
  131. </tr>
  132. <tr>
  133.   <td valign="top"><a href="index.html"><img src="../wy_trip_images/Photo3.jpg" class="Bordered" border="0" width="78" height="78"></a></td>
  134.   <td><img src="_blank.gif" width="12" height="8"></td>
  135.   <td valign="top"><p class="Title NoBreakBefore"><a href="../wy_trip_sol/wy_trip_solho.asp?soladdress=1" target="main">国外旅游解决方案</a></p>
  136.       <p class="Indented2">为您提供当前国际最优的旅行方案.其方案覆盖全球十个国家,为您提过最便捷的签证,提供最优的服务... ... </p></td>
  137.     </tr>
  138. <tr>
  139. <td height="20" colspan="3" valign="top"><div align="right">
  140.   <div align="right"><br>
  141.       </div>
  142.     </tr>
  143.     </table>
  144. </p>
  145. <br>
  146. <p align="right"><img src="../wy_trip_images/HeaderNewsletter.gif" WIDTH="167" HEIGHT="25"></p>
  147. <p align="right">
  148.     </p>
  149.             <img src="_blank.gif" width="225" height="1">
  150.             <table width="100%"  border="0" cellspacing="0" cellpadding="0">
  151.               <tr>
  152.                 <th scope="col">&nbsp;</th>
  153.               </tr>
  154.               <tr>
  155.                 <td>&nbsp;</td>
  156.               </tr>
  157.               <tr>
  158.                 <td>&nbsp;</td>
  159.               </tr>
  160.               <tr>
  161.                 <td>&nbsp;</td>
  162.               </tr>
  163.               <tr>
  164.                 <td>&nbsp;</td>
  165.               </tr>
  166.             </table></td>
  167. </tr>
  168. </table>
  169. </body>
  170. </html>