Показать сообщение отдельно

  #2  
Старый 12.08.2009, 13:53
FireFenix
Постоянный
Регистрация: 03.06.2009
Сообщений: 385
Провел на форуме:
3178262

Репутация: 389
По умолчанию

чтобы убрать отображение подсчёта достаточно удалить
PHP код:
echo "<script type=\"text/javascript\">document.getElementById('count_" $category['id'] . "').innerHTML = '" $GLOBALS['count'] . "';</script>"
Для того чтобы вообще удалить подсчёт, то где-то так
PHP код:
<?php

  
if(@$_GET['city']) 
  {
      
$GLOBALS['start_for_links'] = "city/" htmlspecialchars($_GET['city']) . "/";
      
$GLOBALS['end_for_links'] = "sort/city_asc/page/1/";
  } else {
      
$GLOBALS['start_for_links'] = "";
      
$GLOBALS['end_for_links'] = "sort/date_desc/page/1/";
  }
  
  
$GLOBALS['host'] = $h;

  
$categories mysql_query("SELECT * FROM jb_board_cat WHERE root_category = 0 ORDER by sort_index");
  
  
cq();
  
  
$GLOBALS['tdEnd'] = round(mysql_num_rows($categories) / 2);
  
$GLOBALS['count_rows'] = 0;
  
  echo 
"<table width=100%><tr valign=top><td width=50% style=\"padding-right:10px;\">";

  while(
$category mysql_fetch_assoc($categories)) 
  {
    echo 
"<div style=\"margin-top:15px;\">";
    echo(
$category['img'] != "") ? "<div style=\"float:left; margin-right:10px; \"><img align=left src=\"" $GLOBALS['host'] . "/upload/cat/" $category['img'] . "\"></div>" " ";
    echo 
"<H4><a href=# onClick=\"showhide('9999" $category['id'] . "','9s9" $category['id'] . "');return false;\" style=\"cursor:pointer\">" $category['name_cat'] . "</a> <span id=count_" $category['id'] . "></span></H4><div id=\"9s9" $category['id'] . "\" style=\"DISPLAY: block;\">" $category['description'] . "</div><div id=\"9999" $category['id'] . "\" style=\"DISPLAY: none; padding-left:0px\">";
    echo 
"</div></div>";
    
    
$GLOBALS ['count_rows'] ++; 

    if(
$GLOBALS['count_rows'] % $GLOBALS['tdEnd'] == "0")
    {
      echo 
"</td><td width=50%>";
    }
  }

  echo 
"</td></tr></table>";
?>
 
Ответить с цитированием