<?php if (!defined('APP_PATH')) exit;?><html>
<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/form/calendar.js"></script>
<script src="http://127.0.0.5/Magic/Data/Public/js/main.js"></script>
<script src="http://127.0.0.5/Magic/Data/Public/js/jquery.nicescroll.min.js"></script>
<style type="text/css">
	.forminfo table{margin:0;padding:0}
	.forminfo table td{border:none;height:0;}
</style>
</head>
<script>	
  $(document).ready(function() {    
	$("html").niceScroll();
  });
</script>
<body>
<div class="formbody">
	<div class="itab">
		<ul> 
			<li class="selected">通用信息</li>
			<?php foreach ($tabs as $key=>$tab){?>
			<li><?php echo $tab;?></li>
			<?php }?>
		</ul>
	</div>
	<iframe 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-arclist&&catid=<?php echo Q('get.catid');?>&param=<?php echo Q('get.param');?>&page=<?php echo Q('get.page');?>">	<table border="0" cellspacing="0" cellpadding="0" class="forminfo">
		<tr><td colspan="2">
		<div class="tabson" style="display:block">
			<?php foreach ($forminfos as $formkey=>$formval){?>
			<?php if($formval['tabs']=='-1'){ ?>
			<table border="0" cellspacing="0" cellpadding="0" <?php if($formval['layout']==0){ ?>style="width:100%"<?php }else if($formval['layout']==1){ ?>style="float:left;"<?php }?>>
			<tr><td width="100" align="right"><?php echo $formval['name'];?></td><td><?php echo $formval['formhtml'];?></td></tr>	
			</table>
			<?php if($formval['layout']==0 || $formval['layout']==2){ ?><div class="line"></div><?php }?>
			<?php }?>
			<?php }?>
		</div>
		<?php foreach ($tabs as $key=>$tab){?>
	
		<div class="tabson">
			<?php foreach ($forminfos as $formkey=>$formval){?>
			
			<?php if($formval['tabs']==$key){ ?>
			<table border="0" cellspacing="0" cellpadding="0" <?php if($formval['layout']==0){ ?>style="width:100%"<?php }else if($formval['layout']==1){ ?>style="float:left;"<?php }else if($formval['layout']==2){ ?>style="float:left;"<?php }?>>
			<tr><td width="100" align="right"><?php echo $formval['name'];?></td><td><?php echo $formval['formhtml'];?></td></tr>	
			</table>
			<?php if($formval['layout']==0 || $formval['layout']==2){ ?><div class="line"></div><?php }?>
			<?php }?>
			<?php }?>
		</div>
		<?php }?>
		</td>
		</tr>
	<tr>
		<td colspan="10" align="center"><input type="submit" class="scbtn1" value="保存">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" value="重置" class="scbtn4"></td>
	</tr>
	</table>
	</form>	
</div>
</body>
</html>
