
<!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=utf-8" />
<title>[.$ourphp_adminfont.admintitle.]</title>
<link href="templates/images/ourphp_login.css" rel="stylesheet" type="text/css"> 
<script type="text/javascript" src="../../function/plugs/jquery/1.7.2/jquery-1.7.2.min.js"></script>
<script>
<!--
/*第一种形式 第二种形式 更换显示样式*/
function setTab(m,n){
 var tli=document.getElementById("menu"+m).getElementsByTagName("li");
 var mli=document.getElementById("main"+m).getElementsByTagName("ul");
 for(i=0;i<tli.length;i++){
  tli[i].className=i==n?"hover":"";
  mli[i].style.display=i==n?"block":"none";
 }
}
//-->
</script>
</head>

<body>
<div style="height:50px;"></div>
<div style="clear:both"></div>
<div id="tabs0">
 <ul class="menu0" id="menu0">
  <li class="hover">模板管理使用</li>
 </ul>
 <div class="main" id="main0" style="border-top:2px #488fcd solid; clear:both;">
  <ul class="block">
	  <li>

		        <table width="100%" border="0" cellpadding="10" class="ourphp_newslist">
                  <tr>
				  	<td width="20%" bgcolor="#EBEBEB"><div align="center">缩略图</div></td>
					<td width="40%" bgcolor="#EBEBEB">模板说明</td>
                    <td width="20%" bgcolor="#EBEBEB">模板路径</td>
                    <td width="20%" bgcolor="#EBEBEB">操作</td>
                  </tr>
				  [.section loop=$myscandir name=op.]
				  [.if $myscandir[op].url|replace:'../../templates/':'' != '404.html' && $myscandir[op].url|replace:'../../templates/':'' != 'index.htm'.]
                  <tr>
				  	<td><div align="center"><img src="[.if file_exists($myscandir[op].img).][.$myscandir[op].url.]/index.jpg[.else.]../../skin/noimage.png[./if.]" style="width:175px; height:195px; border:0px;" /></div></td>
					<td valign="top" style="font-size:14px;">
						[.include file="../[.$myscandir[op].author.]".]
						[.*没搞明白,这里为什么还要返回一层 ../*.]
					</td>
					<td style="font-size:14px;">[.$myscandir[op].url.]/&nbsp;&nbsp;<a href="ourphp_filebox.php?path=[.$myscandir[op].url|replace:'../../templates/':''.]&dir">编辑</a></td>
					[.if $myscandir[op].url|replace:'../../templates/':'' == $ourphp_temp.OP_Temppath.]
					<td><font color="#009900">正在使用此模板 <=</font></td>
					[.else.]

						[.if $myscandir[op].url|replace:'../../templates/':'' == 'user'.]
						<td>[会员中心模板]</td>
						[.elseif $myscandir[op].url|replace:'../../templates/':'' == 'wap'.]
						<td>[手机网站模板]</td>
						[.elseif $myscandir[op].url|replace:'../../templates/':'' == '404.html'.]
						<td>[404模板]</td>
						[.elseif $myscandir[op].url|replace:'../../templates/':'' == 'index.htm'.]
						<td>[默认作者信息模板]</td>
						[.else.]
						<td><a href="?ourphp_cms=edit&temp=[.$myscandir[op].url|replace:'../../templates/':''.]" style="color:red">=> 使用此模板</a></td>
						[./if.]


					[./if.]
                  </tr>
				  [./if.]
				  [.sectionelse.]
				  <tr>
                    <td colspan="4">[.$ourphp_access.]</td>
                  </tr>
				  [./section.]
                </table>
				
	  </li>
  </ul>

 </div>
</div>
[.include file="ourphp_foot.html".]
</body>
</html>