Author: prasad
Date: Fri Jan 18 02:16:35 2008
New Revision: 12473

Log:

Added style to scraper page.

Added:
   trunk/mashup/java/modules/www/scraper.jsp
Removed:
   trunk/mashup/java/modules/www/scraper.html
Modified:
   trunk/mashup/java/modules/www/taskbar.jsp

Added: trunk/mashup/java/modules/www/scraper.jsp
==============================================================================
--- (empty file)
+++ trunk/mashup/java/modules/www/scraper.jsp   Fri Jan 18 02:16:35 2008
@@ -0,0 +1,196 @@
+
+<%--
+ * Copyright 2006,2007 WSO2, Inc. http://www.wso2.org
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+--%>
+<%@ page isErrorPage="true" %>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<%@ page import="org.wso2.mashup.utils.MashupUtils" %>
+<%@ page import="org.wso2.mashup.webapp.utils.RegistryUtils" %>
+<%@ page import="org.wso2.registry.Registry" %>
+<%@ page import="java.net.URLDecoder" %>
+<%@ page import="java.util.Enumeration" %>
+
+<!--Required to keep a user logged in if 'Remember Me' option is selected-->
+<%@ include file="validate_login.jsp" %>
+
+<%
+    //Disabling browser caching
+    response.setHeader("Cache-Control", "no-cache"); //HTTP 1.1
+    response.setHeader("Pragma", "no-cache"); //HTTP 1.0
+    response.setDateHeader("Expires", 0); //prevents caching at the proxy 
server
+
+    String bounceback = request.getParameter("bounceback");
+
+    if (bounceback == null) {
+        bounceback = "index.jsp";
+    } else {
+        bounceback = URLDecoder.decode(bounceback, "UTF-8");
+    }
+
+    // Set bounceback location
+    String queryString = request.getQueryString();
+    String thisPage = URLEncoder
+            .encode("editor.jsp" + (queryString == null ? "" : "?" + 
queryString), "UTF-8");
+
+
+%>
+<html>
+<head>
+    <title>WSO2 Mashup Server - Scraping Assistant</title>
+       <link href="css/styles.css" rel="stylesheet" type="text/css"/>
+    <link rel="stylesheet" type="text/css" href="js/yui/grids/grids.css">
+    <link rel="stylesheet" type="text/css" href="js/yui/menu/assets/menu.css">
+
+    <style type="text/css">
+        .url-section {
+            background-color: #ffffff;
+            text-align: center;
+            height: 20%;
+            color: #333333;
+            font-family: "Lucida Grande", "Lucida Sans Unicode", sans-serif;
+            font-size: 0.9em;
+            font-size-adjust: none;
+            font-style: normal;
+            font-variant: normal;
+            font-weight: normal;
+            line-height: 150%;
+            cursor: default;
+            direction: ltr;
+        }
+
+        .scraper-config-section {
+            background-color: #ffffff;
+            text-align: center;
+            height: 60%;
+            border-color: darkgray;
+            color: #333333;
+            font-family: "Lucida Grande", "Lucida Sans Unicode", sans-serif;
+            font-size: 0.9em;
+            font-size-adjust: none;
+            font-style: normal;
+            font-variant: normal;
+            font-weight: normal;
+            line-height: 150%;
+            cursor: default;
+            direction: ltr;
+        }
+
+        .header-section {
+            background-image: url( images/mashup_header_left.gif );
+            background-position: center top;
+            background-repeat: repeat-x;
+            height: 87px;
+            color: #333333;
+            font-family: Verdana, Arial, Sans-Serif, Helvetica, 'Lucida 
Grande';
+            font-size: 12px;
+            line-height: 140%;
+        }
+
+        .border-highlight {
+            border: ".03em solid red";
+        }
+
+        .border-reset {
+            border: ".03em solid red";
+        }
+
+        .footer-section {
+            text-align: center;
+            margin-top: 10px;
+            color: #333333;
+            font-family: Verdana, Arial, Sans-Serif, Helvetica, 'Lucida 
Grande';
+            font-size: 0.8em;
+            line-height: 140%;
+        }
+
+    .scraper-config-section1 {            background-color: #ffffff;
+            text-align: center;
+            height: 60%;
+            border-color: darkgray;
+            color: #333333;
+            font-family: "Lucida Grande", "Lucida Sans Unicode", sans-serif;
+            font-size: 0.9em;
+            font-size-adjust: none;
+            font-style: normal;
+            font-variant: normal;
+            font-weight: normal;
+            line-height: 150%;
+            cursor: default;
+            direction: ltr;
+}
+    </style>
+
+
+    <!-- YUI Dependencies-->
+    <script type="text/javascript" 
src="js/yui/yahoo-dom-event/yahoo-dom-event.js"></script>
+    <script type="text/javascript" 
src="js/yui/container/container_core.js"></script>
+    <script type="text/javascript" src="js/yui/menu/menu.js"></script>
+
+    <!-- XML Parser -->
+    <script type="text/javascript" 
src="js/xml-for-script/tinyxmlsax.js"></script>
+    <script type="text/javascript" 
src="js/xml-for-script/tinyxmlw3cdom.js"></script>
+
+    <!--WSO2 Dependencies-->
+    <script type="text/javascript" 
src="../wsasadmin/global_params.js"></script>
+    <script type="text/javascript" src="../wsasadmin/js/main.js"></script>
+    <script type="text/javascript" src="js/wso2/WSRequest.js"></script>
+    <script type="text/javascript" src="js/mashup-main.js"></script>
+    <script type="text/javascript" src="js/services.js"></script>
+    <script type="text/javascript" src="js/mashup.js"></script>
+    <script type="text/javascript" src="js/mashup-utils.js"></script>
+    <script type="text/javascript" src="js/scraper.js"></script>
+
+</head>
+
+<body onLoad="wso2.mashup.Scraper.init();">
+
+<div id="page">
+<%@ include file="header.jsp" %>
+<%@ include file="searchbox.jsp" %>
+  <div id="content">  
+   
+      
+            <!-- Menu Bar -->
+            <div id="menu-bar"></div>
+            <!-- Scraper Config Geneartion Section -->
+    <div id="config-section" class="scraper-config-section"><span 
class="scraper-config-section1">
+      <textarea id="scraper-config"
+                                                                              
style="height:300px; width:100%;"> </textarea>
+    </span> </div>
+      
+  </div>    
+  
+    
+
+
+<!-- the div for the message box. This name is not supposed to be used for any 
other div in the admin application-->
+
+<div id="alertMessageBox" style="display:none;position:absolute;z-index: 600;">
+    <!--the message area-->
+    <p id="alertMessageBoxMessageArea"></p>
+    <!-- the button area-->
+    <p id="alertButton" align="right">
+        <input id="alertBoxButton" type="button"
+               value="  OK  "
+               
onclick="javascript:document.getElementById('alertMessageBox').style.display='none';return
 false;"/>
+    </p>
+</div>
+<%@ include file="footer.jsp" %>
+<!-- end of the message box div -->
+</div>  
+
+</body>
+</html>
+

Modified: trunk/mashup/java/modules/www/taskbar.jsp
==============================================================================
--- trunk/mashup/java/modules/www/taskbar.jsp   (original)
+++ trunk/mashup/java/modules/www/taskbar.jsp   Fri Jan 18 02:16:35 2008
@@ -234,9 +234,7 @@
 </li>
 
 <li>
-    <a href="#"
-       onclick="window.open('../scraper.html', 'remote', 
'width=640,height=480')">Use
-        the scraping assistant</a>
+    <a href="../scraper.jsp">Use the scraping assistant</a>
 </li>
 
 <li>

_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev

Reply via email to