- Timestamp:
- 06/04/13 16:32:22 (11 years ago)
- Location:
- schedule
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
schedule/Module/calendar.php
r16687 r16688 104 104 year =this.selection.print("%Y").join("\n"); 105 105 GetData(); 106 GetDate(); 106 107 107 108 -
schedule/function/function.php
r16686 r16688 1 1 <div id="saving"> 2 2 3 <script type="text/javascript"> 3 4 … … 5 6 6 7 8 9 7 10 8 11 9 10 11 $(document).ready(function(){ 12 $(document).ready(function GetDate(){ 12 13 // for fupdate 13 14 14 15 16 15 17 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;21 18 22 var day;23 var month;24 var year;25 var fullday;26 <?php27 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 <?php39 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 } ?>50 19 51 20 <?php … … 58 27 ?> 59 28 $('#save').click(function(){ 60 61 29 30 62 31 var InputValue = []; 63 32 var selectedSource = []; … … 89 58 90 59 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; 92 61 }else{ 93 62 -
schedule/include/factdb.php
r16686 r16688 2 2 3 3 4 //$con=mysql_connect("localhost","root","");5 $con=mysql_connect("localhost","scheduletest","t3stsched");4 $con=mysql_connect("localhost","root",""); 5 //$con=mysql_connect("localhost","scheduletest","t3stsched"); 6 6 mysql_select_db("sandboxschedule",$con); 7 7 ?> -
schedule/js/chart.js
r16687 r16688 9 9 //$('#data').append('1st'+source); 10 10 } 11 11 12 } 13 14 15 16 12 17 13 18 function GetXMLData(index, source)
Note:
See TracChangeset
for help on using the changeset viewer.