All pastes #1224760 Raw Edit

Miscellany

public text v1 · immutable
#1224760 ·published 2008-10-10 18:28 UTC
rendered paste body
{if $gPage.sFile}{assign var="sPageFile" value=$gPage.sFile}{/if}{if !isset($blank)}<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>

<head>

<title>{include file="Small/Title.tpl"}</title>

<meta name="description" content="{include file="Small/Desc.tpl"}" />
<meta name="keywords" content="{include file="Small/Keywords.tpl"}" />
<meta name="resourse-type" content="document" />
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />

<script src="{$sScriptsDir}Main.js"></script>
{/if}
<link href="{$sCSSDir}Head/Common.css"    rel="stylesheet" type="text/css" />
<link href="{$sCSSDir}Head/Main.css"      rel="stylesheet" type="text/css" />
<link href="{$sCSSDir}Head/FormEdit.css"  rel="stylesheet" type="text/css" />
<link href="{$sCSSDir}Head/SimpTable.css" rel="stylesheet" type="text/css" />
{if !isset($blank)}

</head>

<body><div id="Main" align="center"><div id="DocBody">

<div id="Head"><a href="{$sRootUrl}"><img src="{$sImagesDir}Head.jpg"/></a></div>

<table cellpadding="0" cellspacing="0" class="Main"><tr>

  <td class="PaneLeft">
  <div style='200px; height: 250px; text-align: left; margin: 20px 10px 30px; background-image: url({$sImagesDir}menuBack.gif); background-repeat: no-repeat;'><br />
{assign var="nLevel" value=0}
{foreach from=$gSiteTree item="Page" key="nPage"}
{assign var="nNext" value=$nPage+1}
{assign var="sNext" value="LeftSubMenu$nNext"}
{assign var="sMenu" value="LeftSubMenu$nPage"}
{if $Page.nSel && $Page.nType == 0}
      <div style="margin-left: 55px; {if $Page.nLevel != 0}margin-top: 2px; margin-bottom: 2px{else}margin-top: 0px; margin-bottom: 0px{/if}"><br />
        <img src="{$sImagesDir}menu.jpg"><nobr{if $Page.nLevel != 0} style="{if $gnPage != $nPage}font-weight: normal;{/if}"{else} style="text-decoration: none"{/if}>
<a href="{if $Page.sHref}{$Page.sHref}{else}{$sRootUrl}{$Page.sPath}{$sPathSfx}{/if}" class="MenuItem{if $gnPage == $nPage}Active{/if}">{$Page.sName}</a>
        </nobr>
      </div>
{/if}
{if $gSiteTree.$nNext && $gSiteTree.$nNext.nLevel > $Page.nLevel}
  <div style="margin-left: 15px; display: {if strpos($gPage.sPath, $Page.sPath) === 0}block{else}none{/if}" id="LeftSubMenu{$nPage}">
{/if}
{if $gSiteTree.$nNext && $gSiteTree.$nNext.nLevel < $Page.nLevel}{assign var="nSub" value=$Page.nLevel-$gSiteTree.$nNext.nLevel}
{section name="Sec" loop=$nSub}
  </div>
{/section}
{/if}
{/foreach}
  </div><br /><br /><br /><br />
  <div style='width: 100%; text-align: center'>
  <strong>+7 (905) 697-22-45</strong><br />
  <a href='mailto:info@showdao.ru'><strong>info@showdao.ru</strong></a>
  <br /><br />
<!--LiveInternet counter--><script type="text/javascript"><!--
document.write("<a href='http://www.liveinternet.ru/click' "+
"target=_blank><img src='http://counter.yadro.ru/hit?t26.5;r"+
escape(document.referrer)+((typeof(screen)=="undefined")?"":
";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth?
screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+
";"+Math.random()+
"' alt='' title='LiveInternet:    "+
" ' "+
"border=0 width=88 height=15><\/a>")//--></script><!--/LiveInternet-->


  </div>
  </td>

  <td class="Cells"><img src="{$sImagesDir}Cell.gif" /></td>

  <td class="Content">

{if $gPage.nImageId && $gPage.sFile != 'gallery' && $gPage.sFile != 'shop'}
    <img src="{$sFormsDir}file.php?i={$gPage.nImageId}" / align="left" style="margin: 0px 10px 10px 0px">
{/if}

{if $gPage.nShowTitle || !isset($gPage.nShowTitle)}
    <h1>{$gPage.sTitle}</h1>
{/if}

{include file="Manage/path.tpl"}

{/if}
{if $_SESSION.sMessageRpl}
    <span class="Message">{$_SESSION.sMessageRpl}</span>
{else}
{if file_exists("$sTemplatesDir./Content/$sPageFile.tpl")}
{include file="Content/$sPageFile.tpl"}
{else}
{include file="Head/content.tpl"}
{/if}
{/if}

{if $gPathEx.0.sPath == "menu"}
{assign var="nFlag" value=0}
{foreach from=$gSiteTree item="Page" key="nPage"}
{if $Page.sPath == $gPathEx.0.sPath}{assign var="nFlag" value=1}
{elseif $nFlag && $Page.nLevel == 1 && $Page.nSel}
          <h5>{$Page.sName}</h5>
{elseif $nFlag && $Page.nLevel == 2 && $Page.nSel}
          <a href="{$sRootUrl}{$Page.sPath}{$sPathSfx}" style="{if $Page.sPath == $gPage.sPath} color: #3a4ab9;{/if} font-size: 14px;">{$Page.sName}</a><br/>
{elseif $nFlag && $Page.nSel}{assign var="nFlag" value=0}{/if}
{/foreach}
{/if}

{if !isset($blank)}
  </td>

  <td class="Cells"><img src="{$sImagesDir}Cell.gif" /></td>

  <td class="PaneLeft">
    <div style="padding-top: 15px" align="center"><a href="{$sRootUrl}teach/">
      <img src="{$sImagesDir}teach.gif" style="border: 0px solid #ebe5c2; margin: 2px">
    </a></div>
    <div style="padding-top: 15px" align="center"><a href="{$sRootUrl}project/">
      <img src="{$sImagesDir}sbor.gif" style="border: 0px solid #ebe5c2; margin: 2px">
    </a></div>
    <div style="padding-top: 15px" align="center"><a href="">
      <img src="{$sImagesDir}rubr.gif" style="border: 0px solid #ebe5c2; margin: 2px">
    </a></div>

{$sPaneRightText}

  </td>

</table>

</div></div></body>

</html>
{/if}