"PHP" / Говнокод #5909 Ссылка на оригинал

0

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. 14
  15. 15
  16. 16
  17. 17
  18. 18
  19. 19
  20. 20
  21. 21
  22. 22
  23. 23
function make_category_select($name,$selected='',$not='',$additional='')
        {
                global $udb,$admin,$evoLANG,$cat_cache;
                
                $this->parent_name = $this->parent_name != "" ? $this->parent_name : $evoLANG['noparent'];
        
                if ($this->onlyoptions != 1)
                {
                        $a .= "<select name=\"".$name."\" ".$additional.">\n";
                }
                
                $a .=  '<option value=""> '.$this->parent_name." </option>\n";
                
 
                $a .= $this->make_cat_options('0',$selected,1,$not);
 
                if ($this->onlyoptions != 1)
                {
                        $a .= '</select>';
                }
 
                return $a;
        }

Запостил: qbasic qbasic, (Updated )

Комментарии (1) RSS

  • Настоящая имитация свободы в коробке из четырёх стен.
    Ответить

Добавить комментарий

Переведи на "PHP", guest!

    А не использовать ли нам bbcode?


    8