83 lines
3.9 KiB
PHTML
83 lines
3.9 KiB
PHTML
<?php
|
|
$this->headTitle($this->config->title->site);
|
|
$this->headTitle('我的账户');
|
|
$this->headTitle()->setSeparator(' - ');
|
|
$this->theme->AppendPlus($this,'colorbox');
|
|
?>
|
|
<div class="row">
|
|
<div class="span3">
|
|
<div class="well sidebar-nav">
|
|
<?= $this->partial('account/left.phtml'); ?>
|
|
</div><!--/.well -->
|
|
</div><!--/span-->
|
|
<div class="span9">
|
|
<h3>修改安全性设置</h3>
|
|
<hr />
|
|
<div class="tabbable">
|
|
<ul class="nav nav-tabs">
|
|
<li <?php if($this->section == "email" || empty($this->section)) echo 'class="active"'?>><a href="#tab2" data-toggle="tab">电子邮箱</a></li>
|
|
<li <?php if($this->section == "password") echo 'class="active"'?>><a href="#tab3" data-toggle="tab">修改密码</a></li>
|
|
</ul>
|
|
<?php if(!empty($this->error)) { ?>
|
|
<?= $this->error ?>
|
|
<?php } ?>
|
|
<div class="tab-content">
|
|
<div class="tab-pane <?php if($this->section == "email" || empty($this->section)) echo 'active'?>" id="tab2">
|
|
<div id="email">
|
|
<form id="opt_email" action="/account/secure/opt/email" method="post" class="form-horizontal">
|
|
<div class="control-group">
|
|
<label class="control-label">Email:</label>
|
|
<div class="controls">
|
|
<input type="text" value="" name="email" />
|
|
</div>
|
|
</div>
|
|
<div class="control-group">
|
|
<label class="control-label">密码:</label>
|
|
<div class="controls">
|
|
<input type="password" name="password" />
|
|
<span class="help-inline">如果要修改邮箱,请输入原密码</span>
|
|
</div>
|
|
</div>
|
|
<div class="form-actions">
|
|
<input type="hidden" name="submit" value="submit" />
|
|
<button type="submit" class="btn btn-green" class="btn btn-primary">保存</button>
|
|
<button type="reset" id="reset" class="btn">取消</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div><!-- tab2 -->
|
|
<div class="tab-pane <?php if($this->section == "password") echo 'active'?>" id="tab3">
|
|
<div id="password">
|
|
<form action="/account/secure" method="post" class="form-horizontal">
|
|
<div class="control-group ">
|
|
<label class="control-label">当前密码</label>
|
|
<div class="controls">
|
|
<input name="password" type="password" value="" />
|
|
<span class="help-inline">如果要修改密码,请输入原密码</span>
|
|
</div>
|
|
</div>
|
|
<div class="control-group ">
|
|
<label class="control-label">新密码</label>
|
|
<div class="controls">
|
|
<input type="password" name="new_password" value="" />
|
|
</div>
|
|
</div>
|
|
<div class="control-group ">
|
|
<label class="control-label">确认新密码</label>
|
|
<div class="controls">
|
|
<input type="password" name="new_password_confrim" value="" />
|
|
</div>
|
|
</div>
|
|
<div class="form-actions">
|
|
<input type="hidden" name="submit" value="submit" />
|
|
<button type="submit" class="btn btn-primary">确定</button>
|
|
<button type="button" class="btn">取消</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div><!--/span-->
|
|
</div>
|
|
</div>
|
|
</div><!--/row-->
|