
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--#include file="../inc/Conn.asp"-->
<!--#include file="Inc/Admin.Asp"-->
<!--#include file="Inc/Function.asp"-->
<%
ClassID=Trim(request("ClassID"))
if ClassID="" then ClassID=0
StrTitle="信息"
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>添加<%=StrTitle%></title>
<link href="css/adminstyle.css" rel="stylesheet" type="text/css">
<script language="javascript" src="js/table.js"></script>
<script charset="utf-8" src="../editor/kindeditor.js"></script>
<script charset="utf-8" src="../editor/lang/zh_CN.js"></script>
<script>
		var editor;
		var editor2;
		var editor3;
        KindEditor.ready(function(K){
                editor = K.create('#editor_id', {
                        langType : 'zh_CN',
						uploadJson : '../editor/asp/upload_json.asp',
						fileManagerJson : '../editor/asp/file_manager_json.asp',
						allowFileManager : true,
						afterBlur: function(){this.sync();}
                });
				editor2 = K.create('#editor_id2', {
                        langType : 'zh_CN',
						uploadJson : '../editor/asp/upload_json.asp',
						fileManagerJson : '../editor/asp/file_manager_json.asp',
						allowFileManager : true,
						afterBlur: function(){this.sync();}
                });
				editor3 = K.create('#editor_id3', {
                        langType : 'zh_CN',
						uploadJson : '../editor/asp/upload_json.asp',
						fileManagerJson : '../editor/asp/file_manager_json.asp',
						allowFileManager : true,
						afterBlur: function(){this.sync();}
                });
				editor4 = K.create('#editor_id4', {
                        langType : 'zh_CN',
						uploadJson : '../editor/asp/upload_json.asp',
						fileManagerJson : '../editor/asp/file_manager_json.asp',
						allowFileManager : true,
						afterBlur: function(){this.sync();}
                });
        });
</script>
</head>
<body>
<div class="container">
  <div class="local">
    <h3>您现在的位置：<a href="admin_Index_Main.asp">管理首页</a> >> <a href="Menpiao_manage.asp"><%=StrTitle%>管理</a> >> 添加<%=StrTitle%></h3>
  </div>
  <table width="100%" border="0" cellpadding="10" cellspacing="0" class="border" style="margin-top:10px;">
    <tr>
      <td>
        <div class="page_content">
          <div class="r_title">
            <h3><img src="images/xiao.jpg" /> 添加<%=StrTitle%></h3>
            <div style="float:right; padding-right:10px;">
              <input name="" onclick="javascript:location.href='Menpiao_manage.asp';" type="button" value="返回列表" />
            </div>
          </div>
          <form method="POST" name="myform"  action="Menpiao_Save.asp?action=Add" target="_self">
            <table width="100%" border="0" cellpadding="2" cellspacing="1" class="table_style">
              <tr>
                <th>所属地区：</th>
                <td>
                  <select name="Area">
                    <option value="请选择">请先选择地区</option>
               <%
				set rs=server.CreateObject("adodb.recordset")
				sql="select * from Dream_Area where Dream_ClassID=0 order by Dream_Zid asc"
				rs.open sql,conn,1,1
				if not(rs.eof and rs.bof) then
				do while not rs.eof
				%>
                    <option value="<%=rs("id")%>" style="background:#FBDC9B;"> + <%=rs("Dream_Names")%></option>
                <%
					set rss=server.CreateObject("adodb.recordset")
					sqls="select * from Dream_Area where Dream_ClassID="&rs("id")&" order by Dream_Zid asc"
					rss.open sqls,conn,1,1
					if not(rss.eof and rss.bof) then
					do while not rss.eof
					%>
                    <option value="<%=rss("id")%>" style="background:#FFFFCC;"> --- <%=rss("Dream_Names")%></option>
                    <%
					rss.movenext
					loop
					end if
					rss.close
					set rss=nothing 
				rs.movenext
				loop
				else
				%>
                    <option value="0">暂无分类</option>
                    <%
				noclass="yes"
				end if
				rs.close
				set rs=nothing
				%>
                  </select>
                </td>                
              </tr>
			  <tr>
                <th>所属分类：</th>
                <td>
                  <select name="Theme">
                    <option value="请选择">请先选择分类</option>
               <%
				set rs=server.CreateObject("adodb.recordset")
				sql="select * from Dream_Theme where Dream_ClassID=0 order by Dream_Zid asc"
				rs.open sql,conn,1,1
				if not(rs.eof and rs.bof) then
				do while not rs.eof
				%>
                    <option value="<%=rs("id")%>" style="background:#FBDC9B;"> + <%=rs("Dream_Names")%></option>
                <%
					set rss=server.CreateObject("adodb.recordset")
					sqls="select * from Dream_Theme where Dream_ClassID="&rs("id")&" order by Dream_Zid asc"
					rss.open sqls,conn,1,1
					if not(rss.eof and rss.bof) then
					do while not rss.eof
					%>
                    <option value="<%=rss("id")%>" style="background:#FFFFCC;"> --- <%=rss("Dream_Names")%></option>
                    <%
					rss.movenext
					loop
					end if
					rss.close
					set rss=nothing 
				rs.movenext
				loop
				else
				%>
                    <option value="0">暂无分类</option>
                    <%
				noclass="yes"
				end if
				rs.close
				set rs=nothing
				%>
                  </select>
                </td>                
              </tr>
              <tr id="tr_1">
                <th><%=StrTitle%>标题：</th>
                <td>
                  <input name="title" type="text" class="input" size="50" maxlength="200">
                </td>
              </tr>
			  <tr id="tr_10">
                <th><%=StrTitle%>简要：</th>
                <td>
                  <textarea name="titlecon" cols="50" rows="3" class="input"></textarea>
                </td>
              </tr>
			  <tr>
                <th>排序ID：</th>
                <td><input name="OrderID" type="text" class="input" size="10" maxlength="200" onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')">  注：ID数字越大越靠前
                </td>
              </tr>
			  <tr id="tr_2">
                <th>关键词：</th>
                <td>
                  <input name="keyword" type="text" class="input" size="50" maxlength="200">
                  便于搜索引擎搜索，多个关键词用“，”隔开</td>
              </tr>
              <tr id="tr_3">
                <th>网页描述：</th>
                <td>
                  <textarea name="Description" cols="50" rows="3" class="input"></textarea>
                  便于搜索引擎搜索</td>
              </tr>
			  <tr id="tr_14">
                <th>电话：</th>
                <td>
				  <input name="Phone" type="text" class="input" size="50" maxlength="200" ></td>
              </tr>
			  <tr>
                <th>QQ：</th>
                <td>
				  <input name="QQ" type="text" class="input" size="50" maxlength="200"></td>
              </tr>
			  <tr id="tr_15">
                <th>地址：</th>
                <td>
				  <input name="Address" type="text" class="input" size="50" maxlength="200" ></td>
              </tr>
			  <tr id="tr_13">
                <th>公交：</th>
                <td>
				  <input name="Bus" type="text" class="input" size="50" maxlength="200"></td>
              </tr>
			  <tr id="tr_9">
                <th>外链：</th>
                <td>
				  <input name="Downurl" type="text" class="input" size="50" maxlength="200">
                  格式如：http://www.baidu.com </td>
              </tr>
			  <tr>
                <th>官网：</th>
                <td>
				  <input name="Url1" type="text" class="input" size="50" maxlength="200">
                  格式如：http://www.baidu.com </td>
              </tr>
			  <tr>
                <th>微店：</th>
                <td>
				  <input name="Url2" type="text" class="input" size="50" maxlength="200">
                  格式如：http://www.baidu.com </td>
              </tr>
			  <tr>
                <th>团购：</th>
                <td>
				  <input name="Url3" type="text" class="input" size="50" maxlength="200">
                  格式如：http://www.baidu.com </td>
              </tr>
			  <tr>
                <th>关注：</th>
                <td>
				  <input name="Url4" type="text" class="input" size="50" maxlength="200">
                  格式如：http://www.baidu.com </td>
              </tr>
			  <tr>
                <th>地图链接：</th>
                <td>
				  <textarea name="Mapurl" cols="50" rows="3" class="input"></textarea>
                  格式如：http://map.baidu.com </td>
              </tr>            
			  <tr>
                <th>优惠信息：</th>
                <td valign="top">                  
				  <textarea name="content4" id="editor_id4" style="width:99%; height:200px;"></textarea>
                </td>
              </tr>
			  <tr id="tr_4">
                <th>温馨提示：</th>
                <td valign="top">                  
				  <textarea name="content" id="editor_id" style="width:99%; height:200px;"></textarea>
                </td>
              </tr>
			  <tr>
                <th>商家介绍：</th>
                <td valign="top">                  
				  <textarea name="content3" id="editor_id3" style="width:99%; height:200px;"></textarea>
                </td>
              </tr>
			  <tr>
                <th>轮播图片：</th>
                <td valign="top">                  
				  <textarea name="content2" id="editor_id2" style="width:99%; height:200px;"></textarea>
                </td>
              </tr>
              <tr>
                <th>发布人：</th>
                <td>
                  <input name="user" type="text" class="input" value="<%=session("AdminName")%>" size="30">
                </td>
              </tr>
              <tr id="tr_6">
                <th>缩略图：</th>
                <td>
                  <input name="DefaultPicUrl" type="text" id="DefaultPicUrl" size="30" maxlength="200" style=" float:left" class="input">
                  <iframe style="top:2px; display:inline; margin-left:10px; float:left" id="UploadFiles" src="../upload_Photo.asp?PhotoUrlID=6" frameborder=0 scrolling=no width="340" height="30"></iframe>
                </td>
              </tr>
              <tr id="tr_7">
                <th>信息设置：</th>
                <td>推荐<input name="Elite" type="checkbox" id="Elite" value="yes">&nbsp;&nbsp;&nbsp;最新<input name="SNew" type="checkbox" id="SNew" value="yes">&nbsp;&nbsp;&nbsp;热门<input name="Hot" type="checkbox" id="Hot" value="yes">&nbsp;&nbsp;&nbsp;精品<input name="Choice" type="checkbox" id="Choice" value="yes"></td>
              </tr>
			  <tr>
                <th>信息审核：</th>
                <td><input name="IsOK" type="checkbox" id="IsOK" value="yes"></td>
              </tr>
              <tr id="tr_8">
                <th>录入时间：</th>
                <td height="30">
                  <input name="UpdateTime" type="text" id="UpdateTime" value="<%=now()%>" maxlength="80" size="30" class="input" >
                </td>
              </tr>
              <tr>
                <td height="30" colspan="2" align="center">
                  <input type="submit" name="Submit" value=" 提交 ">
                  <input type="reset" name="Submit" value=" 重置 ">
                </td>
              </tr>
            </table>
          </form>
        </div>
      </td>
    </tr>
  </table>
</div>
</body>
</html>
