1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <form id="form" action="{:url('device/edit')}">
- <input type="hidden" name="id" value="{$info.id}"/>
- <input type="hidden" name="manage_uid" value="{$info.manage_uid}"/>
- <table class="formtable">
- {if $founder}
- <tr><th>运营商:</th><td>
- <select class="select w180" datatype="*" name="operate_id" class="select">
- <option value="">--请选择运营商--</option>
- {foreach $operate as $vo}<option value="{$vo.id}" {if $vo.id == $info.operate_id}selected{/if}>{$vo.operate_name}</option>{/foreach}
- </select>
- </td></tr>
- {/if}
- <tr><th>设备编号:</th>
- <td>
- <input class="input" datatype="n" type="text" name="device_id" value="{$info.device_id}" />
- </td>
- </tr>
- <tr><th>管理员:</th>
- <td>
- <input readonly="readonly" id="manage_uid" class="readonly input w100" type="text" name="manage_uid" value="{$info.manage_uid}" />
- <button url="{:url('green/device/selectManage',['input' => 'manage_uid'])}" type="button" class="selectPopup button"><i class="iconfont icon-my_icon"></i>选择用户</button>
- {if $info.manage_uid}
- <button url="{:url('green/device/review',['uid' => $info.manage_uid])}" type="button" class="selectPopup button button-blue"><i class="iconfont icon-search_icon"></i>预览</button>
- {/if}
- </td>
- </tr>
- <tr><th>名称:</th><td><input class="input w400" datatype="*" type="text" name="title" value="{$info.title}" /></td></tr>
- <tr><th>地址:</th><td>
- <input class="input w350" datatype="*" type="text" name="address" value="{$info.address}" />
- <button type="button" class="button button-green lib"><i class="iconfont icon-address_icon"></i>读取经纬</button>
- <input autocomplete="off" class="input w100" datatype="*" type="text" name="longitude" value="{$info.longitude}" />
- <input autocomplete="off" class="input w100" datatype="*" type="text" name="latitude" value="{$info.latitude}" /> <br />
- <span class="gray"><i class="iconfont icon-address_icon"></i>地址请包含<span class="red">省市地区</span>完整地址,方便位置定位判断</span>
- </td></tr>
- <tr>
- <th></th>
- <td>
- <input type="submit" value="确定" class="button button-blue submit" />
- <input type="reset" value="重置" class="button button-blank"/>
- </td>
- </tr>
- </table>
- </form>
- <script type="text/javascript">
- Do('base','layer','form','tpl',function(){
- $('#form').isForm();
- $(".selectPopup").win();
- $(".lib").click(function () {
- var val = $("input[name='address']").val();
- if(val == "" || val == null || val == undefined){
- parent.layer.alert('好店地址必须填写');
- }else{
- $(this).popup({'url':'{:url("green/device/baidu")}?address='+val,area: ['60%','550px']});
- }
- });
- bindEvent();
- })
- function setPoint(point){
- $("input[name='longitude']").val(point.lng);
- $("input[name='latitude']").val(point.lat);
- }
- </script>
|