<?xml version="1.0" encoding="UTF-8"?>
{*<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">*}
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Expires" content="Thu, 01 Dec 1994 16:00:00 GMT" />
<meta http-equiv="Content-Style-type" content="text/css" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE11">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

{* css *}
  {include file="./css.tpl"}

{if {$_PRODUCT_ID} == "MENU"}
<title>MENU</title>
{else}
<title>{$_PRODUCT_NAME}</title>
{/if}
</head>
<body pid={$_PRODUCT_NAME}>
  <div class="contents">
    <input id="APP_ROOT" type="hidden" value="{$APP_ROOT}"/>
    <input id="API_URL"  type="hidden" value="{$API_URL}"/>
    <input id="PDF_URL"  type="hidden" value="{$PDF_URL}"/>
    <input id="REP_URL"  type="hidden" value="{$REP_URL}"/>
    <input id="SDDAY"    type="hidden" value="{$_SYSTEM_NAME_EN_SDDAY}"/>

    <head>
      {include file="./menu.tpl"}
    </head>
    <div id="main">
      {include file=$_CONTENT_BODY}
    </div>
  </div>

  {include file="./js.tpl"}

  {if $_CONTENT_JS != ""}
    {include file=$_CONTENT_JS}
  {/if}

  {foreach from=$includeProducts item=pid name=includeProduct}
    <div id="sub">
      <div id="{$pid}Sub" class="sub" style="display:none">
        {include file="../product/{$pid}/templates/index.tpl"}
        {include file="../product/{$pid}/templates/index_js.tpl"}
      </div>
    </div>
  {/foreach}
  <!-- popup -->
  <div id="popup">
    {if $hasPopJan eq "1"}
      {include file="../popup/afm02x/template/afm02x.tpl"}
      {include file="../popup/afm02x1/template/afm02x1.tpl"}
    {/if}
    {if $hasPopCucd eq "1"}
      {include file="../popup/afm03x/template/afm03x.tpl"}
      {include file="../popup/afm03x1/template/afm03x1.tpl"}
    {/if}
    {if $hasPopCuscd eq "1"}
      {include file="../popup/afm032x/template/afm032x.tpl"}
      {if $hasPopCshcd eq ""}
        {include file="../popup/afm036x/template/afm036x.tpl"}
      {/if}
    {/if}
    {if $hasPopCshcd eq "1"}
      {include file="../popup/afm036x/template/afm036x.tpl"}
      {if $hasPopCucd neq "1"}
        {include file="../popup/afm03x/template/afm03x.tpl"}
        {include file="../popup/afm03x1/template/afm03x1.tpl"}
      {/if}
    {/if}
    {if $hasPopCuedi eq "1"}
      {include file="../popup/afm032x1/template/afm032x1.tpl"}
    {/if}
    {if $hasPopRcvdst eq "1"}
      {include file="../popup/afm03cx/template/afm03cx.tpl"}
      {if $hasPopCucd eq ""}
        {include file="../popup/afm03x/template/afm03x.tpl"}
      {/if}
    {/if}
    {if $hasPopMcd eq "1"}
      {include file="../popup/afm04x/template/afm04x.tpl"}
    {/if}
    {if $hasPopKtktcd eq "1"}
      {include file="../popup/afm05x/template/afm05x.tpl"}
    {/if}
    {if $hasPopChgcd eq "1"}
      {include file="../popup/afm08x/template/afm08x.tpl"}
    {/if}
    {if $hasPopScls90 eq "1"}
      {include file="../popup/afm90x/template/afm90x.tpl"}
    {/if}


    {*固有画面用*}
    {if $hasPopAf203x1 eq "1"}  {*受注入力複写画面*}
      {include file="../popup/af203x1/template/af203x1.tpl"}
      {include file="../popup/af203x1/template/af203x1_js.tpl"}
    {/if}
    {if $hasPopAf203x2 eq "1"}  {*受注入力伝票選択画面*}
      {include file="../popup/af203x2/template/af203x2.tpl"}
      {include file="../popup/af203x2/template/af203x2_js.tpl"}
    {/if}
    {if $hasPopAf212x1 eq "1"}  {*発注番号検索*}
      {include file="../popup/af212x1/template/af212x1.tpl"}
      {include file="../popup/af212x1/template/af212x1_js.tpl"}
    {/if}
    {if $hasPopAf215x1 eq "1"}  {*受注入力複写画面*}
      {include file="../popup/af215x1/template/af215x1.tpl"}
      {include file="../popup/af215x1/template/af215x1_js.tpl"}
    {/if}
    {if $hasPopAf222x1 eq "1"}  {*売上/値引伝票検索*}
      {include file="../popup/af222x1/template/af222x1.tpl"}
      {include file="../popup/af222x1/template/af222x1_js.tpl"}
    {/if}
    {if $hasPopAf233x1 eq "1"}  {*仕入/仕入値引伝票検索*}
      {include file="../popup/af233x1/template/af233x1.tpl"}
      {include file="../popup/af233x1/template/af233x1_js.tpl"}
    {/if}
    {if $hasPopAf241x1 eq "1"}  {*得意先返品伝票検索*}
      {include file="../popup/af241x1/template/af241x1.tpl"}
      {include file="../popup/af241x1/template/af241x1_js.tpl"}
    {/if}
    {if $hasPopAf244x1 eq "1"}  {*仕入先返品伝票検索*}
      {include file="../popup/af244x1/template/af244x1.tpl"}
      {include file="../popup/af244x1/template/af244x1_js.tpl"}
    {/if}
    {if $hasPopAf251x1 eq "1"}  {*転送出庫指示伝票検索*}
      {include file="../popup/af251x1/template/af251x1.tpl"}
      {include file="../popup/af251x1/template/af251x1_js.tpl"}
    {/if}
    {if $hasPopAf254x1 eq "1"}  {*転送入庫伝票検索*}
      {include file="../popup/af254x1/template/af254x1.tpl"}
      {include file="../popup/af254x1/template/af254x1_js.tpl"}
    {/if}
    {if $hasPopAf265x1 eq "1"}  {*入金伝票検索*}
      {include file="../popup/af265x1/template/af265x1.tpl"}
      {include file="../popup/af265x1/template/af265x1_js.tpl"}
    {/if}
    {if $hasPopAf271x1 eq "1"}  {*支払検索*}
      {include file="../popup/af271x1/template/af271x1.tpl"}
      {include file="../popup/af271x1/template/af271x1_js.tpl"}
    {/if}

    <!-- excel output -->
    {if $hasPopAf02m eq "1"}
      {include file="../popup/af02m/template/af02m.tpl"}
      {include file="../popup/af02m/template/af02m_js.tpl"}
    {/if}
    {if $hasPopAf04m eq "1"}
      {include file="../popup/af04m/template/af04m.tpl"}
      {include file="../popup/af04m/template/af04m_js.tpl"}
    {/if}
    {if $hasPopAf03m eq "1"}
      {include file="../popup/af03m/template/af03m.tpl"}
      {include file="../popup/af03m/template/af03m_js.tpl"}
    {/if}
    {if $hasPopAf032m eq "1"}
      {include file="../popup/af032m/template/af032m.tpl"}
      {include file="../popup/af032m/template/af032m_js.tpl"}
    {/if}
    {if $hasPopAf036m eq "1"}
      {include file="../popup/af036m/template/af036m.tpl"}
      {include file="../popup/af036m/template/af036m_js.tpl"}
    {/if}
    {if $hasPopAf0311m eq "1"}
      {include file="../popup/af0311m/template/af0311m.tpl"}
      {include file="../popup/af0311m/template/af0311m_js.tpl"}
    {/if}
    {if $hasPopAf031m eq "1"}
      {include file="../popup/af031m/template/af031m.tpl"}
      {include file="../popup/af031m/template/af031m_js.tpl"}
    {/if}
    {if $hasPopAf08m eq "1"}
      {include file="../popup/af08m/template/af08m.tpl"}
      {include file="../popup/af08m/template/af08m_js.tpl"}
    {/if}
    {if $hasPopAf993m eq "1"}
      {include file="../popup/af993m/template/af993m.tpl"}
      {include file="../popup/af993m/template/af993m_js.tpl"}
    {/if}
    {if $hasPopAf05m eq "1"}
      {include file="../popup/af05m/template/af05m.tpl"}
      {include file="../popup/af05m/template/af05m_js.tpl"}
    {/if}
    {if $hasPopAf90m eq "1"}
      {include file="../popup/af90m/template/af90m.tpl"}
      {include file="../popup/af90m/template/af90m_js.tpl"}
    {/if}


  </div>
  <!-- popup -->

  <script src="../../js/date.js?date={$_LAST_UPDATE}"></script>

  <a id="dllink" style="hidden"></a>
</body>

</html>
