Changeset 17519
- Timestamp:
- 01/20/14 12:15:23 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
schedule/Module/control.php
r17518 r17519 416 416 input_data.setAttribute("value","<?php echo $date_time; ?>"), 417 417 input_data.setAttribute("autofocus","true"), 418 input_data.setAttribute("disabled" )418 input_data.setAttribute("disabled", "disabled") 419 419 ); 420 420 <?php } else { ?> … … 442 442 input_data.setAttribute("type","button"), 443 443 input_data.setAttribute("value","+"), 444 input_data.setAttribute("disabled" ),444 input_data.setAttribute("disabled", "disabled"), 445 445 input_data.onclick = function(){ 446 446 addRowCloneNew("list_<?php echo $cnt; ?>"); … … 471 471 newtd_c2.setAttribute("width","138"); 472 472 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 ?> 473 478 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") 492 486 ); 493 487 newtd_c2.setAttribute("width","115"); … … 497 491 input_data.setAttribute("type","button"), 498 492 input_data.setAttribute("value","+"), 499 input_data.setAttribute("disabled" ),493 input_data.setAttribute("disabled", "disabled"), 500 494 input_data.onclick = function(){ 501 495 return addRow(newtr<?php echo $cntrow; ?>); … … 506 500 newtd_c3.setAttribute("width","98"); 507 501 newtd_c3.setAttribute("align","center"); 508 newtd_c3.appendChild(509 selection = document.createElement("select"),510 502 <?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") 528 514 ); 529 515 … … 538 524 input_data.setAttribute("value","<?php echo $rows['fData']; ?>"), 539 525 input_data.setAttribute("placeholder","Value"), 540 input_data.setAttribute("disabled" )526 input_data.setAttribute("disabled", "disbaled") 541 527 ); 542 528 … … 550 536 input_data.setAttribute("type","button"), 551 537 input_data.setAttribute("value","Delete"), 552 input_data.setAttribute("disabled" ),538 input_data.setAttribute("disabled", "disabled"), 553 539 input_data.onclick = function(){ 554 540 return clearNode(newtr<?php echo $cntrow; ?>); … … 662 648 input_data.setAttribute("type","button"), 663 649 input_data.setAttribute("value","Delete Main"), 664 input_data.setAttribute("disabled" ),650 input_data.setAttribute("disabled", "disabled"), 665 651 input_data.onclick = function(){ return clearNode(newdiv<?php echo $cnt; ?>); } 666 652 );
Note:
See TracChangeset
for help on using the changeset viewer.