No Description
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 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  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('channel_id'=>1,'source'=>'archives'))}" onclick="toTopFame(this);" class=""><em>自定义字段</em></a>如何添加?&nbsp;<a href="javascript:void(0);" data-href="{:url('Field/channel_index',array('channel_id'=>1,'source'=>'archives'))}" 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('Channeltype/edit',array('id'=>1,'source'=>'archives'))}" onclick="toTopFame(this);"><em>文章付费</em></a>如何开启?&nbsp;<a href="javascript:void(0);" data-href="{:url('Channeltype/edit',array('id'=>1,'source'=>'archives'))}" onclick="toTopFame(this);"><i class="iconfont e-fenxiang_2" title="传送门"></i></a>
  49. </dd>
  50. </dl>
  51. <dl class="help-row">
  52. <dd class="help-opt">
  53. <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>
  54. </dd>
  55. </dl>
  56. <dl class="help-row">
  57. <dd class="help-opt">
  58. <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>
  59. </dd>
  60. </dl>
  61. </div>
  62. <div class="help_tab_index" id="help_tab_index_2" {neq name="$Request.param.tab_index" value="2"}style="display:none"{/neq}>
  63. <div class="help-title"><i class="iconfont e-shezhi1"></i>功能向导</div>
  64. <dl class="help-row">
  65. <dd class="help-opt">
  66. <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>
  67. </dd>
  68. </dl>
  69. </div>
  70. <div class="help_tab_index" id="help_tab_index_3" {neq name="$Request.param.tab_index" value="3"}style="display:none"{/neq}>
  71. <div class="help-title"><i class="iconfont e-shezhi1"></i>功能向导</div>
  72. <dl class="help-row">
  73. <dd class="help-opt">
  74. <input type="hidden" id="pen_name" name="pen_name" value="{$Think.session.admin_info.pen_name|default='小编'}" />
  75. <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>
  76. </dd>
  77. </dl>
  78. <dl class="help-row">
  79. <dd class="help-opt">
  80. <textarea id="system_originlist_str" style="display: none;">{$system_originlist_str}</textarea>
  81. <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>
  82. </dd>
  83. </dl>
  84. <dl class="help-row">
  85. <dd class="help-opt">
  86. <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>
  87. </dd>
  88. </dl>
  89. </div>
  90. </div>
  91. </form>
  92. </div>
  93. <div class="f_jxw"></div>
  94. <script>
  95. function set_top_originlist(){
  96. var value = $('#system_originlist_str').val();
  97. top.layer.prompt({
  98. title:'来源管理',
  99. shade: layer_shade,
  100. formType: 2,
  101. btnAlign:'r',
  102. closeBtn: 3,
  103. placeholder: '一行代表一个来源值',
  104. value: value,
  105. },
  106. function(val, index){
  107. $.ajax({
  108. url: eyou_basefile + "?m=admin&c=Archives&a=ajax_set_originlist&_ajax=1",
  109. type: 'POST',
  110. dataType: 'JSON',
  111. data: {origin:val},
  112. success: function(res){
  113. if (res.code == 1) {
  114. $('#system_originlist_str').val(res.data.originlist_str);
  115. top.layer.msg(res.msg, {icon: 1, time:1000});
  116. } else {
  117. showErrorMsg(res.msg);
  118. return false;
  119. }
  120. },
  121. error: function(e){
  122. showErrorMsg(e.responseText);
  123. return false;
  124. }
  125. });
  126. top.layer.close(index);
  127. }
  128. );
  129. }
  130. function set_top_author(){
  131. var value = $("#pen_name").val();
  132. top.layer.prompt({
  133. title:'设置作者默认名称',
  134. shade: layer_shade,
  135. btnAlign:'r',
  136. closeBtn: 3,
  137. value: value
  138. },
  139. function(val, index){
  140. $.ajax({
  141. url: eyou_basefile + "?m=admin&c=Admin&a=ajax_setfield&_ajax=1",
  142. type: 'POST',
  143. dataType: 'JSON',
  144. data: {field:'pen_name',value:val},
  145. success: function(res){
  146. if (res.code == 1) {
  147. $('#pen_name').val(val);
  148. top.layer.msg(res.msg, {icon: 1, time:1000});
  149. } else {
  150. showErrorMsg(res.msg);
  151. return false;
  152. }
  153. },
  154. error: function(e){
  155. showErrorMsg(e.responseText);
  156. return false;
  157. }
  158. });
  159. top.layer.close(index);
  160. }
  161. );
  162. }
  163. function openTopframe(obj,title,width,height,offset){
  164. //iframe窗
  165. var url = '';
  166. if (typeof(obj) == 'string' && obj.indexOf("?m=admin&c=") != -1) {
  167. url = obj;
  168. } else {
  169. url = $(obj).data('href');
  170. }
  171. if (!width) width = '100%';
  172. if (!height) height = '100%';
  173. if (!offset) offset = 'auto';
  174. var anim = 0;
  175. var shade = layer_shade;
  176. if ('r' == offset) {
  177. shade = [0.05];
  178. anim = 5;
  179. }
  180. var iframes = top.layer.open({
  181. type: 2,
  182. title: title,
  183. fixed: true, //不固定
  184. shadeClose: false,
  185. shade: shade,
  186. offset: offset,
  187. closeBtn: 3,
  188. // maxmin: true, //开启最大化最小化按钮
  189. area: [width, height],
  190. anim: anim,
  191. content: url,
  192. end: function() {
  193. if (1 == $(obj).data('closereload')) window.location.reload();
  194. },
  195. success: function(layero, index){
  196. if ('r' == offset) {
  197. $('.layui-layer-shade').click(function(){
  198. layer.close(index);
  199. });
  200. }
  201. }
  202. });
  203. if (width == '100%' && height == '100%') {
  204. layer.full(iframes);
  205. }
  206. }
  207. //跳转走
  208. function toTopFame(obj){
  209. var url = $(obj).data('href');
  210. title = '即将跳转到新页面,编辑内容不会保存,确认跳转?';
  211. btn = ['确定', '取消']; //按钮
  212. top.layer.confirm(title, {
  213. shade: layer_shade,
  214. area: ['480px', '190px'],
  215. move: false,
  216. title: '提示',
  217. btnAlign:'r',
  218. closeBtn: 3,
  219. btn: btn, //按钮
  220. success: function () {
  221. top.$(".layui-layer-content").css('text-align', 'left');
  222. }
  223. }, function(index){
  224. // 确定
  225. top.layer.close(index);
  226. top.$("#workspace").attr('src', url);
  227. // parent.parent.location.href = url;
  228. }, function(index){
  229. top.layer.close(index);
  230. return false;// 取消
  231. }
  232. );
  233. }
  234. </script>
  235. {include file="public/footer" /}