PHP Classes
elePHPant
Icontem

File: View/Cities/admin_view.ctp

Recommend this page to a friend!
  Classes of Andra?  >  pingvincek  >  View/Cities/admin_view.ctp  >  Download  
File: View/Cities/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: 2 months ago
Size: 5,774 bytes
 

Contents

Class file image Download
<div class="cities view">
    <h2><?php echo __('City'); ?></h2>
    <dl><?php $i = 0;
$class = ' class="altrow"'; ?>
<dt<?php if ($i % 2 == 0)
            echo
$class; ?>><?php echo __('geonameid'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo
$class; ?>>
                <?php echo $city['City']['geonameid']; ?>
&nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo
$class; ?>><?php echo __('name'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo
$class; ?>>
                <?php echo $city['City']['name']; ?>
&nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo
$class; ?>><?php echo __('asciiname'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo
$class; ?>>
                <?php echo $city['City']['asciiname']; ?>
&nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo
$class; ?>><?php echo __('alternatenames'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo
$class; ?>>
                <?php echo $city['City']['alternatenames']; ?>
&nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo
$class; ?>><?php echo __('latitude'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo
$class; ?>>
                <?php echo $city['City']['latitude']; ?>
&nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo
$class; ?>><?php echo __('longitude'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo
$class; ?>>
                <?php echo $city['City']['longitude']; ?>
&nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo
$class; ?>><?php echo __('featureClass'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo
$class; ?>>
                <?php echo $city['City']['featureClass']; ?>
&nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo
$class; ?>><?php echo __('featureCode'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo
$class; ?>>
                <?php echo $city['City']['featureCode']; ?>
&nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo
$class; ?>><?php echo __('countryCode'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo
$class; ?>>
                <?php echo $city['City']['countryCode']; ?>
&nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo
$class; ?>><?php echo __('cc2'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo
$class; ?>>
                <?php echo $city['City']['cc2']; ?>
&nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo
$class; ?>><?php echo __('admin1Code'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo
$class; ?>>
                <?php echo $city['City']['admin1Code']; ?>
&nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo
$class; ?>><?php echo __('admin2Code'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo
$class; ?>>
                <?php echo $city['City']['admin2Code']; ?>
&nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo
$class; ?>><?php echo __('admin3Code'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo
$class; ?>>
                <?php echo $city['City']['admin3Code']; ?>
&nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo
$class; ?>><?php echo __('admin4Code'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo
$class; ?>>
                <?php echo $city['City']['admin4Code']; ?>
&nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo
$class; ?>><?php echo __('population'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo
$class; ?>>
                <?php echo $city['City']['population']; ?>
&nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo
$class; ?>><?php echo __('elevation'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo
$class; ?>>
                <?php echo $city['City']['elevation']; ?>
&nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo
$class; ?>><?php echo __('gtopo30'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo
$class; ?>>
                <?php echo $city['City']['gtopo30']; ?>
&nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo
$class; ?>><?php echo __('timezone'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo
$class; ?>>
                <?php echo $city['City']['timezone']; ?>
&nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo
$class; ?>><?php echo __('modificationDate'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo
$class; ?>>
                <?php echo $city['City']['modificationDate']; ?>
&nbsp;
        </dd>
    </dl>
</div>
<div class="actions">
    <ul>
        <li><?php echo $this->Html->link(__('Edit City'), array('action' => 'edit', $city['City']['geonameid'])); ?> </li>
        <li><?php echo $this->Html->link(__('Delete City'), array('action' => 'delete', $city['City']['geonameid']), null, sprintf(__('Are you sure you want to delete city %s?'), $city['City']['name'])); ?> </li>
        <li><?php echo $this->Html->link(__('List Cities'), array('action' => 'index')); ?> </li>
        <li><?php echo $this->Html->link(__('New City'), array('action' => 'add')); ?> </li>
    </ul>
</div>