Nessuna descrizione
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

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