<table onMouseOver="bgcc(event,'TR');">
<%
AllowTypes="JPG,JPEG,GIF,BMP,PNG"
AllowSize=3000
newsclassnum=conn.execute("select count(classid) from "&db_&"class where typeid="&new_type&"")(0)
if newsclassnum=1 then
	classid=conn.execute("select classid from "&db_&"class where typeid="&new_type&"")(0)
else
	classid=0
end if
if newsclassnum>1 and new_edit_type then%> 
    <TR> 
      <TD align="right"><%=lang("class_title")%>：</TD>
      <TD>
      <%
	  classidOn=theclassid
	  response.Cookies(co_&"classidOn2")=""
	  %>
      <select name="classid"><%call classOption(0,"",new_type)%></select>
 	</TD>
  </TR>
<%else%>
	<input type="hidden" name="classid" value="<%=classid%>" /> 
<%end if%>
    <TR> 
      <TD width="95" align="right"><%=lang("lan_title")%>：</TD>
      <TD> 
        <input type="text" name="title" size="52" maxlength="200" value="<%=thetitle%>" /> <font color=#ff6600>*</font>	
<%if newsintop then%><input name="intop" type="checkbox" value="1" <%if theintop<>0 then%>checked="checked"<%end if%> /><%=lang("news_intop")%>&nbsp;<%end if%>
<%if newscommend then%><input name="commend" type="checkbox" value="true" <%if thecommend then%>checked="checked"<%end if%> /><%=lang("news_good")%>&nbsp;<%end if%>
<input name="titlestyle" type="checkbox" value="font-weight:bold;" <%if titlestyleck(thetitlestyle,"font-weight:bold;") then%>checked="checked"<%end if%> /><%=lang("news_bold?加粗")%>&nbsp;
<select name="titlestyle">
	<option value=""><%=lang("lan_default")%>&nbsp;<%=lang("lan_color")%></option>
	<option value="color:red;" style="background:red; color:#ffffff;" <%if titlestyleck(thetitlestyle,"color:red;") then%>selected<%end if%> ><%=lang("lan_red")%></option>
	<option value="color:blue;" style="background:blue; color:#ffffff;" <%if titlestyleck(thetitlestyle,"color:blue;") then%>selected<%end if%> ><%=lang("lan_blue")%></option>
	<option value="color:green;" style="background:green; color:#ffffff;" <%if titlestyleck(thetitlestyle,"color:green;") then%>selected<%end if%> ><%=lang("lan_green")%></option>
	<option value="color:#cc0000;" style="background:#cc0000; color:#ffffff;" <%if titlestyleck(thetitlestyle,"color:#cc0000;") then%>selected<%end if%> ><%=lang("lan_brown?棕色")%></option>
	<option value="color:yellow;" style="background:yellow; color:#000000;" <%if titlestyleck(thetitlestyle,"color:yellow;") then%>selected<%end if%> ><%=lang("lan_yellow")%></option>
</select>
<%
function titlestyleck(byval strs,byval str)
if strs<>""  then
	if instr(strs,str)>0 then
		titlestyleck=true
	else
		titlestyleck=false
	end if
else
	titlestyleck=false
end if
end function
%>
		</TD>
  </TR> 
<%if new_urlgoto then%>
  <tr height="28">
	<td align="right">跳转：</td>
	<td>
	<input name="urlgoto" type="text" size="52" maxlength="100" value="<%=theurlgoto%>" />
	</td>
</tr>
<%end if%> 
  <TR> 
      <TD align="right"><%=lang("news_n11?作者")%>：</TD>
      <TD><input type="text" name="autor" size="52" maxlength="50" value="<%=theautor%>" /><%call get_autor("autor",3)%></TD>
  </TR>
  <TR> 
      <TD align="right"><%=lang("news_source")%>：</TD>
      <TD><input type="text" name="source" size="52" maxlength="100" value="<%=thesource%>" /><%call get_source("source",3)%>
	  <%call help(45,600,30,200,1)%></TD>
  </TR>
<%if fullnews then%>
  <tr>
	<td align="right"><%=lang("lan_pic")%>：</td>
	<td><input class="fileckbg" <%if thepicurl<>"" then%>onMouseOver="picview(this,'../../images/newspic/<%=thepicurl%>','../')"<%end if%> name="picurl" id="picurl" type="text" size="52" maxlength="150" value="<%=thepicurl%>" />
    <input type="button" onClick="setfile('<%=lang("lan_fileadmin?文件管理")%>','/images/newspic/','picurl','|types=<%=AllowTypes%>|size=<%=AllowSize%>|')" value="<%=lang("lan_selectpic?选择图片")%>" />
	<!--<input type="checkbox" value="1" name="zt" /> 直接抓取内容图片-->
    <%if thepicurl<>"" then%><span onMouseOver="picview(this,'../../images/newspic/<%=thepicurl%>','../');" onClick="window.open('../../images/newspic/<%=thepicurl%>')" style="cursor:pointer"><%=lang("lan_view")%></span><%end if%></td>
</tr>
    <TR> 
      <TD align="right"><%=lang("lan_picname")%>：</TD>
      <TD> 
        <input type="text" name="picname" size="52" value="<%=thepicname%>" />
	</TD>
  </TR> 
<%end if%>  
  <TR> 
      <TD align="right"><%=lang("lan_content")%>：</TD>
      <TD><%call FCKedit("content",thecontent,"")%></TD>
</TR>
	<TR> 
		<TD align="right"><%=lang("lan_keyword")%>：</TD>
		<TD><input type="text" name="tag" size="52" maxlength="200" value="<%=thetag%>" />
		<%call get_tags(request.Cookies(co_&"tags"),"tag",5)%>		
		<%call help(19,600,200,150,1)%>
	</TD>
	</TR> 	
	<TR> 
		<TD align="right" width="95"><%call help(20,600,200,150,1)%><%=lang("lan_about")%>：</TD>
		<TD><textarea name="about" class="seo_about"><%=theabout%></textarea></TD>
	</TR>
	<TR> 
		<TD align="right"><%=lang("lan_time")%>：</TD>
		<TD>
		<input name="edittime" id="edittime" onclick="setdata(this,this,'yyyy-mm-dd','cn',1);" value="<%=theedittime%>" readonly class="setdate" />
		<%if thetitle<>"" then%>[<a href="javascript:setnow('edittime','<%=date()%>');"><%=lang("lan_now")%></a>]<%end if%>
		<%call help(39,600,100,150,1)%></TD>
	</TR> 
<%if twolang then%>
  <tr height="30">
	<td align="right"><%=lang("lan_language")%>：</td>
	<td><input name="lan" type="radio" value="1" <%if thelan=1 then%>checked<%end if%> /> <%=lang("lan_cn")%>    
		  &nbsp;&nbsp;&nbsp;  <input type="radio" name="lan" value="0" <%if thelan=0 then%>checked<%end if%> /> <%=lang("lan_en")%>
	</td>
  </tr>
<%else%>
	<input type="hidden" name="lan" value="1" />
<%end if%>
	<TR> 
      <td> </td>
	  <td style="padding:10px;">		
		<input type="submit" class="mybutton" onMouseOver="buttonbgcc(this)"  value=" <%=lang("lan_submit")%>  " id="submit1" onClick="return checksave()"><span id="loading"></span>
		<input type="button" class="mybutton" onMouseOver="buttonbgcc(this)"  value=" <%=lang("lan_cancel")%>  " id="submit2" onClick="javascript:history.go(-1);">
		</td>
	</TR>
</TABLE>