-- Select Basic -- div class form-group label class col-md-4 control-l

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
<!-- Select Basic -->
<div class="form-group">
<label class="col-md-4 control-label" for="role">Роль</label>
<div class="col-md-4">
<select id="role" name="role" class="form-control">
<option <?php if($user->getRole() == 1) echo ' selected ';?>value="1">пользователь</option>
<option <?php if($user->getRole() == 2) echo ' selected ';?>value="2">менеджер</option>
<option <?php if($user->getRole() == 3) echo ' selected ';?>value="3">Администратор</option>
</select>
</div>
</div>