<?php /* Smarty version 2.6.22, created on 2015-12-29 18:40:45
         compiled from E:/xampp/htdocs/templates/admin/default%5Cusers%5Cedit.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'string_format', 'E:/xampp/htdocs/templates/admin/default\\users\\edit.html', 115, false),array('modifier', 'date_format', 'E:/xampp/htdocs/templates/admin/default\\users\\edit.html', 135, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['admin_template_path'])."/html/header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</head>
<body>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['admin_template_path'])."/html/pagetops.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php if ($this->_tpl_vars['errorMessage']): ?>
<div id="errormsg">
<div class="msg">
  <div class="closebtn"><i data-icon="" class="icon-close"></i></div>
  <?php echo $this->_tpl_vars['errorMessage']; ?>

</div>
</div>
<?php echo '
<script type="text/javascript">
seajs.use(["modules/pageui/msg"], function(msg){
    msg.msginit("#errormsg");
});
</script>
'; ?>

<?php endif; ?>

<div class="pagebg">
  <div class="mcontent pagemain clr">
    <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['admin_template_path'])."/html/leftmenu.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
    <div class="pagemainconent">

    <div class="rightdetail_admin">
      <ul class="pagetab bg-success clr" id="ziper">
        <li><a class="active">个人信息</a></li>
        <li><a>更改密码</a></li>
        <li><a>徽章</a></li>
        <li><a>在本站独家出售你的作品</a></li>
      </ul>
      <?php if (! isset ( $this->_tpl_vars['personalEdit'] )): ?>
      <ul style="list-style-type: none;" id="taber">
        <li>
          <div class="sideblock">
            <div class="sideheader">编辑个人信息</div>
            <div class="sidebody">
            <form id="sampleform" action="" method="post" enctype="multipart/form-data">
              <div class="horizontal-form">
                <?php $_from = $this->_tpl_vars['groups']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['g']):
?>
                <div class="input-group clr">
                  <label class="control-label" for="group_<?php echo $this->_tpl_vars['g']['ug_id']; ?>
"><?php echo $this->_tpl_vars['g']['name']; ?>
</label>
                  <div class="inputs">
                  <input class="checkbox" id="group_<?php echo $this->_tpl_vars['g']['ug_id']; ?>
" type="checkbox" name="groups[<?php echo $this->_tpl_vars['g']['ug_id']; ?>
]" values="yes" <?php if (isset ( $_POST['groups'][$this->_tpl_vars['g']['ug_id']] )): ?>checked="checked"<?php endif; ?>>
                  </div>
                </div>
                <?php endforeach; endif; unset($_from); ?>
                <div class="input-group clr">
                  <label class="control-label">状态:</label>
                  <div class="inputs">
                    <select class="ipttheme" id="istatus" name="status">
                      <option value="activate" <?php if ($_POST['status'] == 'activate'): ?>selected="selected"<?php endif; ?>><?php echo $this->_tpl_vars['lang']['activate']; ?>
</option>
                      <option value="waiting" <?php if ($_POST['status'] == 'waiting'): ?>selected="selected"<?php endif; ?>><?php echo $this->_tpl_vars['lang']['waiting']; ?>
</option>
                      <option value="banned" <?php if ($_POST['status'] == 'banned'): ?>selected="selected"<?php endif; ?>>Banned</option>
                    </select>
                  </div>
                </div>
                <?php if ($this->_tpl_vars['user']['quiz'] == 'true'): ?>
                <div class="input-group clr">
                  <label class="control-label" for="commission_percent">佣金比例</label>
                  <div class="inputs">
                    <input class="ipttheme" type="text" id="commission_percent" name="commission_percent" value="<?php echo $this->_tpl_vars['user']['commission_percent']; ?>
">
                    <small>设置单个佣金百分比</small>
                  </div>
                </div>
                <?php endif; ?>
                <div class="input-group clr">
                  <label class="control-label" for="nickname">昵称:</label>
                  <div class="inputs">
                    <label class="checktext" for="visible"><?php echo $this->_tpl_vars['user']['nickname']; ?>
</label>
                  </div>
                </div>
                <div class="input-group clr">
                  <label class="control-label" for="email">电子邮件:</label>
                  <div class="inputs">
                    <label class="checktext" for="visible"><?php echo $this->_tpl_vars['user']['email']; ?>
</label>
                  </div>
                </div>
                <?php if ($this->_tpl_vars['user']['firmname'] != ''): ?>
                <div class="input-group clr">
                  <label class="control-label" for="invoice_to">公司名称:</label>
                  <div class="inputs">
                    <label class="checktext" for="visible"><?php echo $this->_tpl_vars['user']['firmname']; ?>
</label>
                  </div>
                </div>
                <?php endif; ?>
                <?php if ($this->_tpl_vars['user']['live_city'] != ''): ?>
                <div class="input-group clr">
                  <label class="control-label" for="lives_in">所在城市：</label>
                  <div class="inputs">
                    <label class="checktext" for="visible"><?php echo $this->_tpl_vars['user']['live_city']; ?>
</label>
                  </div>
                </div>
                <?php endif; ?>
                <?php if ($this->_tpl_vars['user']['country']['name'] != ''): ?>
                <div class="input-group clr">
                  <label class="control-label" for="country">国家或地区:</label>
                  <div class="inputs">
                    <label class="checktext" for="visible"><?php echo $this->_tpl_vars['user']['country']['name']; ?>
</label>
                  </div>
                </div>
                <?php endif; ?>
                  <?php if ($this->_tpl_vars['user']['address'] != ''): ?>
                  <div class="input-group clr">
                      <label class="control-label"> 详细地址:</label>
                      <div class="inputs">
                          <label class="checktext" for="visible"><?php echo $this->_tpl_vars['user']['address']; ?>
</label>
                      </div>
                  </div>
                  <?php endif; ?>
                <div class="input-group clr">
                  <label class="control-label">充值金额：</label>
                  <div class="inputs">
                    <label class="checktext" for="visible"><?php echo $this->_tpl_vars['currency']['symbol']; ?>
 <?php echo ((is_array($_tmp=$this->_tpl_vars['user']['stats']['deposit'])) ? $this->_run_mod_handler('string_format', true, $_tmp, "%.2f") : smarty_modifier_string_format($_tmp, "%.2f")); ?>
</label>
                  </div>
                </div>
                <?php if (! isset ( $this->_tpl_vars['user']['stats']['items'] )): ?><?php else: ?>
                <div class="input-group clr">
                  <label class="control-label">购买作品计数:</label>
                  <div class="inputs">
                    <label class="checktext" for="visible"><?php echo $this->_tpl_vars['user']['buy']; ?>
件作品 共计<?php echo $this->_tpl_vars['currency']['symbol']; ?>
 <?php echo ((is_array($_tmp=$this->_tpl_vars['user']['stats']['total'])) ? $this->_run_mod_handler('string_format', true, $_tmp, "%.2f") : smarty_modifier_string_format($_tmp, "%.2f")); ?>
</label>
                  </div>
                </div>
                <?php endif; ?>
                <div class="input-group clr">
                  <label class="control-label">是否出售作品：</label>
                  <div class="inputs">
                    <label class="checktext" for="visible"><?php if ($this->_tpl_vars['user']['quiz'] == 'true'): ?>是<?php else: ?>否<?php endif; ?></label>
                  </div>
                </div>
                <div class="input-group clr">
                  <label class="control-label">注册时间:</label>
                  <div class="inputs">
                    <label class="checktext" for="visible"><?php echo ((is_array($_tmp=$this->_tpl_vars['user']['register_datetime'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d %H:%M") : smarty_modifier_date_format($_tmp, "%Y-%m-%d %H:%M")); ?>
</label>
                  </div>
                </div>
                <?php if ($this->_tpl_vars['user']['last_login_datetime'] != ''): ?>
                <div class="input-group clr">
                  <label class="control-label">最后登录:</label>
                  <div class="inputs">
                    <label class="checktext" for="visible"><?php echo ((is_array($_tmp=$this->_tpl_vars['user']['last_login_datetime'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d %H:%M") : smarty_modifier_date_format($_tmp, "%Y-%m-%d %H:%M")); ?>
</label>
                  </div>
                </div>
                <?php endif; ?>
                <?php if ($this->_tpl_vars['user']['ip_address'] != ''): ?>
                <div class="input-group clr">
                  <label class="control-label">IP地址:</label>
                  <div class="inputs">
                    <label class="checktext" for="visible"><?php echo $this->_tpl_vars['user']['ip_address']; ?>
</label>
                  </div>
                </div>
                <?php endif; ?>
                <?php if ($this->_tpl_vars['user']['profile_title'] != ''): ?>
                <div class="input-group clr">
                  <label class="control-label">个人资料:</label>
                  <div class="inputs">
                    <label class="checktext" for="visible"><?php echo $this->_tpl_vars['user']['profile_title']; ?>
</label>
                  </div>
                </div>
                <?php endif; ?>
                <?php if ($this->_tpl_vars['user']['profile_desc'] != ''): ?>
                <div class="input-group clr">
                  <label class="control-label">资料详情:</label>
                  <div class="inputs">
                    <label class="checktext" for="visible"><?php echo $this->_tpl_vars['user']['profile_desc']; ?>
</label>
                  </div>
                </div>
                <?php endif; ?>
              </div>
              <div class="form-submit">
                <?php if ($_GET['c'] == 'edit'): ?>  
                <button id="personal_info_submit_button" class="btntheme btnsize btn-primary" type="submit" name="edit"><?php echo $this->_tpl_vars['lang']['edit']; ?>
</button>
                <?php else: ?>
                <button id="personal_info_submit_button" class="btntheme btnsize btn-primary" type="submit" name="add"><?php echo $this->_tpl_vars['lang']['edit']; ?>
</button>
                <?php endif; ?>
              </div>
            </form>
            </div>
          </div>
        </li>
        <li style="display:none;">
          <div class="sideblock">
            <div class="sideheader">编辑密码</div>
            <div class="sidebody">
            <form id="sampleform" action="" method="post" enctype="multipart/form-data">
              <div id="password" class="horizontal-form">
                <div class="input-group clr">
                  <label class="control-label" for="change_password">更改密码：</label>
                  <div class="inputs">
                    <input class="ipttheme" id="change_password" name="password" type="text" value="">
                  </div>
                </div>
              </div>
              <div class="form-submit">
                <?php if ($_GET['c'] == 'edit'): ?>  
                <button id="personal_info_submit_button" class="btntheme btnsize btn-primary" type="submit" name="edit"><?php echo $this->_tpl_vars['lang']['edit']; ?>
</button>
                <?php else: ?>
                <button id="personal_info_submit_button" class="btntheme btnsize btn-primary" type="submit" name="add"><?php echo $this->_tpl_vars['lang']['edit']; ?>
</button>
                <?php endif; ?>
              </div>
            </form>
            </div>
          </div>
        </li>
        <li style="display:none;">
          <div class="sideblock">
            <div class="sideheader">编辑徽章</div>
            <div class="sidebody">
            <form id="sampleform" action="" method="post" enctype="multipart/form-data">
              <div id="profile" class="horizontal-form">
              <div class="input-group clr" style="margin-bottom:0px;">
                <div class="inputs">
                  <input id="power_elite_author" name="power_elite_author" value="true" type="checkbox" class="checkbox" <?php if ($_POST['power_elite_author'] == 'true'): ?>checked="checked"<?php endif; ?>>
                  <label for="power_elite_author">
                    <img class="tipsimg" src="<?php echo $this->_tpl_vars['data_server']; ?>
uploads/badges/power_elite_author.png" alt="" />
                    <span class="formtxt">权威精英作者</span>
                  </label>
                </div>
              </div>
              <div class="input-group clr" style="margin-bottom:0px;">
                <div class="inputs">
                  <input id="elite_author" name="elite_author" value="true" type="checkbox" class="checkbox" <?php if ($_POST['elite_author'] == 'true'): ?>checked="checked"<?php endif; ?>>
                  <label for="elite_author">
                    <img class="tipsimg" src="<?php echo $this->_tpl_vars['data_server']; ?>
uploads/badges/elite_author.png" alt="" />
                    <span class="formtxt">精英作者</span>
                  </label>
                </div>
              </div>
              <?php if ($this->_tpl_vars['badges']): ?>
              <?php $_from = $this->_tpl_vars['badges']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['b']):
?>
              <div class="input-group clr" style="margin-bottom:0px;">
                <div class="inputs">
                  <input id="badge_<?php echo $this->_tpl_vars['b']['id']; ?>
" name="badges[]" value="<?php echo $this->_tpl_vars['b']['id']; ?>
" type="checkbox" class="checkbox" <?php if (is_array ( $_POST['badges'] ) && in_array ( $this->_tpl_vars['b']['id'] , $_POST['badges'] )): ?>checked="checked"<?php endif; ?>> 
                  <label for="badge_<?php echo $this->_tpl_vars['b']['id']; ?>
">		 
                    <?php if ($this->_tpl_vars['b']['photo'] != ''): ?>
                    <img class="tipsimg" src="<?php echo $this->_tpl_vars['data_server']; ?>
uploads/badges/<?php echo $this->_tpl_vars['b']['photo']; ?>
" alt="" />
                    <?php endif; ?>
                    <span class="formtxt"><?php echo $this->_tpl_vars['b']['name']; ?>
</span>
                  </label>
                </div>
              </div>
              <?php endforeach; endif; unset($_from); ?>
              <?php endif; ?>
              <div class="input-group clr" style="margin-bottom:0px;">
                <div class="inputs">
                  <input id="featured_author" name="featured_author" value="true" type="checkbox" class="checkbox" <?php if ($_POST['featured_author'] == 'true'): ?>checked="checked"<?php endif; ?>>
                  <label for="featured_author"> 
                    <img class="tipsimg" src="<?php echo $this->_tpl_vars['data_server']; ?>
uploads/badges/author_was_featured.png" alt="" />
                    <span class="formtxt"><?php echo $this->_tpl_vars['lang']['featured_author']; ?>
</span>
                  </label>
                  </div>
                </div>
              </div>
              <div class="form-submit">
                <?php if ($_GET['c'] == 'edit'): ?>  
                <button id="personal_info_submit_button" class="btntheme btnsize btn-primary" type="submit" name="edit"><?php echo $this->_tpl_vars['lang']['edit']; ?>
</button>
                <?php else: ?>
                <button id="personal_info_submit_button" class="btntheme btnsize btn-primary" type="submit" name="add"><?php echo $this->_tpl_vars['lang']['edit']; ?>
</button>
                <?php endif; ?>
              </div>
            </form>
            </div>
          </div>
        </li>
        <li style="display:none;">
          <div class="sideblock">
            <div class="sideheader">是否独家</div>
            <div class="sidebody">
            <div id="exclusivity" class="tab-content active">
              <h4 class="underlined">在本站独家出售你的作品</h3>
              <p>如果你在本站独家出售作品的话，你的分成比例在60%-80%之间。在本站独家出售作品的意思是你不能在其他地方出售相同作品。</p>
              <p>你账号目前的类型是:</p>
              <?php if ($this->_tpl_vars['user']['exclusive_author'] == 'true'): ?>
              <h4 class="underlined">独家作者</h3>
              <p>你可以转换作品出售类型，如果是从独家转换为非独家，可享受30天的延期，转换类型30天后生效。</p>
              <?php else: ?>
              <h4 class="underlined">非独家作者</h3>
              <p>你可以转换作品出售类型，如果是从独家转换为非独家，可享受30天的延期，转换类型30天后生效。</p>
              <?php endif; ?>
              <form  action="" class="horizontal-form disable-on-submit" method="post">
                <?php if ($this->_tpl_vars['user']['exclusive_author'] == 'true'): ?>
                <div class="form-submit">
                  <div class="form-submit"><input type="hidden" name="exclusive_false" value="yes" />
                    <button type="submit" class="btntheme btnsize btn-primary">取消本站独家出售</button>
                  </div>
                </div>
                <?php else: ?>
                <div class="form-submit">
                  <div class="form-submit"><input type="hidden" name="exclusive_true" value="yes" />
                    <button type="submit" class="btntheme btnsize btn-primary">开启本站独家出售</button>
                  </div>
                </div>
                <?php endif; ?>
              </form>
            </div>
            </div>
          </div>
        </li>
      </ul>
      <?php echo $this->_tpl_vars['lang']['edit_from_site']; ?>

      <?php endif; ?>
    </div>
    <!-- <div class="rightdetail">
      <div class="sideblock author">
        <div class="clr">
          <div class="authoravatar">
            <?php if ($this->_tpl_vars['user']['avatar'] != ''): ?>
            <img class="img-border" src="<?php echo $this->_tpl_vars['data_server']; ?>
/uploads/users/<?php echo $this->_tpl_vars['user']['user_id']; ?>
/A_<?php echo $this->_tpl_vars['user']['avatar']; ?>
" style="margin-top:15px" />
            <?php else: ?>
            <img class="img-border" src="<?php echo $this->_tpl_vars['template_data']; ?>
img/default-user.jpg" style="margin-top:15px" />
            <?php endif; ?>
          </div>
          <div class="details">
            <h3><?php echo $this->_tpl_vars['user']['username']; ?>
</h3>
          </div>
        </div>
        <p>
          当前余额: <?php echo $this->_tpl_vars['currency']['symbol']; ?>
<?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")); ?>
<br>  
          <?php if ($this->_tpl_vars['user']['ip_address'] != ''): ?>
          IP地址：<?php echo $this->_tpl_vars['user']['ip_address']; ?>
<br>
          <?php endif; ?>
          注册时间：<?php echo ((is_array($_tmp=$this->_tpl_vars['user']['register_datetime'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")); ?>
<br>
          <?php if ($this->_tpl_vars['user']['last_login_datetime'] != ''): ?>
          最后登录: <?php echo ((is_array($_tmp=$this->_tpl_vars['user']['last_login_datetime'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d %H:%M") : smarty_modifier_date_format($_tmp, "%Y-%m-%d %H:%M")); ?>
<br>
          <?php endif; ?>
        </p>
      </div>
      <ul class="side-tabs" id="ziper">
        <li><a href="javascript:;" class="icon-process">个人信息</a></li>
        <li><a href="javascript:;" class="icon-key">更改密码</a></li> 
        <li><a href="javascript:;" class="icon-badge">徽章</a></li>
        <li><a href="javascript:;" class="icon-tick">在本站独家出售你的作品</a></li>
      </ul>
    </div> -->
    <script type="text/javascript">
    <?php echo '
    seajs.use(["jq", "modules/pageui/tabs"], function($, ui){
      $(function(){
        ui.tabsinit($("#ziper").find("li"), $("#taber").find("li"), {active: "active"})
      });
    });
    '; ?>

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