📄 st_classproduct.aspx
字号:
<%@ Register TagPrefix="uc1" TagName="ST_Bottom" Src="../ST_Common/ST_Bottom.ascx" %>
<%@ Register TagPrefix="uc1" TagName="ST_Header" Src="../ST_Common/ST_Header.ascx" %>
<%@ Register TagPrefix="uc1" TagName="ST_Class" Src="../ST_Common/ST_Class.ascx" %>
<%@ Register TagPrefix="uc1" TagName="ST_Promotion" Src="../ST_Common/ST_Promotion.ascx" %>
<%@ Page language="c#" Inherits="STGROUP.ST_Book.ST_Product.ST_ClassProduct" CodeFile="ST_ClassProduct.aspx.cs" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>ST_ClassProduct</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
<LINK href="../class.css" type="text/css" rel="stylesheet">
<LINK href="../style.css" type="text/css" rel="stylesheet">
</HEAD>
<body leftMargin="0" topMargin="0">
<form id="Form1" method="post" runat="server">
<div align="center">
<table id="Table1" height="100%" cellSpacing="0" cellPadding="0" width="760" border="1">
<tr>
<td vAlign="top" width="760" colSpan="2"><uc1:st_header id="ST_Header1" runat="server"></uc1:st_header></td>
</tr>
<tr>
<td vAlign="top" width="128" bgColor="#e5e5e5" height="100%" rowSpan="2"><uc1:st_class id="ST_Class1" runat="server"></uc1:st_class></td>
<td style="HEIGHT: 100%" vAlign="top" width="632">
<asp:Label Runat="server" id="Label1" ForeColor="Red" Visible="False">该分类下没有商品</asp:Label>
<asp:DataGrid id="DataGrid1" Width="100%" runat="server" BorderColor="#CCCCCC" BorderStyle="None"
BorderWidth="1px" BackColor="White" CellPadding="4" GridLines="Horizontal" ForeColor="Black"
AutoGenerateColumns="False" AllowPaging="True">
<SelectedItemStyle Font-Bold="True" ForeColor="White" BackColor="#CC3333"></SelectedItemStyle>
<HeaderStyle Font-Bold="True" ForeColor="White" BackColor="#333333"></HeaderStyle>
<FooterStyle ForeColor="Black" BackColor="#CCCC99"></FooterStyle>
<Columns>
<asp:TemplateColumn HeaderText="图片">
<ItemTemplate>
<img src='<%# imgpath + DataBinder.Eval(Container.DataItem,"ST_Image")%>' width="80" height="91" />
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="书名">
<ItemTemplate>
<a href='<%# "ST_Product.aspx?st_productid=" + DataBinder.Eval(Container.DataItem,"ST_ProductID")%>'>
<%# DataBinder.Eval(Container.DataItem,"ST_ProductName")%>
</a>
</ItemTemplate>
</asp:TemplateColumn>
<asp:BoundColumn DataField="ST_Publisher" HeaderText="出版社"></asp:BoundColumn>
<asp:BoundColumn DataField="ST_SoldPrice" HeaderText="价格"></asp:BoundColumn>
<asp:BoundColumn DataField="ST_Author" HeaderText="作者"></asp:BoundColumn>
<asp:TemplateColumn HeaderText="购买">
<ItemTemplate>
<a href='<%# "ST_AddToCart.aspx?st_productid=" + DataBinder.Eval(Container.DataItem,"ST_ProductID")%>' target=_blank>
购买 </a>
</ItemTemplate>
</asp:TemplateColumn>
<asp:BoundColumn DataField="ST_ProductID" Visible="False"></asp:BoundColumn>
</Columns>
<PagerStyle HorizontalAlign="Right" ForeColor="Black" Position="TopAndBottom" BackColor="White"
Mode="NumericPages"></PagerStyle>
</asp:DataGrid></td>
</tr>
<tr>
<td vAlign="top" width="571" height="20"></td>
</tr>
<tr>
<td vAlign="top" width="100%" colSpan="2"><uc1:st_bottom id="ST_Bottom1" runat="server"></uc1:st_bottom></td>
</tr>
</table>
</div>
</form>
<SCRIPT LANGUAGE="javascript">
<!--
document.ns = navigator.appName == "Netscape"
window.screen.width>800 ? imgheight=110:imgheight=110
window.screen.width>800 ? imgleft=110:imgleft=110
function qingzuiload()
{
if (navigator.appName == "Netscape")
{
document.qingzui.pageY=pageYOffset+window.innerHeight-imgheight;
document.qingzui.pageX=pageXOffset+window.innerWidth-imgleft;
qingzuimove();
}
else
{
qingzui.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight;
qingzui.style.left=document.body.offsetWidth-imgleft;
qingzui2.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight-80;
qingzui2.style.left=document.body.offsetWidth-imgleft;
qingzuimove();
}
}
function qingzuimove()
{
if(document.ns)
{
document.qingzui.top=pageYOffset+window.innerHeight-imgheight
document.qingzui.left=pageXOffset+window.innerWidth-imgleft;
setTimeout("qingzuimove();",80)
}
else
{
qingzui.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight;
qingzui.style.left=document.body.offsetWidth-imgleft;
qingzui2.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight-80;
qingzui2.style.left=document.body.offsetWidth-imgleft;
setTimeout("qingzuimove();",80)
}
}
function MM_reloadPage(init)
{ //reloads the window if Nav4 resized
if (init==true) with (navigator)
{
if ((appName=="Netscape")&&(parseInt(appVersion)==4))
{
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage;
}
}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH)
location.reload();
}
MM_reloadPage(true)
if (navigator.appName == "Netscape")
{
document.write("<layer id=qingzui top=300 width=64 height=80><a href=javascript:toShopping();><img src=../images/car_1.gif border=0></a></layer>")
qingzuiload()
}
else
{
document.write("<div id=qingzui style='position: absolute;width:64;top:300;hidden: visible;z-index: 1'><a href=javascript:toShopping();><img src=../images/car_1.gif border=0></a></div>"
+"<div id=qingzui2 style='position: absolute;visibility: hidden;z-index: 10'><img src=../images/car_1.gif></div>");
qingzuiload()
}
function toShopping()
{
window.open("ST_CartInfo.aspx","_blank");
}
//-->
</SCRIPT>
</body>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -