
<div align="right">
<div class="r_side_frame">
<div class="side_base_frame">  <br />

<div class="side_info_frame">
      Today is: <b><?php echo date("l, d-m-Y", strtotime($today )); ?></b><br><br>
      You are logged in as: <?php echo $_SESSION['username'] ?> <br />
</div>   

<div class="side_info_frame_tall" style="height:210px;">  
Chat with users on line:
<div class="chat_frame" style="background-color:#FFF"> 
  <?php
	//for($i=0; $i < $active_users_num; $i++){
//		$uname = mysql_result($active_users_result, $i, "username");
    while($row = $active_users_result->fetch_assoc()) {
        $uname = $row["username"];
		echo "<a href=\"javascript:void(0)\" onclick=\"javascript:chatWith('". $uname ."')\">".$uname."</a><br />";
	}
	?>
</div>
</div>

<div class="side_info_frame_tall" style="border-bottom:hidden;">:
<table width="100" border="0">
    <tr>
      <td height="213" align="center" valign="top">
      	<?php 
		  if ($tlh_gab==1) {?>
        <a href="../../Tlhomeso/include/loginproc.php?user_name_text=<?php echo $_SESSION['username'] ?>"><img src="../images/logo_tlhomeso.png" width="75" height="31"  /></a>
        <?php }
		else { ?>
		<img src="../images/logo_tlhomeso.png" width="75" height="31" style="opacity:0.5;"  /></a><br />
        <?php } ?>
        <br />
      
        <?php 
		  if ($tlh_ftw==1) {?>
        <a href="../../Tlhomeso_FTW/include/loginproc.php?user_name_text=<?php echo $_SESSION['username'] ?>"><img src="../images/logo_tlhomeso(2).png" width="75" height="31"  /></a>
        <?php }
		else { ?>
		<img src="../images/logo_tlhomeso(2).png" width="75" height="31" style="opacity:0.5;"  /></a><br />
        <?php } ?>
        <br />
        
        <?php 
		  if ($rad_gab==1) {?>
        <a href="../../Radstone/include/loginproc.php?user_name_text=<?php echo $_SESSION['username'] ?>"><img src="../images/radstone_footer_logo.png" width="75" height="31"  /></a>
        <?php }
		else { ?>
		<img src="../images/radstone_footer_logo.png" width="75" height="31" style="opacity:0.5;"  /></a><br />
        <?php } ?> 
        <br />
        
              
        <?php  
		 if ($vertex==1) {?>
        <a href="../../Vertex/include/loginproc.php?user_name_text=<?php echo $_SESSION['username'] ?>"><img src="../images/logo_vertex.png" width="75" height="32" /></a>
        <?php }
		else { ?>
		<img src="../images/logo_vertex.png" width="75" height="31" style="opacity:0.5;"  /></a><br />
        <?php } ?>
 <br /><br />
 		
        <?php 
		  if ($pecus==1) {?>
        <a href="../../Pecus/include/loginproc.php?user_name_text=<?php echo $_SESSION['username'] ?>"><img src="../images/Pecus_logo.png" width="75" height="31"  /></a>
        <?php }
		else { ?>
		<img src="../images/Pecus_logo.png" width="75" height="31" style="opacity:0.5;"  /></a><br />
        <?php } ?>
        <br />

<br />
<a href="../../mainmenu.php?log=2&e=0&cx=<?php echo $access_id ?>"><img src="../images/logo_tocotex.png" width="75" height="41" /></a> 
      <br />
      <a href="../../main.php?e=0" class="link" onMouseover="ddrivetip('Log out from Tocotex', 150)" onMouseout="hideddrivetip();" >
<img src="../images/log_out.png" alt=""  width="26" height="32" /></a>
      <br />
<a href="http://www.customized.co.bw" target="_blank">Application developed by:<br />
<img src="../images/logo_small.png" alt="" width="100" height="18" /></a>

</td>
</tr>
</table>
  

</div>


</div>
</div>
</div>

