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


<script type="text/javascript"> 

function SaveInfoSub(){
		var pass= jQuery("#VendueId").val()>0;
		if(pass){
			var queryString = $('#form_add').serialize()
			jQuery.ajax({async:false,//同步访问
				type: "POST",
				url: "../UserPicNote/update.aspx?IsAdd=2",
				data:queryString,cache: false,
				success: function(msg){
						if(msg>0){
						Alert('<%=(DataInfo.ID>0)?"修改":"添加" %>晒图成功!',1,function(){Common.Refresh();});
						//Common.Refresh();
						//location.replace(location.href);
						//alert(location.href);
						}
						else{msg = "<%=(DataInfo.ID>0)?"修改":"添加" %>晒图失败,请检查各项输入是否正确或网络连接状态.代码("+ msg +")";AlertErr(msg,2);
						}
				},error:function(msg){AlertErr("写入数据库异常.",2);}				
			});				
		}else{AlertErr("竞拍编号不能为0。",1);
			//AlertErr("出错啦:连接异常,操作失败",2);
		}
		return false;
}


</script> 

	<form id="form_add">
<div class=" W660"  >


	
<div class="TableUpdateDiv " style="width:96%;" >
<div style="width:100%;">
	<table class="TableUpdate" style="text-align:left;">
	
	<tr>
	<td>
		<input id="Id" name="Id" type="hidden" value="<%=DataInfo.ID%>" readonly />
		
		<input id="GameType" name="GameType" type="hidden" value="<%=DataInfo.GameType%>" readonly />
		
		<b><%=WinLibClass.Form.FormCommon.Utils.GameString(DataInfo.GameType)[2]%>期号:</b><input id="VendueId" name="VendueId" type="text" value="<%=DataInfo.VendueId%>" style="width:40px;border:0px;"  readonly /> 
		
		<b>产品编号:</b>
		<input id="ProductId" name="ProductId" type="hidden1" value="<%=DataInfo.ProductId%>" style="width:30px;border:0px;" readonly1 /> 
		<b>产品名:</b>
		<input id="ProductName" name="ProductName" type="hidden1" value="<%=DataInfo.ProductName%>" style="width:200px;border:0px;" readonly /> 

	</td>	
	</tr>
	
	<tr>
	<td >
		<b>获得者:</b>
		<%=DataInfo.UserNickName %>  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<input id="UserNickName" name="UserNickName" type="hidden" value="<%=DataInfo.UserNickName%>" style="width:30px" />			
		<input id="UserHeadImage" name="UserHeadImage" type="hidden" value="<%=DataInfo.UserHeadImage%>" style="width:30px" />			
		<b>会员编号:</b><input id="UserId" name="UserId" type="text" value="<%=DataInfo.UserId%>" style="width:30px;border:0px;" /> 
		<input id="IsBaseType" name="IsBaseType" type="hidden" value="<%=DataInfo.IsBaseType%>" style="width:30px" />			
		
		<a href="<%=DataInfo.ProductPhotoPath.Length>3?""+DataInfo.ProductPhotoPath:"#"%>"   target="_blank">商品图预览</a>
		<input id="ProductPhotoPath" name="ProductPhotoPath" type="hidden" value="<%=DataInfo.ProductPhotoPath%>" style="width:30px;border:0px;" readonly /> 
		
		>>
		<a href="#" onclick='UserPicNoteShow_PicManage(<%=DataInfo.VendueId%>,<%=DataInfo.GameType%>,<%=DataInfo.OrderFormType%>)' >晒图</a>
				
	</td>	
	</tr>
	
	<tr>
	<td >
		<b>信息类型:</b>
		<%=GetOrderFormType(DataInfo.OrderFormType)%>
		<select id="OrderFormType" name="OrderFormType" style="width:150px;display:none;"  >
		<option value="1" style="color:#333333" <%=((DataInfo.OrderFormType==1)?"selected":"")%> >竞拍赢取</option>
		<option value="3" style="color:#333333" <%=((DataInfo.OrderFormType==3)?"selected":"")%> >竞拍保价</option>
		<option value="5" style="color:#339900" <%=((DataInfo.OrderFormType==5)?"selected":"")%> >秒杀赢取</option>
		<option value="6" style="color:#339900" <%=((DataInfo.OrderFormType==6)?"selected":"")%> >秒杀保价</option>
		<option value="7" style="color:#990000" <%=((DataInfo.OrderFormType==7)?"selected":"")%> >彩票赢取</option>
		<option value="8" style="color:#990000" <%=((DataInfo.OrderFormType==8)?"selected":"")%> >彩票保价</option>
		<option value="9" style="color:#AA00AA" <%=((DataInfo.OrderFormType==9)?"selected":"")%> >投注赢取</option>
		<option value="10" style="color:#A00AAA" <%=((DataInfo.OrderFormType==10)?"selected":"")%> >投注保价</option>
		</select>			
		&nbsp;&nbsp;&nbsp;&nbsp;
	<b>状态:</b>
		<select id="IsChecked" name="IsChecked" style="width:60px;" >
		<option value="0" style="color:red" <%=((DataInfo.IsChecked==0)?"selected":"")%> >未审核</option>
		<option value="1" <%=((DataInfo.IsChecked==1)?"selected":"")%> >已审核</option>
		</select>	
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	<b>IP:</b>	<input id="UserIp" name="UserIp" type="text" value="<%=DataInfo.UserIp%>" />			

	</td>	
	</tr>
	
	
	<tr>
	<td>
	<div style="float:left;width:290px;height:150px;border:0px;display:none;">
	<b>标题:</b>(50字以内)<br />
		<textarea id="TitleA" name="TitleA" class="input" style="width:280px;height:108px" ><%=DataInfo.TitleA%> </textarea>
		</div>
	<div  style="float:left;width:310px;height:150px;border:0px;">
	<b>内容:</b>(200字以内)<br />
		<textarea id="TextA" name="TextA" class="input" style="width:450px;height:108px" ><%=DataInfo.TextA%></textarea>
		</div>
	</td>
	</tr>
	
	<tr>	
	<td>		
		<b>发布时间:</b><input id="CreateTime" name="CreateTime" type="text" value="<%=DataInfo.CreateTime.ToString("yyyy-MM-dd HH:mm:ss")%>" style="width:140px;background-color:#EEE;" readonly /> 
		<b>最后更新:</b><input id="LastTime" name="LastTime" type="text" value="<%=DataInfo.LastTime.ToString("yyyy-MM-dd HH:mm:ss")%>" style="width:140px;background-color:#EEE;" readonly /> 
	</td>
	</tr>	
	
</table>
	</div>
</div>	
	
<div class="TableUpdateDiv " style="width:98%;"  >
<div style="width:100%;">		
	<table class="TableUpdate" style="text-align:left;">	
	<tr>
	<td  >
	<b>网站回复:</b>(200字以内) 	
	(回复时间:<input id="SysLastTime" name="SysLastTime" type="text" value="<%=DataInfo.SysLastTime.ToString("yyyy-MM-dd HH:mm:ss")%>" style="width:140px;border:0px;" readonly /> )
	<br /><textarea id="TextB" name="TextB" class="input" style="width:450px;height:100px" ><%=DataInfo.TextB%></textarea>
	</td>
	</tr>	
	</table>	
</div>
</div>
<div class="Clear"></div>	
</div>	
</form>	


