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


PHP display_thumbnails函数代码示例

本文整理汇总了PHP中display_thumbnails函数的典型用法代码示例。如果您正苦于以下问题:PHP display_thumbnails函数的具体用法?PHP display_thumbnails怎么用?PHP display_thumbnails使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了display_thumbnails函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: display_thumbnails

require 'admin/connection.php';
?>

	<?php 
require 'nav.php';
?>

		<div class="content-wrap">
			<div class="container">
				<div class="main-wrap">
					<div id='wsite-content' class='wsite-elements wsite-not-footer'>

						<?php 
//display thumbnails
require 'thumbnails.php';
display_thumbnails($conn, 'SELECT item.*, locations.State FROM item, locations WHERE Subtype="aluminum" AND item.Location=locations.ID');
?>

					</div>
				</div>
			</div>
			<!-- end container -->
		</div>
		<!-- end main-wrap -->

		<?php 
require 'footer.php';
?>

</html>
开发者ID:americk0,项目名称:BrownEquipmentWebsite,代码行数:30,代码来源:aluminum.php

示例2: get_lang

        $out .= '<!-- current dir name line -->' . "\n" . '<tr>' . "\n" . '<td colspan="' . $colspan . '" align="left">' . "\n" . get_lang('No image to display') . '</td>' . "\n" . '</tr>' . "\n";
    } else {
        if (has_previous_page($imageList, $page)) {
            // link to previous page
            $out .= '<a href="' . claro_htmlspecialchars(Url::Contextualize($_SERVER['PHP_SELF'] . '?docView=thumbnails&cwd=' . rawurlencode($curDirPath) . '&page=' . ($page - 1) . $searchCmdUrl)) . '">&lt;&lt;&nbsp;&nbsp;page&nbsp;' . ($page - 1) . '</a>' . "\n";
        } else {
            $out .= '<!-- empty -->';
        }
        $out .= '</th>' . "\n" . '<th class="title" colspan="' . (get_conf('numberOfCols', 3) - 2) . '">' . "\n" . '<p align="center">' . get_lang('Page') . '&nbsp;' . $page . '</p>' . '</th>' . "\n" . '<th class="next" colspan="1" style="width: ' . $colWidth . '%;">' . "\n";
        if (has_next_page($imageList, $page)) {
            // link to next page
            $out .= '<a href="' . claro_htmlspecialchars(Url::Contextualize($_SERVER['PHP_SELF'] . '?docView=thumbnails&cwd=' . rawurlencode($curDirPath) . '&page=' . ($page + 1) . $searchCmdUrl)) . '">' . get_lang('Page') . '&nbsp;' . ($page + 1) . '&nbsp;&nbsp;&gt;&gt;</a>' . "\n";
        } else {
            $out .= '<!-- empty -->';
        }
        $out .= '</th>' . "\n" . '</tr>' . "\n" . display_thumbnails($imageList, $fileList, $page, get_conf('thumbnailWidth'), $colWidth, get_conf('numberOfCols'), get_conf('numberOfRows'));
    }
    $out .= '</table>' . "\n";
} else {
    $searchCmdUrl = '';
    if (isset($_REQUEST['searchPattern'])) {
        $searchCmdUrl = '&amp;cmd=exSearch&amp;searchPattern=' . rawurlencode($_REQUEST['searchPattern']);
    }
    $out .= claro_html_document_breadcrumb($curDirPath) . '<table class="claroTable emphaseLine" width="100%">' . '<thead>' . "\n";
    // CURRENT DIRECTORY LINE
    if ($cmd == 'exSearch') {
        $curDirLine = get_lang('Search result');
    } elseif ($curDirName) {
        $curDirLine = '<img src="' . get_icon_url('opendir') . '" alt="" />' . "\n" . $dspCurDirName . "\n";
    } else {
        $curDirLine = '&nbsp;';
开发者ID:rhertzog,项目名称:lcs,代码行数:31,代码来源:document.php

示例3: display_thumbnails

     display_thumbnails('lastalb', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
     break;
 case 'topn':
     display_thumbnails('topn', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
     flush();
     break;
 case 'toprated':
     display_thumbnails('toprated', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
     flush();
     break;
 case 'lastcom':
     display_thumbnails('lastcom', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
     flush();
     break;
 case 'lasthits':
     display_thumbnails('lasthits', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
     flush();
     break;
 case 'anycontent':
     if ($cat == 0) {
         ob_start();
         /**
          * Any php code or HTML can be put in this file and will be displayed
          */
         include 'anycontent.php';
         $anycontent = CPGPluginAPI::filter('anycontent', ob_get_contents());
         ob_end_clean();
         echo $anycontent;
     }
     flush();
     break;
开发者ID:phill104,项目名称:branches,代码行数:31,代码来源:index.php

示例4: get_file_icon_path

                if (!is_image_extenstion($extension)) {
                    $html .= '<div class="item">
				<a href="" class="pdf-thumbs" data-icon="' . get_file_icon_path($extension) . '" rel="' . $c['path'] . '" title="' . $c['name'] . '">
				<img src="' . get_file_icon_path($extension) . '" class="img-polaroid" width="130" height="90">
				</a>
				<div>
				<a href="" class="pull-left transparent change-file" title="' . lang('change_name') . '" rel="' . $c['name'] . '"><i class="icon-pencil"></i></a>
				<a href="" class="pull-right transparent delete-file" data-path="' . urlencode($c['x']) . '" rel="' . urlencode($c['p']) . '" title="' . lang('delete') . '"><i class="icon-trash"></i></a>
				<div class="clearfix"></div>
				<p class="caption">' . TrimText($c['name'], 17) . '</p>
				</div>
				</div>';
                } else {
                    $html .= '<div class="item">
				<a href="" class="img-thumbs" rel="' . $c['path'] . '" title="' . $c['name'] . '">
				<img src="' . display_thumbnails($c['path']) . '" class="img-polaroid" width="130" height="90">
				</a>
				<div>
				<a href="" class="pull-left transparent change-file" title="' . lang('change_name') . '" rel="' . $c['name'] . '"><i class="icon-pencil"></i></a>
				<a href="" class="pull-right transparent delete-file" data-path="' . urlencode($c['x']) . '" rel="' . urlencode($c['p']) . '" title="' . lang('delete') . '"><i class="icon-trash"></i></a>
				<div class="clearfix"></div>
				<p class="caption">' . TrimText($c['name'], 17) . '</p>
				</div>
				</div>';
                }
            }
        }
    }
    if ($html != '') {
        if ($view == 'list') {
            $html = '<br/><table class="table">' . $html . '</table>';
开发者ID:ilkinium,项目名称:btec.dev,代码行数:31,代码来源:contents.php

示例5: elseif

    }
} elseif ($action == "age") {
    $images = sort_by_date($groups, $album);
} elseif ($action == "random") {
    $images = sort_by_random($groups, $album);
} elseif ($action == "virtual") {
    $images = array();
    $lines = file(stripslashes(urldecode($album)));
    foreach ($lines as $line_num => $line) {
        $images[] = $line;
    }
} elseif ($action == "go_on") {
    // Do nothing
} else {
    die("Error");
}
$size_dir = sizeof($images);
$_SESSION['images'] = $images;
display_thumbnails($images, $page * $limit, $limit);
$imagesphp = array_to_get($images, "album");
$nextpage = $page + 1;
if ($page < 1) {
    echo "<li class='end'>More...</li></ul>";
}
if ($page < 1) {
    echo "\n\t<script>\n\t\$(document).ready(function() {\n\t\t\n\t\tchange_display('init');\t\n\t\tvar page = 0;\n\t\t\n\t\t\n\t\tvar limit={$limit};\n\t\tvar size_dir={$size_dir};\n\t\t\n\t\tif((page+1)*limit + 2 >= size_dir) {\n\t\t\t\$('.end').remove();\n\t\t}\n\t\t\n\t\t\$('.end').click(function(){\n\t\t\t\$(this).remove();\n\t\t\tpage++;\n\t\t\tdisplay_more(page,limit,size_dir);\n\t\t});\n\t\t\n\t\t\n\t});\n\t</script>\n\t";
}
?>


开发者ID:JocelynDelalande,项目名称:PhotoShow,代码行数:28,代码来源:files.php

示例6: display_thumbnails

?>

		<div class="content-wrap">
			<div class="container">
				<div class="main-wrap">
					<div id='wsite-content' class='wsite-elements wsite-not-footer'>

						<?php 
//display thumbnails
require 'thumbnails.php';
echo '<p class="tableTitle">Aluminum</p>';
display_thumbnails($conn, 'SELECT item.*, locations.State FROM item, locations WHERE Type="Tanker" AND Subtype="Aluminum" AND item.Location=locations.ID');
echo '<p class="tableTitle">Aluminum/Air-Ride</p>';
display_thumbnails($conn, 'SELECT item.*, locations.State FROM item, locations WHERE Type="Tanker" AND Subtype="Aluminum/Air-Ride" AND item.Location=locations.ID');
echo '<p class="tableTitle">Steel</p>';
display_thumbnails($conn, 'SELECT item.*, locations.State FROM item, locations WHERE Type="Tanker" AND Subtype="Steel" AND item.Location=locations.ID');
?>

					</div>
				</div>
			</div>
			<!-- end container -->
		</div>
		<!-- end main-wrap -->

		<?php 
require 'footer.php';
?>

</html>
开发者ID:americk0,项目名称:BrownEquipmentWebsite,代码行数:30,代码来源:cement-tankers.php

示例7: display_thumbnails

                if ($cat != 1) {
                    display_thumbnails('topn', '', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
                }
                break;
            case 'toprated':
                if ($cat != 1) {
                    display_thumbnails('toprated', '', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
                }
                break;
            case 'lastcom':
                if ($cat != 1) {
                    display_thumbnails('lastcom', '', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
                }
                break;
            case 'lastcomby':
                if ($cat != 1 && USER_ID > 1) {
                    display_thumbnails('lastcomby', '', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
                }
                break;
            case 'anycontent':
                require "{$CPG_M_DIR}/anycontent.php";
                break;
            case 'favpics':
                if (count($FAVPICS) > 0) {
                    display_thumbnails('favpics', '', '', 1, count($FAVPICS), max(1, $matches[2]), false);
                }
                break;
        }
    }
}
pagefooter();
开发者ID:cbsistem,项目名称:nexos,代码行数:31,代码来源:index.php

示例8: unserialize

    if (mysql_num_rows($result)) {
        // This album has a password.
        // Check whether the cookie is set for the current albums password
        if (!empty($_COOKIE[$CONFIG['cookie_name'] . '_albpw'])) {
            $alb_pw = unserialize($_COOKIE[$CONFIG['cookie_name'] . '_albpw']);
            // Check whether the alubm id in the cookie is same as that of the album id send by get
            if (isset($alb_pw[$album]) && ctype_alnum($alb_pw[$album])) {
                $sql = "SELECT aid FROM " . $CONFIG['TABLE_ALBUMS'] . " WHERE MD5(alb_password)='{$alb_pw[$album]}' AND aid='{$album}'";
                $result = cpg_db_query($sql);
                if (mysql_num_rows($result)) {
                    $valid = true;
                    //The album password is correct. Show the album details.
                    get_private_album_set();
                }
            }
        }
    } else {
        // Album with no password. Might be a private or normal album. Just set valid as true.
        $valid = true;
    }
}
$META_ALBUM_SET = $ALBUM_SET;
//temporary assignment until we are sure we are keeping the $META_ALBUM_SET functionality.
CPGPluginAPI::filter('post_breadcrumb', null);
if (!$valid) {
    form_albpw();
} else {
    display_thumbnails($album, isset($cat) ? $cat : 0, $page, $CONFIG['thumbcols'], $CONFIG['thumbrows'], true);
}
pagefooter();
ob_end_flush();
开发者ID:alencarmo,项目名称:OCF,代码行数:31,代码来源:thumbnails.php

示例9: display_thumbnails

?>

	<?php 
require 'nav.php';
?>


		<div class="content-wrap">
			<div class="container">
				<div class="main-wrap">
					<div id='wsite-content' class='wsite-elements wsite-not-footer'>

						<?php 
//display thumbnails
require 'thumbnails.php';
display_thumbnails($conn, 'SELECT item.*, locations.State FROM item, locations WHERE Subtype="Rear Discharge" AND item.Location=locations.ID');
?>

					</div>
				</div>
			</div>
			<!-- end container -->
		</div>
		<!-- end main-wrap -->

		<?php 
require 'footer.php';
?>

</html>
开发者ID:americk0,项目名称:BrownEquipmentWebsite,代码行数:30,代码来源:rear-discharge.php

示例10: get_subcat_data

        }
        get_subcat_data($cat, $album_set_array, $xoopsModuleConfig['subcat_level']);
        // Treat the album set
        if (count($album_set_array)) {
            $set = '';
            foreach ($album_set_array as $album_id) {
                $set .= $set == '' ? $album_id : ',' . $album_id;
            }
            $ALBUM_SET .= "AND aid IN ({$set}) ";
        }
        breadcrumb($cat, $breadcrumb, $breadcrumb_text);
    }
}
$xoopsOption['template_main'] = 'xcgal_index.html';
include XOOPS_ROOT_PATH . "/header.php";
$xoopsTpl->assign('xoops_module_header', $xcgal_module_header);
$xoopsTpl->assign('display_alb_list', '');
user_save_profile();
include_once "include/theme_func.php";
if ($breadcrumb) {
    theme_display_cat_list($breadcrumb, $cat_data, '');
} else {
    $xoopsTpl->assign('breadcrumb', '<a href="index.php">' . $xoopsModule->getVar('name') . '</a>');
    $xoopsTpl->assign('lang_category', 0);
    $xoopsTpl->assign('set_stat', 0);
}
display_thumbnails($album, isset($cat) ? $cat : 0, $page, $xoopsModuleConfig['thumbcols'], $xoopsModuleConfig['thumbrows'], true);
$xoopsTpl->assign('gallery', $xoopsModule->getVar('name'));
main_menu();
do_footer();
include_once "../../footer.php";
开发者ID:severnaya99,项目名称:Sg-2010,代码行数:31,代码来源:thumbnails.php

示例11: foreach

    foreach ($_SESSION['SimpleImageManager'] as $s) {
        $me = false;
        $exists = is_url_exist($s);
        $url_host = parse_url($s, PHP_URL_HOST);
        if ($url_host == $_SERVER['HTTP_HOST']) {
            $me = true;
        }
        if ($exists == false) {
            continue;
        }
        $extension = GetExtension($s);
        if ($me) {
            if (!is_image_extenstion($extension)) {
                $html .= '<div class="item"><a data-icon="' . get_file_icon_path($extension) . '" href="" class="pdf-thumbs" title="' . $s . '" rel="' . $s . '"><img src="' . get_file_icon_path($extension) . '" class="img-polaroid" width="130" height="90"></a></div>';
            } else {
                $html .= '<div class="item"><a href="" class="img-thumbs" title="' . $s . '" rel="' . $s . '"><img src="' . display_thumbnails($s) . '" class="img-polaroid" width="130" height="90"></a></div>';
            }
        } elseif ($exists) {
            $html .= '<div class="item"><a href="" class="img-thumbs" title="' . $s . '" rel="' . $s . '"><img src="' . $s . '" class="img-polaroid" width="130" height="90"></a></div>';
        }
    }
    if ($html != '') {
        $output["html"] = $html;
    } else {
        $output["success"] = 0;
    }
} else {
    $output["success"] = 0;
}
header("Content-type: text/plain;");
echo json_encode($output);
开发者ID:ilkinium,项目名称:btec.dev,代码行数:31,代码来源:recent.php

示例12: display_thumbnails

		<div class="content-wrap">
			<div class="container">
				<div class="main-wrap">
					<div id='wsite-content' class='wsite-elements wsite-not-footer'>

						<?php 
//display thumbnails
require 'thumbnails.php';
echo '<p class="tableTitle">6x6</p>';
display_thumbnails($conn, 'SELECT item.*, locations.State FROM item, locations WHERE Type="Mixer" AND Subtype="6x6" AND item.Location=locations.ID');
echo '<p class="tableTitle">Boost-a-load</p>';
display_thumbnails($conn, 'SELECT item.*, locations.State FROM item, locations WHERE Type="Mixer" AND Subtype="Boost-a-load" AND item.Location=locations.ID');
echo '<p class="tableTitle">Front Discharge</p>';
display_thumbnails($conn, 'SELECT item.*, locations.State FROM item, locations WHERE Type="Mixer" AND Subtype="Rear Discharge" AND item.Location=locations.ID');
echo '<p class="tableTitle">Rear Discharge</p>';
display_thumbnails($conn, 'SELECT item.*, locations.State FROM item, locations WHERE Type="Mixer" AND Subtype="Front Discharge" AND item.Location=locations.ID');
?>
					</div>
				</div>



			</div>
			<!-- end container -->
		</div>
		<!-- end main-wrap -->

		<?php 
require 'footer.php';
?>
开发者ID:americk0,项目名称:BrownEquipmentWebsite,代码行数:30,代码来源:mixer-trucks.php

示例13: display_gal

function display_gal($galid, $start = 1)
{
    global $s_joueur, $config;
    global $strGalerieInconnue, $strUploaderFichier, $strFichier, $strEnvoyer, $strUploadFichierConsignes, $strRetour, $grade;
    if (!is_gallery($galid)) {
        show_erreur($strGalerieInconnue);
    } else {
        display_gallery_dir($galid);
        display_thumbnails($galid, "", $start);
        if (($grade['a'] == 'a' || $grade['b'] == 'b' || $grade['q'] == 'q') && $galid != "") {
            echo "<form name=input action=\"?page=galerie&op=upload&g={$galid}\" method=post enctype=\"multipart/form-data\">";
            echo "<table border=0 cellpadding=0 cellspacing=0 class=bordure2><tr><td>";
            echo "<table cellspacing=1 cellpadding=0 border=0>";
            echo "<tr><td class=headerfiche>{$strUploaderFichier} {$galid}</td></tr>";
            echo "<tr><td>";
            echo "<table cellspacing=0 cellpadding=3 border=0 width=100%>";
            echo "<tr>";
            echo "<td class=titlefiche>{$strFichier} <font color=red><b>*</b></font> :</td>";
            echo "<td class=textfiche><input type=file name=userfile size=40 maxlength=80></td>";
            echo "</tr>";
            echo "<tr><td class=footerfiche align=center colspan=2><input type=submit value=\"{$strEnvoyer}\"></td></tr>";
            echo "</table>";
            echo "</td></tr></table>";
            echo "</td></tr></table>";
            echo "</form>";
            show_consignes($strUploadFichierConsignes . coolsize($config['gallery_max_filesize']));
        }
        $arraygal = explode("/", $galid);
        $linkgal = "{$arraygal['0']}";
        // to avoid the first "/"
        if ($galid) {
            for ($i = 1; $i < count($arraygal) - 1; $i++) {
                $linkgal .= "/" . $arraygal[$i];
            }
            if (count($arraygal) == 1) {
                $linkgal = "";
            }
            echo "<br><img src=\"images/back.gif\" border=0 align=align=absmiddle> <a href=\"?page=galerie&g={$linkgal}\" class=action>{$strRetour}</a><br>";
        } else {
            echo "<br><img src=\"images/back.gif\" border=0 align=align=absmiddle> <a href=\"javascript:back()\" class=action>{$strRetour}</a><br>";
        }
    }
}
开发者ID:Arnaud-Burn,项目名称:phpTournois,代码行数:43,代码来源:galerie.php

示例14: display_thumbnails

                display_thumbnails('lasthits', $cat, 1, $xoopsModuleConfig['thumbcols'], max(1, $matches[2]), false);
                break;
            case 'lastup':
                display_thumbnails('lastup', $cat, 1, $xoopsModuleConfig['thumbcols'], max(1, $matches[2]), false);
                break;
            case 'topn':
                display_thumbnails('topn', $cat, 1, $xoopsModuleConfig['thumbcols'], max(1, $matches[2]), false);
                break;
            case 'toprated':
                display_thumbnails('toprated', $cat, 1, $xoopsModuleConfig['thumbcols'], max(1, $matches[2]), false);
                break;
            case 'lastcom':
                display_thumbnails('lastcom', $cat, 1, $xoopsModuleConfig['thumbcols'], max(1, $matches[2]), false);
                break;
            case 'mostsend':
                display_thumbnails('mostsend', $cat, 1, $xoopsModuleConfig['thumbcols'], max(1, $matches[2]), false);
                break;
        }
    }
}
//$xoopsTpl->assign('xcgal_main', $temp);
$xoopsTpl->assign('gallery', $xoopsModule->getVar('name'));
main_menu();
//$xoopsTpl->assign('xcgal_footer', pagefooter());
do_footer();
include_once "../../footer.php";
// Speed-up the random image query by 'keying' the image table
$result = $xoopsDB->query("SELECT count(*) FROM " . $xoopsDB->prefix("xcgal_pictures") . " WHERE 1");
$nbEnr = $xoopsDB->fetchArray($result);
$xoopsDB->freeRecordSet($result);
$pic_count = $nbEnr['count(*)'];
开发者ID:severnaya99,项目名称:Sg-2010,代码行数:31,代码来源:index.php

示例15: display_thumbnails

	<?php 
require 'nav.php';
?>

		<div class="content-wrap">
			<div class="container">
				<div class="main-wrap">
					<div id='wsite-content' class='wsite-elements wsite-not-footer'>
						<?php 
//display thumbnails
require 'thumbnails.php';
echo '<p class="tableTitle">Cement Storage</p>';
display_thumbnails($conn, 'SELECT item.*, locations.State FROM item, locations WHERE Type="Miscellaneous" AND Subtype="Cement Storage" AND item.Location=locations.ID');
echo '<p class="tableTitle">Other</p>';
display_thumbnails($conn, 'SELECT item.*, locations.State FROM item, locations WHERE Type="Miscellaneous" AND Subtype="Other" AND item.Location=locations.ID');
?>

					</div>
				</div>
			</div>
			<!-- end container -->
		</div>
		<!-- end main-wrap -->

		<?php 
require 'footer.php';
?>

</html>
开发者ID:americk0,项目名称:BrownEquipmentWebsite,代码行数:29,代码来源:miscellaneous.php


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