本文整理匯總了PHP中Website::updatepage方法的典型用法代碼示例。如果您正苦於以下問題:PHP Website::updatepage方法的具體用法?PHP Website::updatepage怎麽用?PHP Website::updatepage使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Website
的用法示例。
在下文中一共展示了Website::updatepage方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Website
}
if (empty($_POST['pagecontent'])) {
$error .= "you have not entered pagecontent<br>";
}
if (!empty($error)) {
} else {
echo " " . $error;
}
if (isset($_POST['btnmodifypage'])) {
$pageid = Mod_addslashes($_POST['pageid']);
$pagename = Mod_addslashes(trim($_POST['pagename']));
$pagecontent = Mod_addslashes(trim($_POST['pagecontent']));
$pagemenu = Mod_addslashes($_POST['pagemenu']);
$pagestatus = Mod_addslashes($_POST['pagestatus']);
$website = new Website();
$modres = $website->updatepage($pageid, $pagename, $pagecontent, $pagemenu, $pagestatus);
if ($modres > 0) {
$presubmenu = '';
$submenupages = '';
if ($pagemenu == 'Yes' && !empty($_POST['arrsubmenu'])) {
$presubmenu = $_POST['arrsubmenu'];
}
if ($pagemenu == 'Yes' && !empty($_POST['submenu'])) {
$selsubmenu = Mod_addslashes($_POST['checksubmenu']);
if ($selsubmenu == 'Yes') {
$submenupages = $_POST['submenu'];
}
}
$res = $website->addsubmenu($pageid, $submenupages, $presubmenu);
if ($res > 0) {
//echo "submenu pages added successfully";