Changeset 497 for trunk/services/templates/versions_view.ihtml
- Timestamp:
- Sep 15, 2014 9:44:27 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/services/templates/versions_view.ihtml
r457 r497 1 <div class="commandbox"> 2 <span class="sc-nowrap commanditem"><a href="<?php echo $app->ohref(oTxt($_SERVER['PHP_SELF'])); ?>"><?php echo _("Back to the Versions List"); ?></a></span> 3 <?php if (!getFormData('current', false)) { ?> 4 <span class="sc-nowrap commanditem"><a href="<?php echo $app->oHREF($_SERVER['PHP_SELF'] . '?op=restore', array('version_id', 'version_title')); ?>"><?php echo _("Restore this saved version"); ?></a></span> 5 <?php } ?> 6 </div> 1 <header class="row"> 2 <div class="large-12 columns"> 3 <h1><?php echo $nav->get('title'); ?></h1> 4 </div> 5 </header> 6 <main role="main"> 7 <div class="row"> 8 <div class="large-12 columns"> 9 <?php 10 if (is_array($data) && !empty($data)) { 11 ?> 12 <table class="list"> 13 <tbody> 14 <?php 15 foreach ($data as $k => $v_d) { 16 ?> 17 <tr> 18 <td class="sc-nowrap"><label><?php echo oTxt($k); ?></label></td> 19 <td><pre><?php echo oTxt($v_d); ?></pre></td> 20 </tr> 21 <?php } ?> 22 </tbody> 23 </table> 24 <?php 25 } 7 26 8 <?php if (is_array($data) && !empty($data)) { ?> 9 <table class="list"> 10 <?php 11 while ((list($k, $v_d) = each($data))) { 12 ?> 13 <tr> 14 <td class="sc-padleft sc-nowrap"><label><?php echo $k; ?></label></td> 15 <td class="sc-padleft"><pre><?php echo $v_d; ?></pre></td> 16 </tr> 17 <?php } ?> 18 </table> 19 <?php } ?> 27 // Buttons. 28 $action_links = array(); 29 if (!getFormData('current', false)) { 30 $action_links[] = array('href' => $app->oHREF($_SERVER['PHP_SELF'] . '?op=restore', array('version_id', 'version_title')), 'value' => _("Restore this saved version"), 'class' => 'small button alert', 'accesskey' => 'r'); 31 } 32 $action_links[] = array('href' => $app->ohref(oTxt($_SERVER['PHP_SELF'])), 'value' => _("Cancel"), 'class' => 'small button secondary', 'accesskey' => 'b'); 33 HTML::printButtons($action_links); 34 ?> 35 </div> 36 </div> 37 </main>
Note: See TracChangeset
for help on using the changeset viewer.