<?php 


$query="SELECT usergroupID,code,name,status FROM ".$prefix."usergroup";


$departmentType=mysqli_query($linkid,$query);


?>





<div id="contentwrapper">


  <div class="main_content">


    <nav>


      <div id="jCrumbs" class="breadCrumb module">


        <ul>


          <li> <a href="#"><i class="icon-home"></i></a> </li>


          <li> <a href="#">Account Manager</a> </li>


          <li> <a href="#">User Group Datagrid</a> </li>


        </ul>


      </div>


    </nav>


    <div class="row-fluid">


      <div class="span12">


        <h3 class="heading">User Group <span style="float:right; text-decoration:none; font-size:15px;"> <a href="index.php?tab=new-usergroup"><img src="images/details_open.png" /> New User Group</a> </span></li></h3>


        <table class="table table-striped table-bordered dTableR" id="dt_a">


          <thead>


            <tr>


              <th>Code</th>


              <th>Name</th>


              <th width="20%">Action</th>


            </tr>


          </thead>


          <tbody>


            <?php 


								  if($departmentType)


									{


									while($mydata = mysqli_fetch_assoc($departmentType))


									{


								  ?>


											<tr>


											  <td><?php echo $mydata['code']?></td>


											  <td><?php echo $mydata['name']?></td>


											  <td><table width="80%" border="0">


												  <tr>


													<td align="center"><a style="color:#0066CC; float:left"><img src="images/edit.png" border="0"  alt="Edit" title="Edit" width="16" height="16"></a></td>


													<td align="center"><a href="javascript:void(0);" class="delete_button"><img src="images/remove.png" alt="Delete" title="Delete" border="0"></a></td>


													<td width="33%"  align="center"><a href="javascript:void(0);">


													  <?php


													 if($mydata['active']==0) echo "<img src='images/unlocked.png' alt='Unlock' title='Unlock' border='0'>";


													 else echo "<img src='images/locked.png' alt='Lock' title='Lock'  border='0'>";


													?>


                      </a> </td>


                  </tr>


                </table></td>


											  


            </tr>


				<?php 


				 }


				 } 


?>


          </tbody>


        </table>


      </div>


    </div>


  </div>


</div>


