Index: schedule/Module/control.php
===================================================================
--- schedule/Module/control.php	(revision 17518)
+++ schedule/Module/control.php	(revision 17519)
@@ -416,5 +416,5 @@
 					input_data.setAttribute("value","<?php echo $date_time; ?>"),
                                         input_data.setAttribute("autofocus","true"),
-                                        input_data.setAttribute("disabled")
+                                        input_data.setAttribute("disabled", "disabled")
                                     );
                                 <?php } else { ?>
@@ -442,5 +442,5 @@
 					input_data.setAttribute("type","button"),
                                         input_data.setAttribute("value","+"),
-                                        input_data.setAttribute("disabled"),
+                                        input_data.setAttribute("disabled", "disabled"),
                                         input_data.onclick = function(){
                                             addRowCloneNew("list_<?php echo $cnt; ?>");
@@ -471,23 +471,17 @@
 				newtd_c2.setAttribute("width","138");
                                 newtd_c2.setAttribute("align","center");
+                                <?php   
+                                   $cur_measurement = $rows[fMeasurementTypeKey];
+                                   $selectm = mysql_query("SELECT fMeasurement FROM measurement WHERE fMeasurementKey = '$cur_measurement'");
+                                   $rowmeasure = mysql_fetch_array($selectm);
+                                ?>
                                 newtd_c2.appendChild(
-                                   selection = document.createElement("select"),
-                                   <?php   
-                                   $selectm = mysql_query("SELECT * FROM measurement");
-                                   while($rowmeasure = mysql_fetch_array($selectm))
-                                   {
-                                   ?>
-				   selection.appendChild(
-				   option = document.createElement("option"),
-				   option.setAttribute("value","<?php echo $rowmeasure['fMeasurementKey']; ?>"),
-				   <?php  if($rows['fMeasurementTypeKey']==$rowmeasure['fMeasurementKey']){ echo "option.setAttribute('selected',true),";}   ?>
-				   option.appendChild(document.createTextNode("<?php echo $rowmeasure['fMeasurement']; ?>"))
-				   ),
-                                   <?php 
-                                   } 
-                                   ?>
-				   selection.setAttribute('id','measure'),
-                                   selection.setAttribute('class','measure'),
-                                   selection.setAttribute("disabled")
+                                   selection = document.createElement("input"),
+                                   selection.setAttribute("value", "<?php echo $rowmeasure['fMeasurement']; ?>"),
+                                   selection.setAttribute("type","text"),
+                                   selection.setAttribute("class","selected"),
+                                   selection.setAttribute("size", "12"),
+                                   selection.setAttribute("placeholder", "Value"),
+                                   selection.setAttribute("disabled", "disabled")
                                 );
                                 newtd_c2.setAttribute("width","115");
@@ -497,5 +491,5 @@
 					input_data.setAttribute("type","button"),
                                         input_data.setAttribute("value","+"),
-                                        input_data.setAttribute("disabled"),
+                                        input_data.setAttribute("disabled", "disabled"),
 					input_data.onclick = function(){ 
                                             return addRow(newtr<?php echo $cntrow; ?>);
@@ -506,24 +500,16 @@
 				newtd_c3.setAttribute("width","98");
 				newtd_c3.setAttribute("align","center");
-				newtd_c3.appendChild(
-                                selection = document.createElement("select"),
                                 <?php
-                                $select = mysql_query("SELECT * FROM source");
-                                while($rowsource = mysql_fetch_array($select))
-                                {
-                                ?>
-                                        selection.appendChild(
-					option = document.createElement("option"),
-					option.setAttribute('value','<?php echo $rowsource['fSourceKEY']; ?>'),
-					<?php if($rows['fSourceKey'] == $rowsource['fSourceKEY']){ echo "option.setAttribute('selected',true),"; } ?>
-					option.appendChild(document.createTextNode("<?php echo $rowsource['fSourceName']; ?>"))
-					),
-                                <?php
-                                } 
-                                ?>
-                                selection.setAttribute('id','source'),																			// End of retrieving
-                                selection.setAttribute('class','source'),
-                                selection.setAttribute("disabled")
-                                    // End of retrieving
+                                $cur_source = $rows['fSourceKey'];
+                                $select = mysql_query("SELECT fSourceName FROM source WHERE fSourceKey = '$cur_source'");
+                                $rowsource = mysql_fetch_array($select); ?>
+                                newtd_c3.appendChild(
+                                   selection = document.createElement("input"),
+                                   selection.setAttribute("value", "<?php echo $rowsource['fSourceName']; ?>"),
+                                   selection.setAttribute("type","text"),
+                                   selection.setAttribute("class","selected"),
+                                   selection.setAttribute("size", "12"),
+                                   selection.setAttribute("placeholder", "Value"),
+                                   selection.setAttribute("disabled", "disabled")
 				);
 
@@ -538,5 +524,5 @@
 					input_data.setAttribute("value","<?php echo $rows['fData']; ?>"),
                                         input_data.setAttribute("placeholder","Value"),
-                                        input_data.setAttribute("disabled")
+                                        input_data.setAttribute("disabled", "disbaled")
 				);
 
@@ -550,5 +536,5 @@
 					input_data.setAttribute("type","button"),
                                         input_data.setAttribute("value","Delete"),
-                                        input_data.setAttribute("disabled"),
+                                        input_data.setAttribute("disabled", "disabled"),
                                         input_data.onclick = function(){
                                             return clearNode(newtr<?php echo $cntrow; ?>);
@@ -662,5 +648,5 @@
 					input_data.setAttribute("type","button"),
                                         input_data.setAttribute("value","Delete Main"),
-                                        input_data.setAttribute("disabled"),
+                                        input_data.setAttribute("disabled", "disabled"),
 					input_data.onclick = function(){ return clearNode(newdiv<?php echo $cnt; ?>); }
                                 );
