public function __construct($message, $title = "ATENÇÃO", $width = 360, $height = 180)
 {
     parent::__construct($message, $title, $width, $height);
     $warningPicture = new HTMLImage(AppConfig::baseIcons() . "dialog-warning-48.png");
     $this->dialog->setPosition(50, 50);
     $buttTop = $this->panel->getHeight() - 30;
     $buttLeft = $this->panel->getWidth() - 100;
     $this->panel->appendChild($this->btnOk, $buttTop, $buttLeft);
     $this->panel->appendChild($warningPicture, 25, 25);
     $this->dialog->appendChild($this->panel);
 }
Beispiel #2
0
 public function __construct($message, $title = "INFORMATIVO.", $width = 360, $height = 180)
 {
     parent::__construct($message, $title, $width, $height);
     $info = new HTMLImage(AppConfig::baseIcons() . "web-basic.png");
     $this->dialog->setPosition(0, 0);
     //$buttTop= $this->panel->getHeight()-30;
     //$buttLeft = $this->panel->getWidth()-10;
     $windowId = $this->dialog->getWindowId();
     $this->btnConfirm->onclick = "p=document.getElementById('{$windowId}');(p.parentNode.removeChild(p));";
     $this->panel->appendChild($info, 20, 10);
     $this->dialog->appendChild($this->panel);
 }
Beispiel #3
0
 public function __construct($message, $title = "INFORMATIVO", $width = 360, $height = 180)
 {
     parent::__construct($message, $title, $width, $height);
     $errorPicture = new HTMLImage(AppConfig::baseIcons() . "dialog-error-48.png");
     $this->dialog->setPosition(50, 50);
     $buttTop = $this->panel->getHeight() - 30;
     $buttLeft = $this->panel->getWidth() - 100;
     //$this->btnCancel->src = parent::ICON_PATH."/icons/button-cancel-light.png";
     $this->panel->appendChild($this->btnCancel, $buttTop, $buttLeft);
     $this->panel->appendChild($errorPicture, 25, 15);
     $this->dialog->appendChild($this->panel);
 }
 /**
  * Cria uma caixa de diálogo de informação
  * @param string $message Mensagem a ser exibida
  * @param string $title título da caixa de diálogo
  * @param int $width Largura da caixa de diálogo
  * @param int $height Altura da caixa de diálogo
  */
 public function __construct($message, $title = "INFORMAÇÃO", $width = 360, $height = 180)
 {
     parent::__construct($message, $title, $width, $height);
     $info = new HTMLImage(AppConfig::baseIcons() . "dialog-information-48.png");
     $this->dialog->setPosition(50, 50);
     $buttTop = $this->panel->getHeight() - 30;
     $buttLeft = $this->panel->getWidth() - 100;
     $windowId = $this->dialog->getWindowId();
     $this->btnOk->{IMouseEvent::CLICK} = "\$('#{$windowId}').fadeOut('slow', function(){p=document.getElementById('{$windowId}');(p.parentNode.removeChild(p));});";
     $this->panel->appendChild($this->btnOk, $buttTop, $buttLeft);
     $this->panel->appendChild($info, 25, 15);
     $this->dialog->appendChild($this->panel);
 }
 public function __construct($message, $title = "Solicitação.", $width = 360, $height = 180)
 {
     parent::__construct($message, $title, $width, $height);
     $this->dialog->setPosition(50, 50);
     $questionPicture = new HTMLImage(AppConfig::baseIcons() . "dialog-question-48.png");
     $buttTop = $this->panel->getHeight() - 30;
     $buttLeft = $this->panel->getWidth() - 100;
     $this->btnConfirm->src = AppConfig::baseIcons() . "button-ok-light.png";
     $windowId = $this->dialog->getWindowId();
     $this->btnConfirm->{IMouseEvent::CLICK} = "\$('#{$windowId}').fadeOut('slow', function(){p=document.getElementById('{$windowId}');(p.parentNode.removeChild(p));});";
     $this->panel->appendChild($this->btnConfirm, $buttTop, $buttLeft - 110);
     $this->panel->appendChild($this->btnCancel, $buttTop, $buttLeft);
     $this->panel->appendChild($questionPicture, 25, 15);
     $this->dialog->appendChild($this->panel);
 }
 public function __construct($message = "", $title = "Login...", $width = 360, $height = 180)
 {
     parent::__construct($message, $title, $width, $height);
     $this->dialog->setPosition(150, 150);
     self::$icon = new HTMLImage(AppConfig::baseIcons() . "dialog-password.png");
     $this->form = new HTMLElement("form");
     $this->tblLogin = new HTMLTable();
     $txtLogin = new HTMLInputText("login");
     $txtPasswd = new HTMLInputPassword("passwd");
     $hiddenFrom = new HTMLInputHidden("fromPage");
     $this->form->name = "fLogin";
     $this->form->id = "fLogin";
     $this->form->method = "post";
     $this->form->enctype = "multipart/form-data";
     $this->form->action = "../processa/";
     $hiddenFrom->setValue("clogin");
     //----------------------------------------
     $nameRow = $this->tblLogin->insertRow();
     $nameCol = $nameRow->insertCell("Usuário: ");
     $userCol = $nameRow->insertCell($txtLogin);
     $userCol->colspan = "2";
     //----------------------------------------
     $loginRow = $this->tblLogin->insertRow();
     $loginCol = $loginRow->insertCell("Senha:");
     $loginCol = $loginRow->insertCell($txtPasswd);
     $loginCol->colspan = "2";
     //----------------------------------------
     $btnRow = $this->tblLogin->insertRow();
     $hidCol = $btnRow->insertCell("");
     $cfmCol = $btnRow->insertCell($this->btnConfirm);
     $cclCol = $btnRow->insertCell($this->btnCancel);
     $txtStyle = "font-size:12px;border:1px solid #ADBCC7;color:#6893C3;background:#ffffff;width:100%";
     $viewCss = "color:#4F576C;font-family:Sans Serif;font-size:12px;width:100%;";
     $txtLogin->addCSSStyle($txtStyle);
     $txtPasswd->addCSSStyle($txtStyle);
     $this->tblLogin->style = $viewCss;
     $this->tblLogin->cellspacing = "5";
     $cfmCol->style = "height:50px;vertical-align:bottom;text-align:left;width:90px;";
     $cclCol->style = "height:50px;vertical-align:bottom;text-align:right";
 }