Bez popisu
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

help.htm 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. {include file="public/layout" /}
  2. <body class="help-page" style="min-width:auto;">
  3. <div id="toolTipLayer" style="position: absolute; z-index: 9999; display: none; visibility: visible; left: 95px; top: 573px;"></div>
  4. <div id="append_parent"></div>
  5. <div id="ajaxwaitid"></div>
  6. <div class="page" style="min-width: auto;box-shadow:none;">
  7. <form class="form-horizontal" id="post_form" action="{:U('Links/add')}" method="post">
  8. <div class="help-form-default">
  9. <div class="help_tab_index" id="help_tab_index_1" {neq name="$Request.param.tab_index" value="1"}style="display:none"{/neq}>
  10. <div class="help-title"><i class="iconfont e-shezhi1"></i>功能向导</div>
  11. <dl class="help-row">
  12. <dd class="help-opt">
  13. <a href="javascript:void(0);" data-href="{:url('System/web2')}" onclick="toTopFame(this);" class=""><em>副栏目</em></a>如何开启?&nbsp;<a href="javascript:void(0);" data-href="{:url('System/web2')}" onclick="toTopFame(this);" class=""><i class="iconfont e-fenxiang_2" title="传送门"></i></a>
  14. </dd>
  15. </dl>
  16. <dl class="help-row">
  17. <dd class="help-opt">
  18. <a href="javascript:void(0);" data-href="{:url('ArchivesFlag/index',array('source'=>'archives'))}" onclick="toTopFame(this);" class=""><em>文档属性</em></a>如何自定义?&nbsp;<a href="javascript:void(0);" data-href="{:url('ArchivesFlag/index',array('source'=>'archives'))}" onclick="toTopFame(this);" class=""><i class="iconfont e-fenxiang_2" title="传送门"></i></a>
  19. </dd>
  20. </dl>
  21. <dl class="help-row">
  22. <dd class="help-opt">
  23. <a href="javascript:void(0);" data-href="{:url('Tags/index',array('source'=>'archives'))}" onclick="toTopFame(this);" class=""><em>文档标签</em></a>?&nbsp;<a href="javascript:void(0);" data-href="{:url('Tags/index',array('source'=>'archives'))}" onclick="toTopFame(this);" class=""><i class="iconfont e-fenxiang_2" title="传送门"></i></a>
  24. </dd>
  25. </dl>
  26. <dl class="help-row">
  27. <dd class="help-opt">
  28. <a href="javascript:void(0);" data-href="{:url('System/thumb',array('source'=>'archives'))}" onclick="toTopFame(this);" class=""><em>封面图片</em></a>生成方式如何设置?&nbsp;<a href="javascript:void(0);" data-href="{:url('System/thumb',array('source'=>'archives'))}" onclick="toTopFame(this);" class=""><i class="iconfont e-fenxiang_2" title="传送门"></i></a>
  29. </dd>
  30. </dl>
  31. <dl class="help-row">
  32. <dd class="help-opt">
  33. <a href="javascript:void(0);" data-href="{:url('System/water',array('source'=>'archives'))}" onclick="toTopFame(this);" class=""><em>图片水印</em></a>如何添加?&nbsp;<a href="javascript:void(0);" data-href="{:url('System/water',array('source'=>'archives'))}" onclick="toTopFame(this);" class=""><i class="iconfont e-fenxiang_2" title="传送门"></i></a>
  34. </dd>
  35. </dl>
  36. <dl class="help-row {empty name='$global.web_citysite_open'} none {/empty}">
  37. <dd class="help-opt">
  38. <a href="javascript:void(0);" data-href="{:url('Citysite/index',array('source'=>'archives'))}" onclick="toTopFame(this);" class=""><em>城市分站</em></a>如何设置?&nbsp;<a href="javascript:void(0);" data-href="{:url('Citysite/index',array('source'=>'archives'))}" onclick="toTopFame(this);" class=""><i class="iconfont e-fenxiang_2" title="传送门"></i></a>
  39. </dd>
  40. </dl>
  41. <dl class="help-row">
  42. <dd class="help-opt">
  43. <a href="javascript:void(0);" data-href="{:url('Field/channel_index',array('source'=>'archives','channel_id'=>$channel))}" onclick="toTopFame(this);" class=""><em>自定义字段</em></a>如何添加?&nbsp;<a href="javascript:void(0);" data-href="{:url('Field/channel_index',array('source'=>'archives','channel_id'=>$channel))}" onclick="toTopFame(this);" class=""><i class="iconfont e-fenxiang_2" title="传送门"></i></a>
  44. </dd>
  45. </dl>
  46. <dl class="help-row">
  47. <dd class="help-opt">
  48. <a href="javascript:void(0);" data-href="{:url('System/basic')}" onclick="toTopFame(this);" class=""><em>编辑器功能</em></a>如何更改?&nbsp;<a href="javascript:void(0);" data-href="{:url('System/basic')}" onclick="toTopFame(this);" class=""><i class="iconfont e-fenxiang_2" title="传送门"></i></a>
  49. </dd>
  50. </dl>
  51. </div>
  52. <div class="help_tab_index" id="help_tab_index_2" {neq name="$Request.param.tab_index" value="2"}style="display:none"{/neq}>
  53. <div class="help-title"><i class="iconfont e-shezhi1"></i>功能向导</div>
  54. <dl class="help-row">
  55. <dd class="help-opt">
  56. <a href="javascript:void(0);" data-href="{:url('Seo/seo')}" onclick="toTopFame(this);" class=""><em>SEO标题</em></a>如何配置构成规则?&nbsp;<a href="javascript:void(0);" data-href="{:url('Seo/seo')}" onclick="toTopFame(this);" class=""><i class="iconfont e-fenxiang_2" title="传送门"></i></a>
  57. </dd>
  58. </dl>
  59. </div>
  60. <div class="help_tab_index" id="help_tab_index_3" {neq name="$Request.param.tab_index" value="3"}style="display:none"{/neq}>
  61. <div class="help-title"><i class="iconfont e-shezhi1"></i>功能向导</div>
  62. <dl class="help-row">
  63. <dd class="help-opt">
  64. <input type="hidden" id="pen_name" name="pen_name" value="{$Think.session.admin_info.pen_name|default='小编'}" />
  65. <a href="javascript:void(0);" onclick="set_top_author();" class=""><em>作者</em></a>设置默认值(将同步至管理员笔名)&nbsp;<a href="javascript:void(0);" onclick="set_top_author();" class=""><i class="iconfont e-fenxiang_2" title="传送门"></i></a>
  66. </dd>
  67. </dl>
  68. <dl class="help-row">
  69. <dd class="help-opt">
  70. <textarea id="system_originlist_str" style="display: none;">{$system_originlist_str}</textarea>
  71. <a href="javascript:void(0);" onclick="set_top_originlist();" class=""><em>来源</em></a>设置默认值&nbsp;<a href="javascript:void(0);" onclick="set_top_originlist();" class=""><i class="iconfont e-fenxiang_2" title="传送门"></i></a>
  72. </dd>
  73. </dl>
  74. <dl class="help-row">
  75. <dd class="help-opt">
  76. <a href="javascript:void(0);" data-href="{:url('System/basic')}" onclick="toTopFame(this);" class=""><em>点击数</em></a>设置默认值&nbsp;<a href="javascript:void(0);" data-href="{:url('System/basic')}" onclick="toTopFame(this);" class=""><i class="iconfont e-fenxiang_2" title="传送门"></i></a>
  77. </dd>
  78. </dl>
  79. </div>
  80. </div>
  81. </form>
  82. </div>
  83. <div class="f_jxw"></div>
  84. <script>
  85. function set_top_originlist(){
  86. var value = $('#system_originlist_str').val();
  87. top.layer.prompt({
  88. title:'来源管理',
  89. shade: layer_shade,
  90. formType: 2,
  91. btnAlign:'r',
  92. closeBtn: 3,
  93. placeholder: '一行代表一个来源值',
  94. value: value,
  95. },
  96. function(val, index){
  97. $.ajax({
  98. url: eyou_basefile + "?m=admin&c=Archives&a=ajax_set_originlist&_ajax=1",
  99. type: 'POST',
  100. dataType: 'JSON',
  101. data: {origin:val},
  102. success: function(res){
  103. if (res.code == 1) {
  104. $('#system_originlist_str').val(res.data.originlist_str);
  105. top.layer.msg(res.msg, {icon: 1, time:1000});
  106. } else {
  107. showErrorMsg(res.msg);
  108. return false;
  109. }
  110. },
  111. error: function(e){
  112. showErrorMsg(e.responseText);
  113. return false;
  114. }
  115. });
  116. top.layer.close(index);
  117. }
  118. );
  119. }
  120. function set_top_author(){
  121. var value = $("#pen_name").val();
  122. top.layer.prompt({
  123. title:'设置作者默认名称',
  124. shade: layer_shade,
  125. btnAlign:'r',
  126. closeBtn: 3,
  127. value: value
  128. },
  129. function(val, index){
  130. $.ajax({
  131. url: eyou_basefile + "?m=admin&c=Admin&a=ajax_setfield&_ajax=1",
  132. type: 'POST',
  133. dataType: 'JSON',
  134. data: {field:'pen_name',value:val},
  135. success: function(res){
  136. if (res.code == 1) {
  137. $('#pen_name').val(val);
  138. top.layer.msg(res.msg, {icon: 1, time:1000});
  139. } else {
  140. showErrorMsg(res.msg);
  141. return false;
  142. }
  143. },
  144. error: function(e){
  145. showErrorMsg(e.responseText);
  146. return false;
  147. }
  148. });
  149. top.layer.close(index);
  150. }
  151. );
  152. }
  153. function openTopframe(obj,title,width,height,offset){
  154. //iframe窗
  155. var url = '';
  156. if (typeof(obj) == 'string' && obj.indexOf("?m=admin&c=") != -1) {
  157. url = obj;
  158. } else {
  159. url = $(obj).data('href');
  160. }
  161. if (!width) width = '100%';
  162. if (!height) height = '100%';
  163. if (!offset) offset = 'auto';
  164. var anim = 0;
  165. var shade = layer_shade;
  166. if ('r' == offset) {
  167. shade = [0.05];
  168. anim = 5;
  169. }
  170. var iframes = top.layer.open({
  171. type: 2,
  172. title: title,
  173. fixed: true, //不固定
  174. shadeClose: false,
  175. shade: shade,
  176. offset: offset,
  177. closeBtn: 3,
  178. // maxmin: true, //开启最大化最小化按钮
  179. area: [width, height],
  180. anim: anim,
  181. content: url,
  182. end: function() {
  183. if (1 == $(obj).data('closereload')) window.location.reload();
  184. },
  185. success: function(layero, index){
  186. if ('r' == offset) {
  187. $('.layui-layer-shade').click(function(){
  188. layer.close(index);
  189. });
  190. }
  191. }
  192. });
  193. if (width == '100%' && height == '100%') {
  194. layer.full(iframes);
  195. }
  196. }
  197. //跳转走
  198. function toTopFame(obj){
  199. var url = $(obj).data('href');
  200. title = '即将跳转到新页面,编辑内容不会保存,确认跳转?';
  201. btn = ['确定', '取消']; //按钮
  202. top.layer.confirm(title, {
  203. shade: layer_shade,
  204. area: ['480px', '190px'],
  205. move: false,
  206. title: '提示',
  207. btnAlign:'r',
  208. closeBtn: 3,
  209. btn: btn, //按钮
  210. success: function () {
  211. top.$(".layui-layer-content").css('text-align', 'left');
  212. }
  213. }, function(index){
  214. // 确定
  215. top.layer.close(index);
  216. top.$("#workspace").attr('src', url);
  217. // parent.parent.location.href = url;
  218. }, function(index){
  219. top.layer.close(index);
  220. return false;// 取消
  221. }
  222. );
  223. }
  224. </script>
  225. {include file="public/footer" /}