Location: PHPKode > projects > iF.SVNAdmin > svnadmin/templates/userview.html
[{INCLUDE templates/header.html}]
<script type="text/javascript">
$(document).ready(function(){
  $("#showrolelistlink").click(function(event){
    event.preventDefault();
    if ($("#rolelist").length == 0)
    {
      $.get("rolelist.php", function(data){
        $("body").append(data);
        $("#rolelist").dialog({width:750, height:450});
      });
    }
    else
    {
      $("#rolelist").dialog();
    }
  });
});
</script>
[{IFDEF INFO}]<div class="infomsg">${INFOMSG}</div>[{/IFDEF}]
[{IFDEF WARNING}]<div class="warningmsg">${WARNINGMSG}</div>[{/IFDEF}]
[{IFDEF ERROR}]<div class="errormsg">${ERRORMSG}</div>[{/IFDEF}]

      <h1>TR{User}}: ${USERNAME}</h1>
      <p class="hdesc">TR{On this page you can see all assignments of the user.}}</p>

      [{IFDEF USER_EDIT_ACTIVE && ACL_users_changepassother}]
      <div style="text-align:right;">
        <form method="get" action="userchangepass.php">
          <input type="hidden" name="username" value="${USERNAME_ENCODED}">
          <input type="submit" value="TR{Change password}}">
        </form>
      </div>
      [{/IFDEF}]

      [{IFDEF AUTHENTICATION_ACTIVE && ACL_roles_view}]
      <h2>TR{Roles of user}}</h2>
      <form action="userview.php?username=${USERNAME_ENCODED}" method="POST">
      <input type="hidden" name="selected_users[]" value="${USERNAME}">
      <table class="datatable">
      <thead>
        <tr>
          <th width="20">#</th>
          <th>TR{Role}}</th>
          <th>TR{Description}}</th>
        </tr>
      </thead>
      <tfoot>
        <tr>
          <td colspan="3">

          <table class="datatableinline">
            <colgroup>
              <col width="50%">
              <col width="50%">
            </colgroup>
            <tr>
              <td>
                [{IFDEF ACL_roles_unassign}]
                <input type="submit" name="unassign_role" value="TR{Unassign}}" class="unbtn">
                [{/IFDEF}]
              </td>
              <td align="right">
                [{IFDEF ACL_roles_assign}]
                <small>(<a id="showrolelistlink" href="#">TR{Show roles}}</a>)</small>
                <select name="selected_assign_role_name">
                  <option value="">--- TR{Role}} ---</option>
                  [{LOOP allroles}]
                  <option value="${allroles}{name}">${allroles}{translatedName}</option>
                  [{/LOOP}]
                </select>
                <input type="submit" name="assign_role" value="TR{Assign}}" class="anbtn">
                [{/IFDEF}]
              </td>
            </tr>
          </table>

          </td>
        </tr>
      </tfoot>
      <tbody>
      [{LOOP roles}]
      <tr>
        <td>[{IFDEF ACL_roles_unassign}]<input type="checkbox" name="selected_roles[]" value="${roles}{name}">[{/IFDEF}]</td>
        <td>${roles}{translatedName}</td>
        <td>${roles}{translatedDescription}</td>
      </tr>
      [{/LOOP}]
      </tbody>
      </table><br>
      </form>
      [{/IFDEF}]



      [{IFDEF GROUP_VIEW_ACTIVE && ACL_groups_view}]
      <h2>TR{Groups of user}}</h2>
      <form action="userview.php?username=${USERNAME_ENCODED}" method="POST">
      <input type="hidden" name="selected_users[]" value="${USERNAME}">
      
      <div class="datatablesearch">
	      TR{Filter}}:
	      <input type="text" class="filterbox" onkeyup="filterDataTable('usergrouplist',1,this.value);">
       </div>

      <table id="usergrouplist" class="datatable">
      <thead>
      <tr>
        <th width="20">#</th>
        <th>TR{Group}}</th>
      </tr>
      </thead>
      <tfoot>
      <tr>
        <td colspan="2">
          [{IFDEF GROUP_EDIT_ACTIVE}]
          <table class="datatableinline">
            <colgroup>
              <col width="50%">
              <col width="50%">
            </colgroup>
            <tr>
              <td>
                [{IFDEF ACL_groups_unassign}]
                <input type="submit" name="unassign" value="TR{Unassign}}" class="unbtn">
                [{/IFDEF}]
              </td>
              <td align="right">
                [{IFDEF ACL_groups_assign}]
                <select name="selected_groups[]">
                  <option value="">--- TR{Group}} ---</option>
                  [{LOOP allgroups}]
                  <option value="${allgroups}{name}">${allgroups}{name}</option>
                  [{/LOOP}]
                </select>
                <input type="submit" name="assign_usergroup" value="TR{Assign}}" class="anbtn">
                [{/IFDEF}]
              </td>
            </tr>
          </table>
          [{/IFDEF}]
        </td>
      </tr>
      </tfoot>
      <tbody>
      [{LOOP groups}]
      <tr>
        <td>[{IFDEF GROUP_EDIT_ACTIVE && ACL_groups_unassign}]<input type="checkbox" name="selected_groups[]" value="${groups}{name}">[{/IFDEF}]</td>
        <td><a href="groupview.php?groupname=${groups}{encodedName}">${groups}{name}</a></td>
      </tr>
      [{/LOOP}]
      </tbody>
      </table><br>
      </form>
      [{/IFDEF}]

      [{IFDEF ACCESSPATH_VIEW_ACTIVE && ACL_accesspaths_view}]
      <h2>TR{Permissions of users}}</h2>
      <form action="userview.php?username=${USERNAME_ENCODED}" method="POST">
      <input type="hidden" name="selected_users[]" value="${USERNAME}">


        <div class="datatablesearch">
              TR{Filter}}:
              <input type="text" class="filterbox" onkeyup="filterDataTable('userpermissionlist',1,this.value);">
         </div>
	


      <table id="userpermissionlist" class="datatable">
      <thead>
      <tr>
        <th width="20">#</th>
        <th>TR{Access-Path}}</th>
        <th>TR{Permission}}</th>
        <th>TR{Inherit from Group}}</th>
      </tr>
      </thead>
      <tfoot>
      <tr>
        <td colspan="4">

          <table class="datatableinline">
            <colgroup>
              <col width="100%">
            </colgroup>
            <tr>
              <td>
                [{IFDEF ACCESSPATH_EDIT_ACTIVE && ACL_accesspaths_unassign}]
                <input type="submit" name="unassign_permission" value="TR{Unassign}}" class="unbtn">
                TR{<b>Note:</b> You can not unassign permissions from user, which are inherited by a group.}}
                [{/IFDEF}]
              </td>
            </tr>
          </table>

        </td>
      </tr>
      </tfoot>
      <tbody>
      [{LOOP paths}]
      <tr>
        <td>[{IFDEF ACCESSPATH_EDIT_ACTIVE && ACL_accesspaths_unassign}]<input type="checkbox" name="selected_accesspaths[]" value="${paths}{path}">[{/IFDEF}]</td>
        <td><a href="accesspathview.php?accesspath=${paths}{encodedPath}">${paths}{path}</a></td>
        <td>${paths}{perm}</td>
        <td>${paths}{inherited}</td>
      </tr>
      [{/LOOP}]
      </tbody>
      </table>
      </form>
      <br>
      [{/IFDEF}]

[{IFDEF AUTHENTICATION_ACTIVE && IS_PROJECT_MANAGER && ACL_projectmanagers_view}]
<h2>TR{User is project manager of:}}</h2>
<form action="userview.php?username=${USERNAME_ENCODED}" method="POST">
<input type="hidden" name="selected_users[]" value="${USERNAME}">
<table class="datatable">
  <thead>
    <tr>
      <th width="20"></th>
      <th></th>
    </tr>
  </thead>
  <tfoot>
    <tr>
      <td colspan="2">
        <table class="datatableinline">
          <colgroup>
            <col width="50%">
            <col width="50%">
          </colgroup>
          <tr>
            <td>
              [{IFDEF ACL_projectmanagers_unassign}]
              <input type="submit" name="unassign_projectmanager" value="TR{Unassign}}" class="unbtn">
              [{/IFDEF}]
            </td>
            <td align="right">
            </td>
          </tr>
        </table>
      </td>
    </tr>
  </tfoot>
  <tbody>
    [{LOOP restrictedpaths}]
    <tr>
      <td>[{IFDEF ACL_projectmanagers_unassign}]<input type="checkbox" name="selected_accesspaths[]" value="${restrictedpaths}{path}">[{/IFDEF}]</td>
      <td><a href="accesspathview.php?accesspath=${restrictedpaths}{encodedPath}">${restrictedpaths}{path}</a> <small>(TR{+All sub Access-Path's}})</small></td>
    </tr>
    [{/LOOP}]
  </tbody>
</table>
</form>
<br>
[{/IFDEF}]


[{INCLUDE templates/footer.html}]
Return current item: iF.SVNAdmin