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

Diff of /inc/Smarty.local.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.10 by dpavlin, Mon Oct 1 14:05:16 2001 UTC revision 1.11 by dpavlin, Wed Nov 21 10:21:57 2001 UTC
# Line 151  function smarty_mod_filesize($file,$dir, Line 151  function smarty_mod_filesize($file,$dir,
151    
152  function smarty_func_input() {  function smarty_func_input() {
153          extract(func_get_arg(0));          extract(func_get_arg(0));
154          print "<input name=\"$name\" size=\"$size\" value=\"".$GLOBALS[$name]."\">";          if (strtolower($type) == "radio") {
155          print "<input type=\"hidden\" name=\"inputs_required[]\" value=\"$name\">";                  print "<input name=\"$name\" type=\"radio\" value=\"$value\"";
156                    if ($GLOBALS[$name] == $value) print " checked";
157                    print ">";
158            } else {
159                    print "<input name=\"$name\" size=\"$size\" value=\"".$GLOBALS[$name]."\">";
160            }
161          if ($type) print "<input type=\"hidden\" name=\"inputs_required_type[$name]\" value=\"$type\">";          if ($type) print "<input type=\"hidden\" name=\"inputs_required_type[$name]\" value=\"$type\">";
162  }  }
163    
164    function smarty_func_textarea() {
165            extract(func_get_arg(0));
166            print "<textarea name=\"$name\" cols=\"$cols\" rows=\"$rows\">".$GLOBALS[$name]."</textarea>";
167    }
168    
169  function smarty_func_rinput() {  function smarty_func_rinput() {
170          extract(func_get_arg(0));          extract(func_get_arg(0));
171          global $inputs_required_type;          global $inputs_required_type;
# Line 173  function smarty_func_rinput() { Line 183  function smarty_func_rinput() {
183          } else {          } else {
184                  print "<b>$desc</b>";                  print "<b>$desc</b>";
185          }          }
186            print "<input type=\"hidden\" name=\"inputs_required[]\" value=\"$name\">";
187  }  }
188  ?>  ?>

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.26