Ejemplo n.º 1
0
<?php

require_once "../../../include/config.php";
echo "<link href=\"backend/addons/usermangement/css/userManagementStyleSheet.css\" rel=\"stylesheet\">";
$userId = 1;
$currentUser = selectById('tblusers', $userId)[0];
$userRole = select_RoleTitle_by_RoleId($currentUser['RoleId']);
$userRole = $userRole[0]['roleTitle'];
?>

<div class="container-fluid">
    <div id="message"></div>
    <div class="row jumbotron">
        <div id="showUserInfo">
            //load user info
        </div>
    </div>

    <ul class="nav nav-tabs nav-justified">
        <li><a id="userDetailEdit" data-toggle="tab" href="#menu1"> <span class="fa fa-cog"></span></a></li>
        <li><a id="admin" data-toggle="tab" href="#menu2"> <span class="fa fa-user-secret"></span></a></li>
        <li><a id="role" data-toggle="tab" href="#menu3"> <span class="fa fa-calendar"></span></a></li>
    </ul>

    <div class="tab-content ">
        <div id="menu1" class="tab-pane fade">
            <div class="col-xs-12 col-sm-6" id="showEditUsernameForm">
                <!--show edit userName Form -->
            </div>
            <div class="col-xs-12 col-sm-6" id="showEditPasswordForm">
                <!--show edit userPassword Form -->
Ejemplo n.º 2
0
    ?>
" hidden>
                        <td><?php 
    echo dateconvertfromdb($user['userSignDate']);
    ?>
</td>
                        <input id="oldUserLastLoginDate" value=" <?php 
    echo $user['userLastLoginDate'];
    ?>
" hidden>
                        <td ><?php 
    echo dateconvertfromdb($user['userLastLoginDate']);
    ?>
</td>
                        <td><?php 
    $userRoleArray = select_RoleTitle_by_RoleId($user['RoleId']);
    echo $userRoleArray[0]['roleTitle'];
    ?>
</td>
                        <td>
                            <span  class="fa fa-edit fa-2x editUser" type="button" data-toggle="modal" data-target="#myModal">
                            </span>
                        </td>
                        <td><span class="fa fa-remove fa-2x deleteUser" type="button" data-toggle="modal" data-target="#DeleteIt">
                            </span>
                        </td>
                    </tr>
                    <span>
                        <tr  class="hidden editUserForm" >
                            <td></td>
                            <td>