admin_addxianlu.asp

来自「旅游管理系统 用ASP+SQL 2」· ASP 代码 · 共 180 行

ASP
180
字号
<html>
<head>
<meta name=vs_targetSchema content="HTML 4.0">
<title>添加旅游线路</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="css/css1.css" type="text/css">

<script id=clientEventHandlersVBS language=vbscript>
<!--
Sub mfkiqpl_onclick
 if form1.t2.value="" then
 window.alert ("您要添加的线路名称不能为空!")
 form1.t2.focus
 else
 if len(form1.t2.value)>32 then
 window.alert ("您要添加的线路名称的字数不能大于32!")
 form1.t2.focus 
 else
 if form1.t3.value="" then
 window.alert ("您要添加的线路报价没正确填写!")
 form1.t3.focus
 else
 if form1.t4.value="" then
 window.alert ("您要添加的线路类型忘了填写了!")
 form1.t4.focus
 else
 if form1.t5.value="" then
 window.alert ("您要添加的线路游完需要的时候没填写!")
 form1.t5.focus
 else
 if form1.t6.value="" then
 window.alert ("您要添加的线路说明必需填写其中一个!")
 form1.t6.focus
 else
 if form1.t8.value="" then
 window.alert ("您要添加的线路所包含的景点必须填写!")
 form1.t8.focus
 else
 if form1.t9.value="" then
 window.alert ("您要添加的线路行程安排未填写!")
 form1.t9.focus
 else
 form1.submit
 end if
 end if
 end if
 end if
 end if
 end if
 end if
 end if
End Sub
Sub yesno_onclick
	if form1.t12.value="" then
	window.alert ("图片地址不正确!请用完整的http路径。")
	else
	dim photoadd
	photoadd=form1.t12.value
	window.open (photoadd)
	end if
End Sub
-->
</script>
</head>
<body bgcolor="#FFFFFF" style="background-color: #999999" text="#000000" topmargin="5">
<%
if session("administrator")<>"administrator" then
Response.Redirect ("admin_login.asp")
end if
%>
<!--#include file="includefile/shoubu.asp" -->
<form name="form1" method="post" action="add_xianlu_ok.asp">
  <table width="735" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#CCCCCC">
    <tr> 
      <td class=title height="20" align="center">添加新的旅游线路</td>
    </tr>
  </table>
  <table width="735" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#EFEFEF">
    <tr> 
      <td height="23" width="171" align="left">  ID号:</td>
      <td height="23" width="382"> 
        <input type="text" name="t1" class="input" readonly>
      </td>
      <td height="23" width="182">*方便管理而设,系统自己分配</td>
    </tr>
    <tr> 
      <td height="23" width="171" align="left">  线路名称:</td>
      <td height="23" width="382"> 
        <input type="text" name="t2" size="50" class="input">
      </td>
      <td height="23" width="182">&nbsp;</td>
    </tr>
    <tr> 
      <td height="23" width="171" align="left">  线路报价:</td>
      <td height="23" width="382"> 
        <input type="text" name="t3" size="20" class="input">
      </td>
      <td height="23" width="182">*请说明币种</td>
    </tr>
    <tr> 
      <td height="23" width="171" align="left">  线路类型:</td>
      <td height="23" width="382"> 
        <input type="text" name="t4" size="30" class="input">
      </td>
      <td height="23" width="182">*根据情况自己设定</td>
    </tr>
    <tr> 
      <td height="23" width="171" align="left">  线路游完时间:</td>
      <td height="23" width="382"> 
        <input type="text" name="t5" size="15" class="input">
      </td>
      <td height="23" width="182">*完成整过线路旅行所需时间</td>
    </tr>
    <tr> 
      <td height="90" width="171" align="left">  线路说明(1):</td>
      <td height="90" width="382"> 
        <textarea name="t6" cols="50" rows="5" class="input"></textarea>
      </td>
      <td height="90" width="182">*对此线路的说明</td>
    </tr>
    <tr> 
      <td height="90" width="171" align="left">  线路说明(2):</td>
      <td height="90" width="382"> 
        <textarea name="t7" cols="50" rows="5" class="input"></textarea>
      </td>
      <td height="90" width="182">*对此线路的说明,由于各旅行社对线路的说明祥细不同,所以设置了两栏</td>
    </tr>
    <tr> 
      <td height="90" width="171" align="left">  线路景点:</td>
      <td height="90" width="382"> 
        <textarea name="t8" cols="50" rows="5" class="input"></textarea>
      </td>
      <td height="90" width="182">*在对此线路进行游玩时所能见到的景点</td>
    </tr>
    <tr> 
      <td height="90" width="171" align="left">  线路行程安排(1):</td>
      <td height="90" width="382"> 
        <textarea name="t9" cols="50" rows="5" class="input"></textarea>
      </td>
      <td height="90" width="182">*行程安排</td>
    </tr>
    <tr> 
      <td height="90" width="171" align="left">  线路行程安排(2):</td>
      <td height="90" width="382"> 
        <textarea name="t10" cols="50" rows="5" class="input"></textarea>
      </td>
      <td height="90" width="182">*同理</td>
    </tr>
    <tr> 
      <td height="90" width="171" align="left">  注释:</td>
      <td height="90" width="382"> 
        <textarea name="t11" cols="50" rows="5" class="input"></textarea>
      </td>
      <td height="90" width="182">*对此线路的注释、备注</td>
    </tr>
    <tr> 
      <td height="23" width="171" align="left">  线路景点图片:</td>
      <td height="23" width="382"> 
        <input type="text" name="t12" size="50" class="input">
      </td>
      <td height="23" width="182">
      
        <input type="button" name="yesno" value="查看此图片" class="button">
        <br>
        *必须是http的完整路径</td>
    </tr>
    <tr align="center"> 
      <td height="31" colspan="3">
        <input type="button" name="mfkiqpl" value="确定添加" class="button">
            
        <input type="reset" name="Submit2" value="清除所有" class="button">
      </td>
    </tr>
  </table>
</form>
<br>
<!--#include file="includefile/weibu.asp" -->
</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?