Changeset 16016 for schedule/function
- Timestamp:
- 05/22/13 15:02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
schedule/function/function.php
r16013 r16016 1 <div id="saving"> 1 2 <script type="text/javascript"> 2 3 … … 16 17 var fullday2=day2+'-'+month2+'-'+year2; 17 18 18 19 19 <?php 20 21 22 23 $cntsource=mysql_query("SELECT COUNT(*) as `SourceID` FROM source");24 $rowcnt=mysql_fetch_array($cntsource);25 $Total= $rowcnt['SourceID'];26 ?>27 $('#save').click(function(){28 var InputValue = [];29 var selectedSource = [];30 var selectedTime = [];31 var selectedMeasurement = [];32 var Time;33 var Source;34 var measure;35 var value;36 37 <?php38 20 if($_GET['day'] || $_GET['month'] || $_GET['year']){ 39 21 … … 59 41 var fullday=day+'-'+month+'-'+year; 60 42 <?php } ?> 61 62 43 <?php 44 45 46 47 $cntsource=mysql_query("SELECT COUNT(*) as `SourceID` FROM source"); 48 $rowcnt=mysql_fetch_array($cntsource); 49 $Total= $rowcnt['SourceID']; 50 ?> 51 $('#save').click(function(){ 52 var InputValue = []; 53 var selectedSource = []; 54 var selectedTime = []; 55 var selectedMeasurement = []; 56 var Time; 57 var Source; 58 var measure; 59 var value; 63 60 for(var i=1;i<<?php echo $Total; ?>;i++) 64 61 { … … 80 77 }); 81 78 </script> 79 </div>
Note:
See TracChangeset
for help on using the changeset viewer.