"&sortorder=false",
"title" => "&sortorder=false",
"status" => "&sortorder=true",
"ext" => "&sortorder=true",
"aTime" => "&sortorder=false",
"mTime" => "&sortorder=false"
);
if( $sortOrder ){
$sortOrders[ $sortKey ] = "&sortorder=false";
}
else{
$sortOrders[ $sortKey ] = "&sortorder=true";
}
$distinctOnly = DISTINCT_ONLY;
$distinctValue = "";
if( $distinctOnly ){
$distinctValue = "checked";
}
if( array_key_exists( "distinctOnly", $_GET )){
$distinctValue = $_GET["distinctOnly"];
if( is_null( $distinctValue ) || "true" != $distinctValue ){
$distinctOnly = false;
$distinctValue = "";
}
else{
$distinctOnly = true;
$distinctValue = "checked";
}
}
$multiOnly = MULTI_ONLY;
$multiValue = "";
if( $multiOnly ){
$multiValue = "checked";
}
if( array_key_exists( "multiOnly", $_GET )){
$multiValue = $_GET["multiOnly"];
if( is_null( $multiValue ) || "true" != $multiValue ){
$multiOnly = false;
$multiValue = "";
}
else{
$multiOnly = true;
$multiValue = "checked";
}
}
print <<< JAVA_SCRIPT
JAVA_SCRIPT;
print <<< OPTION_FORM
OPTION_FORM;
print <<< TABLE_HEADER
ID |
タイトル |
状態 |
拡張子 |
最終アクセス日時 |
最終更新日時 |
TABLE_HEADER;
$count = 0;
$baseDir = BASE_DIR;
if( !file_exists( $baseDir ) ){
print <<< BASE_DIR_ERR
|
ベースディレクトリ[$baseDir]が無効 |
|
|
|
|
BASE_DIR_ERR;
}
else{
$arrayKey = "";
$id = "";
$title = "";
$status = "";
$ext = "";
$aTime = "";
$mTime = "";
$filename = "";
$caches = readCacheDir( $baseDir, $distinctOnly, $multiOnly ); // キャッシュを列挙
sortArrayByArray( $caches, $sortKey, $sortOrder ); // ソート
foreach( $caches as $arrayKey => $cache ){
$id = $cache["id"];
$title = $cache["title"];
$status = $cache["status"];
$ext = $cache["ext"];
$aTime = $cache["aTime"];
$mTime = $cache["mTime"];
print <<< FILE_LINE
$id |
$title |
$status |
$ext |
$aTime |
$mTime |
FILE_LINE;
$count = $count +1;
}
}
print <<< FOOTER
{$count}件出力
FOOTER;
?>