Ignore:
Timestamp:
03/26/13 17:16:15 (12 years ago)
Author:
tbretz
Message:
Implemented a new 'user' which can be used to add entries for debugging to be able to seperate them from normal shift entries.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/www/shift/calendar.php

    r13687 r15155  
    142142    if (mysql_affected_rows()==0)
    143143    {
    144         if (!mysql_query("INSERT Data SET y=".$y.", m=".$m.", d=".$d.", u='".$u."'"))
     144        $x = $_GET['x'];
     145        if (!mysql_query("INSERT Data SET y=".$y.", m=".$m.", d=".$d.", x=".$x.", u='".$u."'"))
    145146            return header('HTTP/1.0 500 '.mysql_error());
    146147    }
    147148}
    148149
    149 $query = "SELECT d, u FROM Data WHERE y=".$y." AND m=".$m;
     150$query = "SELECT d, u, x FROM Data WHERE y=".$y." AND m=".$m;
    150151if (isset($_GET['d']))
    151152    $query .= " AND d=".$_GET['d'];
     
    156157
    157158while ($row = mysql_fetch_array($result, MYSQL_NUM))
    158     print($row[0]."\t".$row[1]."\n");
     159    print($row[0]."\t".$row[1]."\t".$row[2]."\n");
    159160?>
Note: See TracChangeset for help on using the changeset viewer.