bhq@iemsoft.cn
2018-11-27 e2b48dac099e43f4b3243cdf19a7522e4b5eccbe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
      <tr>
        <td class="label" valign="top">
          <?php if ($this->_var['var']['desc']): ?>
          <a href="javascript:showNotice('notice<?php echo $this->_var['var']['code']; ?>');" title="<?php echo $this->_var['lang']['form_notice']; ?>"><img src="images/notice.gif" width="16" height="16" border="0" alt="<?php echo $this->_var['lang']['form_notice']; ?>" /></a>
          <?php endif; ?>
          <?php if ($this->_var['var']['name'] != "jingdu" && $this->_var['var']['name'] != "weidu"): ?>
          <?php echo $this->_var['var']['name']; ?>:
          <?php endif; ?>
        </td>
        <td>
          <?php if ($this->_var['var']['type'] == "text"): ?>
          <input name="value[<?php echo $this->_var['var']['id']; ?>]" type="text" value="<?php echo $this->_var['var']['value']; ?>" size="40" />
 
          <?php elseif ($this->_var['var']['type'] == "password"): ?>
          <input name="value[<?php echo $this->_var['var']['id']; ?>]" type="password" value="<?php echo $this->_var['var']['value']; ?>" size="40" />
 
          <?php elseif ($this->_var['var']['type'] == "textarea"): ?>
          <textarea name="value[<?php echo $this->_var['var']['id']; ?>]" cols="40" rows="5"><?php echo $this->_var['var']['value']; ?></textarea>
 
          <?php elseif ($this->_var['var']['type'] == "select"): ?>
          <?php $_from = $this->_var['var']['store_options']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('k', 'opt');if (count($_from)):
    foreach ($_from AS $this->_var['k'] => $this->_var['opt']):
?>
          <label for="value_<?php echo $this->_var['var']['id']; ?>_<?php echo $this->_var['k']; ?>"><input type="radio" name="value[<?php echo $this->_var['var']['id']; ?>]" id="value_<?php echo $this->_var['var']['id']; ?>_<?php echo $this->_var['k']; ?>" value="<?php echo $this->_var['opt']; ?>"
            <?php if ($this->_var['var']['value'] == $this->_var['opt']): ?>checked="true"<?php endif; ?>
            <?php if ($this->_var['var']['code'] == 'rewrite'): ?>
              onclick="return ReWriterConfirm(this);"
            <?php endif; ?>
            <?php if ($this->_var['var']['code'] == 'smtp_ssl' && $this->_var['opt'] == 1): ?>
              onclick="return confirm('<?php echo $this->_var['lang']['smtp_ssl_confirm']; ?>');"
            <?php endif; ?>
            <?php if ($this->_var['var']['code'] == 'enable_gzip' && $this->_var['opt'] == 1): ?>
              onclick="return confirm('<?php echo $this->_var['lang']['gzip_confirm']; ?>');"
            <?php endif; ?>
            <?php if ($this->_var['var']['code'] == 'retain_original_img' && $this->_var['opt'] == 0): ?>
              onclick="return confirm('<?php echo $this->_var['lang']['retain_original_confirm']; ?>');"
            <?php endif; ?>
          /><?php echo $this->_var['var']['display_options'][$this->_var['k']]; ?></label>
          <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
 
          <?php elseif ($this->_var['var']['type'] == "options"): ?>
          <select name="value[<?php echo $this->_var['var']['id']; ?>]" id="value_<?php echo $this->_var['var']['id']; ?>_<?php echo $this->_var['key']; ?>">
            <?php echo $this->html_options(array('options'=>$this->_var['lang']['cfg_range'][$this->_var['var']['code']],'selected'=>$this->_var['var']['value'])); ?>
          </select>
 
          <?php elseif ($this->_var['var']['type'] == "file"): ?>
          <input name="<?php echo $this->_var['var']['code']; ?>" type="file" size="40" />
          <?php if (( $this->_var['var']['code'] == "shop_logo" || $this->_var['var']['code'] == "no_picture" || $this->_var['var']['code'] == "watermark" || $this->_var['var']['code'] == "shop_slagon" || $this->_var['var']['code'] == "wap_logo" ) && $this->_var['var']['value']): ?>
            <a href="?act=del&code=<?php echo $this->_var['var']['code']; ?>"><img src="images/no.gif" alt="Delete" border="0" /></a> <img src="images/yes.gif" border="0" onmouseover="showImg('<?php echo $this->_var['var']['code']; ?>_layer', 'show')" onmouseout="showImg('<?php echo $this->_var['var']['code']; ?>_layer', 'hide')" />
            <div id="<?php echo $this->_var['var']['code']; ?>_layer" style="position:absolute; width:100px; height:100px; z-index:1; visibility:hidden" border="1">
              <img src="<?php echo $this->_var['var']['value']; ?>" border="0" />
            </div>
          <?php else: ?>
            <?php if ($this->_var['var']['value'] != ""): ?>
            <img src="images/yes.gif" alt="yes" />
            <?php else: ?>
            <img src="images/no.gif" alt="no" />
            <?php endif; ?>
          <?php endif; ?>
          <?php elseif ($this->_var['var']['type'] == "manual"): ?>
 
            <?php if ($this->_var['var']['code'] == "shop_country"): ?>
              <select name="value[<?php echo $this->_var['var']['id']; ?>]" id="selCountries" onchange="region.changed(this, 1, 'selProvinces')">
                <option value=''><?php echo $this->_var['lang']['select_please']; ?></option>
                <?php $_from = $this->_var['countries']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'region');if (count($_from)):
    foreach ($_from AS $this->_var['region']):
?>
                  <option value="<?php echo $this->_var['region']['region_id']; ?>" <?php if ($this->_var['region']['region_id'] == $this->_var['cfg']['shop_country']): ?>selected<?php endif; ?>><?php echo $this->_var['region']['region_name']; ?></option>
                <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
              </select>
                  <?php elseif ($this->_var['var']['code'] == "shop_province"): ?>
              <select name="value[<?php echo $this->_var['var']['id']; ?>]" id="selProvinces" onchange="region.changed(this, 2, 'selCities')">
                <option value=''><?php echo $this->_var['lang']['select_please']; ?></option>
                <?php $_from = $this->_var['provinces']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'region');if (count($_from)):
    foreach ($_from AS $this->_var['region']):
?>
                  <option value="<?php echo $this->_var['region']['region_id']; ?>" <?php if ($this->_var['region']['region_id'] == $this->_var['cfg']['shop_province']): ?>selected<?php endif; ?>><?php echo $this->_var['region']['region_name']; ?></option>
                <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
              </select>
            <?php elseif ($this->_var['var']['code'] == "shop_city"): ?>
              <select name="value[<?php echo $this->_var['var']['id']; ?>]" id="selCities">
                <option value=''><?php echo $this->_var['lang']['select_please']; ?></option>
                <?php $_from = $this->_var['cities']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'region');if (count($_from)):
    foreach ($_from AS $this->_var['region']):
?>
                  <option value="<?php echo $this->_var['region']['region_id']; ?>" <?php if ($this->_var['region']['region_id'] == $this->_var['cfg']['shop_city']): ?>selected<?php endif; ?>><?php echo $this->_var['region']['region_name']; ?></option>
                <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
              </select>
     <div style="width:850px;margin:auto;">   
        请输入要查询的地址(北京):<input id="text_" type="text" value="北京" style="min-width:150px;"/>
        <input type="button" value="查询" onclick="searchByStationName();"/><br>
        <font color=gray>请启用滚轮放大地图然后将标注拖动到具体位置可显示其经纬度</font>
        <div id="container" 
              style="position: absolute;
                margin-left:450px; 
                width: 500px; 
                height: 400px; 
                top: 98px; 
                border: 1px solid gray;
                overflow:hidden;">
        </div>
    </div>
        <div id="r-result" style="float:left;width:100px;" ></div> 
        <div id="r-result2"  style="float:left;width:100px;"></div><br>        
        经度:<input name="jingdu" type="text" value="<?php echo $this->_var['supplier_info']['longitude']; ?>" id="jingdu"  style="min-width:90px;"/>
        纬度:<input name="weidu" type="text" value="<?php echo $this->_var['supplier_info']['latitude']; ?>" id="weidu" style="min-width:90px;" /> 
            <?php elseif ($this->_var['var']['code'] == "lang"): ?>
                  <select name="value[<?php echo $this->_var['var']['id']; ?>]">
                  <?php echo $this->html_options(array('values'=>$this->_var['lang_list'],'output'=>$this->_var['lang_list'],'selected'=>$this->_var['var']['value'])); ?>
                  </select>
            <?php elseif ($this->_var['var']['code'] == "invoice_type"): ?>
            <table>
              <tr>
                <th scope="col"><?php echo $this->_var['lang']['invoice_type']; ?></th>
                <th scope="col"><?php echo $this->_var['lang']['invoice_rate']; ?></th>
              </tr>
              <tr>
                <td><input name="invoice_type[]" type="text" value="<?php echo $this->_var['cfg']['invoice_type']['type']['0']; ?>" /></td>
                <td><input name="invoice_rate[]" type="text" value="<?php echo $this->_var['cfg']['invoice_type']['rate']['0']; ?>" /></td>
              </tr>
              <tr>
                <td><input name="invoice_type[]" type="text" value="<?php echo $this->_var['cfg']['invoice_type']['type']['1']; ?>" /></td>
                <td><input name="invoice_rate[]" type="text" value="<?php echo $this->_var['cfg']['invoice_type']['rate']['1']; ?>" /></td>
              </tr>
              <tr>
                <td><input name="invoice_type[]" type="text" value="<?php echo $this->_var['cfg']['invoice_type']['type']['2']; ?>" /></td>
                <td><input name="invoice_rate[]" type="text" value="<?php echo $this->_var['cfg']['invoice_type']['rate']['2']; ?>" /></td>
              </tr>
            </table>
            <?php endif; ?>
          <?php endif; ?>
          <?php if ($this->_var['var']['desc']): ?>
          <br />
          <span class="notice-span" <?php if ($this->_var['help_open']): ?>style="display:block" <?php else: ?> style="display:none" <?php endif; ?> id="notice<?php echo $this->_var['var']['code']; ?>"><?php echo nl2br($this->_var['var']['desc']); ?></span>
          <?php endif; ?>
        </td>
      </tr>