Changeset 17558 for schedule/Module/control.php
- Timestamp:
- 02/15/14 14:24:13 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
schedule/Module/control.php
r17555 r17558 342 342 $curSchedId = $times['fScheduleID']; 343 343 $actualtime = date('Y-m-d H:i:s', $timestamp); 344 if($prevday == 'false') { 344 345 if($prevday == 'false') { 345 346 if(strtotime(date('Y-m-d H:i', $timestamp)) < strtotime(date('Y-m-d H:i', time()))) { 346 347 $pastdate = 'true'; … … 349 350 $pastdate = 'false'; 350 351 } 351 } 352 352 } 353 354 353 355 if(strtotime(date('Y-m-d', $timestamp)) == strtotime(date('Y-m-d', time()))) { 354 356 $fetch_next = mysql_query("SELECT DISTINCT fStart FROM schedule WHERE (fStart > '$testing' AND date(fStart) = '$day') ORDER BY fScheduleID ASC LIMIT 1"); … … 371 373 } 372 374 } 373 else { 375 else if(strtotime(date('Y-m-d', $timestamp)) < strtotime(date('Y-m-d', time()))) { 376 $pasttime = 'true'; 377 $pastdate = 'true'; 378 } else { 379 $pasttime = 'false'; 380 $pastdate = 'false'; 381 } 382 383 if($prevday == 'true') { 384 $pastdate = 'false'; 374 385 $pasttime = 'false'; 375 386 } 376 377 387 $date_time = date('H:i', $timestamp); 378 388 $prev_time[$cnt3]= $date_time; 379 389 380 390 ?> 381 382 391 $('#save').attr('value','UPDATE'); 383 392 var targetView = document.getElementById("Data"); … … 450 459 } 451 460 ); 452 <?php } else { if ($pastdate == 'true') { ?>461 <?php } else { /*if ($pastdate == 'true') { ?> 453 462 newtd_c1.appendChild( 454 463 input_data = document.createElement("input"), … … 460 469 } 461 470 ); 462 <?php } else { ?> 471 <?php } else { ?>*/ ?> 463 472 newtd_c1.appendChild( 464 473 input_data = document.createElement("input"), … … 469 478 } 470 479 ); 471 <?php } }480 <?php } 472 481 $observations = mysql_query("SELECT * FROM schedule WHERE fStart = '$actualtime'"); 473 482
Note:
See TracChangeset
for help on using the changeset viewer.