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
76
77
|
<?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($result, MYSQL_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> </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> » Astazi in Muzica</td> </tr> <tr> <td style="padding:10px;"><!-- Go to www.addthis.com personalizat --> <div class="addthis-social-media" align="center"><a title="facebook" class="addthis_button_facebook" href="javascript:;"><img width="150" height="35" border="0" alt="Facebook" src="/images/img_social/icon-share-fb.png" /></a> <a title="twitter" class="addthis_button_twitter" href="javascript:;"><img width="150" height="35" border="0" alt="Twitter" src="/images/img_social/icon-share-twitter.png" /></a> <a title="email" target="_blank" class="addthis_button_email" href="javascript:;"><img width="150" height="35" border="0" alt="email" src="/images/img_social/icon-share-email.png" /> </a> </div><span style="font-weight:bold; font-size: 120%;" ><br/><cite>Astazi, <?php echo $day . " " .$months[$month] . " " . date("Y"); ?></span></cite> <br> </td> </tr> <div> <?php //echo $news; ?> <?php $pattern = '/(\d{4})( -)/i'; $replacement = '<strong class="yearN">\1</strong> -'; echo preg_replace($pattern, $replacement, $news); ?> </div> </table>
</td>
|