?? picture.php
字號(hào):
<?php
session_start();
error_reporting (E_ERROR | E_WARNING | E_PARSE);
$dirName = "pictures/";
$hDir = opendir($dirName);
include "include/query.php";
include "include/functions.php";
timer();
$db = new db_query;
$db->connect();
?>
<html>
<head>
<title>選擇圖片</title>
<META http-equiv="Content-Type" content="text/html;charset=gb2312">
<Script language=javascript>
function selPic(name)
{
var str="";
str += "[img]"+name+"[/img]";
dialogArguments.value += str;
return false;
}
</script>
</head>
<body bgcolor="<?=getConfig("page_bgcolor")?>">
<?
while($fileName = readdir($hDir))
{
if(!is_dir($fileName))
{
echo "<img src='pictures/{$fileName}' onclick='selPic(\"{$fileName}\");this.border=1' style='cursor:hand'> ";
}
}
?>
<Center><button onclick=window.close()>關(guān)閉窗口</button>
<br>
<?php
include("include/copyrights.php");
?>
</body>
</html>
<?php
$db->close();
?>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -