diff --git a/application/views/trippest/infobokundata.php b/application/views/trippest/infobokundata.php new file mode 100644 index 00000000..4bc4a9ae --- /dev/null +++ b/application/views/trippest/infobokundata.php @@ -0,0 +1,118 @@ + + + + + + + + + + + + ibd_id; + $ibd_ic_id = $Item->ibd_ic_id; + $ibd_parentId = $Item->ibd_parentId; + $ibd_ItemName = $Item->ibd_ItemName; + $ibd_ItemValue = $Item->ibd_Itemvalue; + $ibd_ItemType = $Item->ibd_ItemType; + $ibd_ItemDescription = $Item->ibd_ItemDescription; + if ($ibd_ItemName == "included" || $ibd_ItemName == "excluded" || $ibd_ItemName == "requirements" || $ibd_ItemName == "attention" || $ibd_ItemName == "ticketMsg" || $ibd_ItemName == "noPickupMsg") { + + + ?> +
+
+ + +
+
+ +
+
+ + +

+
+
+
+
+
+
+ +
+
+    + + +
+ +
+ +
+
+ + +
+
+ + + + \ No newline at end of file diff --git a/js/trippest/trippest.js b/js/trippest/trippest.js new file mode 100644 index 00000000..44231a57 --- /dev/null +++ b/js/trippest/trippest.js @@ -0,0 +1,81 @@ +function tpmeta(meta_act, ibd_id, ibd_Itemvalue = "", ibd_ItemType = "", ibd_ItemDescription = "") { + if (meta_act == "save") { + var url = "/info.php/infobokundata/save_meta" + } + if (meta_act == "delete") { + if (confirm("是否删除该属性?")) { + var url = "/info.php/infobokundata/delete_meta" + } else { + return false + } + } + $.ajax({ + type: "post", + dataType: "json", + url: url, + data: { + "ibd_id": ibd_id, + "ibd_Itemvalue": ibd_Itemvalue, + "ibd_ItemType": ibd_ItemType, + "ibd_ItemDescription": ibd_ItemDescription + }, + success: function (data, textStatus) { + for (var key in data) { + if (data[key].name == "ok") { + if (meta_act == "delete") { + // alert("sss"); + $("#" + ibd_id).closest("div.box").remove(); + // alert("end"); + } + $.modaldialog.success(data[key].value); + return true + } else { + $.modaldialog.error(data[key].value) + } + } + + }, + error: function () { + $.modaldialog.error("更新失败..") + } + }) +} + +function addmeta(ibd_ic_id,ibd_parentId=0,ibd_ItemName,ibd_Itemvalue="",ibd_ItemType="",ibd_ItemDescription="") { + var url = "/info.php/infobokundata/add_meta"; + $.ajax({ + type: "post", + dataType: "json", + url: url, + data: { + "ibd_ic_id": ibd_ic_id, + "ibd_parentId":ibd_parentId, + "ibd_ItemName":ibd_ItemName, + "ibd_Itemvalue": ibd_Itemvalue, + "ibd_ItemType": ibd_ItemType, + "ibd_ItemDescription": ibd_ItemDescription + }, + success: function (data, textStatus) { + for (var key in data) { + if (data[key].name == "ok") { + $.modaldialog.success(data[key].value); + return true + } else { + $.modaldialog.error(data[key].value) + } + } + + }, + error: function () { + $.modaldialog.error("更新失败..") + } + }) +} + +function CheckAddBox() { + if ($("#js_AddBokunBox").is(":visible")){ + $("#js_AddBokunBox").hide(); + }else{ + $("#js_AddBokunBox").show(); + } +}