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

📄 system.asp

📁 Computer SHOP+DATABASE
💻 ASP
字号:
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="65001"%>
<!--#include file="script/user_common.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>:: Công ty máy tính DTH ::</title>
<script src="script/buildSystem.js"></script>
</head>
<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" bgcolor="#2D87CD">
<!--#include file="Include/top.asp"-->
<div align="center">
  <table width="779" border="0" cellpadding="0" cellspacing="0">
    <!--DWLayoutTable-->
    <tr>
      <td height="129" valign="top">
        <!--#include file="Include/inc_top.asp"-->
</td>
    </tr>
    <tr>
      <td valign="top">
      <table border="0" cellpadding="0" cellspacing="0" width="100%">
          <!--DWLayoutTable-->
          <tr>
            <td width="159" rowspan="3" valign="top"  style="background-image: url('images/mnleft_bg.gif'); background-repeat: repeat-y; background-position-x: center;">
			<!--#include file="Include/inc_menuleft.asp"-->
			</td>
            <td width="1" rowspan="2" valign="top" bgcolor="#CCCCCC"></td>
            <td width="460" rowspan="2" valign="top" bgcolor="#FFFFFF">
			<form name="frmBuildSystem" action="buildSystem.asp" method="post">
			<table width="100%"  border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td background="images/top_body_bg.gif" height="7"></td>
              </tr>
		<tr>
			<td style="padding-left: 10px; padding-right:10; padding-top:3; padding-bottom:3" valign="top">
				<marquee behavior="scroll" width="100%" style="color: #0066CC; font-family:Tahoma; font-size:8pt" scrollamount="4" onmouseover="this.stop();" onmouseout="this.start();" scrolldelay="85">
				Công ty Máy tính DTH - Xin kính chào quý khách - Địa chỉ: 1A Yết Kiêu, Hoàn Kiếm, Hà Nội - Điện thoại: (04) 8224880 - Fax: (04) 8224881</marquee>
			</td>
		</tr>
		<%
				var rsSub=Server.CreateObject("ADODB.Recordset"); 
				var strSQL_sub="Select SubID, SubName, SOrder From vwSubCat Where SSystem=1 Order By CatOrder, SOrder";
				rsSub.Open(strSQL_sub,oConn,3,1);
				if((rsSub.BOF)&&(rsSub.EOF))
				{
		%>
		<tr>
			<td align="center" valign="middle" style="padding-top:5px; "><font color="#FF0000" size="3"><strong>Chức năng này đang được cập nhật!!!</strong></font></td>
		</tr>
		<%}else{%>
              <tr>
                <td style="padding-bottom:20px; padding-left:5px; padding-right:2px; padding-top:3px; ">
				<table width="100%"  border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                      <tr>
                            <td width="28"><img src="images/head_1.gif" width="28" height="18"></td>
                            <td width="150" align="left" bgcolor="#d50000">
							<B><FONT 
                 			 style="FONT-SIZE: 8.5pt" face=Tahoma color=#ffffff>X&acirc;y dựng h&#7879; thống</FONT></B>
							</td>
                            <td><img src="images/head_2.gif" width="280" height="18"></td>
                          </tr>
                    </table></td>
                  </tr>
                  <tr>
                    <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td>&nbsp;</td>
                      </tr>
                      <tr>
                        <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                          
						<%
							var icount=1;
							
							while((!rsSub.BOF)&&(!rsSub.EOF))
							{
						%>
                          <tr style="padding-bottom:15px; ">
                            <td width="119" align="left" valign="middle"><font face="arial, tahoma, verdana"><strong><%=rsSub.Fields('SubName')%></strong></font></td>
                            <td width="334" align="left" valign="middle">
							
                              <select name="cbComponent_<%=icount%>" size="1" onChange="TotalPrice();" style="width:330px; font-size:11px;">
                                <option value="0|0"> &nbsp;------------------ Mời quý khách chọn sản phẩm -----------------</option>
                         <%
							var rsPro=Server.CreateObject("ADODB.Recordset"); 
							var strSQL_pro="Select PID, PName, PPrice From vwProduct Where PSubCatID=" + rsSub.Fields('SubID') + " And PDelete=1 Order By PName ASC";
							rsPro.Open(strSQL_pro,oConn,3,1)
							
							while((!rsPro.BOF)&&(!rsPro.EOF))
							{
						%>
                                <option value="<%=rsPro.Fields("PPrice")%>|'<%=rsPro.Fields("PID")%>'"><%=rsPro.Fields("PName")%> | $<%=rsPro.Fields("PPrice")%></option>
                                <%
							rsPro.MoveNext();}rsPro.Close();
						%>
                      </select>&nbsp;&nbsp;
				</td>
                          </tr>
					<%
						icount++;
						rsSub.MoveNext();}rsSub.Close();
				  	%>
                          <tr style="padding-top:10px; ">
                            <td align="right" valign="middle" style="padding-right:8px; "><font color="#FF0000"><strong>Tổng s&#7889; tiền</strong></font></td>
                            <td align="left" valign="middle">
							<input type="text" readonly="" name="txtTotal" size="15" style="text-align:right; font-weight:bold; ">&nbsp;&nbsp;<font color="#FF0000"><strong>USD</strong></font>
							<input type="hidden" name="txtStrArrPID" size="15" style="text-align:right; font-weight:bold; ">
							</td>
                          </tr>
                        </table></td>
                      </tr>
                    </table></td>
                  </tr>
                </table>
				</td>
              </tr>
			  <tr><td align="center" valign="top"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                <tr valign="bottom">
                  <td width="119" align="right">&nbsp;</td>
                  <td><img src="images/btn_quaylai.gif" width="87" height="31" border="0" onClick="JavaScipt:history.back(-1);" style="cursor:hand ">&nbsp;&nbsp;
                   <img border="0" src="images/btn_dathang.gif" width="98" height="28" style="cursor:hand" onclick="javascript:doSubmit();"></td>
                </tr>
				<%}%>
              </table>
                 </td>
			  </tr>
            </table>     
			</form>				
            <td width="1" rowspan="2" valign="top" bgcolor="#CCCCCC"></td>
            <td width="158" valign="top" rowspan="2" style="background-image: url('images/mnleft_bg.gif'); background-repeat: repeat-y; background-position-x: center;">
				<!--#include file="Include/inc_menuright.asp"-->
            </td>
          </tr>
                  </table></td>
    </tr>
	
	<tr>
		<td>
			<!--#include file="Include/inc_bottom.asp"-->
		</td>
	</tr>
  </table>
</div>
</body>
</html>
<%oConn.Close();%>

⌨️ 快捷键说明

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