[ Index ]

PHP Cross Reference of osCMax 2.0.4

title

Body

[close]

/install/includes/functions/ -> html_output.php (source)

   1  <?php
   2  /*

   3  $Id: html_output.php 3 2006-05-27 04:59:07Z user $

   4  

   5    osCMax Power E-Commerce

   6    http://oscdox.com

   7  

   8    Copyright 2006 osCMax

   9  

  10    Released under the GNU General Public License

  11  */
  12  
  13    function osc_draw_input_field($name, $value = null, $parameters = null, $override = true, $type = 'text') {
  14      $field = '<input type="' . $type . '" name="' . $name . '" id="' . $name . '"';
  15      if ( ($key = $GLOBALS[$name]) || ($key = $GLOBALS['HTTP_GET_VARS'][$name]) || ($key = $GLOBALS['HTTP_POST_VARS'][$name]) || ($key = $GLOBALS['HTTP_SESSION_VARS'][$name]) && ($override) ) {
  16        $field .= ' value="' . $key . '"';
  17      } elseif ($value != '') {
  18        $field .= ' value="' . $value . '"';
  19      }
  20      if ($parameters) $field.= ' ' . $parameters;
  21      $field .= '>';
  22  
  23      return $field;
  24    }
  25  
  26    function osc_draw_password_field($name, $parameters = null) {
  27      return osc_draw_input_field($name, null, $parameters, false, 'password');
  28    }
  29  
  30    function osc_draw_hidden_field($name, $value) {
  31      return '<input type="hidden" name="' . $name . '" value="' . $value . '">';
  32    }
  33  ?>


Generated: Fri Jan 1 13:43:16 2010 Cross-referenced by PHPXref 0.7