Exemple #1
0
 function FindLastPage($perpage)
 {
     // Get the total number of posts
     $allimages = Images::FindAll();
     $rows = count($allimages);
     // Find the page number of the last page
     return ceil($rows / $perpage);
 }
		<a href="#hide_all" class="openclose droplink">Close</a>
	</p>
<?php 
if (in_array(getRequestVarAtIndex(1), $pages)) {
    echo "\t<div id=\"areachild\" class=\"dropslide\"";
    if (getRequestVarAtIndex(1) == "add_page") {
        echo ">\n";
    } else {
        echo " style=\"display: none;\">\n";
    }
    SUB_PAGES ? require_once snippetPath("admin-area_child") : (require_once snippetPath("admin-area"));
    echo "\t</div>\n";
}
$documents = Documents::FindAll();
require_once snippetPath("admin-insertDoc");
$images = Images::FindAll();
require_once snippetPath("admin-insertImage");
if (GALLERY_INSTALL && !in_array(getRequestVarAtIndex(1), $portfolio)) {
    $galleries = Galleries::FindAll("DESC");
    require_once snippetPath("admin-insertGallery");
}
if (PORTFOLIO_INSTALL && (ITEM_GALLERY_INSERT && !in_array(getRequestVarAtIndex(1), $portfolio))) {
    //$galleries = Galleries::FindAll();
    require_once snippetPath("admin-insertItemGallery");
}
if (VIDEO_INSTALL) {
    require_once snippetPath("admin-insertVideo");
}
if (TESTIMONIAL_INSTALL) {
    require_once snippetPath("admin-insertTestimonial");
}