<?php
if(!defined('InEmpireCMS'))
{
	exit();
}
?>
<?php
$public_diyr['pagetitle']=$word;
$url="<a href='../../'>首頁</a>&nbsp;>&nbsp;<a href='../member/cp/'>會員中心</a>&nbsp;>&nbsp;<a href='ListInfo.php?mid=".$mid."'>管理信息</a>&nbsp;>&nbsp;".$word."&nbsp;(".$mr['qmname'].")";
include(ECMS_PATH.'e/template/incfile/header.php');
?>
<script type="text/javascript" src="../data/js/jstime/WdatePicker.js"></script>
<script type="text/javascript" src="../data/js/jscolor/jscolor.js"></script>
<script>
function bs(){
	var f=document.add
	if(f.title.value.length==0){alert("標題還沒寫");f.title.focus();return false;}
	if(f.classid.value==0){alert("請選擇欄目");f.classid.focus();return false;}
}
function foreColor(){
  if(!Error())	return;
  var arr = showModalDialog("../data/html/selcolor.html", "", "dialogWidth:296px; dialogHeight:280px; status:0");
  if (arr != null) document.add.titlecolor.value=arr;
  else document.add.titlecolor.focus();
}
function FieldChangeColor(obj){
  if(!Error())	return;
  var arr = showModalDialog("../data/html/selcolor.html", "", "dialogWidth:296px; dialogHeight:280px; status:0");
  if (arr != null) obj.value=arr;
  else obj.focus();
}
</script>
<script src="../../c/ecachemod/emodjs/qpostinfo.js"></script>
<?=$loadeditorjs?>
<form name="add" method="POST" enctype="multipart/form-data" action="ecms.php" onsubmit="return EmpireCMSQInfoPostFun(document.add,'<?=$mid?>');">
  <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
          <tr class="header"> 
            <td height="25" colspan="2"> 
              <?=$word?>
              <input type=hidden value="<?=$enews?>" name=enews> <input type=hidden value="<?=$classid?>" name=classid> 
              <input name=id type=hidden id="id" value="<?=$id?>"> <input type=hidden value="<?=$filepass?>" name=filepass> 
              <input name=mid type=hidden id="mid" value="<?=$mid?>">
			<?php
			if($fztid&&$fzid)
			{
			?>
              <input type="hidden" name="fztid" id="fztid" value="<?=$fztid?>">
              <input type="hidden" name="fzid" id="fzid" value="<?=$fzid?>">
              <input type="hidden" name="fzcid" id="fzcid" value="<?=$fzcid?>">
			<?php
			}
			?>
			  </td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td>提交者</td>
            <td><b>
              <?=$musername?>
              </b></td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td width="16%">欄目</td>
            <td>
              <?=$postclass?>            </td>
          </tr>
        </table>
  <?php
  @include($modfile);
  ?>
  <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
  	<?=$showkey?>
    <tr class="header"> 
      <td width="16%">&nbsp;</td>
      <td><input type="submit" name="addnews" value="提交"> <input type="reset" name="Submit2" value="重置"></td>
    </tr>
  </table>
</form>
<?php
include(ECMS_PATH.'e/template/incfile/footer.php');
?>