📄 photo_add.aspx
字号:
<%@ Page Language="C#" ContentType="text/html" AutoEventWireup="true" Inherits="user_photo_add" Debug="true" Codebehind="photo_add.aspx.cs" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="../../sysImages/<%Response.Write(NetCMS.Config.UIConfig.CssPath()); %>/css/usercss.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" type="text/javascript" src="../../configuration/js/Prototype.js"></script>
<script language="JavaScript" type="text/javascript" src="../../configuration/js/Public.js"></script>
</head>
<body><form id="form1" runat="server" action="" method="post">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="toptable">
<tr>
<td height="1" colspan="2"></td>
</tr>
<tr>
<td width="57%" class="sysmain_navi" style="PADDING-LEFT: 14px" >相册管理</td>
<td width="43%" class="topnavichar" style="PADDING-LEFT: 14px" ><div align="left">位置导航:<a href="../main.aspx" target="sys_main" class="list_link">首页</a><img alt="" src="../../sysImages/folder/navidot.gif" border="0" /><a href="Photoalbumlist.aspx" class="list_link">相册管理</a><img alt="" src="../../sysImages/folder/navidot.gif" border="0" />添加图片</div></td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="Navitable">
<tr>
<td><span class="topnavichar" style="PADDING-LEFT: 14px"><a href="Photoalbumlist.aspx" class="menulist">相册首页</a> ┊ <a href="photo_add.aspx" class="menulist">添加图片</a> ┊ <a href="photoclass.aspx" class="menulist">相册分类</a> ┊ <a href="Photoalbum.aspx" class="menulist">添加相册</a></span></td>
</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#FFFFFF" class="table" id="insert">
<tr class="TR_BG_list">
<td class="list_link" style="text-align: right; width: 179px;">
相片标题:</td>
<td class="list_link" style="width: 707px">
<asp:TextBox ID="PhotoName" runat="server" Width="350px" CssClass="form"></asp:TextBox> 相册:<asp:DropDownList ID="Photoalbum" runat="server" Width="133px">
</asp:DropDownList></td>
</tr>
<tr class="TR_BG_list">
<td class="list_link" style="text-align: right; width: 179px;">
图片:</td>
<td class="list_link" style="width: 707px">
<table width="81%" border="0" cellspacing="1" cellpadding="1">
<tr>
<td style="width: 176px; height: 74px;">
<div align="center">
<table width="10" border="0" cellspacing="1" cellpadding="2" class="table">
<tr>
<td class="list_link" ><img src="../../sysImages/user/nopic_supply.gif" width="90" height="90" id="pic_p_1" /></td>
</tr>
</table>
</div>
</td>
<td width="34%" style="height: 74px;display:none;"><div align="center">
<table width="10" border="0" cellspacing="1" cellpadding="2" class="table">
<tr>
<td class="list_link" ><img src="../../sysImages/user/nopic_supply.gif" width="90" height="90" id="pic_p_2" /></td>
</tr>
</table>
</div></td>
<td style="width: 162px; height: 74px;display:none;"><div align="center">
<table width="10" border="0" cellspacing="1" cellpadding="2" class="table">
<tr>
<td class="list_link" style="width: 95px" ><img src="../../sysImages/user/nopic_supply.gif" width="90" height="90" id="pic_p_3" /></td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td style="width: 176px" align="center">
<asp:TextBox ID="pic_p_1url" runat="server" Width="0px" BackColor="#F8FDFF" BorderStyle="None"></asp:TextBox>
</td>
<td align="center" style="display:none;">
<asp:TextBox ID="pic_p_1ur2" runat="server" Width="0px" BackColor="#F8FDFF" BorderStyle="None"></asp:TextBox>
</td>
<td align="center" style="width: 162px" style="display:none;">
<asp:TextBox ID="pic_p_1ur3" runat="server" Width="92px" BackColor="#F8FDFF" BorderStyle="None"></asp:TextBox>
</td>
</tr>
<tr>
<td class="list_link" style="width: 176px"><div align="center"><input class="form" type="button" value="上 传" onclick="selectFile('user_pic',
document.form1.pic_p_1url,300,500);" /> <input id="Button2" type="button" value="删 除" class="form" onClick="dels_1();"/>
</div></td>
<td class="list_link" style="display:none;" ><div align="center"><input class="form" type="button" value="上 传" onclick="selectFile('user_pic',document.form1.pic_p_1ur2,300,500);" /> <input id="Button3" type="button" value="删 除" class="form" onClick="dels_2();"/>
</div></td>
<td class="list_link" style="display:none;" ><div align="center"><input class="form" type="button" value="上 传" onclick="selectFile('user_pic',document.form1.pic_p_1ur3,300,500);" /> <input id="Button4" type="button" value="删 除" class="form" onClick="dels_3();"/>
</div></td>
</tr>
</table>
</td>
</tr>
<tr class="TR_BG_list">
<td class="list_link" style="text-align: right; width: 179px;">
图片说明:</td>
<td class="list_link" style="width: 707px">
<asp:TextBox ID="PhotoContent" runat="server" Height="130px" TextMode="MultiLine" Width="480px" CssClass="form"></asp:TextBox></td>
</tr>
<tr class="TR_BG_list">
<td class="list_link" style="text-align: right; width: 179px;">
</td>
<td class="list_link" style="width: 707px">
<asp:Button ID="server" runat="server" Text="保存到相册" Width="115px" OnClick="server_Click" CssClass="form"/></td>
</tr>
</table>
<br />
<br />
<table width="100%" height="74" border="0" cellpadding="0" cellspacing="0" class="copyright_bg">
<tr>
<td><div align="center"><%Response.Write(CopyRight); %> </div></td>
</tr>
</table>
</form>
</body>
</html>
<script type="text/javascript" language="javascript">
new Form.Element.Observer($('pic_p_1url'),1,pics_1);
function pics_1()
{
if ($('pic_p_1url').value=='')
{
$('pic_p_1').src='../Images/nopic_supply.gif'
}
else
{
$('pic_p_1').src=$('pic_p_1url').value.replace('{@UserdirFile}','<% Response.Write(UdirDumm); %><% Response.Write(NetCMS.Config.UIConfig.UserdirFile); %>');
}
}
new Form.Element.Observer($('pic_p_1ur2'),1,pics_2);
function pics_2()
{
if($('pic_p_1ur2').value=='')
{
$('pic_p_2').src='../Images/nopic_supply.gif'
}
else
{
$('pic_p_2').src=$('pic_p_1ur2').value.replace('{@UserdirFile}','/<% Response.Write(NetCMS.Config.UIConfig.dirDumm); %>/<% Response.Write(NetCMS.Config.UIConfig.UserdirFile); %>');
}
}
new Form.Element.Observer($('pic_p_1ur3'),1,pics_3);
function pics_3()
{
if($('pic_p_1ur3').value=='')
{
$('pic_p_3').src='../Images/nopic_supply.gif'
}
else
{
$('pic_p_3').src=$('pic_p_1ur3').value.replace('{@UserdirFile}','/<% Response.Write(NetCMS.Config.UIConfig.dirDumm); %>/<% Response.Write(NetCMS.Config.UIConfig.UserdirFile); %>');
}
}
function dels_1()
{
document.form1.pic_p_1url.value='../../sysImages/user/nopic_supply.gif'
}
function dels_2()
{
document.form1.pic_p_1ur2.value='../../sysImages/user/nopic_supply.gif'
}
function dels_3()
{
document.form1.pic_p_1ur3.value='../../sysImages/user/nopic_supply.gif'
}
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -