<?php /* Smarty version 2.6.12, created on 2006-11-24 11:16:07
         compiled from db:news_index.html */ ?>
<?php if ($this->_tpl_vars['displaynav'] == true): ?>
  <div style="text-align: center;">
    <form name="form1" action="index.php" method="get">
    <?php echo $this->_tpl_vars['topic_select']; ?>
 <select name="storynum"><?php echo $this->_tpl_vars['storynum_options']; ?>
</select> <input type="submit" value="<?php echo $this->_tpl_vars['lang_go']; ?>
" /></form>
  </div>
<?php endif; ?>

<div style="padding: 15px 0;">
	<table border="0" cellspacing="0" cellpadding="0">
		<tr bgcolor="#2b8200">
			<td><img src="http://test-xoops.ec-cube.net/themes/default/img/main/title_left_top.gif" width="17" height="12" alt="" border="0"></td>
			<td style="width:100%;"></td>
			<td align="left"><img src="http://test-xoops.ec-cube.net/themes/default/img/main/title_right_top.gif" width="17" height="12" alt="" border="0"></td>
		</tr>
		<tr>
			<td bgcolor="#2b8200" colspan="3">
			<table border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td style="padding: 0 0 0 17px;"><img src="http://test-xoops.ec-cube.net/themes/default/img/main/title_news.gif" width="129" height="22" alt="ニュース一覧" ></td>
				</tr>
			</table>
			</td>
		</tr>
		<tr bgcolor="#2b8200">
			<td><img src="http://test-xoops.ec-cube.net/themes/default/img/main/title_left_bottom.gif" width="17" height="12" alt="" border="0"></td>
			<td style="width:100%;"></td>
			<td align="left"><img src="http://test-xoops.ec-cube.net/themes/default/img/main/title_right_bottom.gif" width="17" height="12" alt="" border="0"></td>
		</tr>
	</table>
	
	<!-- start news item loop -->
	<?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['stories']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
	  <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "db:news_item.html", 'smarty_include_vars' => array('story' => $this->_tpl_vars['stories'][$this->_sections['i']['index']])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
	  <br />
	<?php endfor; endif; ?>
	<!-- end news item loop -->

	<div style="clear: both;"></div> 
</div>

<!-- 以下イベント処理は表示しない -->