Add: send mail - maestro upgrade
This commit is contained in:
@@ -68,7 +68,7 @@
|
||||
+ " <input type='text' class='maestro_upgrade_id d-none' disabled value='" + jsonList[i].maestroUpgradeID + "'>"
|
||||
+ " <input type='text' class='maestro_id d-none' disabled value='" + jsonList[i].maestroID + "'>"
|
||||
+ " <input type='text' class='col-sm' disabled value='" + jsonList[i].maestroName + "'>"
|
||||
+ " <input type='text' class='col-sm' disabled value='" + accoutType(jsonList[i].registeredAccountType) + "'>"
|
||||
+ " <input type='text' class='registered_account_type col-sm' disabled value='" + accoutType(jsonList[i].registeredAccountType) + "'>"
|
||||
+ " <input type='text' class='new_account_type col-sm' disabled value='" + accoutType(jsonList[i].requestedAccountType) + "'>"
|
||||
+ " <input type='text' class='col-sm' disabled value='" + NumberUtil.numberWithCommas(price(jsonList[i].requestedAccountType, jsonList[i].registeredAccountType)) + "'>"
|
||||
+ " <input type='text' class='col-sm' disabled value='" + jsonList[i].requestedDateTime + "'>"
|
||||
@@ -82,7 +82,7 @@
|
||||
+ " <input type='text' class='maestro_upgrade_id d-none' disabled value='" + jsonList[i].maestroUpgradeID + "'>"
|
||||
+ " <input type='text' class='maestro_id d-none' disabled value='" + jsonList[i].maestroID + "'>"
|
||||
+ " <input type='text' class='col-sm text-success' disabled value='" + jsonList[i].maestroName + "'>"
|
||||
+ " <input type='text' class='col-sm text-success' disabled value='" + accoutType(jsonList[i].registeredAccountType) + "'>"
|
||||
+ " <input type='text' class='registered_account_type col-sm text-success' disabled value='" + accoutType(jsonList[i].registeredAccountType) + "'>"
|
||||
+ " <input type='text' class='new_account_type col-sm text-success' disabled value='" + accoutType(jsonList[i].requestedAccountType) + "'>"
|
||||
+ " <input type='text' class='col-sm text-success' disabled value='" + NumberUtil.numberWithCommas(price(jsonList[i].requestedAccountType, jsonList[i].registeredAccountType)) + "'>"
|
||||
+ " <input type='text' class='col-sm text-success' disabled value='" + jsonList[i].requestedDateTime + "'>"
|
||||
@@ -111,35 +111,40 @@
|
||||
// var maestroID = $(inputButton).siblings(".maestro_id");
|
||||
// var id = maestroID.text();
|
||||
// var accountType = $(inputButton).siblings(".requested_account_type");
|
||||
// var newAccountType = accoutTypeValue(accountType.val());
|
||||
// var upgradeAccountType = accoutTypeValue(accountType.val());
|
||||
|
||||
var children = inputButton.parentElement.childNodes;
|
||||
var maestroUpgradeID;
|
||||
var maestroID;
|
||||
var newAccountType;
|
||||
var registeredAccountType;
|
||||
var upgradeAccountType;
|
||||
for (var i=0; i < children.length; i++) {
|
||||
// console.log(children);
|
||||
if (children[i].className == "maestro_upgrade_id d-none") {
|
||||
maestroUpgradeID = children[i].value;
|
||||
continue;
|
||||
}
|
||||
if (children[i].className == "maestro_id d-none") {
|
||||
} else if (children[i].className == "maestro_id d-none") {
|
||||
maestroID = children[i].value;
|
||||
continue;
|
||||
}
|
||||
if (children[i].className == "new_account_type col-sm") {
|
||||
// newAccountType = children[i].value;
|
||||
newAccountType = accoutTypeValue(children[i].value);
|
||||
} else if (children[i].className == "registered_account_type col-sm") {
|
||||
// upgradeAccountType = children[i].value;
|
||||
registeredAccountType = accoutTypeValue(children[i].value);
|
||||
continue;
|
||||
} else if (children[i].className == "new_account_type col-sm") {
|
||||
// upgradeAccountType = children[i].value;
|
||||
upgradeAccountType = accoutTypeValue(children[i].value);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
// console.log(maestroUpgradeID);
|
||||
// console.log(maestroID);
|
||||
// console.log(newAccountType);
|
||||
// console.log(registeredAccountType);
|
||||
// console.log(upgradeAccountType);
|
||||
// return;
|
||||
|
||||
sendRequestServer( //url, sendParams, onSuccess, onFail, isDebugMode);
|
||||
"./../server/admin/upgrade_maestro.php",
|
||||
"maestro_upgrade_id=" + maestroUpgradeID + "&maestro_id=" + maestroID + "&new_account_type=" + newAccountType,
|
||||
"maestro_upgrade_id=" + maestroUpgradeID + "&maestro_id=" + maestroID + "®istered_account_type=" + registeredAccountType+ "&upgrade_account_type=" + upgradeAccountType,
|
||||
|
||||
function(jsonData) {
|
||||
loadMaestroUpgradeList("");
|
||||
|
||||
Reference in New Issue
Block a user