edit.html 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <form id="form" action="{:url('operate/edit')}">
  2. <input type="hidden" name="id" value="{$info.id}"/>
  3. <table class="formtable">
  4. <tr><th>创始人:</th>
  5. <td>
  6. <input readonly="readonly" id="uid" class="readonly input w100" type="text" name="uid" value="{$info.uid}" />
  7. <button url="{:url('green/operate/selectUser',['input' => 'uid'])}" type="button" class="selectid button"><i class="iconfont icon-my_icon"></i>选择用户</button>
  8. </td>
  9. <tr><th>运营商:</th><td><input class="input" datatype="*" type="text" name="operate_name" value="{$info.operate_name}" /></td></tr>
  10. <tr><th>运营公司:</th><td><input class="input w300" datatype="*" type="text" name="company" value="{$info.company}" /></td></tr>
  11. <tr><th>公司地址:</th><td>
  12. <input class="input w300" datatype="*" type="text" name="address" value="{$info.address}" />
  13. <button type="button" class="button button-green lib"><i class="iconfont icon-address_icon"></i>读取经纬</button>
  14. <input autocomplete="off" class="input w100" datatype="*" type="text" name="longitude" value="{$info.longitude}" />
  15. <input autocomplete="off" class="input w100" datatype="*" type="text" name="latitude" value="{$info.latitude}" /> <br />
  16. <span class="gray"><i class="iconfont icon-address_icon"></i>地址请包含<span class="red">省市地区</span>完整地址,方便位置定位判断</span>
  17. </td></tr>
  18. <tr><th>电话:</th><td><input class="input w200" datatype="n" type="text" name="tel" value="{$info.tel}" /></td></tr>
  19. </tr>
  20. <tr>
  21. <th></th>
  22. <td>
  23. <input type="submit" value="确定" class="button button-blue submit" />
  24. <input type="reset" value="重置" class="button"/>
  25. </td>
  26. </tr>
  27. </table>
  28. </div>
  29. </form>
  30. <script type="text/javascript">
  31. Do('base','layer','form',function(){
  32. $('#form').isForm();
  33. $(".selectid").win();
  34. $(".lib").click(function () {
  35. var val = $("input[name='address']").val();
  36. if(val == "" || val == null || val == undefined){
  37. parent.layer.alert('好店地址必须填写');
  38. }else{
  39. $(this).popup({'url':'{:url("green/device/baidu")}?address='+val,area: ['60%','550px']});
  40. }
  41. });
  42. bindEvent();
  43. })
  44. function setPoint(point){
  45. $("input[name='longitude']").val(point.lng);
  46. $("input[name='latitude']").val(point.lat);
  47. }
  48. </script>