示例#1
0
 public function editPressСentr()
 {
     $this->load->model(array('press_centr_resources', 'press_centr'));
     $pagevar = array('content' => $this->press_centr->getWhere($this->input->get('id')), 'images' => $this->press_centr_resources->getWhere(NULL, array('publication' => $this->input->get('id')), TRUE));
     if (empty($pagevar['content'])) {
         show_404();
     }
     $this->load->helper('date');
     $pagevar['content']['date'] = swap_dot_date_without_time($pagevar['content']['date']);
     $this->load->view("admin_interface/press-centr/edit", $pagevar);
 }
示例#2
0
$this->load->view('guests_interface/includes/navigation');
?>
				<section class="sep_new clearfix">
					<a class="top_publics" href="<?php 
echo site_url('press-center');
?>
">&laquo; Все публикации</a>
					<header>
						<div class="header_bg">
							<h1><?php 
echo $content['title'];
?>
</h1>
						</div>
						<div class="event-date"><?php 
echo swap_dot_date_without_time($content['date']);
?>
 г.</div>
					</header>
					
						<div class="fotorama" data-width="100%" data-height="320px" data-fit="contain" data-transition="dissolve" data-autoplay="true">
							<?php 
for ($i = 0; $i < count($images); $i++) {
    ?>
								
								 <img src="<?php 
    echo base_url($images[$i]['resource']);
    ?>
" alt="<?php 
    echo $images[$i]['caption'];
    ?>
示例#3
0
					</thead>
					<tbody>
					<?php 
for ($i = 0; $i < count($press_centr); $i++) {
    ?>
						<tr>
							<td><?php 
    echo $press_centr[$i]['id'];
    ?>
</td>
							<td><?php 
    echo $press_centr[$i]['title'];
    ?>
</td>
							<td><?php 
    echo swap_dot_date_without_time($press_centr[$i]['date']);
    ?>
</td>
							<td>
								<a href="<?php 
    echo site_url(ADMIN_START_PAGE . '/press-centr/edit?mode=text&id=' . $press_centr[$i]['id']);
    ?>
" class="btn btn-link" ><i class="icon-edit"></i></a>
								<button data-item="<?php 
    echo $press_centr[$i]['id'];
    ?>
" class="btn btn-link remove-item"><i class="icon-remove"></i></button>
							</td>
						</tr>
					<?php 
}