本文整理汇总了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>";
}