基于帝国7.5版本,相关php文件已经修改完毕,安装后,数据库增加留言字段getcity和geturl字段即可使用。具体修改教程请查看本站文章:待更新
格式:
ALTER TABLE 表名_enewsgbook ADD 字段 VARCHAR(100);例如:
ALTER TABLE phome_enewsgbook ADD geturl VARCHAR(100);ALTER TABLE phome_enewsgbook ADD getcity VARCHAR(100);附件地址:
008ecms7.5.rar
<form name="feedback" action="/e/enews/index.php" method="post" enctype="multipart/form-data"> <label>Name</label> <input type="text" name="name" placeholder="Your name" required> <div class="row"> <div class="contact-left-w3"> <label>Email</label> <input type="email" name="email" placeholder="Email address" required> </div> <div class="contact-right-w3l"> <label>Phone</label> <input type="tel" name="mycall" placeholder="Phone number" required> </div> <div class="clear"></div> </div> <!-- <label>Address</label> --> <input type="hidden" id="geturl" name="geturl" value="" placeholder="Address" required> <input type="hidden" id="getcity" name="getcity" value="" placeholder="City" required> <div class="row1"> <label>Message</label> <textarea placeholder="Message" name="lytext"></textarea> </div> <input type="hidden" name="enews" id="" value="AddGbook" /> <input type="hidden" name="bid" id="" value="1" /> <input type="hidden" name="ecmsfrom" id="" value="window.history.back(-1)" /> <input type="submit" value="Send message"></form><script src="http://pv.sohu.com/cityjson?ie=utf-8 "></script>//搜狐IP地址库接口<script type="text/javascript"> window.onload = function() { var source_url = document.getElementById("geturl"); var city_address = document.getElementById("getcity"); source_url.value = decodeURI(window.location.href); city_address.value = returnCitySN['cname']; source_url.innerHTML(source_url.value); city_address.innerHTML(city_address.value); }</script> |
|
|
|
|
|
精彩评论 (0)