Changeset 6015

Show
Ignore:
Timestamp:
07/14/08 18:27:30 (3 months ago)
Author:
p_lindheimer
Message:

radio buttons should have different and unique ids (the names should be the same but not the ids)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/trunk/amp_conf/htdocs/admin/components.class.php

    r5903 r6015  
    646646                $output = ''; 
    647647                 
     648                $count = 0; 
    648649                foreach ($valarray as $item) { 
    649650                        $itemvalue = (isset($item['value']) ? $item['value'] : ''); 
     
    652653                         
    653654                        $tabindex = guielement::gettabindex(); 
    654                         $output .= "<input type=\"radio\" name=\"$this->_elemname\" id=\"$this->_elemname\" tabindex=$tabindex value=\"$this->_elemname=$itemvalue\"$itemchecked/>$itemtext&nbsp;&nbsp;&nbsp;&nbsp;\n"; 
     655                        $output .= "<input type=\"radio\" name=\"$this->_elemname\" id=\"$this->_elemname$count\" tabindex=$tabindex value=\"$this->_elemname=$itemvalue\"$itemchecked/>$itemtext&nbsp;&nbsp;&nbsp;&nbsp;\n"; 
     656                        $count++; 
    655657                } 
    656658                return $output; 
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads