    <div class="container top">
        <div class="well">
            <?php 
                $attr = array('class' => 'form-horizontal','role' => 'form');
                echo form_open('register',$attr);
            ?>
                <div class="form-group">
                    <label class="col-sm-offset-2 col-sm-2 control-label">用户名</label>
                    <div class="col-sm-6">
                        <input type="text" class="form-control border" name="username" autocomplete="off" value="<?php echo set_value('username'); ?>" onpaste="return false" oncontextmenu="return false" required="true" maxlength="12" placeholder="用户名" autofocus="true">
                        <?php echo form_error('username'); ?>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-offset-2 col-sm-2 control-label">邮箱</label>
                    <div class="col-sm-6">
                        <input type="email" class="form-control border" name="email" autocomplete="off" value="<?php echo set_value('email'); ?>"  required="true" placeholder="邮箱">
                        <?php echo form_error('email'); ?>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-offset-2 col-sm-2 control-label">密码</label>
                    <div class="col-sm-6">
                        <input type="password" class="form-control border" name="password" autocomplete="off" placeholder="密码" onpaste="return false" oncontextmenu="return false" required="true">
                        <?php echo form_error('password'); ?>
                    </div>
                </div> 
                <div class="form-group">
                    <label class="col-sm-offset-2 col-sm-2 control-label">确认密码</label>
                    <div class="col-sm-6">
                        <input type="password" class="form-control border" name="passconf" autocomplete="off" placeholder="确认密码" onpaste="return false" oncontextmenu="return false" required="true">
                        <?php echo form_error('passconf'); ?>
                    </div>
                </div> 
                <div class="form-group">
                    <div class="col-sm-offset-4 col-sm-2">
                        <button class="btn btn-success border" type="submit">注 册</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>