<?php /* Smarty version 2.6.22, created on 2016-01-10 01:04:54
         compiled from E:/xampp/htdocs/templates/home/default%5Cusers%5Cdownloads.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'E:/xampp/htdocs/templates/home/default\\users\\downloads.html', 49, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['template_path'])."/html/header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['template_path'])."/js/space.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['template_path'])."/html/jstemplate.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<script src="/mbthemes/scripts/canvas/animation.js"></script>
</head>
<body>
<div class="app" id="app">
  <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['template_path'])."/html/mobile-nav.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
  <!-- content -->
  <div id="content" class="app-content box-shadow-z4" role="main">
    <div ui-view class="app-body" id="view">
      <!-- ############ PAGE START-->
      <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['template_path'])."/html/user-top.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
      <div class="clearfix white p-t-md">
        <div class="container">
          <?php echo $this->_tpl_vars['errorMessage']; ?>

          <h3 class="m-t-none m-b-none phone-h2 m-t-xs">
            <i class="icon-daimaj text-skin"></i> 我已购买的作品
            <b class="label text-sm rounded danger up"><?php echo $_SESSION['user']['buy']; ?>
</b>
          </h3>
        </div>
      </div>


      <div class="clearfix p-t white">
        <div class="container">
          <?php if ($this->_tpl_vars['items']): ?>
          <div class="row">
            <?php $_from = $this->_tpl_vars['items']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['foo'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['foo']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['i']):
        $this->_foreach['foo']['iteration']++;
?>

            <div class="col-xs-6 col-sm-6 col-md-4">
              <section class="box mb-col b-a pos-rlt image">
                <div class="browser clearfix">
                  <span class="col-xs-3 col-sm-3">
                    <i class="yuan"></i>
                  </span>
                  <span class="col-xs-6 col-sm-6">
                    <em>
                    </em>
                  </span>
                  <span class="col-xs-3 col-sm-3 three">
                    <i class="icon-cross2"></i>
                    <i class="icon-check_box_outline_blank"></i>
                    <i class="icon-minus3"></i>
                  </span>
                </div>
                <div class="box-body pic">
                  <div class="img-container fx-img-rotate-l fx-opt-zoom-out">
                    <img src="<?php echo $this->_tpl_vars['data_server']; ?>
uploads/items/<?php echo $this->_tpl_vars['i']['id']; ?>
/<?php echo $this->_tpl_vars['i']['thumbnail']; ?>
" alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['i']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" class="img-responsive">
                    <div class="img-options">
                      <div class="img-options-content text-lg">
                        <?php if (isset ( $this->_tpl_vars['ratedItems'][$this->_tpl_vars['i']['id']] )): ?>
                        <?php unset($this->_sections['foo']);
$this->_sections['foo']['name'] = 'foo';
$this->_sections['foo']['start'] = (int)1;
$this->_sections['foo']['loop'] = is_array($_loop=6) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['foo']['step'] = ((int)1) == 0 ? 1 : (int)1;
$this->_sections['foo']['show'] = true;
$this->_sections['foo']['max'] = $this->_sections['foo']['loop'];
if ($this->_sections['foo']['start'] < 0)
    $this->_sections['foo']['start'] = max($this->_sections['foo']['step'] > 0 ? 0 : -1, $this->_sections['foo']['loop'] + $this->_sections['foo']['start']);
else
    $this->_sections['foo']['start'] = min($this->_sections['foo']['start'], $this->_sections['foo']['step'] > 0 ? $this->_sections['foo']['loop'] : $this->_sections['foo']['loop']-1);
if ($this->_sections['foo']['show']) {
    $this->_sections['foo']['total'] = min(ceil(($this->_sections['foo']['step'] > 0 ? $this->_sections['foo']['loop'] - $this->_sections['foo']['start'] : $this->_sections['foo']['start']+1)/abs($this->_sections['foo']['step'])), $this->_sections['foo']['max']);
    if ($this->_sections['foo']['total'] == 0)
        $this->_sections['foo']['show'] = false;
} else
    $this->_sections['foo']['total'] = 0;
if ($this->_sections['foo']['show']):

            for ($this->_sections['foo']['index'] = $this->_sections['foo']['start'], $this->_sections['foo']['iteration'] = 1;
                 $this->_sections['foo']['iteration'] <= $this->_sections['foo']['total'];
                 $this->_sections['foo']['index'] += $this->_sections['foo']['step'], $this->_sections['foo']['iteration']++):
$this->_sections['foo']['rownum'] = $this->_sections['foo']['iteration'];
$this->_sections['foo']['index_prev'] = $this->_sections['foo']['index'] - $this->_sections['foo']['step'];
$this->_sections['foo']['index_next'] = $this->_sections['foo']['index'] + $this->_sections['foo']['step'];
$this->_sections['foo']['first']      = ($this->_sections['foo']['iteration'] == 1);
$this->_sections['foo']['last']       = ($this->_sections['foo']['iteration'] == $this->_sections['foo']['total']);
?>
                        <?php if ($this->_tpl_vars['ratedItems'][$this->_tpl_vars['i']['id']]['rate'] >= $this->_sections['foo']['index']): ?>
                        <i class="icon-star-full text-warn"></i>
                        <?php else: ?>
                        <i class="icon-star-empty text-white"></i>
                        <?php endif; ?>
                        <?php endfor; endif; ?>
                        <?php else: ?>
                        <div id="stars_div_<?php echo $this->_tpl_vars['i']['id']; ?>
" class="stars" data-star-set-id="<?php echo $this->_tpl_vars['i']['id']; ?>
_star" data-rating="0">
                          <?php unset($this->_sections['foo']);
$this->_sections['foo']['name'] = 'foo';
$this->_sections['foo']['start'] = (int)1;
$this->_sections['foo']['loop'] = is_array($_loop=6) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['foo']['step'] = ((int)1) == 0 ? 1 : (int)1;
$this->_sections['foo']['show'] = true;
$this->_sections['foo']['max'] = $this->_sections['foo']['loop'];
if ($this->_sections['foo']['start'] < 0)
    $this->_sections['foo']['start'] = max($this->_sections['foo']['step'] > 0 ? 0 : -1, $this->_sections['foo']['loop'] + $this->_sections['foo']['start']);
else
    $this->_sections['foo']['start'] = min($this->_sections['foo']['start'], $this->_sections['foo']['step'] > 0 ? $this->_sections['foo']['loop'] : $this->_sections['foo']['loop']-1);
if ($this->_sections['foo']['show']) {
    $this->_sections['foo']['total'] = min(ceil(($this->_sections['foo']['step'] > 0 ? $this->_sections['foo']['loop'] - $this->_sections['foo']['start'] : $this->_sections['foo']['start']+1)/abs($this->_sections['foo']['step'])), $this->_sections['foo']['max']);
    if ($this->_sections['foo']['total'] == 0)
        $this->_sections['foo']['show'] = false;
} else
    $this->_sections['foo']['total'] = 0;
if ($this->_sections['foo']['show']):

            for ($this->_sections['foo']['index'] = $this->_sections['foo']['start'], $this->_sections['foo']['iteration'] = 1;
                 $this->_sections['foo']['iteration'] <= $this->_sections['foo']['total'];
                 $this->_sections['foo']['index'] += $this->_sections['foo']['step'], $this->_sections['foo']['iteration']++):
$this->_sections['foo']['rownum'] = $this->_sections['foo']['iteration'];
$this->_sections['foo']['index_prev'] = $this->_sections['foo']['index'] - $this->_sections['foo']['step'];
$this->_sections['foo']['index_next'] = $this->_sections['foo']['index'] + $this->_sections['foo']['step'];
$this->_sections['foo']['first']      = ($this->_sections['foo']['iteration'] == 1);
$this->_sections['foo']['last']       = ($this->_sections['foo']['iteration'] == $this->_sections['foo']['total']);
?>
                          <a data-toggle="ajaxStar" href="/<?php echo $this->_tpl_vars['languageURL']; ?>
users/downloads/<?php echo $this->_tpl_vars['i']['id']; ?>
?rating=<?php echo $this->_sections['foo']['index']; ?>
">
                            <i class="icon-star-empty text-white" alt="<?php echo $this->_sections['foo']['index']; ?>
" id="<?php echo $this->_tpl_vars['i']['id']; ?>
_star_<?php echo $this->_sections['foo']['index']; ?>
" ></i>
                          </a>
                          <?php endfor; endif; ?>
                        </div>
                        <?php endif; ?>
                      </div>
                      <?php echo '
                      <script>
                        seajs.use(["modules/rating"], function(rating){
                          rating.init("stars_div_'; ?>
<?php echo $this->_tpl_vars['i']['id']; ?>
<?php echo '");
                        });
                      </script>
                      '; ?>

                    </div>
                    <span class="sale">
                      <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
users/downloads/<?php echo $this->_tpl_vars['i']['id']; ?>
/?certificate">
                        许可文件下载
                      </a>
                    </span>
                  </div>
                </div>
                <form id="download<?php echo $this->_tpl_vars['i']['id']; ?>
" action="/<?php echo $this->_tpl_vars['languageURL']; ?>
download/<?php echo $this->_tpl_vars['i']['id']; ?>
" method="post">
                  <input type="hidden" name="download" id="download" value="regular" />
                  <a class="ribbon ribbon-skin" href="javascript:;" onclick="document.getElementById('download<?php echo $this->_tpl_vars['i']['id']; ?>
').submit();"><span class="cate-text">点我下载</span></a>
                </form>
                <div class="mb-footer">
                  <div class="text-muted m-b-xs">
                    <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['i']['id']; ?>
" target="_blank" class="m-r"><i class="icon-eye m-r-xs"></i> 481</a>
                    <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['i']['id']; ?>
" target="_blank"><i class="icon-handbag m-r-xs"></i> <?php echo ((is_array($_tmp=$this->_tpl_vars['i']['sales'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</a>
                  </div>
                  <div class="h-2xx"><a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['i']['id']; ?>
" target="_blank" class="h5"><?php echo ((is_array($_tmp=$this->_tpl_vars['i']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</a></div>
                  <div class="clearfix m-t-xs">
                    <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
user/<?php echo $this->_tpl_vars['userss'][$this->_tpl_vars['i']['user_id']]['username']; ?>
" target="_blank" title="<?php echo $this->_tpl_vars['users'][$this->_tpl_vars['i']['user_id']]['nickname']; ?>
" class="pull-left m-r-sm">
                      <span class="w-32 avatar">
                        <?php if ($this->_tpl_vars['userss'][$this->_tpl_vars['i']['user_id']]['avatar'] != ''): ?>
                        <img src="<?php echo $this->_tpl_vars['data_server']; ?>
uploads/users/<?php echo $this->_tpl_vars['i']['user_id']; ?>
/A_<?php echo $this->_tpl_vars['userss'][$this->_tpl_vars['i']['user_id']]['avatar']; ?>
" />
                        <?php else: ?>
                        <span class="w-32 circle skin fs-80 _100">
                          NP
                        </span>
                        <?php endif; ?>
                      </span>
                    </a>
                    <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
user/<?php echo $this->_tpl_vars['userss'][$this->_tpl_vars['i']['user_id']]['username']; ?>
" target="_blank" class="pull-left m-t-sm clear">
                      <?php echo $this->_tpl_vars['userss'][$this->_tpl_vars['i']['user_id']]['nickname']; ?>

                    </a>
                    <div class="pull-right">
                      <div class="h-32"><span class="price-rmb text-skin"><small>￥</small><?php echo ((is_array($_tmp=$this->_tpl_vars['i']['price'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</span></div>
                    </div>
                  </div>
                </div>
              </section>
            </div>
            <?php endforeach; endif; unset($_from); ?>

          </div>

          <?php else: ?>
          <div class="row">
            <div class="col-xs-12 text-center">
              <div class="h-v-5 row-col">
                <div class="row-cell v-m text-center animated fadeIn">
                  <h3 class="m-t text-muted"><i class="icon-sad h1 m-r" style="vertical-align: -7px"></i>还没有购买过任何作品</h3>
                </div>
              </div>
            </div>
          </div>
          <?php endif; ?>
        </div>
      </div>


    </div>
    <!-- ############ PAGE END-->
    <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['template_path'])."/html/footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
  </div>
  <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['template_path'])."/html/backtop.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
  <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['template_path'])."/html/mb-settings.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
  <!-- ############ LAYOUT END-->
</div>
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog">
    <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['template_path'])."/items/purchase_panel.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
  </div>
</div>
</body>
</html>