Changeset 2239 for trunk/include


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

Location:
trunk/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/page_header.php

    r2175 r2239  
    33// | PhpWebGallery - a PHP based picture gallery                           |
    44// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
    5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
     5// | Copyright (C) 2003-2008 PhpWebGallery Team - http://phpwebgallery.net |
    66// +-----------------------------------------------------------------------+
    77// | branch        : BSF (Best So Far)
     
    5353    'DIR'=>$lang_info['direction'],
    5454
    55     'TAG_INPUT_ENABLED' =>
    56       ((is_adviser()) ? 'disabled onclick="return false;"' : ''),
    5755    'U_HOME' => make_index_url(),
    5856    ));
  • 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.