<%@ Page Language="C#" %> <%@ Register Src="top.ascx" TagName="top" TagPrefix="uc1" %> <%@ Register Src="a1.ascx" TagName="a1" TagPrefix="uc2" %> <%@ Register Src="right.ascx" TagName="right" TagPrefix="uc3" %> <%@ Register Src="bottom.ascx" TagName="bottom" TagPrefix="uc4" %> <mce:script runat="server"><!-- BJProduct Product = new BJProduct(); ArrayList MyArray = new ArrayList(); int ParentID; //总产品数量 int Count = 0; //前一个产品的ID int PurviveID; //下一个产品的ID int NextID; //当前产品ID int id; //最后一个产品的ID int LastID; //父类标题 protected string CateName = ""; BJProductCategory Category = new BJProductCategory(); protected void Page_Load(object sender, EventArgs e) { id = FormUtil.GetQueryInt("ID"); if (id != int.MinValue) { Product.ID = id; } WebManager.GetInfo(Product); ParentID = Product.ParentID; Category.ID = ParentID; WebManager.GetInfo(Category); CateName = Category.Title; ShowCategory(); } protected void ShowCategory() { Product.ParentID = ParentID; //得出所有的该产品分类的信息 DataTable dt = WebManager.List(Product, "", "[ID],[Title]", "&parentid=", "[OrderNo]"); if (dt.Rows.Count > 0) { //总记录数 Count = dt.Rows.Count; //将ID插入到Myarray数值中 for (int i = 0; i < dt.Rows.Count; i++) { MyArray.Add(dt.Rows[i][0]); } //找到最后一个产品的ID号 LastID = int.Parse(dt.Rows[Count - 1][0].ToString()); } if (MyArray.Contains(id)) { //得到当前ID的索引号 int aa = MyArray.BinarySearch(id); //对应该产品分类中第一张图片的ID int Col = int.Parse(MyArray[0].ToString()); // 如果当前ID为第一张图片的话,上一页去掉超链接,变为文本类型 if (Col == id) { PurviveID = id; NextID = int.Parse(MyArray[1].ToString()); // LinkPrev.Visible = false; LinkPrev.Enabled = false; LinkPrev.Visible = false; Lab1.Visible = true; Lab1.Text = "上一页"; //Label Lab=new Label } //既不是第一张图片ID,也不是最后一张,就把文本类型的Lab去掉 else if (LastID == id) { PurviveID = int.Parse(MyArray[aa - 1].ToString()); NextID = id; LinkNext.Enabled = false; LinkNext.Visible = false; Lab2.Visible = true; Lab2.Text = "下一页"; } // 如果当前ID为最后一张图片的话,下一页去掉超链接,变为文本类型 else { PurviveID = int.Parse(MyArray[aa - 1].ToString()); NextID = int.Parse(MyArray[aa + 1].ToString()); LinkPrev.Enabled = true; LinkNext.Enabled = true; Lab1.Visible = false; Lab2.Visible = false; } } } // --></mce:script> <html > <head id="Head1" runat="server"> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>武汉唐盛装饰工程有限公司</title> <mce:style type="text/css"><!-- body,td,th { font-size: 12px; } body { margin:auto; background-image: url(images/fondo-gris.gif); } .middle-demo-1{ height: 4em; line-height: 4em; overflow: hidden; } --></mce:style><style type="text/css" mce_bogus="1">body,td,th { font-size: 12px; } body { margin:auto; background-image: url(images/fondo-gris.gif); } .middle-demo-1{ height: 4em; line-height: 4em; overflow: hidden; }</style> <link href="css/style.css" mce_href="css/style.css" rel="stylesheet" type="text/css"/> <mce:script language="JavaScript"><!-- var k=0; //声明一个计数器变量 var imgname1="img/"; //所有图片地址的前面相同的部分,要根据实际修改这个值。 var imgname2=".jpg"; //图片的文件格式,可根据实际情修改,前面那个小点不要漏了。 var imgnub=4; //要展示的图片的张数,根据实际修改此值。 function start(){ //程序主体部分 obj=eval("img1"); //若图像标记的ID号改变,请修改括号中的字符串值。 if (obj.filters.item(0).Transition==23) // 这部分语句是用于改变切换样式,在23种样式中循环。 obj.filters.item(0).Transition=1; else obj.filters.item(0).transition++; obj.filters.item(0).Apply(); if (k<imgnub) {k++; //这部分语句用于改变图像标记的src的图片地址(既含路径的文件名)。 }else {k=1; } obj.src=imgname1+k+imgname2; obj.filters.item(0).Play(); setTimeout("start(1)",2500); //每三秒钟刷新一次。 } // --></mce:script> <mce:script type="text/javascript"><!-- function DrawImage(ImgD,FitWidth,FitHeight) { var image=new Image(); image.src=ImgD.src; if(image.width>0 && image.height>0) { if(image.width/image.height>= FitWidth/FitHeight) { if(image.width>FitWidth) { ImgD.width=FitWidth; ImgD.height=(image.height*FitWidth)/image.width; } else { ImgD.width=image.width; ImgD.height=image.height; } } else { if(image.height>FitHeight) { ImgD.height=FitHeight; ImgD.width=(image.width*FitHeight)/image.height; } else { ImgD.width=image.width; ImgD.height=image.height; } } } } // --></mce:script> </head> <body> <form id="form1" runat="server"> <div> <table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td align="center" valign="middle"><table width="990" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> <tr> <td valign="top"><uc1:top id="Top1" runat="server"> </uc1:top></td> </tr> <tr> <td height="7" valign="top"> </td> </tr> <tr> <td align="center" valign="top"><table width="970" border="0" cellspacing="0" cellpadding="0"> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="344" height="156" align="center" valign="middle" class="k"><img src="img/b02.jpg" mce_src="img/b02.jpg" width="340" height="152"></td> <td align="right" valign="middle"><table width="614" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="156" align="center" valign="middle" class="k"><img src="img/b01.jpg" mce_src="img/b01.jpg" width="609" height="152"></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td height="7"></td> </tr> <tr> <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="180" height="150" valign="top" bgcolor="#F9F9F9"> <uc2:a1 id="A1_1" runat="server"> </uc2:a1></td> <td valign="top"><table width="100%" border="0" cellspacing="1" cellpadding="1"> <tr> <td height="28" bgcolor="EEEEEE"></td> </tr> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left" valign="top" class="font06">+ <%=CateName%></td> </tr> <tr> <td align="left" valign="top" style="height: 265px"> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr><td align="center" height="40"><b> <%=Product.Title%><b></td></tr> <tr><td align="center"><img src="<%=Product.PictureUrl %>" width="445" height="335" onload="javascript:DrawImage(this,445,335);"></td> </tr> <tr><td align="center"></td></tr> <tr><td valign="top"><%=Server.HtmlDecode(Product.Content)%></td></tr> <tr align="center"> <td> <asp:Label ID="LinkPrev" runat="server" Text="Label"><a href="CaseDetail.aspx?id=<%=PurviveID%>">上一页</a></asp:Label> <asp:Label ID="Lab1" runat="server" Text="Label" Visible="false"></asp:Label> <asp:Label ID="LinkNext" runat="server" Text="Label"><a href="CaseDetail.aspx?id=<%=NextID%>">下一页</a></asp:Label> <asp:Label ID="Lab2" runat="server" Text="Label" Visible="false"></asp:Label> <%=CateName %>共有:<asp:Label ID="LabCount" runat="server" Text=""><%=Count %></asp:Label>条信息 </td> </tr> </table> </td> </tr> </table></td> <td width="200" valign="top"> <uc3:right id="Right1" runat="server"> </uc3:right></td> </tr> </table></td> </tr> </table></td> </tr> </table> </td> </tr> </table></td> </tr> <tr> <td valign="top"> <uc4:bottom id="Bottom1" runat="server"> </uc4:bottom></td> </tr> </table></td> </tr> </table> </div> </form> </body> </html>
您还没有登录,请您登录后再发表评论
flash简易相册代码flash简易相册代码flash简易相册代码flash简易相册代码flash简易相册代码flash简易相册代码flash简易相册代码flash简易相册代码flash简易相册代码flash简易相册代码flash简易相册代码flash简易相册...
FlashAS3简易电子相册案例,包含素材、Flash源文件和案例说明,经过测试绝对有用,适合初学者学习借鉴!
网络编程的课程设计 用php和mysql做的简易相册系统
面向对象实习--简易电子相册
简易相册FLASH源码,简易相册FLASH源码,简易相册FLASH源码,
基于ARM-linux的简易电子相册c源码+项目说明(课程设计).zip 基于ARM-linux的简易电子相册 开发平台: VScode Ubuntu16.04 S5P6818开发板 技术栈: C语言,文件IO,多线程,滑屏算法 实现原理: 将要播放的图片存储在二...
面向对象编程基于c++实现简易的电子相册源码.zip面向对象编程基于c++实现简易的电子相册源码.zip面向对象编程基于c++实现简易的电子相册源码.zip面向对象编程基于c++实现简易的电子相册源码.zip面向对象编程基于c++...
纯JS开发的简易相册 可增减相册,增删图片。无后天 无缓存!
简单易用的简易文本相册最新修改版,不用mysol数据库支持。
简易相册
基于C#的Windows开发项目,实现了电子相册的基本功能,便于学习
Android制作的简易图库相册查看程序,每加载一张图片就会有一个Loading,根据当前百分比计算当前菜单的位置,大小,向右移之后,紧邻当前菜单的左侧菜单项要变大,下面要计算。 Sample8_5_Activity father;//声明...
自制简易Delphi电子相册..rar
Flash简易相册代码,简洁,美观;用韩国的一个相册源码改的,稍作了美化,仅供参考。
电子相册是一个类似于同学录的一个系统,主要功能有:创建相册、修改相册、上传相片、相片评论等。web开发采用ssh框架。orcl数据库
Flash简易相册代码,用韩国的一个相册源码改的,稍作了美化.rar
图片的好多功能的相册 不信你看看不骗人哦
一个自制小程序,使用POWERBUILDER 115BUILD 1502制作。未打包,使用需先下载PB115安装。
基于.net 电子相册的开发 3 摘 要 3 1 引言 3 1.1 构架概述 4 1.2 电子相册使用现状分析 4 1.3 开发工具简介 5 二 需求分析 6 2.1 总体需求 6 2.2 功能需求 6 2.2.1 前台功能需求 7 2.3 开发运行环境需求 7 三、网站...
app inventor简单相册,有音乐播放,通过素材库添加照片,再app中可通过按钮“下一张”翻阅素材库的相册,十分简单便捷
相关推荐
flash简易相册代码flash简易相册代码flash简易相册代码flash简易相册代码flash简易相册代码flash简易相册代码flash简易相册代码flash简易相册代码flash简易相册代码flash简易相册代码flash简易相册代码flash简易相册...
FlashAS3简易电子相册案例,包含素材、Flash源文件和案例说明,经过测试绝对有用,适合初学者学习借鉴!
网络编程的课程设计 用php和mysql做的简易相册系统
面向对象实习--简易电子相册
简易相册FLASH源码,简易相册FLASH源码,简易相册FLASH源码,
基于ARM-linux的简易电子相册c源码+项目说明(课程设计).zip 基于ARM-linux的简易电子相册 开发平台: VScode Ubuntu16.04 S5P6818开发板 技术栈: C语言,文件IO,多线程,滑屏算法 实现原理: 将要播放的图片存储在二...
面向对象编程基于c++实现简易的电子相册源码.zip面向对象编程基于c++实现简易的电子相册源码.zip面向对象编程基于c++实现简易的电子相册源码.zip面向对象编程基于c++实现简易的电子相册源码.zip面向对象编程基于c++...
纯JS开发的简易相册 可增减相册,增删图片。无后天 无缓存!
简单易用的简易文本相册最新修改版,不用mysol数据库支持。
简易相册
基于C#的Windows开发项目,实现了电子相册的基本功能,便于学习
Android制作的简易图库相册查看程序,每加载一张图片就会有一个Loading,根据当前百分比计算当前菜单的位置,大小,向右移之后,紧邻当前菜单的左侧菜单项要变大,下面要计算。 Sample8_5_Activity father;//声明...
自制简易Delphi电子相册..rar
Flash简易相册代码,简洁,美观;用韩国的一个相册源码改的,稍作了美化,仅供参考。
电子相册是一个类似于同学录的一个系统,主要功能有:创建相册、修改相册、上传相片、相片评论等。web开发采用ssh框架。orcl数据库
Flash简易相册代码,用韩国的一个相册源码改的,稍作了美化.rar
图片的好多功能的相册 不信你看看不骗人哦
一个自制小程序,使用POWERBUILDER 115BUILD 1502制作。未打包,使用需先下载PB115安装。
基于.net 电子相册的开发 3 摘 要 3 1 引言 3 1.1 构架概述 4 1.2 电子相册使用现状分析 4 1.3 开发工具简介 5 二 需求分析 6 2.1 总体需求 6 2.2 功能需求 6 2.2.1 前台功能需求 7 2.3 开发运行环境需求 7 三、网站...
app inventor简单相册,有音乐播放,通过素材库添加照片,再app中可通过按钮“下一张”翻阅素材库的相册,十分简单便捷