Changeset 16738
- Timestamp:
- 06/06/13 06:31:20 (12 years ago)
- Location:
- schedule
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
schedule/Transaction/insert.php
r16721 r16738 79 79 80 80 alert("Sucessfully save"); 81 window.location = '../index.php? <?php echo $TimeEX2; ?>';81 window.location = '../index.php?days=<?php echo $date; ?>'; 82 82 </script> 83 83 <?php -
schedule/authenticate/body.php
r16723 r16738 57 57 </div> 58 58 <div style="width:100%;" align="right"> 59 <input type="button" id="save" value="SAVE" class="button" title="Click to save"> <input type="button" id="LoadPrev" value="Load Previous Night" class="button" title="Click to load previous night"> 59 60 61 <?php include 'function/button.php'; ?> 62 60 63 </div> 61 64 <div style="border:2px solid white; width:100%;" id="Scheduling"> … … 63 66 64 67 include 'function/SplitDelete.php'; 65 // include 'Module/Scheduling';68 66 69 ?> 67 70 … … 77 80 78 81 <tr> 79 <td width=" 219" style="border:1px solid white; color:#37DFB1; font-size:14px;" align="center" >Time</td>82 <td width="184" style="border:1px solid white; color:#37DFB1; font-size:14px;" align="center" >Time</td> 80 83 81 84 <td width="170" style="border:1px solid white; color:#37DFB1; font-size:14px;" align="center" >Measurement</td> 82 <td width=" 200" style="border:1px solid white; color:#37DFB1; font-size:14px;" align="center" >Source list</td>83 <td width=" 265" style="border:1px solid white; color:#37DFB1; font-size:14px;" align="center" >Value</td>84 <td width="1 18" style="border:1px solid white; color:#37DFB1; font-size:14px;" align="center" >Transaction</td>85 <td width="145" style="border:1px solid white; color:#37DFB1; font-size:14px;" align="center" >Source list</td> 86 <td width="316" style="border:1px solid white; color:#37DFB1; font-size:14px;" align="center" >Value</td> 87 <td width="141" style="border:1px solid white; color:#37DFB1; font-size:14px;" align="center" >Transaction</td> 85 88 </tr> 86 89 <tr> -
schedule/function/SplitDelete.php
r16721 r16738 25 25 26 26 include '../include/factdb.php'; 27 28 29 if(isset($_GET['days'])){ 27 30 $day = $_GET['days']; 31 }else{ 32 33 $day =date("Y-m-d"); 34 35 } 36 37 28 38 $days = Date('Y-m-d',strtotime($day)); 29 39 ?> -
schedule/function/function.php
r16721 r16738 22 22 $('#save').click(function(){ 23 23 var dtr; 24 dtr = '<?php echo $_GET['days']; ?>'; 24 dtr = '<?php 25 26 if(isset($_GET['days'])){ 27 echo $_GET['days']; ; 28 }else{ 29 30 echo date("Y-m-d"); 31 32 } 33 34 ?>'; 25 35 //alert(dtr); 26 36 var InputValue = []; … … 60 70 }); 61 71 72 73 74 75 76 77 78 79 80 81 82 $('#update').click(function(){ 83 var dtr; 84 dtr = '<?php 85 86 if(isset($_GET['days'])){ 87 echo $_GET['days']; ; 88 }else{ 89 90 echo date("Y-m-d"); 91 92 } 93 94 ?>'; 95 //alert(dtr); 96 var InputValue = []; 97 var selectedSource = []; 98 var selectedTime = []; 99 var selectedMeasurement = []; 100 var Time; 101 var Source; 102 var measure; 103 var value; 104 var checks = 0; 105 for(var i=1;i <= cnt;i++) 106 { 107 if($('#Time'+i).val() != '') 108 { 109 Time=$('#Time'+i).val(); 110 Source=$('select[id="source'+i+'"]').val(); 111 measure=$('select[id="measurement'+i+'"]').val(); 112 value=$('#txtData'+i).val(); 113 selectedMeasurement.push(measure); 114 selectedSource.push(Source); 115 selectedTime.push(Time); 116 InputValue.push(value); 117 118 }else{ 119 checks++; 120 121 } 122 } 123 124 if(checks == 0){ 125 window.location = 'Transaction/update.php?Time='+selectedTime+'&Source='+selectedSource+'&measure='+selectedMeasurement+'&Data='+InputValue+'&Date='+dtr; 126 }else{ 127 128 alert("Please fill all the details!"); 129 } 130 }); 131 132 133 134 135 136 137 138 62 139 }); 63 140 </script>
Note:
See TracChangeset
for help on using the changeset viewer.