<%@language=VBScript.Encode codepage=936 %>
<!--#include file="conn.asp"-->
<!--#include file="admin.asp"-->
<!--#include file="Inc/Function.asp"-->
<%#@~^swAAAA==@#@&NrsPM/@#@&NbhPk;s@#@&Nrh,mW!UY@#@&/O~Dk'k+.\n.cm.+mO+K4%n1Y`EC9W[4c.mGMNk+Yr#@#@&/$V~',Jdn^+mD~e,0DKh~+	?slsV/sm/d{gnh,W.[DP8z,?hl^s;VCk/&fPm/1E@#@&DdRKwnU,/;^SmKxxBqSF@#@&4DYAAA==^#~@%>
<script language = "JavaScript">
var onecount;
subcat = new Array();
        <%#@~^QQAAAA==@#@&P~,P,PP,mK;xDPxPZ@#@&~,PP,~P,NW,A4k^+,xGY~.kRnW6~@#@&P~~,PP~~JQ0AAA==^#~@%>
subcat[<%=#@~^BQAAAA==^KEUDKQIAAA==^#~@%>] = new Array("<%=#@~^GwAAAA==~DDrs`M/`r?sCV^Zslk/HCs+J*bFwkAAA==^#~@%>","<%=#@~^GQAAAA==~DDrs`M/`rAbLZ^ld/glhnr##MAgAAA==^#~@%>","<%=#@~^GwAAAA==~DDrs`M/`r?sCV^Zslk/HCs+J*bFwkAAA==^#~@%>");
        <%#@~^ZAAAAA==@#@&P~,P,PP,mK;xDPxP1W;UDP_,q@#@&PP,~~P,PM/ :G-xn6D@#@&,P~~,PP~sKW2@#@&~,P~,P,PDkR1sWk+@#@&,P~~,PP,ShQAAA==^#~@%>
onecount=<%=#@~^BQAAAA==^KEUDKQIAAA==^#~@%>;

function changelocation(locationid)
    {
    document.myform.SmallClassName.length = 1; 
    var locationid=locationid;
    var i;
    for (i=0;i < onecount; i++)
        {
            if (subcat[i][1] == locationid)
            { 
                document.myform.SmallClassName.options[document.myform.SmallClassName.length] = new Option(subcat[i][0], subcat[i][2]);
            }        
        }
    }    

function AddItem(strFileName){
  document.myform.IncludePic.checked=true;
  document.myform.DefaultPicUrl.value=strFileName;
  document.myform.DefaultPicList.options[document.myform.DefaultPicList.length]=new Option(strFileName,strFileName);
  document.myform.DefaultPicList.selectedIndex+=1;
  if(document.myform.UploadFiles.value==''){
	document.myform.UploadFiles.value=strFileName;
  }
  else{
    document.myform.UploadFiles.value=document.myform.UploadFiles.value+"|"+strFileName;
  }
}

function CheckForm()
{
    if (editor.EditMode.checked==true)
	  document.myform.Content.value=editor.HtmlEdit.document.body.innerText;
    else
	  document.myform.Content.value=editor.HtmlEdit.document.body.innerHTML; 

	if (document.myform.title.value.length == 0) {
		alert("新闻标题没有填写.");
		document.myform.title.focus();
		return false;
	}
	if (document.myform.BigClassName.value.length == 0) {
		alert("新闻大类没有选");
		document.myform.BigClassName.focus();
		return false;
	}
	
		if (document.myform.user.value.length == 0) {
		alert("新闻发布人没有填写");
		document.myform.user.focus();
		return false;
	}
	return true;
}
</script>
<!-- #include file="Inc/Head.asp" -->

<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr> 
    <td align="center" valign="top">
	<table width="95%" border="0" cellpadding="2" cellspacing="1" class="table_southidc">
        <form method="POST" name="myform" onSubmit="return CheckForm();" action="enNews_save.asp?action=Add" target="_self">
          <tr> 
            <td class="back_southidc" height="30" colspan="2" align="center">增加新闻</td>
          </tr>
          <tr bgcolor="#ECF5FF"> 
            <td width="119" height="25"><font color="#FF0000">*</font>新闻标题：</td>
            <td width="476"> <input name="title" type="text" class="input" size="50" maxlength="200"></td>
          </tr>
          <tr bgcolor="#ECF5FF"> 
            <td height="25"><font color="#FF0000">*</font>新闻类别：</td>
            <td> <%#@~^ngAAAA==7i@#@&,P,PP,P,d;^PxPr/nsmY,MP6DWs~$kTZ^ld/mHhE@#@&~P,P~~,PDd Kwnx,d$VS1W	x~8~8@#@&idr0,Dd W0,Cx9PDk 8W6PDtnx@#@&id7DdwKxdnchDrOPE请先添加栏目。J@#@&idn^/@#@&idsyUAAA==^#~@%> <select name="BigClassName" onChange="changelocation(document.myform.BigClassName.options[document.myform.BigClassName.selectedIndex].value)" size="1">
                <option selected value="<%=#@~^GAAAAA==OMkhvDk`J~kT/Vm/d1m:nE*#EAgAAA==^#~@%>"><%=#@~^GAAAAA==OMkhvDk`J~kT/Vm/d1m:nE*#EAgAAA==^#~@%></option>
                <%#@~^dAAAAA==@#@&d7iNb:Pk+^^Vm/d@#@&d7~,PPknV1VlkdxDk`rAro/sm/d1mh+r#@#@&,PP~~,P~dMdc:G7+	+6D@#@&7d,P~P9W~A4kV~xKYPMd +K0@#@&7d7lxwAAA==^#~@%>
                <option value="<%=#@~^GAAAAA==OMkhvDk`J~kT/Vm/d1m:nE*#EAgAAA==^#~@%>"><%=#@~^GAAAAA==OMkhvDk`J~kT/Vm/d1m:nE*#EAgAAA==^#~@%></option>
                <%#@~^UQAAAA==@#@&d7,P,PP,P,./c:G\xnaD@#@&,~P,dP,~~VKWa@#@&d7n	N~k6@#@&,P~~,PP~.kR^VKd@#@&idiTQ8AAA==^#~@%>
              </select> <select name="SmallClassName">
                <option value="" selected>不指定小类</option>
                <%#@~^lgAAAA==@#@&d7i/$V'r/s+1Y~e,0.GsP?sCV^ZVmdd{g+SPAtn.P$kT/Vm/dHm:+xvrP'Pkn^msm/kP[,JEE@#@&d7dM/ Ga+x,d;^~mKUU~8~8@#@&d77b0~xKO`M/ nK0PCU9P./c8K0b,Y4+x@#@&i7d2ykAAA==^#~@%>
                <option value="<%=#@~^FAAAAA==.k`EU:mVV;Vmd/glh+r#6gYAAA==^#~@%>"><%=#@~^FAAAAA==.k`EU:mVV;Vmd/glh+r#6gYAAA==^#~@%></option>
                <%#@~^JwAAAA==~M/ sW7+x6D@#@&id7d9W~A4kV~xKYPMd +K0zgsAAA==^#~@%>
                <option value="<%=#@~^FAAAAA==.k`EU:mVV;Vmd/glh+r#6gYAAA==^#~@%>"><%=#@~^FAAAAA==.k`EU:mVV;Vmd/glh+r#6gYAAA==^#~@%></option>
                <%#@~^TAAAAA==@#@&d7iP,PPiDk :K\nx6O@#@&ddi7VKWw@#@&7di+	N~kW@#@&d~P,~P,P~.kRmsGk+@#@&i7iDA4AAA==^#~@%>
                <%#@~^bAAAAA==@#@&d7iDmx1!:{rxD`1eMx[b3F!@#@&didk9[CYm'sWUY4c	WA#L[lH`UGS#[4G!DcxKA*[hbx!Y+vxKA#L/nmKx[c	Wh*'Dmx1!h@#@&idiTx8AAA==^#~@%>
              </select></td>
          </tr>
          <tr bgcolor="#ECF5FF"> 
            <td height="25" valign="top"><font color="#FF0000">*</font>新闻内容：</td>
            <td valign="top"> <textarea name="Content" style="display:none"></textarea> 
              <iframe ID="editor" src="../editor.asp" frameborder=1 scrolling=no width="620" height="405"></iframe></td>
          </tr>
          <tr bgcolor="#ECF5FF"> 
            <td height="25">首页图片： 
              <input name="IncludePic" type="hidden" id="IncludePic" value="yes"></td>
            <td><input name="DefaultPicUrl" type="text" id="DefaultPicUrl" size="40" maxlength="120"> 
              <br>
              首页的图片,直接从上传图片中选择： 
              <select name="DefaultPicList" id="select" onChange="DefaultPicUrl.value=this.value;">
                <option selected>不指定首页图片</option>
              </select> <input name="UploadFiles" type="hidden" id="UploadFiles"> 
            </td>
          </tr>
          <tr bgcolor="#ECF5FF"> 
            <td height="25"><font color="#FF0000">*</font>发布人：</td>
            <td> <input name="user" type="text" class="input" value="<%=#@~^FAAAAA==d/dbW	`JzNsrxglh+r#AwcAAA==^#~@%>" size="30"></td>
          </tr>
          <tr bgcolor="#ECF5FF"> 
            <td height="25">首页图片新闻：</td>
            <td> <input type="radio" name="ok" value="Yes">
              是 
              <input name="ok" type="radio" value="No" checked>
              否 　<font color="#FF0000">（设为首页图片新闻，选择此项时请注意文章中是否添加有图片！）</font></td>
          </tr>
          <tr> 
            <td height="30" align="center" bgcolor="#ECF5FF"><div align="left">录入时间：</div></td>
            <td height="30" align="center" bgcolor="#ECF5FF"><div align="left"> 
                <input name="AddDate" type="text" id="AddDate" value="<%=#@~^BQAAAA==UKhc*pQEAAA==^#~@%>" maxlength="50">
              </div></td>
          </tr>
          <tr> 
            <td height="30" colspan="2" align="center" bgcolor="#ECF5FF"> <input type="submit" name="Submit" value="提交" class="input">
              　 
              <input type="reset" name="Submit" value="重置" class="input"> </td>
          </tr>
        </form>
      </table></td>
  </tr>
</table>
<!-- #include file="Inc/Foot.asp" -->