- Timestamp:
- 01/07/14 13:17:09 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
schedule/Module/control.php
r17494 r17495 306 306 function addRowClone(nextrow){ 307 307 <?php 308 if($previousData == "true") {308 /*if($previousData == "true") { 309 309 $fetch = mysql_query("SELECT * FROM schedule WHERE date(fStart) < '$days' ORDER BY date(fStart) DESC, fScheduleID ASC, fMeasurementID ASC") or die(mysql_error()); 310 310 $firstRecord = mysql_fetch_array($fetch); … … 318 318 $fetch = mysql_query("SELECT * FROM schedule WHERE date(fStart) = '$days' ORDER BY fScheduleID ASC, fMeasurementID ASC") or die(mysql_error()); 319 319 $transaction = "update"; 320 } 320 }*/ 321 321 322 322 $fetch = mysql_query("SELECT * FROM schedule WHERE date(fStart) = '$days' ORDER BY fScheduleID ASC, fMeasurementID ASC") or die(mysql_error()); … … 516 516 } 517 517 518 if((mysql_num_rows($fetch)<1)) // || $transaction == "save") 519 { 520 $transaction = "save"; 518 if(mysql_num_rows($fetch)<1) 519 { 521 520 ?> 522 $('#save').attr('value','SAVE'); 521 $('#save').attr('value','SAVE'); 523 522 addRowClone1(); 524 <?php525 }526 else {527 ?>528 $('#save').attr('value','UPDATE');529 523 <?php 530 524 }
Note:
See TracChangeset
for help on using the changeset viewer.