Ignore:
Timestamp:
Mar 1, 2008, 11:02:40 PM (16 years ago)
Author:
rub
Message:

0000810: Use of new template engine [smarty]
New way for TAG_INPUT_ENABLED

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/template.class.php

    r2231 r2239  
    240240    {
    241241      $this->smarty->assign( 'ROOT_URL', get_root_url() );
     242      $this->smarty->assign( 'TAG_INPUT_ENABLED',
     243        ((is_adviser()) ? 'disabled="disabled" onclick="return false;"' : ''));
    242244      $v = $this->smarty->fetch($this->files[$handle], null, null, false);
    243245    }
    244246    else
    245247    {
     248      $this->_old->assign_vars(array('TAG_INPUT_ENABLED' =>
     249        ((is_adviser()) ? 'disabled onclick="return false;"' : '')));
    246250      $this->_old->set_filename( $handle, $this->files[$handle] );
    247251      $v = $this->_old->parse($handle, true);
Note: See TracChangeset for help on using the changeset viewer.