12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- function opencnxpopup(webroot) {
-
- var dbhost = document.getElementById('id_vdbhost').value;
- var dblogin = document.getElementById('id_vdbuser').value;
- var dbpass = document.getElementById('id_vdbpassword').value;
-
- var url = webroot+"/plugin/vchamilo/views/manage.testcnx.php" + "?" + "vdbhost=" + dbhost + "&" + "vdblogin=" + dblogin
- + "&" + "vdbpass=" + dbpass;
-
- var options = "width=500,height=300,toolbar=no,menubar=no,location=no,scrollbars=no,status=no";
-
- var windowobj = window.open(url, '', options);
- }
- function opendatapathpopup(webroot) {
-
- var datapath = document.getElementById('id_vdatapath').value;
-
- var url = webroot + "/plugin/vchamilo/views/manage.testdatapath.php?dataroot=" + escape(datapath);
-
- var options = "width=500,height=300,toolbar=no,menubar=no,location=no,scrollbars=no,status=no";
-
- var windowobj = window.open(url, '', options);
-
-
- }
- function switcherServices(mnetnewsubnetwork) {
-
- var mnetenabled = document.getElementById('id_mnetenabled');
- var multimnet = document.getElementById('id_multimnet');
- var services = document.getElementById('id_services');
-
- var mnetfreedefault = '0';
- var defaultservices = 'default';
- var subnetworkservices = 'subnetwork';
-
- if (multimnet.value == mnetfreedefault
- || multimnet.value == mnetnewsubnetwork) {
- services.value = defaultservices;
- services.disabled = true;
- } else {
- services.disabled = false;
- services.value = subnetworkservices;
- }
- }
- function syncSchema(){
- var originelement = document.getElementById("id_shortname");
- var syncedelement2 = document.getElementById("id_vdbname");
- var syncedelement3 = document.getElementById("id_vdatapath");
- var syncedelement4 = document.getElementById("id_vhostname");
- syncedelement2.value = syncedelement2.value.replace(/<%%INSTANCE%%>/g, originelement.value);
- syncedelement3.value = syncedelement3.value.replace(/<%%INSTANCE%%>/g, originelement.value);
- syncedelement4.value = syncedelement4.value.replace(/<%%INSTANCE%%>/g, originelement.value);
- }
- function onLoadInit(){
- var originelement = document.getElementById("id_shortname");
- originelement.onchange = syncSchema;
- }
|