XOOPS RMCommon Utilities  2.1.8.91RC
 All Classes Namespaces Files Functions Variables
rmc_dashboard.php
Go to the documentation of this file.
1 <h1 class="rmc_titles"><?php _e('Dashboard','rmcommon'); ?></h1>
2 <div class="rmc_widgets_container">
3  <!-- Right widgets -->
4  <div id="rmc-central-right-widgets">
5 
6  <div class="outer" id="updater-info">
7  <div class="th"><?php _e('Available Updates','rmcommon'); ?></div>
8  <div class="even alert alert-block alert-danger">
9 
10  </div>
11  </div>
12 
13  <div class="outer">
14  <div class="th"><img src="images/loading_2.gif" alt="" class="loading" id="loading-mods" /> <?php _e('Installed Modules','rmcommon'); ?></div>
15  <div class="even mods_coint">
16  <div id="ajax-mods-list">
17 
18  </div>
19  <span class="description">
20  <?php _e('If you wish to manage or install new modules please go to Modules Management.','rmcommon'); ?><br />
21  <a href="<?php echo XOOPS_URL; ?>/modules/system/admin.php?fct=modulesadmin"><?php _e('Modules management', 'rmcommon'); ?></a>
22  </span>
23  </div>
24  </div>
25 
26  <!-- Available Modules -->
27  <div class="outer">
28  <div class="th"><?php _e('Available Modules','rmcommon'); ?></div>
29  <?php foreach($available_mods as $module): ?>
30  <div class="<?php echo tpl_cycle("even,odd"); ?>">
31  <span class="modimg" style="background: url(../<?php echo $module->getInfo('dirname'); ?>/<?php echo $module->getInfo('icon48')!='' ? $module->getInfo('icon48') : $module->getInfo('image'); ?>) no-repeat center;">&nbsp;</span>
32  <strong><?php echo $module->getInfo('name'); ?></strong><br />
33  <span class="moddesc"><?php echo $module->getInfo('description'); ?></span><br />
34  <a href="modules.php?action=install&dir=<?php echo $module->getInfo('dirname'); ?>"><?php _e('Install', 'rmcommon'); ?></a>
35  </div>
36  <?php endforeach; ?>
37  <span class="description">
38  <?php _e('If you wish to manage or install new modules please go to Modules Management.','rmcommon'); ?><br />
39  <a href="<?php echo XOOPS_URL; ?>/modules/system/admin.php?fct=modulesadmin"><?php _e('Modules management', 'rmcommon'); ?></a>
40  </span>
41  </div>
42  <!-- End available modules -->
43  <?php RMEvents::get()->run_event('rmcommon.dashboard.right.widgets'); ?>
44  </div>
45  <!-- / End right widgets -->
46 
47  <!-- Left widgets -->
48  <div id="rmc-central-left-widgets">
49  <div class="outer">
50  <div class="th"><?php _e('System Tools','rmcommon'); ?></div>
51  <div class="even system_tools">
52  <table width="100%" cellpadding="0" cellspacing="0">
53  <tr class="even">
54  <td width="50%">
55  <a style="background-image: url(images/configure.png);" href="<?php echo XOOPS_URL; ?>/modules/system/admin.php?fct=preferences&op=showmod&mod=<?php echo $xoopsModule->mid(); ?>"><?php _e('Configure Common Utilities','rmcommon'); ?></a>
56  </td>
57  <td>
58  <a style="background-image: url(images/images.png);" href="images.php"><?php _e('Images Manager','rmcommon'); ?></a>
59  </td>
60  </tr>
61  <tr class="odd">
62  <td width="50%">
63  <a style="background-image: url(images/comments.png);" href="comments.php"><?php _e('Comments Management','rmcommon'); ?></a>
64  </td>
65  <td>
66  <a style="background-image: url(images/plugin.png);" href="plugins.php"><?php _e('Plugins Management','rmcommon'); ?></a>
67  </td>
68  </tr>
69  <tr class="even">
70  <td width="50%">
71  <a style="background-image: url(images/modules.png);" href="../system/admin.php?fct=modulesadmin"><?php _e('XOOPS Modules','rmcommon'); ?></a>
72  </td>
73  <td>
74  <a style="background-image: url(images/users.png);" href="../system/admin.php?fct=users"><?php _e('Users Management','rmcommon'); ?></a>
75  </td>
76  </tr>
77  <?php
78  $system_tools = RMEvents::get()->run_event('rmcommon.get.system.tools', array());
79  $i = 1;
80  ?>
81  <tr class="odd">
82  <?php foreach ($system_tools as $tool): ?>
83  <?php if($i>2): ?>
84  </tr><tr class="<?php echo tpl_cycle('even,odd'); ?>">
85  <?php $i=1; ?>
86  <?php endif; ?>
87  <td><a href="<?php echo $tool['link']; ?>" style="background-image: url(<?php echo $tool['icon']; ?>);"><?php echo $tool['caption']; ?></td>
88  <?php $i++; endforeach; ?>
89  </tr>
90  </table>
91  </div>
92  </div>
93 
94  <!-- Recent news -->
95  <div class="outer">
96  <div class="th"><img src="images/loading_2.gif" alt="" class="loading" id="loading-news" /> <?php _e('Recent News','rmcommon'); ?></div>
97  <div class="even" id="rmc-recent-news">
98 
99  </div>
100  </div>
101  <!-- End recent news -->
102 
103  <?php RMEvents::get()->run_event('rmcommon.dashboard.left.widgets'); ?>
104 
105  </div>
106  <!-- End left widgets -->
107 </div>