                     </td>
                    </tr>
                    <tr>
                      <td>
                      <hr size="3" width="98%" />
                        <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td class="menu" align="left" width="70%">
                            <?php
                            $query_b1 = mysqli_query($dbcnx,"SELECT COUNT(ip_id) AS ca_ip_id FROM tbl_ip");
	                      $coun_b = mysqli_fetch_array($query_b1,MYSQLI_ASSOC);
                               $query_b2 = mysqli_query($dbcnx,"SELECT COUNT(srv_id) AS cb_srv_id FROM tbl_srv");
	                        $coun_b2 = mysqli_fetch_array($query_b2,MYSQLI_ASSOC);
		                 $query_b_out = mysqli_query($dbcnx,"SELECT COUNT(ip_id) AS cc_ip_id FROM tbl_ip WHERE vkl_ip='1'");
		                  $coun_b_out = mysqli_fetch_array($query_b_out,MYSQLI_ASSOC);
                                    $query_b_zak = mysqli_query($dbcnx,"SELECT COUNT(ip_id) AS cd_ip_id FROM tbl_ip WHERE vkl_ip='0'");
		                     $coun_b_zak = mysqli_fetch_array($query_b_zak,MYSQLI_ASSOC);
	                              echo "".$TEXT['global-now']."<b> ".$coun_b2['cb_srv_id']."&nbsp;/&nbsp;".$coun_b['ca_ip_id']."</b>";
                            ?>
                            </td>
                            <?php
                            // Maintenance mode (show preduprezdenie)
                            if($result2_m['maint_run'] > 0 && $result2['administrator'] == 1)
                             {
                              echo "<td align='right'><div id='formaupdate3'>".$TEXT['global-maintenance-info']."<img alt='picture' src= 'skins/".$result2['skin']."/pass16.png' ></div></td>";
                             }
                                else 
                                {
                                 /// Maintenance mode (show alert for database update) ///
                                 if($result2_m['maint_run'] > 0 && $db_updt_needed == 1){echo "<td align='right'><div id='formaupdate4'>".$TEXT['global-maintenance-db-update']."<img alt='picture' src= 'skins/".$result2['skin']."/db-upd16.png' ></div></td>";} 
                                   elseif($result2_m['maint_run'] == 0 && $db_updt_needed == 1) {echo "<td align='right'><div id='formaupdate42'>".$TEXT['global-maintenance-db-update']."<img alt='picture' src= 'skins/".$result2['skin']."/db-upd16.png' ></div></td>";}
                                     else {
                                           // вывод ссылки на справку
                                           if(is_file ("lang/".$lang."/docs/index.html")) {echo "<td align='right' width='30%'><a href='lang/".$lang."/docs/index.html' class='img' target=_blank title='". $TEXT['global-documents']."' ><img alt='picture' src= 'skins/".$result2['skin']."/help.png' ></a></td>";}
                                              else {echo "<td align='right' width='30%'><a href='lang/ru/docs/index.html' class='img' target=_blank title='". $TEXT['global-documents']."' ><img alt='picture' src= 'skins/".$result2['skin']."/help.png' ></a></td>";}
                                           }
                                }
                          ?>
                          </tr>
                          <tr>
                          <td class="menu"><?php echo $TEXT['global-out-book']; ?><b><?php echo $coun_b_out['cc_ip_id']; ?> / <?php echo $coun_b_zak['cd_ip_id']; ?></b></td>
                          <td align="right"><a href=# onClick="window.open('about.php','popup','top=<?php echo $TEXT['user-top']; ?>,left=<?php echo $TEXT['user-left']; ?>,width=<?php echo $TEXT['about-width']; ?>,height=<?php echo $TEXT['about-height']; ?>,status=no,scrollbars=no,location=no,menubar=no,toolbar=no')" title="<?php echo $TEXT['menu-btn8-title']; ?>"><?php echo $TEXT['global-title']; ?> <?php echo $TEXT['global-vertion']; ?></a></td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                  </table>
                    </td>
                  <td class="osn_right">&nbsp;</td>
                </tr>
                <tr>
                  <td class="osn_bottom_r"></td>
                  <td class="osn_bottom"></td>
                  <td class="osn_bottom_l"></td>
                </tr>
              </table>
</body>
</html>