openrat-cms

# OpenRat Content Management System
git clone http://git.code.weiherhei.de/openrat-cms.git
Log | Files | Refs

show.php (2373B)


      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 			<td>
      8 				<span><?php echo nl2br(encodeHtml(htmlentities(''))); ?></span>
      9 			</td>
     10 			<td>
     11 				<span><?php echo nl2br(encodeHtml(htmlentities(''))); ?></span>
     12 			</td>
     13 		</tr>
     14 		<?php foreach($el as $list_key=>$list_value){ ?><?php extract($list_value) ?>
     15 			<tr class="data">
     16 				<td class="clickable">
     17 					<a target="_self" date-name="<?php echo $name ?>" name="<?php echo $name ?>" data-type="open" data-action="model" data-method="show" data-id="<?php echo $id ?>" data-extra="[]" href="./#/model/<?php echo $id ?>">
     18 						<i class="image-icon image-icon--action-model"></i>
     19 						<span><?php echo nl2br(encodeHtml(htmlentities(Text::maxLength( $name,25,'..',constant('STR_PAD_BOTH') )))); ?></span>
     20 					</a>
     21 				</td>
     22 				<?php $if5=(!$is_default); if($if5){?>
     23 					<td class="clickable">
     24 						<?php $if7=(isset($id)); if($if7){?>
     25 							<a target="_self" data-type="post" data-action="model" data-method="setdefault" data-id="<?php echo $id ?>" data-extra="[]" data-data="{&quot;action&quot;:&quot;model&quot;,&quot;subaction&quot;:&quot;setdefault&quot;,&quot;id&quot;:&quot;<?php echo $id ?>&quot;,&quot;token&quot;:&quot;<?php echo token() ?>&quot;,&quot;none&quot;:&quot;0&quot;}">
     26 								<span><?php echo nl2br(encodeHtml(htmlentities(lang('GLOBAL_make_default')))); ?></span>
     27 							</a>
     28 						<?php } ?>
     29 					</td>
     30 				<?php } ?>
     31 				<?php if(!$if5){?>
     32 					<td>
     33 						<em><?php echo nl2br(encodeHtml(htmlentities(lang('GLOBAL_is_default')))); ?></em>
     34 					</td>
     35 				<?php } ?>
     36 			</tr>
     37 			<?php unset($select_url) ?>
     38 			<?php unset($default_url) ?>
     39 		<?php } ?>
     40 		<tr class="data">
     41 			<td colspan="2" class="clickable">
     42 				<a target="_self" data-type="dialog" data-action="" data-method="add" data-id="<?php echo OR_ID ?>" data-extra="{'dialogAction':null,'dialogMethod':'add'}" href="./#//">
     43 					<i class="image-icon image-icon--method-add"></i>
     44 					<span><?php echo nl2br(encodeHtml(htmlentities(lang('new')))); ?></span>
     45 				</a>
     46 			</td>
     47 		</tr>
     48 	</table></div></div>