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


PHP Display::setPage方法代码示例

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


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

示例1: sqlQuery

         }
         $valuelist .= "`{$key}` = {$val}, ";
         $this->setLog(" add:`{$key}` = {$val}, ");
     }
     $valuelist = ereg_replace(', $', '', $valuelist);
     $query = "UPDATE `{$table}` SET {$valuelist} WHERE {$primarykey}";
 }
 $this->setLog("\n Running query:\n" . $query);
 $sql_query = $query;
 $qSaveData = new sqlQuery($dbc);
 $result = $qSaveData->query($query);
 //  $uniqid = $qSaveData->getInsertId() ; PL 20030516 not used
 if (!$result) {
     $error = $qSaveData->getError();
     $this->addParam("recordupdated", "no");
     $disp->setPage($urlerror);
     $disp->addParam("message", $strInsertError . $error);
     $this->setDisplayNext($disp);
 } else {
     $disp->setPage(urldecode($goto));
     if (strlen($setmessage) > 0) {
         $strUpdateOk = $setmessage;
     }
     $this->addParam("recordupdated", "yes");
     $disp->addParam("message", $strUpdateOk);
     //    $disp->addParam("updateid", $uniqid) ; ; PL 20030516 not used could be replace with value of primary key
     $disp->addParam("update", "yes");
     $this->setDisplayNext($disp);
 }
 if (!empty($_SERVER['PHP_SELF'])) {
     $disp->save("displayUpdateRecord", $_SERVER['PHP_SELF']);
开发者ID:philfree,项目名称:radria,代码行数:31,代码来源:mydb.updateRecord.inc.php

示例2: VALUES

         }
         $fieldlist = ereg_replace(', $', '', $fieldlist);
         $valuelist = ereg_replace(', $', '', $valuelist);
         $query = "INSERT INTO `{$table}` ({$fieldlist}) VALUES ({$valuelist})";
     }
     $this->setLog("\n Running query:\n" . $query);
     $message = urlencode($strInsertOk);
     $sql_query = $query;
     $qSaveData = new sqlQuery($this->dbc);
     $result = $qSaveData->query($query);
     $uniqid = $qSaveData->getInsertId($table, "id" . $table);
     $this->addParam("insertid", $uniqid);
     if (!$result) {
         $error = $qSaveData->getError();
         $this->addParam("recordinserted", "no");
         $disp->setPage($urlerror);
         $disp->addParam("message", $strInsertError . $error);
     } else {
         $disp->setPage($goto);
         if (strlen($setmessage) > 0) {
             $strInsertOk = $setmessage;
         }
         $this->addParam("recordinserted", "yes");
         $disp->addParam("message", $strInsertOk);
         $disp->addParam("insertid", $uniqid);
         $disp->addParam("updage", "no");
     }
     $this->setDisplayNext($disp);
 }
 if (!empty($_SERVER['PHP_SELF'])) {
     $disp->save("displayAddRecord", $_SERVER['PHP_SELF']);
开发者ID:philfree,项目名称:radria,代码行数:31,代码来源:mydb.addRecord.inc.php

示例3: Display

session_unregister("manageData");
$globalevents[displayTableOrder] = 0;
$globalevents[manageData] = 0;
session_register("globalevents");
if ($doSave != "no") {
    $infoDisplay = new Display();
    $infoDisplay->addParam("mydb_num", $mydb_num);
    if ($displaytype == "form") {
        $infoDisplay->addParam("goto", $gotonext);
        // $infoDisplay->addParam("toto", "toto") ;
        if (strlen($empty) > 0) {
            $infoDisplay->addParam("empty", $empty);
        } else {
            if (strlen($table) > 0) {
                $infoDisplay->addParam("table", $table);
                $infoDisplay->addParam("id" . $table, ${"id" . $table});
            }
        }
        $goto = "displayform.php";
    }
    if (strlen($goto) > 0) {
        $infoDisplay->setPage($goto);
        $this->setDisplayNext($infoDisplay);
        $infoDisplay->save("infoDisplay", basename($goto));
    } else {
        $infoDisplay->setPage("displayreport.php");
        $this->setDisplayNext($infoDisplay);
        $infoDisplay->save("infoDisplay", "displayreport.php");
    }
}
//echo $this->getUrlNext() ;
开发者ID:philfree,项目名称:radria,代码行数:31,代码来源:mydb.callDisplay.inc.php


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