Ignore:
Timestamp:
2008/11/01 16:22:26 (15 years ago)
Author:
Seasoft
Message:

merge 17654,17656,17657,17659,17660,17666,17669

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/comu-ver2/data/module/Smarty/libs/plugins/function.html_options.php

    r15532 r17676  
    3131{ 
    3232    require_once $smarty->_get_plugin_filepath('shared','escape_special_chars'); 
    33      
     33 
    3434    $name = null; 
    3535    $values = null; 
     
    3737    $selected = array(); 
    3838    $output = null; 
    39      
     39 
    4040    $extra = ''; 
    41      
     41 
    4242    foreach($params as $_key => $_val) { 
    4343        switch($_key) { 
     
    4545                $$_key = (string)$_val; 
    4646                break; 
    47              
     47 
    4848            case 'options': 
    4949                $$_key = (array)$_val; 
    5050                break; 
    51                  
     51 
    5252            case 'values': 
    5353            case 'output': 
     
    5858                $$_key = array_map('strval', array_values((array)$_val)); 
    5959                break; 
    60                  
     60 
    6161            default: 
    6262                if(!is_array($_val)) { 
     
    7575 
    7676    if (isset($options)) { 
    77          
     77 
    7878        foreach ($options as $_key=>$_val) 
    7979            $_html_result .= smarty_function_html_options_optoutput($_key, $_val, $selected); 
    8080 
    8181    } else { 
    82          
     82 
    8383        foreach ($values as $_i=>$_key) { 
    8484            $_val = isset($output[$_i]) ? $output[$_i] : ''; 
     
    101101            smarty_function_escape_special_chars($key) . '"'; 
    102102        if (in_array((string)$key, $selected)) 
    103             $_html_result .= ' selected="selected"'; 
     103            $_html_result .= ' selected'; 
    104104        $_html_result .= '>' . smarty_function_escape_special_chars($value) . '</option>' . "\n"; 
    105105    } else { 
Note: See TracChangeset for help on using the changeset viewer.