server/apps/tasks/templates/part.property.php
2011-09-17 21:55:06 +02:00

22 lines
399 B
PHP

<tr>
<th>
<?php echo $_['label'] ?>
</th>
<td>
<?php
switch (get_class($_['property']))
{
case 'Sabre_VObject_Element_DateTime':
echo $l->l('datetime', $_['property']->getDateTime());
break;
default:
$value = $_['property']->value;
if (isset($_['options']))
{
$value = $_['options'][$value];
}
echo nl2br($value);
}
?>
</td>
</tr>