Changeset 17495 for schedule


Ignore:
Timestamp:
01/07/14 13:17:09 (11 years ago)
Author:
tose
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • schedule/Module/control.php

    r17494 r17495  
    306306function addRowClone(nextrow){
    307307        <?php
    308         if($previousData == "true") {
     308        /*if($previousData == "true") {
    309309                $fetch = mysql_query("SELECT * FROM schedule WHERE date(fStart) < '$days' ORDER BY date(fStart) DESC, fScheduleID ASC, fMeasurementID ASC") or die(mysql_error());     
    310310                $firstRecord = mysql_fetch_array($fetch);
     
    318318                $fetch = mysql_query("SELECT * FROM schedule WHERE date(fStart) = '$days' ORDER BY fScheduleID ASC, fMeasurementID ASC") or die(mysql_error());
    319319                $transaction = "update";
    320         }
     320        }*/
    321321
    322322                $fetch = mysql_query("SELECT * FROM schedule WHERE date(fStart) = '$days' ORDER BY fScheduleID ASC, fMeasurementID ASC") or die(mysql_error());
     
    516516        }
    517517
    518         if((mysql_num_rows($fetch)<1)) // || $transaction == "save")   
    519         {
    520                 $transaction = "save";
     518        if(mysql_num_rows($fetch)<1)
     519        {
    521520        ?>
    522                 $('#save').attr('value','SAVE');               
     521                $('#save').attr('value','SAVE');
    523522                addRowClone1();
    524         <?php
    525         }
    526         else {
    527         ?>     
    528                 $('#save').attr('value','UPDATE');
    529523        <?php
    530524        }
Note: See TracChangeset for help on using the changeset viewer.