PHP Classes

File: View/Users/admin_view.ctp

Recommend this page to a friend!
  Classes of Andraž   pingvincek   View/Users/admin_view.ctp   Download  
File: View/Users/admin_view.ctp
Role: Example script
Content type: text/plain
Description: Example script
Class: pingvincek
Manage a site for organizing dates between people
Author: By
Last change:
Date: 6 years ago
Size: 2,271 bytes
 

Contents

Class file image Download
<div class="users view">
<h2><?php echo __('User');?></h2>
    <dl><?php $i = 0; $class = ' class="altrow"';?>
<dt<?php if ($i % 2 == 0) echo $class;?>><?php echo __('Id'); ?></dt>
        <dd<?php if ($i++ % 2 == 0) echo $class;?>>
            <?php echo $user['User']['id']; ?>
&nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0) echo $class;?>><?php echo __('Username'); ?></dt>
        <dd<?php if ($i++ % 2 == 0) echo $class;?>>
            <?php echo $user['User']['username']; ?>
&nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0) echo $class;?>><?php echo __('Group'); ?></dt>
        <dd<?php if ($i++ % 2 == 0) echo $class;?>>
            <?php echo $this->Html->link($user['Group']['name'], array('controller'=> 'groups', 'action'=>'view', $user['Group']['id'])); ?>
&nbsp;
        </dd>
                <dt<?php if ($i % 2 == 0) echo $class;?>><?php echo __('Skrij profil'); ?></dt>
        <dd<?php if ($i++ % 2 == 0) echo $class;?>>
            <?php echo $user['User']['hideprofile']; ?>
&nbsp;
        </dd>
                <dt<?php if ($i % 2 == 0) echo $class;?>><?php echo __('Onemogo?en'); ?></dt>
        <dd<?php if ($i++ % 2 == 0) echo $class;?>>
            <?php echo $user['User']['ban']; ?>
&nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0) echo $class;?>><?php echo __('Created'); ?></dt>
        <dd<?php if ($i++ % 2 == 0) echo $class;?>>
            <?php echo $user['User']['created']; ?>
&nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0) echo $class;?>><?php echo __('Modified'); ?></dt>
        <dd<?php if ($i++ % 2 == 0) echo $class;?>>
            <?php echo $user['User']['modified']; ?>
&nbsp;
        </dd>
    </dl>
</div>
<div class="actions">
    <ul>
        <li><?php echo $this->Html->link(__('Edit User'), array('action'=>'edit', $user['User']['id'])); ?> </li>
        <li><?php echo $this->Html->link(__('Delete User'), array('action'=>'delete', $user['User']['id']), null, sprintf(__('Are you sure you want to delete # %s?'), $user['User']['id'])); ?> </li>
        <li><?php echo $this->Html->link(__('List Users'), array('action'=>'index')); ?> </li>
        <li><?php echo $this->Html->link(__('New User'), array('action'=>'add')); ?> </li>
        <li><?php echo $this->Html->link(__('List Groups'), array('controller'=> 'groups', 'action'=>'index')); ?> </li>
        <li><?php echo $this->Html->link(__('New Group'), array('controller'=> 'groups', 'action'=>'add')); ?> </li>
    </ul>
</div>