show.php (1519B)
1 <?php if (!defined('OR_TITLE')) die('Forbidden'); ?> 2 <div class="or-table-wrapper"><div class="or-table-filter"><input type="search" name="filter" placeholder="<?php echo lang('SEARCH_FILTER') ?>" /></div><div class="or-table-area"><table width="100%"> 3 <tr class="headline"> 4 <td> 5 <span><?php echo nl2br(encodeHtml(htmlentities(lang(''.'name'.'')))); ?></span> 6 </td> 7 </tr> 8 <?php foreach($templates as $list_key=>$list_value){ ?><?php extract($list_value) ?> 9 <tr class="data"> 10 <td class="clickable"> 11 <i class="image-icon image-icon--action-template"></i> 12 <a target="_self" date-name="<?php echo $name ?>" name="<?php echo $name ?>" data-type="open" data-action="template" data-method="show" data-id="<?php echo $id ?>" data-extra="[]" href="./#/template/<?php echo $id ?>"> 13 <span><?php echo nl2br(encodeHtml(htmlentities($name))); ?></span> 14 </a> 15 </td> 16 </tr> 17 <?php } ?> 18 <?php $if3=(($templates)==FALSE); if($if3){?> 19 <tr> 20 <span><?php echo nl2br(encodeHtml(htmlentities(lang('GLOBAL_NO_TEMPLATES_AVAILABLE_DESC')))); ?></span> 21 </tr> 22 <?php } ?> 23 <tr class="data"> 24 <td colspan="1" class="clickable"> 25 <a target="_self" data-type="dialog" data-action="" data-method="add" data-id="<?php echo OR_ID ?>" data-extra="{'dialogAction':null,'dialogMethod':'add'}" href="./#//"> 26 <i class="image-icon image-icon--method-add"></i> 27 <span><?php echo nl2br(encodeHtml(htmlentities(lang('new')))); ?></span> 28 </a> 29 </td> 30 </tr> 31 </table></div></div>