C:\xampp\htdocs\kptv2\ro\astazi.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    
    
require_once($LIBPATH "utilfunc.php");
    require_once(
"../conf_/siteconf_.php");
    require_once(
"../admin/dbconn.php");
    if(
$dbConn) {
        
            
            
$day date("j");
            
$month date("n");

            
$sql "SELECT * FROM today WHERE DayRO = ".$day." AND MonthRO = ".$month." ORDER BY YearRO";    
        
                
        
$result = @mysql_query($sql);    
        
$numnow_rows mysql_num_rows($result);
        

    
$news "";
    if (
$numnow_rows == 0)    {
        
            
$news "<div>Astazi nu avem evenimente inserate.</div>";
            
    }
        else {
    while (
$row mysql_fetch_array($resultMYSQL_ASSOC)) {        
        
$news .= '
            <div>
                ' 
$row['ContentRO'] . '
            </div>'
;
       }
    }
    
       
//mysql_free_result($result);
        
}
    
$title .="";
    
?>


<main class="page">
    <section class="adr2 breadcrumbs"><a href="index.php" class="adr2">Home</a> &raquo; Astazi in Muzica</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 id="music_events">
        <h1>Astazi, <?php echo $day " " .$months[$month] . " " date("Y"); ?></h1>
        <?php $pattern '/(\d{4})( -)/i';
            
$replacement '<strong class="yearN">\1</strong> -';
            echo 
preg_replace($pattern$replacement$news);
        
?>
    </section>
</main>
x

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