
<!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/Ubbcode.asp"-->
<!--#include file="Inc/Function.asp"-->
<%
mkid=Trim(request("mkid"))
StrTitle="信息"

dim ID,rs_news
dim sql
dim count
ID=trim(request("ID"))
if ID="" then 
	response.Redirect("Article_manage.asp?mkid="&mkid)
end if
sql="select * from Dream_Articles where Dream_ModularID="&mkid&" and ID=" & ID & ""
Set rs_news= Server.CreateObject("ADODB.Recordset")
rs_news.open sql,conn,1,1
style=Trim(rs_news("Dream_Style"))
%>
<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();}
                });
        });
</script>
</head>
<body onload="strstyle('|<%=style%>')">
<div class="container">
  <div class="local">
    <h3>您现在的位置：<a href="admin_Index_Main.asp">管理首页</a> >> <a href="Article_manage.asp?mkid=<%=mkid%>"><%=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='Article_manage.asp?mkid=<%=mkid%>';" type="button" value="返回列表" />              
            </div>
          </div>
          <%				
				if FoundErr=True then
					call WriteErrMsg()
				else
				%>
          <form method="POST" name="myform"  action="Article_Save.asp?action=Modify&mkid=<%=mkid%>" target="_self">
            <table  width="100%" border="0" cellpadding="2" cellspacing="1" class="table_style">
              <tr <%if style=1 then%>style="display:none;"<%end if%>>
                <th><%=StrTitle%>类别：</th>
                <td><select name="Classid" onchange="strstyle(this.value)">
                    <option value="请选择">请先选择分类</option>
                    <%
						set rs=server.CreateObject("adodb.recordset")
						if style=1 then
						sql="select * from Dream_Class where Dream_ClassID=0 and Dream_ModularID="&mkid&" order by Dream_Zid asc"
						else
						sql="select * from Dream_Class where Dream_ClassID=0 and Dream_ModularID="&mkid&" and Dream_Style<>1 order by Dream_Zid asc"
						end if
						rs.open sql,conn,1,1
						if not(rs.eof and rs.bof) then
						do while not rs.eof
						%>
                    <option value="<%=rs("id")%>|<%=rs("Dream_Style")%>"<%if Cint(trim(rs_news("Dream_ClassID")))=rs("id") then%> selected="selected"<%end if%>> + <%=rs("Dream_Names")%></option>
                    <%
							set rss=server.CreateObject("adodb.recordset")
							sqls="select * from Dream_Class 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")%>|<%=rss("Dream_Style")%>"<%if Cint(trim(rs_news("Dream_ClassID")))=rss("id") then%> selected="selected"<%end if%>> --- <%=rss("Dream_Names")%></option>
                    <%
							rss.movenext
							loop
							end if
							rss.close
							set rss=nothing	
						rs.movenext
						loop
						else
						%>
                    <option value="0">暂无分类</option>
                    <%
						end if
						rs.close
						set rs=nothing
						%>
                  </select>
                  &nbsp;
                  <label id="tr_0"></label></td>
              </tr>
              <tr id="tr_1">
                <th><%=StrTitle%>标题：</th>
                <td><input name="title" type="text" class="input" value="<%=rs_news("Dream_Title")%>" size="50" maxlength="200"> 
                </td>
              </tr> 
			  <tr id="tr_10">
                <th><%=StrTitle%>简要：</th>
                <td>
                  <textarea name="titlecon" cols="50" rows="3" class="input"><%=rs_news("Dream_TitleCon")%></textarea>
                </td>
              </tr>
			  <tr id="tr_2">
                <th>关键词：</th>
                <td><input name="keyword" type="text" class="input" value="<%=rs_news("Dream_keyword")%>" size="50" maxlength="200">
                  便于搜索引擎搜索，多个关键词用“，”隔开</td>
              </tr>
              <tr id="tr_3">
                <th>网页描述：</th>
                <td><textarea name="Description" cols="50" rows="3" class="input"><%=rs_news("Dream_Description")%></textarea>
                  便于搜索引擎搜索</td>
              </tr>            
			  <tr id="tr_9">
                <th>链接：</th>
                <td>
				  <input name="Downurl" type="text" class="input" size="50" maxlength="200" value="<%=rs_news("Dream_DownUrl")%>">
                  格式如：http://www.baidu.com </td>
              </tr>
			  <tr id="tr_4">
                <th>信息介绍：</th>
                <td valign="top">                  
				  <textarea name="content" id="editor_id" style="width:99%; height:200px;"><%=rs_news("Dream_Content")%></textarea>
                </td>
              </tr>
			  <tr id="tr_11">
                <th>轮播图：</th>
                <td valign="top">                  
				  <textarea name="content2" id="editor_id2" style="width:99%; height:200px;"><%=rs_news("Dream_Content2")%></textarea>
                </td>
              </tr>
              <tr id="tr_5">
                <th>发布人：</th>
                <td><input name="user" type="text" class="input" size="30" value="<%=rs_news("Dream_User")%>"></td>
              </tr>
              <tr id="tr_6">
                <th>缩略图：</th>
                <td><input name="DefaultPicUrl" type="text" id="DefaultPicUrl" size="30" maxlength="50" style=" float:left" class="input" value="<%=rs_news("Dream_DefaultPicUrl")%>">
                  <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" <%if rs_news("Dream_Elite")=true then response.Write("checked") end if%>></td>
              </tr>              
              <tr id="tr_8">
                <th>录入时间：</th>
                <td><input name="UpdateTime" type="text" id="UpdateTime" value="<%=rs_news("Dream_UpdateTime")%>" maxlength="50" size="30" class="input"></td>
              </tr>
              <tr align="center">
                <input type="hidden" name="Id" value="<%=Id%>">
                <td height="35" colspan="2"><input type="submit" name="Submit" value=" 提交 ">
                  &nbsp;&nbsp;
                  <input type="reset" name="Submit" value=" 重置 ">
                </td>
              </tr>
            </table>
          </form>
        </div></td>
    </tr>
  </table>
  <%
end if
rs_news.close
set rs_news=nothing
call CloseConn()
%>
</div>
</body>
</html>
