00001 <?PHP
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 $page_author = getUserInfo("admin", "name");
00018 $page_author_email = getUserInfo("admin", "email");
00019 $page_menu = 0;
00020 $page_date = formatTime( time() );
00021 $page_title = i18n("List of all pages");
00022
00023 $pages_temp = $pagectl->fetchPageList($page_folder);
00024 sort($pages_temp);
00025 $page_content = "$page_content
00026 <div align=\"center\">
00027 <table cellspacing=\"4\" width=\"90%\" style=\"border: 0;\">
00028 <tr>
00029 <td>
00030 <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
00031 <tr>
00032 <th style=\"border-bottom: 1px solid gray;\" width=\"8%\">" . i18n("ID") . "</th>
00033 <th style=\"border-bottom: 1px solid gray;\">" . i18n("Title") . "</th>
00034 <th style=\"border-bottom: 1px solid gray;\" width=\"12%\">" . i18n("Language") . "</th>
00035 </tr>";
00036
00037 $bgarray[1] = "transparent";
00038 $bgarray[2] = "#e0e0e0";
00039 foreach($pages_temp as $key => $value) {
00040 $bgarray = array_reverse($bgarray);
00041 $page_content = "$page_content
00042 <tr><td style=\"background-color: {$bgarray[1]}\"><div>{$value["id"]}</div></td>
00043 <td style=\"background-color: {$bgarray[1]}\">";
00044 foreach ($value["title"] as $key2 => $value2) {
00045 $page_content = "$page_content<div><a href=\"" . globalIDtoURL( "content/{$value["language"][$key2]}/{$value["id"]}") . "\">$value2</a></div>";
00046 }
00047 $page_content = "$page_content</td><td style=\"background-color: {$bgarray[1]}\">";
00048 foreach ($value["language"] as $key2 => $value2) {
00049 $page_content = "$page_content<div>[$value2]</div>";
00050 }
00051 $page_content = "$page_content</td></tr>";
00052 }
00053 $page_content = "$page_content
00054 </td></tr></table>
00055 </td></tr></table></div>";
00056 ?>