XOOPS RMCommon Utilities  2.1.8.91RC
 All Classes Namespaces Files Functions Variables
images_images.php
Go to the documentation of this file.
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>
9 </select>
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?');" /> &nbsp;&nbsp;
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>
14  <?php endforeach; ?>
15 </select> &nbsp;&nbsp;
16 <a href="javascript:;" onclick="window.location = 'images.php?action=new&category='+$('#category-select').val();"><?php _e('Create Images','rmcommon'); ?></a>
17 </div>
18 <table class="outer" cellspacing="0">
19  <tr>
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>
25  </tr>
26  <?php if(empty($images)): ?>
27  <tr class="even error">
28  <td colspan="5">
29  <?php _e('There are not images yet!','rmcommon'); ?>
30  </td>
31  </tr>
32  <?php endif; ?>
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>
37  <td>
38  <strong><?php echo $image['title']; ?></strong>
39  <?php if($image['desc']!=''): ?>
40  <span class="description"><?php echo $image['desc']; ?></span>
41  <?php endif; ?>
42  <span class="rmc_options">
43  <a href="images.php?action=edit&amp;id=<?php echo $image['id']; ?>&amp;page=<?php echo $page; ?>"><?php _e('Edit','rmcommon'); ?></a> |
44  <a href="images.php?action=delete&amp;imgs[]=<?php echo $image['id']; ?>&amp;page=<?php echo $page; ?>" onclick="return confirm('<?php _e('Do you really want to delete &quot;'.$image['title'].'&quot;?'); ?>');"><?php _e('Delete','rmcommon'); ?></a>
45  </span>
46  </td>
47  <td align="center"><?php echo $image['author']->uname(); ?></td>
48  <td align="center"><?php echo formatTimestamp($image['date'], 's'); ?></td>
49  </tr>
50  <?php endforeach; ?>
51 </table>
52 <input type="hidden" name="category" value="<?php echo $cat; ?>" />
53 <input type="hidden" name="page" value="<?php echo $page; ?>" />
54 </form>