コード例 #1
0
<?php

if (!defined('BASEPATH')) {
    exit('No direct script access allowed');
}
$this->load->helper('html');
?>
 

<li>
    <a href="<?php 
echo base_url('aktuelles/news/' . $id);
?>
">
    <h2><span class="date"><?php 
echo cp_get_ger_date($valid_from);
?>
</span></h2>
    <h1><?php 
echo $title;
?>
</h1>
    <p><?php 
echo $teaser;
?>
</p>
</li>
</a>
コード例 #2
0
<?php

if (!defined('BASEPATH')) {
    exit('No direct script access allowed');
}
$this->load->helper('html');
?>

<li>
    <a href="<?php 
echo base_url('aktuelles/einsatz/' . $id);
?>
">
    <h2><span class="date"><?php 
echo cp_get_ger_date($datum_beginn) . ' ' . $uhrzeit_beginn;
?>
</span> / <?php 
echo $type_name;
?>
</h2>
    <h1><?php 
echo $name;
?>
</h1>
    <p><?php 
echo $lage;
?>
</p>
</li>
</a>
コード例 #3
0
 public function get_einsatz_list($year)
 {
     $arr_einsatz_list = array();
     $this->db->order_by('datum_beginn', 'desc');
     $this->db->order_by('uhrzeit_beginn', 'desc');
     $this->db->order_by('einsatz_nr', 'desc');
     if (is_numeric($year)) {
         $this->db->where(array('substring(datum_beginn,1,4)' => $year));
     }
     $query = $this->db->get('einsatz');
     $i = 0;
     foreach ($query->result() as $row) {
         $this->db->select('imgID');
         $query2 = $this->db->get_where('einsatz_img', array('einsatzID' => $row->einsatzID));
         $arr_einsatz_list[$i]['einsatzNr'] = $row->einsatz_nr;
         $arr_einsatz_list[$i]['einsatzID'] = $row->einsatzID;
         $arr_einsatz_list[$i]['einsatzName'] = $row->name;
         $arr_einsatz_list[$i]['datum_beginn'] = cp_get_ger_date($row->datum_beginn);
         $arr_einsatz_list[$i]['uhrzeit_beginn'] = $row->uhrzeit_beginn;
         $arr_einsatz_list[$i]['datum_ende'] = cp_get_ger_date($row->datum_ende);
         $arr_einsatz_list[$i]['uhrzeit_ende'] = $row->uhrzeit_ende;
         $arr_einsatz_list[$i]['online'] = $row->online;
         $arr_einsatz_list[$i]['row_color'] = $this->color = cp_get_color($this->color);
         $arr_einsatz_list[$i]['year'] = $year;
         $arr_einsatz_list[$i]['imgCount'] = $query2->num_rows();
         $i++;
     }
     return $arr_einsatz_list;
 }
コード例 #4
0
?>
 Uhr</h4>
                    </div>    
	                <hr class="clear" />
                </div>
                <div class="data">
                    <h1>Einsatzende:</h1>
                    <div class="icon showIcon">
                        <img src="<?php 
echo base_url('images/icons/icon_cal_red.png');
?>
">
                    </div>
                    <div class="info showInfo">    
                        <h3><?php 
echo cp_get_ger_date($einsatz['datum_ende']);
?>
</h3>
                        <h4><?php 
echo $einsatz['uhrzeit_ende'];
?>
 Uhr</h4>
                    </div>
                    <hr class="clear" />
                </div>
                <div class="data">
                    <h1>Einsatzdauer:</h1>
                    <div class="icon">
                        <img src="<?php 
echo base_url('images/icons/icon_clock.png');
?>
コード例 #5
0
				<div class="row">
                	<div class="number trenner<?php 
echo $special_class;
?>
"><a href="<?php 
echo base_url('aktuelles/einsatz/' . $id);
?>
"><? printf("[%3s]\n", $einsatz_nr); ?></a></div>
                	<div class="date trenner<?php 
echo $special_class;
?>
"><a href="<?php 
echo base_url('aktuelles/einsatz/' . $id);
?>
"><span class="inline_date"><?php 
echo cp_get_ger_date($datum_beginn);
?>
</span> <span class="inline_slash">/</span> <span class="inline_time"><?php 
echo $uhrzeit_beginn;
?>
 Uhr</span></a></div>
                	<div class="icon trenner<?php 
echo $special_class;
?>
"><a href="<?php 
echo base_url('aktuelles/einsatz/' . $id);
?>
" class="<?php 
echo $type_class;
?>
"><?php 
コード例 #6
0
</h2>
                            <div class="termin_details" id="js_termin_<?php 
echo $count;
?>
">
                                <p>
                                <?php 
echo $description;
?>
                                </p>
                                <div class="time">
                                    <p class="datum"><?php 
echo $tag;
?>
, den <?php 
echo cp_get_ger_date($datum);
?>
</p>
                                    <p class="clock">
                                    	<span style="white-space:nowrap;"><?php 
echo $beginn;
?>
 <span class="word">Uhr</span></span>
                                         <span class="trenner">/</span> 
                                    	<span style="white-space:nowrap;"><?php 
echo $ende;
?>
 <span class="word">Uhr</span></span>
                                    </p>
                                </div>
                                <div class="loction">
コード例 #7
0
 function cp_get_ger_datetime($date)
 {
     if ($date != null) {
         $a = explode(" ", $date);
         $date = cp_get_ger_date($a[0]);
         return $date . " " . $a[1];
     } else {
         return "";
     }
 }
コード例 #8
0
    exit('No direct script access allowed');
}
$this->load->helper('html');
?>
 

<div class="SmallBox secondColumn">  
    	    <div class="dateBox">
                <h1>Die letzten Einsätze</h1>
                <ul>
<? foreach($einsaetze as $einsatz) : ?>                
                    <li>
                        <a href="<?php 
echo base_url('aktuelles/einsatz/' . $einsatz['einsatzID']);
?>
">
                        <h2><?php 
echo cp_get_ger_date($einsatz['datum']);
?>
</h2>
                        <p><?php 
echo $einsatz['lage'];
?>
</p>
                        </a>
                    </li>
<? endforeach; ?>                    
                </ul>
            </div>
        </div>
        <hr class="clear" />
コード例 #9
0
<?php

if (!defined('BASEPATH')) {
    exit('No direct script access allowed');
}
$this->load->helper('html');
?>

<li>    
    <h3><span class="date"><?php 
echo cp_get_ger_date($datum) . ' - ' . $beginn;
?>
</span> / <?php 
echo $ort_short;
?>
</h3>
    <h2><?php 
echo $name;
?>
</h2>
</li>
コード例 #10
0
ファイル: header.php プロジェクト: shartte/fw_bs_webpage
" class="fancybox-gallery" rel="gallery_presse_menue"><span class="subline"><?php 
echo cp_get_ger_date($a['datum']);
?>
 / <?php 
echo $a['source'];
?>
</span><br /><?php 
echo $a['name'];
?>
</a></li>
<? else : ?>
                           <li><a href="<?php 
echo $a['link'];
?>
" target="_blank"><span class="subline"><?php 
echo cp_get_ger_date($a['datum']);
?>
 / <?php 
echo $a['source'];
?>
</span><br /><?php 
echo $a['name'];
?>
</a></li>
<? endif; ?>
<? endforeach; ?>
                       	</ul>  
                   </div>  
                </li>  
<? if(strpos(current_url(), base_url('menschen/mannschaft')) !== false) : $class = ' class="active"'; else : $class = ''; endif; ?>                 
                <li><a href="<?php 
コード例 #11
0
?>
</td>
	<td><?php 
echo $news_categories[$item['categoryID']]['title'];
?>
</td>
	<td><?php 
echo $item['title'];
?>
</td>
	<td><?php 
echo $item['created_by'];
?>
</td>
	<td><?php 
echo cp_get_ger_date($item['valid_from']);
?>
</td>
<?	if($item['online']==1) :	
        if($privileged['edit']) :   ?>
	<td class="button"><a href="<?php 
echo base_url('admin/content/news/status/' . $item['newsID'] . '/1/' . $pagination_start);
?>
" class="button_mini" title="News offline schalten"><span class='button_online_small'></span></a></td>
<?      else :                      ?>
    <td class="button"><a class="button_mini" title="Sie haben keine Berechtigung den Newsstatus zu bearbeiten"><span class='button_online_small'></span></a></td>
<?      endif;
    else :                          
        if($privileged['edit']) :   ?>
	<td class="button"><a href="<?php 
echo base_url('admin/content/news/status/' . $item['newsID'] . '/0/' . $pagination_start);