<%@ Page Language="C#" AutoEventWireup="true" debug="true" Inherits="WinLibClass.Form.Admin.ImagesList.UI_Update"  CodePage="65001" %>
<script type="text/javascript"> 
$(document).ready(function(){});
function SaveSub()
{

		var pass=true;
		if(pass){
			var queryString = $('#form_add').serialize();
			$.post("update.aspx?IsAdd=2", queryString,function(msg){
				if(msg>0){ 
					Alert('<%=(DataInfo.ID>0)?"修改":"添加" %>成功!',1,function(){Common.Refresh();});
				}
				else if(msg=='-1')
				{
					msg = "<%=(DataInfo.ID>0)?"修改":"添加" %>投标信息失败,未填写投标标号.";//代码("+ msg +")";
					AlertErr(msg,2);
				}
				else
				{
					if(msg.indexOf("您的权限不足")<0){msg = "<%=(DataInfo.ID>0)?"修改":"添加" %>失败,请检查各项输入是否正确或网络连接状态.";	}
					AlertErr(msg,2);
				}
				
			});
		}
	return false;

}


</script> 
<div class="W700">
<form id="form_add">
<div style="width:98.5%">
<div class="Clear"> </div>
<div class="TableUpdateDiv" style="width:100%;" id="Div_Show_0" >
<div style="width:98%;">
	<table class="TableUpdate" style="text-align:left;">

	<tr>
	<td >
		
		<input id="ID" name="ID" type="hidden" class="input"  value="<%=DataInfo.ID%>" />
		<input id="ImagePath" name="ImagePath" type="hidden" class="input"  value="<%=DataInfo.ImagePath%>" />
		
		图片名称：
		<input id="ImageName" name="ImageName" type="text" class="input" style="width:220px;"  value="<%=DataInfo.ImageName%>" />
	</td>
	
	<td>
	图片链接：
		<input id="ImageLink" name="ImageLink" type="text" class="input" style="width:220px;"  value="<%=DataInfo.ImageLink%>" />
	</td>
	
	
	</tr>
	
	<tr style="display:none">
	<td >
		状态:
		<select id="IsChecked" name="IsChecked" style="width:100px;" >
		<option value="0" style="color:red" <%=((DataInfo.IsChecked==0)?"selected":"")%> > 停用 </option>
		<option value="1" <%=((DataInfo.IsChecked==1)?"selected":"")%> >启用</option>
		</select>	
	</td>
	</tr>
		
	<tr>
	<td >
		图片类型:
		<select id="ImageType" name="ImageType" style="width:100px;" >
		<option value="1" <%=((DataInfo.ImageType==1)?"selected":"")%> >logo </option>
		<option value="2" <%=((DataInfo.ImageType==2)?"selected":"")%> >底部logo小图</option>
		<option value="3" <%=((DataInfo.ImageType==3)?"selected":"")%> >友情链接</option>
		<option value="4" <%=((DataInfo.ImageType==4)?"selected":"")%> >电话图片</option>
		<option value="5" <%=((DataInfo.ImageType==5)?"selected":"")%> >首页底部左侧广告图</option>
		<option value="6" <%=((DataInfo.ImageType==6)?"selected":"")%> >首页底部右侧广告图</option>
		<option value="7" <%=((DataInfo.ImageType==7)?"selected":"")%> >其他页面顶部广告图片</option>
		<option value="8" <%=((DataInfo.ImageType==8)?"selected":"")%> >右侧广告图片</option>
		
		</select>	
	</td>
	</tr>
		

	<tr>
	<td >
  图片简介:(100字以内)<br />
  <textarea id="ImageContent" name="ImageContent" class="input" maxlength="100" style="width:460px;height:60px" >
  <%=DataInfo.ImageContent%>    
  </textarea>
	</td>
	</tr>
	

	</table>
	
</div>
</div>
</div>
</form>
</div>

