Changeset 16235 for schedule/Module
- Timestamp:
- 05/25/13 01:27:34 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
schedule/Module/calendar.php
r16234 r16235 74 74 $(document).ready(function(){ 75 75 Graph(); 76 var date= new Date(); 77 var Year=date.getFullYear(); 78 var Day=date.getDay(); 79 var Month=date.getMonth(); 80 <?php 81 $sqlSched=mysql_query("SELECT*FROM schedule"); 82 while($rowSched=mysql_fetch_array($sqlSched)) 83 { 84 $timestamp=strtotime(<?php echo $rowSched['fStart']; ?>); 85 ?> 86 if(Year+""+Day+""+Month==<?php echo date('Ydm',$timestamp); ?>) 87 { 88 alert('wa'); 89 } 90 <?php 91 } 92 ?> 93 76 94 }); 77 95 </script> … … 91 109 var source=['Mrk 421','Crab','Mrk 501']; 92 110 var lines = []; 111 <?php 112 $sqlSched=mysql_query("SELECT*FROM schedule"); 113 while($rowSched=mysql_fetch_array($sqlSched)) 114 { 115 $timestamp=strtotime(<?php echo $rowSched['fStart']; ?>); 116 ?> 117 if(year+"-"+day+"-"+month==<?php echo date('Y-d-m',$timestamp); ?>) 118 { 119 alert('zz'); 120 } 121 <?php 122 } 123 ?> 124 else 125 { 126 93 127 function LoadData() 94 128 { … … 281 315 } 282 316 Charts(); 317 } 283 318 //Charts(); 284 319
Note:
See TracChangeset
for help on using the changeset viewer.