⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 webcode.asp

📁 最流行的HTTP服务器软件之一。快速、可靠、可通过简单的API扩展
💻 ASP
📖 第 1 页 / 共 2 页
字号:
big.movenext
  wend
show_psort=show_psort&"</select>"
end sub
'======显示最新招聘信息
sub showtopjob(n,l)
show_topjob="<table width='98%' border='0' align='center' cellpadding='0' cellspacing='0'>"
show_topjob=show_topjob&" <tr>"
show_topjob=show_topjob&"    <td><div>"

				set rs=conn.execute("select top "&n&" id,title,adddate from cai_job order by id desc")
				if rs.eof then

 show_topjob=show_topjob&"     <li>没有资料</li>"

				end if
				while not rs.eof

show_topjob=show_topjob&"<li><a href='job.asp#"&rs(0)&"' title='"&rs(1)&"'>"&left(rs(1),l)&"</a></li>"
                rs.movenext
				wend

show_topjob=show_topjob&"                        </div></td>"
show_topjob=show_topjob&"                      </tr>"
show_topjob=show_topjob&"                    </table>"
end sub
'=======显示最新下载信息
sub showtopdown(n,l)
show_topdown="<table width='98%' border='0' align='center' cellpadding='0' cellspacing='0'>"
show_topdown=show_topdown&" <tr>"
show_topdown=show_topdown&"    <td><div>"

				set rs=conn.execute("select top "&n&" id,title,adddate from cai_down order by id desc")
				if rs.eof then

show_topdown=show_topdown&"     <li>没有资料</li>"

				end if
				while not rs.eof

show_topdown=show_topdown&"<li><a href='showdown.asp?id="&rs(0)&"' title='"&rs(1)&"'>"&left(rs(1),l)&"</a></li>"
                rs.movenext
				wend

show_topdown=show_topdown&"                        </div></td>"
show_topdown=show_topdown&"                      </tr>"
show_topdown=show_topdown&"                    </table>"
end sub
'======显示最新产品
'参数说明:n: 显示数量,w:图片宽度,h:图片高度,m:每行显示的数量,0为不换行
sub showtoppic(n,w,h,m)
show_toppic="<table width='98%' border='0' align='center' cellpadding='3' cellspacing='0'>"
show_toppic=show_toppic&"<tr>"

				set rs=conn.execute("select top "&n&" id,title,pic from cai_product order by id desc")
				if rs.eof then
show_toppic=show_toppic &"没有资料"
				end if
				p_f=0
				while not rs.eof

show_toppic=show_toppic&"<td>"
show_toppic=show_toppic&"<table border='0' cellspacing='0' cellpadding='0'>	"
show_toppic=show_toppic&"<tr>"
show_toppic=show_toppic&"<td colspan='2' align='center'><a href='showproduct.asp?id="&rs(0)&"'>"
show_toppic=show_toppic&"<img src='"&rs(2)&"' width='"&w&"' height='"&h&"' border='0' class='product' title='"&rs(1)&"'></a></td>"
show_toppic=show_toppic&"                  </tr>"
show_toppic=show_toppic&"                  <tr>"
show_toppic=show_toppic&" <td width='50%' height='30' align='center'><a href='showproduct.asp?id="&rs(0)&"'>详 细</a>"
show_toppic=show_toppic&"<a href='showproduct.asp?id="&rs(0)&"'></a></td>"
show_toppic=show_toppic&"<td height='30' align='center'><a href='order.asp?id="&rs(0)&"'>订 购</a></td>"
show_toppic=show_toppic&"</tr>"
show_toppic=show_toppic&"                </table>	"		
show_toppic=show_toppic&"				</td>"
                p_f=p_f+1
				'当m=0时不换行,目的:为了可以让产品滚动显示
				if clng(m)<>0 then
				    if p_f=clng(m) then
                       show_toppic=show_toppic&"</tr><tr>"		
                    end if
			   end if		
				rs.movenext
				wend
show_toppic=show_toppic&"              </tr>"
show_toppic=show_toppic&"          </table>"
end sub

sub showabout
show_about="<table width='98%' border='0' align='center' cellpadding='0' cellspacing='0'>"
show_about=show_about&"<tr>"
show_about=show_about&"<td height='4'></td>"
show_about=show_about&"</tr>"
show_about=show_about&"</table>"
			
show_about=show_about&"<table width='98%' border='0' align='center' cellpadding='0' cellspacing='0'>"
show_about=show_about&"<tr>"
show_about=show_about&"<td style='word-break:break-all;'>"
set rs=conn.execute("select content from cai_const ")
show_about=show_about&""&rs(0)&""
show_about=show_about&"</td>"
show_about=show_about&"</tr>"
show_about=show_about&"</table>"
end sub

sub showcontact
show_contact="<table width='98%' border='0' align='center' cellpadding='0' cellspacing='0'>"
show_contact=show_contact&"<tr>"
show_contact=show_contact&"<td height='4'></td>"
show_contact=show_contact&"</tr>"
show_contact=show_contact&"</table>"
			
show_contact=show_contact&"<table width='98%' border='0' align='center' cellpadding='0' cellspacing='0'>"
show_contact=show_contact&"<tr>"
show_contact=show_contact&"<td style='word-break:break-all;'>"
set rs=conn.execute("select contact from cai_const ")
show_contact=show_contact&""&rs(0)&""
show_contact=show_contact&"</td>"
show_contact=show_contact&"</tr>"
show_contact=show_contact&"</table>"
end sub

sub showorder

 

show_order="<table width='98%' border='0' align='center' cellpadding='0' cellspacing='0'>"
show_order=show_order&"<tr>"
show_order=show_order&"<td height='4'></td>"
show_order=show_order&"</tr>"
show_order=show_order&"</table>"
%>
			<script language="javascript">
			function checkadd()
			{
			if (document.add.title.value=='')
			{alert('订购产品不能为空');
			document.add.title.focus();
			return false
			}
			if (document.add.num.value=='')
			{alert('订购数量不能为空');
			document.add.num.focus();
			return false
			}
			if (document.add.username.value=='')
			{alert('联系人不能为空');
			document.add.username.focus();
			return false
			}
			if (document.add.tel.value=='')
			{alert('联系电话不能为空');
			document.add.tel.focus();
			return false
			}
			if (document.add.address.value=='')
			{alert('联系地址不能为空');
			document.add.address.focus();
			return false
			}
			}
			</script>
<%
show_order=show_order&"<table width='98%' border='0' align='center' cellpadding='0' cellspacing='0'>"
show_order=show_order&"<form name='add' action='result.asp?action=addorder' method='post' onSubmit='return checkadd()'>"
show_order=show_order&"<tr>"
show_order=show_order&"<td  colspan='2' align='center' class='line'></td>"
show_order=show_order&"</tr>"
show_order=show_order&"<tr>"
show_order=show_order&"<td height='30' colspan='2' class='title'>以下含有“*”的为必填</td>"
show_order=show_order&"</tr>"
show_order=show_order&"<tr>"
show_order=show_order&"<td  colspan='2' align='center' class='line'></td>"
show_order=show_order&"</tr>"
show_order=show_order&"<tr>"
show_order=show_order&"<tr>"
show_order=show_order&"<td  colspan='2'  height='4'></td>"
show_order=show_order&"</tr>"
				  id=trim(request("id"))
				  if id<>"" then
				      if not isnumeric(id) then
				        response.Redirect("error.asp?title=%D0%C5%CF%A2%C0%B4%D4%B4%B4%ED%CE%F3")
				         response.End()
				      end if
				    set rs=conn.execute("select title from cai_product where id="&id&"")
				       if rs.eof then
				          response.Redirect("error.asp?title=%C3%BB%D3%D0%B4%CB%D0%C5%CF%A2")
				          response.End()
						else
						title=rs(0)
				       end if
				 end if

show_order=show_order&"<td width='22%' height='30' align='center'>订购产品:</td>"
show_order=show_order&"<td width='78%' height='30'><input name='title' type='text' class='input_text' "
show_order=show_order&" maxlength='30' value='"&title&"'>  * </td>"
show_order=show_order&"</tr>"
show_order=show_order&"<tr>"
show_order=show_order&"<td height='30' align='center'>产品编号:</td>"
show_order=show_order&"<td height='30'><input name='zipcode' type='text' class='input_text' maxlength='8' value='"&id&"'></td>"
show_order=show_order&"</tr>"
show_order=show_order&"<tr>"
show_order=show_order&"<td height='30' align='center'>订购数量:</td>"
show_order=show_order&"<td height='30'><input name='num' type='text' class='input_text'  maxlength='10' >"
show_order=show_order&"  *</td>"
show_order=show_order&"</tr>"
show_order=show_order&"<tr>"
show_order=show_order&"<td height='30' align='center'>联系人:</td>"
show_order=show_order&"<td height='30'><input name='username' type='text' class='input_text'  maxlength='5' >"
show_order=show_order&"  *</td>"
show_order=show_order&"</tr>"
show_order=show_order&"<tr>"
show_order=show_order&"<td height='30' align='center'>联系电话:</td>"
show_order=show_order&"<td height='30'><input name='tel' type='text' class='input_text' maxlength='12' >"
show_order=show_order&"  *</td>"
show_order=show_order&"</tr>"
show_order=show_order&"<tr>"
show_order=show_order&"<td height='30' align='center'>联系地址:</td>"
show_order=show_order&"<td height='30'><input name='address' type='text' class='input_text' maxlength='50' >"
show_order=show_order&"  *</td>"
show_order=show_order&"</tr>"
show_order=show_order&"<tr>"
show_order=show_order&"<td height='30' align='center'>备注信息:</td>"
show_order=show_order&"<td height='30'><textarea name='content' cols='40' rows='6' ></textarea></td>"
show_order=show_order&"</tr>"
show_order=show_order&"<tr>"
show_order=show_order&"<td height='30' colspan='2' align='center'>"
show_order=show_order&"<input name='Submit' type='submit' class='input_text' value='提交'></td>"
show_order=show_order&"</tr>"
show_order=show_order&" </form>"
show_order=show_order&"</table>"
end sub

%>

⌨️ 快捷键说明

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