XOOPS RMCommon Utilities  2.1.8.91RC
 All Classes Namespaces Files Functions Variables
images_edit.php
Go to the documentation of this file.
1 <?php RMTemplate::get()->add_head('<script type="text/javascript">$(document).ready(function(){$("#frmupdimg").validate();});</script>'); ?>
2 <h1 class="rmc_titles"><?php _e('Edit Image','rmcommon'); ?></h1>
3 <form name="frmupdimg" id="frmupdimg" method="post" action="images.php">
4 <table cellpadding="0" cellspacing="0" width="90%" class="" align="center">
5  <tr class="odd">
6  <td rowspan="4" width="25%"><img src="<?php echo $image_data['thumbnail']; ?>" alt="" style="max-width: 150px; max-height: 100px;" /></td>
7  <td><?php echo $image_data['file']; ?></td>
8  </tr>
9  <tr class="odd">
10  <td><?php echo $image_data['mime']; ?></td>
11  </tr>
12  <tr class="odd">
13  <td><?php echo formatTimestamp($image_data['date'], 'l'); ?></td>
14  </tr>
15  <tr class="odd">
16  <td>
17  <?php foreach($image_data['sizes'] as $size): ?>
18  <a href="javascript:;" onclick="show_image_pop('<?php echo $size['file']; ?>');"><?php echo $size['name']; ?></a> |
19  <?php endforeach; ?>
20  <a href="javascript:;" onclick="show_image_pop('<?php echo $image_data['url']; ?>');"><?php _e('Original Size','rmcommon'); ?></a>
21  </td>
22  </tr>
23  <tr class="even">
24  <td class="head">*<?php _e('Title:', 'rmcommon'); ?></td>
25  <td><input name="title" type="text" value="<?php echo $image_data['title']; ?>" size="50" class="required" /></td>
26  </tr>
27  <tr class="odd">
28  <td class="head"><?php _e('Category:','rmcommon'); ?></td>
29  <td>
30  <select name="cat">
31  <?php foreach($categories as $catego): ?>
32  <option value="<?php echo $catego['id']; ?>"<?php echo $catego['id']==$cat->id() ? ' selected="selected"' : ''; ?>><?php echo $catego['name']; ?></option>
33  <?php endforeach; ?>
34  </select>
35  </td>
36  </tr>
37  <tr class="even" valign="top">
38  <td class="head"><?php _e('Description:','rmcommon'); ?></td>
39  <td><textarea name="desc" style="width: 80%; height: 100px;"><?php echo $image_data['desc']; ?></textarea></td>
40  </tr>
41  <tr class="foot">
42  <td colspan="2">
43  <input type="submit" value="<?php _e('Update Image!','rmcommon'); ?>" />
44  <input type="button" value="<?php _e('Cancel','rmcommon'); ?>" onclick="window.location = 'images.php?category=<?php echo $cat->id(); ?>&page=<?php echo $page; ?>';" />
45  </td>
46  </tr>
47 </table>
48 <input type="hidden" name="action" value="update" />
49 <input type="hidden" name="id" value="<?php echo $id; ?>" />
50 <input type="hidden" name="page" value="<?php echo $page; ?>" />
51 <input type="hidden" name="XOOPS_TOKEN_REQUEST" value="<?php echo $xoopsSecurity->createToken(); ?>" />
52 </form>
53 <div id="image-loader"></div>