
{include file="header.html"}

<div id="contents">

<div id="pankuzu">
  <ul>
    <li><a href="{$dirName}/index.php">トップ</a></li>
    <li>&nbsp;&gt;&nbsp;<a href="{$smarty.const.URL_ROOT}{$dirName}/?action=customer_mypage">マイページ</a></li>
    <li class="last">&nbsp;&gt;&nbsp;タグ{$action.pagetype}</li>
  </ul>
</div>

<!--End of pankuzu-->

<div id="etc">
  <h3>タグ{$action.pagetype}</h3>

  <form action="{$scriptName}" method="POST">
  <input type="hidden" name="ac" value="{$action.ac}">
  <input type="hidden" name="cd" value="{$action.cd}">


  <table border="0" cellspacing="0" cellpadding="0" class="entryform">

    <tr>
      <td rowspan="4">
        <a href="{$smarty.const.URL_ROOT}{$dirName}/item_{$action.itemdata.0.itemcd}.html#item-title" title="{$action.itemdata.0.itemnm}"><img src="img.php?c={$action.itemdata.0.itemcd}&s=M&d=1" width="147" border="0"></a>
      </td>
      <td colspan="2" class="constatation2"><h4>{$action.itemdata.0.itemnm}</h4></td>
    </tr>
   <tr>
      <th>タグ</th>
      <td>
        <input id="inputtag" name="tags" type="text" size="30" value="{if $action.tags <> ""}{$action.tags}{else}{foreach from=$action.itemmytag item=tag}{$tag.tagnm} {/foreach}{/if}">
      </td>
    </tr>
    <tr>
      <th>使用したタグ</th>
      <td>
{foreach name=n from=$action.myalltag item=tag}
        <a onclick="clickTag('{$tag.tagnm}');">{$tag.tagnm}</a>&nbsp;&nbsp;
{/foreach}
      </td>
    </tr>
    <tr>
      <th>その他のタグ</th>
      <td>
{foreach name=n from=$action.itemanytag item=tag}
        <a onclick="clickTag('{$tag.tagnm}');">{$tag.tagnm}</a>&nbsp;&nbsp; 
{/foreach}
      </td>
    </tr>
    <tr>
      <td class="non">&nbsp;</td>
      <td class="constatation2" colspan="2"><p>入力の内容でよろしければ、確認ボタンを押してください。</p>
        <p><input type="image" src="img/constatation_btn.gif " name="dispatch_customer_itemattribute_tag_confirm" value="確認"></p>
      </td>
    </tr>
        <tr>
      <td class="non">&nbsp;</td>
      <td class="constatation" colspan="2">
{if $action.ac == "item"}
        <p><input type="image" src="img/back_btn.gif" value="戻る" onclick="location.href='{$smarty.const.URL_ROOT}{$dirName}/item_{$action.itemdata.0.itemcd}.html#item-title'; return false;"></p>
{else}
        <p><input type="image" src="img/back_btn.gif" name="dispatch_customer_itemattribute_taglist" value="戻る"></p>
{/if} 
      </td>
    </tr>
  </table>
  </form>

</div>
</div> 

{include file="footer.html"}
