コード例 #1
0
ファイル: MainLayout.php プロジェクト: saulloga/Prestamos_s
 public function onInit($param)
 {
     parent::onInit($param);
     /*		if($this->User->IsGuest)
     			$this->mnuPrincipal->Visible = false;
     		else*/
     $this->mnuPrincipal->Visible = true;
     /*
     		echo $this->User->Name;
     		echo "<br />";
     		echo $this->Application->id;
     */
     if ($this->Request["popup"] != null) {
         $this->mnuPrincipal->Visible = false;
         $this->pnlEncabezado->Visible = false;
         if ($this->Request["popup"] == "1") {
             $this->pnlCerrar->Visible = true;
         } else {
             $this->pnlCerrar->Visible = false;
         }
     } else {
         $this->pnlCerrar->Visible = false;
         $doc = new TXmlDocument();
         $doc->loadFromFile("protected/layouts/menu.xml");
         $x = $doc->getElements();
         $this->creaMenuXml($x, $this->mnuPrincipal);
     }
 }
コード例 #2
0
ファイル: SearchBox.php プロジェクト: Nurudeen/prado
 public function onInit($param)
 {
     parent::onInit($param);
     if (strlen($q = $this->Page->Request['q']) > 0) {
         $this->search->setText($q);
     }
 }
コード例 #3
0
 /**
  * (non-PHPdoc)
  * @see TControl::onInit()
  */
 public function onInit($param)
 {
     parent::onInit($param);
     $scriptArray = BPCPageAbstract::getLastestJS(get_class($this));
     foreach ($scriptArray as $key => $value) {
         if (($value = trim($value)) !== '') {
             if ($key === 'js') {
                 $this->getPage()->getClientScript()->registerScriptFile(__CLASS__ . 'Js', $this->publishAsset($value));
             } else {
                 if ($key === 'css') {
                     $this->getPage()->getClientScript()->registerStyleSheetFile(__CLASS__ . 'Css', $this->publishAsset($value));
                 }
             }
         }
     }
 }
コード例 #4
0
ファイル: TTooltip.php プロジェクト: quantrocket/planlogiq
 public function onInit($param)
 {
     parent::onInit($param);
     if (self::$instance === false) {
         $jsfile = $this->publishAsset(self::DIR . 'tooltip-v0.1.js');
         $cssfile = $this->publishAsset(self::DIR . 'tooltip.css');
         $csm = $this->getPage()->getClientScript();
         $csm->registerPradoScript("prado");
         if (!$csm->isStyleSheetFileRegistered('tooltip')) {
             $csm->registerStyleSheetFile('tooltip', $cssfile, 'screen');
         }
         if (!$csm->isScriptFileRegistered('tooltip')) {
             $csm->registerScriptFile('tooltip', $jsfile);
         }
         self::$instance = true;
     }
 }
コード例 #5
0
 /**
  * (non-PHPdoc)
  * @see TControl::onInit()
  */
 public function onInit($param)
 {
     parent::onInit($param);
     $scriptArray = BPCPageAbstract::getLastestJS(get_class($this));
     foreach ($scriptArray as $key => $value) {
         if (($value = trim($value)) !== '') {
             if ($key === 'js') {
                 $this->getPage()->getClientScript()->registerScriptFile('PaymentListPanelJs', $this->publishAsset($value));
             } else {
                 if ($key === 'css') {
                     $this->getPage()->getClientScript()->registerStyleSheetFile('PaymentListPanelCss', $this->publishAsset($value));
                 }
             }
         }
     }
     if (!$this->getPage()->IsCallBack && !$this->getPage()->IsPostBack) {
         $js = 'if(typeof(PaymentListPanelJs) !== "undefined") {';
         $js .= 'PaymentListPanelJs.callbackIds = ' . json_encode(array('getPayments' => $this->getPaymentsBtn->getUniqueID(), 'delPayment' => $this->delPaymentBtn->getUniqueID(), 'addPayment' => $this->addPaymentBtn->getUniqueID())) . ';';
         $js .= '}';
         $this->getPage()->getClientScript()->registerEndScript('plpJs', $js);
     }
 }
コード例 #6
0
 public function onInit($param)
 {
     parent::onInit($param);
 }
コード例 #7
0
ファイル: LTemplate.php プロジェクト: Nurudeen/prado
 function onInit($param)
 {
     parent::onInit($param);
     $this->Controls[] = "OnInit";
 }
コード例 #8
0
ファイル: TestLayout.php プロジェクト: quantrocket/planlogiq
 /**
  * @desc Creation of container components, defined in db
  */
 public function onInit($param)
 {
     parent::onInit($param);
     // Register onPreLoad event for this component
     $this->getPage()->attachEventHandler("onPreLoad", array($this, "onPreLoad"));
 }
コード例 #9
0
 public function onInit($param)
 {
     parent::onInit($param);
     //$this->bindListPivotBerichtValue();
 }
コード例 #10
0
 public function onInit($param)
 {
     parent::onInit($param);
     //$this->bindListStrukturStrukturValue();
 }
コード例 #11
0
ファイル: DMessagesPanel.php プロジェクト: bklein01/prado
 public function onInit($param)
 {
     parent::onInit($param);
     $this->MessagesPanelEffect->Text = "";
 }