本文整理匯總了PHP中public_function::chushihuaonepagesize方法的典型用法代碼示例。如果您正苦於以下問題:PHP public_function::chushihuaonepagesize方法的具體用法?PHP public_function::chushihuaonepagesize怎麽用?PHP public_function::chushihuaonepagesize使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類public_function
的用法示例。
在下文中一共展示了public_function::chushihuaonepagesize方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
require_once '../include/pagesizelist.php';
require_once '../include/photo_gl_function.php';
$public_function = new public_function();
$blog_userid = $_SESSION['UID'];
$albumid = $_GET['albumid'];
if ($public_function->getbgbyuser($blog_userid) != "") {
$bg = $public_function->getbgbyuser($blog_userid);
} else {
if ($public_function->getbgbysys() != "") {
$bg = $public_function->getbgbysys();
} else {
$bg = "images/bg/bg3.jpg";
}
}
if ($_GET['types'] == "chushihua") {
$chushihua = $public_function->chushihuaonepagesize($_GET['uid']);
if ($chushihua == true) {
$info = "<font color='green'>初始化成功</font>";
} else {
$info = "<font color='red'>初始化失敗</font>,請<a href='set_photo_onepage_showsize.php?uid=" . $_GET['uid'] . "&types=chushihua'>重試</a>";
}
}
if ($_GET['types'] == "setpagesize") {
$listpsize = $_POST['userlistpsize'];
$uid = $_GET['uid'];
if (setphotolistonesize($uid, $listpsize) == true) {
echo "<script>parent.location.href='view_album_photos.php?info=setonepagesucess&albumid=" . $albumid . "'</script>";
} else {
echo "<script>parent.location.href='view_album_photos.php?info=setonepagefail&albumid=" . $albumid . "'</script>";
}
}
示例2:
<?php
require_once '../../../include/conmysql.php';
require_once '../../../include/public_function.php';
$public_function = new public_function();
$chushihua = $public_function->chushihuaonepagesize($_SESSION['UID']);
if ($chushihua == true) {
echo "<script>location.href='../user_onepagesizelistcsh.php?setonepagesize=sucess'</script>";
} else {
echo "<script>location.href='../user_onepagesizelistcsh.php?setonepagesize=fail'</script>";
}