From 821e07eb95c67d84531bae95693af50a2d241d5f Mon Sep 17 00:00:00 2001
From: Renaud Le Gac <renaud.legac@free.fr>
Date: Wed, 2 Mar 2011 20:07:40 +0000
Subject: [PATCH] The new way to handle view.

---
 views/plugin_dbui/debug.html | 33 +++++++++++++++++++++++++++++++++
 views/plugin_dbui/index.html |  2 +-
 2 files changed, 34 insertions(+), 1 deletion(-)
 create mode 100644 views/plugin_dbui/debug.html

diff --git a/views/plugin_dbui/debug.html b/views/plugin_dbui/debug.html
new file mode 100644
index 00000000..a0c5455b
--- /dev/null
+++ b/views/plugin_dbui/debug.html
@@ -0,0 +1,33 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+    <head>
+        <!-- $Id$ -->
+        
+        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
+        <meta name="author" lang="en" content="{{=response.author}}" />
+        <meta name="keywords" content="{{=response.keywords}}" />
+        <meta name="description" content="{{=response.description}}" />
+        
+        <title>{{=request.application}}</title>
+        
+        <!-- extjs css -->
+        <link rel="stylesheet" type="text/css" href="{{=pextjs}}/resources/css/ext-all.css"/>
+        <link rel="stylesheet" type="text/css" href="{{=pextjs}}/examples/shared/icons/silk.css"/> 
+
+        <!-- extjs javascript library -->
+        <script type="text/javascript" src="{{=pextjs}}/adapter/ext/ext-base-debug.js"></script>
+        <script type="text/javascript" src="{{=pextjs}}/ext-all-debug.js"></script>
+        <script type="text/javascript" src="{{=pextjs}}/src/locale/ext-lang-{{=lg}}.js"></script>
+
+        <!-- dbui api -->
+        <script type="text/javascript" src="/{{=request.application}}/plugin_dbui/get_api"></script>
+        
+        <!-- dbui + user javascript source code and main script-->
+        {{for el in response.files:}}
+        <script type="text/javascript" src="{{=el}}"></script>{{pass}}
+
+    </head>
+    <body>
+        <div id='appmain'></div>
+    </body>
+</html>
diff --git a/views/plugin_dbui/index.html b/views/plugin_dbui/index.html
index e3f831ed..39a3897c 100644
--- a/views/plugin_dbui/index.html
+++ b/views/plugin_dbui/index.html
@@ -1,7 +1,7 @@
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 <html>
     <head>
-        <!-- $Id: plugin_dbui.html 1129 2011-02-19 13:50:53Z legac $ -->
+        <!-- $Id$ -->
         
         <meta http-equiv="content-type" content="text/html; charset=utf-8" />
         <meta name="author" lang="en" content="{{=response.author}}" />
-- 
GitLab