{include file="admin/header.html"}
{include file="admin/gnavi.html"}

<div id="container">

{include file="admin/menu/submenu_portal.html"}

<!-- ↓段組み メイン側 -->
<div id="main">

<h3>お知らせ</h3>

<!-- ↓エラーメッセージ -->
{errorList->getMessages assign=errmsg}
{if $errmsg}
<div class="error">
<ul class="alert">
  {foreach from=$errmsg item=msg}
  <li>{$msg|escape}</li>
  {/foreach}
</ul>
</div>
{/if}
<!-- ↑エラーメッセージ -->

<!--smartyの変数設定 -->
{assign var="date" value=$action.date}
{assign var="newstitle" value=$action.newstitle}
{assign var="body" value=$action.body}
{assign var="releasediv" value=$action.releasediv}
{assign var="kubun" value=$action.kubun}
{if $kubun==2}
    {assign var="newscd" value=$action.newscd}
    {assign var="updcnt" value=$action.updcnt}
{/if}

  <table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="center">
  本当に{if $kubun=="1"}追加{elseif $kubun=="2"}変更{/if}しますか?
	</td>
  </tr>
 </table>

<table border="0" cellspacing="0" cellpadding="0" class="hyou">
<tr>
    <th>お知らせ日</th>
    <td>{$date}</td>
</tr><tr>
    <th>タイトル</th>
    <td>{$newstitle}</td>
</tr><tr>
    <th>本文</th>
    <td>{$body}</td>
</tr><tr>
    <th>公開区分</th>
    <td>{if $releasediv == 1}公開{else}未公開{/if}</td>
</tr>
</table>


<form action="{$scriptName}" method="POST" >
<input type="hidden" name="action" value="admin_portalmanage_news_complete">
<input type="hidden" name="date" value="{$date}">
<input type="hidden" name="newstitle" value="{$newstitle}">
<input type="hidden" name="body" value="{$body}">
<input type="hidden" name="releasediv" value="{$releasediv}">
<input type="hidden" name="kubun" value="{$kubun}">
<input type="hidden" name="from"       value="{$action.from}">
{if $kubun==2}
<input type="hidden" name="newscd" value="{$newscd}">
<input type="hidden" name="updcnt" value="{$updcnt}">
{/if}
<input type="hidden" name="{$token.name}" value="{$token.value}">
<input type="hidden" name="change" value="1">

  <table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="right">
<input type="submit" name="dispatch_admin_portalmanage_news_complete" value="{if $kubun=="1"}追加{elseif $kubun=="2"}変更{/if}">
<input type="submit" name="dispatch_admin_portalmanage_news_regist"value="前に戻る">
   </td>
  </tr>
 </table>

</form>

<div class="pagetop" title="ページトップへ"><a href="#top">ページトップへ</a></div>

</div>
<!--End of main-->

<div class="cr"></div>
</div>
<!--End of container-->

{include file="admin/footer.html"}
