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">
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>
10 <td><?php echo $image_data[
'mime']; ?></td>
13 <td><?php echo formatTimestamp($image_data[
'date'],
'l'); ?></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> |
20 <a href=
"javascript:;" onclick=
"show_image_pop('<?php echo $image_data['url']; ?>');"><?php
_e(
'Original Size',
'rmcommon'); ?></a>
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>
28 <td
class=
"head"><?php
_e(
'Category:',
'rmcommon'); ?></td>
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>
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>
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; ?>';" />
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(); ?>" />
53 <div
id=
"image-loader"></div>