browseimage.php
来自「全新且完善的强大网上商店系统」· PHP 代码 · 共 40 行
PHP
40 行
<?php
#+------------------------------------------------------+
#| DO NOT MODIFY BELOW THIS LINE!
#+-----------------------------------------------------*/
?>
<html><head><title>Image Search</title>
<style type="text/css">
<!--
body {font-family:Verdana, Arial, sans-serif; font-size: 10pt;}
-->
</style>
</head>
<body bgcolor="white">
<?php
include("dirwalk.php");
//Prints a link for copying the path to some form field
//todo - quote processing so that it won't make bad Javascript
function print_copy_link($path, $name) {
$imgsize=GetImageSize($path);
$width=$imgsize[0];
$height=$imgsize[1];
$path=ereg_replace("/+","/",$path);
$path=ereg_replace(ROOTFOLDER,SITEROOT,$path);
//$name=ereg_replace("\....$","",$name); // remove the extension in the name
//$name=ucfirst(ereg_replace("_"," ",$name)); // replace underscores by spaces and capitalize
echo "<a href=\"#\" onClick=\"top.document.forms[0].elements['ImgUrl'].value='$path';";
echo "top.document.PREVIEWPIC.src='$path';\">$name</a>";
}
if(DEBUG)
$valid_file_types = $VALID_IMAGE_FILE_TYPES;
main_process($dir);
?>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?