<!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>
<!--<?php
print <<<EOT
-->
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>后台管理</title>
<link href="css.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
a:link {
	text-decoration: none;
	color: #000000;
}
a:visited {
	text-decoration: none;
	color: #000000;
}
a:hover {
	text-decoration: underline;
	color: #FF0000;
}
a:active {
	text-decoration: none;
	color: #000000;
}
-->
</style>
<SCRIPT LANGUAGE="JavaScript">
<!--
function get_obj(obj){
   return document.getElementById(obj);
}
//-->
</SCRIPT>
<script language="Javascript1.2">
<!-- // load htmlarea
_editor_url = "../../htmlarea/";                     // URL to htmlarea files
var win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]);
if (navigator.userAgent.indexOf('Mac')        >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Opera')      >= 0) { win_ie_ver = 0; }
if (win_ie_ver >= 5.5) {
  document.write('<scr' + 'ipt src="' +_editor_url+ 'editor.js"');
  document.write(' language="Javascript1.2"></scr' + 'ipt>');  
} else { document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>'); }


//**********************************************************************
// 判断输入是否合法的javascript小程序
//**********************************************************************
 function check()
 {
    
	if(window.document.rgfrm.parentId.value=="")
    {
	   alert("请选择文章栏目!");
	   document.rgfrm.parentId.focus();
	   return false;
	}
	
	if(window.document.rgfrm.title.value=="")
    {
	   alert("请填写文章标题!");
	   document.rgfrm.title.focus();
	   return false;
	}
	
	if(window.document.rgfrm.content.value=="")
    {
	   alert("请填写文章内容!");
	   document.rgfrm.content.focus();
	   return false;
	}
	
 }
// -->
</script>

<!--
EOT;
if($webdb['bigFileSet'] == 1){
print <<<EOT
-->
<object id="uploadid" height="20" width="120"
 classid="clsid:18B9E4BF-F21F-46B9-AD50-5CA62145426A"
 codebase="../../XUploadFiles_php/xuploadfiles.cab">
  <param name="Action" value="xu_demo1.php">
</object>
<script language="javascript" src="xuploadfiles.js"></script>
<!--
EOT;
}print <<<EOT
-->

</head>

<body>
<div align="center" class="font12">
  <table width="100%"  border="0" cellpadding="3" cellspacing="1" bgcolor="#A4B6D7">
    <tr>
      <td width="100%" height="22" align="center" background="images/titlebg.jpg">&nbsp;</td>
    </tr>
  </table>
  <br />
  <table width="100%" height="25" border="0" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
    <tr>
      <td align="left" bgcolor="#FFFFFF">[<a 
      href="article_list.php?id=$fid?>&mid=$mid?>" class="a_bt">文章管理</a>] 
      [<a 
      href="post_info/post.php?id=$fid?>&mid=$mid?>" class="a_bt">发表文章</a>] </td>
    </tr>
  </table>
  <br />
  <br />
  <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table">
    <tr>
      <td height="22" align="left" class="head">发表文章</td>
    </tr>
    <tr>
      <td height="24" align="left">
	  <form id="rgfrm" name="rgfrm" method="post" action="article_modify/insert.php" onsubmit="return check()">
	  <table width="99%" border="0" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC" class="table2">
        <tr>
          <td width="16%" height="28" bgcolor="#FFFFFF">所属栏目：(<font color="#FF0000">*</font>) </td>
          <td width="84%" bgcolor="#FFFFFF"><select name="postdb[parentId]" id="postdb[parentId]">
              <option value="0">根分类</option>
<!--
EOT;
echo '-->';
formListSort("w6_sort",$fid ,1);
echo '<!--';
print <<<EOT
-->

          </select></td>
        </tr>
        <tr>
          <td height="28" bgcolor="#FFFFFF">$field_set[title_show_name]：(<font color="#FF0000">*</font>) </td>
          <td bgcolor="#FFFFFF">
            <input name="title" id="title" value="$show_db[title]" size="60" /> <a href="fy_title.php?title=$show_db[title]" target="_blank"><font color="#0000FF">翻译标题</font></a>          </td>
        </tr>

    <tr>
      <td align="left" bgcolor="#FFFFFF">来源：</td>
      <td align="left" bgcolor="#FFFFFF"><input name="postdb[news_from]" type="text" id="news_from" size="50" value="$show_db[news_from]" /></td>
    </tr>    <tr>
      <td align="left" bgcolor="#FFFFFF">标签：</td>
      <td align="left" bgcolor="#FFFFFF"><input name="postdb[news_lab]" type="text" id="news_lab" size="50" value="$show_db[news_lab]" /></td>
    </tr>    <tr>
      <td align="left" bgcolor="#FFFFFF">摘要：</td>
      <td align="left" bgcolor="#FFFFFF"><textarea name="postdb[news_zy]" cols="80" rows="4">$show_db[news_zy]</textarea></td>
    </tr>
<!--
EOT;
$show_db['news_content'] = str_replace('{=tpbdh_imgUrl=}',$tpbdh_imgUrl2,$show_db['news_content']);
$show_db['news_content'] = str_replace('{=web126_imgUrl=}',$webdb['www_url'],$show_db['news_content']);
print <<<EOT
-->
    <tr>
      <td align="left" bgcolor="#FFFFFF">新闻内容：</td>
      <td align="left" bgcolor="#FFFFFF"><textarea name="postdb[news_content]" cols="84" rows="16">$show_db[news_content]</textarea>
	  <script language="javascript">
		  editor_generate('postdb[news_content]');
		</script>
	  </td>
    </tr>

        <tr>
      <td align="left" bgcolor="#FFFFFF">操作：</td>
      <td align="left" bgcolor="#FFFFFF">
<!--
EOT;
if($show_db['top']==1) { $str_zd = '<input name="top" type="checkbox" id="top" value="1" checked="checked" > 置顶'; } else { $str_zd = '<input name="top" type="checkbox" id="top" value="1" > 置顶'; }
print <<<EOT
-->
      $str_zd
      
<!--
EOT;
if($show_db['levels']==1) { $str_tj = '<input name="levels" type="checkbox" id="levels" value="1" checked="checked" > 推荐'; } else { $str_tj = '<input name="levels" type="checkbox" id="levels" value="1" > 推荐'; }
print <<<EOT
-->
      $str_tj
      
<!--
EOT;
if($show_db['yz']==1) { $str_sh = '<input name="yz" type="checkbox" id="yz" value="1" checked="checked" > 审核'; } else { $str_sh = '<input name="yz" type="checkbox" id="yz" value="1" > 审核'; }
print <<<EOT
-->
      $str_sh

<!--
EOT;
if($show_db['shows']==1) { $str_xs = '<input name="shows" type="checkbox" id="shows" value="1" checked="checked" > 显示（显示必须选中，内容才会在前台显示）'; } else { $str_xs = '<input name="shows" type="checkbox" id="shows" value="1" > 显示（显示必须选中，内容才会在前台显示）'; }
print <<<EOT
-->
      $str_xs

      </td>
    </tr> 
        
        <tr>
          <td height="28" bgcolor="#FFFFFF">&nbsp;</td>
          <td bgcolor="#FFFFFF"><input type="submit" value="提交" name="Submit" />
            <input name="aid" type="hidden" id="aid" value="$aid" /> <input name="fid" type="hidden" id="fid" value="$fid" />  <input name="mid" type="hidden" id="mid" value="$mid" />            </td>
        </tr>
      </table>
        </form>
      </td>
    </tr>
  </table>
  </div>
</body>
</html>
<!--
EOT;
?>
-->