Ejemplo n.º 1
0
		<input type="text" size="4" maxlength="4" class="textbox" name="y" value="' . $ec_year . '" />
		<input type="submit" value="' . $locale['awec_show'] . '" class="button" />
		</form>
	</td>
	<td align="right">
		<a href="' . $cal_href . '&amp;y=' . $nyear . '&amp;m=' . $nmonth . '">' . $locale['EC900'][$nmonth] . ' &gt;&gt;</a>
	</td>
</tr>
</tbody>
</table>

<hr />';
$month = ($ec_month < 10 ? '0' : '') . $ec_month;
$needle['from'] = $ec_year . '-' . $month . '-01';
$needle['to'] = $ec_year . '-' . $month . '-' . $awec_last_day;
awec_get_events($needle, $events, $view == 'clist' ? true : false);
if ($view == 'clist') {
    //
} else {
    $content = array();
    for ($i = 1; $i <= 31; ++$i) {
        if ($view == 'list') {
            $content[$i] = '&nbsp;';
        } else {
            $content[$i] = array('style' => 'empty', 'data' => '<a class="mday" href="day.php?date=' . $ec_year . '-' . $month . '-' . ($i < 10 ? '0' : '') . $i . '">' . $i . '.</a>');
        }
    }
}
if (count($events) && $view != 'clist') {
    foreach ($events[$ec_year][$ec_month] as $day => $more) {
        $btext = '';
Ejemplo n.º 2
0
*/
require_once 'include/common.php';
if (!isset($_GET['date']) || !preg_match(AWEC_DATE_FORMAT, $_GET['date'])) {
    fallback('index.php');
}
$date = $_GET['date'];
list($year, $month, $mday) = explode('-', $date);
$year = intval($year);
$month = intval($month);
$mday = intval($mday);
/****************************************************************************
 * GET
 */
$events = array();
$needle = array('from' => $date, 'to' => $date);
if (awec_get_events($needle, $events, true) === false) {
    fallback('index.php');
}
$res = dbquery("SELECT\n\tDATE_FORMAT('" . $date . "', '" . $awec_settings['date_fmt'] . "') AS date");
$row = dbarray($res);
$date = array_shift($row);
/****************************************************************************
 * GUI
 */
opentable($date);
awec_menu();
awec_set_title($date);
if (iAWEC_POST) {
    echo '<a href="edit_event.php?date=' . $_GET['date'] . '">' . $locale['EC100'] . '</a>';
}
if (count($events)) {
Ejemplo n.º 3
0
	</td>
</tr>
</tbody>
</table>
</form>
<hr />';
$quicks = array();
for ($i = 1; $i <= 12; ++$i) {
    $quicks[] = '<a href="' . $cal_href . '&amp;y=' . $ec_year . '#mon' . $i . '">' . $locale['EC900'][$i] . '</a>';
}
echo '
<p>' . implode(' | ', $quicks) . '
</p>';
$needle['from'] = $ec_year . '-01-01';
$needle['to'] = $ec_year . '-12-31';
awec_get_events($needle, $events, false);
for ($i = 1; $i <= 12; ++$i) {
    echo '
<table width="100%" cellspacing="0" class="' . $awec_styles['list'] . '" id="mon' . $i . '">
<colgroup>
	<col width="24" />
	<col width="16" />
	<col width="*" />
</colgroup>
<thead>
<tr>
	<th colspan="3">' . $locale['EC900'][$i] . '</th>
</tr>
</thead>
<tbody>';
    if (!isset($events[$ec_year][$i])) {