<td rowspan="2" width="300" style="border-left: 1px solid #D7D7D7; border-top: 1px solid #D7D7D7;">
<table width="296" cellpadding="0" cellspacing="0" border="0">
<tr>
<td height="55" class="zagblock">Новый год!</td>
</tr>
<tr valign="top">
<td class="middleblock" align="center" >
<img src="../tiny/upload-files/new_year/krolik2011.jpg" width="90%" /><br />
<script LANGUAGE="javascript">
document.write('<span id="ny_date">До нового года</span>')
function ojidanieNG()
{
var today = new Date();
var BigDay = new Date("January 1, 2011");
var timeLeft = (BigDay.getTime() - today.getTime());
var e_daysLeft = timeLeft / 86400000;
var daysLeft = Math.floor(e_daysLeft);
var e_hrsLeft = (e_daysLeft - daysLeft)*24;
var hrsLeft = Math.floor(e_hrsLeft);
var e_minsLeft = (e_hrsLeft - hrsLeft)*60;
var minsLeft = Math.floor(e_minsLeft);
var seksLeft = Math.floor((e_minsLeft - minsLeft)*60);
if (BigDay.getTime() > today.getTime() )
document.getElementById("ny_date").innerHTML = 'До <font color=red><b>Нового года</b></font>: <b>'+daysLeft+'</b> дн. <b>'+hrsLeft+'</b> час. <b>'+minsLeft+'</b> мин. <b>'+seksLeft+'</b> сек.'
else
document.getElementById("ny_date").innerHTML = '<b>Подзравляем с <font color=red>Новым 2011 годом</font>!!!</b>'
}
setInterval("ojidanieNG()", 50)
</script>
</td>
</tr>
<tr valign="top">
<td height="14" class="bottomblock"> </td>
</tr>
</table>
<? include ("blocks/next.php"); ?>
<? include ("blocks/4itaemue.php"); ?>
<table width="296" cellpadding="0" cellspacing="0" border="0">
<tr>
<td height="55" class="zagblock">Свежая Информация</td>
</tr>
<tr valign="top">
<td class="middleblock" >
<?
$date7 = date('Y-m-d H:i:s', strtotime('now -7 days'));
$colcom2 = mysql_query ("select * from strani4ki WHERE date>'$date7' ");
$num_rows2 = mysql_num_rows($colcom2);
echo "За неделю добавлено: $num_rows2 страниц.<hr>Последние 10 добавленых страничек:<hr>";
$news_4it2 = mysql_query ("SELECT * from strani4ki ORDER by id DESC limit 10");
while($row_4it2 = mysql_fetch_assoc($news_4it2))
{
$news_4it3 = mysql_query ("SELECT * from razdelu where id='$row_4it2[razdel]' ");
$row_4it3 = mysql_fetch_assoc($news_4it3);
echo "<a href='/page.php?page=$row_4it2[page]'>$row_4it2[title]</a><br />Раздел: $row_4it3[title]<br /><hr />";
}
?>
</td>
</tr>
<tr valign="top">
<td height="14" class="bottomblock"> </td>
</tr>
</table>
<table width="296" cellpadding="0" cellspacing="0" border="0">
<tr>
<td height="55" class="zagblock">Альбомы</td>
</tr>
<tr valign="top">
<td class="middleblock">
<div align="center">
<?php
$result23 = mysql_query("SELECT * FROM alboms order by id desc",$db);
while ($myrow23 = mysql_fetch_array($result23))
{
$page = $myrow23["page"];
$img = $myrow23["img"];
$title = $myrow23["title"];
echo "
<div style='float:left; width:78;'>
<a href='albom.php?albom=$page' target='_blank' title='$title'><img src='$img' alt='$title' width='70' height='50' class='news' style='bakcground-color:#ffffff;' /></a>
</div>
";
}
?>
</div>
</td>
</tr>
<tr valign="top">
<td height="14" class="bottomblock"> </td>
</tr>
</table>
<table width="296" cellpadding="0" cellspacing="0" border="0">
<tr>
<td height="55" class="zagblock">Теги</td>
</tr>
<tr valign="top">
<td class="middleblock">
<script type="text/javascript" src="swfobject.js"></script>
<div id="tags">
<?php
$tags = '';
echo '<tags>';
$tegi = mysql_query ("SELECT * from tags limit 20");
while($tegi_otvet = mysql_fetch_array($tegi))
{
$tag = $tegi_otvet['tagr'];
$idte = $tegi_otvet['id'];
$tag = str_replace(chr(208),chr(208).chr(160),$tag); # Р
$tag = str_replace(chr(192),chr(208).chr(144),$tag); # А
$tag = str_replace(chr(193),chr(208).chr(145),$tag); # Б
$tag = str_replace(chr(194),chr(208).chr(146),$tag); # В
$tag = str_replace(chr(195),chr(208).chr(147),$tag); # Г
$tag = str_replace(chr(196),chr(208).chr(148),$tag); # Д
$tag = str_replace(chr(197),chr(208).chr(149),$tag); # Е
$tag = str_replace(chr(168),chr(208).chr(129),$tag); # Ё
$tag = str_replace(chr(198),chr(208).chr(150),$tag); # Ж
$tag = str_replace(chr(199),chr(208).chr(151),$tag); # З
$tag = str_replace(chr(200),chr(208).chr(152),$tag); # И
$tag = str_replace(chr(201),chr(208).chr(153),$tag); # Й
$tag = str_replace(chr(202),chr(208).chr(154),$tag); # К
$tag = str_replace(chr(203),chr(208).chr(155),$tag); # Л
$tag = str_replace(chr(204),chr(208).chr(156),$tag); # М
$tag = str_replace(chr(205),chr(208).chr(157),$tag); # Н
$tag = str_replace(chr(206),chr(208).chr(158),$tag); # О
$tag = str_replace(chr(207),chr(208).chr(159),$tag); # П
$tag = str_replace(chr(209),chr(208).chr(161),$tag); # С
$tag = str_replace(chr(210),chr(208).chr(162),$tag); # Т
$tag = str_replace(chr(211),chr(208).chr(163),$tag); # У
$tag = str_replace(chr(212),chr(208).chr(164),$tag); # Ф
$tag = str_replace(chr(213),chr(208).chr(165),$tag); # Х
$tag = str_replace(chr(214),chr(208).chr(166),$tag); # Ц
$tag = str_replace(chr(215),chr(208).chr(167),$tag); # Ч
$tag = str_replace(chr(216),chr(208).chr(168),$tag); # Ш
$tag = str_replace(chr(217),chr(208).chr(169),$tag); # Щ
$tag = str_replace(chr(218),chr(208).chr(170),$tag); # Ъ
$tag = str_replace(chr(219),chr(208).chr(171),$tag); # Ы
$tag = str_replace(chr(220),chr(208).chr(172),$tag); # Ь
$tag = str_replace(chr(221),chr(208).chr(173),$tag); # Э
$tag = str_replace(chr(222),chr(208).chr(174),$tag); # Ю
$tag = str_replace(chr(223),chr(208).chr(175),$tag); # Я
$tag = str_replace(chr(224),chr(208).chr(176),$tag); # а
$tag = str_replace(chr(225),chr(208).chr(177),$tag); # б
$tag = str_replace(chr(226),chr(208).chr(178),$tag); # в
$tag = str_replace(chr(227),chr(208).chr(179),$tag); # г
$tag = str_replace(chr(228),chr(208).chr(180),$tag); # д
$tag = str_replace(chr(229),chr(208).chr(181),$tag); # е
$tag = str_replace(chr(184),chr(209).chr(145),$tag); # ё
$tag = str_replace(chr(230),chr(208).chr(182),$tag); # ж
$tag = str_replace(chr(231),chr(208).chr(183),$tag); # з
$tag = str_replace(chr(232),chr(208).chr(184),$tag); # и
$tag = str_replace(chr(233),chr(208).chr(185),$tag); # й
$tag = str_replace(chr(234),chr(208).chr(186),$tag); # к
$tag = str_replace(chr(235),chr(208).chr(187),$tag); # л
$tag = str_replace(chr(236),chr(208).chr(188),$tag); # м
$tag = str_replace(chr(237),chr(208).chr(189),$tag); # н
$tag = str_replace(chr(238),chr(208).chr(190),$tag); # о
$tag = str_replace(chr(239),chr(208).chr(191),$tag); # п
$tag = str_replace(chr(240),chr(209).chr(128),$tag); # р
$tag = str_replace(chr(241),chr(209).chr(129),$tag); # с
$tag = str_replace(chr(242),chr(209).chr(130),$tag); # т
$tag = str_replace(chr(243),chr(209).chr(131),$tag); # у
$tag = str_replace(chr(244),chr(209).chr(132),$tag); # ф
$tag = str_replace(chr(245),chr(209).chr(133),$tag); # х
$tag = str_replace(chr(246),chr(209).chr(134),$tag); # ц
$tag = str_replace(chr(247),chr(209).chr(135),$tag); # ч
$tag = str_replace(chr(248),chr(209).chr(136),$tag); # ш
$tag = str_replace(chr(249),chr(209).chr(137),$tag); # щ
$tag = str_replace(chr(250),chr(209).chr(138),$tag); # ъ
$tag = str_replace(chr(251),chr(209).chr(139),$tag); # ы
$tag = str_replace(chr(252),chr(209).chr(140),$tag); # ь
$tag = str_replace(chr(253),chr(209).chr(141),$tag); # э
$tag = str_replace(chr(254),chr(209).chr(142),$tag); # ю
$tag = str_replace(chr(255),chr(209).chr(143),$tag); # я
$tags .= '<a href="'.$idte.'" style="font-size: 15pt">'.$tag.'</a>';
}
echo '</tags>';
?>
Для корректного отображения этого элемента вам необходимо установить FlashPlayer и включить в браузере Java Script.
<script type="text/javascript">
var rnumber = Math.floor(Math.random()*9999999);
var widget_so = new SWFObject("tagcloud.swf?r="+rnumber, "tagcloudflash", "260", "260", "9", "#ffffff");
widget_so.addParam("allowScriptAccess", "always");widget_so.addVariable("tcolor", "0x333333");
widget_so.addVariable("tspeed", "115");
widget_so.addVariable("distr", "true");
widget_so.addVariable("mode", "tags");
widget_so.addVariable("tagcloud", "<?php echo '<tags>'; echo urlencode($tags); echo '</tags>'; ?>");
widget_so.write("tags");</script>
</div>
</td>
</tr>
<tr valign="top">
<td height="14" class="bottomblock"> </td>
</tr>
</table>
<? include ("blocks/lust_com.php"); ?>
</td>
|