forked from CakeDC/users
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin_view.ctp
More file actions
61 lines (61 loc) · 2.84 KB
/
Copy pathadmin_view.ctp
File metadata and controls
61 lines (61 loc) · 2.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
/**
* Copyright 2010 - 2011, Cake Development Corporation (http://cakedc.com)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2010 - 2011, Cake Development Corporation (http://cakedc.com)
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
?>
<div class="user_details view">
<h2><?php echo __d('users', 'User Detail'); ?></h2>
<dl><?php $i = 0; $class = ' class="altrow"'; ?>
<dt<?php if ($i % 2 == 0) echo $class; ?>><?php echo __d('users', 'Id'); ?></dt>
<dd<?php if ($i++ % 2 == 0) echo $class; ?>>
<?php echo $user_detail['UserDetail']['id']; ?>
</dd>
<dt<?php if ($i % 2 == 0) echo $class; ?>><?php echo __d('users', 'User'); ?></dt>
<dd<?php if ($i++ % 2 == 0) echo $class; ?>>
<?php echo $this->Html->link($user_detail['User']['id'], array('controller'=> 'users', 'action' => 'view', $user_detail['User']['id'])); ?>
</dd>
<dt<?php if ($i % 2 == 0) echo $class; ?>><?php echo __d('users', 'Position'); ?></dt>
<dd<?php if ($i++ % 2 == 0) echo $class; ?>>
<?php echo $user_detail['UserDetail']['position']; ?>
</dd>
<dt<?php if ($i % 2 == 0) echo $class; ?>><?php echo __d('users', 'Field'); ?></dt>
<dd<?php if ($i++ % 2 == 0) echo $class; ?>>
<?php echo $user_detail['UserDetail']['field']; ?>
</dd>
<dt<?php if ($i % 2 == 0) echo $class; ?>><?php echo __d('users', 'Value'); ?></dt>
<dd<?php if ($i++ % 2 == 0) echo $class; ?>>
<?php echo $user_detail['UserDetail']['value']; ?>
</dd>
<dt<?php if ($i % 2 == 0) echo $class; ?>><?php echo __d('users', 'Created'); ?></dt>
<dd<?php if ($i++ % 2 == 0) echo $class; ?>>
<?php echo $user_detail['UserDetail']['created']; ?>
</dd>
<dt<?php if ($i % 2 == 0) echo $class; ?>><?php echo __d('users', 'Modified'); ?></dt>
<dd<?php if ($i++ % 2 == 0) echo $class; ?>>
<?php echo $user_detail['UserDetail']['modified']; ?>
</dd>
</dl>
</div>
<div class="actions">
<ul>
<li><?php echo $this->Html->link(__d('users', 'Edit Detail'), array('action' => 'edit', $user_detail['UserDetail']['id'])); ?> </li>
<li><?php echo $this->Html->link(__d('users', 'Delete Detail'), array('action' => 'delete', $user_detail['UserDetail']['id']), null, sprintf(__d('users', 'Are you sure you want to delete # %s?'), $user_detail['UserDetail']['id'])); ?> </li>
<li><?php echo $this->Html->link(__d('users', 'List Details'), array('action' => 'index')); ?> </li>
<li><?php echo $this->Html->link(__d('users', 'New Detail'), array('action' => 'add')); ?> </li>
<li><?php echo $this->Html->link(__d('users', 'List Users'), array('controller' => 'users', 'action' => 'index')); ?> </li>
<li><?php echo $this->Html->link(__d('users', 'New User'), array('controller' => 'users', 'action' => 'add')); ?> </li>
</ul>
</div>