本文整理汇总了PHP中photo::insertimage方法的典型用法代码示例。如果您正苦于以下问题:PHP photo::insertimage方法的具体用法?PHP photo::insertimage怎么用?PHP photo::insertimage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类photo
的用法示例。
在下文中一共展示了photo::insertimage方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: user
<?php
session_start();
require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/common.class.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/service.class.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/user.class.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/config.class.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/image.class.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/photo.class.php";
$objuser = new user();
$objuser->checkLoginAjax();
if (is_array($_POST)) {
$pid = "";
if (isset($_SESSION['photofilename'])) {
$photo = new photo();
$commonObj = new common();
$size[0] = $commonObj->getConfigValue("imagesize1");
$size[1] = $commonObj->getConfigValue("imagesize2");
$size[2] = $commonObj->getConfigValue("imagesize3");
$photo->createPhotos($size, $_SESSION['photofilename']);
$pid = $photo->insertimage();
}
$objservice = new service();
$objservice->update($_POST);
if ($pid != "") {
$objservice->addimages($_POST['serviceid'], $pid);
}
echo "script: messageBox('Service Updated..',function() { window.location='account.php'; }); ";
}