当前位置: 首页>>代码示例>>PHP>>正文


PHP TPage::onLoad方法代码示例

本文整理汇总了PHP中TPage::onLoad方法的典型用法代码示例。如果您正苦于以下问题:PHP TPage::onLoad方法的具体用法?PHP TPage::onLoad怎么用?PHP TPage::onLoad使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在TPage的用法示例。


在下文中一共展示了TPage::onLoad方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: onLoad

 public function onLoad($param)
 {
     parent::onLoad($param);
     if (!$this->isPostBack && !$this->isCallback) {
         if ($this->Request['rqidtm_ziele'] != '') {
             $this->rqidtm_ziele = $this->Request['rqidtm_ziele'];
         }
         $HRKEYtop = new PFHierarchyPullDown();
         $HRKEYtop->setStructureTable("tm_ziele");
         $HRKEYtop->setRecordClass(ZieleRecord::finder());
         $HRKEYtop->setPKField("idtm_ziele");
         $HRKEYtop->setField("zie_name");
         $HRKEYtop->setSQLCondition("idta_ziele_type=1");
         $HRKEYtop->letsrun();
         $this->idtm_ziele->DataSource = $HRKEYtop->myTree;
         $this->idtm_ziele->dataBind();
         $NEWRECORD = $this->NewRecord;
         $NEWRECORD->setText("neues Element anlegen");
         $NEWRECORD->setToPage("ziele.zieleview");
         $NEWRECORD->setGetVariables('modus=0');
         $NEWSTRECORD = $this->NewStepRecord;
         $NEWSTRECORD->setText("operatives Ziel anlegen");
         $NEWSTRECORD->setToPage("ziele.ttzieleview");
         $NEWSTRECORD->setGetVariables('modus=0');
         $this->bindListOrgListe();
     }
 }
开发者ID:quantrocket,项目名称:planlogiq,代码行数:27,代码来源:zieworkspace.php

示例2: onLoad

 public function onLoad($param)
 {
     parent::onLoad($param);
     if (!$this->IsPostBack) {
         $this->setViewState("clicks", 0);
     }
 }
开发者ID:Nurudeen,项目名称:prado,代码行数:7,代码来源:Ticket21.php

示例3: onLoad

 public function onLoad($param)
 {
     parent::onLoad($param);
     $this->dbConexion = Conexion::getConexion($this->Application, "dbpr");
     Conexion::createConfiguracion();
     $fechaInicial = $_REQUEST['id'];
     $fechafinal = $_REQUEST['id2'];
     $fecha_actual = date("Y-m-d H:i:s");
     $this->lblfechaActual->Text = $fecha_actual;
     $this->lblfechaInicial->Text = $fechaInicial;
     $this->lblfechafinal->Text = $fechafinal;
     $consulta = "SELECT sum(diferencia) AS saldoFinalTotal_1  FROM repdetallemovtos";
     $comando = $this->dbConexion->createCommand($consulta);
     $resultado = $comando->query()->readAll();
     $this->lblsaldoFinalTotal->Text = $resultado[0]["saldoFinalTotal_1"];
     $this->mostrarDatosGriddetalle_movtos();
     $consulta = " SELECT  sum(totalSemana) as totalSemana, sum(totalQuincena) as totalQuincena, sum(totalActivos) as totalActivos, sum(totalJubilados) as totalJubilados, sum(granTotal) as granTotal  FROM Desglose_abonos";
     $comando = $this->dbConexion->createCommand($consulta);
     $resultado = $comando->query()->readAll();
     $this->lblTotalSemanas->Text = $resultado[0]["totalSemana"];
     $this->lblTotalquicena->Text = $resultado[0]["totalQuincena"];
     $this->lblTotalactivos->Text = $resultado[0]["totalActivos"];
     $this->lblTotalJubilados->Text = $resultado[0]["totalJubilados"];
     $this->lblSubTotal->Text = $resultado[0]["granTotal"];
     $this->mostrarDatosGridNomina();
     $this->mostrarDatosGridMovimiento8();
     //$this->mostrarDatosGriddetalle_desglose ();
 }
开发者ID:algerion,项目名称:prestamos,代码行数:28,代码来源:RDesno.php

示例4: onLoad

 public function onLoad($param)
 {
     parent::onLoad($param);
     if (!$this->isPostBack && !$this->isCallback) {
         $this->clearLog(null, null);
     }
 }
开发者ID:Nurudeen,项目名称:prado,代码行数:7,代码来源:Ticket703.php

示例5: onLoad

 public function onLoad($param)
 {
     parent::onLoad($param);
     $handler = $this->Application->getErrorHandler();
     $this->ErrorCode->setText($handler->getErrorCode());
     $this->ErrorMessage->setText($handler->getErrorMessage());
 }
开发者ID:BackupTheBerlios,项目名称:php5cms-svn,代码行数:7,代码来源:ErrorPage.php

示例6: onLoad

 public function onLoad($param)
 {
     parent::onLoad($param);
     if (!$this->User->IsAdmin()) {
         return;
     }
     require "config.php";
     $data = array();
     /*
      ** 2006-04-06 PDurden - Walk through the files in the repository
      **   location. If the file is a directory, check to see if the repository
      **   name exists. If the name does not exist, then add it to the data 
      **   array
      */
     if ($handle = opendir($svn_repos_loc)) {
         while (false !== ($dir = readdir($handle))) {
             if ($dir != "." && $dir != "..") {
                 $file = $svn_repos_loc . DIRECTORY_SEPARATOR . $dir;
                 if (is_dir($file)) {
                     if (!$this->Module->repositoryExists($dir)) {
                         $data[] = array('repositoryname' => $dir);
                     }
                 }
             }
         }
         closedir($handle);
     }
     $this->RepositoryTable->setDataSource($data);
     $this->RepositoryTable->dataBind();
 }
开发者ID:joybinchen,项目名称:svnmanager-1.09,代码行数:30,代码来源:ImportSelectPage.php

示例7: onLoad

 public function onLoad($param)
 {
     parent::onLoad($param);
     if (!$this->isPostBack and !$this->isCallBack) {
         $this->Lbl->setText(date("h:m:s"));
     }
 }
开发者ID:Nurudeen,项目名称:prado,代码行数:7,代码来源:Ticket598.php

示例8: onLoad

 public function onLoad($param)
 {
     parent::onLoad($param);
     if (!$this->IsPostBack) {
         $this->bind_lstTranslations();
     }
 }
开发者ID:quantrocket,项目名称:planlogiq,代码行数:7,代码来源:translationtable.php

示例9: onLoad

 public function onLoad($param)
 {
     parent::onLoad($param);
     $this->cn = new DbCon($this, "db");
     $this->codigo = $this->hidFacebook->Value;
     //mt_rand();
 }
开发者ID:algerion,项目名称:inter,代码行数:7,代码来源:Captura.php

示例10: onLoad

 public function onLoad($param)
 {
     parent::onLoad($param);
     if (!$this->isPostBack && !$this->isCallback) {
         $this->bindListOrgListe();
     }
 }
开发者ID:quantrocket,项目名称:planlogiq,代码行数:7,代码来源:pivotworkspace.php

示例11: onLoad

 public function onLoad($param)
 {
     parent::onLoad($param);
     $idUser = null;
     $idUser = (int) $this->Request['idUser'];
     $this->zone_list_add_racquets_customer->Visible = true;
     $this->editable->Visible = false;
     $this->Page->Title = Prado::localize('ManageCustomersRacquets');
     $this->LBL_LIST_RACQUETS_TO_ADD->Text = Prado::localize('SelectRacquet');
     $this->Search_2->ImageUrl = $this->Page->Theme->BaseUrl . '/images/' . $this->getApplication()->getGlobalization()->Culture . '/search.gif';
     $this->Cancel_2->ImageUrl = $this->Page->Theme->BaseUrl . '/images/' . $this->getApplication()->getGlobalization()->Culture . '/cancel.gif';
     $this->Save->ImageUrl = $this->Page->Theme->BaseUrl . '/images/' . $this->getApplication()->getGlobalization()->Culture . '/save.gif';
     $this->Cancel_3->ImageUrl = $this->Page->Theme->BaseUrl . '/images/' . $this->getApplication()->getGlobalization()->Culture . '/cancel.gif';
     $this->Help->ImageUrl = $this->Page->Theme->BaseUrl . '/images/' . $this->getApplication()->getGlobalization()->Culture . '/help.gif';
     $this->btnCancelSelect->ImageUrl = $this->Page->Theme->BaseUrl . '/images/' . $this->getApplication()->getGlobalization()->Culture . '/cancel.gif';
     if (!$this->IsPostBack) {
         $this->DataGridAddRacquets->DataSource = $this->DataAddRacquets;
         $this->DataGridAddRacquets->dataBind();
     }
     if ($this->User->UserDB->type_user_id == 4) {
         $this->Save->Visible = false;
     } else {
         $this->Save->Visible = true;
     }
 }
开发者ID:bailey-ann,项目名称:stringtools,代码行数:25,代码来源:NewCustomersRacquets.php

示例12: onLoad

 public function onLoad($param)
 {
     parent::onLoad($param);
     $userid = $this->User->getId();
     if ($this->User->IsAdmin()) {
         $results = $this->Module->Database->Execute("SELECT * FROM repositories ORDER BY name");
     } else {
         $results = $this->Module->Database->Execute("SELECT * FROM repositories WHERE ownerid=" . makeSqlString($userid));
     }
     if ($results) {
         $data = array();
         while (!$results->EOF) {
             $fields = $results->fields;
             $owner = $this->Module->getUserName($fields['ownerid']);
             $repoID = $fields['id'];
             $descrResults = $this->Module->Database->Execute("SELECT * FROM repo_descriptions WHERE repo_id=" . makeSqlString($repoID));
             $descrFields = $descrResults->fields;
             if ($descrFields['id']) {
                 $description = wordwrap(htmlspecialchars($descrFields['description']), 40, "<br />\n");
                 $description = $descrFields['description'];
             } else {
                 $description = "No description for " . $fields['name'] . " repository";
             }
             $data[] = array('id' => $fields['id'], 'repositoryname' => $fields['name'], 'owner' => $owner, 'description' => $description);
             $results->MoveNext();
             $this->RepositoryTable->setDataSource($data);
         }
         $results->Close();
     }
     $this->dataBind();
 }
开发者ID:joybinchen,项目名称:svnmanager-1.09,代码行数:31,代码来源:EditSelectPage.php

示例13: onLoad

 public function onLoad($param)
 {
     parent::onLoad($param);
     $this->dbConexion = Conexion::getConexion($this->Application, "db");
     Conexion::createConfiguracion();
     if (!$this->IsPostBack) {
         if (isset($this->Request["nota"])) {
             $nota = Conexion::Retorna_Registro($this->dbConexion, "notas", array("id_nota" => $this->Request["nota"]));
             if (count($nota) > 0) {
                 if ($nota[0]["id_status"] == 2) {
                     $usuario = Conexion::Retorna_Campo($this->dbConexion, "usuarios", "nombre", array("id_usuario" => $nota[0]["id_usuario"]));
                     $this->txtVendedor->Text = $usuario;
                     $this->txtFecha->Text = date("d-m-Y", strtotime($nota[0]["generada"]));
                     $this->txtHora->Text = date("H:i:s", strtotime($nota[0]["generada"]));
                     $this->txtGenerales->Text = "Datos de la empresa";
                     $consulta = "SELECT p.Codigo, p.Descripcion, np.Cantidad, np.Precio, np.cantidad * np.precio AS Total " . "FROM productos p JOIN notas_productos np ON p.id_producto = np.id_producto " . "WHERE np.id_nota = :id_nota";
                     $comando = $this->dbConexion->createCommand($consulta);
                     $comando->bindValue(":id_nota", $this->Request["nota"]);
                     $resultado = $comando->query()->readAll();
                     $this->dgProductos->DataSource = $resultado;
                     $this->dgProductos->dataBind();
                 } elseif ($nota[0]["id_status"] == 1) {
                     $this->getClientScript()->registerBeginScript("entregada", "alert('La nota solicitada no ha sido pagada.');\n" . "document.location.href = 'index.php?page=Entrega';\n");
                 } else {
                     $this->getClientScript()->registerBeginScript("entregada", "alert('La nota solicitada ya ha sido entregada.');\n" . "document.location.href = 'index.php?page=Entrega';\n");
                 }
             } else {
                 $this->getClientScript()->registerBeginScript("sin_nota", "alert('La nota solicitada no existe');\n" . "document.location.href = 'index.php?page=Entrega';\n");
             }
         }
     }
 }
开发者ID:algerion,项目名称:tickets,代码行数:32,代码来源:Paquetes.php

示例14: onLoad

 public function onLoad($param)
 {
     //Globale definition f�r dieses Dokument
     $this->finder = TerminRecord::finder();
     $this->MASTERRECORD = new TerminRecord();
     $this->setUserStartId($this->user->getStartNode($this->user->getUserId($this->user->Name), "tm_activity"));
     date_default_timezone_set('Europe/Berlin');
     parent::onLoad($param);
     if (!$this->isPostBack && !$this->isCallback) {
         $HRKEYTest = new PFHierarchyPullDown();
         $HRKEYTest->setStructureTable("tm_activity");
         $HRKEYTest->setRecordClass(ActivityRecord::finder());
         $HRKEYTest->setPKField("idtm_activity");
         $HRKEYTest->setField("act_name");
         $HRKEYTest->setStartNode($this->UserStartId);
         $HRKEYTest->setSQLCondition("idta_activity_type = 2");
         $HRKEYTest->letsrun();
         $this->FFidtm_activity->DataSource = $HRKEYTest->myTree;
         $this->FFidtm_activity->dataBind();
         $tmpstartdate = new DateTime();
         $this->ter_startdate->setDate($tmpstartdate->format("Y-m-d"));
         $this->ter_enddate->setDate($tmpstartdate->format("Y-m-d"));
         $this->ttidtm_ressource->DataSource = PFH::build_SQLPullDown(RessourceRecord::finder(), "tm_ressource", array("idtm_ressource", "res_name"), "idta_ressource_type>1");
         $this->ttidtm_ressource->dataBind();
         $this->bindListTermin();
     }
 }
开发者ID:quantrocket,项目名称:planlogiq,代码行数:27,代码来源:terworkspace.php

示例15: onLoad

 public function onLoad($param)
 {
     parent::onLoad($sender, $param);
     if (!$this->IsPostBack && !$this->isCallback) {
         $this->bindList();
     }
 }
开发者ID:quantrocket,项目名称:planlogiq,代码行数:7,代码来源:partei.php


注:本文中的TPage::onLoad方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。