fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [6861] Added xsl/ css/ image


From: Petur Thorsteinsson
Subject: [Fmsystem-commits] [6861] Added xsl/ css/ image
Date: Thu, 27 Jan 2011 08:33:21 +0000

Revision: 6861
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=6861
Author:   peturbjorn
Date:     2011-01-27 08:33:21 +0000 (Thu, 27 Jan 2011)
Log Message:
-----------
Added xsl/ css/ image

Modified Paths:
--------------
    branches/dev-bim2/property/templates/base/bim_showmodels.xsl

Added Paths:
-----------
    branches/dev-bim2/property/templates/base/bim_upload_ifc_result.xsl
    branches/dev-bim2/property/templates/base/css/bim.css
    branches/dev-bim2/property/templates/portico/images/ajaxLoader.gif

Modified: branches/dev-bim2/property/templates/base/bim_showmodels.xsl
===================================================================
--- branches/dev-bim2/property/templates/base/bim_showmodels.xsl        
2011-01-27 08:32:16 UTC (rev 6860)
+++ branches/dev-bim2/property/templates/base/bim_showmodels.xsl        
2011-01-27 08:33:21 UTC (rev 6861)
@@ -1,7 +1,62 @@
        <xsl:template match="modelData">
-               <div> The Model Data </div>
-               <table>
+       <div> The Model Data </div>
+       <!--<table id="bimModelList">
+               <tr>
+                       <th>Database id</th>
+                       <th>Name</th>
+                       <th>creationDate</th>
+                       <th>fileSize</th>
+                       <th>fileName</th>
+                       <th>usedItemCount</th>
+                       <th>vfsFileId</th>
+                       <th>used</th>
+                       <th></th>
+               </tr>
+               <xsl:for-each select="models">
                        <tr>
+                               <td>
+                                       <xsl:value-of select="databaseId" />
+                               </td>
+                               <td>
+                                       <xsl:value-of select="name" />
+                               </td>
+                               <td>
+                                       <xsl:value-of select="creationDate" />
+                               </td>
+                               <td>
+                                       <xsl:value-of select="fileSize" />
+                               </td>
+                               <td>
+                                       <xsl:value-of select="fileName" />
+                               </td>
+                               <td>
+                                       <xsl:value-of select="usedItemCount" />
+                               </td>
+                               <td>
+                                       <xsl:value-of select="vfsFileId" />
+                               </td>
+                               <td>
+                                       <xsl:value-of select="used" />
+                               </td>
+                               <td>
+                                       <button>
+                                               <xsl:attribute name="value">
+
+                                                       <xsl:value-of 
select="databaseId" />
+
+                                               </xsl:attribute>
+                                               Delete
+                                       </button>
+                               </td>
+                       </tr>
+               </xsl:for-each>
+       </table>
+
+       -->
+       <div class="showModels">
+               <button onClick="reloadModelList()">Reload model list</button>
+               <table id="bimModelList2">
+                       <tr>
                                <th>Database id</th>
                                <th>Name</th>
                                <th>creationDate</th>
@@ -10,18 +65,25 @@
                                <th>usedItemCount</th>
                                <th>vfsFileId</th>
                                <th>used</th>
+                               <th></th>
+                               <th></th>
                        </tr>
-                <xsl:for-each select="models">
-                   <tr>
-                     <td><xsl:value-of select="databaseId"/></td>
-                     <td><xsl:value-of select="name"/></td>
-                      <td><xsl:value-of select="creationDate"/></td>
-                      <td><xsl:value-of select="fileSize"/></td>
-                      <td><xsl:value-of select="fileName"/></td>
-                      <td><xsl:value-of select="usedItemCount"/></td>
-                      <td><xsl:value-of select="vfsFileId"/></td>
-                      <td><xsl:value-of select="used"/></td>
-                   </tr>
-       </xsl:for-each>
-       </table>
-       </xsl:template>
+               </table>
+               <div id="modelsLoader">
+                       <xsl:variable name="loadingImage"><xsl:value-of 
select="loadingImage"/></xsl:variable>
+                       <img src="{$loadingImage}" />
+               </div>
+       </div>
+       <script type="text/javascript">
+               // doDelegate();
+               
+               if (typeof YUI != 'undefined') {
+               YUI().use('node-base', function(Y) {
+               //Y.on("load",  getModelList);
+               //Y.on("load", doDelegateDeleteModel);
+               doDelegateDeleteModel();
+               Y.on("load", doDelegateLoadModel);
+               }); 
+               }
+       </script>
+</xsl:template>

Added: branches/dev-bim2/property/templates/base/bim_upload_ifc_result.xsl
===================================================================
--- branches/dev-bim2/property/templates/base/bim_upload_ifc_result.xsl         
                (rev 0)
+++ branches/dev-bim2/property/templates/base/bim_upload_ifc_result.xsl 
2011-01-27 08:33:21 UTC (rev 6861)
@@ -0,0 +1,30 @@
+       <xsl:template match="uploadResult">
+               <div class="bimObject">
+                       <h1>Upload Bim file Result</h1>
+                       <xsl:variable name="showModelsLink"><xsl:value-of 
select="linkToModels"/></xsl:variable>
+                       <xsl:variable name="uploadLink"><xsl:value-of 
select="linkToUpload"/></xsl:variable>
+                       <xsl:variable name="error"><xsl:value-of 
select="error"/></xsl:variable>
+                       <xsl:variable name="errorMessage"><xsl:value-of 
select="errorMessage"/></xsl:variable>
+                       <xsl:choose>
+                         <xsl:when test="$error = 1">
+                           <p><strong>An error has occurred</strong></p>
+                               <p><strong>Error:</strong><xsl:value-of 
select="$errorMessage" /></p>
+                               <p><a href="{$uploadLink}">Upload file</a></p>
+                         </xsl:when>
+                         <xsl:otherwise>
+                           <p>Upload success!</p>
+                               <p>Redirecting</p>
+                               <p>If you are not promptly redirected, please 
click <a href="{$showModelsLink}">here</a></p>
+                               <script type="text/javascript">
+                                       function showModelsPage(){
+                                           window.location = '<xsl:value-of 
select="$showModelsLink" />';
+                                       }
+                                       setTimeout('showModelsPage()', 3000);
+                               </script>
+                         </xsl:otherwise>
+                       </xsl:choose>
+                       
+                       
+               </div>
+       </xsl:template>
+       
\ No newline at end of file

Added: branches/dev-bim2/property/templates/base/css/bim.css
===================================================================
--- branches/dev-bim2/property/templates/base/css/bim.css                       
        (rev 0)
+++ branches/dev-bim2/property/templates/base/css/bim.css       2011-01-27 
08:33:21 UTC (rev 6861)
@@ -0,0 +1,44 @@
+div.bimObject {
+       margin:10px;
+       font-size:14px;
+}
+
+div.bimObject h1, div.bimObject h2 {
+       clear:both;
+}
+div.bimObject h1 {
+       font-size:1.5em;
+}
+div.bimObject h2 {
+       font-size:1.3em;
+}
+div.bimObject dl {
+       width:500px;
+}
+div.bimObject dl dt {
+       clear:both;
+       width:33%;
+       float:left;
+       text-align:right;
+}
+div.bimObject dl dd {
+       width:66%;
+       float:left;
+       margin:0 0 0.5em 0.25em;
+       }
+
+div.showModels {
+       width:100%;
+       margin:20px;
+}
+div.showModels table {
+       width:100%;
+}
+div.showModels #modelsLoader  {
+        text-align:center;
+    margin-top:0px;
+    margin-bottom:0px;
+    padding:0px;
+
+}
+

Added: branches/dev-bim2/property/templates/portico/images/ajaxLoader.gif
===================================================================
(Binary files differ)


Property changes on: 
branches/dev-bim2/property/templates/portico/images/ajaxLoader.gif
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream




reply via email to

[Prev in Thread] Current Thread [Next in Thread]