You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
2.1 KiB
51 lines
2.1 KiB
<%@include file="../common/jsp/UsrCheck.jsp"%>
|
|
|
|
<script type="text/javascript">
|
|
var CloudSwitchValue;
|
|
var CloudCode;
|
|
var CloudName;
|
|
var postData=new PostData();
|
|
postData.setVersion2();
|
|
postData.setModuleName("systemmanage");
|
|
postData.setTheRestUrl("/sys/CloudObjectStorageAwsInit/");
|
|
postData.setAction("INIT");
|
|
postData.submit(postData,callBackMethod);
|
|
function callBackMethod(flagStr, content, result) {
|
|
CloudSwitchValue=result.CloudSwitchValue;
|
|
CloudCode=result.CloudCode;
|
|
CloudName=result.CloudName;
|
|
}
|
|
window.initFormsFunctions = [];
|
|
</script>
|
|
<%@include file="CloudObjectStorageAdditionalInits.jsp"%>
|
|
<script type="text/javascript">
|
|
function initMainForm(){
|
|
var csValue = CloudSwitchValue;
|
|
var cCode = CloudCode;
|
|
var cName = CloudName;
|
|
var cosCloudSwitchElement = document.getElementById("CosCloudSwitch");
|
|
var cloudObjectStorageElement = document.getElementById("CloudObjectStorage");
|
|
var cloudObjectStorageNameElement = document.getElementById("CloudObjectStorageName");
|
|
if(cosCloudSwitchElement !== null && cosCloudSwitchElement !== undefined && cosCloudSwitchElement.options && cosCloudSwitchElement.options.length){
|
|
for(var i = 0; i < cosCloudSwitchElement.options.length; i++) {
|
|
if(cosCloudSwitchElement.options[i].value === null || cosCloudSwitchElement.options[i].value === undefined)
|
|
continue;
|
|
if(cosCloudSwitchElement.options[i].value.toUpperCase && csValue.toUpperCase && cosCloudSwitchElement.options[i].value.toUpperCase() == csValue.toUpperCase()) {
|
|
cosCloudSwitchElement.selectedIndex = i;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
if(cCode !== null && cCode !== undefined && cloudObjectStorageElement)
|
|
cloudObjectStorageElement.value = cCode;
|
|
if(cName !== null && cName !== undefined && cloudObjectStorageNameElement)
|
|
cloudObjectStorageNameElement.value = cName;
|
|
}
|
|
function initForms()
|
|
{
|
|
initMainForm();
|
|
for(var i = 0; i < window.initFormsFunctions.length; i++){
|
|
window.initFormsFunctions[i]();
|
|
}
|
|
}
|
|
</script>
|
|
|