⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 images.php

📁 eGroupWare is a multi-user, web-based groupware suite developed on a custom set of PHP-based APIs. C
💻 PHP
📖 第 1 页 / 共 2 页
字号:
	echo '</table>';}?><html><head><title>Image Browser</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><style type="text/css"><!--.imgBorder {	height: 96px;	border: 1px solid threedface;	vertical-align: middle;}.imgBorderHover {	height: 96px;	border: 1px solid threedface;	vertical-align: middle;	background: #FFFFCC;	cursor: hand;}.buttonHover {	border: 1px solid;	border-color: ButtonHighlight ButtonShadow ButtonShadow ButtonHighlight;	cursor: hand;	background: #FFFFCC;}.buttonOut{ border: 1px solid; border-color: white;}.imgCaption {	font-size: 9pt;	font-family: "MS Shell Dlg", Helvetica, sans-serif;	text-align: center;}.dirField {	font-size: 9pt;	font-family: "MS Shell Dlg", Helvetica, sans-serif;	width:110px;}--></style><?	$dirPath = eregi_replace($BASE_ROOT,'',$IMG_ROOT);	$paths = explode('/', $dirPath);	$upDirPath = '/';	for($i=0; $i<count($paths)-2; $i++) 	{		$path = $paths[$i];		if(strlen($path) > 0) 		{			$upDirPath .= $path.'/';		}	}	$slashIndex = strlen($dirPath);	$newPath = $dirPath;	if($slashIndex > 1 && substr($dirPath, $slashIndex-1, $slashIndex) == '/')	{		$newPath = substr($dirPath, 0,$slashIndex-1);	}?><script type="text/javascript" src="../popup.js"></script><script type="text/javascript" src="../../../../dialog.js"></script><script language="JavaScript" type="text/JavaScript"><!--function pviiClassNew(obj, new_style) { //v2.6 by PVII  obj.className=new_style;}function goUp() {	location.href = "ImageManager/images.php?dir=<? echo $upDirPath; ?>";}function changeDir(newDir) {	location.href = "ImageManager/images.php?dir="+newDir;}function newFolder(oldDir, newFolder) {	location.href = "ImageManager/images.php?dir="+oldDir+'&create=folder&foldername='+newFolder;}function updateDir() {	var newPath = "<? echo $newPath; ?>";	if(window.top.document.forms[0] != null) {			var allPaths = window.top.document.forms[0].dirPath.options;	//alert("new:"+newPath);	for(i=0; i<allPaths.length; i++) 	{		//alert(allPaths.item(i).value);		allPaths.item(i).selected = false;		if((allPaths.item(i).value)==newPath) 		{			allPaths.item(i).selected = true;		}	}<?	if($clearUploads) {?>	var topDoc = window.top.document.forms[0];	topDoc.upload.value = null;	//topDoc.upload.disabled = true;<?	}?>	}}<? if ($refresh_dirs) { ?>function refreshDirs() {	var allPaths = window.top.document.forms[0].dirPath.options;	var fields = ["/" <? dirs($BASE_DIR.$BASE_ROOT,'');?>];	var newPath = "<? echo $newPath; ?>";	while(allPaths.length > 0) 	{		for(i=0; i<allPaths.length; i++) 		{			allPaths.remove(i);			}			}	for(i=0; i<fields.length; i++) 	{		var newElem =	document.createElement("OPTION");		var newValue = fields[i];		newElem.text = newValue;		newElem.value = newValue;		if(newValue == newPath) 			newElem.selected = true;			else			newElem.selected = false;		allPaths.add(newElem);	}}refreshDirs();<? } ?>function imageSelected(filename, width, height, alt) {	var topDoc = window.top.document.forms[0];	topDoc.f_url.value = filename;	topDoc.f_width.value= width;	topDoc.f_height.value = height;	topDoc.f_alt.value = alt;	topDoc.orginal_width.value = width;	topDoc.orginal_height.value = height;	}function preview(file, image, size, width, height) {	/*	var predoc = '<img src="'+file+'" alt="'+image+' ('+width+'x'+height+', '+size+')">';	var w = 450;	var h = 400;	var LeftPosition=(screen.width)?(screen.width-w)/2:100;	var TopPosition=(screen.height)?(screen.height-h)/2:100;     	 var win = window.open('','image_preview','toolbar=no,location=no,menubar=no,status=yes,scrollbars=yes,resizable=yes,width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition);     var doc=win.document.open();     doc.writeln('<html>\n<head>\n<title>Image Preview - '+image+' ('+width+'x'+height+', '+size+')</title>');     doc.writeln('</head>\n<body>');     doc.writeln(predoc);     doc.writeln('</body>\n</html>\n');     doc=win.document.close();     win.focus();*/	//alert(file);	 Dialog("../ImageEditor/ImageEditor.php?img="+escape(file), function(param) {		if (!param) {	// user must have pressed Cancel			return false;		}	}, null);     return;}function deleteImage(file) {	if(confirm("Delete image \""+file+"\"?")) 		return true;	return false;}function deleteFolder(folder, numFiles) {	if(numFiles > 0) {		alert("There are "+numFiles+" files/folders in \""+folder+"\".\n\nPlease delete all files/folder in \""+folder+"\" first.");		return false;	}	if(confirm("Delete folder \""+folder+"\"?")) 		return true;	return false;}function MM_findObj(n, d) { //v4.01  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);  if(!x && d.getElementById) x=d.getElementById(n); return x;}function MM_showHideLayers() { //v6.0  var i,p,v,obj,args=MM_showHideLayers.arguments;  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i],window.top.document))!=null) { v=args[i+2];    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }    obj.visibility=v; }}function changeLoadingStatus(state) {	var statusText = null;	if(state == 'load') {		statusText = 'Loading Images';		}	else if(state == 'upload') {		statusText = 'Uploading Files';	}	if(statusText != null) {		var obj = MM_findObj('loadingStatus', window.top.document);		//alert(obj.innerHTML);		if (obj != null && obj.innerHTML != null)			obj.innerHTML = statusText;		MM_showHideLayers('loading','','show')			}}//--></script></head><body onLoad="updateDir();" bgcolor="#FFFFFF"><?//var_dump($_GET);//echo $dirParam.':'.$upDirPath;//echo '<br>';$d = @dir($BASE_DIR.$IMG_ROOT);if($d) {	//var_dump($d);	$images = array();	$folders = array();	while (false !== ($entry = $d->read())) 	{		$img_file = $IMG_ROOT.$entry; 		if(is_file($BASE_DIR.$img_file) && substr($entry,0,1) != '.') 		{			$image_info = @getimagesize($BASE_DIR.$img_file);			if(is_array($image_info)) 			{				$file_details['file'] = $img_file;				$file_details['img_info'] = $image_info;				$file_details['size'] = filesize($BASE_DIR.$img_file);				$images[$entry] = $file_details;				//show_image($img_file, $entry, $image_info);			}		}		else if(is_dir($BASE_DIR.$img_file) && substr($entry,0,1) != '.') 		{			$folders[$entry] = $img_file;			//show_dir($img_file, $entry);			}	}	$d->close();			if(count($images) > 0 || count($folders) > 0) 	{			//now sort the folders and images by name.		ksort($images);		ksort($folders);		draw_table_header();		for($i=0; $i<count($folders); $i++) 		{			$folder_name = key($folders);					show_dir($folders[$folder_name], $folder_name);			next($folders);		}		for($i=0; $i<count($images); $i++) 		{			$image_name = key($images);			show_image($images[$image_name]['file'], $image_name, $images[$image_name]['img_info'], $images[$image_name]['size']);			next($images);		}		draw_table_footer();	}	else	{		draw_no_results();	}}else{	draw_no_dir();}?><script language="JavaScript" type="text/JavaScript">MM_showHideLayers('loading','','hide')</script></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -