* along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ /** * @file * @brief display the calendar as a list. Included from the Calendar::zoom_list() */ ?> <div class="content" id="user_cal" style="width:100%"> <?php $short = HtmlInput::default_value_get('from', 0); $js = sprintf("calendar_zoom({gDossier:%d,invalue:'%s',outvalue:'%s',distype:'%s','notitle':%d})", dossier::id(), 'per_div', 'calendar_zoom_div', 'cal', $notitle); echo HtmlInput::anchor(_('Calendrier'), '', " onclick=\"{$js}\""); echo HtmlInput::button_action_add(); ?> <table class="result"> <?php $nb_event = count($a_event); $a_status = array('R' => _('Retard'), 'N' => 'Auj.', 'F' => ''); for ($i = 0; $i < $nb_event; $i++) { $class = $i % 2 == 0 ? 'even' : 'odd'; $idx = $a_event[$i]['status']; $class = $idx == 'R' ? 'notice' : $class; ?> <tr class="<?php echo $class; ?> "> <td>