C:\xampp\htdocs\kptv2\ro\stire.tpl.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php

    
if(!array_key_exists('pg'$_GET)) {
        
header("location:index.php");
        exit();
    }

      require_once(
"../conf_/siteconf_.php");
    require_once(
"../admin/dbconn.php");

    if(
$dbConn) {
        
$ra_page$db->Select($TBL_STIRInull, array("ID"), array($_GET['id']));
        if(
count($ra_page)){
            
// Format the news date in the same Romanian style as the listing:
            // "DD MonthRO YYYY HH:MM" -- time is omitted when stored as 00:00:00
            // (legacy items pre-dating the DATETIME upgrade).
            
$dateRO '';
            if (!empty(
$ra_page[0]->Datas) && substr($ra_page[0]->Datas010) !== '0000-00-00') {
                
$ts strtotime($ra_page[0]->Datas);
                if (
$ts 0) {
                    
$mIdx  = (int) date('n'$ts);
                    
$mName = isset($months[$mIdx]) ? $months[$mIdx] : date('M'$ts);
                    
$dateRO date('d'$ts) . ' ' $mName ' ' date('Y'$ts);
                    if (
date('H:i:s'$ts) !== '00:00:00') {
                        
$dateRO .= ' ' date('H:i'$ts);
                    }
                }
            }
            
$page  '<h3 style="margin-bottom: 0px;">' $ra_page[0]->Titlu '</h3>';
            
$page .= '<small class="news_date">' $dateRO '</small>';
            
$page .= $ra_page[0]->Continut;
        }
    }

$title .=" - ".$ra_page[0]->Titlu;

?>


<main class="page">
    <section class="adr2 breadcrumbs"><a href="index.php" class="adr2">Home</a> &raquo; <a href="index.php?pg=news" class="adr2">Stiri</a> &raquo; <?= $ra_page[0]->Titlu ?></section>

    <!-- Go to www.addthis.com personalizat -->
    <section class="addthis-social-media">
        <a title="facebook" class="addthis_button_facebook" href="javascript:;">
            <img alt="Facebook" src="/images/img_social/icon-share-fb.png" />
        </a>
        <a title="twitter" class="addthis_button_twitter" href="javascript:;">
            <img alt="Twitter" src="/images/img_social/icon-share-twitter.png" />
        </a>
        <a title="email" target="_blank" class="addthis_button_email" href="javascript:;">
            <img alt="email" src="/images/img_social/icon-share-email.png" />
        </a>
    </section>

    <section>
        <?php if ($ra_page[0]->Imagine !== "") echo "<p align=\"center\"><img class=\"news_article_main_image\" src=\"../images/stiri/"$ra_page[0]->Imagine ."\" alt=\"".$ra_page[0]->Titlu."\" onerror=\"this.src='../images/stiri/noimg.jpg';\" vspace=\"10\" hspace=\"10\"></p>"?>
        <?= $page?>
    </section>
</main>
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586