当前位置: 首页>>代码示例>>PHP>>正文


PHP gallery::getFullImagesList方法代码示例

本文整理汇总了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;
开发者ID:Parashutik,项目名称:ReloadCMS,代码行数:31,代码来源:images.php

示例2: rcms_parse_dynamik_menu


//.........这里部分代码省略.........
                                $count2 = 0;
                                foreach ($kw2 as $key2 => $val2) {
                                    $count2++;
                                    if ($count2 != $dyna['max']) {
                                        $arr['ddm_gallery'][$pic_right . '&nbsp;&nbsp;' . __('By size') . '&nbsp;&nbsp;'][$pic_right . '&nbsp;&nbsp;' . cut_text($val) . '&nbsp;&nbsp;']['&nbsp;&nbsp;' . cut_text($val2) . '&nbsp;&nbsp;'] = '?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 . '&nbsp;&nbsp;' . __('By type') . '&nbsp;&nbsp;'][$pic_right . '&nbsp;&nbsp;' . cut_text($val) . '&nbsp;&nbsp;'] = 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 . '&nbsp;&nbsp;' . __('By type') . '&nbsp;&nbsp;'][$pic_right . '&nbsp;&nbsp;' . cut_text($val) . '&nbsp;&nbsp;']['&nbsp;&nbsp;' . cut_text($val2) . '&nbsp;&nbsp;'] = '?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']['&nbsp;&nbsp;' . cut_text($val) . '&nbsp;&nbsp;'] = '?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] .= '&nbsp;' . $pic_down;
                    $userlist = array_reverse($userlist);
                    foreach ($userlist as $conkey => $conval) {
                        $count++;
                        if ($count != $dyna['max']) {
                            $arr['ddm_users']['&nbsp;&nbsp;' . cut_text($conval['nickname']) . '&nbsp;&nbsp;'] = '?module=user.list&user=' . $conval['username'];
                        }
                    }
                }
                $item[4] = 'ddm_users';
            }
            $item[3] = 'userlist.png';
        } elseif ($item[0] == '?module=filesdb') {
            if (!isset($dyna['use_fdb'])) {
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:67,代码来源:templates.php

示例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 .= '&amp;size=' . $_GET['size'] . '&amp;type=' . $_GET['type'];
 } elseif (!empty($_GET['size'])) {
     $images = $gallery->getLimitedImagesList('size', $_GET['size']);
     $linkdata .= '&amp;size=' . $_GET['size'];
 } elseif (!empty($_GET['type'])) {
     $images = $gallery->getLimitedImagesList('type', $_GET['type']);
     $linkdata .= '&amp;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 .= '&amp;keyword=' . $_GET['keyword'];
 }
 if (!empty($images)) {
     $imagesf = array_flip($images);
     arsort($imagesf);
开发者ID:Parashutik,项目名称:ReloadCMS,代码行数:31,代码来源:index.php


注:本文中的gallery::getFullImagesList方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。