本文整理汇总了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']);
示例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']);
示例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() ;