本文整理汇总了PHP中Banner::upload_banners方法的典型用法代码示例。如果您正苦于以下问题:PHP Banner::upload_banners方法的具体用法?PHP Banner::upload_banners怎么用?PHP Banner::upload_banners使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Banner
的用法示例。
在下文中一共展示了Banner::upload_banners方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: header
$setData = $tempo;
$setIddepartamento = $_POST["iddep"];
$setLado = $_POST["lado"];
$setNumero = $_POST["numero"];
$setWidth = $largura;
$setHeight = $altura;
$banner->setLado($setLado);
$banner->setIddepartamento($setIddepartamento);
$banner->setNumero($setNumero);
$banner->setBanner($setBanner);
$banner->setWidth($setWidth);
$banner->setHeight($setHeight);
$banner->setUrl($setUrl);
$banner->setTarget($setTarget);
$banner->setData($setData);
$ok = $banner->upload_banners($name, $type, $tmp_name, $size, $tamanho, $banner->getWidth(), $banner->getHeight());
if ($ok == true) {
$iddep = $banner->getIddepartamento();
$bannerDAO->Insere($banner);
header("location: ../principal.php?menu={$idmenu}&act={$act}&iddep={$iddep}");
} else {
header("location: ../principal.php?menu={$idmenu}&act={$act}");
}
break;
//altera banner
//altera banner
case "Alterar":
$act = "mostra";
if ($_POST["remover"]) {
$idbanner = $_POST["idbanner"];
$banner = $bannerDAO->getBannerPorId($idbanner);