* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL*//** ensure this file is being included by a parent file */defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );// load the html drawing classrequire_once( $mainframe->getPath( 'front_html' ) );$option = mosGetParam($_REQUEST, 'option', '');$gid = mosGetParam($_REQUEST, 'gid', '');$iid = mosGetParam($_REQUEST, 'iid', '');$path = $GLOBALS['mosConfig_absolute_path'] . "/administrator/components/$option/";require_once($path."func.paxgallery.php");switch($task) { case 'table': displayTable($gid, $option); break; case 'view': if (isset($gid)) displayGallery($gid, $option, $iid); break; default: showGalleryList($option);} function drawSelectorH( &$files, $gid, $imgpath) { //global $arr; echo '
'; echo "\n"; $i=0; echo ''; echo ''; foreach ($files as $elm) { $w = $elm->w; $h = $elm->h; $path = $imgpath."small_".$elm->filename; $iid = $elm->id; $pw = 100/$w; $ph = 100/$h; $pw=min($pw,$ph); $w = floor($w * $pw); $h = floor($h * $pw); $left = 0+floor((100-$w)/2); $top = 0+floor((100-$h)/2); //echo '
'; echo "\n"; echo '
'; //echo ''; $i++; } echo "
'; echo ""; echo "\n"; echo ''; echo "\n"; echo ''; echo '
"; echo "
"; } function displayGallery($gid, $option, $iid=0) { global $mosConfig_live_site; $config = getConfig(); $imgdir = $mosConfig_live_site. "/".$config["imagedir"]."/pax".$gid."/"; $gname = getGalleryParam($gid, "name"); $files = getPictureList($gid); if (!isset($iid)) $iid=0; $i=0; //echo "IID: $iid - $i
"; foreach ($files as $elm) { //echo "ELM: ".$elm->id." = $iid - $i
"; if ($elm->id == $iid) { $iid = $i; break; } $i++; } //echo "IID: $iid - $i
"; PAXGallery_HTML::displayGallery($files, $iid, $gid, $gname, $config, $imgdir, $option);}function displayTable($gid, $option) { global $mosConfig_live_site; $config = getConfig(); $imgdir = $mosConfig_live_site. "/".$config["imagedir"]."/pax".$gid."/"; $gname = getGalleryParam($gid, "name"); $files = getPictureList($gid); PAXGallery_HTML::displayTableSelector($files, $gid, $gname, $config, $imgdir, $option);}function showGalleryList($option) { global $database, $mainframe, $mosConfig_list_limit; $config = getConfig(); if ($config["displayTable"] == 1) $task = "table"; else $task = "view"; $rows = getGalleryList(); PAXGallery_HTML::showGalleries($rows,$task, $option); }
© 2017 site de Présentation de l’Association Tunisienne des malades de la Sclérose En Plaques (ATSEP)
wholesale air max shoeswholesale jordans shoeswholesale jordans nike shoes paypalwholesale jordans nike free shippingwholesale nike nfl jerseyswholesale jordanswholesale jordans shoes cheap nikewholesale gucci shoes