1 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><?php global
$rmc_config; ?>
2 <html xmlns=
"http://www.w3.org/1999/xhtml" xml:lang=
"<?php echo $rmc_config['lang']; ?>" lang=
"<?php echo $rmc_config['lang']; ?>">
4 <title><?php
_e(
'Insert Image',
'rmcommon'); ?></title>
6 <body style=
"background: #FFF;">
8 <a
href=
"#" class=
"select" id=
"a-upload" onclick=
"show_upload(); return false;"><?php
_e(
'Upload Files',
'rmcommon'); ?></a>
9 <a
href=
"#" id=
"a-fromurl" onclick=
"return false;"><?php
_e(
'From URL',
'rmcommon'); ?></a>
10 <a
href=
"#" id=
"a-library" onclick=
"show_library(); return false;"><?php
_e(
'From Library',
'rmcommon'); ?></a>
11 <?php echo
RMEvents::get()->run_event(
'rmcommon.imgmgr.editor.options',
''); ?>
13 <div
id=
"upload-container" class=
"container">
14 <div
class=
"categories_selector">
15 <form name=
"selcat" id=
"select-category" method=
"post" action=
"tiny-images.php">
16 <?php
_e(
'Select the category where you wish to upload images',
'rmcommon'); ?>
17 <select name=
"category" onchange=
"$('#select-category').submit();">
18 <option value=
"0"<?php echo
$cat->isNew() ?
' selected="selected"' :
''; ?>><?php
_e(
'Select...',
'rmcommon'); ?></option>
19 <?php
foreach($categories as $catego): ?>
20 <?php
if(!$catego->user_allowed_toupload(
$xoopsUser))
continue; ?>
21 <option value=
"<?php echo $catego->id(); ?>"<?php echo
$cat->id()==$catego->id() ?
' selected="selected"' :
''; ?>><?php echo $catego->getVar(
'name'); ?></option>
24 <input type=
"hidden" name=
"type" value=
"<?php echo $type; ?>" />
25 <input type=
"hidden" name=
"name" value=
"<?php echo $en; ?>" />
26 <input type=
"hidden" name=
"target" value=
"<?php echo $target; ?>" />
27 <input type=
"hidden" name=
"idcontainer" value=
"<?php echo $container; ?>" />
30 <?php
if (!
$cat->isNew()): ?>
31 <div
id=
"upload-controls">
32 <div
id=
"upload-errors"></div>
33 <div
id=
"files-container"></div>
35 <div
id=
"resizer-bar">
36 <strong><?php
_e(
'Resizing images',
'rmcommon'); ?></strong>
38 <div
class=
"indicator" id=
"bar-indicator">0</div>
40 <span
class=
"message"></span>
41 <span><?php
_e(
'Please, do not close the window until resizing process has finished!',
'rmcommon'); ?></span>
43 <div
id=
"gen-thumbnails"></div>
47 <div
id=
"fromurl-container" class=
"container">
48 <table width=
"100%" cellpadding=
"3" cellspacing=
"0">
50 <td><?php
_e(
'Image URL',
'rmcommon'); ?></td>
51 <td><input type=
"text" id=
"imgurl" size=
"50" value=
"" /></td>
54 <td><?php
_e(
'Title:',
'rmcommon'); ?></td>
55 <td><input type=
"text" id=
"url-title" value=
"" /></td>
58 <td><?php
_e(
'Alternative text:',
'rmcommon'); ?></td>
59 <td><input type=
"text" id=
"url-alt" value=
"" /></td>
62 <td><?php
_e(
'Alignment:',
'rmcommon'); ?></td>
65 <label><input type=
"radio" name=
"align_url" value=
"" checked=
"checked" /> <?php
_e(
'None',
'rmcommon'); ?></label>
66 <label><input type=
"radio" name=
"align_url" value=
"left" /> <?php
_e(
'Left',
'rmcommon'); ?></label>
67 <label><input type=
"radio" name=
"align_url" value=
"center" /> <?php
_e(
'Center',
'rmcommon'); ?></label>
68 <label><input type=
"radio" name=
"align_url" value=
"right" /> <?php
_e(
'Right',
'rmcommon'); ?></label></strong>
72 <td><?php
_e(
'Link:',
'rmcommon'); ?></td>
73 <td><input type=
"text" id=
"url-link" value=
"" /></td>
78 <a
href=
"javascript:;" class=
"insert_button" onclick=
"<?php if($type=='exmcode'): ?>insert_from_url('xoops');<?php else: ?>insert_from_url('tiny');<?php endif; ?>"><?php
_e(
'Insert Image',
'rmcommon'); ?></a>
79 <?php
if(
$type==
'exmcode'): ?>
80 <a href=
"javascript:;" onclick=
"exmPopup.closePopup();"><?php
_e(
'Cancel',
'rmcommon'); ?></a>
88 <div
id=
"library-container" class=
"container">
89 <div
class=
"categories_selector">
90 <?php
_e(
'Select the category where you wish to upload images',
'rmcommon'); ?>
91 <select name=
"category" id=
"category-field" onchange=
"show_library();">
92 <option value=
"0"<?php echo
$cat->isNew() ?
' selected="selected"' :
''; ?>><?php
_e(
'Select...',
'rmcommon'); ?></option>
93 <?php
foreach($categories as $catego): ?>
94 <?php
if(!$catego->user_allowed_toupload(
$xoopsUser))
continue; ?>
95 <option value=
"<?php echo $catego->id(); ?>"<?php echo
$cat->id()==$catego->id() ?
' selected="selected"' :
''; ?>><?php echo $catego->getVar(
'name'); ?></option>
98 <input type=
"hidden" name=
"XOOPS_TOKEN_REQUEST" id=
"xoops-token" value=
"<?php echo $xoopsSecurity->createToken(); ?>" />
100 <div
id=
"library-content" class=
"loading">
105 <input type=
"hidden" name=
"type" id=
"type" value=
"<?php echo $type; ?>" />
106 <input type=
"hidden" name=
"name" id=
"name" value=
"<?php echo $en; ?>" />
107 <input type=
"hidden" name=
"target" id=
"target" value=
"<?php echo $target; ?>" />
108 <input type=
"hidden" name=
"idcontainer" id=
"idcontainer" value=
"<?php echo $container; ?>" />
109 <span
id=
"parameters">
112 $ev->run_event(
'rmcommon.imgwin.parameter');
116 <!-- Options from other elements -->
117 <?php
RMEvents::get()->run_event(
'rmcommon.imgmgr.editor.containers',
''); ?>