Ignore:
Timestamp:
05/13/12 11:30:56 (13 years ago)
Author:
tbretz
Message:
Implemented a mark for an attached comment, display comment in tooltip.
File:
1 edited

Legend:

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

    r13685 r13687  
    8181if (isset($_GET['comment']))
    8282{
    83     if (!isset($_GET['d']))
    84         return;
    85 
    86     $d = $_GET['d'];
    87 
    88     $query = "SELECT c FROM Comments WHERE y=".$y." AND m=".$m." AND d=".$d;
     83    $query = "SELECT d, c FROM Comments WHERE y=".$y." AND m=".$m;
     84    if (isset($_GET['d']))
     85        $query .= " AND d=".$_GET['d'];
    8986
    9087    $result = mysql_query($query);
     
    9289        return header('HTTP/1.0 500 '.mysql_error());
    9390
    94     $row = mysql_fetch_array($result, MYSQL_NUM);
     91    if (isset($_GET['d']))
     92    {
     93        $row = mysql_fetch_array($result, MYSQL_NUM);
     94        print($row[1]);
     95        return;
     96    }
    9597
    96     print($row[0]);
     98    while ($row = mysql_fetch_array($result, MYSQL_NUM))
     99    {
     100        printf("%04d%02d%s", strlen($row[1]), $row[0], $row[1]);
     101    }
    97102
    98103    return;
Note: See TracChangeset for help on using the changeset viewer.