    <script language="JavaScript" type="text/javascript">
    function updateServers()
    {
    <?php foreach ($Servers as $Server){ ?>
        <?php if($Server['httpd_port_yn']==1){ ?>
        url = 'info.php?server_ip=<?php echo $Server['server_ip']; ?>&port=<?php echo $Server['httpd_port']; ?>&ss=true';
        a<?php echo $Server['server_id']; ?>_1 = new ajax();
        a<?php echo $Server['server_id']; ?>_1.makeRequest(url,'img<?php echo $Server['server_id']; ?>_1',1);
        <?php } ?>
        <?php if($Server['smtp_port_yn']==1){ ?>
        url = 'info.php?server_ip=<?php echo $Server['server_ip']; ?>&port=<?php echo $Server['smtp_port']; ?>&ss=true';
        a<?php echo $Server['server_id']; ?>_2  = new ajax();
        a<?php echo $Server['server_id']; ?>_2.makeRequest(url,'img<?php echo $Server['server_id']; ?>_2',1);
        <?php } ?>
        <?php if($Server['ftp_port_yn']==1){ ?>
        url = 'info.php?server_ip=<?php echo $Server['server_ip']; ?>&port=<?php echo $Server['ftp_port']; ?>&ss=true';
        a<?php echo $Server['server_id']; ?>_3  = new ajax();
        a<?php echo $Server['server_id']; ?>_3.makeRequest(url,'img<?php echo $Server['server_id']; ?>_3',1);
        <?php } ?>
        <?php if($Server['pop3_port_yn']==1){ ?>
        url = 'info.php?server_ip=<?php echo $Server['server_ip']; ?>&port=<?php echo $Server['pop3_port']; ?>&ss=true';
        a<?php echo $Server['server_id']; ?>_4  = new ajax();
        a<?php echo $Server['server_id']; ?>_4.makeRequest(url,'img<?php echo $Server['server_id']; ?>_4',1);
        <?php } ?>
        <?php if($Server['mysql_port_yn']==1){ ?>
        url = 'info.php?server_ip=<?php echo $Server['server_ip']; ?>&port=<?php echo $Server['mysql_port']; ?>&ss=true';
        a<?php echo $Server['server_id']; ?>_5  = new ajax();
        a<?php echo $Server['server_id']; ?>_5.makeRequest(url,'img<?php echo $Server['server_id']; ?>_5',1);
        <?php } ?>
    <?php } ?>
    }
    </script>
    <form name='form1' id='form1' action="<?php echo $PHP_SELF; ?>" method="post"> 
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="list_table">          
        <tr>
          <td colspan="8" class="text_grey">
          <img src="elements<?php echo PATH_SEP; ?>default<?php echo PATH_SEP; ?>templates<?php echo PATH_SEP; ?>alp_admin<?php echo PATH_SEP; ?>images<?php echo PATH_SEP; ?>spacer.gif" alt="" width="100%" height="1" />
          </td>
        </tr>
        <tr>
          <td class="text_grey" width="5%">
          <img src="elements<?php echo PATH_SEP; ?>default<?php echo PATH_SEP; ?>templates<?php echo PATH_SEP; ?>alp_admin<?php echo PATH_SEP; ?>images<?php echo PATH_SEP; ?>spacer.gif" alt="" width="100%" height="1" />
          </td>
          <td class="text_grey" colspan="2">
            <div align='left'>
            <input type="checkbox" class="search" name="refr" value='1' <?php if($conf['s_status_refresh']>0)echo "checked=\"checked\""; ?> />
            <?php echo $BL->props->lang['update_every']; ?>&nbsp;
            <input type='text' class='search' name='s_status_refresh' value='<?php echo $conf['s_status_refresh']; ?>' size='5'>&nbsp;<?php echo $BL->props->lang['seconds']; ?>
            <input type='hidden' name='cmd' value='<?php echo $cmd; ?>' />
            <input type='hidden' name='change_refresh_rate' value='1' />
            <input type='submit' class='search1' name='update' value='<?php echo $BL->props->lang['Update']; ?>' />
            </div>
          </td>
        </tr>
        <tr> 
          <td colspan="7" class="text_grey"><img src="elements<?php echo PATH_SEP; ?>default<?php echo PATH_SEP; ?>templates<?php echo PATH_SEP; ?>alp_admin<?php echo PATH_SEP; ?>images<?php echo PATH_SEP; ?>spacer.gif" alt="" width="100%" height="1" /></td>
        </tr>
    </table>
    </form>
    <br />
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="list_table">
        <tr> 
          <td class="tdheading" colspan="8">
          <b>&nbsp;<?php echo $BL->props->lang['~server_status']; ?></b>
          </td>
        </tr>           
        <tr> 
          <td colspan="8" class="text_grey"><img src="elements<?php echo PATH_SEP; ?>default<?php echo PATH_SEP; ?>templates<?php echo PATH_SEP; ?>alp_admin<?php echo PATH_SEP; ?>images<?php echo PATH_SEP; ?>spacer.gif" alt="" width="100%" height="1" /></td>
        </tr>
        <tr> 
          <td class='text_grey' width='5%'></td>
          <td class='text_grey'><div align='left'><b>&nbsp;<?php echo $BL->props->lang['server']; ?></b></div></td>
          <td class='text_grey'><div align='left'><b>HTTPD</b> </div></td>
          <td class='text_grey'><div align='left'><b>SMTP</b> </div></td>
          <td class='text_grey'><div align='left'><b>FTP</b> </div></td>
          <td class='text_grey'><div align='left'><b>POP3</b> </div></td>
          <td class='text_grey'><div align='left'><b>MYSQL</b> </div></td>
          <td class='text_grey'><div align='center'><b></b></div></td>
        </tr>
        <?php foreach ($Servers as $Server) { ?>
        <tr>
          <td colspan='8' class='text_grey'>
          <img src="elements<?php echo PATH_SEP; ?>default<?php echo PATH_SEP; ?>templates<?php echo PATH_SEP; ?>alp_admin<?php echo PATH_SEP; ?>images<?php echo PATH_SEP; ?>menu_line_lightgreen-long.jpg" width="100%" height="1" /></td>
        </tr>       
        <tr> 
          <td class='text_grey'>
          <div style="padding-left:5px;">
            <img src='elements<?php echo PATH_SEP; ?>default<?php echo PATH_SEP; ?>templates<?php echo PATH_SEP; ?>alp_admin<?php echo PATH_SEP; ?>images<?php echo PATH_SEP; ?><?php echo $Server['server_type']."-icon-small"; ?>.gif' border='0' />
          </div>
          </td>
          <td class='text_grey'>&nbsp;<?php echo $Server['server_name']; ?></td>
          <td class='text_grey'><div id="img<?php echo $Server['server_id']; ?>_1" name="img<?php echo $Server['server_id']; ?>_1">---</div></td>
          <td class='text_grey'><div id="img<?php echo $Server['server_id']; ?>_2" name="img<?php echo $Server['server_id']; ?>_2">---</div></td>
          <td class='text_grey'><div id="img<?php echo $Server['server_id']; ?>_3" name="img<?php echo $Server['server_id']; ?>_3">---</div></td>
          <td class='text_grey'><div id="img<?php echo $Server['server_id']; ?>_4" name="img<?php echo $Server['server_id']; ?>_4">---</div></td>
          <td class='text_grey'><div id="img<?php echo $Server['server_id']; ?>_5" name="img<?php echo $Server['server_id']; ?>_5">---</div></td>
          <td class='text_grey'><div align='center'></div></td>       
        </tr>
         <?php } ?>
        <tr> 
          <td colspan="8" class="text_grey"><img src="elements<?php echo PATH_SEP; ?>default<?php echo PATH_SEP; ?>templates<?php echo PATH_SEP; ?>alp_admin<?php echo PATH_SEP; ?>images<?php echo PATH_SEP; ?>spacer.gif" alt="" width="100%" height="1" /></td>
        </tr>           
      </table>
      <br />
      <script language="javascript">updateServers();</script>
        <?php if($conf['s_status_refresh']>0){ ?>
        <meta http-equiv="refresh" content="<?php echo $conf['s_status_refresh']; ?>;URL=admin.php?cmd_prev=<?php echo $BL->REQUEST['cmd_prev'] ?>&cmd=main">
        <?php } ?>  
        <form name='form2' id='form2' action="admin.php" method="post">
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="list_table">
        <tr> 
          <td class="tdheading" colspan="4">
          <b>&nbsp;<?php echo $BL->props->lang['Who_is_online']." : ".date('d-M-Y H:i:s'); ?></b>
          </td>
          <td class="tdheading" colspan="2">
          <b><?php echo $BL->props->lang['Show_activity']; ?></b>
          </td>
          <td class="tdheading" colspan="2">          
          <select name="sec" class="search" onchange="javascript:this.form.submit();">
          <option value="300"   <?php if($Sec==300)echo "selected=\"selected\""; ?>   >5 <?php echo $BL->props->lang['minutes']; ?></option>
          <option value="600"   <?php if($Sec==600)echo "selected=\"selected\""; ?>   >10 <?php echo $BL->props->lang['minutes']; ?></option>
          <option value="900"   <?php if($Sec==900)echo "selected=\"selected\""; ?>   >15 <?php echo $BL->props->lang['minutes']; ?></option>
          <option value="1800"  <?php if($Sec==1800)echo "selected=\"selected\""; ?>  >30 <?php echo $BL->props->lang['minutes']; ?></option>
          <option value="3600"  <?php if($Sec==3600)echo "selected=\"selected\""; ?>  >1 <?php echo $BL->props->lang['hour']; ?></option>
          <option value="10800" <?php if($Sec==10800)echo "selected=\"selected\""; ?> >3 <?php echo $BL->props->lang['hours']; ?></option>
          <option value="21600" <?php if($Sec==21600)echo "selected=\"selected\""; ?> >6 <?php echo $BL->props->lang['hours']; ?></option>
          <option value="43200" <?php if($Sec==43200)echo "selected=\"selected\""; ?> >12 <?php echo $BL->props->lang['hours']; ?></option>
          <option value="84800" <?php if($Sec==84800)echo "selected=\"selected\""; ?> >24 <?php echo $BL->props->lang['hours']; ?></option>
          </select>
          &nbsp;&nbsp;
          </td>
        </tr>  
    
        <tr> 
          <td colspan="8" class="text_grey"><img src="elements<?php echo PATH_SEP; ?>default<?php echo PATH_SEP; ?>templates<?php echo PATH_SEP; ?>alp_admin<?php echo PATH_SEP; ?>images<?php echo PATH_SEP; ?>spacer.gif" alt="" width="100%" height="1" /></td>
        </tr>
   
        <tr> 
          <td class='text_grey' width='5%'></td>
          <td class='text_grey'><div align='left'><b><?php echo $BL->props->lang['user']; ?></b></div></td>
          <td class='text_grey'><div align='left'><b><?php echo $BL->props->lang['Entry_time']; ?></b> </div></td>
          <td class='text_grey'><div align='left'><b><?php echo $BL->props->lang['last_click_time']; ?></b> </div></td>
          <td class='text_grey'><div align='left'><b><?php echo $BL->props->lang['visiting']; ?></b> </div></td>
          <td class='text_grey'><div align='left'><b><?php echo $BL->props->lang['IP']; ?></b> </div></td>
          <td class='text_grey'><div align='left'><b><?php echo $BL->props->lang['in_basket']; ?></b> </div></td>
          <td class='text_grey'><div align='center'><b></b></div></td>
        </tr>
        <?php foreach ($Whoisonline as $data) { ?>
        <tr>
          <td colspan='8' class='text_grey'>
          <img src="elements<?php echo PATH_SEP; ?>default<?php echo PATH_SEP; ?>templates<?php echo PATH_SEP; ?>alp_admin<?php echo PATH_SEP; ?>images<?php echo PATH_SEP; ?>menu_line_lightgreen-long.jpg" width="100%" height="1" /></td>
        </tr>       
        <tr> 
          <td class='text_grey'>
          <div style="padding-left:5px;">
           &nbsp;
          </div>
          </td>
          <td class='text_grey'><?php echo $data['user_name']; ?></td>
          <td class='text_grey'><?php echo date('d-M-Y H:i:s', strtotime($data['entry_time'])) ?></td>
          <td class='text_grey'><?php echo date('H:i:s', strtotime($data['log_time'])) ?></td>
          <td class='text_grey'><?php echo $data['visiting_page']; ?></td>
          <td class='text_grey'><?php echo $data['user_ip']; ?></td>
          <td class='text_grey'><?php echo $data['items_in_basket']; ?></td>
          <td class='text_grey'><div align='center'></div></td>       
        </tr>
         <?php } ?>
        <tr> 
          <td colspan="8" class="text_grey"><img src="elements<?php echo PATH_SEP; ?>default<?php echo PATH_SEP; ?>templates<?php echo PATH_SEP; ?>alp_admin<?php echo PATH_SEP; ?>images<?php echo PATH_SEP; ?>spacer.gif" alt="" width="100%" height="1" /></td>
        </tr>           
      </table>
      </form> 
      <br />