人人商城

cover.html 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. {template '_header'}
  2. <div class="page-heading"> <h2>{$cover['name']}入口设置</h2> </div>
  3. <form id="setform" action="" method="post" class="form-horizontal form-validate" >
  4. <div class="form-group">
  5. <label class="col-sm-2 control-label">直接链接</label>
  6. <div class="col-sm-9 col-xs-12">
  7. <p class='form-control-static'>
  8. <a href='javascript:;' class="js-clip" title='点击复制链接' data-url="{php echo $cover['url']}" >{php echo $cover['url']}</a>
  9. <span style="cursor: pointer;" data-toggle="popover" data-trigger="hover" data-html="true"
  10. data-content="<img src='{php echo m('qrcode')->createQrcode($cover['url'])}' width='130' alt='链接二维码'>" data-placement="auto right">
  11. <i class="glyphicon glyphicon-qrcode"></i>
  12. </span>
  13. </p>
  14. </div>
  15. </div>
  16. <div class="form-group">
  17. <label class="col-sm-2 control-label must" >关键词</label>
  18. <div class="col-sm-9 col-xs-12">
  19. {ifp 'sysset.cover.' . $cover['key'] . '.edit'}
  20. <input type='text' class='form-control' name='cover[keyword]' value="{$cover['keyword']['content']}" data-rule-required="true" />
  21. {else}
  22. <div class='form-control-static'>{$cover['keyword']['content']}</div>
  23. {/if}
  24. </div>
  25. </div>
  26. <div class="form-group">
  27. <label class="col-sm-2 control-label">封面标题</label>
  28. <div class="col-sm-9 col-xs-12">
  29. {ifp 'sysset.cover.' . $cover['key'] . '.edit'}
  30. <input type='text' class='form-control' name='cover[title]' value="{$cover['cover']['title']}" />
  31. {else}
  32. <div class='form-control-static'>{$cover['cover']['title']}</div>
  33. {/if}
  34. </div>
  35. </div>
  36. <div class="form-group">
  37. <label class="col-sm-2 control-label">封面图片</label>
  38. <div class="col-sm-9 col-xs-12">
  39. {ifp 'sysset.cover.' . $cover['key'] . '.edit'}
  40. {php echo tpl_form_field_image('cover[thumb]',$cover['cover']['thumb'])}
  41. {else}
  42. {if !empty($cover['cover']['thumb'])}
  43. <a href="{php echo tomedia($cover['cover']['thumb'])}" target='_blank'>
  44. <img src="{php echo tomedia($cover['cover']['thumb'])}" style='width:100px;border:1px solid #ccc;padding:1px' />
  45. </a>
  46. {/if}
  47. {/if}
  48. </div>
  49. </div>
  50. <div class="form-group">
  51. <label class="col-sm-2 control-label">封面描述</label>
  52. <div class="col-sm-9 col-xs-12">
  53. {ifp 'sysset.cover.' . $cover['key'] . '.edit'}
  54. <textarea name='cover[desc]' class='form-control'>{$cover['cover']['description']}</textarea>
  55. {else}
  56. <div class='form-control-static'>{$cover['cover']['description']}</div>
  57. {/if}
  58. </div>
  59. </div>
  60. <div class="form-group">
  61. <label class="col-sm-2 control-label">状态</label>
  62. <div class="col-sm-9">
  63. {ifp 'sysset.cover.' . $cover['key'] . '.edit'}
  64. <label class="radio-inline">
  65. <input type="radio" name="cover[status]" value="0" {if empty($cover['rule']['status'])} checked="checked"{/if} />
  66. 禁用
  67. </label>
  68. <label class="radio-inline">
  69. <input type="radio" name="cover[status]" value="1" {if $cover['rule']['status']==1} checked="checked"{/if}/>
  70. 启用
  71. </label>
  72. {else}
  73. {php echo empty($cover['rule']['status'])?'禁用':'启用'}
  74. {/if}
  75. </div>
  76. </div>
  77. <div class="form-group">
  78. <label class="col-sm-2 control-label"></label>
  79. <div class="col-sm-9">
  80. {ifp 'sysset.cover.' . $cover['key'] . '.edit'}
  81. <input type="submit" value="提交" class="btn btn-primary" />
  82. {/if}
  83. </div>
  84. </div>
  85. </form>
  86. {template '_footer'}