Changeset 571
- Timestamp:
- 08/01/08 13:53:15 (4 months ago)
- Location:
- trunk/plog-admin
- Files:
-
- 5 modified
-
css/admin.css (modified) (1 diff)
-
index.php (modified) (1 diff)
-
plog-admin-functions.php (modified) (5 diffs)
-
plog-feedback.php (modified) (5 diffs)
-
plog-manage.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plog-admin/css/admin.css
r570 r571 155 155 } 156 156 157 #contentList #breadcrumb_links {157 #contentList #breadcrumb_links, #contentList #comment-count { 158 158 font-size: 1.0em; 159 159 padding: 3px; -
trunk/plog-admin/index.php
r569 r571 17 17 <title>' . plog_tr('Plogger Administrative Login') . '</title> 18 18 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 19 <link href="'.$config['gallery_url'].'plog-admin/css/admin.css" type="text/css" rel="stylesheet" />19 <link rel="stylesheet" href="'.$config['gallery_url'].'plog-admin/css/admin.css" type="text/css" media="all" /> 20 20 <script type="text/javascript" src="'.$config['gallery_url'].'plog-admin/js/plogger.js"></script> 21 21 </head> -
trunk/plog-admin/plog-admin-functions.php
r570 r571 1382 1382 $allow_comments = (1 == plogger_picture_allows_comments()) ? plog_tr("Yes") : plog_tr("No"); 1383 1383 $output .= "\n\t\t\t\t<td>" . $allow_comments . "</td>"; 1384 $output .= "\n\t\t\t\t" . '<td ><a href="?action=edit-picture&id=' . $id;1384 $output .= "\n\t\t\t\t" . '<td style="text-align: center;"><a href="?action=edit-picture&id=' . $id; 1385 1385 if (isset($_GET["entries_per_page"])) $output .= '&entries_per_page=' . intval($_GET["entries_per_page"]); 1386 1386 if (isset($_GET["plog_page"])) $output .= '&plog_page=' . intval($_GET["plog_page"]); … … 1388 1388 1389 1389 $parent_id = $_REQUEST["id"]; 1390 $output .= ' <a href="?action=move-delete&selected%5B%5D=' . $id . '&level=pictures&delete_checked=1&id='.$parent_id;1390 $output .= ' <a href="?action=move-delete&selected%5B%5D=' . $id . '&level=pictures&delete_checked=1&id='.$parent_id; 1391 1391 if (isset($_GET['plog_page'])) $output .= '&plog_page=' . intval($_GET['plog_page']); 1392 1392 $output .= '" onclick="return confirm(\'' . plog_tr('Are you sure you want to delete this item?') . '\');"><img style="display: inline;" src="'.$config['gallery_url'].'plog-admin/images/x.gif" alt="' . plog_tr('Delete') . '" title="' . plog_tr('Delete') . '" /></a></td>'; … … 1464 1464 $output .= "\n\t\t\t\t".'<td><a class="folder" href="'.$_SERVER['PHP_SELF'].'?level=pictures&id='.$id.'"><span id="album-name-'.plogger_get_album_id().'"><strong>'.plogger_get_album_name().'</strong></span></a> — ' . sprintf(plog_tr('contains %d picture(s)'), plogger_album_picture_count()) . '</td>'; 1465 1465 $output .= "\n\t\t\t\t".'<td><p id="album-description-'.plogger_get_album_id().'">'.plogger_get_album_description().' </p></td>'; 1466 $output .= "\n\t\t\t\t".'<td ><a href="'.$_SERVER['PHP_SELF'].'?action=edit-album&id='.$id.'"><img style="display: inline;" src="'.$config['gallery_url'].'plog-admin/images/edit.gif" alt="' . plog_tr('Edit') . '" title="' . plog_tr('Edit') . '" /></a>';1467 $output .= ' <a href="'.$_SERVER['PHP_SELF'].'?action=move-delete&selected%5B%5D='.$id.'&level=albums&delete_checked=1&id='.$_REQUEST['id'];1466 $output .= "\n\t\t\t\t".'<td style="text-align: center;"><a href="'.$_SERVER['PHP_SELF'].'?action=edit-album&id='.$id.'"><img style="display: inline;" src="'.$config['gallery_url'].'plog-admin/images/edit.gif" alt="' . plog_tr('Edit') . '" title="' . plog_tr('Edit') . '" /></a>'; 1467 $output .= ' <a href="'.$_SERVER['PHP_SELF'].'?action=move-delete&selected%5B%5D='.$id.'&level=albums&delete_checked=1&id='.$_REQUEST['id']; 1468 1468 if (isset($_GET['plog_page'])) { $output .= '&plog_page='.intval($_GET['plog_page']); } 1469 1469 $output .= '" onclick="return confirm(\'' . plog_tr('Are you sure you want to delete this item?') . '\');"><img style="display: inline;" src="'.$config['gallery_url'].'plog-admin/images/x.gif" alt="' . plog_tr('Delete') . '" title="' . plog_tr('Delete') . '" /></a></td>'; … … 1537 1537 $output .= "\n\t\t\t\t<td><a class='folder' href='?level=albums&id=" .$id . "'><span id='collection-name-" . plogger_get_collection_id()."'><strong>".plogger_get_collection_name()."</strong></span></a> — " . sprintf(plog_tr('contains %d albums'), plogger_collection_album_count()) . "</td>"; 1538 1538 $output .= "\n\t\t\t\t<td><p id='collection-description-" . plogger_get_collection_id() . "'>" . plogger_get_collection_description()." </p></td>"; 1539 $output .= "\n\t\t\t\t" . '<td ><a href="?action=edit-collection&id=' . $id . '"><img style="display: inline;" src="'.$config['gallery_url'].'plog-admin/images/edit.gif" alt="' . plog_tr('Edit') . '" title="' . plog_tr('Edit') . '" /></a>';1540 $output .= ' <a href="?action=move-delete&selected%5B%5D=' . $id . '&level=collections&delete_checked=1&';1539 $output .= "\n\t\t\t\t" . '<td style="text-align: center;"><a href="?action=edit-collection&id=' . $id . '"><img style="display: inline;" src="'.$config['gallery_url'].'plog-admin/images/edit.gif" alt="' . plog_tr('Edit') . '" title="' . plog_tr('Edit') . '" /></a>'; 1540 $output .= ' <a href="?action=move-delete&selected%5B%5D=' . $id . '&level=collections&delete_checked=1&'; 1541 1541 if (isset($_REQUEST['id'])) { $output .= 'id='.intval($_REQUEST['id']); } 1542 1542 if (isset($_GET['plog_page'])) { $output .= '&plog_page=' . intval($_GET['plog_page']); } … … 1612 1612 $output .= "\n\t\t\t\t<td>" . plogger_get_comment_date("n.j.Y H:i:s") . "</td>"; 1613 1613 $output .= "\n\t\t\t\t<td><p id=\"comment-comment-" . $id ."\">" . plogger_get_comment_text() . " </p></td>"; 1614 $output .= "\n\t\t\t\t" . '<td ><a href="?action=edit-comment&id=' . $id . '"><img style="display: inline;" src="'.$config['gallery_url'].'plog-admin/images/edit.gif" alt="' . plog_tr('Edit') . '" title="' . plog_tr('Edit') . '" /></a>';1615 $output .= ' <a href="?action=delete-comment&id=' . $id . '" onclick="return confirm(\'' . plog_tr('Are you sure you want to delete this item?') . '\');"><img style="display: inline;" src="'.$config['gallery_url'].'plog-admin/images/x.gif" alt="' . plog_tr('Delete') . '" title="' . plog_tr('Delete') . '" /></a></td>';1614 $output .= "\n\t\t\t\t" . '<td style="text-align: center;"><a href="?action=edit-comment&id=' . $id . '"><img style="display: inline;" src="'.$config['gallery_url'].'plog-admin/images/edit.gif" alt="' . plog_tr('Edit') . '" title="' . plog_tr('Edit') . '" /></a>'; 1615 $output .= ' <a href="?action=delete-comment&id=' . $id . '" onclick="return confirm(\'' . plog_tr('Are you sure you want to delete this item?') . '\');"><img style="display: inline;" src="'.$config['gallery_url'].'plog-admin/images/x.gif" alt="' . plog_tr('Delete') . '" title="' . plog_tr('Delete') . '" /></a></td>'; 1616 1616 $output .= "\n\t\t\t</tr>"; 1617 1617 -
trunk/plog-admin/plog-feedback.php
r570 r571 159 159 $allowedCommentKeys = array("unix_date", "author", "email", "url", "comment"); 160 160 161 $output .= "\n\n\t\t" . '<div class="entries-page">'.generate_pagination_view_menu().' 162 </div>' . "\n"; 163 164 if (!$empty) { $output .= $pagination_menu; } 165 161 166 while($row = mysql_fetch_assoc($result)) { 162 167 // if we're on our first iteration, dump the header 163 168 if ($counter == 0) { 164 169 if ($approved) { 165 $output .= "\n\n\t\t" . '<table style="width: 100%;"> 166 <tr>167 <td>' . sprintf(plog_tr('You have <strong>%d</strong> user comment(s).'),$num_comments) . '</td>'; 170 171 $output .= "\n\n\t\t" . '<div id="comment-count">' . sprintf(plog_tr('You have <strong>%d</strong> user comment(s).'),$num_comments) . '</div>'; 172 168 173 } else { 169 $output .= "\n\n\t\t" . '<table style="width: 100%;"> 170 <tr> 171 <td>' . sprintf(plog_tr('You have <strong>%d</strong> user comment(s) awaiting approval.'),$num_comments_im) . '</td>'; 172 } 173 174 // output view entries pagination control 175 $output .= "\n\t\t\t\t" . '<td align="right">'.generate_pagination_view_menu().' 176 </td> 177 </tr> 178 </table>'; 179 180 if (!$empty) { $output .= $pagination_menu; } 174 175 $output .= "\n\n\t\t" . '<div id="comment-count">' . sprintf(plog_tr('You have <strong>%d</strong> user comment(s) awaiting approval.'),$num_comments_im) . '</div>'; 176 177 } 181 178 182 179 $output .= "\n\n\t\t" . '<table style="width: 100%;" cellpadding="4"> 183 <tr class="header">184 <th class="table-header-left"></th>185 <th class="table-header-middle">' . plog_tr('Thumb') . '</th>';180 <tr class="header"> 181 <th class="table-header-left"></th> 182 <th class="table-header-middle">' . plog_tr('Thumb') . '</th>'; 186 183 187 184 foreach ($row as $name => $value) { … … 192 189 193 190 $output .= "\n\t\t\t\t" . '<th class="table-header-right">' . plog_tr('Actions') . '</th> 194 </tr>';191 </tr>'; 195 192 } 196 193 … … 240 237 $query = "?action=edit-comment&pid=$row[id]"; 241 238 $output .= "\n\t\t\t\t" . '<td> 242 <div >239 <div style="text-align: center;"> 243 240 <a href="'.$_SERVER['PHP_SELF'].$query.'&entries_per_page='.$_SESSION['entries_per_page'].'&moderate='.$moderate.'"><img src="'.$config['gallery_url'].'plog-admin/images/edit.gif" alt="'.plog_tr('Edit').'" title="'.plog_tr('Edit').'" /></a> 244 <a href="'.$_SERVER['PHP_SELF'].'?action=approve-delete&delete_checked=1&selected[]='.$row['id'].'&moderate='.$moderate.'" onclick="return confirm(\'' . plog_tr('Are you sure you want to delete this comment?') . '\');"><img src="'.$config['gallery_url'].'plog-admin/images/x.gif" alt="'.plog_tr('Delete').'" title="'.plog_tr('Delete').'" /></a>';241 <a href="'.$_SERVER['PHP_SELF'].'?action=approve-delete&delete_checked=1&selected[]='.$row['id'].'&moderate='.$moderate.'" onclick="return confirm(\'' . plog_tr('Are you sure you want to delete this comment?') . '\');"><img src="'.$config['gallery_url'].'plog-admin/images/x.gif" alt="'.plog_tr('Delete').'" title="'.plog_tr('Delete').'" /></a>'; 245 242 246 243 if (!$approved){ 247 $output .= "\n\t\t\t\t\t\t".' <a href="'.$_SERVER['PHP_SELF'].'?action=approve-delete&approve_checked=1&selected[]='.$row['id'].'&moderate=1" onclick="return confirm(\''.plog_tr('Are you sure you want to approve this comment?').'\');"><img src="'.$config['gallery_url'].'plog-admin/images/new_file.gif" alt="'.plog_tr('Approve').'" title="'.plog_tr('Approve').'" /></a>';244 $output .= "\n\t\t\t\t\t\t".' <a href="'.$_SERVER['PHP_SELF'].'?action=approve-delete&approve_checked=1&selected[]='.$row['id'].'&moderate=1" onclick="return confirm(\''.plog_tr('Are you sure you want to approve this comment?').'\');"><img src="'.$config['gallery_url'].'plog-admin/images/new_file.gif" alt="'.plog_tr('Approve').'" title="'.plog_tr('Approve').'" /></a>'; 248 245 } 249 246 … … 254 251 if ($counter > 0) { 255 252 $output .= "\n\t\t\t" . '<tr class="footer"> 256 <td colspan="9"></td>257 </tr>258 </table>';253 <td colspan="9"></td> 254 </tr> 255 </table>'; 259 256 } 260 257 } … … 273 270 } 274 271 275 $output .= "\n\ n\t\t" . '</div>' . "\n\t\t" . '</form>'. "\n";272 $output .= "\n\t\t" . '</div>' . "\n\t\t" . '</form>'. "\n"; 276 273 } 277 274 -
trunk/plog-admin/plog-manage.php
r570 r571 311 311 $totalRows = mysql_result($totalRowsResult,'num_items'); 312 312 313 $pagination_menu = "\n\t\t" . '<div class="entries-page">'.generate_pagination_view_menu().' </div>314 <div class="pagination">'.generate_pagination("admin", "manage", $plog_page, $totalRows, $_SESSION['entries_per_page'], array("level" => $level, "id" => $id)).'315 < /div>';313 $pagination_menu = "\n\t\t" . '<div class="entries-page">'.generate_pagination_view_menu().' 314 </div> 315 <div class="pagination">'.generate_pagination("admin", "manage", $plog_page, $totalRows, $_SESSION['entries_per_page'], array("level" => $level, "id" => $id)).'</div>'; 316 316 317 317 $output .= "\n\t\t" . '<form id="contentList" action="'.$_SERVER['PHP_SELF'].'" method="post">';
