本文整理汇总了PHP中Manager::getPictures方法的典型用法代码示例。如果您正苦于以下问题:PHP Manager::getPictures方法的具体用法?PHP Manager::getPictures怎么用?PHP Manager::getPictures使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Manager
的用法示例。
在下文中一共展示了Manager::getPictures方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Picture
<?php
/**
* Created by PhpStorm.
* User: Papangping
* Date: 8/7/14
* Time: 4:56 PM
*/
if ($_SERVER['REQUEST_METHOD'] == "POST") {
Manager::uploadPictures($_FILES['files'], $_GET['type']);
Helper::reload();
exit;
}
$pictures = Manager::getPictures($_GET['type']);
?>
<div style="padding: 20px;">
<form class="form-upload" method="post" enctype="multipart/form-data">
<h4>Upload New Picture(*ควร upload ทีละไม่เกิน 8Mb)</h4>
<input type="file" name="files[]" multiple>
<input type="submit" value="Upload">
<br />
<small>อณุญาติให้ upload ได้เฉพาะไฟล์ jpg, jpeg, png เท่านั้น</small>
</form>
<div>
<form method="post" action="?page=delete_picture&type=<?php
echo $_GET['type'];
?>
">
<?php
foreach ($pictures as $key => $picture) {
?>
示例2:
}
?>
</div>
<div class="clearfix"></div>
<h3 class="title-style1">
<?php
echo $text['header3'];
?>
<span class="title-block"></span>
</h3>
<div>
<?php
$pictures = Manager::getPictures('room_vip');
foreach ($pictures as $key => $picture) {
?>
<a class="fancybox" rel="gallery3" href="pictures/<?php
echo $picture['path'];
?>
" alt="">
<img src="thumb.php?url=pictures/<?php
echo $picture['path'];
?>
" alt=""/>
</a>
<?php
}
?>
</div>
示例3:
<?php
}
?>
</div>
<div class="clearfix"></div>
<h3 class="title-style1">
<?php
echo $text['header3'];
?>
<span class="title-block"></span>
</h3>
<div>
<?php
$pictures = Manager::getPictures('gallery_room');
foreach ($pictures as $key => $picture) {
?>
<a class="fancybox" rel="gallery3" href="pictures/<?php
echo $picture['path'];
?>
" alt="">
<img src="thumb.php?url=pictures/<?php
echo $picture['path'];
?>
" alt=""/>
</a>
<?php
}
?>
</div>