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

📄 taocan.ascx

📁 网络订餐基于jsp与servlet的网络订餐系统 适合学生使用
💻 ASCX
字号:
<%@ Control Language="c#" AutoEventWireup="false" Codebehind="taocan.ascx.cs" Inherits="qruan.taocan" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>

<script type="text/JavaScript">
<!--
function qruan(prodid){
if(prodid==99999){
alert("对不起!此套餐已“售完”!")
}else
{
var num=document.getElementById("num"+prodid).value;
if(num==null || num=="") num="1";
window.open('buyRecord.aspx?ProdId='+prodid+'&num='+num,'add','top=100,left=150,scrollbars=yes,resizable=no,width=650,height=450')
}
}
//-->
</script>
<style type="text/css">
<!--
.STYLE16 {FONT-SIZE: 12px }
.STYLE16 {FONT-SIZE: 12px }
.STYLE170 {font-size: 12}
-->
</style>
<DIV id=overDiv style="z-index: 1; width: 30; position: absolute; left: 0; top: 0; height: 30"></DIV>
<SCRIPT language=JavaScript>
	if (typeof fcolor == 'undefined') { var fcolor = "#EAF3E4";}<!-- 表格下半部分的颜色-->
	if (typeof backcolor == 'undefined') { var backcolor = "#E6EFFB";}<!-- 背景的颜色-->
	if (typeof textcolor == 'undefined') { var textcolor = "#008080";}
	if (typeof capcolor == 'undefined') { var capcolor = "#808000";}
	if (typeof width == 'undefined') { var width = "180";}
	if (typeof border == 'undefined') { var border = "1";}
	if (typeof offsetx == 'undefined') { var offsetx = 15;}<!-- 框体和鼠标的水平距离-->
	if (typeof offsety == 'undefined') { var offsety = 15;}<!-- 框体和鼠标的嘴直距离-->
	
	ns4 = (document.layers)? true:false
	ie4 = (document.all)? true:false

	if (ie4) {
		if (navigator.userAgent.indexOf('MSIE 5')>0) {
			ie5 = true;
		} else {
			ie5 = false; }
	} else {
		ie5 = false;
	}
	
	var x = 0;
	var y = 0;
	var snow = 0;
	var sw = 0;
	var cnt = 0;
	var dir = 1;
	var tr = 1;
	if ( (ns4) || (ie4) ) {
		if (ns4) over = document.overDiv
		if (ie4) over = overDiv.style
		document.onmousemove = mouseMove
		if (ns4) document.captureEvents(Event.MOUSEMOVE)
	}

	function drc(text, title,pic) {
		dtc(1,text,title,pic);
	}
	function nd() {
		if ( cnt >= 1 ) { sw = 0 };
		if ( (ns4) || (ie4) ) {
			if ( sw == 0 ) {
				snow = 0;
				hideObject(over);
			} else {
				cnt++;
			}
		}
	}
	<!-- 下面内容为显示的框内容-->
<!-- 下面的bgcolor表示表格上半部分的颜色-->
	function dtc(d,text,title,pic) {
		txt = "<TABLE BORDER=0 CELLPADDING="+border+" CELLSPACING=0 BGCOLOR=\""+backcolor+"\"><TR><TD><table width=100% border=0 cellspacing=0 cellpadding=1 bgcolor=#91D81B><tr><td><TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD height=18 align=center><SPAN ID=\"PTT\" style='font-size:10pt'><FONT COLOR=\""+capcolor+"\">"+title+"</FONT></SPAN></TD></TR></TABLE><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 BGCOLOR=\""+fcolor+"\"><TR><TD align=center><SPAN ID=\"PQT\" style='font-size:9pt'><img src="+pic+" width=150 height=122><SPAN></TD></TR></TABLE><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 BGCOLOR=\""+fcolor+"\"><TR><TD align=center><SPAN ID=\"PST\" style='font-size:9pt'><FONT COLOR=\""+textcolor+"\">"+text+"</FONT><SPAN></TD></TR></TABLE></TD></TR></TABLE></TD></TR></TABLE>"
		layerWrite(txt);
		dir = d;
		disp();
	}

	function disp() {
		if ( (ns4) || (ie4) ) {
			if (snow == 0) 	{
				if (dir == 2) { // Center显示
					moveTo(over,x+offsetx-(width/2),y+offsety);
				}
				if (dir == 1) { // Right显示
					moveTo(over,x+offsetx,y+offsety);
				}
				if (dir == 0) { // Left显示
					moveTo(over,x-offsetx-width,y+offsety);
				}
				showObject(over);
				snow = 1;
			}
		}
	}

	function mouseMove(e) {
		if (ns4) {x=e.pageX; y=e.pageY;}
		if (ie4) {x=event.x+document.body.scrollLeft; y=event.y+document.body.scrollTop;}
		if (ie5) {x=event.x+document.body.scrollLeft; y=event.y+document.body.scrollTop;}
		if (snow) {
			if (dir == 2) { // Center
				moveTo(over,x+offsetx-(width/2),y+offsety);
			}
			if (dir == 1) { // Right
				moveTo(over,x+offsetx,y+offsety);
			}
			if (dir == 0) { // Left
				moveTo(over,x-offsetx-width,y+offsety);
			}
		}
	}

	function cClick() {
		hideObject(over);
		sw=0;
	}

	function layerWrite(txt) {
			if (ns4) {
					var lyr = document.overDiv.document
					lyr.write(txt)
					lyr.close()
			}
			else if (ie4) document.all["overDiv"].innerHTML = txt
			if (tr) { trk(); }
	}

	function showObject(obj) {
			if (ns4) obj.visibility = "show"
			else if (ie4) obj.visibility = "visible"
	}

	function hideObject(obj) {
			if (ns4) obj.visibility = "hide"
			else if (ie4) obj.visibility = "hidden"
	}

	function moveTo(obj,xL,yL) {
			obj.left = xL
			obj.top = yL
	}

	function trk() {
		if ( (ns4) || (ie4) ) {
				nt=new Image(32,32); nt.src="dot.gif";
				bt=new Image(1,1); bt.src="dot.gif";
				refnd=new Image(1,1); refnd.src="dot.gif";
		}
		tr = 0;
	}
</SCRIPT>
<table id="Table_01" width="574" height="215"   border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td valign="top"><table id="Table_04" width="574" height="44" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td width="574" height="44" valign="bottom" background="images/index_03_04_13_01.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="71%">&nbsp;</td>
                      <td width="29%" height="30"><img src="images/19.gif" width="30" height="5" /></td>
                    </tr>
                </table></td>
              </tr>
          </table></td>
        </tr>
        <tr valign="top">
          <td  valign="top"><table id="Table_03" width="574" height="120"  border="0" cellpadding="0" cellspacing="0">
		   <asp:repeater id="rptList" runat="server">
	<HeaderTemplate>
		<tr>	
	</HeaderTemplate>
	<ItemTemplate>
	 <td width="285" align="center" height="27"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                          <tr >
				  <td width="20%" align="right" ><%# lei_fun(Convert.ToString(DataBinder.Eval(Container.DataItem,"id")),Convert.ToString(DataBinder.Eval(Container.DataItem,"store_names")))%>&nbsp;</td>
					<td width="13%"><%#DataBinder.Eval(Container.DataItem,"veg_price")%>元</td>
					<td width="45%"  onmouseover="drc('<%#DataBinder.Eval(Container.DataItem,"shuomin")%><br>','菜品说明','./<%#DataBinder.Eval(Container.DataItem,"pic_url")%>'); return true;"    onfocus=if(this.blur)this.blur()   onmouseout="nd(); return true;"  ><SPAN style="CURSOR: hand"  onclick="window.open('./product_c.aspx?pro_id=<%#DataBinder.Eval(Container.DataItem,"id")%>','product','top=200,left=250,scrollbars=no,resizable=no,width=340,height=370');"><%#DataBinder.Eval(Container.DataItem,"veg_name")%></SPAN></td>
					<td width="22%"><SPAN style="CURSOR: hand" onClick="qruan('<%# lei_fun2(Convert.ToString(DataBinder.Eval(Container.DataItem,"id")),Convert.ToString(DataBinder.Eval(Container.DataItem,"store_names")))%>')"><img src="images/index_52_05.gif" width="39" height="16"></span></td>
				</tr>
                      </table></td>
		
	</ItemTemplate>
	<FooterTemplate>
		</tr>
	</FooterTemplate>
</asp:repeater>
		  
             
			  
          </table></td>
        </tr>
        <tr>
          <td valign="top"><table id="Table_02" width="574" height="30" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td colspan="3"><img src="images/index_03_04_13_03.gif" width="574" height="5" alt="" /></td>
              </tr>
              <tr>
                <td><img src="images/index_03_04_13_04.gif" width="8" height="23" alt="" /></td>
                <td width="559" height="23" bgcolor="#F7F7F7"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="42%" height="21" align="right"><img src="images/17.gif" width="5" height="7" /></td>
                      <td width="58%" align="center"><span class="STYLE170">第
		<asp:Label ID="lbCurrentPage" runat="server">Label</asp:Label>
		页 共
		<asp:Label ID="lbTotalPage" runat="server">Label</asp:Label>
		页 &nbsp;
		<asp:HyperLink id="hlkFirstPage" runat="server">首页</asp:HyperLink>
		<asp:HyperLink id="hlkPrevPage" runat="server">上一页</asp:HyperLink>
		<asp:HyperLink id="hlkNextPage" runat="server" Width="48px">下一页</asp:HyperLink>
		<asp:HyperLink id="hlkLastPage" runat="server">尾页</asp:HyperLink>&nbsp;&nbsp;&nbsp;</span></td>
                    </tr>
                </table></td>
                <td><img src="images/index_03_04_13_06.gif" width="7" height="23" alt="" /></td>
              </tr>
              <tr>
                <td colspan="3"><img src="images/index_03_04_13_07.gif" width="574" height="2" alt="" /></td>
              </tr>
          </table></td>
        </tr>
      </table>

⌨️ 快捷键说明

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