href="week_view.php" title="Settimana"><img src="%[IMAGE_GPATH]%ico/ico_calendar_settim_peq.gif" width="16" height="16" border="0" align="absmiddle"> <?php echo CALENDAR_WEEK; ?> </a></td> <td align="left" valign="middle" nowrap class="toolbar-calendar-td"><a href="month_view.php" title="Messe"><img src="%[IMAGE_GPATH]%ico/ico_calendar_messe_peq.gif" width="16" height="16" border="0" align="absmiddle"> <?php echo CALENDAR_MONTH; ?> </a></td> <td align="right" valign="middle" nowrap class="toolbar-calendar-data"> <?php echo $curday . ' ' . print_month($curmonth) . ' ' . $curyear; ?> </td> </tr> </table> </div> <table border="0" cellpadding="2" cellspacing="1" class="calendar-normal-giorno-table"> <?php for ($ch = 0; $ch < 24; $ch++) { if (strlen($ch) == 1) { $chok = '0' . $ch; } else { $chok = $ch;
<?php out_template("admin_topmenu"); ?> <?php $sql = <<<ASDF \t\t\t\t\t\t\t\tSELECT m.username, monthname(dag), dayofmonth(dag), month(dag) \t\t\t\t\t\t\t\tFROM medlemmer as m, fremmoede as f \t\t\t\t\t\t\t\tWHERE m.id = f.mid \t\t\t\t\t\t\t\tORDER BY 4 DESC, 1, 3 ASDF; $query = query($sql); while ($query->tryGet()) { //BUG: burde bruge peak her. print_month($query); } ?> </div> </body> </html> <?php function print_month($query) { //print echo "<table>\n"; //header
href="week_view.php" title="Settimana"><img src="%[IMAGE_GPATH]%ico/ico_calendar_settim_peq.gif" width="16" height="16" border="0" align="absmiddle"> <?php echo CALENDAR_WEEK; ?> </a></td> <td align="left" valign="middle" nowrap class="toolbar-calendar-td"><a href="month_view.php" title="Messe"><img src="%[IMAGE_GPATH]%ico/ico_calendar_messe_peq.gif" width="16" height="16" border="0" align="absmiddle"> <?php echo CALENDAR_MONTH; ?> </a></td> <td align="right" valign="middle" nowrap class="toolbar-calendar-data"> <?php print $weekstart[0] . ' ' . print_month($weekstart[1]) . ' - ' . $weekend[0] . ' ' . print_month($weekend[1]); ?> </td> </tr> </table> </div> <table width="100%" border="0" cellpadding="2" cellspacing="1" class="calendar-settim-table"> <?php foreach ($dayofweek as $offset => $row) { $thisday = explode("/", $row); $todayscad = ""; $todayapp = ""; $todayscad_ext = "";
if ($month != $curmonth) { print '<td width="14%"> </td>'; } else { if ($curday == $day) { $class = 'cal-giorno-attuale'; } elseif ($day_app[$curyear . '-' . $month . '-' . $day][tot] > 0) { $class = 'cal-giorno-appunt'; } elseif ($key > 4) { $class = 'cal-giorno-non-lav'; } else { $class = 'cal-giorno-normal'; } if ($_GET[lt] == 0) { $link = '<a href="' . $CONF[url_base] . $CONF[dir_modules] . $module . '/pages/day_view.php?month=' . $curmonth . '&year=' . $curyear . '&day=' . $day . '" class="' . $class . '" target="_parent">'; } elseif ($_GET[lt] == 1) { $link = '<a href="javascript:showAPPUNT(\'appunt_giorno\',\'' . $CONF[url_base] . $CONF[dir_modules] . $module . '/pages/day_view_iframe.php?month=' . $curmonth . '&year=' . $curyear . '&day=' . $day . '\',\'' . $day . ' ' . print_month($curmonth) . ' ' . $curyear . '\',\'' . $CONF[url_base] . $CONF[dir_template] . $CUR_TEMPLATE[name] . '/images/ico/ico_close_appunt_peq.gif\')" class="' . $class . '" target="_parent">'; } print '<td width="14%">' . $link . $day . '</a></td>'; } } print '</tr>'; } ?> </table> </form></td> </tr> </table> </body> </html>
href="week_view.php" title="Settimana"><img src="%[IMAGE_GPATH]%ico/ico_calendar_settim_peq.gif" width="16" height="16" border="0" align="absmiddle"> <?php echo CALENDAR_WEEK; ?> </a></td> <td align="left" valign="middle" nowrap class="toolbar-calendar-td"><a href="month_view.php" title="Messe"><img src="%[IMAGE_GPATH]%ico/ico_calendar_messe_peq.gif" width="16" height="16" border="0" align="absmiddle"> <?php echo CALENDAR_MONTH; ?> </a></td> <td align="right" valign="middle" nowrap class="toolbar-calendar-data"> <?php echo print_month($curmonth) . ' ' . $curyear; ?> </td> </tr> </table> </div> <?php $month_res = make_calendar($curmonth, $curyear); ?> <table width="100%" border="0" cellpadding="2" cellspacing="1" class="calendar-mese-table-gran" id="calendar_gran"> <tr> <th width="16%"><?php echo CALENDAR_DAY_0; ?> </th>