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); } }
public function onInit($param) { parent::onInit($param); if (strlen($q = $this->Page->Request['q']) > 0) { $this->search->setText($q); } }
/** * (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)); } } } } }
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; } }
/** * (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); } }
public function onInit($param) { parent::onInit($param); }
function onInit($param) { parent::onInit($param); $this->Controls[] = "OnInit"; }
/** * @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")); }
public function onInit($param) { parent::onInit($param); //$this->bindListPivotBerichtValue(); }
public function onInit($param) { parent::onInit($param); //$this->bindListStrukturStrukturValue(); }
public function onInit($param) { parent::onInit($param); $this->MessagesPanelEffect->Text = ""; }