[ Index ]
 

Code source de PRADO 3.0.6

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

title

Body

[fermer]

/demos/quickstart/protected/controls/ -> RunBar.php (source)

   1  <?php
   2  
   3  class RunBar extends TTemplateControl
   4  {
   5  	public function getPagePath()
   6      {
   7          return $this->getViewState('PagePath','');
   8      }
   9  
  10  	public function setPagePath($value)
  11      {
  12          $this->setViewState('PagePath',$value,'');
  13      }
  14  
  15  	public function onPreRender($param)
  16      {
  17          $pagePath=$this->getPagePath();
  18          $this->RunButton->NavigateUrl="?page=$pagePath";
  19          $this->ViewSourceButton->NavigateUrl="?page=ViewSource&path=/".strtr($pagePath,'.','/').'.page';
  20      }
  21  }
  22  
  23  ?>


Généré le : Sun Feb 25 21:07:04 2007 par Balluche grâce à PHPXref 0.7