Changeset 17519 for schedule/Module


Ignore:
Timestamp:
01/20/14 12:15:23 (11 years ago)
Author:
tose
Message:
Fixed displaying of disabled controls for firefox browser.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • schedule/Module/control.php

    r17518 r17519  
    416416                                        input_data.setAttribute("value","<?php echo $date_time; ?>"),
    417417                                        input_data.setAttribute("autofocus","true"),
    418                                         input_data.setAttribute("disabled")
     418                                        input_data.setAttribute("disabled", "disabled")
    419419                                    );
    420420                                <?php } else { ?>
     
    442442                                        input_data.setAttribute("type","button"),
    443443                                        input_data.setAttribute("value","+"),
    444                                         input_data.setAttribute("disabled"),
     444                                        input_data.setAttribute("disabled", "disabled"),
    445445                                        input_data.onclick = function(){
    446446                                            addRowCloneNew("list_<?php echo $cnt; ?>");
     
    471471                                newtd_c2.setAttribute("width","138");
    472472                                newtd_c2.setAttribute("align","center");
     473                                <?php   
     474                                   $cur_measurement = $rows[fMeasurementTypeKey];
     475                                   $selectm = mysql_query("SELECT fMeasurement FROM measurement WHERE fMeasurementKey = '$cur_measurement'");
     476                                   $rowmeasure = mysql_fetch_array($selectm);
     477                                ?>
    473478                                newtd_c2.appendChild(
    474                                    selection = document.createElement("select"),
    475                                    <?php   
    476                                    $selectm = mysql_query("SELECT * FROM measurement");
    477                                    while($rowmeasure = mysql_fetch_array($selectm))
    478                                    {
    479                                    ?>
    480                                    selection.appendChild(
    481                                    option = document.createElement("option"),
    482                                    option.setAttribute("value","<?php echo $rowmeasure['fMeasurementKey']; ?>"),
    483                                    <?php  if($rows['fMeasurementTypeKey']==$rowmeasure['fMeasurementKey']){ echo "option.setAttribute('selected',true),";}   ?>
    484                                    option.appendChild(document.createTextNode("<?php echo $rowmeasure['fMeasurement']; ?>"))
    485                                    ),
    486                                    <?php
    487                                    }
    488                                    ?>
    489                                    selection.setAttribute('id','measure'),
    490                                    selection.setAttribute('class','measure'),
    491                                    selection.setAttribute("disabled")
     479                                   selection = document.createElement("input"),
     480                                   selection.setAttribute("value", "<?php echo $rowmeasure['fMeasurement']; ?>"),
     481                                   selection.setAttribute("type","text"),
     482                                   selection.setAttribute("class","selected"),
     483                                   selection.setAttribute("size", "12"),
     484                                   selection.setAttribute("placeholder", "Value"),
     485                                   selection.setAttribute("disabled", "disabled")
    492486                                );
    493487                                newtd_c2.setAttribute("width","115");
     
    497491                                        input_data.setAttribute("type","button"),
    498492                                        input_data.setAttribute("value","+"),
    499                                         input_data.setAttribute("disabled"),
     493                                        input_data.setAttribute("disabled", "disabled"),
    500494                                        input_data.onclick = function(){
    501495                                            return addRow(newtr<?php echo $cntrow; ?>);
     
    506500                                newtd_c3.setAttribute("width","98");
    507501                                newtd_c3.setAttribute("align","center");
    508                                 newtd_c3.appendChild(
    509                                 selection = document.createElement("select"),
    510502                                <?php
    511                                 $select = mysql_query("SELECT * FROM source");
    512                                 while($rowsource = mysql_fetch_array($select))
    513                                 {
    514                                 ?>
    515                                         selection.appendChild(
    516                                         option = document.createElement("option"),
    517                                         option.setAttribute('value','<?php echo $rowsource['fSourceKEY']; ?>'),
    518                                         <?php if($rows['fSourceKey'] == $rowsource['fSourceKEY']){ echo "option.setAttribute('selected',true),"; } ?>
    519                                         option.appendChild(document.createTextNode("<?php echo $rowsource['fSourceName']; ?>"))
    520                                         ),
    521                                 <?php
    522                                 }
    523                                 ?>
    524                                 selection.setAttribute('id','source'),                                                                                                                                                  // End of retrieving
    525                                 selection.setAttribute('class','source'),
    526                                 selection.setAttribute("disabled")
    527                                     // End of retrieving
     503                                $cur_source = $rows['fSourceKey'];
     504                                $select = mysql_query("SELECT fSourceName FROM source WHERE fSourceKey = '$cur_source'");
     505                                $rowsource = mysql_fetch_array($select); ?>
     506                                newtd_c3.appendChild(
     507                                   selection = document.createElement("input"),
     508                                   selection.setAttribute("value", "<?php echo $rowsource['fSourceName']; ?>"),
     509                                   selection.setAttribute("type","text"),
     510                                   selection.setAttribute("class","selected"),
     511                                   selection.setAttribute("size", "12"),
     512                                   selection.setAttribute("placeholder", "Value"),
     513                                   selection.setAttribute("disabled", "disabled")
    528514                                );
    529515
     
    538524                                        input_data.setAttribute("value","<?php echo $rows['fData']; ?>"),
    539525                                        input_data.setAttribute("placeholder","Value"),
    540                                         input_data.setAttribute("disabled")
     526                                        input_data.setAttribute("disabled", "disbaled")
    541527                                );
    542528
     
    550536                                        input_data.setAttribute("type","button"),
    551537                                        input_data.setAttribute("value","Delete"),
    552                                         input_data.setAttribute("disabled"),
     538                                        input_data.setAttribute("disabled", "disabled"),
    553539                                        input_data.onclick = function(){
    554540                                            return clearNode(newtr<?php echo $cntrow; ?>);
     
    662648                                        input_data.setAttribute("type","button"),
    663649                                        input_data.setAttribute("value","Delete Main"),
    664                                         input_data.setAttribute("disabled"),
     650                                        input_data.setAttribute("disabled", "disabled"),
    665651                                        input_data.onclick = function(){ return clearNode(newdiv<?php echo $cnt; ?>); }
    666652                                );
Note: See TracChangeset for help on using the changeset viewer.