{*==================================================================================*}
{*=========         Календарь- подключается к модулю "Календарь"      ==============*}
{*==================================================================================*}
<link type="text/css" href="/modules/mod_content_calendar/css/calendar.css" rel="stylesheet">
<script type="text/javascript" src="/modules/mod_content_calendar/js/calendar.js" ></script>
<div id="cal_box">

<table border="1px" cellspacing="0" cellpadding="0" class="calendar" style="width:{$cfg.is_width}px; height:{$cfg.is_height}px;">
  <tr>
    <!-- название месяца и стрелки перехода-->
    <td colspan="8" align="center" class="title">
<a href="#" onclick="getMonthCalendar('{$calendar.last_yahr_date}', '{$module_id}'); return false;" style="text-decoration:none;"><b> <<  </b> </a>

      <a href="#" onclick="getMonthCalendar('{$calendar.last_month_date}', '{$module_id}'); return false;" title="{$LANG.LAST_MONTH}" style="text-decoration:none;"><b>  <  </b></a>
      {$calendar.month.title} {$calendar.yahr} 
{if $calendar.daty<$today}

      <a href="#" onclick="getMonthCalendar('{$calendar.next_month_date}', '{$module_id}'); return false;" title="{$LANG.NEXT_MONTH}" style="text-decoration:none;"> > </a>
{else} > 
{/if}
{if $calendar.yahr<$tody}
<a href="#" onclick="getMonthCalendar('{$calendar.next_yahr_date}', '{$module_id}'); return false;"  style="text-decoration:none;">  >> </a>
{/if}
    </td>
  </tr>
    <!-- дни недели-->
    {foreach key=n item=week_day from=$calendar.week_days}
       <td class="title">
            {if $n == 5 || $n == 6}<font color="red">{/if}

          {$week_day}
            {if $n == 5 || $n == 6}</font>{/if}

       </td>
    {/foreach}
  </tr>
  <!--  перебираем недели  -->
  {foreach key=y item=row from=$calendar.days}
  <tr>
  <!-- дни недели -->
  {foreach key=x item=day from=$row}
      <td {if $x == 5 || $x == 6} style="color:red"{/if} class="{if $day.date == $date}nextday{elseif $day.cou >'0'}today{else}lastday{/if}" >

            {if $day.cou>'0'}<a href="{$day.url}" style="font-size:larger;" title="{$day.cou} {$day.titl}">{/if}{$day.num}{$day.$daday}{if $day.cou>'0'}</a>{/if}

      </td>
  {/foreach}
  </tr>
  {/foreach}
</table>
</div>