Exemple #1
0
            } else {
                $btext .= '<li><a href="view_event.php?id=' . $event['ev_id'] . '">' . $event['ev_title'] . '</a></li>';
            }
        }
        if (!empty($btext)) {
            $btext = '<ul>' . $btext . '</ul>';
        }
        if ($view == 'list') {
            $content[$day] = $btext;
        } else {
            $content[$day]['style'] = 'content';
            $content[$day]['data'] .= $btext;
        }
    }
}
if ($ec_is_this_month && $view != 'list') {
    $content[$ec_today['mday']]['style'] = 'current';
}
switch ($view) {
    case 'clist':
        require_once 'view_clist.php';
        break;
    case 'list':
        $this_month = mktime(0, 0, 0, $ec_month, 1, $ec_year);
        $daysinmonth = date('t', $this_month);
        require_once 'view_list.php';
        break;
    default:
        awec_render_cal($ec_month, $ec_year, '', $content, 80, true, $awec_settings['sun_first_dow'] == 'yes', $awec_settings['show_week']);
        break;
}
	<td align="left">
		<a href="' . $href . 'y=' . $pyear . '&amp;m=' . $pmonth . '">&laquo;</a>
	</td>
	<td align="center">
		<a href="' . $path . '/index.php?y=' . $ec_year . '&amp;m=' . $ec_month . '">' . $cur_title . '</a>
	</td>
	<td align="right">
		<a href="' . $href . 'y=' . $nyear . '&amp;m=' . $nmonth . '">&raquo;</a>
	</td>
</tr>
</thead>
</table>';
if ($awec_settings['use_alt_side_calendar']) {
    awec_repeat_alt_cal($ec_month, $ec_year, $title, $content, 0, false, $awec_settings['sun_first_dow'] == 'yes');
} else {
    awec_render_cal($ec_month, $ec_year, $title, $content, 0, false, $awec_settings['sun_first_dow'] == 'yes');
}
if (iMEMBER && false) {
    echo '
<ul>';
    if (iAWEC_POST) {
        echo '
	<li><a href="' . $path . '/edit_event.php">' . $locale['EC200'] . '</a></li>';
    }
    echo '
	<li><a href="' . $path . '/my_events.php">' . $locale['EC204'] . '</a></li>
	<li><a href="' . $path . '/my_logins.php">' . $locale['EC206'] . '</a></li>';
    if (iSUPERADMIN) {
        echo '
	<li><a href="' . $path . '/admin.php">' . $locale['EC700'] . '</a></li>';
    }