/[informatika.old]/html/inc/radio.inc
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /html/inc/radio.inc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations)
Wed Jun 28 07:28:32 2000 UTC (23 years, 10 months ago) by dpavlin
Branch: MAIN
CVS Tags: HEAD
Branch point for: dbi
izdvajanje radio funkcije

1 dpavlin 1.1 <?
2    
3     // Usage: radio("zap_plive","t",$zap_plive,1)
4    
5     function radio($name,$value,$current,$default) {
6     // echo "<tt>$name|$value|$current|$default|</tt>";
7     $out="<input type=\"radio\" name=\"$name\" value=\"$value\"";
8     if (isset($current) && $current==$value || !isset($current) & $default) {
9     $out.=" checked";
10     }
11     $out.=">";
12     return $out;
13     }
14     ?>

  ViewVC Help
Powered by ViewVC 1.1.26