<tr> <td>District <span class="red">*</span></td> <td valign="top"><div id="divdistrict"> <select name="district" id="district" class="form-control drop_down" onChange="return CallCity(this.value)"> <option value="">Select District</option> <option value="<?php echo $result['District_id']; ?> " <?php if (isset($result['id']) && $result['District_id'] == $result['District_id']) { ?> selected<?php } ?> ><?php echo getdistrict(stripslashes(ucfirst($result['District_id']))); ?> </option> </select> </div></td> <td>City <span class="red">*</span></td> <td><div id="divcity"> <select name="city" id="city" onChange="return CallArea(this.value)" class="form-control drop_down" > <option value="">Select City</option> <option value="<?php echo $result['City']; ?> " <?php if (isset($result['id']) && $result['City'] == $result['City']) { ?> selected<?php
if ($kolor % 2 == 0) { $class = "bgcolor='#ffffff'"; } else { $class = "bgcolor='#fff'"; } ?> <tr <?php print $class; ?> > <td><small><?php print $kolor++; ?> .</small></td> <td><small><?php echo getdistrict(stripslashes($row["District_ID"])); ?> </small></td> <td><small><?php echo stripslashes($row["City_Name"]); ?> </small></td> <td> <a href="#" onClick="if(confirm('Do you really want to delete this record?')){ window.location.href='manage_city.php?id=<?php echo $row["City_id"]; ?> &type=del&token=<?php echo $token; ?> ' } " > <img src="images/drop.png" title="Delete" border="0" />
?> </small></td> <td><small><?php echo stripslashes($row["cname"]); ?> </small></td> <td><small><?php echo stripslashes($row["address"]); ?> </small></td> <td><small><?php echo getstate(stripslashes($row["state"])); ?> </small></td> <td><small><?php echo getdistrict(stripslashes($row["district"])); ?> </small></td> <td><small><?php echo getcity(stripslashes($row["city"])); ?> </small></td> <td><small><?php echo getarea(stripslashes($row["area"])); ?> </small></td> <td><small><?php echo stripslashes($row["Cdate"]); ?> </small></td> <td><a href="assign_service.php?cust_id=<?php
<th>城市</th> <th>状态</th> <th>管理</th> </tr> </thead> <tbody> <?php foreach ($plist as $row) { ?> <tr> <td><?php echo $row['id']; ?> </td> <td><?php echo getdistrict($row['pid']); ?> </td> <td><?php echo $row['name']; ?> </td> <td><?php echo getstatusstr($row['status']); ?> </td> <td> <a href="?mod=product&act=editcity&pid=<?php echo $row['pid']; ?> &id=<?php
} ?> " class="form-control text_box" readonly></td> <td>State</td> <td><input type="text" name="state" id="state" value="<?php if (isset($result['cust_id'])) { echo getstate($result['State']); } ?> " class="form-control text_box" readonly></td> </tr> <tr > <td>District</td> <td><input type="text" name="district" id="district" value="<?php if (isset($result['cust_id'])) { echo getdistrict($result['District_id']); } ?> " class="form-control text_box" readonly></td> <td>City</td> <td><input type="text" name="city" id="city" value="<?php if (isset($result['cust_id'])) { echo getcities($result['City']); } ?> " class="form-control text_box" readonly></td> </tr> <tr > <td>Area</td> <td><input type="text" name="customer_name8" id="customer_name8" value="<?php if (isset($result['cust_id'])) {
function joininfo_save() { $name = getgpc("name"); $tel = getgpc("tel"); $intr = getgpc("intr"); $pid = getgpc("pid"); $cid = getgpc("cid"); $province = getdistrict($pid); $city = getdistrict($cid); if (empty($name)) { js_alert("请输入姓名", ""); } if (empty($tel)) { js_alert("请输入联系电话"); } if (empty($pid)) { js_alert("请选择省份", ""); } if (empty($cid)) { js_alert("请选择城市", ""); } if (empty($intr)) { js_alert("请输入加盟意向"); } $province = getdistrict($pid); $indata = array("pid" => $pid, "cid" => $cid, "province" => $province, "city" => $city, "name" => $name, "tel" => $tel, "intr" => $intr, "reply_sign" => 1, "displayorder" => 0, "status" => 1); $indata["gtime"] = date("Y-m-d H:i:s"); dbinsert("joininfo", $indata); $tmp_province = mb_substr($province, 0, 2, 'utf-8'); $sql = "select tel from " . dbtable("joininfo_area") . " where area like '%{$tmp_province}%'"; $sql .= " union select tel from " . dbtable("joininfo_area") . " where area=''"; $res = fetch_array($sql); $send_message = $name . "先生/小姐,电话:" . $tel . ",省份:" . $province . ",城市:" . $city . ",加盟意向" . $intr . "【斯林百兰】"; // $send_message=GetContentLength($message,$intr,"64"); $mobile = ""; foreach ($res as $key => $row) { if ($key != 0) { $mobile .= ","; } $mobile .= $row['tel']; } $send_sign = send_message($mobile, $send_message); // if($send_sign=="1") // { // js_alert("发送短信成功"); // }else{ // js_alert($send_sign); // } js_alert("提交成功", "top.location.href='?c=home&m=joininfo'"); }
public function saveedit_shop() { //保存门店 $id = getgpc("id"); if ($id) { $res = fetch_one_array("select * from " . dbtable("shop") . " where id ='" . $id . "' "); if (!$res) { alert("错误,没有找到该数据", ""); } } $pid = getgpc("pid"); $cid = getgpc("cid"); $log = getgpc("log"); $lat = getgpc("lat"); $province = getdistrict($pid); $city = getdistrict($cid); $level = getgpc("level"); $tname = getgpc("tname"); $addr = getgpc("addr"); //$city=getgpc("city"); $tel = getgpc("tel"); $indata = array("pid" => $pid, "cid" => $cid, "level" => $level, "log" => $log, "lat" => $lat, "province" => $province, "city" => $city, "tname" => $tname, "addr" => $addr, "tel" => $tel); if (!$id) { dbinsert("shop", $indata); } else { dbupdate("shop", $indata, array('id' => $id)); } alert("保存成功", "admin.php?mod=product&act=shop"); }