Example #1
0
        ?>
</td>
					<td><?php 
        echo $person_in_charge->meta['first_name'] . ' ' . $person_in_charge->meta['last_name'];
        ?>
</td>
					<td><?php 
        echo $list->room;
        ?>
</td>
					<td><?php 
        echo datetime_for_display($list->start_time);
        ?>
</td>
					<td><?php 
        echo datetime_for_display($list->end_time);
        ?>
</td>
					<td><?php 
        echo $list->description;
        ?>
</td>

					<td>
					<?php 
        if (can_this_user('calendar/edit/all') || can_this_user('calendar/edit') && (in_array($list->person_in_charge, $manage) || in_array($list->created_by, $manage))) {
            ?>
						<?php 
            echo anchor('calendar/edit/' . $list->ID, 'edit');
            ?>
 		
Example #2
0
				<td><?php 
echo form_dropdown('room', $resources, $event->room);
?>
</td>
			</tr>
			<tr>
				<th><label for="date">Start Date</label></th>
				<td><?php 
echo form_input('start_time', datetime_for_display($event->start_time), 'class="datetimepicker-from required"');
?>
</td>
			</tr>
			<tr>
				<th><label for="date">End Date</label></th>
				<td><?php 
echo form_input('end_time', datetime_for_display($event->end_time), 'class="datetimepicker-to required"');
?>
</td>
			</tr>
			<tr>
				<th><label for="description">Description</label></th>
				<td><?php 
echo form_textarea('description', $event->description, 'class="required"');
?>
</td>
			</tr>
		</table>
	</div>
	<p id="button_area">
		<?php 
if (can_this_user('calendar/edit/all') || can_this_user('calendar/edit') && (in_array($event->person_in_charge, $manage) || in_array($event->created_by, $manage))) {