示例#1
0
                        </label>
                    </div>
                    <div class="radio">
                        <label>
                            <?php 
$roleChecked = $user['role'] == UserRole::ADMIN ? "checked" : '';
?>
                            <input type="radio" name="user[role]" value="<?php 
echo UserRole::ADMIN;
?>
" <?php 
echo $roleChecked;
?>
>
                            <?php 
echo $ph->lang->getText('Ph_User_Role_' . UserRole::getName(UserRole::ADMIN));
?>
                        </label>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <div class="col-lg-10 col-lg-offset-2">
                    <?php 
$ph->input_submit(['value' => $ph->lang->Ph_Button_Save, 'class' => 'btn btn-primary'])->space()->system_link($ph->lang->Ph_Button_Cancel, '/user', ['class' => 'btn btn-default'])->space()->system_link($ph->lang->Ph_User_Edit_FormButton_EditPassword, '/user/editPassword/' . $user['id'], ['class' => 'btn btn-default']);
?>
                </div>
            </div>
        </fieldset>
    </form>
</div>
        ?>
                <tr>
                    <td class="col-md-1"> <?php 
        echo $i;
        ?>
 </td>
                    <td> <?php 
        echo $user['login'];
        ?>
 </td>
                    <td> <?php 
        echo $user['name'];
        ?>
 </td>
                    <td> <?php 
        echo $ph->lang->getText("Ph_User_Role_" . UserRole::getName($user['role']));
        ?>
 </td>
                    <td class="col-md-1">
                        <?php 
        $ph->system_link($ph->lang->Ph_Button_View, '/user/show/' . $user['id'], ['class' => 'btn btn-default btn-xs']);
        ?>
                    </td>
                    <td class="col-md-1">
                        <?php 
        $ph->system_link($ph->lang->Ph_Button_Edit, '/user/edit/' . $user['id'], ['class' => 'btn btn-default btn-xs']);
        ?>
                    </td>
                    <td class="col-md-1">
                        <?php 
        $deleteButtonClasses = $isCurrentUser ? ' disabled' : '';