XOOPS RMCommon Utilities  2.1.8.91RC
 All Classes Namespaces Files Functions Variables
editor_image.php
Go to the documentation of this file.
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']; ?>">
3 <head>
4 <title><?php _e('Insert Image','rmcommon'); ?></title>
5 </head>
6 <body style="background: #FFF;">
7 <div id="img-toolbar">
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', ''); ?>
12 </div>
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>
22  <?php endforeach; ?>
23  </select>
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; ?>" />
28  </form>
29  </div>
30  <?php if (!$cat->isNew()): ?>
31  <div id="upload-controls">
32  <div id="upload-errors"></div>
33  <div id="files-container"></div>
34  </div>
35  <div id="resizer-bar">
36  <strong><?php _e('Resizing images','rmcommon'); ?></strong>
37  <div class="thebar">
38  <div class="indicator" id="bar-indicator">0</div>
39  </div>
40  <span class="message"></span>
41  <span><?php _e('Please, do not close the window until resizing process has finished!','rmcommon'); ?></span>
42  </div>
43  <div id="gen-thumbnails"></div>
44  <?php endif; ?>
45 </div>
46 
47 <div id="fromurl-container" class="container">
48  <table width="100%" cellpadding="3" cellspacing="0">
49  <tr>
50  <td><?php _e('Image URL','rmcommon'); ?></td>
51  <td><input type="text" id="imgurl" size="50" value="" /></td>
52  <tr>
53  <tr>
54  <td><?php _e('Title:','rmcommon'); ?></td>
55  <td><input type="text" id="url-title" value="" /></td>
56  </tr>
57  <tr>
58  <td><?php _e('Alternative text:','rmcommon'); ?></td>
59  <td><input type="text" id="url-alt" value="" /></td>
60  </tr>
61  <tr>
62  <td><?php _e('Alignment:','rmcommon'); ?></td>
63  <td>
64  <strong>
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>
69  </td>
70  </tr>
71  <tr>
72  <td><?php _e('Link:','rmcommon'); ?></td>
73  <td><input type="text" id="url-link" value="" /></td>
74  </tr>
75  <tr>
76  <td>&nbsp;</td>
77  <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>
81  <?php endif; ?>
82  </td>
83  </tr>
84  </table>
85 </div>
86 
87 
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>
96  <?php endforeach; ?>
97  </select>
98  <input type="hidden" name="XOOPS_TOKEN_REQUEST" id="xoops-token" value="<?php echo $xoopsSecurity->createToken(); ?>" />
99  </div>
100  <div id="library-content" class="loading">
101 
102  </div>
103 </div>
104 
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">
110 <?php
112  $ev->run_event('rmcommon.imgwin.parameter');
113 ?>
114 </span>
115 
116 <!-- Options from other elements -->
117 <?php RMEvents::get()->run_event('rmcommon.imgmgr.editor.containers',''); ?>
118 
119 </body>
120 </html>