<?php if (!defined('APP_PATH')) exit;?><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="http://127.0.0.5/Magic/Data/Public/css/style.css" rel="stylesheet" type="text/css" />
<script src="http://127.0.0.5/Data/Public/editor/kindeditor-min.js"></script>
<link href="http://127.0.0.5/Data/Public/editor/themes/default/default.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://127.0.0.5/Data/Public/editor/lang/zh_CN.js"></script>
<script type="text/javascript" src="http://127.0.0.5/Magic/Data/Public/js/jquery.js"></script>
<script src="http://127.0.0.5/Data/Public/validform/calendar.js"></script>
<script src="http://127.0.0.5/Data/Public/magic.js"></script>
<script src="http://127.0.0.5/Magic/Data/Public/js/main.js"></script>
</head>
<body  class="formbox">
<div class="container">
<iframe id="blank" name="blank"  style="display:none" ></iframe>
<form method="post" target="blank" action="?r=archives-index-save">
<input type="hidden" name="id" value="<?php echo $data['id'];?>">
<input type="hidden" name="param" value="<?php echo Q('get.param');?>">
<input type="hidden" name="opid" value="<?php echo $data['catid'];?>">
<input type="hidden" name="reurl" value="?r=archives-index-index&param=<?php echo Q('get.param');?>&page=<?php echo Q('get.page');?>">
<table border="0" cellspacing="0" cellpadding="0" class="forminfo formtable">
	<tr><td colspan="2" >
	<?php foreach ($forminfos as $formkey=>$formval){?>
	<?php if($formval['field']=='title' || $formval['field']=='catid'|| $formval['field']=='subhead' || $formval['field']=='flag'  || $formval['field']=='image' || $formval['field']=='pubtime'){ ?>
	<table border="0" cellspacing="0" cellpadding="0" <?php if($formval['layout']==1){ ?>style="float:left;"<?php }else{ ?>style="width:100%"<?php }?>>
	<tr><td width="120" align="right"><?php echo $formval['name'];?><?php if (!empty($formval['name'])){ ?>：<?php }?></td><td><?php echo $formval['formhtml'];?></td></tr>	
	</table>
	<?php }?>
	<?php }?>
	</td>
	</tr>
</table>
<table style="margin:5px auto">
	<tr>
		<td align="center" height="40" colspan="10"><input type="submit" class="scbtn7" value="保存">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" value="重置" class="scbtn8"></td>
	</tr>
</table>
</form>	
</div>
</body>
</html>