<%@ Page Language="C#" AutoEventWireup="true" debug="true" Inherits="WinLibClass.Form.Admin.Article.UI_Update"  CodePage="65001" %>




<script type="text/javascript"> 


var CurrentBigClassName = "<%=GetCurrentBigClassName()%>";//"公司信息";
var ClassQueryParam = "BigClassId=<%=BigClassId%>&SubClassId=<%=SubClassId%>&PClassId=<%=_PClassId %>";



function _ArticleUpdate(){
		var pass=true;//$.formValidator.pageIsValid('4');

		if(pass){
		
			KE.util.setData("Content");
			var queryString = $('#form_add').serialize();

			$.post("Update.aspx?IsAdd=20", queryString,function(msg){
				if(msg=='1'){ //先保留msg这个值以备以后使用
					Alert('<%=(DataInfo.ID>0)?"修改":"添加" %>'+ CurrentBigClassName +'成功!',1,function(){Common.Refresh();});
					//Common.Refresh();
					
				}else{
					msg = "<%=(DataInfo.ID>0)?"修改":"添加" %>信息失败,请检查各项输入是否正确或网络连接状态.代码("+ msg +")";
					AlertErr(msg,2);
				}
			});
		}

}

$(document).ready(function(){

});



</script> 

<div class="W600">
	<form id="form_add">
<div class="TableUpdateDiv"  style="width:100%;">
<div style="width:98%;">
	<table class="TableUpdate" style="text-align:left;">
	<tr>
	<td >
		标题:
		<input id="Id" name="Id" type="hidden" class="input" style="width:300px;"  value="<%=DataInfo.ID%>" />
		<input id="Title" name="Title" type="text" class="input" style="width:300px;"  value="<%=DataInfo.Title%>" />
		
		
		推荐:
		<select id="OrderId" name="OrderId" style="width:60px;" class="OptionStar">
		<option value="0" <%=((DataInfo.OrderId==0)?"selected":"")%>>默认</option>
		<option value="1" class="Star1" <%=((DataInfo.OrderId==1)?"selected":"")%> >1星</option>
		<option value="2" class="Star1" <%=((DataInfo.OrderId==2)?"selected":"")%> >2星</option>
		<option value="3" class="Star1" <%=((DataInfo.OrderId==3)?"selected":"")%> >3星</option>
		<option value="4" class="Star2" <%=((DataInfo.OrderId==4)?"selected":"")%> >4星</option>
		<option value="5" class="Star2" <%=((DataInfo.OrderId==5)?"selected":"")%> >5星</option>
		<option value="6" class="Star2" <%=((DataInfo.OrderId==6)?"selected":"")%> >6星</option>
		<option value="7" class="Star3" <%=((DataInfo.OrderId==7)?"selected":"")%> >7星</option>
		<option value="8" class="Star3" <%=((DataInfo.OrderId==8)?"selected":"")%> >8星</option>
		<option value="9" class="Star3" <%=((DataInfo.OrderId==9)?"selected":"")%> >9星</option>
		<option value="10" class="Star3" <%=((DataInfo.OrderId==10)?"selected":"")%> >10星</option>		
		</select>
		（7~10星表示热门）			
		
	</td>
	</tr>
	<tr>	
	<td >
		<SPAN CLASS="Hide>
		链接:
		<input id="Href" name="Href" type="text" class="input" style="width:150px;" value="<%=DataInfo.Href%>" />
		</SPAN>
		分类:
		<input id="BigClassId" name="BigClassId" type="hidden" class="input" style="width:100px;"  value="<%=DataInfo.BigClassId%>" />
		<select id="SubClassId" name="SubClassId" style="width:100px;" >
		<%=GetSubClassHTML()%>
		</select>

		状态:
		<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>		
		&nbsp;
		

		
		
	</td>
	
	<tr style="display:none" >	
	<td >
		图片:
		<input id="ImagePathShow" type="text" class="input" style="width:300px;" value="<%=DataInfo.ImagePath%>" readonly />
		<input id="ImagePath" name="ImagePath" type="hidden" class="input" style="width:300px;" value="<%=DataInfo.ImagePath%>" />
		<button type="button" class="button" class="f12" id='ChoosePic'>选择/上传图片</button>
	</td>
	</tr>
	
	
	
	
	<tr>	
	<td >
	
		
	</td>
	</tr>	
	
	</table>
	</div>
</div>	


<div class="TableUpdateDiv" style="width:100%;text-align:left;display:none1" id="Div_Show_1" >
<div style="background-color:#fafafa;width:98%;">
		<table style="width:96%;margin:5px">
		<tr>
		<td style="line-height:25px;">
		内容:<br />
		<textarea id="Content" name="Content" type="text" style="width:300px;height:100px;display:none1;" ><%=DataInfo.Content%></textarea>
		</td>
		</tr>
		</table>
</div>
</div>
	
</form>

</div>

		<div id="mbAjaxShowPic">
		</div>





