system: Linux mars.sprixweb.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
cmd: 

Direktori : /home/pfhr/public_html/admin/templates/New folder/
Upload File :
Current File : /home/pfhr/public_html/admin/templates/New folder/subadmin.html

		<div id="main-content">
			<div class="container">
				<div class="row">
					<div id="content" class="col-lg-12">
						<!-- PAGE HEADER-->
						<div class="row">
							<div class="col-sm-12">
								<div class="page-header">
									<!-- STYLER -->
									
									<!-- /STYLER -->
									<!-- BREADCRUMBS -->
									<ul class="breadcrumb">
										<li>
											<i class="fa fa-home"></i>
											<a href="index.html">Home</a>
										</li>
										<li>
											<a href="#">Settings</a>
										</li>
										<li>
											<a href="#">Sub Administrator</a>
										</li>
										<li>View All Sub Admin</li>
									</ul>
									<!-- /BREADCRUMBS -->
									<div class="clearfix">
										<h3 class="content-title pull-left">Sub Administrator</h3>
									</div>
									<div class="description">View All Sub Admin</div>
								</div>
							</div>
						</div>
						<!-- /PAGE HEADER -->
						<form name="subadmin" action="?do=subadmin&action=deletesubadmin" method="post"  onsubmit="return deleteSubadmin()">
						<!-- DATA TABLES -->
						<div class="row">
							<div class="col-md-12">
								<!-- BOX -->
								<div class="box border green">
								
									<div class="box-title">
										<h4><i class="fa fa-group"></i>Sub Administrator</h4>
										<div class="tools hidden-xs">
											<button class="btn btn-xs btn-danger" type="submit" name="delete" >Delete </button>
											<a href="javascript:;" class="reload">
												<i class="fa fa-refresh"></i>
											</a>
											<a href="javascript:;" class="collapse">
												<i class="fa fa-chevron-up"></i>
											</a>
										</div>
									</div>
									<div class="box-body">
										
										<table id="datatable1" cellpadding="0" cellspacing="0" border="0" class="datatable table table-striped table-bordered table-hover">
											<thead>
												<tr>
													  <th><input type="checkbox" name="chkMain" id="chkMain" onClick="selectall()" /></th>
													  <th>Administrator Name</th>
													  <th>Admin Username</th>
													  <th>Admin Email Id</th>
													  <th>Status</th>
													  <th>Actions</th>
						  
												</tr>
											</thead>
											<tbody>											
												<AOA:output>$show_sub_admin</AOA:output>
											</tbody>
										</table>
										
									</div>
								
								</div>
								<!-- /BOX -->
							</div>
						</div>
						<!-- /DATA TABLES -->
</form>
						<div class="separator"></div>
		
						<div class="footer-tools">
							<span class="go-top">
								<i class="fa fa-chevron-up"></i> Top
							</span>
						</div>
					</div><!-- /CONTENT-->
				</div>
			</div>
		</div>

<script language="javascript">
function selectall()
{

	var len = document.subadmin.len.value;
	for(var i=0;i<len;i++)
	{
	 if(document.subadmin.chkMain.checked==true)
	 {
	   document.getElementById("ch"+i).checked=true;
	  }
	  if(document.subadmin.chkMain.checked==false)
	   {
	   document.getElementById("ch"+i).checked=false;
	  }
	  
	}

}
function deleteSubadmin()
{
    var count=0;
	var len = document.subadmin.len.value;
	for(var i=0;i<len;i++)
	{
	  if(document.getElementById("ch"+i).checked==false)
	   {
	   	count++;
	  }
	 }
	  if(count == len)
	  {
	  	alert("Please choose an item(s) to be deleted");
		return false;
	  }
}

  </script>