diff options
Diffstat (limited to 'poc/poc02-compiling-cake/src/vendor/cake_1.1.20.7692/cake/libs/view/templates/scaffolds/index.thtml')
-rw-r--r-- | poc/poc02-compiling-cake/src/vendor/cake_1.1.20.7692/cake/libs/view/templates/scaffolds/index.thtml | 95 |
1 files changed, 0 insertions, 95 deletions
diff --git a/poc/poc02-compiling-cake/src/vendor/cake_1.1.20.7692/cake/libs/view/templates/scaffolds/index.thtml b/poc/poc02-compiling-cake/src/vendor/cake_1.1.20.7692/cake/libs/view/templates/scaffolds/index.thtml deleted file mode 100644 index 3de10af..0000000 --- a/poc/poc02-compiling-cake/src/vendor/cake_1.1.20.7692/cake/libs/view/templates/scaffolds/index.thtml +++ /dev/null @@ -1,95 +0,0 @@ -<?php -/* SVN FILE: $Id: index.thtml 6305 2008-01-02 02:33:56Z phpnut $ */ -/** - * - * PHP versions 4 and 5 - * - * CakePHP(tm) : Rapid Development Framework <http://www.cakephp.org/> - * Copyright 2005-2008, 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-2008, Cake Software Foundation, Inc. - * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project - * @package cake - * @subpackage cake.cake.libs.view.templates.scaffolds - * @since CakePHP(tm) v 0.10.0.1076 - * @version $Revision: 6305 $ - * @modifiedby $LastChangedBy: phpnut $ - * @lastmodified $Date: 2008-01-01 21:33:56 -0500 (Tue, 01 Jan 2008) $ - * @license http://www.opensource.org/licenses/mit-license.php The MIT License - */ -?> -<h1>List <?php echo Inflector::humanize($this->name)?></h1> -<?php -$model = ucwords(Inflector::singularize($this->name)); -$modelKey = $model; -$humanName = Inflector::humanize($this->name); -$humanSingularName = Inflector::singularize( $humanName ); -if (is_null($this->plugin)) { - $path = '/'; -} else { - $path = '/'.$this->plugin.'/'; -} -if (!empty($this->controller->{$model}->modelToTable)) { - foreach ($this->controller->{$model}->modelToTable as $key => $value) { - $alias[] = $key; - } -}?> -<table class="inav" cellpadding="0" cellspacing="0"> -<thead> -<tr> -<?php -foreach ($fieldNames as $fieldName) {?> - <th><?php echo $fieldName['prompt'];?></th> -<?php }?> -<th>Actions</th> -</tr> -</thead> -<tbody> -<?php -$iRowIndex = 0; -if (is_array($data)) { - foreach ($data as $row) { - if ($iRowIndex++ % 2 == 0) { - echo "<tr>"; - } else { - echo "<tr class='altRow'>"; - } - $count = 0; - foreach ($fieldNames as $field=>$value) { ?> - <td> -<?php - if (isset($value['foreignKey'])) { - $otherModelKey = Inflector::underscore($value['modelKey']); - $otherControllerName = $value['controller']; - $otherModelObject =& ClassRegistry::getObject( $otherModelKey ); - if (is_object($otherModelObject)) { - $displayText = $row[$alias[$count]][ $otherModelObject->getDisplayField() ]; - } else { - $displayText = $row[$alias[$count]][$field]; - } - echo $html->link( $displayText, $path.Inflector::underscore($otherControllerName)."/view/".$row[$modelKey][$field] ); - $count++; - } else { - echo $row[$modelKey][$field]; - }?> - </td> -<?php } ?> - <td class="listactions"><?php echo $html->link('View',$path.$this->viewPath."/view/{$row[$modelKey][$this->controller->{$model}->primaryKey]}/")?> - <?php echo $html->link('Edit',$path.$this->viewPath."/edit/{$row[$modelKey][$this->controller->{$model}->primaryKey]}/")?> - <?php echo $html->link('Delete',$path.$this->viewPath."/delete/{$row[$modelKey][$this->controller->{$model}->primaryKey]}/", null, 'Are you sure you want to delete id '.$row[$modelKey][$this->controller->{$model}->primaryKey].' ?')?> - </td> - </tr> -<?php - } -}?> -</tbody> -</table> -<ul class="actions"> - <li><?php echo $html->link('New '.$humanSingularName, $path.$this->viewPath.'/add'); ?></li> -</ul>
\ No newline at end of file |