<?php /* Smarty version 2.6.22, created on 2016-01-10 01:30:49
         compiled from E:/xampp/htdocs/templates/home/default%5Ccollections%5Cview.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'E:/xampp/htdocs/templates/home/default\\collections\\view.html', 57, false),array('modifier', 'nl2br', 'E:/xampp/htdocs/templates/home/default\\collections\\view.html', 150, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['template_path'])."/html/header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['template_path'])."/js/arc.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['template_path'])."/html/jstemplate.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<script src="/mbthemes/scripts/canvas/animation.js"></script>
</head>
<body>
<div class="app" id="app">
  <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['template_path'])."/html/mobile-nav.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
  <!-- content -->
  <div id="content" class="app-content box-shadow-z4" role="main">

    <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['template_path'])."/html/pagenav.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
    <div ui-view class="app-body" id="view">
      <!-- ############ PAGE START-->

      <div class="white b-t">
        <div class="container">
          <div class="row-col">
            <div class="col-sm b-r b-l" id="taber">

              <div class="box edit pos-rlt m-b-0">
                <div class="p-x-md p-t-md">

                  <form action="" id="sortbyform" method="get" style="z-index:3;">
                    <input id="order-type" name="order" type="hidden" value="<?php if ($_GET['order'] == 'asc'): ?>desc<?php else: ?>asc<?php endif; ?>" />
                    <input type="hidden" id="sort_by" name="sort_by" />
                    <div class="btn-group">

                      <a href="javascript: void(0);" onclick="document.getElementById('sort_by').value='sales_count';document.getElementById('sortbyform').submit();"<?php if ($_GET['sort_by'] == 'sales_count'): ?> class="btn p-l-md p-r p-y-xs btn-outline skin" <?php else: ?> class="btn p-l-md p-r p-y-xs btn-outline b-skin text-skin"<?php endif; ?> title="" data-toggle="tooltip" data-placement="bottom" data-original-title="按销量排序">
                      销量
                      <i class="icon-xjt1 m-l-xs"></i>
                      </a>
                      <a href="javascript: void(0);" onclick="document.getElementById('sort_by').value='cost';document.getElementById('sortbyform').submit();"<?php if ($_GET['sort_by'] == 'cost'): ?> class="btn p-l-md p-r p-y-xs btn-outline skin" <?php else: ?> class="btn p-l-md p-r p-y-xs btn-outline b-skin text-skin"<?php endif; ?> title="" data-toggle="tooltip" data-placement="bottom" data-original-title="按价格排序">
                      价格
                      <i class="icon-xjt1 m-l-xs"></i>
                      </a>
                      <a href="javascript: void(0);" onclick="document.getElementById('sort_by').value='published_at';document.getElementById('sortbyform').submit();"<?php if ($_GET['sort_by'] == 'published_at'): ?> class="btn p-l-md p-r p-y-xs btn-outline skin" <?php else: ?> class="btn p-l-md p-r p-y-xs btn-outline b-skin text-skin"<?php endif; ?> data-toggle="tooltip" data-placement="bottom" data-original-title="按日期排序">
                      日期
                      <i class="icon-xjt1 m-l-xs"></i>
                      </a>

                    </div>
                  </form>


                </div>
                <div class="p-a-md">


                  <?php if ($this->_tpl_vars['items']): ?>
                  <div class="row">
                    <?php $_from = $this->_tpl_vars['items']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['foo'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['foo']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['i']):
        $this->_foreach['foo']['iteration']++;
?>
                    <div class="col-xs-6 col-sm-6 col-md-4">
                      <div class="box mb-co-b b-a">
                        <div class="item dark">
                          <div class="img-container fx-img-rotate-l fx-opt-zoom-out">
                            <img src="<?php echo $this->_tpl_vars['data_server']; ?>
uploads/items/<?php echo $this->_tpl_vars['i']['id']; ?>
/<?php echo $this->_tpl_vars['i']['thumbnail']; ?>
" class="img-responsive" alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['i']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
">
                            <div class="img-options">
                              <div class="img-options-content">
                                <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['i']['id']; ?>
" target="_blank" class="btn skin m-r-md hidden-xs"><i class="icon-eye"></i></a>
                                <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['i']['id']; ?>
" target="_blank" class="btn btn-danger text-white">
                                  <i class="icon-magnifier-add"></i>
                                </a>
                              </div>
                            </div>
                          </div>
                        </div>
                        <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['i']['id']; ?>
" target="_blank" class="md-btn md-raised md-fab md-mini m-r pos-rlt md-fab-offset pull-right white"><i class="icon-plus2 md-24"></i></a>
                        <div class="p-a">
                          <div class="text-muted">
                            <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['i']['id']; ?>
" target="_blank" class="m-r"><i class="icon-eye m-r-xs"></i> 481</a>
                            <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['i']['id']; ?>
" target="_blank"><i class="icon-handbag m-r-xs"></i> 8</a>
                          </div>
                          <div class="h-2xx"><a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['i']['id']; ?>
" target="_blank" class="h6"><?php echo ((is_array($_tmp=$this->_tpl_vars['i']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</a></div>
                          <div class="clearfix m-t-xs">
                            <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
user/<?php echo $this->_tpl_vars['users'][$this->_tpl_vars['i']['user_id']]['username']; ?>
" target="_blank" class="pull-left m-r-sm">
                              <span class="w-32 avatar">
                                <?php if ($this->_tpl_vars['users'][$this->_tpl_vars['i']['user_id']]['avatar'] != ''): ?>
                                <img src="<?php echo $this->_tpl_vars['data_server']; ?>
uploads/users/<?php echo $this->_tpl_vars['i']['user_id']; ?>
/A_<?php echo $this->_tpl_vars['users'][$this->_tpl_vars['i']['user_id']]['avatar']; ?>
" />
                                <?php else: ?>
                                <span class="circle skin _100 w-32 fs-80">
                                  NP
                                </span>
                                <?php endif; ?>
                              </span>
                            </a>
                            <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
user/<?php echo $this->_tpl_vars['users'][$this->_tpl_vars['i']['user_id']]['username']; ?>
" target="_blank" class="pull-left m-t-sm clear">
                              <?php echo $this->_tpl_vars['users'][$this->_tpl_vars['i']['user_id']]['nickname']; ?>

                            </a>
                            <div class="pull-right">
                              <div class="h-32"><a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['i']['id']; ?>
" target="_blank" class="price">￥<span class="text-lg"> <?php if ($this->_tpl_vars['i']['free_file'] == 'true'): ?>0<?php else: ?><?php echo $this->_tpl_vars['i']['price']; ?>
<?php endif; ?></span></a></div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                    <?php endforeach; endif; unset($_from); ?>
                  </div>
                  <?php echo $this->_tpl_vars['paging']; ?>

                  <?php else: ?>
                  <div class="row">
                    <div class="col-xs-12 text-center">
                      <section class="panel no-radius p-t-lg p-b-lg panel-shadow">
                        <div class="panel-body bg-white-only no-radius">
                          <h4>这个书签集内尚无作品。</h4>
                        </div>
                      </section>
                    </div>
                  </div>
                  <?php endif; ?>


                </div>
              </div>

            </div>



            <div class="col-sm w-xl box w-auto-xs b-r right-bar">

              <div class="box edit pos-rlt m-b-0">
                <div class="">
                  <div class="box-body">
                    <div class="img-container fx-img-rotate-l">
                      <?php if ($this->_tpl_vars['collection']['photo'] != ''): ?>
                      <img class="w-full" alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['collection']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" src="<?php echo $this->_tpl_vars['data_server']; ?>
uploads/collections/<?php echo $this->_tpl_vars['collection']['photo']; ?>
" />
                      <?php else: ?>
                      <img class="w-full" alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['collection']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" src="<?php echo $this->_tpl_vars['template_data']; ?>
img/default-collection.jpg" />
                      <?php endif; ?>
                      <div class="img-options">
                        <div class="img-options-content">
                          <?php if (check_login_bool ( ) && $this->_tpl_vars['collection']['user_id'] == $_SESSION['user']['user_id']): ?>
                          <form action="" method="post">
                            <input type="hidden" name="delete" value="yes" />
                            <button type="submit" onclick="return confirm('确定删除这个书签集吗？');" class="btn skin">删除此书签</button>
                          </form>
                          <?php endif; ?>
                        </div>
                      </div>
                    </div>
                  </div>
                  <div class="p-x">



                    <div class="ss-underline">
                      <h5><?php echo $this->_tpl_vars['collection']['name']; ?>
</h5>
                      <?php if (check_login_bool ( )): ?>
                      <?php if ($this->_tpl_vars['collection']['text'] != ''): ?><span class="text-grey"><?php echo ((is_array($_tmp=$this->_tpl_vars['collection']['text'])) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
</span><?php endif; ?>
                      <?php else: ?>
                      <span class="text-grey">这是一个公开书签集</span>
                      <?php endif; ?>


                      <script><?php echo '
                      marketplace.queue( function(){
                        marketplace.initializers.itemList({
                          ajaxPagination: true,
                          layoutSwitcher: true
                        });
                      });'; ?>

                      </script>

                      <?php if (check_login_bool ( )): ?>
                      <h6 class="p-t">给这个书签集评分</h6>
                      <div class="rate_collection">
                        <?php if ($this->_tpl_vars['collection']['rate']): ?>
                        <div class="clearfix block ratestar">
                          <?php unset($this->_sections['foo']);
$this->_sections['foo']['name'] = 'foo';
$this->_sections['foo']['start'] = (int)1;
$this->_sections['foo']['loop'] = is_array($_loop=6) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['foo']['step'] = ((int)1) == 0 ? 1 : (int)1;
$this->_sections['foo']['show'] = true;
$this->_sections['foo']['max'] = $this->_sections['foo']['loop'];
if ($this->_sections['foo']['start'] < 0)
    $this->_sections['foo']['start'] = max($this->_sections['foo']['step'] > 0 ? 0 : -1, $this->_sections['foo']['loop'] + $this->_sections['foo']['start']);
else
    $this->_sections['foo']['start'] = min($this->_sections['foo']['start'], $this->_sections['foo']['step'] > 0 ? $this->_sections['foo']['loop'] : $this->_sections['foo']['loop']-1);
if ($this->_sections['foo']['show']) {
    $this->_sections['foo']['total'] = min(ceil(($this->_sections['foo']['step'] > 0 ? $this->_sections['foo']['loop'] - $this->_sections['foo']['start'] : $this->_sections['foo']['start']+1)/abs($this->_sections['foo']['step'])), $this->_sections['foo']['max']);
    if ($this->_sections['foo']['total'] == 0)
        $this->_sections['foo']['show'] = false;
} else
    $this->_sections['foo']['total'] = 0;
if ($this->_sections['foo']['show']):

            for ($this->_sections['foo']['index'] = $this->_sections['foo']['start'], $this->_sections['foo']['iteration'] = 1;
                 $this->_sections['foo']['iteration'] <= $this->_sections['foo']['total'];
                 $this->_sections['foo']['index'] += $this->_sections['foo']['step'], $this->_sections['foo']['iteration']++):
$this->_sections['foo']['rownum'] = $this->_sections['foo']['iteration'];
$this->_sections['foo']['index_prev'] = $this->_sections['foo']['index'] - $this->_sections['foo']['step'];
$this->_sections['foo']['index_next'] = $this->_sections['foo']['index'] + $this->_sections['foo']['step'];
$this->_sections['foo']['first']      = ($this->_sections['foo']['iteration'] == 1);
$this->_sections['foo']['last']       = ($this->_sections['foo']['iteration'] == $this->_sections['foo']['total']);
?>
                          <?php if ($this->_tpl_vars['collection']['rate']['rate'] >= $this->_sections['foo']['index']): ?>
                          <i class="icon-star-full text-warn"></i>
                          <?php else: ?>
                          <i class="icon-star-empty text-white"></i>
                          <?php endif; ?>
                          <?php endfor; endif; ?>
                        </div>
                        <?php else: ?>
                        <div id="stars_div_<?php echo $this->_tpl_vars['collection']['id']; ?>
" class="clearfix block stars text-lg" data-star-set-id="<?php echo $this->_tpl_vars['collection']['id']; ?>
_star" data-rating="0">
                          <?php unset($this->_sections['foo']);
$this->_sections['foo']['name'] = 'foo';
$this->_sections['foo']['start'] = (int)1;
$this->_sections['foo']['loop'] = is_array($_loop=6) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['foo']['step'] = ((int)1) == 0 ? 1 : (int)1;
$this->_sections['foo']['show'] = true;
$this->_sections['foo']['max'] = $this->_sections['foo']['loop'];
if ($this->_sections['foo']['start'] < 0)
    $this->_sections['foo']['start'] = max($this->_sections['foo']['step'] > 0 ? 0 : -1, $this->_sections['foo']['loop'] + $this->_sections['foo']['start']);
else
    $this->_sections['foo']['start'] = min($this->_sections['foo']['start'], $this->_sections['foo']['step'] > 0 ? $this->_sections['foo']['loop'] : $this->_sections['foo']['loop']-1);
if ($this->_sections['foo']['show']) {
    $this->_sections['foo']['total'] = min(ceil(($this->_sections['foo']['step'] > 0 ? $this->_sections['foo']['loop'] - $this->_sections['foo']['start'] : $this->_sections['foo']['start']+1)/abs($this->_sections['foo']['step'])), $this->_sections['foo']['max']);
    if ($this->_sections['foo']['total'] == 0)
        $this->_sections['foo']['show'] = false;
} else
    $this->_sections['foo']['total'] = 0;
if ($this->_sections['foo']['show']):

            for ($this->_sections['foo']['index'] = $this->_sections['foo']['start'], $this->_sections['foo']['iteration'] = 1;
                 $this->_sections['foo']['iteration'] <= $this->_sections['foo']['total'];
                 $this->_sections['foo']['index'] += $this->_sections['foo']['step'], $this->_sections['foo']['iteration']++):
$this->_sections['foo']['rownum'] = $this->_sections['foo']['iteration'];
$this->_sections['foo']['index_prev'] = $this->_sections['foo']['index'] - $this->_sections['foo']['step'];
$this->_sections['foo']['index_next'] = $this->_sections['foo']['index'] + $this->_sections['foo']['step'];
$this->_sections['foo']['first']      = ($this->_sections['foo']['iteration'] == 1);
$this->_sections['foo']['last']       = ($this->_sections['foo']['iteration'] == $this->_sections['foo']['total']);
?>
                          <a data-toggle="ajaxStar" href="/<?php echo $this->_tpl_vars['languageURL']; ?>
collections/rate/<?php echo $this->_tpl_vars['collection']['id']; ?>
?rating=<?php echo $this->_sections['foo']['index']; ?>
"  rel="nofollow">
                            <i class="icon-star-empty" alt="<?php echo $this->_sections['foo']['index']; ?>
" id="<?php echo $this->_tpl_vars['collection']['id']; ?>
_star_<?php echo $this->_sections['foo']['index']; ?>
" ></i>
                          </a>
                          <?php endfor; endif; ?>
                        </div>
                        <?php endif; ?>
                        <small class="inline m-t-sm">( <?php echo $this->_tpl_vars['collection']['votes']; ?>
 <?php echo $this->_tpl_vars['lang']['votes']; ?>
 )</small>
                        <?php if ($this->_tpl_vars['collection']['rate']): ?>
                        <small class="inline m-t-sm">你投了：<?php echo $this->_tpl_vars['collection']['rate']['rate']; ?>
星</small>
                        <?php endif; ?>
                      </div>
                      <?php endif; ?>
                    </div>
                    <div class="clearfix p-t">
                      <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
user/<?php echo $this->_tpl_vars['collection']['user']['username']; ?>
/" class="w-48 thumb pull-left m-r" title="<?php echo $this->_tpl_vars['collection']['user']['username']; ?>
">
                        <?php if ($this->_tpl_vars['collection']['user']['avatar'] != ''): ?>
                        <img alt="<?php echo $this->_tpl_vars['collection']['user']['username']; ?>
" class="img-circle w-48" src="<?php echo $this->_tpl_vars['data_server']; ?>
uploads/users/<?php echo $this->_tpl_vars['collection']['user']['user_id']; ?>
/A_<?php echo $this->_tpl_vars['collection']['user']['avatar']; ?>
" />
                        <?php else: ?>
                        <img alt="<?php echo $this->_tpl_vars['collection']['user']['username']; ?>
" class="img-circle w-48" src="<?php echo $this->_tpl_vars['template_data']; ?>
img/default-user.jpg" />
                        <?php endif; ?>
                      </a>
                      <h5 class="m-t-xs m-b-0"><a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
user/<?php echo $this->_tpl_vars['collection']['user']['username']; ?>
/" rel="author"><?php echo $this->_tpl_vars['collection']['user']['nickname']; ?>
</a></h5>
                      <p>
                        <?php $_from = $this->_tpl_vars['user_badges']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['foo'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['foo']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['b']):
        $this->_foreach['foo']['iteration']++;
?>
                        <img src="<?php echo $this->_tpl_vars['data_server']; ?>
<?php echo $this->_tpl_vars['b']['photo']; ?>
" height="15" width="15" alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['b']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" title="<?php echo ((is_array($_tmp=$this->_tpl_vars['b']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" />
                        <?php if (($this->_foreach['foo']['iteration'] == $this->_foreach['foo']['total'])): ?><?php endif; ?>
                        <?php endforeach; endif; unset($_from); ?>
                      </p>
                    </div>


                  </div>



                  <?php if (check_login_bool ( ) && $this->_tpl_vars['collection']['user_id'] == $_SESSION['user']['user_id']): ?>
                  <div class="clearfix">
                    <div class="col-xs-6 p-y b-t b-b b-r">
                      <button class="btn skin btn-xs-xs btn-block" type="submit" data-toggle="modal" data-target="#cbook">
                        编辑书签集
                      </button>
                    </div>
                    <div class="col-xs-6 p-y b-t b-b">
                      <form class="block" action="" method="post">
                        <input type="hidden" name="delete" value="yes" />
                        <button type="submit" onclick="return confirm('确定删除这个书签集吗？');" class="btn danger btn-xs-xs btn-block">删除此书签</button>
                      </form>
                    </div>
                  </div>
                  <?php endif; ?>


                </div>
              </div>

            </div>


          </div>
        </div>
      </div>


    </div>
    <!-- ############ PAGE END-->
    <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['template_path'])."/html/footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
  </div>
  <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['template_path'])."/html/backtop.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
  <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['template_path'])."/html/mb-settings.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
  <!-- ############ LAYOUT END-->
</div>
<?php echo '
<style>
  .box.edit{
    min-height: 744px;
  }
</style>
'; ?>

<?php if (check_login_bool ( ) && $this->_tpl_vars['collection']['user_id'] == $_SESSION['user']['user_id']): ?>

<!-- Modal -->
<div class="modal fade" id="cbook" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-sm" style="margin-top: 100px">

    <form class="vertical-form" enctype="multipart/form-data" id="edit_collection" method="post">
      <div class="modal-content black lt">



        <div class="modal-header">
          <h4 class="modal-title">修改书签集</h4>
        </div>
        <div class="modal-body">



          <div class="form-group">
            <label for="title">名称*</label>
            <input class="form-control" id="collection_name" name="name" type="text" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['collection']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" />
          </div>

          <div class="form-group">
            <label for="description">描述</label>
            <textarea class="form-control" cols="20" id="collection_description" name="description" rows="3"><?php echo $this->_tpl_vars['collection']['text']; ?>
</textarea>

          </div>


          <div class="form-group">
            <label for="image">图片</label>
            <input class="form-control" id="file_upload" name="file_upload" type="file" />
            <span class="help-block m-b-none">(260 x 140px)</span>
          </div>


          <label class="md-switch" for="collection_publically_visible">
            <input name="collection[publically_visible]" type="hidden" value="0" />
            <input id="collection_publically_visible" name="publically_visible" type="checkbox" value="1" <?php if ($this->_tpl_vars['collection']['public'] == 'true'): ?>checked="checked"<?php endif; ?> />
            <i class="skin"></i>
            是否为公开书签集?
          </label>
        </div>
        <div class="modal-footer" href="javascript: void(0);">
          <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
          <input type="hidden" name="edit" value="yes" />
          <button type="submit" class="btn skin">保存</button>
        </div>
      </div>
    </form>

  </div>
</div>

<?php endif; ?>
</body>
</html>