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


<script type="text/javascript"> 


$(document).ready(function(){

	$("#BtnSubmit").click(function(){
	
		if(jQuery("#TextA").val().length>200)
		{
			alert("晒图内容仅限于200字以内且仅限于文字，请删减。");
			return false;
		}
	
		var pass= true;
		if(pass)
		{
			var queryString = $('#form_add').serialize()
			$.ajax({
				type: "POST",
				url: "/UserInfo/UserPicNote/Update.aspx?IsAdd=2",
				data:queryString,
				cache: false,
				success: function(msg){
						if(msg=='1'){ //先保留msg这个值以备以后使用
							showtips('<%=(Id>0)?"修改":"添加" %>晒图成功!','tips',1);
							__Removedialog();
			
						}else{
							msg = "<%=(Id>0)?"修改":"添加" %>晒图失败,请检查各项输入是否正确或网络连接状态.代码("+ msg +")";
							ShowErrorMsg(msg);
						}
				},
				error:function(msg)
				{
					//ShowErrorMsg("出错啦:" + msg.responseText);
					alert("写入数据库异常.");
				}
				
			});		
			
		}
		else
		{
			ShowErrorMsg("出错啦:连接异常,操作失败");
		}

	});
	
	jQuery("#BtnSubmit2").click(function(){__Removedialog();});
});

function __Removedialog()
{
RemoveDialogbox("Div_UserPicNote_A_Edit","Ajax_Err_screenMask_UserPicNote");
}


</script> 


<div class="userAddress clearfix" style="width:620px;">

	<form id="form_add">
	
<div class="TableUpdateDiv" style="width:100%;" >
<div style="width:99%;">
	<table class="TableUpdate" style="text-align:left;">
	
	<tr>
	<td>
		<input id="Id" name="Id" type="hidden" value="<%=DataInfo.ID%>" style="background-color:#EEEEEE;" readonly />
		
		<input id="GameType" name="GameType" type="hidden" value="<%=DataInfo.GameType%>"  style="background-color:#EEEEEE;" readonly />
		
		<b><%=GameString[2]%>期号:</b><input id="VendueId" name="VendueId" type="text" value="<%=DataInfo.VendueId%>" style="width:40px;border:0px;background-color:#EEEEEE;"  readonly /> 
		
		<b>产品编号:</b>
		<input id="ProductId" name="ProductId" type="hidden1" value="<%=DataInfo.ProductId%>" style="width:30px;border:0px;background-color:#EEEEEE;" readonly1 /> 
		<b>产品名:</b>
		<input id="ProductName" name="ProductName" type="hidden1" value="<%=DataInfo.ProductName%>" style="width:200px;border:0px;background-color:#EEEEEE;" readonly /> 
		<a href="<%=DataInfo.ProductPhotoPath.Length>3?""+DataInfo.ProductPhotoPath:"javascript:;"%>"   target="_blank">商品图预览</a>
		<input id="ProductPhotoPath" name="ProductPhotoPath" type="hidden" value="<%=DataInfo.ProductPhotoPath%>" style="width:30px;border:0px;background-color:#EEEEEE;" readonly /> 
		
		>>
		<a href="#" onclick='UserPicNoteShow_PicManage(<%=DataInfo.VendueId%>,<%=DataInfo.GameType%>,<%=DataInfo.OrderFormType%>)' >晒图</a>
		
	</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" />			
		<input id="UserId" name="UserId" type="hidden" value="<%=DataInfo.UserId%>" style="width:30px;border:0px;" /> 
		<input id="IsBaseType" name="IsBaseType" type="hidden" value="<%=DataInfo.IsBaseType%>" style="width:30px" />			
		
		

		<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><%=(DataInfo.IsChecked==1?"<font color='green'>审核通过</font>":"<font color='red'>未审核</font>")%>
		<input id="UserIp" name="UserIp" type="hidden" value="<%=DataInfo.IsChecked%>" />		
	
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<input id="UserIp" name="UserIp" type="hidden" 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:100%;"  >
<div style="background-color:#fafafa;width:99%;">	
	
	<table class="TableUpdate" style="text-align:left;">	
	
	<tr>
	<td  >
	<b>网站回复:</b>(只读) 
	
	(回复时间:<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;background-color:#EEE;" readonly><%=DataInfo.TextB%></textarea>
	</td>
	</tr>	
	


		
	</table>
	
	
</div>
</div>
	
		<div class="TableUpdateDiv" style="width:100%;">
		<div style="background-color:#fafafa;width:99%;">
		<table>
		<tr>
		<td style="padding:5px 0px 5px 0px;">&nbsp;
		<button type="button" class="button"  style="margin:0px 0px 0px 0px;background-color:#FF9900;" id='BtnSubmit'>确认<%=(DataInfo.ID>0?"保存":"添加")%></button>
		&nbsp;&nbsp;
		
		<span id="notetip"></span>
		<span id="tips"></span> 
		&nbsp;
		
		<button type="button" class="button"  style="margin:0px 0px 0px 0px;" id='BtnSubmit2'>关闭</button>
		</td>
		</tr>
		</table>
		</div>
		</div>		
	
</form>
	
</div>

