本文整理汇总了PHP中gallery::getFullImagesList方法的典型用法代码示例。如果您正苦于以下问题:PHP gallery::getFullImagesList方法的具体用法?PHP gallery::getFullImagesList怎么用?PHP gallery::getFullImagesList使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类gallery
的用法示例。
在下文中一共展示了gallery::getFullImagesList方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: InputForm
if ($gallery->removeImage($filename)) {
$result .= __('Image removed') . ': ' . $filename . '<br/>';
} else {
$result .= __('Error occurred') . ': ' . $filename . '<br/>';
}
}
}
$gallery->saveIndexFiles();
if (!empty($result)) {
rcms_showAdminMessage($result);
}
}
/******************************************************************************
* Interface *
******************************************************************************/
$files = $gallery->getFullImagesList();
$frm = new InputForm('', 'post', __('Submit'));
$frm->addbreak(__('Uploaded images'));
if (!empty($files)) {
$frm->addmessage(__('To divide keywords use ; symbol'));
// Pagination
if (!empty($system->config['perpage'])) {
$perpage = $system->config['perpage'] * 3;
$pages = ceil(sizeof($files) / $perpage);
if (!empty($_GET['page']) && (int) $_GET['page'] > 0) {
$page = (int) $_GET['page'] - 1;
} else {
$page = 0;
}
$start = $page * $perpage;
$total = $perpage;
示例2: rcms_parse_dynamik_menu
//.........这里部分代码省略.........
$count2 = 0;
foreach ($kw2 as $key2 => $val2) {
$count2++;
if ($count2 != $dyna['max']) {
$arr['ddm_gallery'][$pic_right . ' ' . __('By size') . ' '][$pic_right . ' ' . cut_text($val) . ' '][' ' . cut_text($val2) . ' '] = '?module=gallery&id=' . $val2;
}
}
}
}
}
}
$kw = $gallery->getAvaiableValues('type');
$count = 0;
if (is_array($kw)) {
$kw = array_reverse($kw);
$count++;
if (!isset($dyna['min'])) {
foreach ($kw as $key => $val) {
if ($count != $dyna['max']) {
$arr['ddm_gallery'][$pic_right . ' ' . __('By type') . ' '][$pic_right . ' ' . cut_text($val) . ' '] = array('-' => '?module=gallery&type=' . $val);
$kw2 = $gallery->getLimitedImagesList('type', $val);
$kw2 = array_reverse($kw2);
$count2 = 0;
foreach ($kw2 as $key2 => $val2) {
$count2++;
if ($count2 != $dyna['max']) {
$arr['ddm_gallery'][$pic_right . ' ' . __('By type') . ' '][$pic_right . ' ' . cut_text($val) . ' '][' ' . cut_text($val2) . ' '] = '?module=gallery&id=' . $val2;
}
}
}
}
}
}
$kw = $gallery->getFullImagesList();
$count = 0;
if (count($kw) > 0) {
$kw = array_reverse($kw);
$count++;
foreach ($kw as $key => $val) {
if ($count != $dyna['max']) {
$arr['ddm_gallery'][' ' . cut_text($val) . ' '] = '?module=gallery&id=' . $val;
}
}
}
$item[4] = 'ddm_gallery';
}
$item[3] = 'gallery.png';
} elseif ($item[0] == '?module=user.list') {
if (!isset($dyna['use_mem'])) {
$userlist = $system->getUserList('*', 'nickname');
$count = 0;
if (count($userlist) > 0) {
$item[1] .= ' ' . $pic_down;
$userlist = array_reverse($userlist);
foreach ($userlist as $conkey => $conval) {
$count++;
if ($count != $dyna['max']) {
$arr['ddm_users'][' ' . cut_text($conval['nickname']) . ' '] = '?module=user.list&user=' . $conval['username'];
}
}
}
$item[4] = 'ddm_users';
}
$item[3] = 'userlist.png';
} elseif ($item[0] == '?module=filesdb') {
if (!isset($dyna['use_fdb'])) {
示例3: array
$images_t = $gallery->getLimitedImagesList('type', $_GET['type']);
$images = array();
foreach ($images_s as $image) {
if (in_array($image, $images_t)) {
$images[] = $image;
}
}
$linkdata .= '&size=' . $_GET['size'] . '&type=' . $_GET['type'];
} elseif (!empty($_GET['size'])) {
$images = $gallery->getLimitedImagesList('size', $_GET['size']);
$linkdata .= '&size=' . $_GET['size'];
} elseif (!empty($_GET['type'])) {
$images = $gallery->getLimitedImagesList('type', $_GET['type']);
$linkdata .= '&type=' . $_GET['type'];
} else {
$images = $gallery->getFullImagesList();
}
if (!empty($_GET['keyword'])) {
$images_k = $gallery->getLimitedImagesList('keywords', $_GET['keyword']);
$images_a = $images;
$images = array();
foreach ($images_k as $image) {
if (in_array($image, $images_a)) {
$images[] = $image;
}
}
$linkdata .= '&keyword=' . $_GET['keyword'];
}
if (!empty($images)) {
$imagesf = array_flip($images);
arsort($imagesf);