<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>{$config.page_title|escape}</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="{$config.root_uri}/bootstrap/bootswatch/cerulean/bootstrap.min.css" media="screen">
    <link rel="stylesheet" href="{$config.root_uri}/css/parts.css">
    <link rel="stylesheet" href="{$config.root_uri}/css/flatmemo.css">
    <link rel="stylesheet" href="{$config.root_uri}/font-awesome/css/font-awesome.min.css">

    <script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
    <script src="{$config.root_uri}/bootstrap/bootstrap.min.js"></script>
    <script src="{$config.root_uri}/bootstrap/bootswatch.js"></script>

    <script src="{$config.root_uri}/js/flatmemo.js"></script>
    <script type="text/javascript" src="{$config.root_uri}/js/jquery_kill_referrer.js"></script>
<script>
var gl_root_uri = {$config.root_uri};
</script>
    <!--[if lt IE 9]>
      <script src="./bootstrap/html5shiv.js"></script>
      <script src="./bootstrap/respond.min.js"></script>
    <![endif]-->

  </head>
  <body>

{include file="inc/header.html"}



    <div class="container">


        <div class="row">
          <div class="col-sm-6">
            <div class="row">
              <div class="col-sm-3 col-md-2 fm_cate_left_XXX">
{ if $cmd == 'draft' }<p class="fm_icon" style="background-image: url({$config.icon_uri}/draft_icon.gif)"><a href="#">
{ else }<p class="fm_icon " style="background-image: url({$config.icon_uri}/{if $icon_file_name}{$icon_file_name}{else}noicon.jpg{/if})"><a href="{$_program_name}/category/{$category_id}">
{ /if }
                <img src="{$config.root_uri}/g/waku.png" /></a>
                </p>
              </div>
              <div class="col-sm-9 col-md-10 fm_cate_right_XXX">
                <a href="{$_program_name}/category/{$category_id}">{$category_name|escape}</a>
              </div>
            </div>
          </div>

          <div class="col-sm-2">
{if $cmd != 'draft'}<a href="javascript:_a();" class="icontext"><i class="fa fa-file"></i> 新規投稿</a>{/if}
          </div>

          <div class="col-sm-4">
          <div class="fm_tag_area">
            <p class="fm_label"><i class="fa fa-tags"></i> tags</p>
{ foreach from=$now_category_tag_loop key="k" item="v" name="loopname"}
{ if $v.tag_name }<div class="fm_t_t"><a href="{$_program_name}/category/{$category_id}/tag/{$v.tag_name|escape:'url'}/">{$v.tag_name|escape}</a></div><div class="fm_t_c">[{$v.tag_count_no}]</div>{/if}
{ /foreach }
          </div>
          </div>
        </div><!-- /.row -->


        <div class="row">
          <div class="col-xs-12">
          {if $desc_name}<h2 class="fm_cate_title">{$desc_name|escape|nl2br}</h2>{/if}
          </div>
        </div><!-- /.row -->



<div id="data">
<div class="bar"></div>
<div style="padding-top:10px;">
<ul>
<li id="icon-back2"><a href="{$back_uri}" class="icontext">前の画面に戻る</a></li>
</ul>
</div>
<div class="deleteitem">
タイトル：{$title_name|escape}<br />
テキスト：{$text_name|escape}<br />
添付file：
{ foreach from=$attach_jp_loop key="k" item="v" name="loopname" }
{ math equation=a-1 a=$smarty.foreach.loopname.iteration assign=i }
<a href="{$config.data_file_uri}/{$attach_en_loop.$i}" target="_blank">{$v|escape}</a> , 
{ /foreach }
<!--
カテゴリ：{$category_name}<br />
ユーザ名：{$user_name}<br />
-->
</div>
<div class="form1"></div>
<div class="form2">

  <form name="form1" method="get" action="{$_program_uri}" onsubmit="accessing(); return notrepeat();">
{$hidden}

  <span style="color:red">このデータを削除しますか？</span>
  <input type="submit" class="btn btn-danger" value="削除する" />　<input type="button" class="btn btn-primary" value="戻る" onclick="history.back()" />
  <p id="accessing" class="fm_accessing" style="display:none;"><i class="fa fa-refresh fa-spin"></i> now accessing...</p>
  </form>

</div>

<br style="clear:both;" /><br style="clear:both;" />
<div style="padding-top:10px;">
<ul>
<li id="icon-back2"><a href="{$back_uri}" class="icontext">前の画面に戻る</a></li>
</ul>
</div>
</div>

    </div><!-- /.container -->




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




  </body>
</html>

