<%@ page language="C#" autoeventwireup="true" inherits="admin_lottery_Add, kfenlei" %><%@ Register Src="../inc/adminTop.ascx" TagName="adminTop" TagPrefix="qth8" %><!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>
<title>框分类信息系统 后台管理</title>
<link href="../css.css" rel="stylesheet" type="text/css" />
<%=tools.sHtmlEdit("html")%>
</head>
<body>
<div align="center">
<div class="main" align="left">
<qth8:adminTop ID="AdminTop1" runat="server" />
<div class="d01">
<div class="tabTitle">添加抽奖活动</div>
<form action="../action.aspx?s=lotteryAdd" class="layui-form" name="token" method="post">
<table width="100%" border="0" class="layui-table" cellspacing="0" cellpadding="0">
<tr>
<td width="140">抽奖活动编号</td>
<td><input type="text" class="inputText" value="<%=sNum%>" name="num" style="width:400px;" />  <span class="comments">系统生成，不需要修改</span>
</td></tr>
<tr>
<td>标题</td>
<td><input type="text" class="inputText" value="" name="title" style="width:400px;" />
</td></tr>
<tr>
<td>奖品图片</td>
<td><input type="text" class="inputText" value="" name="pic" id="pic" style="width:400px;" /> <a href="#nogo" onclick="showDiv('upfileDiv')">【上传】</a>
<div class="upfileDiv" style="width:505px;" id="upfileDiv">
<div class="upfileClose" onclick="hideDiv('upfileDiv')">关闭</div>
<iframe width="400" height="100" style="padding:0px; margin:0px;" src="../inc/upFile.aspx?tn=pic&fn=token&size=600,0&js=top.hideDiv('upfileDiv');top.valiUpPic('pic','','{picUrl}');" frameborder="0" scrolling="no"></iframe>
</div>
</td></tr>
<tr>
<td>中奖人数</td>
<td><input type="text" class="inputText" value="3" name="count" style="width:400px;" />
</td></tr>
<tr>
<td>简介</td>
<td><textarea name="text" class="layui-textarea" rows="5" cols="80"></textarea>
</td></tr>
<tr>
<td>开始日期</td>
<td><input type="text" class="inputText" value="" onclick="layui.laydate({elem:this})" name="startDate" style="width:200px;" />
</td>
</tr>
<tr>
<td>结束日期</td>
<td><input type="text" class="inputText" value="" onclick="layui.laydate({elem:this})" name="endDate" style="width:200px;" />
</td>
</tr>
<tr>
<td>开奖日期</td>
<td><input type="text" class="inputText" value="" onclick="layui.laydate({elem:this})" name="showDate" style="width:200px;" />
</td>
</tr>
<tr>
<td valign="top" style="vertical-align:top;">活动介绍及奖品说明
</td>
<td>
<textarea name="html" class="jsTextarea" rows="50" cols="150"></textarea></td>
</tr>
<tr>
<td class="head" width="100"></td>
<td><input type="submit" class="layui-btn" value="添加" /></td>
</tr>
</table>
</form>
</div>
</div></div>
<script language="javascript" type="text/javascript">
 function showDiv(divId)
  {
  	var obj=divId.split(',');
	if(obj.length>0)
	{
		for(i=0;i<obj.length;i++)
		{
  			document.getElementById(obj[i]).style.display="block";
		}
	}
  }
  function hideDiv(divId)
  {
  	var obj=divId.split(',');
	if(obj.length>0)
	{
		for(i=0;i<obj.length;i++)
		{
  			document.getElementById(obj[i]).style.display="none";
		}
	}
  }
  
</script>
</body>
</html>
