openrat-cms

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

history.php (2110B)


      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(''.'filename'.'')))); ?></span>
      9 			</td>
     10 			<td>
     11 				<span><?php echo nl2br(encodeHtml(htmlentities(lang(''.'user_username'.'')))); ?></span>
     12 			</td>
     13 			<td>
     14 				<span><?php echo nl2br(encodeHtml(htmlentities(lang(''.'lastchange'.'')))); ?></span>
     15 			</td>
     16 		</tr>
     17 		<?php foreach($timeline as $list_key=>$list_value){ ?><?php extract($list_value) ?>
     18 			<?php $if4=($typeid=='1'); if($if4){?>
     19 				<?php $type= 'folder'; ?>
     20 			<?php } ?>
     21 			<?php $if4=($typeid=='2'); if($if4){?>
     22 				<?php $type= 'file'; ?>
     23 			<?php } ?>
     24 			<?php $if4=($typeid=='3'); if($if4){?>
     25 				<?php $type= 'page'; ?>
     26 			<?php } ?>
     27 			<?php $if4=($typeid=='4'); if($if4){?>
     28 				<?php $type= 'link'; ?>
     29 			<?php } ?>
     30 			<?php $if4=($typeid=='5'); if($if4){?>
     31 				<?php $type= 'url'; ?>
     32 			<?php } ?>
     33 			<tr class="data">
     34 				<td class="clickable">
     35 					<a target="_self" date-name="<?php echo $name ?>" name="<?php echo $name ?>" data-type="open" data-action="<?php echo $type ?>" data-method="history" data-id="<?php echo $objectid ?>" data-extra="[]" href="./#/<?php echo $type ?>/<?php echo $objectid ?>">
     36 						<span><?php echo nl2br(encodeHtml(htmlentities(Text::maxLength( $name,30,'..',constant('STR_PAD_BOTH') )))); ?></span>
     37 					</a>
     38 				</td>
     39 				<td>
     40 					<span><?php echo nl2br(encodeHtml(htmlentities(Text::maxLength( $filename,30,'..',constant('STR_PAD_BOTH') )))); ?></span>
     41 				</td>
     42 				<td>
     43 					<span><?php echo nl2br(encodeHtml(htmlentities($username))); ?></span>
     44 				</td>
     45 				<td>
     46 					<?php include_once( 'modules/template-engine/components/html/date/component-date.php') ?><?php component_date($lastchange_date) ?>
     47 				</td>
     48 			</tr>
     49 		<?php } ?>
     50 	</table></div></div>