Changeset 17473 for schedule


Ignore:
Timestamp:
01/04/14 09:26:40 (11 years ago)
Author:
tose
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • schedule/Module/control.php

    r17472 r17473  
    321321{
    322322                $timestamp=strtotime($times['fStart']);
    323                 $actualtime = $times['fStart'];
     323                $actualtime = ($times['fStart'])->format('Y-m-d H:i:s');
    324324                $timestamp2 = date('Y-m-d',$timestamp);
    325325                $date_time = date('H:i:s',$timestamp);
     
    376376                                );
    377377                       
    378                         var count = 0;         
    379378        <?php
    380379       
    381         $observations = mysql_query("SELECT * FROM schedule WHERE fStart = '2014-01-21 19:00:00'");
     380        $observations = mysql_query("SELECT * FROM schedule WHERE fStart = '$actualtime'");
    382381
    383382        while($rows = mysql_fetch_array($observations))
    384383        {
    385384        ?>
    386                         alert("new observation shed");
    387 
    388385                        var newtr<?php echo $cnt; ?> = document.createElement("tr");
    389386                                newtr<?php echo $cnt; ?>.setAttribute('class','tr');
Note: See TracChangeset for help on using the changeset viewer.