Location: PHPKode > projects > RCS Man on the Web > RCSManager-0.2/classes/IndexPage.php
<?php
/** 
 * $Id$
 * $Log$
 */

/****************************************************************************************
 *
 * La classe suivante sert à générer l'explorateur
 *
 * Methods:
 *
 * BannerPage(String $name, String $body, Array $argv)
 *   Builder of this class
 *
 * boolean makeHtmlBody()
 *
 ***************************************************************************************/
Class IndexPage extends AbstractPage
{
  /** Current location */
  var $_pwd = "";

  /**
   * Builder of this class
   * @param $pwd    Current location
   * @param $body   paramètre du corps de page
   * @param $argv   argument de l'URL
   */
  function IndexPage($pwd, $body = false, $argv = false)
  {
    parent::AbstractPage(MyNAME . " / " . BASE_name, $body, $argv);
    $this->_pwd = $pwd;
  }/* IndexPage() */

  /**
   * 
   */
  function out()
  {
    $this->_body->assign("baseurl", BASE_url);
    $this->_body->assign("title", $this->_name);
    $this->_body->assign("options", "folder=" . urlencode($this->_pwd));

    if(!preg_match("/^(1|2|3|4)$/", $this->_argv[mode]))
      { $this->_argv[mode] = 1; }

    $this->_body->parse("main.mode" . $this->_argv[mode]);
    $this->_body->parse("main");
    $this->_body->out("main");
  }/*out()*/

}/* Class IndexPage */

?>
Return current item: RCS Man on the Web