Advertisement
Guest User

Untitled

a guest
Jan 18th, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Smarty 3.45 KB | None | 0 0
  1. fork    download copy
  2. <h1>Погода в посёлке на сегодня и 13 дней вперед</h1>
  3.     <div class="content_text">  <div style="padding:0px;"></div>
  4.     <div style="padding-bottom:12px;border: 0px solid #ccc;  color: #999;text-align:right;font-size:18px;">
  5.         {assign var='today' value=$items[0]}
  6.         {assign var='tomorrow' value=$items[1]}
  7.         {assign var='today_temp' value=$today['temp']['max']}
  8.         {assign var='today_pressure' value=$today['pressure']}
  9.         {assign var='today_humidity' value=$today['humidity']}
  10.         {assign var='tomorrow_pressure' value=$tomorrow['pressure']}
  11.  
  12.         сейчас
  13.         {if $today_temp lt -10}
  14.             очень холодно
  15.         {elseif $today_temp gt -9 and $today_temp lt 10}
  16.             холодно
  17.         {elseif $today_temp gt 11 and $today_temp lt 15}
  18.             прохладно
  19.         {elseif $today_temp gt 16 and $today_temo lt 20}
  20.             тепло
  21.         {elseif $today_temp gt 21 and $today_temp lt 30}
  22.             жарко
  23.         {elseif $today_temp gt 31}
  24.             очень жарко
  25.         {/if}
  26.         , давление
  27.             {if $tomorrow_pressure gt $today_pressure}
  28.                 растет
  29.             {elseif $tomorrow_pressure eq $today_pressure}
  30.                 не растет
  31.             {else}
  32.                 понижается
  33.             {/if}
  34.         , влажность
  35.             {if today_humidity gt 84}
  36.                 высокая
  37.             {else}
  38.                 низкая
  39.             {/if}
  40.     </div>
  41.  
  42.  
  43.                         <link rel="stylesheet" type="text/css" href="/templates/default/style.css">
  44.  
  45. <div class="telo">   
  46.  
  47.         <style>
  48.         .ig-weather{
  49.             font-size: 12px;
  50.             font-family: 'Tahoma', sans-serif;
  51.             color: #ccc;
  52.             margin-left: 50px;
  53.         }
  54.         .ig-weather td{
  55.             padding:5px;
  56.         }
  57.         .ig-weather .ig-big-title{
  58.             font-size:19px;  font-family: 'Tahoma', sans-serif;
  59.             color: #333;
  60.         }
  61.         .ig-weather .ig-orange{
  62.             font-size: 12px;  font-family: 'Tahoma', sans-serif;
  63.             color: #D78438;
  64.         }
  65.     </style>
  66.  
  67.         <table class="ig-weather">
  68.         <tbody>
  69.  
  70.     {foreach $weather as $items}
  71.  
  72.         <tr>
  73.             <td class="ig-big-title" style="width: 68px;padding-bottom:3px;">
  74.                 {$items["temp"]["max"]} &#8451;
  75.             </td>
  76.             <td style="width: 67px;">
  77.                 <img src="http://o...content-available-to-author-only...p.org/img/w/{$items["weather"][0]["icon"]}.png"/>
  78.             </td>
  79.             <td style="width: 77px;">
  80.                 утро <span style="color:#333;">{$items["temp"]["morn"]} &#8451;</span>
  81.             </td>
  82.             <td style="width: 77px;">
  83.                 день <span style="color:#333;">{$items["temp"]['day']} &#8451;</span>
  84.             </td>
  85.             <td style="width: 77px;">
  86.                 вечер <span style="color:#333;">{$items["temp"]["eve"]} &#8451;</span>
  87.             </td>
  88.             <td style="width: 77px;">
  89.                 ночь <span style="color:#333;">{$items["temp"]["night"]} &#8451;</span>
  90.             </td>
  91.             <td class="ig-orange" style="width: 89px;font-size: 11px;">
  92.                 {$items["dt"]}
  93.             </td>
  94.  
  95.         </tr>
  96. <tr style="border-bottom: 1px solid #ccc;">
  97.     <td colspan="3" style="border: 0px solid #ccc;" align="right">
  98.         ветер: <span style="color:#333;"> {$items["speed"]} м&#8260;с</span>
  99.     </td>
  100.  
  101.     <td colspan="2" style="border: 0px solid #ccc;">
  102.         {if $items["humidity"]}влажность: <span style="color:#333;">{$items["humidity"]}%</span>{/if}
  103.     </td>
  104.  
  105.     <td colspan="2" style="border: 0px solid #ccc;padding-bottom:26px;width: 437px;">
  106.         давление: <span style="color:#333;">{$items.pressure} мм. рт. ст.</span>
  107.     </td>
  108. </tr>
  109.  
  110.  
  111.  
  112.     {/foreach}
  113.         <tbody>
  114.     </table>
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.     </div>
  122.     </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement