1 <h1
class=
"rmc_titles"><?php
_e(
'Modules Management',
'rmcommon'); ?></h1>
2 <script type=
"text/javascript">
4 var message =
"<?php _e('Do you really want to uninstall selected module?','rmcommon'); ?>";
5 var message_upd =
"<?php _e('Do you really want to update selected module?','rmcommon'); ?>";
6 var message_dis =
"<?php _e('Do you really want to disable selected module?','rmcommon'); ?>";
7 var message_name =
"<?php _e('New name must be different from current name!','rmcommon'); ?>";
11 <form action=
"modules.php" method=
"post" id=
"form-modules">
12 <input type=
"hidden" name=
"action" id=
"mod-action" value=
"" />
13 <input type=
"hidden" name=
"module" id=
"mod-dir" value=
"" />
18 <div
class=
"rmc_item_module rounded<?php echo !$mod['active'] ? ' inactive' : ''; ?>" id=
"module-<?php echo $mod['id']; ?>">
19 <!--<input type=
"checkbox" name=
"ids[]" id=
"item-<?php echo $mod['id']; ?>" value=
"<?php echo $mod['id']; ?>" />-->
20 <div
class=
"mod_image">
21 <a
class=
"rounded" href=
"<?php if($mod['active']): ?><?php echo $mod['admin_link']; ?><?php else: ?>javascript:;<?php endif; ?>" title=
"<?php echo $mod['realname']; ?>" style=
"background: url(<?php echo $mod['icon']; ?>) no-repeat center;"><span
class=
"rounded"> </span></a>
23 <div
class=
"mod_data">
24 <?php
if($mod[
'active']): ?>
25 <span
class=
"name"><a
href=
"<?php echo $mod['link']; ?>"><?php echo strlen($mod[
'name'])>20 ? substr($mod[
'name'], 0, 20) : $mod[
'name']; ?></a></span>
27 <span
class=
"name"><?php echo $mod[
'name']; ?></span>
30 <span><?php echo sprintf(
__(
'Version: %s',
'rmcommon'), $mod[
'version']); ?></span>
31 <span><?php echo sprintf(
__(
'Updated: %s',
'rmcommon'), $mod[
'updated']); ?></span>
33 <span
class=
"options">
34 <a href=
"javascript:;" class=
"show" id=
"show-<?php echo $mod['id']; ?>">Show</a>
35 <a href=
"javascript:;" class=
"rename" id=
"rename-<?php echo $mod['id']; ?>">Rename</a>
38 <div
class=
"data_storage">
39 <span
class=
"version"><?php echo $mod[
'version']; ?></span>
40 <span
class=
"dirname"><?php echo $mod[
'dirname']; ?></span>
41 <span
class=
"author"><?php echo $mod[
'author']; ?></span>
42 <span
class=
"authormail"><?php echo $mod[
'author_mail']; ?></span>
43 <span
class=
"authorweb"><?php echo $mod[
'author_web']; ?></span>
44 <span
class=
"authorurl"><?php echo $mod[
'author_url']; ?></span>
45 <span
class=
"name"><?php echo $mod[
'name']; ?></span>
46 <span
class=
"realname"><a href=
"<?php echo $mod['admin_link']; ?>"><?php echo $mod[
'realname']; ?></a></span>
47 <span
class=
"description"><?php echo $mod[
'description']; ?></span>
48 <span
class=
"license"><?php echo $mod[
'license']; ?></span>
49 <span
class=
"active"><?php echo $mod[
'active']; ?></span>
54 <!-- Module data displayed -->
55 <div
id=
"data-display" class=
"rounded">
56 <div
class=
"data_head">
57 <div
class=
"mod_image"></div>
58 <span
class=
"name"></span>
60 <div
class=
"data_description"></div>
61 <div
class=
"data_values">
62 <table cellspacing=
"0" border=
"0">
64 <td><strong><?php
_e(
'Version:',
'rmcommon'); ?></strong></td>
65 <td
class=
"version"></td>
68 <td><strong><?php
_e(
'Author:',
'rmcommon'); ?></strong></td>
69 <td
class=
"author"></td>
72 <td><strong><?php
_e(
'Web:',
'rmcommon'); ?></strong></td>
76 <td><strong><?php
_e(
'License:',
'rmcommon'); ?></strong></td>
77 <td
class=
"license"></td>
80 <td><strong><?php
_e(
'Name:',
'rmcommon'); ?></strong></td>
81 <td
class=
"name"></td>
85 <div
class=
"data_buttons">
86 <a href=
"javascript:;" class=
"update_button"><?php
_e(
'Update',
'rmcommon'); ?></a>
87 <a href=
"javascript:;" class=
"uninstall_button" id=
""><?php
_e(
'Uninstall',
'rmcommon'); ?></a>
88 <a href=
"javascript:;" class=
"disable_button"><?php
_e(
'Disable',
'rmcommon'); ?></a>
89 <a href=
"javascript:;" class=
"enable_button" style=
"display: none;"><?php
_e(
'Enable',
'rmcommon'); ?></a>
90 <a href=
"#" onclick=
"$('#data-display').slideUp('fast');">Close</a>
91 <input type=
"hidden" id=
"the-id" value=
"" />
94 <div
id=
"rename-blocker"></div>
96 <span><?php
_e(
'Change name:',
'rmcommon'); ?> <span></span></span>
97 <input type=
"text" size=
"50" id=
"rename-name" value=
"" />
98 <input type=
"submit" id=
"rename-save" value=
"<?php _e('Rename','rmcommon'); ?>" />
99 <input type=
"button" onclick=
"$('#rename-blocker').click();" value=
"<?php _e('Cancel','rmcommon'); ?>" />
100 <input type=
"hidden" name=
"id" id=
"id-module" value=
"" />