Skip to Content.
Sympa Menu

perfsonar-dev - perfsonar: r4265 - branches/WebAdmin

Subject: perfsonar development work

List archive

perfsonar: r4265 - branches/WebAdmin


Chronological Thread 
  • From:
  • To:
  • Subject: perfsonar: r4265 - branches/WebAdmin
  • Date: Tue, 22 Jul 2008 04:40:49 -0400

Author: michalis
Date: 2008-07-22 04:40:48 -0400 (Tue, 22 Jul 2008)
New Revision: 4265

Modified:
branches/WebAdmin/Service_Admin.js
branches/WebAdmin/default.css
branches/WebAdmin/testdepl.jsp
Log:


Modified: branches/WebAdmin/Service_Admin.js
===================================================================
--- branches/WebAdmin/Service_Admin.js 2008-07-21 15:44:35 UTC (rev 4264)
+++ branches/WebAdmin/Service_Admin.js 2008-07-22 08:40:48 UTC (rev 4265)
@@ -31,7 +31,7 @@
reset_button.style.left = 83 + '%';
}
else {
- //alert("Not 768 "+x);
+ //alert("Not 768 "+x);
reset_button.style.top = 95 + '%';
reset_button.style.left = 67 + '%';
}
@@ -42,7 +42,7 @@
button.style.left = 91.5 + '%';
}
else {
- button.style.top = 95 + '%';
+ button.style.top = 95 + '%';
button.style.left = 74 + '%';
}
}
@@ -55,68 +55,74 @@
onresize = FloatPosition;

function checkStarFields(){
-
- var divs = document.getElementsByTagName("div");
- var filled=true;
-
- for (var i = 0; i < divs.length; i++) {
-
- var div=divs[i];
- if(div.style.display=="block"){
- var input_array=div.getElementsByTagName("input");
- var text=document.createElement("td");
- var ex=document.getElementById("extra");
- if(ex!=null){
- var p= ex.parentNode;
- p.removeChild(ex);
- }
- text.id="extra";
- text.innerHTML='<p style=\"color:red;\">Please fill in the
field!</p>';
-
- for (var j = 0; j < input_array.length; j++) {
-
- var input = input_array[j];
- if(input.id=="required"){
- var parent=input.parentNode.parentNode;
- if(input.value==null || input.value=="" ||
input.value==" "){
- filled=false;
- parent.appendChild(text);
- return filled;
- }
-
- }
-
- }
- }
-
- }
-
- return filled;
-
+
+ var divs = document.getElementsByTagName("div");
+ var filled = true;
+
+ for (var i = 0; i < divs.length; i++) {
+
+ var div = divs[i];
+ if (div.style.display == "block") {
+ var input_array = div.getElementsByTagName("input");
+
+ var text = document.createElement("td");
+ var ex = document.getElementById("extra");
+ if (ex != null) {
+ var p = ex.parentNode;
+ p.removeChild(ex);
+ }
+ text.id = "extra";
+ text.innerHTML = '<p style=\"color:red;\">Please fill in the
field!</p>';
+
+ for (var j = 0; j < input_array.length; j++) {
+
+ var input = input_array[j];
+
+ if (input.id == "required") {
+
+ var parent = input.parentNode.parentNode;
+ if (input.value == null || input.value == "" ||
input.value == " ") {
+ if
(parent.parentNode.parentNode.parentNode.style.display == "block") {
+ filled = false;
+ parent.appendChild(text);
+ return filled;
+ }
+
+ }
+
+ }
+
+ }
+ }
+
+ }
+
+ return filled;
+
}

function getDate(){
-
-var date = document.getElementById("date");

-var stampdays = new Array(
"Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
-
-var stampmonths = new Array(
"January","February","March","April","May","June","July","August","September","October","November","December");
-
-var thedate = new Date();
-
-date.innerHTML=stampdays[ thedate.getDay()] + ", " + stampmonths[
thedate.getMonth()] + " " + thedate.getDate() + ", " +
thedate.getFullYear();
-
+ var date = document.getElementById("date");
+
+ var stampdays = new Array("Sunday", "Monday", "Tuesday", "Wednesday",
"Thursday", "Friday", "Saturday");
+
+ var stampmonths = new Array("January", "February", "March", "April",
"May", "June", "July", "August", "September", "October", "November",
"December");
+
+ var thedate = new Date();
+
+ date.innerHTML = stampdays[thedate.getDay()] + ", " +
stampmonths[thedate.getMonth()] + " " + thedate.getDate() + ", " +
thedate.getFullYear();
+
}

function highlight(el){
- //alert("Highlighted");
- var links=document.getElementsByTagName("a");
- for (var i = 0; i < links.length; i++) {
-
- var link = links[i];
-
- link.className
- }
+ alert("Highlighted");
+ var links = document.getElementsByTagName("a");
+ for (var i = 0; i < links.length; i++) {
+
+ var link = links[i];
+
+ link.className
+ }
}


Modified: branches/WebAdmin/default.css
===================================================================
--- branches/WebAdmin/default.css 2008-07-21 15:44:35 UTC (rev 4264)
+++ branches/WebAdmin/default.css 2008-07-22 08:40:48 UTC (rev 4265)
@@ -51,6 +51,16 @@
margin-bottom: 20px;
}

+.inner_properties {
+ padding:0px;
+ margin:0px;
+}
+.inner_properties table{
+ border: none;
+ margin:0px;
+ padding:0px;
+}
+
.properties td {
padding: 15px;
font-family: Verdana, Arial, Helvetica, sans-serif;

Modified: branches/WebAdmin/testdepl.jsp
===================================================================
--- branches/WebAdmin/testdepl.jsp 2008-07-21 15:44:35 UTC (rev 4264)
+++ branches/WebAdmin/testdepl.jsp 2008-07-22 08:40:48 UTC (rev 4265)
@@ -8,7 +8,6 @@
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1"/>
<title>Untitled Document</title>
<link rel="stylesheet" type="text/css" href="main.css"/>
- <link rel="stylesheet" type="text/css" href="default.css"/>
</head>
<body style="background-color: #FFFFFF" >

@@ -58,13 +57,13 @@
switch(ret)
{
case 0:
- result = "<br/>Contacted endpoint :<br/>" +
endpoint + "<br/> Deployment test successful.";
+ result = "<br/>Contacted endpoint
:<br/><br/>" + endpoint + "<br/><br/> Deployment test successful.";
parms1 = " class=\"testdeplsucc\"";
cssName2 = "\"testdeplretbn\"";
break;
default:
result = "";
- parms1 = " style=\"width:550px;height:300px\"
class=\"testdeplfail\"";
+ parms1 = " style=\"width:550px;height:150px\"
class=\"testdeplfail\"";
cssName2 = "\"testdeplretbn2\"";
break;




  • perfsonar: r4265 - branches/WebAdmin, svnlog, 07/22/2008

Archive powered by MHonArc 2.6.16.

Top of Page