Ei kuvausta
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 14KB

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