Subversion-Projekte lars-tiefland.cakephp

Revision

Revision 12 | Zur aktuellen Revision | Details | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
6 lars 1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
<html>
3
 
4
<head>
5
	<meta http-equiv="content-type" content="text/html; charset=utf-8">
6
	<meta name="author" content="Webagentur Niewerth">
7
 
8
	<title>Ohne Titel 3</title>
9
</head>
10
 
11
<body>
12
<h1>Blog posts</h1>
11 lars 13
<?php echo $html->link('Add Post',array('controller' => 'posts', 'action' => 'add'))?>
6 lars 14
<table>
15
	<tr>
16
		<th>Id</th>
17
		<th>Title</th>
13 lars 18
		<th>Actions</th>
6 lars 19
		<th>Created</th>
20
	</tr>
21
 
22
	<!-- Here is where we loop through our $posts array, printing out post info -->
23
 
24
	<?php foreach ($posts as $post): ?>
25
	<tr>
26
		<td><?php echo $post['Post']['id']; ?></td>
27
		<td>
28
			<?php echo $html->link($post['Post']['title'],
29
"/posts/view/".$post['Post']['id']); ?>
30
		</td>
12 lars 31
        <td>
32
        <?php echo $html->link('Delete', array('action' => 'delete', 'id' => $post['Post']['id']), null, 'Are you sure?' )?>
33
        </td>
6 lars 34
		<td><?php echo $post['Post']['created']; ?></td>
35
	</tr>
36
	<?php endforeach; ?>
37
 
38
</table>
39
</body>
40
</html>