<?php /* Smarty version 2.6.22, created on 2016-01-08 21:21:38
         compiled from E:/xampp/htdocs/templates/home/default%5Cusers%5Cindex.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\\index.html', 76, false),array('modifier', 'date_format', 'E:/xampp/htdocs/templates/home/default\\users\\index.html', 100, 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" id="works">
        <div class="container">

          <div class="row m-t-xs">
            <div class="col-xs-4 col-md-6">
              <h3 class="m-t-none m-b-none phone-h2 m-t-xs">
                <i class="icon-daimaj text-skin"></i> Ta的作品
              </h3>
            </div>
            <div class="col-xs-8 col-md-6 text-right">
              <form action="" id="sortbyform" method="get">
                <input id="order-type" name="order" type="hidden" value="<?php if ($_GET['order'] == 'asc'): ?>desc<?php else: ?>asc<?php endif; ?>" />
                <input type="hidden" id="sort_by" name="sort_by" />
                <div class="btn-group m-t-xs">

                  <a href="javascript: void(0);" onclick="document.getElementById('sort_by').value='sales_count';document.getElementById('sortbyform').submit();"<?php if ($_GET['sort_by'] == 'sales_count'): ?> class="btn p-l-md p-r p-y-xs btn-outline skin" <?php else: ?> class="btn p-l-md p-r p-y-xs btn-outline b-skin text-skin"<?php endif; ?> title="" data-toggle="tooltip" data-placement="bottom" data-original-title="按销量排序">
                  销量
                  <i class="icon-xjt1 m-l-xs"></i>
                  </a>
                  <a href="javascript: void(0);" onclick="document.getElementById('sort_by').value='cost';document.getElementById('sortbyform').submit();"<?php if ($_GET['sort_by'] == 'cost'): ?> class="btn p-l-md p-r p-y-xs btn-outline skin" <?php else: ?> class="btn p-l-md p-r p-y-xs btn-outline b-skin text-skin"<?php endif; ?> title="" data-toggle="tooltip" data-placement="bottom" data-original-title="按价格排序">
                  价格
                  <i class="icon-xjt1 m-l-xs"></i>
                  </a>
                  <a href="javascript: void(0);" onclick="document.getElementById('sort_by').value='published_at';document.getElementById('sortbyform').submit();"<?php if ($_GET['sort_by'] == 'published_at'): ?> class="btn p-l-md p-r p-y-xs btn-outline skin" <?php else: ?> class="btn p-l-md p-r p-y-xs btn-outline b-skin text-skin"<?php endif; ?> data-toggle="tooltip" data-placement="bottom" data-original-title="按日期排序">
                  日期
                  <i class="icon-xjt1 m-l-xs"></i>
                  </a>

                </div>

              </form>
            </div>
          </div>
        </div>
      </div>


      <?php if ($this->_tpl_vars['items']): ?>
      <div class="clearfix white">
        <div class="container">
          <div class="row m-t" id="moban-items">

            <?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 moban-items">
              <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 data-original="<?php echo $this->_tpl_vars['data_server']; ?>
uploads/items/<?php echo $this->_tpl_vars['i']['id']; ?>
/<?php echo $this->_tpl_vars['i']['thumbnail']; ?>
" src="/mbthemes/assets/images/load.png" 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 opw">
                      <div class="img-options-content">
                        <?php if ($this->_tpl_vars['i']['demo_url']): ?>
                        <a data-toggle="ajaxModal" data-src="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/itempreview/<?php echo $this->_tpl_vars['i']['id']; ?>
" href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/preview/<?php echo $this->_tpl_vars['i']['id']; ?>
" class="btn btn-lg skin m-r-md hidden-xs-down" title="在线演示">
                          <i class="icon-eye"></i>
                        </a>
                        <?php else: ?>
                        <?php endif; ?>
                        <a data-src="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/itemsview/<?php echo $this->_tpl_vars['i']['id']; ?>
" href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['i']['id']; ?>
" target="_blank" class="btn btn-lg danger" title="查看详情">
                          <i class="icon-magnifier-add"></i>
                        </a>
                      </div>
                    </div>
                    <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['i']['id']; ?>
#comment" target="_blank" class="sale" title="评论">
                      <i class="icon-bubbles m-r-xs"></i> <?php echo ((is_array($_tmp=$this->_tpl_vars['i']['comments'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>

                    </a>
                  </div>
                </div>
                <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['i']['id']; ?>
" class="ribbon ribbon-skin price" title="销量">
                  <i class="icon-handbag m-r-xs"></i> <span class="text-lg"><?php echo ((is_array($_tmp=$this->_tpl_vars['i']['sales'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</span>
                </a>
                <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-clock m-r-xs"></i> <?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['i']['datetime'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%m-%d") : smarty_modifier_date_format($_tmp, "%m-%d")))) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</a>
                    <a>
                      <?php $_from = $this->_tpl_vars['i']['categories']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['e']):
?>
                      <?php $_from = $this->_tpl_vars['e']; 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['c']):
        $this->_foreach['foo']['iteration']++;
?>
                      <?php if (! ($this->_foreach['foo']['iteration'] <= 1)): ?><?php echo $this->_tpl_vars['categories'][$this->_tpl_vars['c']]['name']; ?>
<?php endif; ?>
                      <?php endforeach; endif; unset($_from); ?>
                      <?php endforeach; endif; unset($_from); ?>
                    </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">
                    <div class="pull-left m-r-sm dropdown myDrop">
                      <a data-toggle="ajaxUser" data-src="/<?php echo $this->_tpl_vars['languageURL']; ?>
user/portfolio/<?php echo $this->_tpl_vars['userss'][$this->_tpl_vars['i']['user_id']]['username']; ?>
" href="/<?php echo $this->_tpl_vars['languageURL']; ?>
user/<?php echo $this->_tpl_vars['userss'][$this->_tpl_vars['i']['user_id']]['username']; ?>
" class="pull-left myUserAjax">
                        <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="circle skin _100 w-32 fs-80">
                            NP
                          </span>
                          <?php endif; ?>
                        </span>
                      </a>
                    </div>
                    <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 if ($this->_tpl_vars['i']['free_file'] == 'true'): ?>0<?php else: ?><?php echo $this->_tpl_vars['i']['price']; ?>
<?php endif; ?></span></div>
                    </div>
                  </div>
                </div>
              </section>
            </div>
            <?php endforeach; endif; unset($_from); ?>
          </div>
        </div>
      </div>
      <div class="white p-b">
      <?php echo $this->_tpl_vars['paging']; ?>

      </div>
      <?php else: ?>
      <div class="white p-y-lg clearfix">
        <div class="container">
          <div class="row">
            <div class="col-xs-12 no-items 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>
        </div>
      </div>
      <?php endif; ?>
    </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>
<script type="text/javascript">
  <?php echo '
  $(function() {
    if ($.support.pjax) {
      $.pjax.defaults.maxCacheLength = 0;
      var container = $(\'#view\');
      $(document).on(\'click\', \'#pagination li a\', function(event) {
        $.pjax.click(event, {
          container: container,
          timeout: 6000,
          fragment: \'#view\',
          show: \'fade\',
          cache: false,
          storage: true
        });
      });

      $(document).on(\'pjax:start\', function() {
        $( document ).trigger( "pjaxStart" );
      });
      // fix js
      $(document).on(\'pjax:end\', function(event) {
        $( document ).trigger( "pjaxEnd" );
        $("img.img-responsive").lazyload({
          effect : "fadeIn",
          threshold : 200
        });
      });
    }
  });
  '; ?>

</script>

<script type="text/javascript">
  <?php echo '
  $(function() {
    $("img.img-responsive").lazyload({
      effect : "fadeIn",
      threshold : 200
    });
  });
  '; ?>

</script>
</body>
</html>