[ Index ]
 

Code source de CakePHP 1.1.13.4450

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/cake/libs/view/templates/scaffolds/ -> add.thtml (source)

   1  <?php
   2  /* SVN FILE: $Id: add.thtml 4409 2007-02-02 13:20:59Z phpnut $ */
   3  /**
   4   *
   5   * PHP versions 4 and 5
   6   *
   7   * CakePHP(tm) :  Rapid Development Framework <http://www.cakephp.org/>
   8   * Copyright 2005-2007, Cake Software Foundation, Inc.
   9   *                                1785 E. Sahara Avenue, Suite 490-204
  10   *                                Las Vegas, Nevada 89104
  11   *
  12   * Licensed under The MIT License
  13   * Redistributions of files must retain the above copyright notice.
  14   *
  15   * @filesource
  16   * @copyright        Copyright 2005-2007, Cake Software Foundation, Inc.
  17   * @link                http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
  18   * @package            cake
  19   * @subpackage        cake.cake.libs.view.templates.scaffolds
  20   * @since            CakePHP(tm) v 0.10.0.1076
  21   * @version            $Revision: 4409 $
  22   * @modifiedby        $LastChangedBy: phpnut $
  23   * @lastmodified    $Date: 2007-02-02 07:20:59 -0600 (Fri, 02 Feb 2007) $
  24   * @license            http://www.opensource.org/licenses/mit-license.php The MIT License
  25   */
  26  ?>
  27  <h1>New <?php echo Inflector::humanize($this->name)?></h1>
  28  <?php
  29  if(is_null($this->plugin)) {
  30      $path = '/';
  31  } else {
  32      $path = '/'.$this->plugin.'/';
  33  }
  34  echo $html->formTag($path. Inflector::underscore($this->name).'/create');
  35  echo $form->generateFields( $fieldNames );
  36  echo $form->generateSubmitDiv( 'Add' );?>
  37  </form>
  38  <ul class='actions'>
  39  <?php echo "<li>".$html->link('List  '.Inflector::humanize($this->name), $path.$this->viewPath.'/index')."</li>"; ?>
  40  </ul>


Généré le : Sun Feb 25 19:27:47 2007 par Balluche grâce à PHPXref 0.7