positon_add_img.aspx
来自「企业网站前台后台源程序,用于大中小型企业网站后台程序开发」· ASPX 代码 · 共 160 行
ASPX
160 行
<%@ Page language="c#" Codebehind="Positon_add_img.aspx.cs" AutoEventWireup="false" Inherits="Websystem.admin.Positon_add_img" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>Positon_add_img</title>
<META http-equiv="Content-Type" content="text/html; charset=gb2312">
<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="../css/style.css" type="text/css" rel="stylesheet">
<SCRIPT language="javascript" src="../js/MERCHANDISEPIC.js"></SCRIPT>
<script language="JavaScript">
<!--
var flag=false;
function DrawImage1(ImgD){
var image=new Image();
image.src=ImgD.src;
if(image.width>0 && image.height>0){
flag=true;
if(image.width/image.height>= 600/600){
if(image.width>600){
ImgD.width=600;
ImgD.height=(image.height*600)/image.width;
}else{
ImgD.width=image.width;
ImgD.height=image.height;
}
ImgD.alt="图片象素是:"+image.width+"×"+image.height+",点击查看大图!";
}
else{
if(image.height>600){
ImgD.height=600;
ImgD.width=(image.width*600)/image.height;
}else{
ImgD.width=image.width;
ImgD.height=image.height;
}
ImgD.alt="图片象素是:"+image.width+"×"+image.height+",点击查看大图!";
}
}
}
//-->
</script>
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" encType="multipart/form-data" runat="server">
<FONT face="宋体"></FONT><FONT face="宋体"></FONT><FONT face="宋体"></FONT>
<table id="table1" width="100%" border="0">
<tr>
<td bgColor="#e6e6e6" height="25">
<table border="0" width="100%" id="table3">
<tr>
<td>
<p align="center"><b><font color="#ffffff" size="2"> <a name="aa">== 该 产 品 展 示 图 片 ==</a></font></b></p>
</td>
<td width="50"><a href="#bb"><U><FONT color="#ff3300"><STRONG>新增</STRONG></FONT></U></a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<asp:datagrid id="MyDataGrid" runat="server" Width="100%" AutoGenerateColumns="False" BorderColor="Black"
BorderWidth="1px" CellPadding="3" AllowPaging="True" HorizontalAlign="Center" AlternatingItemStyle-BackColor="#eeeeee"
HeaderStyle-BackColor="#aaaadd" Font-Size="8pt" Font-Name="Verdana" OnPageIndexChanged="MyDataGrid_Page"
PagerStyle-HorizontalAlign="Right" PagerStyle-Mode="NumericPages" PageSize="4" Font-Names="Verdana">
<SelectedItemStyle Font-Bold="True" ForeColor="White" BackColor="#669999"></SelectedItemStyle>
<AlternatingItemStyle BackColor="#EEEEEE"></AlternatingItemStyle>
<ItemStyle ForeColor="#000066"></ItemStyle>
<HeaderStyle Font-Bold="True" ForeColor="White" BackColor="#006699"></HeaderStyle>
<FooterStyle ForeColor="#000066" BackColor="White"></FooterStyle>
<Columns>
<asp:TemplateColumn HeaderText="删除">
<HeaderStyle HorizontalAlign="Center" Width="10%"></HeaderStyle>
<ItemStyle HorizontalAlign="Center"></ItemStyle>
<HeaderTemplate>
<FONT face="宋体"><INPUT class="button1" type="submit" value="删除"></FONT>
</HeaderTemplate>
<ItemTemplate>
<INPUT id="delid" name="delid" type="checkbox" value="<%# DataBinder.Eval(Container.DataItem,"id")%>">
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="缩略图">
<HeaderStyle HorizontalAlign="Center" Width="30%"></HeaderStyle>
<ItemStyle HorizontalAlign="Center"></ItemStyle>
<ItemTemplate>
<A class=black onmousewheel=keepTip(); href=<%# "../"+DataBinder.Eval(Container.DataItem,"PICPATH")%> target=_blank
onmouseover="showTip('<p><a href=<%# "../"+DataBinder.Eval(Container.DataItem,"PICPATH")%> target=_blank><img border=0 src=<%# "../"+DataBinder.Eval(Container.DataItem,"PICPATH")%> onload=javascript:DrawImage1(this);></a></p>')"
onmouseout="hideTip(); "
style="cursor:hand"
><img border="0" src="<%# "../"+DataBinder.Eval(Container.DataItem,"ISSMALL")%>" />
</a>
</ItemTemplate>
</asp:TemplateColumn>
<asp:BoundColumn DataField="REMARK" HeaderText="备注">
<HeaderStyle HorizontalAlign="Center" Width="60%"></HeaderStyle>
<ItemStyle HorizontalAlign="Left"></ItemStyle>
</asp:BoundColumn>
</Columns>
<PagerStyle HorizontalAlign="Left" ForeColor="#000066" BackColor="White" Mode="NumericPages"></PagerStyle>
</asp:datagrid>
<P style="FONT-SIZE: 9pt" align="center">
<asp:label id="lblPageCount" runat="server"></asp:label>
<asp:label id="lblCurrentIndex" runat="server"></asp:label>
<asp:linkbutton id="btnFirst1" onclick="PagerButtonClick" runat="server" Font-Name="verdana" ForeColor="navy"
Font-size="8pt" CommandArgument="0"></asp:linkbutton>
<asp:linkbutton id="btnPrev1" onclick="PagerButtonClick" runat="server" Font-Name="verdana" ForeColor="navy"
Font-size="8pt" CommandArgument="prev"></asp:linkbutton>
<asp:linkbutton id="btnNext1" onclick="PagerButtonClick" runat="server" Font-Name="verdana" ForeColor="navy"
Font-size="8pt" CommandArgument="next"></asp:linkbutton>
<asp:linkbutton id="btnLast1" onclick="PagerButtonClick" runat="server" Font-Name="verdana" ForeColor="navy"
Font-size="8pt" CommandArgument="last"></asp:linkbutton>
</P>
</td>
</tr>
<tr>
<td bgColor="#e6e6e6" height="25">
<table border="0" width="100%" id="table4">
<tr>
<td>
<p align="center"><b><font color="#ffffff" size="2"> <a name="bb">== 增 加 图 片 图 片 ==</a></font></b></p>
</td>
<td width="50"><a href="#aa"><U><FONT color="#ff3333"><STRONG>列表</STRONG></FONT></U></a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table id="table2" width="100%" border="0">
<tr>
<td align="right" width="15%" height="22"><b>图 片:</b></td>
<td align="left" width="84%" height="22"><INPUT class="InputText" style="WIDTH: 264px; HEIGHT: 21px" type="file" size="24" name="file"
runat="server"></td>
</tr>
<tr>
<td align="right" width="15%" height="22"><b>备 注:</b></td>
<td align="left" width="84%" height="22">
<asp:textbox id="TextBox3" runat="server" Width="264px" Height="104px" TextMode="MultiLine" CssClass="InputText"></asp:textbox><FONT face="宋体"></FONT>
<P><asp:label id="strStatus" runat="server"></asp:label></P>
</td>
</tr>
<tr>
<td colSpan="2" height="22" align="center">
<asp:button id="Button1" runat="server" CssClass="button1" Text="增加"></asp:button><FONT face="宋体">
</FONT><INPUT class="button1" onclick="history.back(-1)" type="button" value="返回" name="B3">
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body>
</HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?