Changeset 197


Ignore:
Timestamp:
Jul 2, 2006 10:25:43 PM (18 years ago)
Author:
scdev
Message:

Q - added accesskey element to submit_buttons array.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/TemplateGlue.inc.php

    r188 r197  
    450450{
    451451    if (is_array($submit_buttons) && !empty($submit_buttons)) {
    452         foreach ($submit_buttons as $button_name => $button_text) {
    453             ?><input type="submit" name="<?php echo oTxt($button_name) ?>" value="<?php echo oTxt($button_text); ?>" /><?php
     452        foreach ($submit_buttons as $i => $b) {
     453            if (is_array($b)) {
     454                ?><input type="submit" name="<?php echo oTxt($b['name']) ?>" value="<?php echo oTxt($b['value']); ?>" accesskey="<?php echo oTxt($b['accesskey']); ?>" /><?php
     455            } else {
     456                // For backwards compatability.
     457                ?><input type="submit" name="<?php echo oTxt($i) ?>" value="<?php echo oTxt($b); ?>" /><?php
     458            }
    454459        }
    455460    }
Note: See TracChangeset for help on using the changeset viewer.