Subversion Repositories Applications.papyrus

Rev

Rev 320 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 320 Rev 443
Line 15... Line 15...
15
// +----------------------------------------------------------------------+
15
// +----------------------------------------------------------------------+
16
// | Authors: Adam Daniel <adaniel1@eesus.jnj.com>                        |
16
// | Authors: Adam Daniel <adaniel1@eesus.jnj.com>                        |
17
// |          Bertrand Mansion <bmansion@mamasam.com>                     |
17
// |          Bertrand Mansion <bmansion@mamasam.com>                     |
18
// +----------------------------------------------------------------------+
18
// +----------------------------------------------------------------------+
19
//
19
//
20
// $Id: element.php,v 1.1 2005-03-30 08:50:33 jpm Exp $
20
// $Id: element.php,v 1.2 2005-09-20 17:01:22 ddelon Exp $
Line 21... Line 21...
21
 
21
 
Line 22... Line 22...
22
require_once('HTML/Common.php');
22
require_once('HTML/Common.php');
23
 
23
 
Line 243... Line 243...
243
    {
243
    {
244
        if (!$this->_persistantFreeze) {
244
        if (!$this->_persistantFreeze) {
245
            return '';
245
            return '';
246
        } else {
246
        } else {
247
            $id = $this->getAttribute('id');
247
            $id = $this->getAttribute('id');
248
            return '<input type="hidden"' .
248
            return '<input' . $this->_getAttrString(array(
249
                   (isset($id)? ' id="' . $id . '"': '') .
249
                       'type'  => 'hidden',
250
                   ' name="' . $this->getName() . '"' .
250
                       'name'  => $this->getName(),
251
                   ' value="' . htmlspecialchars($this->getValue()) . '" />';
251
                       'value' => $this->getValue()
-
 
252
                   ) + (isset($id)? array('id' => $id): array())) . ' />';
252
        }
253
        }
253
    }
254
    }
Line 254... Line 255...
254
 
255
 
255
    // }}}
256
    // }}}