<?php include mayi_tpl('inc_header');?><link rel="Stylesheet" type="text/css" href="template/css/new.dialog.css" /><link rel="stylesheet" type="text/css" href="template/css/new.my.css" /><link href='../template/global/magic-check.css' rel='stylesheet' type='text/css'><script language="javascript" src="template/jquery.172.min.js"></script><script language="javascript" src="template/javascript.js"></script></head><body class="blue"><div class="container"><div id="main" class="main section-setting"><div class="clearfix main-inner"><div class="content"><div class="clearfix content-inner"><div class='location'><?=$location?></div><div class="content-main"><div class="content-main-inner"><div class="pwrap setting-userinfo"><div class="pbody">
<div class="cleafix pagetab-wrap">
<ul class="pagetab">
<li><a href="javascript:;" onClick="window.location.href='?m=document'"<?php if($m == 'document'){?>class="current"<?php }?>><span>店铺新闻</span></a></li>
</ul>
</div>
<div class="cleafix pagetab-wrap smallnav"><ul class="pagetab"><?php foreach($documenttype as $key => $val){?><li><a href="?m=document&tid=<?=$val['typeid']?>"><span><?=$val['typename']?></span></a></li><?php }?><li><a class="current addnew" href="?m=document&tid=<?=$val['typeid']?>&ac=new"><span>发布<?=$documenttype[$tid]['typename']?></span></a></li></ul></div><div id="msg_success"></div><div id="msg_error"></div><div id="msg_alert"></div><form action="?m=document&ac=<?=$ac?>" enctype="multipart/form-data" method="post" name="form1"><?php if($ac == 'edit'){?><input name="id" value="<?=$id?>" type="hidden"><?php }?><input name="tid" value="<?=$tid?>" type="hidden"><div class="formgroup cleafix">
<div class="formrow"><h3 class="label"><label>标题</label></h3><div class="form-enter"><input name="title" type="text" class="text" value="<?=$edit['title']?>" style="width:300px"></div></div>
<div class="formrow"><h3 class="label"><label>关键词</label></h3><div class="form-enter"><input name="keywords" type="text" class="text" value="<?=$edit['keywords']?>" style="width:300px"></div></div>
<div class="formrow"><h3 class="label">作者</h3><div class="form-enter"><input name="author" type="text" class="text" value="<?=$edit['author']?$edit['author']:$row[tname]?>" style="width:300px"></div></div><div class="formrow"><h3 class="label">来源</h3><div class="form-enter"><input name="source" type="text" class="text" value="<?=$edit['source']?$edit['source']:$row[tname]?>" style="width:300px"></div></div><?php if($documenttype[$tid]['arrid'] == '2'){?><div class="formrow"><h3 class="label">&nbsp;</h3><div class="form-enter"><script type="text/javascript">var MagicUploadName = 'docu_image';</script><div id="ShowMagicUpload"></div><script type="text/javascript" src="../template/global/magic-upload.js"></script></div></div><?php if($edit[imgpath] != ""){?><div class="formrow"><h3 class="label">原来的图片</h3><div class="form-enter"><?php
                                                echo "<img src=".$mymps_global[SiteUrl]."".$edit[pre_imgpath]." style='_margin-top:expression(( 180 - this.height ) / 2);' />\r\n";
                                                ?></div></div><?php }
                                        }
                                        ?><div class="formrow"><h3 class="label">详细内容</h3><?php echo $acontent?></div><div class="formrow formrow-action"><h3 class="label">&nbsp;</h3><span class="minbtn-wrap"><span class="btn"><input type="submit" value="提交保存" class="button" name="document_submit" /></span></span></div></div></form></div><div class="pfoot"><p><b>-</b></p></div></div></div></div></div></div></div></div><?php include mayi_tpl('inc_foot');?></div></body></html>