openrat-cms

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

show.php (2551B)


      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(lang(''.'LANGUAGE_ISOCODE'.'')))); ?></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 					<i class="image-icon image-icon--action-language"></i>
     18 					<a target="_self" date-name="<?php echo $name ?>" name="<?php echo $name ?>" data-type="open" data-action="language" data-method="show" data-id="<?php echo $id ?>" data-extra="[]" href="./#/language/<?php echo $id ?>">
     19 						<span><?php echo nl2br(encodeHtml(htmlentities(Text::maxLength( $name,25,'..',constant('STR_PAD_BOTH') )))); ?></span>
     20 					</a>
     21 				</td>
     22 				<td>
     23 					<span><?php echo nl2br(encodeHtml(htmlentities($isocode))); ?></span>
     24 				</td>
     25 				<?php $if5=(!$is_default); if($if5){?>
     26 					<td class="clickable">
     27 						<?php $if7=(isset($id)); if($if7){?>
     28 							<a target="_self" data-type="post" data-action="language" data-method="setdefault" data-id="<?php echo $id ?>" data-extra="[]" data-data="{&quot;action&quot;:&quot;language&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;}">
     29 								<span><?php echo nl2br(encodeHtml(htmlentities(lang('GLOBAL_make_default')))); ?></span>
     30 							</a>
     31 						<?php } ?>
     32 						<?php if(!$if7){?>
     33 						<?php } ?>
     34 					</td>
     35 				<?php } ?>
     36 				<?php if(!$if5){?>
     37 					<td>
     38 						<em><?php echo nl2br(encodeHtml(htmlentities(lang('GLOBAL_is_default')))); ?></em>
     39 					</td>
     40 				<?php } ?>
     41 			</tr>
     42 			<?php unset($select_url) ?>
     43 			<?php unset($default_url) ?>
     44 		<?php } ?>
     45 		<tr class="data">
     46 			<td colspan="3" class="clickable">
     47 				<a target="_self" data-type="dialog" data-action="" data-method="add" data-id="<?php echo OR_ID ?>" data-extra="{'dialogAction':null,'dialogMethod':'add'}" href="./#//">
     48 					<i class="image-icon image-icon--method-add"></i>
     49 					<span><?php echo nl2br(encodeHtml(htmlentities(lang('new')))); ?></span>
     50 				</a>
     51 			</td>
     52 		</tr>
     53 	</table></div></div>