* Copyright 2005-2007, Cake Software Foundation, Inc. * 1785 E. Sahara Avenue, Suite 490-204 * Las Vegas, Nevada 89104 * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @filesource * @copyright Copyright 2005-2007, Cake Software Foundation, Inc. * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project * @package cake * @subpackage cake.cake.console.libs.templates.views * @since CakePHP(tm) v 0.10.0.1076 * @version $Revision$ * @modifiedby $LastChangedBy$ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ ?>

counter(array( 'format' => 'Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%' )); ?>

\n"; foreach($fields as $field) { if(in_array($field['name'], array_keys($foreignKeys))) { $otherModelClass = $foreignKeys[$field['name']][1]; $otherModelKey = Inflector::underscore($otherModelClass); $otherControllerName = Inflector::pluralize($otherModelClass); $otherControllerPath = Inflector::underscore($otherControllerName); if(isset($foreignKeys[$field['name']][2])) { $otherModelClass = $foreignKeys[$field['name']][2]; } $otherVariableName = Inflector::variable($otherModelClass); $otherModelObj =& ClassRegistry::getObject($otherModelKey); $otherPrimaryKey = $otherModelObj->primaryKey; $otherDisplayField = $otherModelObj->displayField; echo "\t\t\n"; } else { echo "\t\t\n"; } } echo "\t\t\n"; echo "\t\n"; endforeach; echo "\n"; ?>
sort("{$field['name']}");?>
\n\t\t\t" . $html->link(${$singularVar}[$otherModelClass][$otherDisplayField], array('controller'=> $otherControllerPath, 'action'=>'view', ${$singularVar}[$otherModelClass][$otherPrimaryKey])) . "\n\t\t\n\t\t\t" . ${$singularVar}[$modelClass][$field['name']] . " \n\t\t\n"; echo "\t\t\t" . $html->link(__('View', true), array('action'=>'view', ${$singularVar}[$modelClass][$primaryKey])) . "\n"; echo "\t\t\t" . $html->link(__('Edit', true), array('action'=>'edit', ${$singularVar}[$modelClass][$primaryKey])) . "\n"; echo "\t\t\t" . $html->link(__('Delete', true), array('action'=>'delete', ${$singularVar}[$modelClass][$primaryKey]), null, 'Are you sure you want to delete #' . ${$singularVar}[$modelClass][$primaryKey]) . "\n"; echo "\t\t
prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled')) . "\n";?> | numbers() . "\n"?> next(__('next', true) .' >>', array(), null, array('class'=>'disabled')) . "\n";?>