<!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>
<meta http-equiv="Content-Type" content="text/html;charset=gbk"/>
<title>管理中心 - Powered By phpleft.com</title>
<link href="css/main.css" type="text/css" rel="stylesheet">
</head>
<body bottommargin="0" leftmargin="0" topmargin="0" rightmargin="0">
<style>
body {line-height:22px;}
.dlist {text-align:left; padding-left:10px; padding-bottom:20px; margin-bottom:10px;}
.img a{ width:180px; text-decoration:none; height:130px; overflow:hidden; float:left; margin:4px; border:#CCC 1px solid; background-color:#FFF; padding:4px;}
.img a:hover{ text-decoration:none;}
.ddlist{ width:208px; height:162px; float:left; overflow:hidden; margin:4px; border:#CCC 1px solid; background-color:#FFF; text-align:center}
.ddlists {float:left; margin-left:10px;}
.imgs a{ width:180px; text-decoration:none; height:130px; overflow:hidden; float:left; margin:4px; border:#F90 1px solid; background-color:#FFFDD2; padding:4px; color:#F00}
.imgs a:hover{ text-decoration:none;} 
.clr {clear:both;}
</style>
<div class="tpis"><img src="images/icos.gif" align="absmiddle"/>当前位置：基础设置 > 模板管理</div>
<table class="usertableborder input" cellspacing="1" cellpadding="3" width="100%" align="center"
        border="0">
        <tr>
            <th colspan="7">提示信息</th>
        </tr>
    
</table>
    <div class="tsc">
1. 模版文件在template，如果需要更改模版到此文件。 <br>
2. 风格文件在skin，如果需要更改css到此文件。</div>
<? include inTemplate(menu);?>
<? if($show==''){?>
    <table class="usertableborder input" cellspacing="1" cellpadding="3" width="100%" align="center"
        border="0">
        <tr>
            <th colspan="7">模板管理</th>
        </tr>
    
    </table>
    <div  class="usertableborder" style="margin:0 auto;" align="center">
    
    <div class="dlist">
    <div class="ddlist">
    <div style="float:left; padding-left:4px;">
    <b style="font-size:14px; ">当前风格：</b> <?=$PL_CFG['skin']?>  
      <a href="#" style="color:#F60" onClick="alert('下个版本将实现在线编辑');">编辑风格</a></div><br>
    <img src="<?=PL_SKIN.'/thumb.gif'?>">
    </div>
    <div class="ddlists">
    <b style="font-size:14px; ">当前模板：</b><br>
    <form action="?file=post_center&post=template" method="post" style="margin:0px; padding:0px;">
    <input name="skin" type="hidden" value="<?=$PL_CFG['skin']?>">
      <?=select($templatelist,$PL_CFG['template'],'请选择','template');?>
      <input type="submit" name="button" id="button" value=" 更改 " class="ok"/>
    </form>
      <hr size="1">
     模板名称：<?=$skin[$PL_CFG['skin']]['skinname']?><br>
      模板作者：
      <a href="<?=$skin[$PL_CFG['skin']]['skinurl']?>"><?=$skin[$PL_CFG['skin']]['skinuser']?>
      </a><br>
      模板创作日期：<?=$skin[$PL_CFG['skin']]['skindate']?><br>
      模板介绍：<?=$skin[$PL_CFG['skin']]['skinabout']?><br>
      
    </div>
   
    <div class="clr"></div>
    </div>
        <table class="usertableborder input" cellspacing="1" cellpadding="3" width="100%" align="center"
        border="0">
        <tr>
            <th colspan="7">模板列表</th>
        </tr>
    
    </table>
    <div class="list">
 <?php foreach($filelist as $id=>$m) { ?>
 <div <? if ($m==$PL_CFG['skin']) {?>class="imgs"<? }else{?>class="img"<? }?>>
 <a href="?file=post_center&post=template&skin=<?=$m?>&template=<?=$skin[$m]['skintemplate']?>">
 <img src="<?=PL_URL.'skin/'.$m.'/thumb.gif'?>" width="150" border="0"><br>
<? if ($skin[$m]['skinname']){?><?=$skin[$m]['skinname']?><? }else{?><?=$m?><? }?>
</a>
 </div>
<? }?>
 </div>
 </div>
 <? }else{?>
 
     <table class="usertableborder input" cellspacing="1" cellpadding="3" width="100%" align="center"
        border="0">
        <tr>
            <th colspan="7">模板设置</th>
        </tr>
    
    </table>
        <form action="?file=post_center&post=templateset" method="post" style="margin:0px; padding:0px;">
    <table class="usertableborder bb" cellspacing="1" cellpadding="3" width="100%" align="center"
        border="0">
    <?php foreach($temp_tag as $i=>$t) {?>
        <tr>
            <td width="246" height="30" style="padding-right:10px; text-align:right"><strong>
            <input name="add[<?=$i?>][name]" type="text" value="<?=$t['name']?>" /></strong></td>
            <td>调用栏目</td>
            <td width="296" height="30"><?=add_select($values,$t['id'],'暂未设置','add['.$i.'][id]','','');?></td>
            <td width="452" height="30"></td>
        </tr>
    <? }?>
     <tr>
         
            <td height="30"  style="padding-right:10px; text-align:right"><input type="submit" name="button" id="button" value=" 确 认 "></td>
             <td height="30"></td>
             <td height="30"></td>
            <td></td> </tr>
    </table>
   </form>
 <? }?>
 
    </body>
</html>
