XOOPS RMCommon Utilities  2.1.8.91RC
 All Classes Namespaces Files Functions Variables
rmc_updates_list.php
Go to the documentation of this file.
1 <?php foreach($updates['updates'] as $i => $upd): ?>
2  <div class="row-fluid upd-item" id="upd-<?php echo $i; ?>">
3  <div>
4  <div class="span9">
5  <h4><?php echo $upd['data']['title']; ?></h4>
6  <div class="rmc-upd-info">
7  <?php echo sprintf(__('Type: %s','rmcommon'), '<span class="label label-inverse">'.$upd['data']['type'].'</span>'); ?> |
8  <?php echo sprintf(__('Version: %s','rmcommon'), '<strong>'.$upd['data']['version'].'</strong>'); ?> |
9  <?php echo sprintf(__('Released on: %s','rmcommon'), '<strong>'.$upd['data']['released'].'</strong>'); ?>
10  <?php if($upd['data']['login']): ?>
11  | <i class="icon-lock"></i> <?php _e('Login required','rmcommon'); ?>
12  <?php endif; ?>
13  </div>
14  <div class="upd-progress">
15  <label><?php _e('Installing update...','rmcommon'); ?></label>
16  <div class="progress progress-striped active">
17  <div class="bar"></div>
18  </div>
19  <span class="text-info status"><?php echo sprintf(__('Downloading %s','rmcommon'), $rmUtil->formatBytesSize($upd['data']['size'])); ?></span>
20  </div>
21  </div>
22  <div class="span3">
23  <div class="btn-group pull-right">
24  <button type="button" class="btn" onclick="loadUpdateDetails(<?php echo $i; ?>);"><i class="icon-info-sign"></i> <?php _e('View details','rmcommon'); ?></button>
25  <button type="button" class="btn" onclick="installUpdate(<?php echo $i; ?>);" data-id="<?php echo $i; ?>"><i class="icon-circle-arrow-down"></i> <?php _e('Update now!','rmcommon'); ?></button>
26  <button type="button" class="btn button-later" onclick="installLater(<?php echo $i; ?>);" data-id="<?php echo $i; ?>"><i class="icon-time"></i> <?php _e('Install Later','rmcommon'); ?></button>
27  </div>
28  </div>
29  </div>
30  </div>
31  <?php endforeach; ?>
32 
33 <div id="json-container">
34  <?php echo json_encode($updates['updates']); ?>
35 </div>