CHips L MINI SHELL

CHips L pro

Current Path : /proc/2/root/usr/local/rvglobalsoft/rvsitebuilder7/modules/rvadmintools/templates/
Upload File :
Current File : //proc/2/root/usr/local/rvglobalsoft/rvsitebuilder7/modules/rvadmintools/templates/user.html

[%USE O%][%USE this.plugin%]

<script>
	var VAR1 = {};
</script>

<div class="bgbody">
	<div class="rvclear">&nbsp;</div>
	<div class="padpage">
		<div align="right">
			<div class="fleft"><h1 class="title">RVLogin User Management</h1></div>
		</div>
		<div class="rvclear">&nbsp;</div>
		<div class="databox">
	        <div class="infodata_msg">
	       	Set up Two-factor Authentication for users to make it more secure when they log in. By implementing two-step verification using the One-time Password (OTP), they have to enter the verification code when logging in via SSH or their browser. If you don't add users or enable Two-factor Authentication, they will be unable to connect via SSH.
	       	</div>
		</div>
		<div class="rvclear">&nbsp;</div>
		<div class="databox">
	        <div class="infodata_msg">
	        <div>
	        You have to enable the feature of Two-factor Authentication in order to use it, by going to: Home » Security Center » Configure Security Policies.
	        </div>
	        </div>
		</div>
		<div class="rvclear">&nbsp;</div>
		<div class="fleft">
			<div>
			Twofactor Authenticator is : 
			 	<select id="TwofactorStatus" class="">
			           <option value="1" [% IF twofactor_enable == 1 %] selected [% END %]>Enable</option>
			           <option value="0" [% IF twofactor_enable == 0 %] selected [% END %]>Disable</option>
				</select>
		      	<img src="./themes/default/images/bx_loader.gif" id="role-img-loader-2fa" style="vertical-align: middle;display:none;">
		       	<img src="./themes/default/images/icon_ok.png" id="role-imgapp-ok-2fa" style="vertical-align: middle;display:none;">
		       	<img src="./themes/default/images/RVlogin-icon-N.png" id="role-imgapp-error-2fa" style="vertical-align: middle;display:none;">
		   	</div>
	   	</div>
		<div class="rvclear">&nbsp;</div>
		<div class="fleft">
		<span><a class="btn" href="index.cgi?/rvlogin/rvlogin/action/adduser">Add User</a></span>
		</div>
		<div class="rvclear">&nbsp;</div>









	
	
	
		<div class="servHead">
			<div class="factname"><span>Account</span></div>
		    <div class="frole">Permission</div>
		    <div class="fpermission">Server Group</div>
		    <div class="fpermission">Action</div>
		</div>
	
		<div class="rvclear"></div>
		[% IF listAllStaff.size == 0 %]
		<div id="usermngList" class="bgline">
			<div class="rv2factorName" style="float:left;width:220px; padding:8px 0;"><span>-</span></div>
		    <div class="permission">-</div>
		    <div class="action">-</div>
		</div>
		<div class="linebot rvclear"></div>
		[% END %]
	
		[% FOREACH staffID IN listAllStaff.keys %]
		<div class="servList bgline">
			<div class="factname"><span>[% listAllStaff.$staffID.user_name %]</span></div>
		    <div class="frole">
		    	 <div class="rvdropdown fleft">
		    	 
		          <select id="group_desc_[% staffID %]" class="group_desc">
		          [% FOREACH staffRoleID IN listStaffRole.keys %]
		            <option value="[% staffRoleID %]" [% IF  listAllStaff.$staffID.user_group_id ==  staffRoleID %]selected[% END %]>[% listStaffRole.$staffRoleID.description %]</option>
		          [% END %]
		          </select>
		        
		        </div>
		        <div>
			       	<img src="./themes/default/images/bx_loader.gif" id="role-img-loader-[% staffID %]" style="display:none">
			        <img src="./themes/default/images/icon_ok.png" id="role-imgapp-ok-[% staffID %]" style="display:none;">
			        <img src="./themes/default/images/RVlogin-icon-N.png" id="role-imgapp-error-[% staffID %]" style="display:none;">
			    </div>
		 
		    </div>
		    <div class="fpermission">
		        <!-- <div class="icn3line" onclick="listServerGroup('[% staffID %]','group_desc_[% staffID %]','[% listAllStaff.$staffID.description %]','[% listAllStaff.$staffID.description %]');" title="List Server Group"><img src="themes/default/images/spacer.gif" alt="" /></div> -->
		    	<div class="icn3line" onclick="listServerGroup('[% staffID %]','group_desc_[% staffID %]','[% staffID %][% listAllStaff.$staffID.user_name %]','[% staffID %][% listAllStaff.$staffID.user_name %]');" title="List Server Group"><img src="themes/default/images/spacer.gif" alt="" /></div> 
		    </div>
		    <div class="fpermission">
		        <div class="icnedituser" onclick="editUserTwofactor('[% staffID %]','[% listAllStaff.$staffID.user_name %]','[% listAllStaff.$staffID.user_secret %]','[% listAllStaff.$staffID.otpauth_str %]','[% listAllStaff.$staffID.description %]');" title="Edit user"><img src="themes/default/images/spacer.gif" alt="" /></div>
		    </div>
		    <div class="fpermission">
		        <div class="icnremoveuser" onclick="removeUserTwofactor('[% staffID %]','[% listAllStaff.$staffID.user_name %]');" title="List Server Group"><img src="themes/default/images/spacer.gif" alt="" /></div>
		    </div>
		</div>
		<div class="linebot rvclear"></div>
		[% END %]
	
	
	
	</div><!-- End padpage -->
	
	
	<div id="editUserTwofactor" style="display:none;" title="Edit User">
		<div>
	    	<div class="form_txtname" style="text-align: left;">Name<span></span></div>
	        <div class="form_inputbox"><input type="text" name="usernameEdit" id="usernameEdit" value="" style="" disabled/></div>       
			<div class="rvclear"></div>
	    </div>
	    <div class="rvclear spacing"></div>   
	    
	    <div>
	    	<div class="form_txtname" style="text-align: left;">Select Premission:<span></span></div>
	        <div class="form_inputbox">
	        	<select id="serverperEdit" name="serverperEdit">
	        		
	        	</select>
	        </div>
	    </div>
		<div class="rvclear spacing"></div>
				
		<div>
	    	<div class="form_txtname" style="text-align: left;">Secret:<span></span></div>
	   		<div class="form_inputbox"><input id="gensecretedit" class="btn" style="text-align: center"  value="Gen Secret Key"></div>
			<div class="rvclear"></div>
		</div>
	    <div class="rvclear spacing"></div>
	    
	    <div>
	    	<div class="form_txtname" style="text-align: left;">QR Code:<span></span></div>
	   		<div class="form_inputbox"><img id="qrcodesecret" src=""></div>
	   		<div class="form_txtname"><span></span></div>
	   		<div class="form_inputbox"><input id="usernameold" disabled></div>
	   		<div class="form_txtname"><span></span></div>
	   		<div class="form_inputbox"><input id="secretold" disabled></div>
			<div class="rvclear"></div>
		</div>
	    <div class="rvclear spacing"></div>
	    
	    <div>
	    	<div class="form_txtname" style="text-align: left;">Security code:<span></span></div>
	        <div class="form_inputbox"><input type="text" name="seccodeedit" id="seccodeedit" value="" /></div>
			<div class="rvclear"></div>
			<div style="display:none;" id="seccode_erroredit">
				<div class="form_txtname"></div>
		        <div class="form_inputbox"><span id="seccode_error_textedit"style="color:red"></span></div>
	        </div>
		</div>
	    <div class="rvclear spacing"></div>
	    	
		<div>
	    	<div class="form_txtname" style="text-align: left;">Description:</div>
	        <div class="form_inputbox"><textarea  name="userdesedit"   id="userdesedit" class="areabox"></textarea></div>
	        
	    </div>
		<div class="rvclear spacing"></div>
	    
	    <div class="form_description">
	    	<div class="fleft">
	    		<input type="submit" name="submit" id="ConfirmUpdateUser" value="Confirm" class="btn fleft" />
	    	</div>
	    </div>
	      
		
		<div class="fleft">
		  <form action="index.cgi?/rvlogin/rvlogin/action/usermanagement" method="post">
		    		<input type="submit" name="" id="cancleEdituser" value="Cancel" class="btn" />
		  </form>
	  	</div>
	</div>
	
	<div id="listServerByStaff" style="display:none;" title="List Server Group"></div>
	<div id="dialogConfirm" style="display:none;" title="List Server Group"></div>
	<div id="dialogSucc"        style="display:none;" title=""> 
		<p> Setup RVlogin Twofactor Account </p>
		<p> Completed </p>
	</div>
	<div id="dialogUnSucc"        style="display:none;" title=""> 
		<p> Setup RVlogin Twofactor Account </p>
		<p> Error </p>
	</div>
		
</div> <!-- End Div bgbody -->

Copyright 2K16 - 2K18 Indonesian Hacker Rulez