人人商城

welcome-site.html 5.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. <style>
  2. .template .item{position:relative;display:block;float:left;border:1px #ddd solid;border-radius:5px;background-color:#fff;padding:5px;width:190px;margin:0 10px 10px 0;}
  3. .template .title{margin:5px auto;line-height:2em;}
  4. .template .item img{width:178px;height:270px;}
  5. .clear{clear:both;}
  6. .home-container{width:100%; overflow:hidden; margin:.6em .3em;}
  7. .home-container .tile{float:left; display:block; text-decoration:none; outline:none; width:6em; height:6em; margin:.4em;}
  8. .home-container i{display:block; color:#333; height:1em; overflow: hidden; font-size:2em; margin:.25em .2em;}
  9. .home-container span{display:block; width:100%; overflow:hidden;}
  10. </style>
  11. <div class="page-header">
  12. <h4><i class="fa fa-comments"></i> 当前站点</h4>
  13. </div>
  14. <div class="panel panel-default row">
  15. <div class="table-responsive panel-body">
  16. <table class="table">
  17. <tr>
  18. <td style="width:200px; border-top:none;">
  19. <div class="">
  20. <div class="item">
  21. <div class="title">
  22. <img src="../app/themes/{$template['name']}/preview.jpg" class="img-rounded" />
  23. </div>
  24. </div>
  25. </div>
  26. </td>
  27. <td style="border-top:none;">
  28. <p>
  29. <strong>微站入口触发关键字 : </strong>
  30. {loop $keywords $keyword}
  31. <span class="label label-success">{$keyword['content']}</span>
  32. {/loop}
  33. </p>
  34. <p><a href="javascript:;" onclick="preview_home('{$setting['styleid']}', '{$setting['id']}');return false;" class="btn btn-default">预览</a></p>
  35. </td>
  36. </tr>
  37. </table>
  38. </div>
  39. </div>
  40. <div class="page-header">
  41. <h4><i class="fa fa-android"></i> 站点导航图标</h4>
  42. </div>
  43. <div class="panel panel-default">
  44. <div class="panel-body table-responsive">
  45. <table class="table">
  46. <thead>
  47. <tr>
  48. <th style="width:200px">导航及菜单</th>
  49. <th>概况</th>
  50. </tr>
  51. </thead>
  52. <tbody>
  53. <tr>
  54. <td>微站首页导航图标</td>
  55. <td>
  56. <div class="home-container">
  57. {loop $home_navs $nav}
  58. <a href="javascript:viod(0);" class="tile text-center btn btn-default">
  59. {if !empty($nav['icon'])}
  60. <i style="background:url({$_W['attachurl']}{$nav['icon']}) no-repeat;background-size:cover;{$nav['css']['icon']['style']} height:1em; margin:.25em .4em;"></i>
  61. {else}
  62. <i class="fa {$nav['css']['icon']['icon']}"></i>
  63. {/if}
  64. <span style="{$nav['css']['name']}" title="{$nav['name']}">{$nav['name']}</span>
  65. </a>
  66. {/loop}
  67. </div>
  68. </td>
  69. </tr>
  70. <tr>
  71. <td>个人中心导航条目</td>
  72. <td>
  73. <div class="home-container">
  74. {loop $profile_navs $nav}
  75. <a href="javascript:viod(0);" class="tile text-center btn btn-default">
  76. {if !empty($nav['icon'])}
  77. <i style="background:url({$_W['attachurl']}{$nav['icon']}) no-repeat;background-size:cover;{$nav['css']['icon']['style']}"></i>
  78. {else}
  79. <i class="fa {$nav['css']['icon']['icon']}"></i>
  80. {/if}
  81. <span style="{$nav['css']['name']}" title="{$nav['name']}">{$nav['name']}</span>
  82. </a>
  83. {/loop}
  84. </div>
  85. </td>
  86. </tr>
  87. </tbody>
  88. </table>
  89. </div>
  90. </div>
  91. <div class="page-header">
  92. <h4><i class="fa fa-cogs"></i> 幻灯片设置</h4>
  93. </div>
  94. <div class="panel panel-default row">
  95. <div class="panel-body table-responsive">
  96. <table class="table">
  97. <tr>
  98. <td style="border-top:0;">
  99. {if !empty($slides)}
  100. <div id="carousel-example-generic" class="carousel slide" style="width:600px" data-ride="carousel">
  101. <ol class="carousel-indicators">
  102. {loop $slides $a $slide}
  103. <li data-target="#carousel-example-generic" data-slide-to="0" {if $a == 0}class="active"{/if}></li>
  104. {/loop}
  105. </ol>
  106. <div class="carousel-inner">
  107. {loop $slides $a $slide}
  108. <div class="item {if $a == 0}active{/if}">
  109. <img src="{$slide['thumb']}" alt="{$slide['title']}" style="height:300px; margin-left:auto; margin-right: auto;">
  110. <div class="carousel-caption">
  111. <h5>{$slide['title']}</h5>
  112. </div>
  113. </div>
  114. {/loop}
  115. </div>
  116. <a class="left carousel-control" href="#carousel-example-generic" data-slide="prev">
  117. <span class="glyphicon glyphicon-chevron-left"></span>
  118. </a>
  119. <a class="right carousel-control" href="#carousel-example-generic" data-slide="next">
  120. <span class="glyphicon glyphicon-chevron-right"></span>
  121. </a>
  122. </div>
  123. {/if}
  124. </td>
  125. </tr>
  126. </table>
  127. </div>
  128. </div>
  129. <script type="text/javascript">
  130. function preview_home(styleid, multiid) {
  131. var content = '<iframe width="320" scrolling="yes" height="480" frameborder="0" src="about:blank"></iframe>';
  132. var footer =
  133. '<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>';
  134. var dialog = util.dialog('预览模板', content, footer);
  135. dialog.find('iframe').on('load', function(){
  136. $('a', this.contentWindow.document.body).each(function(){
  137. if ($(this).attr('href').substr(0, 4) != 'http') {
  138. if ($(this).attr('href').substr(0, 2) == './') {
  139. $(this).attr('href', $(this).attr('href') + 's=' + styleid);
  140. } else {
  141. $(this).attr('href', 'http://' + $(this).attr('href'));
  142. }
  143. }
  144. });
  145. });
  146. var url = '../app/{php echo murl('home')}&s=' + styleid + 't=' + multiid;
  147. dialog.find('iframe').attr('src', url);
  148. dialog.find('.modal-dialog').css({'width': '322px'});
  149. dialog.find('.modal-body').css({'padding': '0', 'height': '480px'});
  150. dialog.modal('show');
  151. }
  152. </script>