'.$template['name'].'';
echo ''.__('Type').': ';
echo get_alert_templates_type_name ($template['type']);
echo '
';
echo print_alert_template_example ($template['id'], true);
echo '
';
if ($template['description'] != '') {
echo ''.__('Description').':
';
echo $template['description'];
echo '
';
}
echo ''.__('Priority').': ';
echo get_priority_name ($template['priority']);
echo '
';
if ($template['monday'] && $template['tuesday']
&& $template['wednesday'] && $template['thursday']
&& $template['friday'] && $template['saturday']
&& $template['sunday']) {
/* Everyday */
echo ''.__('Everyday').'
';
} else {
$days = array ('monday' => __('Monday'),
'tuesday' => __('Tuesday'),
'wednesday' => __('Wednesday'),
'thursday' => __('Thursday'),
'friday' => __('Friday'),
'saturday' => __('Saturday'),
'sunday' => __('Sunday'));
echo ''.__('Days').': '.__('Every').' ';
$actives = array ();
foreach ($days as $day => $name) {
if ($template[$day])
array_push ($actives, $name);
}
$last = array_pop ($actives);
if (count ($actives)) {
echo implode (', ', $actives);
echo ' '.__('and').' ';
}
echo $last;
}
echo '
';
if ($template['time_from'] != $template['time_to']) {
echo ''.__('From').' ';
echo $template['time_from'];
echo ' '.__('to').' ';
echo $template['time_to'];
echo '
';
}
return;
}
return;
}
echo '