{extend name="base" /}
{block name="css"}
<link rel="stylesheet" type="text/css" href="__ADMIN__/js/mmgrid/mmGrid.css?v={$v}" />
<link rel="stylesheet" type="text/css" href="__STATIC__/plugins/webuploader/webuploader.css?v={$v}" />
{/block}
{block name="js"}
<script src="__ADMIN__/js/mmgrid/mmGrid.js?v={$v}" type="text/javascript"></script>
<script src="__ADMIN__/friendlinks/friendlinks.js?v={$v}" type="text/javascript"></script>
<script type='text/javascript' src='__STATIC__/plugins/webuploader/webuploader.js?v={$v}'></script>
{/block}

{block name="main"}
{if WSTGrant('YQGL_01')}
<div class="wst-toolbar">
   <button class="btn btn-success f-right" onclick='javascript:toEdit(0)'><i class='fa fa-plus'></i>新增</button>
   <div style="clear:both"></div>
</div>
{/if}
<div class='wst-grid'>
<div id="mmg" class="mmg"></div>
<div id="pg" style="text-align: right;"></div>
</div>
<div id='friendlinkBox' style='display:none'>
    <form id='friendlinkForm' method="post" autocomplete="off">
    <table class='wst-form wst-box-top'>
       <tr>
          <th width='100'>网站名称<font color='red'>*</font>:</th>
          <td><input type='text' id='friendlinkName' name="friendlinkName"  class='ipt' maxLength='20'/></td>
       </tr>
       <tr>
          <th width='100'>图标:</th>
          <td>
          <div id='adFilePicker'>上传图标</div><span id='uploadMsg'></span>
          <input type='hidden' id='friendlinkIco' class='ipt'/>
          </td>
       </tr>
       <tr>
          <th width='100'>预览图:</th>
          <td>
            <div style="min-height:70px;" id="preview"></div>
          </td>
       </tr>
       <tr>
          <th width='100'>网址<font color='red'>*</font>:</th>
          <td><input type='text' id='friendlinkUrl' name="friendlinkUrl" class='ipt' maxLength='120'/></td>
       </tr>
       <tr>
          <th width='100'>网站排序号:</th>
          <td><input type='text' id='friendlinkSort'  class='ipt' maxLength='20'/></td>
       </tr>
       
    </table>
    </form>

  </div>
<script>
$(function(){initGrid()});
</script>

{/block}