tabulka=$tabulka; $this->file=$file; $this->action=$action; $this->method=$method; $this->style=$style; } //zacatek formularu function zacatek($postfix='') { echo "\n
action."\" method=\"".$this->method."\""; if ($this->file) echo " enctype=\"multipart/form-data\""; if ($this->style!='') echo " style=\"".$this->style."\""; if ($postfix!='') echo " $postfix"; echo ">\n"; if ($this->tabulka) echo "\n"; } //konec formularu a submit tlacitko function konec($submit='Odeslat',$id='',$name='',$close_window='',$colspan=0,$prefix='') { if ($this->tabulka){ if($colspan==1){ echo "\n\n\n\n
 ".$prefix."\n"; } else{ echo "
 ".$prefix."\n"; } } echo "\n"; if($close_window!=''){ echo "   "; } if ($this->tabulka) echo "
\n"; echo "
\n"; } function captcha($popis='Kontrolní kód'){ if (($this->tabulka) && ($this->zacal_blok==0)) echo "\n\n "; echo $popis."\n"; if (($this->tabulka) && ($this->zacal_blok==0)) echo "\n\n"; add_sess('znak', strtoupper(substr(md5(rand()),0,5))); echo "".lng(antispam)."\n"; if ($this->tabulka) { if (($this->je_blok==1) && ($this->zacal_blok==0)) $this->zacal_blok=1; //zacal blok, neukoncujeme tabulku if ($this->zacal_blok==0) echo "\n\n"; } } function text($popis, $name, $value='', $title='', $postfix='',$postinput='',$tr_in='') { //input pole text if (($this->tabulka) && ($this->zacal_blok==0)) echo "\n\n "; echo $popis."\n"; if (($this->tabulka) && ($this->zacal_blok==0)) echo "\n\n"; echo "\n"; if($postinput){ echo $postinput; echo "\n"; } if ($this->tabulka) { if (($this->je_blok==1) && ($this->zacal_blok==0)) $this->zacal_blok=1; //zacal blok, neukoncujeme tabulku if ($this->zacal_blok==0) echo "\n\n"; } } function password($popis, $name, $title='', $postfix='',$postinput='') { //input pole text if (($this->tabulka) && ($this->zacal_blok==0)) echo "\n\n "; echo $popis."\n"; if (($this->tabulka) && ($this->zacal_blok==0)) echo "\n\n"; echo "\n"; if($postinput){ echo $postinput; echo "\n"; } if ($this->tabulka) { if (($this->je_blok==1) && ($this->zacal_blok==0)) $this->zacal_blok=1; //zacal blok, neukoncujeme tabulku if ($this->zacal_blok==0) echo "\n\n"; } } function hidden($name, $value='') { //input pole hidden echo "\n"; } function submit($popis, $value, $onclick, $name='Submit', $title='', $class='submit', $postfix='') { //input pole submit if (($this->tabulka) && ($this->zacal_blok==0)) echo "\n\n "; echo $popis."\n"; if (($this->tabulka) && ($this->zacal_blok==0)) echo "\n\n"; echo "\n"; if ($this->tabulka) { if (($this->je_blok==1) && ($this->zacal_blok==0)) $this->zacal_blok=1; //zacal blok, neukoncujeme tabulku if ($this->zacal_blok==0) echo "\n\n"; } } function button($popis, $value, $onclick, $title='', $class='submit', $postfix='') { //input pole button if (($this->tabulka) && ($this->zacal_blok==0)) echo "\n\n "; echo $popis."\n"; if (($this->tabulka) && ($this->zacal_blok==0)) echo "\n\n"; echo "\n"; if ($this->tabulka) { if (($this->je_blok==1) && ($this->zacal_blok==0)) $this->zacal_blok=1; //zacal blok, neukoncujeme tabulku if ($this->zacal_blok==0) echo "\n\n"; } } function file($popis, $name, $value='') { //input pole file if (($this->tabulka) && ($this->zacal_blok==0)) echo "\n\n "; echo $popis."\n"; if (($this->tabulka) && ($this->zacal_blok==0)) echo "\n\n"; echo "\n"; if ($this->tabulka) { if (($this->je_blok==1) && ($this->zacal_blok==0)) $this->zacal_blok=1; //zacal blok, neukoncujeme tabulku if ($this->zacal_blok==0) echo "\n\n"; } } function checkbox($popis, $name, $title='', $value=1, $checked=0, $postfix='', $postinput='') { //input pole checkbox if (($this->tabulka) && ($this->zacal_blok==0)) echo "\n\n "; echo $popis."\n"; if (($this->tabulka) && ($this->zacal_blok==0)) echo "\n\n"; echo ""; echo " $title\n"; if($postinput){ echo $postinput; echo "\n"; } if ($this->tabulka) { if (($this->je_blok==1) && ($this->zacal_blok==0)) $this->zacal_blok=1; //zacal blok, neukoncujeme tabulku if ($this->zacal_blok==0) echo "\n\n"; } } function radio($popis, $name, $title='', $value=1, $checked=0, $postfix='') { //input pole radio if (($this->tabulka) && ($this->zacal_blok==0)) echo "\n\n "; echo $popis."\n"; if (($this->tabulka) && ($this->zacal_blok==0)) echo "\n\n"; echo ""; echo " $title\n"; if ($this->tabulka) { if (($this->je_blok==1) && ($this->zacal_blok==0)) $this->zacal_blok=1; //zacal blok, neukoncujeme tabulku if ($this->zacal_blok==0) echo "\n\n"; } } function textarea($popis, $name, $value='', $rows=6, $cols=40, $title='', $postfix='', $tr_in='') { //input pole textarea if (($this->tabulka) && ($this->zacal_blok==0)) echo "\n\n "; echo $popis."\n"; if (($this->tabulka) && ($this->zacal_blok==0)) echo "\n\n"; echo "\n"; if ($this->tabulka) { if (($this->je_blok==1) && ($this->zacal_blok==0)) $this->zacal_blok=1; //zacal blok, neukoncujeme tabulku if ($this->zacal_blok==0) echo "\n\n"; } } function textarea_wide($popis, $name, $value='', $title='', $postfix='') { //input pole textarea if (($this->tabulka) && ($this->zacal_blok==0)) echo "\n\n "; echo $popis."
\n"; // if (($this->tabulka) && ($this->zacal_blok==0)) echo "\n\n"; echo "\n"; if ($this->tabulka) { if (($this->je_blok==1) && ($this->zacal_blok==0)) $this->zacal_blok=1; //zacal blok, neukoncujeme tabulku if ($this->zacal_blok==0) echo "\n\n"; } } //pole select (options) function select($popis, $name, $values, $selected='', $postfix='', $styles='') { if ($this->tabulka) echo "\n\n "; echo $popis."\n"; if ($this->tabulka) echo "\n\n"; echo "\n"; if ($this->tabulka) echo "\n\n"; } function datum($popis, $dayname, $monthname, $yearname, $d, $m, $y, $year_begin="__DEFAULT") { if ($this->tabulka) echo "\n\n"; echo $popis."\n"; if ($this->tabulka) echo "\n\n"; if ($year_begin=="__DEFAULT") $year_begin=date("Y"); echo "\n"; echo "\n"; echo "\n"; if ($this->tabulka) echo "\n\n"; } //vlozi poznamku function poznamka($poznamka,$head="") { if ($this->tabulka){ if($head!=""){ echo "\n $head\n"; } else{ echo "\n\n"; } } echo $poznamka."\n"; if ($this->tabulka){ echo "\n\n"; } } //zacne blok (blok tvori pole v jednom radku, vhodne pro pouziti HIDDEN polozek) function startBlok() { $this->je_blok=1; } //ukoncuje blok function stopBlok() { $this->je_blok=0; $this->zacal_blok=0; echo "\n\n"; } } ?>