Location: PHPKode > scripts > GalleryShuffle > v1.0/php/Views/admin.php
<?php

/**
* ADMIN
**/

class view_admin
{

	public $buffer = "";
	
	public function __construct()
	{
		
		$LANG = LANG::getSingleton();
		
		$model_albums = new model_albums();
		$model_pictures = new model_pictures();
		
		$albums = new view_albums($model_albums);
		$pictures = new view_pictures($model_pictures);
		
		$view_settings = new view_settings();
		
		
		$this->buffer .= HTML::getHtmlHead(CONFIG::title . "&nbsp;&nbsp; :.'", 
		Array("css/all.css",
		"css/admin.css"), 
		Array(), 
		Array("http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js",
		"js/screenfull.js",
		"js/functions.js",
		"js/obj_photoViewer.js",
		"js/obj_photoAlbumShuffle.js",
		"js/obj_windowResizers.js",
		"js/obj_horizontalResize.js",
		"js/obj_fileUploader.js",
		"js/obj_panelAlbums.js",
		"js/obj_panelPictures.js",
		"js/obj_menu.js",
		"js/main.js"),
		"javascript: init.load(); document.getFirstElementByClassName('loading').show(false, 0.8);");
		
		$this->buffer .= "\n\n<!-- ADMIN -->\n";
	
		$this->buffer .= '
	<div id="admin">
		
		<div class="loading"></div>
		<div id="dragInfo"></div>
		<table id="popupTable"><tr><td id="popup"></td></tr></table>
		
		<table>
			<tr>
				<td class="header" colspan="3">
					<a class="btnClose" title="close" href="index.php?admindisconnect=1"></a><a class="btnSettings" href="' . FUNCTIONS::getAjaxRequest('settings_edit', 'popup') . '">' . $LANG->traduc['settings'] . '</a><h1>' . CONFIG::title . ' <span class="subtitle">v' . CONFIG::version . '</span></h1>
				</td>
			</tr>
			<tr class="title">
				<td class="album"><p>' . $LANG->traduc['albums'] . '</p></td>
				<td>&nbsp;</td>
				<td class="picture"><p>' . $LANG->traduc['pictures'] . '</p></td>
			</tr>
			<tr class="panel">
				<td class="album" id="panel_albums"><div class="loading panelLoadings"></div>';
				
		$this->buffer .= $albums->getAll();
				
		$this->buffer .= '
				</td>
				<td class="horizontalResize">&nbsp;</td>
				<td class="picture" id="panel_pictures"><div class="loading panelLoadings"></div>';
				
				
		$this->buffer .= $pictures->getAll();
				
		$this->buffer .= '
				</td>
			</tr>
			<tr class="verticalMargin">
				<td colspan="3"></td>
			</tr>
			<tr class="title">
				<td class="option" colspan="3"><p>' . $LANG->traduc['options'] . '</p></td>
			</tr>
			<tr class="panel">
				<td class="option" id="panel_options" colspan="3"><div class="loading panelLoadings"></div>
					<p class="empty">' . $LANG->traduc['WarningNoOptions'] . '</p>
				</td>
			</tr>
		</table>
	
	</div>';
	
	$this->buffer .= "
	
	<script>
	
	" . $view_settings->getJsPHPCONST() . "
	
	document.getElementById('dragInfo').style.display = 'none';
	document.getElementById('popupTable').setHide();
	
	var myLoadings = document.getElementsByClassName('panelLoadings');
	for(var i=0; i<myLoadings.length; i++)
		myLoadings[i].setHide();
	
	window.onresize = function(event) 
	{

		cellTableScrolls.adaptScrolls();
		cellTableHorizontalScrolls.adaptScrolls();
		panelLoadings.adaptLoadings();
		popupLargeImage.adaptImage();
		
	};
	
	window.onkeydown = function(event) 
	{
	
		panelPictures.keyHandler(event.keyCode, true);
		
	};
	window.onkeyup = function(event) 
	{
	
		panelPictures.keyHandler(event.keyCode, false);
		
	};
	
	</script>";
		
		$this->buffer .= "\n\n<!-- /ADMIN -->\n";
	
		$this->buffer .= HTML::getHtmlFoot();
		
	}
	
}

?>
Return current item: GalleryShuffle