Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * @Author: SisSoftwares WEB (Sistemas PHP)
- * @Date: 2019-05-01 23:48:50
- * @Last Modified by: Usuario
- * @Last Modified time: 2019-05-02 00:05:45
- */
- /**
- * SingleWindowView
- *
- * @version 1.0
- * @package samples
- * @subpackage tutor
- * @author Pablo Dall'Oglio
- * @copyright Copyright (c) 2006 Adianti Solutions Ltd. (http://www.adianti.com.br)
- * @license http://www.adianti.com.br/framework-license
- */
- class TWindowMulti extends TWindow
- {
- /**
- * Constructor method
- */
- public function __construct()
- {
- parent::__construct();
- parent::setTitle('Window');
- // with: 500, height: automatic
- parent::setSize(0.6, null); // use 0.6, 0.4 (for relative sizes 60%, 40%)
- // create the HTML Renderer
- $this->html = new THtmlRenderer('app/resources/page.html');
- $replaces = [];
- $replaces['title'] = 'Panel title';
- $replaces['footer'] = 'Panel footer';
- $replaces['name'] = 'Someone famous';
- // replace the main section variables
- $this->html->enableSection('main', $replaces);
- $window = TWindow::create('TWindow - SEGUNDA!', 0.8, null);
- // https://www.adianti.com.br/forum/pt/view_3362?twindow-que-invoca-outro-twindow-versao-2
- $window->setStackOrder(4000);
- $html_2 = new THtmlRenderer('app/resources/page.html');
- $replaces = [];
- $replaces['title'] = 'Panel title - SEGUNDO!';
- $replaces['footer'] = 'Panel footer - SEGUNDO!';
- $replaces['name'] = 'Someone famous - SEGUNDO!';
- // replace the main section variables
- $html_2->enableSection('main', $replaces);
- $window->add($html_2);
- parent::add($this->html);
- parent::add($window);
- // parent::add($this->html);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment