home *** CD-ROM | disk | FTP | other *** search
/ Freelog 100 / FreelogNo100-NovembreDecembre2010.iso / Internet / CerberusFTP / CerberusInstall.exe / CerberusInstall.msi / _543CA5F1DEE95C1195D97E328E187BF8 / _CD16B94630034CE194C5D3682D638AE9 < prev    next >
Text File  |  2010-09-10  |  5KB  |  122 lines

  1. {{%AUTOESCAPE context="HTML"}}
  2.         <div id="tabs"> 
  3.             <ul> 
  4.                 <li><a href="#tabs-1">Users</a></li> 
  5.                 <li><a href="#tabs-2">Groups</a></li> 
  6.             </ul> 
  7.             <div id="tabs-1">
  8.                 <div class="caption">Cerberus Native Users</div>
  9.                 
  10.                     <form method="get" action="/usermanager/getuser">
  11.                         <fieldset title="User List">
  12.                         <legend align="left">User List</legend>
  13.  
  14.                           <table id="userList" class="display" cellSpacing="0" cellPadding="3" width="90%" border="0">
  15.                             <thead> 
  16.                                 <tr class="tablerowlight">
  17.                                   <th></th>
  18.                                   <th>Name</th>
  19.                                   <th>Group</th>
  20.                                   <th>Anon</th>
  21.                                   <th>Simple Dir</th>
  22.                                   <th>Disabled</th>
  23.                                   <th>Max Logins</th>
  24.                                   <th>Secure Control</th>
  25.                                   <th>Secure Data</th>
  26.                                 </tr>
  27.                             </thead> 
  28.                             <tbody> 
  29.                             {{#USER_LIST}}
  30.                                 <tr>
  31.                                   <td><input type="radio" name="SelectedUser" value="{{USER_NAME}}" {{USER_NAME_SELECTED:none}} /></td>
  32.                                   <td>{{USER_NAME}}</td>
  33.                                   <td><input type="text" readonly="readonly" maxlength="10" size="10" value="{{USER_GROUP}}" /></td>
  34.                                   <td><input type="checkbox" disabled="disabled"  {{USER_IS_ANONYMOUS:none}} /></td>
  35.                                   <td><input type="checkbox" disabled="disabled"  {{USER_IS_SIMPLEDIR:none}} /></td>
  36.                                   <td><input type="checkbox" disabled="disabled"  {{USER_IS_DISABLED:none}} /></td>
  37.                                   <td><input type="text" readonly="readonly"  maxlength="5" size="5"value="{{USER_MAX_LOGINS}}" /></td>
  38.                                   <td><input type="checkbox" disabled="disabled"  {{USER_REQ_SEC_CONTROL:none}} /></td>
  39.                                   <td><input type="checkbox" disabled="disabled"  {{USER_REQ_SEC_DATA:none}} /></td>
  40.                                 </tr>
  41.                             {{/USER_LIST}}
  42.                             </tbody> 
  43.                             <tfoot> 
  44.                             </tfoot> 
  45.                           </table>
  46.                             
  47.                             <div class="form_button_panel">
  48.                                 <input type="submit" name="Submit" value="Select" />
  49.                                 or
  50.                                 <input type="submit" name="Submit" value="New" />
  51.                             </div>
  52.                             <div style="clear:both;"></div>
  53.                         </fieldset>
  54.                     </form>
  55.            
  56.  
  57.                 {{>USER_DETAILS_TEMPLATE}}
  58.                 
  59.             </div> 
  60.             
  61.             <div id="tabs-2">
  62.                     <div class="caption">Cerberus Native Groups</div>
  63.                     <p>Under Construction</p>
  64.                     <p> </p>
  65.             </div> 
  66.         </div>
  67.  
  68.         <script type="text/javascript"> 
  69.         <!--
  70.             $(function(){
  71.      
  72.                 // Tabs
  73.                 $('#tabs').tabs();
  74.     
  75.  
  76.             });
  77.             
  78.             
  79.             var oTable;
  80.             
  81.             $(document).ready(function() {
  82.                 
  83.             
  84.                 oTable = $('#userList').dataTable( {
  85.                             "bJQueryUI": true,
  86.                             "sPaginationType": "full_numbers"
  87.                             } );
  88.         
  89.         
  90.                 /* Add a click handler to the rows - this could be used as a callback */
  91.                 $("#userList tbody").click(function(event) {
  92.                     $(oTable.fnSettings().aoData).each(function (){
  93.                         $(this.nTr).removeClass('row_selected');
  94.                     });
  95.                     $(event.target.parentNode).addClass('row_selected');
  96.             
  97.                     $(event.target.parentNode).find("input[name=SelectedUser]").each(function(i) {
  98.                          $(this).attr('checked', true);
  99.                     });                
  100.                 });
  101.         
  102.             } );    
  103.             
  104.             /* Get the rows which are currently selected */
  105.             function fnGetSelected( oTableLocal )
  106.             {
  107.                 var aReturn = new Array();
  108.                 var aTrs = oTableLocal.fnGetNodes();
  109.                 
  110.                 for ( var i=0 ; i<aTrs.length ; i++ )
  111.                 {
  112.                     if ( $(aTrs[i]).hasClass('row_selected') )
  113.                     {
  114.                         aReturn.push( aTrs[i] );
  115.                     }
  116.                 }
  117.                 return aReturn;
  118.             }        
  119.                 
  120.         //-->
  121.         </script> 
  122.