{include file="header.html"}

<script language="JavaScript">
{literal}
<!-- 
function submitForm(itemcd, stockcd, structcd, tagname, tagname2, updcnt) 
{
	document.formlist.itemcd.value   = itemcd;
	document.formlist.stockcd.value  = stockcd;
	document.formlist.structcd.value = structcd;
	document.formlist.sellingprice.value = tagname.value;
	document.formlist.souryouprc.value = tagname2.value;
	document.formlist.updcnt.value   = updcnt;

	//val = scnm+"?action=seller_itemexhibit_now_updconfirm&itemcd="+itemcd+"&stockcd="+stockcd+"&structcd="+structcd+"&price="+tagname.value+"&updcnt="+updcnt;
	//alert(val);
	document.formlist.submit();
	return false;
} 
// -->
{/literal}
</script>

<!--↓コンテンツ-->
<div id="contents">

<div id="pankuzu">
<ul>
<li><a href="{$dirName}/index.php">トップ</a></li>
<li>&nbsp;&gt;&nbsp;<a href="{$dirName}/?action=seller_mypage">出品機能</a></li>
<li class="last">&nbsp;&gt;&nbsp;出品中のダウンロード商品の確認更新</li>
</ul>
</div><!--End of pankuzu-->


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


<div id="etc">
  <h3>出品中のダウンロード商品の確認更新</h3>

{action->getList_check assign=list_check}

  <div class="pages">
    <h4>{$action.totalpages}ページ中{$action.nowpages}ページ目を表示{if $action.rc > 0}（合計{$action.rc}商品）{/if}</h4>
{action->getLink assign=link}
{if $link.pages!=""}
    <ul class="page1">
      {$link.pages}
    </ul>
    <ul class="page2">
      {if $link.back!=''}<li class="first">{$link.back}</li> <li>{$link.next}</li>{else}<li class="first">{$link.next}</li>{/if}
    </ul>
{/if}
  </div>
  <!--End of pages-->


<!--↓並び替え -->
{if $action.sort=='exdate'}
{assign var="s_exdate" value='-exdate'}
{assign var="s_c1" value=" on up"}
{elseif $action.sort=='-exdate'}
{assign var="s_exdate" value='exdate'}
{assign var="s_c1" value=" on down"}
{else}
{assign var="s_exdate" value='exdate'}
{/if}
{if $action.sort=='title'}
{assign var="s_title" value='-title'}
{assign var="s_c2" value=" on up"}
{elseif $action.sort=='-title'}
{assign var="s_title" value='title'}
{assign var="s_c2" value=" on down"}
{else}
{assign var="s_title" value='title'}
{/if}

  <div class="disp">
    <form action="{$scriptName}" method="GET">
    <ul class="sort">
      <li class="title">並べ替え&nbsp;：</li>
      <li class="first{if $s_c1!=""}{$s_c1}{/if}">
        <a href="{$scriptName}?action=seller_itemexhibit_now_downloadlist&listsize={$action.listsize}&sort={$s_exdate}">出品順</a>
      </li>
      <li {if $s_c2!=""}class="{$s_c2}"{/if}>
        <a href="{$scriptName}?action=seller_itemexhibit_now_downloadlist&listsize={$action.listsize}&sort={$s_title}">商品名</a>
      </li>
      <li class="first">
        <select name="listsize">
        <option value="10">表示件数</option>
        <option value="10" {if $action.listsize == 10}SELECTED{/if}>10</option>
        <option value="20" {if $action.listsize == 20}SELECTED{/if}>20</option>
        <option value="50" {if $action.listsize == 50}SELECTED{/if}>50</option>
        </select>
      </li>
      <li class="first">
        <input type="hidden" name="action" value="seller_itemexhibit_now_downloadlist">
        <input type="hidden" name="sort" value="{$action.sort}">
        {$extratag}    
        <input type="image" src="img/change_disp_btn.gif" alt="表示切替" />
      </li>
    </ul>
    </form>
  </div>
  <!--End of disp-->

  <form action="{$scriptName}" name="formlist" method="POST">
  <input type="hidden" name="action" value="seller_itemexhibit_now_updconfirm">
  <input type="hidden" name="next" value="updconfirm">
  <input type="hidden" name="itemcd">
  <input type="hidden" name="stockcd">
  <input type="hidden" name="structcd">
  <input type="hidden" name="sellingprice">
  <input type="hidden" name="souryouprc">
  <input type="hidden" name="updcnt">
  <input type="hidden" name="sort" value="{$action.sort}">
  <input type="hidden" name="pageID" value="{$action.pageID}">
  <input type="hidden" name="listsize" value="{$action.listsize}">

  <table border="0" cellspacing="0" cellpadding="0" class="entryform column">
    <tr>
      <th>チェック</th>
      <th>出品番号</th>
      <th>商品名</th>
      <th>出品価格</th>
      <th>更新</th>
    </tr>

{assign var="i" value='0'}
{foreach from=$action.data item=stock}
    <tr>
      <td><input type="checkbox" name="cd[]" value="{$stock.itemcd}|{$stock.structcd}|{$stock.stockcd}"></td>
      <td>{$stock.itemcd}-{$stock.structcd}-{$stock.stockcd}-{$stock.sellercd}</td>
      <td class="itemname"><a href="{$dirName}/item_{$stock.itemcd}-{$stock.structcd}.html">{$stock.itemnm}&nbsp;{action->getVariationNm itemcd=$stock.itemcd structcd=$stock.structcd}</a></td>
      <td><input name="price{$i}" type="text" value="{$stock.sellingprice}" size="5"></td>
      <td>
        <input name="souryou{$i}" type="hidden" value="{$stock.souryouprc}" size="5">
        <input type="image" src="img/cart_update_btn.gif" onClick="submitForm({$stock.itemcd}, {$stock.stockcd}, {$stock.structcd}, price{$i}, souryou{$i}, {$stock.updcnt})" value="更新">
      </td>
    </tr>
{assign var="i" value="`$i+1`"}
{/foreach}

    <tr>
      <td colspan="9" class="constatation2">
        <p>チェックした項目の出品を取りやめますか？</p>
        <input type="image" src="img/delete_btn.gif" name="dispatch_seller_itemexhibit_now_confirm" alt="出品取りやめ" />
      </td>
    </tr>
    <tr>
      <td colspan="9" class="constatation">
        <p>出品機能一覧ページへ戻る</p>
        <a href="{$dirName}/?action=seller_mypage"><img src="img/back_btn.gif" alt="戻る" /></a>
      </td>
    </tr>
  </table>
  </form>


  <div class="pages">
    <h4>{$action.totalpages}ページ中{$action.nowpages}ページ目を表示{if $action.rc > 0}（合計{$action.rc}商品）{/if}</h4>
{action->getLink assign=link}
{if $link.pages!=""}
    <ul class="page1">
      {$link.pages}
    </ul>
    <ul class="page2">
      {if $link.back!=''}<li class="first">{$link.back}</li> <li>{$link.next}</li>{else}<li class="first">{$link.next}</li>{/if}
    </ul>
{/if}
  </div>
  <!--End of pages-->

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

</div>
<!--↑コンテンツ-->

{include file="footer.html"}
