예제 #1
0
파일: Download.php 프로젝트: rtsantos/mais
 /**
  * Cria o comando JavaScript
  * @return method 
  */
 public function createJS()
 {
     $this->addHeadScriptFile(ZendT_Url::getBaseDiretoryPublic() . '/scripts/jquery/plugin/ButtonWindowT.js');
     $clickFunction = parent::createJS() . '
             function ' . $this->_getFunctionName() . '(){
                 if($(\'iframe[name="downloadFile"]\').attr(\'name\') == undefined){
                     $(\'html\').append(\'<iframe name="downloadFile"></iframe>\');
                 }
                 $(\'iframe[name="downloadFile"]\')                    
                 .attr(\'src\',\'' . $this->getUrl() . '?' . $this->getParam() . '\');
             }
         ';
     $this->addHeadScript($this->getId(), $clickFunction);
     return $clickFunction;
 }
예제 #2
0
파일: Window.php 프로젝트: rtsantos/mais
 /**
  * Cria o comando JavaScript
  * @return method 
  */
 public function createJS()
 {
     $this->addHeadScriptFile(ZendT_Url::getBaseDiretoryPublic() . '/scripts/jquery/plugin/ButtonWindowT.js');
     $clickFunction = parent::createJS() . '
             function ' . $this->_getFunctionName() . '(){
                 jQuery.ButtonWindowT({
                     url: "' . $this->getUrl() . '",
                     method: "' . $this->getMethod() . '",
                     param: "' . $this->getParam() . '",
                     windowHeight: ' . $this->getWindowHeight() . ',
                     windowWidth: ' . $this->getWindowWidth() . ',
                     type: "' . $this->getType() . '",
                     fullscreen: "' . $this->getFullScreen() . '"
                 });
             }
         ';
     $this->addHeadScript($this->getId(), $clickFunction);
     return $clickFunction;
 }
예제 #3
0
파일: Ajax.php 프로젝트: rtsantos/mais
 /**
  * Cria o comando JavaScript
  * @return method 
  */
 public function createJS()
 {
     $this->addHeadScriptFile(ZendT_Url::getBaseDiretoryPublic() . '/scripts/jquery/plugin/ButtonAjaxT.js');
     $clickFunction = parent::createJS() . '
             function ' . $this->_getFunctionName() . '(){
                 jQuery.ButtonAjaxT({
                     url: "' . $this->getUrl() . '",
                     method: "' . $this->getMethod() . '",
                     param: "' . $this->getParam() . '",
                     onConfirm: ' . $this->getOnConfirm() . ',
                     onAfterLoad: ' . $this->getOnAfterLoad() . '
                 });
             }
         ';
     $this->addHeadScript($this->getId(), $clickFunction);
     return $clickFunction;
 }