<!DOCTYPE html>
<html lang="ja">
  <head>
    <meta charset="utf-8">
    <title>{$category_name|escape}|{$config.page_title|escape}</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="{$config.root_uri}/bootstrap/bootswatch/{$appearance.bootswatch_name}/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>

    <!--[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 mb10">

          <div class="col-sm-6">
            <div class="row">
              <div class="col-sm-3 col-md-2">
                <div class="fm_icon2">
                <a href="{$_program_uri}/category/{$category_id}"><p style="background-image: url({$config.icon_uri}/{if $icon_file_name}{$icon_file_name}{else}noicon.jpg{/if})"></p></a>
                </div>
              </div>
              <div class="col-sm-9 col-md-10 fm_cate_name">
                <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({$category_id});" 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-6">

{if $desc_name}<h2 class="fm_cate_title">{$desc_name|escape|nl2br}</h2>{/if}
<form>
<select name="fm_linkmenu" id="fm_linkmenu" class="form-control" onchange="location.href=('{$_program_name}/category/{$category_id}#'+document.getElementById('fm_linkmenu').value ); ">
<option value="">クイックリンク</option>
{ foreach from=$quicklink_loop key="k" item="v" name="loopname"}
<option value="linkmenu{$v.data_id}">{$v.title_name|escape}</option>
{ /foreach }
</select>
</form>
          </div>
        </div><!-- /.row -->


{ foreach from=$data_loop key="k" item="v" name="loopname" }
{assign var="permalink"  value="`$_program_uri`/archive/`$v.data_id`" }
<a name="linkmenu{$v.data_id}"></a>
<div class="row fm_row">

<div class="col-xs-12 col-sm-10 fm_data_left">
<h2 class="fm_data_head" id="h{$v.data_id}"><span class="fm_t_id">{$v.data_id}</span><a href="{$permalink}" title="permalink" >{$v.title_name|escape}</a></h2>

<div>
{if $v.hatena_flag=='on'}{$v.text_name|kihou_hatena}
{elseif $v.markdown_flag=='on'}{$v.text_name|kihou_markdown}
{else}{$v.text_name|kihou_flatmemo}
{/if}
</div>
{$v.attach}

{ foreach from=$v.attach_en_loop key="ak" item="av" name="aloopname"}
{ math equation=a-1 a=$smarty.foreach.aloopname.iteration assign=i }
<div class="fm_attach_left">添付ファイル{$smarty.foreach.aloopname.iteration}</div> 
<div class="fm_attach_right"><a href="{$config.data_file_uri}/{$av}" target="_blank">{$v.attach_jp_loop.$i}</a> <span class="article-attach-filesize">( {$av} / {"`$config.data_file_dir`/`$av`"|fsize} )</span>　<a href="javascript:_f('{$v.data_id}','{$av}')">ダウンロード</a></div>
{ /foreach }

</div><!-- /.fm_data_left -->

<div class="col-xs-6 col-sm-2 fm_data_right">

<div class="fm_no">No.{$v.data_id}</div>
<div class="fm_edit"><a href="javascript:_e('{$v.data_id}');"><i class="fa fa-pencil-square-o"></i> edit</a></div>
<div class="fm_delete"><a href="javascript:_d('{$v.data_id}');"><i class="fa fa-trash"></i> delete</a></div>
<div class="fm_date" title="{$v.koushin_date|date_format:"%Y/%m/%d"}">{$v.koushin_date|date_format:"%m/%d %H:%M"}</div>

<p class="fm_no">
{ foreach from=$v.tag_id_loop key="tk" item="tv" name="loopname2"}
{$tv|tag_name:$tag_master_loop}<br />
{ /foreach }
</p>
</div><!-- /.fm_data_right -->
</div><!-- /.row .fm_row-->
{ /foreach }




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


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




  </body>
</html>



