1 <h1
class=
"rmc_titles"><?php
_e(
'Images Manager',
'rmcommon'); echo
': '.$category->getVar(
'name'); ?></h1>
2 <form name=
"list_images" method=
"post" action=
"images.php" id=
"list-images">
3 <div
class=
"rmc_bulkactions">
4 <?php echo
$nav->display(); ?>
5 <select name=
"action" id=
"action-select">
6 <option value=
""><?php
_e(
'Bulk Actions...',
'rmcommon'); ?></option>
7 <option value=
"delete"><?php
_e(
'Delete',
'rmcommon'); ?></option>
8 <option value=
"thumbs"><?php
_e(
'Update thumbnails',
'rmcommon'); ?></option>
10 <input type=
"submit" value=
"<?php _e('Apply','rmcommon'); ?>" onclick=
"if($('#action-select').val()=='delete') return confirm('Do you really want to delete selected images?');" />
11 <select name=
"category" onchange=
"window.location = 'images.php?category='+$(this).val();" id=
"category-select">
12 <?php
foreach($categories as $catego): ?>
13 <option value=
"<?php echo $catego['id']; ?>"<?php echo $catego[
'id']==
$cat ?
' selected="selected"' :
''; ?>><?php echo $catego[
'name']; ?></option>
15 </select>
16 <a
href=
"javascript:;" onclick=
"window.location = 'images.php?action=new&category='+$('#category-select').val();"><?php
_e(
'Create Images',
'rmcommon'); ?></a>
18 <table
class=
"outer" cellspacing=
"0">
20 <th width=
"30" align=
"center"><input type=
"checkbox" name=
"checkall" id=
"checkall" onclick=
"$('#list-images').toggleCheckboxes(':not(#checkall)');" /></th>
21 <th align=
"left" width=
"70"><?php
_e(
'File',
'rmcommon'); ?></th>
22 <th><?php
_e(
'Details',
'rmcommon'); ?></th>
23 <th><?php
_e(
'Author',
'rmcommon'); ?></th>
24 <th><?php
_e(
'Date',
'rmcommon'); ?></th>
26 <?php
if(empty($images)): ?>
27 <tr
class=
"even error">
29 <?php
_e(
'There are not images yet!',
'rmcommon'); ?>
33 <?php
foreach($images as
$image): ?>
34 <tr
class=
"<?php echo tpl_cycle("even,
odd"); ?>">
35 <td align=
"center"><input type=
"checkbox" name=
"imgs[<?php echo $image['id']; ?>]" value=
"<?php echo $image['id']; ?>" /></td>
36 <td><a href=
"<?php echo $image['big']; ?>" class=
"bigimages"><img src=
"<?php echo $image['file']; ?>" alt=
"" width=
"70" height=
"45" /></a></td>
38 <strong><?php echo $image[
'title']; ?></strong>
39 <?php
if($image[
'desc']!=
''): ?>
40 <span
class=
"description"><?php echo $image[
'desc']; ?></span>
42 <span
class=
"rmc_options">
43 <a href=
"images.php?action=edit&id=<?php echo $image['id']; ?>&page=<?php echo $page; ?>"><?php
_e(
'Edit',
'rmcommon'); ?></a> |
44 <a href=
"images.php?action=delete&imgs[]=<?php echo $image['id']; ?>&page=<?php echo $page; ?>" onclick=
"return confirm('<?php _e('Do you really want to delete "'.$image['title'].'"?'); ?>');"><?php
_e(
'Delete',
'rmcommon'); ?></a>
47 <td align=
"center"><?php echo $image[
'author']->uname(); ?></td>
48 <td align=
"center"><?php echo formatTimestamp($image[
'date'],
's'); ?></td>
52 <input type=
"hidden" name=
"category" value=
"<?php echo $cat; ?>" />
53 <input type=
"hidden" name=
"page" value=
"<?php echo $page; ?>" />