index.html 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. {include file="public/header" /}
  2. <div class="page">
  3. <div class="fixed-bar">
  4. <div class="item-title">
  5. <div class="subject">
  6. <h3>{$Think.lang.ds_friendlink}</h3>
  7. <h5></h5>
  8. </div>
  9. {include file="public/admin_items" /}
  10. </div>
  11. </div>
  12. <form method="get" name="formSearch">
  13. <div class="ds-search-form">
  14. <dl>
  15. <dt>{$Think.lang.link_index_title}</dt>
  16. <dd><input type="text" value="{$Request.param.link_title}" name="link_title" class="txt"></dd>
  17. </dl>
  18. <div class="btn_group">
  19. <a href="javascript:document.formSearch.submit();" class="btn" title="{$Think.lang.ds_query}">{$Think.lang.ds_query}</a>
  20. {if $filtered}
  21. <a href="{:url('Link/index')}" class="btn btn-default" title="{$Think.lang.ds_cancel}">{$Think.lang.ds_cancel}</a>
  22. {/if}
  23. </div>
  24. </div>
  25. </form>
  26. <div class="explanation" id="explanation">
  27. <div class="title" id="checkZoom">
  28. <h4 title="{$Think.lang.ds_explanation_tip}">{$Think.lang.ds_explanation}</h4>
  29. <span id="explanationZoom" title="{$Think.lang.ds_explanation_close}" class="arrow"></span>
  30. </div>
  31. <ul>
  32. <li>{$Think.lang.link_index_help1}</li>
  33. </ul>
  34. </div>
  35. <table class="ds-default-table">
  36. <thead>
  37. <tr>
  38. <th>{$Think.lang.link_sort}</th>
  39. <th>{$Think.lang.link_title}</th>
  40. <th>{$Think.lang.link_pic}</th>
  41. <th>{$Think.lang.link_url}</th>
  42. <th>{$Think.lang.ds_handle}</th>
  43. </tr>
  44. </thead>
  45. <tbody>
  46. {notempty name="link_list"}
  47. {foreach name="link_list" item="link"}
  48. <tr id="ds_row_{$link.link_id}">
  49. <td class="sort"><span class="editable" ds_type="inline_edit" fieldname="link_sort" ajax_branch='link' fieldid="{$link.link_id}" datatype="pint" maxvalue="255" title="{$Think.lang.ds_editable}">{$link.link_sort}</span></td>
  50. <td class="name"><span class="editable" ds_type="inline_edit" fieldname="link_title" ajax_branch='link' fieldid="{$link.link_id}" required="1" title="{$Think.lang.ds_editable}">{$link.link_title}</span></td>
  51. <td>{if $link.link_pic}<a data-lightbox="lightbox-image" data-title="{$link.link_title}" href="{:ds_get_pic('admin/link',$link.link_pic)}"><img src="{:ds_get_pic('admin/link',$link.link_pic)}" onload="javascript:ResizeImage(this,31,31);"></a>{/if}</td>
  52. <td>{$link.link_url}</td>
  53. <td>
  54. <a href="javascript:dsLayerOpen('{:url('Link/edit',['link_id'=>$link.link_id])}','{$Think.lang.ds_edit}-{$link.link_title}')" class="dsui-btn-edit"><i class="iconfont"></i>{$Think.lang.ds_edit}</a>
  55. <a href="javascript:dsLayerConfirm('{:url('Link/drop',['link_id'=>$link.link_id])}','{$Think.lang.ds_ensure_del}',{$link.link_id})" class="dsui-btn-del"><i class="iconfont"></i>{$Think.lang.ds_del}</a>
  56. </td>
  57. </tr>
  58. {/foreach}
  59. {else /}
  60. <tr class="no_data">
  61. <td colspan="20">{$Think.lang.no_record}</td>
  62. </tr>
  63. {/notempty}
  64. </tbody>
  65. </table>
  66. {$show_page|raw}
  67. </div>
  68. <link rel="stylesheet" href="{$Think.PLUGINS_SITE_ROOT}/js/jquery.lightbox/css/lightbox.min.css">
  69. <script src="{$Think.PLUGINS_SITE_ROOT}/js/jquery.lightbox/js/lightbox.min.js"></script>
  70. <script type="text/javascript" src="{$Think.ADMIN_SITE_ROOT}/js/jquery.edit.js" charset="utf-8"></script>