                     </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
                            // проверка на наличие обновлений и вывод ссылки на справку
                            if($result2['chk_upd'] == "yes"){
                            $vis_upd = update_check("http://tel-spr.narod.ru/manydhcp-upd.txt",$int_proxy);
                                    if($vis_upd !== $TEXT['global-now-version'] && $vis_upd !== "") {
                                        
                                    if(is_file ("lang/".$lang."/docs/index.html")) {echo "<td align='right' width='30%'><div id='formaupdate'><a href='http://tel-spr.narod.ru/library/changelog.html' class='menu' target=_blank>".$TEXT['global-new-version-yes']."".$vis_upd."</a>&nbsp;<a href='lang/".$lang."/docs/index.html' class='bold_it' target=_blank title='". $TEXT['global-documents']."' ><img alt='picture' src= 'skins/".$result2['skin']."/help.png' ></a></div></td>";}
                                        else {echo "<td align='right' width='30%'><div id='formaupdate'>".$TEXT['global-new-version-yes']."<a href='http://tel-spr.narod.ru/library/changelog.html' class='menu' target=_blank>".$vis_upd."</a>&nbsp;<a href='lang/ru/docs/index.html' class='bold_it' target=_blank title='". $TEXT['global-documents']."' ><img alt='picture' src= 'skins/".$result2['skin']."/help.png' ></a></div></td>";}
                                    }
                                    if($vis_upd == $TEXT['global-now-version']) {
                                        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>";}
                                    }
                                    if($vis_upd == "") {
                                        if(is_file ("lang/".$lang."/docs/index.html")) {echo "<td align='right' width='30%'><div id='formaupdate'>".$TEXT['global-new-version-no']."&nbsp;<a href='lang/".$lang."/docs/index.html' class='bold_it' target=_blank title='". $TEXT['global-documents']."' ><img alt='picture' src= 'skins/".$result2['skin']."/help.png' ></a></div></td>";}
                                            else {echo "<td align='right' width='30%'><div id='formaupdate'>".$TEXT['global-new-version-no']."&nbsp;<a href='lang/ru/docs/index.html' class='bold_it' target=_blank title='". $TEXT['global-documents']."' ><img alt='picture' src= 'skins/".$result2['skin']."/help.png' ></a></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>";}
                                  
                              }
//  if($vis_upd !== trim($TEXT['global-now-version'])) {
//      echo "<div id='formaupdate'>".$TEXT['global-new-version-yes']."<a href='http://tel-spr.narod.ru/manydhcp/changelog.html' target=_blank >".$vis_upd."</a></div>";}
//  if($vis_upd == "") {echo "<div id='formaupdate'>".$TEXT['global-new-version-no']."</div>";}
//}
//
//                            if(is_file ("lang/".$lang."/docs/index.html")) {echo "<td align='right' width='30%'><a class='tooltip5' href='lang/".$lang."/docs/index.html' class='img' target=_blank ><img src= 'skins/base/help.png' ><span>".$TEXT['global-documents']."<small></small></span></a></td>";
//                            } else {echo "<td align='right' width='30%'><a class='tooltip5' href='lang/ru/docs/index.html' class='img' target=_blank ><img src= 'skins/base/help.png' ><span>".$TEXT['global-documents']."<small></small></span></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>