{include file="$template_path/html/header.html"}
{include file="$template_path/js/arc.html"}
{include file="$template_path/html/jstemplate.html"}
{if check_login_bool() && $smarty.session.user.user_id == $item.user_id || $smarty.session.user.access || isset($item.is_buyed)}
<link href="/mbthemes/scripts/libs/jquery/mobanboxeditor/mb/css/mobanboxEditor.css" rel="stylesheet"/>
<script type="text/javascript">
    {literal}
    seajs.use("/mbthemes/scripts/libs/jquery/mobanboxeditor/mb/js/main");
    {/literal}
</script>
{else}
<link href="/mbthemes/scripts/libs/jquery/mobanboxeditor/mb/css/mobanboxEditor.css" rel="stylesheet"/>
<script type="text/javascript">
    {literal}
    seajs.use("/mbthemes/scripts/libs/jquery/mobanboxeditor/mb/js/main_no");
    {/literal}
</script>
{/if}
</head>
<body>
<div class="grey-900 h-v row-col">
    <div class="row-cell v-m text-center animated fadeIn">
        <button type="button" class="closes text-2x" data-dismiss="modal" aria-label="Close"><span aria-hidden="true"><i class="icon-cross2"></i> </span></button>
        <div class="m-b">
            {foreach from=$previewFiles item=file name=foo}
            <img src="{$file}">
            {$item.name|escape}
            {/foreach}
        </div>
    </div>
</div>
{literal}
<style>
    button.closes {
        position: absolute;
        top: 0;
        right: 20px;
        border:0;
        background-color: transparent;
        opacity: .8;
        color: #fff;
        text-shadow: none;
    }
    button.closes:hover {
        opacity: 1;
    }
</style>
{/literal}
</body>