C:\xampp2_not used\htdocs\kptv\ro\astazi_bak.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?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 "<tr><td align=\"center\" height=\"35\" style=\"padding:10px;\">Astazi nu avem evenimente inserate.</td></tr>";
            
    }
        else {
    while (
$row mysql_fetch_array($resultMYSQL_ASSOC)) {        
        
$news .= '
            <tr>
                <td>
                    <table cellpadding="0" cellspacing="0" border="0" summary="" width="100%" style="padding:10px;">
                        <tr>
                            <td '
;
                                
//$news .= '><b>' . $row['YearRO'] . '</b> - ';                                
                                
$news .= '>'.$row['ContentRO'] . '</td>';                        
                                
$news .= '</tr>
                    </table>
                </td>
            </tr>'
;
        
$news .= "<tr><td>&nbsp;</td></tr>";
       }       
                      
            
      
    }
    
       
//mysql_free_result($result);
        
}
    
$title .="";
    
?>





<td valign="top" style="border-right: 1px solid #5D5C5C" width="589">

    <table cellpadding="0" cellspacing="0" border="0" summary="">
        <tr>

            <td bgcolor="#252525" height="23" width="589" class="adr2"><a href="index.php" class="adr2">Home</a> &raquo; Astazi in Muzica</td>
        </tr>
        <tr>
            <td style="padding:10px;">Astazi <?php echo $day " " .$months[$month] . " " date("Y"); ?>&nbsp;</td>
        </tr>                
        
        <?php //echo $news; ?>        
        <?php $pattern '/(\d{4})( -)/i';
                
$replacement '<strong class="yearN">\1</strong> -';
                echo 
preg_replace($pattern$replacement$news);
        
?>
        </div>
    </table>

</td>
x

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