<?php /* Smarty version 2.6.22, created on 2015-12-30 03:53:51
         compiled from E:/xampp/htdocs/templates/home/default%5Cusers%5Cdashboard.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'E:/xampp/htdocs/templates/home/default\\users\\dashboard.html', 50, false),array('modifier', 'string_format', 'E:/xampp/htdocs/templates/home/default\\users\\dashboard.html', 82, false),array('function', 'math', 'E:/xampp/htdocs/templates/home/default\\users\\dashboard.html', 107, 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">
        <div class="container">
          <?php echo $this->_tpl_vars['errorMessage']; ?>

          <div class="row-col">
            <div class="col-sm b-r b-l">
              <div class="box edit pos-rlt m-b-0">
                <div class="p-a-md">
                  <?php if ($this->_tpl_vars['qnews_data']): ?>
                  <h3 class="h4 h3-xs m-b-md">快讯</h3>
                  <div class="clearfix p-b-md">
                    <?php $_from = $this->_tpl_vars['qnews_data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i']):
?>
                    <a class="fastmsgimg pull-left m-r-md"<?php if ($this->_tpl_vars['i']['url']): ?> href="<?php echo $this->_tpl_vars['i']['url']; ?>
"<?php endif; ?> title="<?php echo $this->_tpl_vars['i']['name']; ?>
">
                    <img class="img-responsive" src="/<?php echo $this->_tpl_vars['i']['thumb']; ?>
" alt="<?php echo $this->_tpl_vars['i']['name']; ?>
" title="<?php echo $this->_tpl_vars['i']['name']; ?>
" />
                    </a>
                    <div class="clear">
                      <h3 class="m-t-none"><a<?php if ($this->_tpl_vars['i']['url']): ?> href="<?php echo $this->_tpl_vars['i']['url']; ?>
"<?php endif; ?> title="<?php echo $this->_tpl_vars['i']['name']; ?>
"><?php echo $this->_tpl_vars['i']['name']; ?>
</a></h3>
                      <p><?php echo $this->_tpl_vars['i']['description']; ?>
</p>
                    </div>
                    <?php endforeach; endif; unset($_from); ?>
                  </div>
                  <?php endif; ?>
                  <div class="line line-dashed b-b line-lg pull-in p-t-md"></div>
                  <h3 class="h4 h3-xs m-t-md m-b-md">资金明细</h3>
                  <table class="table table-striped table-hover" cellpadding="0" cellspacing="0">
                    <thead>
                    <tr class="blue lt">
                      <th width="120">日期</th>
                      <th width="100">类型</th>
                      <th width="100">数额</th>
                      <th>详情</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php if ($this->_tpl_vars['statement']): ?>
                    <?php $_from = $this->_tpl_vars['statement']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['s']):
?>
                    <tr style="text-transform:capitalize">
                      <td><?php echo ((is_array($_tmp=$this->_tpl_vars['s']['time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")); ?>
</td>
                      <td><strong><?php echo $this->_tpl_vars['s']['type']; ?>
</strong></td>
                      <td><?php echo $this->_tpl_vars['s']['value']; ?>
</td>
                      <td><?php echo $this->_tpl_vars['s']['info']; ?>
</td>
                    </tr>
                    <?php endforeach; endif; unset($_from); ?>
                    <?php else: ?>
                    <tr>
                      <td colspan="4">暂无记录</td>
                    </tr>
                    <?php endif; ?>
                    </tbody>
                  </table>
                  <div class="line line-dashed b-b line-lg pull-in"></div>
                  <div class="salesnum">
                    <h3 class="h4 h3-xs m-t-md m-b-md">销量</h3>
                    <div class="general_table_border">
                      <table id="sales_table" class="table table-striped table-hover" cellspacing="0" cellpadding="0">
                        <thead>
                        <tr class="skin lt">
                          <th><?php echo $this->_tpl_vars['lang']['month']; ?>
</th>
                          <th><?php echo $this->_tpl_vars['lang']['sales']; ?>
</th>
                          <th><?php echo $this->_tpl_vars['lang']['earnings']; ?>
</th>
                        </tr>
                        </thead>
                        <tbody>
                        <?php $_from = $this->_tpl_vars['sales']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['year'] => $this->_tpl_vars['r']):
?>
                        <?php $_from = $this->_tpl_vars['r']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['month'] => $this->_tpl_vars['rr']):
?>
                        <tr id="month_<?php echo $this->_tpl_vars['month']; ?>
_<?php echo $this->_tpl_vars['year']; ?>
" class="<?php echo $this->_tpl_vars['year']; ?>
">
                          <td id="month_<?php echo $this->_tpl_vars['month']; ?>
_<?php echo $this->_tpl_vars['year']; ?>
_show"><a href="#" id="link_<?php echo $this->_tpl_vars['month']; ?>
_<?php echo $this->_tpl_vars['year']; ?>
" <?php echo 'onclick="$.ajax({complete:function(request){ hideLoading(); jQuery(&quot;#ajax-feedback&quot;).animate({&quot;height&quot;: &quot;toggle&quot;, &quot;opacity&quot;: &quot;toggle&quot;}, &quot;slow&quot;); }, beforeStart: function() { showLoading(); }, data:\'ajax=ok\', dataType:\'script\', type:\'post\', url:\'/'; ?>
<?php echo $this->_tpl_vars['languageURL']; ?>
users/earnings/<?php echo $this->_tpl_vars['month']; ?>
/<?php echo $this->_tpl_vars['year']; ?>
<?php echo '\'}); jQuery(&quot;#ajax-feedback&quot;).hide(); jQuery(&quot;#ajax-feedback&quot;).animate({&quot;height&quot;: &quot;toggle&quot;, &quot;opacity&quot;: &quot;toggle&quot;}, &quot;slow&quot;);; return false;"'; ?>
><?php echo $this->_tpl_vars['lang']['monthArr'][$this->_tpl_vars['month']]; ?>
 <?php echo $this->_tpl_vars['year']; ?>
</a></td>
                          <td id="month_<?php echo $this->_tpl_vars['month']; ?>
_<?php echo $this->_tpl_vars['year']; ?>
_hide" style="display: none;"><a href="#" onclick="$('#month_<?php echo $this->_tpl_vars['month']; ?>
_<?php echo $this->_tpl_vars['year']; ?>
_details').empty(); $('#month_<?php echo $this->_tpl_vars['month']; ?>
_<?php echo $this->_tpl_vars['year']; ?>
_hide').hide(); $('#month_<?php echo $this->_tpl_vars['month']; ?>
_<?php echo $this->_tpl_vars['year']; ?>
_show').show(); return false;"><?php echo $this->_tpl_vars['lang']['monthArr'][$this->_tpl_vars['month']]; ?>
 <?php echo $this->_tpl_vars['year']; ?>
</a></td>
                          <td><?php echo $this->_tpl_vars['rr']['buy']; ?>
 <?php echo $this->_tpl_vars['lang']['sales']; ?>
</td>
                          <td class="earningsVal"><?php echo $this->_tpl_vars['currency']['symbol']; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['rr']['total'])) ? $this->_run_mod_handler('string_format', true, $_tmp, "%.2f") : smarty_modifier_string_format($_tmp, "%.2f")); ?>
</td>
                        </tr>
                        <tbody id="month_<?php echo $this->_tpl_vars['month']; ?>
_<?php echo $this->_tpl_vars['year']; ?>
_details">
                        </tbody>
                        <?php endforeach; endif; unset($_from); ?>
                        <?php endforeach; endif; unset($_from); ?>
                        </tbody>
                        <tfoot>
                        <tr>
                          <td><?php echo $this->_tpl_vars['lang']['total_sales']; ?>
</td>
                          <td><?php echo $this->_tpl_vars['earnings']['sales']; ?>
 <?php echo $this->_tpl_vars['lang']['sales']; ?>
</td>
                          <td class="earningsTotal"><?php echo $this->_tpl_vars['currency']['symbol']; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['earnings']['sales_earning'])) ? $this->_run_mod_handler('string_format', true, $_tmp, "%.2f") : smarty_modifier_string_format($_tmp, "%.2f")); ?>
</td>
                        </tr>
                        </tfoot>
                      </table>
                    </div>
                    <div class="line line-dashed b-b line-lg pull-in p-t-md"></div>
                    <h3 class="h4 h3-xs m-t-md m-b-md"><?php echo $this->_tpl_vars['lang']['sales_graph']; ?>
</h3>
                    <div id="sales_graph" class="graph">
                      <?php $_from = $this->_tpl_vars['sales']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['year'] => $this->_tpl_vars['r']):
?>
                      <?php $_from = $this->_tpl_vars['r']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['month'] => $this->_tpl_vars['rr']):
?>
                      <div class="bar 2010">
                        <p class="m-b-sm"><?php echo $this->_tpl_vars['lang']['monthArr'][$this->_tpl_vars['month']]; ?>
 <?php echo $this->_tpl_vars['year']; ?>
</p>
                      </div>
                      <div class="progress progress-striped">
                        <div class="progress-bar danger" style="width:<?php echo smarty_function_math(array('equation' => "x * y",'x' => $this->_tpl_vars['saleIndex'],'y' => $this->_tpl_vars['rr']['buy']), $this);?>
px;"><?php echo $this->_tpl_vars['rr']['buy']; ?>
 <?php echo $this->_tpl_vars['lang']['sales']; ?>
</div>
                    </div>
                    <?php endforeach; endif; unset($_from); ?>
                    <?php endforeach; endif; unset($_from); ?>
                  </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in p-t-md"></div>
                <h3 class="h4 h3-xs m-t-md m-b-md"><?php echo $this->_tpl_vars['lang']['earnings_graph']; ?>
</h3>
                <div id="earnings_graph" class="graph p-b">
                  <?php $_from = $this->_tpl_vars['earningArr']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['year'] => $this->_tpl_vars['r']):
?>
                  <?php $_from = $this->_tpl_vars['r']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['month'] => $this->_tpl_vars['rr']):
?>
                  <div class="bar 2010">
                    <p class="m-b-sm"><?php echo $this->_tpl_vars['lang']['monthArr'][$this->_tpl_vars['month']]; ?>
 <?php echo $this->_tpl_vars['year']; ?>
</p>
                  </div>
                  <div class="progress">
                    <div class="progress-bar skin" style="width:<?php echo smarty_function_math(array('equation' => "x * y",'x' => $this->_tpl_vars['earningIndex'],'y' => $this->_tpl_vars['rr']), $this);?>
px;"><?php echo $this->_tpl_vars['currency']['symbol']; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['rr'])) ? $this->_run_mod_handler('string_format', true, $_tmp, "%.2f") : smarty_modifier_string_format($_tmp, "%.2f")); ?>
</div>
                </div>
                <?php endforeach; endif; unset($_from); ?>
                <?php endforeach; endif; unset($_from); ?>
              </div>
            </div>
          </div>
        </div>
        <div class="col-sm w-xxl b-r">
          <div class="box edit pos-rlt m-b-0">
            <div class="">
              <form class="p-a b-b" id="begin-upload" action="/<?php echo $this->_tpl_vars['languageURL']; ?>
" method="get" >
                <fieldset class="vertical-form">
                  <div class="form-group">
                    <div class="inputs">
                      <select class="form-control" id="category" name="category">
                        <?php if ($this->_tpl_vars['mainCategories']): ?>
                        <?php $_from = $this->_tpl_vars['mainCategories']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['c']):
?>
                        <option value="<?php echo $this->_tpl_vars['c']['id']; ?>
"><?php echo $this->_tpl_vars['c']['name']; ?>
</option>
                        <?php endforeach; endif; unset($_from); ?>
                        <?php endif; ?>
                      </select>
                    </div>
                  </div>
                  <div>
                    <a onclick="window.location='/<?php echo $this->_tpl_vars['languageURL']; ?>
upload/form/?category=' + document.getElementById('category').options[document.getElementById('category').selectedIndex].value;" class="btn skin btn-sm">下一步</a>
                    <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
help/upload/" class="btn btn-link fs-14 btn-sm" target="_blank">帮助</a>
                  </div>
                </fieldset>
              </form>
              <div class="row no-gutter b-b text-skin-hover">
                <div class="col-xs-6 b-r">
                  <a class="p-a block text-center">
                    <span class="h5 price _800 m-v-sm inline"><?php echo ((is_array($_tmp=$this->_tpl_vars['user']['total'])) ? $this->_run_mod_handler('string_format', true, $_tmp, "%.2f") : smarty_modifier_string_format($_tmp, "%.2f")); ?>
</span>
                    <span class="block">账户余额</span>
                  </a>
                </div>
                <!--<div class="col-xs-4 b-r">
                  <a class="p-a block text-center">
                    <span class="text-lg price _800 m-v-sm inline"><?php echo ((is_array($_tmp=$this->_tpl_vars['user']['deposit'])) ? $this->_run_mod_handler('string_format', true, $_tmp, "%.2f") : smarty_modifier_string_format($_tmp, "%.2f")); ?>
</span>
                    <span class="block">充值余额</span>
                  </a>
                </div>-->
                <div class="col-xs-6">
                  <a class="p-a block text-center">
                    <span class="h5 price _800 m-v-sm inline"><?php echo ((is_array($_tmp=$this->_tpl_vars['user']['earning'])) ? $this->_run_mod_handler('string_format', true, $_tmp, "%.2f") : smarty_modifier_string_format($_tmp, "%.2f")); ?>
</span>
                    <span class="block">收入余额</span>
                  </a>
                </div>
              </div>
              <div class="p-a b-b">
                <h5 class="bordertit">本周统计</h5>
                <div class="borderbg">
                  <p class="m-b-0">获得收入<strong class="text-lg price p-x-sm"><?php echo ((is_array($_tmp=$this->_tpl_vars['weekStats']['earning'])) ? $this->_run_mod_handler('string_format', true, $_tmp, "%.2f") : smarty_modifier_string_format($_tmp, "%.2f")); ?>
</strong>元<br />售出作品<strong class="text-lg price p-x-sm"><?php echo $this->_tpl_vars['weekStats']['sold']; ?>
</strong>次</p>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </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>
<?php echo '
<style>
  .line-dashed{border-bottom-style: dotted}
</style>
'; ?>

<?php echo '
<script type="text/javascript">
  seajs.use(["jq"], function($){
    $("textarea").on("keyup keydown",function(){
      var h=$(this);
      h.height(20).height(h[0].scrollHeight);
    });
  });
</script>
'; ?>

</body>
