Changeset 16688 for schedule/function


Ignore:
Timestamp:
06/04/13 16:32:22 (11 years ago)
Author:
tanio
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • schedule/function/function.php

    r16686 r16688  
    11 <div id="saving">
     2 
    23 <script type="text/javascript">
    34
     
    56 
    67 
     8
     9
    710 
    811 
    9  
    10  
    11         $(document).ready(function(){
     12        $(document).ready(function GetDate(){
    1213         // for fupdate
    1314         
    1415         
     16       
    1517         
    16         var currentDate2 = new Date();
    17         var day2 = currentDate2.getDate();
    18         var month2 = currentDate2.getMonth() + 1;
    19         var year2 = currentDate2.getFullYear();
    20         var fullday2=day2+'-'+month2+'-'+year2;
    2118       
    22         var day;
    23         var month;
    24         var year;
    25         var fullday;
    26         <?php
    27  if($_GET['day'] || $_GET['month'] || $_GET['year']){
    28  
    29  ?>
    30  
    31          day = <?php echo $_GET['day'];  ?>;
    32          month = <?php echo $_GET['month']; ?>;
    33          year = <?php echo $_GET['year']; ?>;
    34          fullday=day+'-'+month+'-'+year;
    35                
    36  
    37  
    38  <?php
    39  
    40  
    41  }else{
    42  
    43  ?>
    44                 var currentDate = new Date();
    45                  day = currentDate.getDate();
    46          month = currentDate.getMonth() + 1;
    47          year = currentDate.getFullYear();
    48          fullday=day+'-'+month+'-'+year;
    49         <?php    }  ?>
    5019       
    5120        <?php
     
    5827        ?>
    5928        $('#save').click(function(){
    60        
    61        
     29
     30
    6231                var InputValue = [];
    6332                var selectedSource = [];
     
    8958               
    9059                if(checks == 0){
    91                 //window.location = 'Transaction/insert.php?Time='+selectedTime+'&Source='+selectedSource+'&measure='+selectedMeasurement+'&Data='+InputValue+'&Date='+fullday+'&Date2='+fullday2;
     60                window.location = 'Transaction/insert.php?Time='+selectedTime+'&Source='+selectedSource+'&measure='+selectedMeasurement+'&Data='+InputValue+'&Date='+day+'-'+month+'-'+year;
    9261        }else{
    9362       
Note: See TracChangeset for help on using the changeset viewer.