예제 #1
0
 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
 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
 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
 function onInit($param)
 {
     parent::onInit($param);
     $this->Controls[] = "OnInit";
 }
예제 #8
0
 /**
  * @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();
 }
예제 #11
0
 public function onInit($param)
 {
     parent::onInit($param);
     $this->MessagesPanelEffect->Text = "";
 }