2010年2月26日金曜日

index.phpからビュー処理のindex.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=euc-jp" />
<title>{$settings.maintitle}</title>
<link rel="stylesheet" href="styles-site.css" type="text/css" />
</head>
<body>
<div id="container">
<div id="banner">
<h1><a href="index.php" accesskey="1">{$settings.maintitle}</a></h1>
<h2>{$settings.subtitle}</h2>
</div>
<div id="center">
<div class="content">
{section name=tloop loop=$topics max=$settings.maxtopics} /* スマーティで一ページの表示の件数だけループする */
{if $topics[tloop].title != ''}
<h2>{$topics[tloop].postdatef}</h2>
<h3 id="{$topics[tloop].topicid}">{$topics[tloop].title}</h3>
{$topics[tloop].bodyf}
<p class="posted">投稿者 {$settings.username} : <a href="archives.php?topicid={$topics[tloop].topicid}">{$topics[tloop].posttimef}</a>
| <a href="archives.php?topicid={$topics[tloop].topicid}#comments">コメント ({$topics[tloop].commentcount})</a>   :{$topics[tloop].category}
</p>
{/if}
{/section}
</div>
</div>
<div id="right">
<div class="sidebar">

<!-- <div id="calendar">
<table summary="投稿されたエントリーへのリンク付き月間カレンダー">
<caption>{$calender.datenow}</caption>
<tr>
<th abbr="日曜日">日</th>
<th abbr="月曜日">月</th>
<th abbr="火曜日">火</th>
<th abbr="水曜日">水</th>
<th abbr="木曜日">木</th>
<th abbr="金曜日">金</th>
<th abbr="土曜日">土</th>
</tr>
{$calender.view}
</table>
</div> -->
<h2>検索</h2>
<div class="link-note">
<form method="get" action="search.php">
<input type="hidden" name="IncludeBlogs" value="1" />
<label for="search" accesskey="4">このサイトの検索</label><br />
<input id="keywd" name="keywd" size="20" /><br />
<input type="submit" value="検索" />
</form>
</div>
<div id="categories">
<h2>カテゴリー</h2>
<ul>
{section name=tloop loop=$categorys} /*カテゴリの数だけループ*/
{if $categorys[tloop].category != ''}
<li><a href="cat_archives.php?catid={$categorys[tloop].catid}" title="">{$categorys[tloop].category}</a>
</li>
{/if}
{/section}
</ul>
</div>
<h2>アーカイブ</h2>
<ul>
{section name=tloop loop=$monthly}
<li><a href="monthly_archives.php?year={$monthly[tloop].yyyy}&month={$monthly[tloop].mm}" title="">{$monthly[tloop].datef}</a>
</li>
{/section}
</ul>
<h2>最近のエントリー</h2>
<ul>
{section name=tloop loop=$topics max=$settings.maxtopics}
{if $topics[tloop].title != ''}
<li><a href="archives.php?topicid={$topics[tloop].topicid}">{$topics[tloop].title}</a></li>
{/if}
{/section}
</ul>
</div>
</div>
<div style="clear: both;">&#160;</div>
</div>
</body>
</html>

0 件のコメント:

コメントを投稿