{if $full_page}

{include file="page_header.htm"}
<style>
{literal}


.center {
  position: relative;
  margin: 0 auto;
  padding-left: 30px;
  padding-right: 20px;
}

.nowrap {
  white-space: nowrap;
}

.preview {
  position: relative;
  color: #fff; padding-bottom:50px;
}

.preview .phone {
  position: absolute;
  width: 300px;
  height: 530px;
}

.template_status{
	text-align:center;width:360px;padding-bottom:10px;font-size:14px;color:#ff0000;font-weight:bold;
}

.template_status a{
	text-decoration:none;font-size:14px;color:#009900;font-weight:bold;border:1px solid;padding:2px;
}
{/literal}
</style>

<div style="margin-bottom:20px;">
{/if}
{foreach from=$dir_list item=list name=foo}

<div style="float:left;
{if $smarty.foreach.foo.index == 2 || $smarty.foreach.foo.index == 3}margin-top:520px;{/if}
{if $smarty.foreach.foo.index == 4 || $smarty.foreach.foo.index == 5}margin-top:1040px;{/if}
{if $smarty.foreach.foo.index == 6 || $smarty.foreach.foo.index == 7}margin-top:1560px;{/if}
">
	<div class="template_status">
	{if $list.dir_name == $conf.template}
		已启用
	{else}
	<a href="template.php?act=active&name={$list.dir_name}">点击启用</a>
	{/if}
	<div style="margin-top:5px;">
	模板路径：/themes/{$list.dir_name}
	</div>
	</div>
	<div class="preview">
		<div class="center">
			<div class="phone">
				<img src="{$list.image_url}" width="300" />
			</div>
		</div>
	</div>
</div>
{if ($smarty.foreach.foo.index+1) % 2 == 0}<div style="clear:both;"></div>{/if}
{/foreach}



{if $full_page}
</div>
<script src="../js/jquery.min.js"></script>

{include file="page_footer.htm"}
{/if}