other.html 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. <extend name="Public:base" />
  2. <block name="content">
  3. <div class="page-header">
  4. <h1>
  5. {$breadcrumb2}
  6. <small>
  7. <i class="icon-double-angle-right"></i>
  8. 其他选项
  9. </small>
  10. </h1>
  11. </div>
  12. <div class="row">
  13. <div class="col-xs-12">
  14. <form class="form-horizontal" id="form" method="post" action="{:U('Settings/save')}">
  15. <legend>单位参数</legend>
  16. <div class="form-group">
  17. <label class="col-sm-2 control-label no-padding-left"> 长度单位 </label>
  18. <div class="col-sm-10">
  19. <div class="clearfix">
  20. <select class="form-control" name="length_class_id">
  21. <?php
  22. $length=get_length_list();
  23. if(isset($length)&&is_array($length)){ ?>
  24. <?php foreach ($length as $k => $v){ ?>
  25. <option <?php if($other['length_class_id']['value']==$v['length_class_id']){echo ' selected="selected"';} ?> value="<?php echo $v['length_class_id']; ?>" ><?php echo $v['title']; ?></option>
  26. <?php } ?>
  27. <?php } ?>
  28. </select>
  29. </div>
  30. </div>
  31. </div>
  32. <div class="form-group">
  33. <label class="col-sm-2 control-label no-padding-left"> 重量单位 </label>
  34. <div class="col-sm-10">
  35. <div class="clearfix">
  36. <select class="form-control" name="WEIGHT_ID">
  37. <?php
  38. $weight=get_weight_list();
  39. if(isset($weight)&&is_array($weight)){ ?>
  40. <?php foreach ($weight as $k => $v){ ?>
  41. <option <?php if($other['WEIGHT_ID']['value']==$v['weight_class_id']){echo ' selected="selected"';} ?> value="<?php echo $v['weight_class_id']; ?>" ><?php echo $v['title']; ?></option>
  42. <?php } ?>
  43. <?php } ?>
  44. </select>
  45. </div>
  46. </div>
  47. </div>
  48. <legend>列表参数</legend>
  49. <div class="form-group">
  50. <label class="col-sm-2 control-label no-padding-left"> 前台列表显示数量 </label>
  51. <div class="col-sm-10">
  52. <div class="clearfix">
  53. <input name="FRONT_PAGE_NUM" class="col-xs-10 col-sm-10 form-control" value="{$other.FRONT_PAGE_NUM.value|default=''}" type="text">
  54. </div>
  55. </div>
  56. </div>
  57. <div class="form-group">
  58. <label class="col-sm-2 control-label no-padding-left"> 后台列表显示数量 </label>
  59. <div class="col-sm-10">
  60. <div class="clearfix">
  61. <input name="BACK_PAGE_NUM" class="col-xs-10 col-sm-10 form-control" value="{$other.BACK_PAGE_NUM.value|default=''}" type="text">
  62. </div>
  63. </div>
  64. </div>
  65. <legend>订单状态</legend>
  66. <div class="form-group">
  67. <?php $order_status=get_order_status_list(); ?>
  68. <label class="col-sm-2 control-label no-padding-left"> 默认订单状态 </label>
  69. <div class="col-sm-10">
  70. <div class="clearfix">
  71. <select class="form-control" name="default_order_status_id">
  72. <?php
  73. if(isset($order_status)&&is_array($order_status)){ ?>
  74. <?php foreach ($order_status as $k => $v){ ?>
  75. <option <?php if($other['default_order_status_id']['value']==$v['order_status_id']){echo ' selected="selected"';} ?> value="<?php echo $v['order_status_id']; ?>" ><?php echo $v['name']; ?></option>
  76. <?php } ?>
  77. <?php } ?>
  78. </select>
  79. </div>
  80. </div>
  81. </div>
  82. <div class="form-group">
  83. <label class="col-sm-2 control-label no-padding-left"> 订单付款状态 </label>
  84. <div class="col-sm-10">
  85. <div class="clearfix">
  86. <select class="form-control" name="paid_order_status_id">
  87. <?php
  88. if(isset($order_status)&&is_array($order_status)){ ?>
  89. <?php foreach ($order_status as $k => $v){ ?>
  90. <option <?php if($other['paid_order_status_id']['value']==$v['order_status_id']){echo ' selected="selected"';} ?> value="<?php echo $v['order_status_id']; ?>" ><?php echo $v['name']; ?></option>
  91. <?php } ?>
  92. <?php } ?>
  93. </select>
  94. </div>
  95. </div>
  96. </div>
  97. <div class="form-group">
  98. <label class="col-sm-2 control-label no-padding-left"> 订单完成状态 </label>
  99. <div class="col-sm-10">
  100. <div class="clearfix">
  101. <select class="form-control" name="complete_order_status_id">
  102. <?php
  103. if(isset($order_status)&&is_array($order_status)){ ?>
  104. <?php foreach ($order_status as $k => $v){ ?>
  105. <option <?php if($other['complete_order_status_id']['value']==$v['order_status_id']){echo ' selected="selected"';} ?> value="<?php echo $v['order_status_id']; ?>" ><?php echo $v['name']; ?></option>
  106. <?php } ?>
  107. <?php } ?>
  108. </select>
  109. </div>
  110. </div>
  111. </div>
  112. <div class="form-group">
  113. <label class="col-sm-2 control-label no-padding-left"> 订单取消状态 </label>
  114. <div class="col-sm-10">
  115. <div class="clearfix">
  116. <select class="form-control" name="cancel_order_status_id">
  117. <?php
  118. if(isset($order_status)&&is_array($order_status)){ ?>
  119. <?php foreach ($order_status as $k => $v){ ?>
  120. <option <?php if($other['cancel_order_status_id']['value']==$v['order_status_id']){echo ' selected="selected"';} ?> value="<?php echo $v['order_status_id']; ?>" ><?php echo $v['name']; ?></option>
  121. <?php } ?>
  122. <?php } ?>
  123. </select>
  124. </div>
  125. </div>
  126. </div>
  127. <legend>系统参数</legend>
  128. <div class="form-group">
  129. <label class="col-sm-2 control-label no-padding-left"> 前台ID加密长度 </label>
  130. <div class="col-sm-10">
  131. <div class="clearfix">
  132. <input name="URL_ID" class="col-xs-10 col-sm-10 form-control" value="{$other.URL_ID.value|default=''}" type="text">
  133. </div>
  134. </div>
  135. </div>
  136. <div class="form-group">
  137. <label class="col-sm-2 control-label no-padding-left"> 博客标题 </label>
  138. <div class="col-sm-10">
  139. <div class="clearfix">
  140. <input name="BLOG_TITLE" class="col-xs-10 col-sm-10 form-control" value="{$other.BLOG_TITLE.value|default=''}" type="text">
  141. </div>
  142. </div>
  143. </div>
  144. </form>
  145. <div class="form-group">
  146. <label class="col-sm-1 control-label no-padding-left"> </label>
  147. <div class="col-sm-11">
  148. <button form="form" type="submit" class="btn btn-sm btn-primary">提交</button>
  149. </div>
  150. </div>
  151. </div>
  152. </div>
  153. </block>