colly_wyx
2017-08-10 f7a98b088d5f7246cf12ee072169057a8e762664
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
 
    <section class="content-header">
      <h1>
        用户管理
      </h1>
      <ol class="breadcrumb">
        <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
        <li><a href="#">Forms</a></li>
        <li class="active">General Elements</li>
      </ol>
    </section>
    <!-- Main content -->
    <section class="content">
        <div class="box-body pad">
          <!-- general form elements -->
          <div class="box box-primary">
            <div class="box-header with-border">
              <h3 class="box-title">修改用户</h3>
            </div>
            <!-- /.box-header -->
            <!-- form start -->
            <form role="form" id="validateform">
              <div class="box-body">
                <div class="form-group">
                  <label >手机号</label>
                  <p><?php echo $user['phone']?></p>
                </div>
                <div class="form-group">
                  <label >密码</label>
                  <input type="password" class="form-control" id="password" name="password" placeholder="密码为空,则不修改密码">
                </div>
                <div class="form-group">
                  <label >昵称</label>
                  <input type="text" class="form-control" id="nickname" name="nickname" value="<?php echo $user['nickname']?>" placeholder="昵称">
                </div>
                <div class="form-group">
                  <label >用户组</label>
                  <div class="form-group">
                    <select class="form-control" name="role">
                      <option value="0">请选择用户组</option>
                      <?php foreach ($roles as $role):?>
                      <option <?php echo isset($user['role']) && $user['role'] == $role['_id']?'selected':'';?> value="<?php echo $role['_id']?>"><?php echo $role['name']?></option>
                      <?php endforeach;?>
                    </select>
                  </div>
                </div>
                <div class="form-group">
                  <label >刷新频率</label>
                  <input type="text" class="form-control" id="refresh_frequency" name="refresh_frequency" value="<?php echo $user['refresh_frequency']?>" placeholder="刷新频率">
                </div>
                <div class="form-group">
                  <label >是否上报</label>
                  <div class="form-group">
                    <label>
                      <input type="radio" name="is_open_upload"  value="0" <?php echo $user['is_open_upload'] == 0?'checked':'';?>>否
                    </label>
                    <label>
                      <input type="radio" name="is_open_upload" checked="checked" value="1" <?php echo $user['is_open_upload'] == 1?'checked':'';?>>是
                    </label>
                  </div>
                </div>
                <div class="form-group">
                  <label >铃音</label>
                  <div class="form-group">
                    <label>
                      <input type="radio" name="video" checked="checked" value="1" <?php echo $user['is_open_upload'] == 1?'checked':'';?>>铃音1
                    </label>
                    <label>
                      <input type="radio" name="video" value="2" <?php echo $user['is_open_upload'] == 2?'checked':'';?>>铃音2
                    </label>
                  </div>
                </div>
                <div class="form-group">
                  <label >是否冻结帐号</label>
                  <div class="form-group">
                    <label>
                      <input type="radio" name="is_lock"  value="1" <?php echo $user['is_lock'] == 1?'checked':'';?>>是
                    </label>
                    <label>
                      <input type="radio" name="is_lock" value="0" <?php echo $user['is_lock'] == 0?'checked':'';?>>否
                    </label>
                  </div>
                </div>
              </div>
              <!-- /.box-body -->
 
              <div class="box-footer">
                <button type="submit" class="btn btn-primary" id="dosubmit">保存</button>
              </div>
            </form>
          </div>
    </div>
  </section>
  <script src="/themes/AdminLTE/bootstrap/js/bootstrapValidator.min.js"></script>
<script type="text/javascript">
  var SITE_URL = '<?php echo Yaf_Registry::get('var')['site_url']; ?>';
  var ID = '<?php echo $user['_id']?>'
</script>
<script src="/static/<?php echo $route['module']?>/<?php echo $route['controller']?>/js/<?php echo $route['action']?>.js"></script>