portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject cvs commit: jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/html browser-psml.vm psml-form.vm
Date Tue, 02 Jul 2002 01:25:35 GMT
taylor      2002/07/01 18:25:35

  Added:       webapp/WEB-INF/templates/vm/portlets/html browser-psml.vm
                        psml-form.vm
  Log:
  Added templates for psml browser and psml updates
  
  Revision  Changes    Path
  1.1                  jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/html/browser-psml.vm
  
  Index: browser-psml.vm
  ===================================================================
  <table width="50%" border="0" cellpadding="0" cellspacing="0">
  #foreach ( $entry in $psml )
    <tr>
      #if($!entry.GroupName)
          #set ($category = "Group")
          #set ($catName = $!entry.GroupName)
          #set ($link1 = $jslink.setGroup($catName))
      #elseif($!entry.RoleName)
          #set ($category = "Role")
          #set ($catName = $!entry.RoleName)
          #set ($link1 = $jslink.setRole($catName))
      #elseif($!entry.UserName)
          #set ($category = "User")
          #set ($catName = $!entry.UserName)
          #set ($link1 = $jslink.setUser($catName))
      #else
          #set ($category = "Not Found")
          #set ($catName = "Not Found")   
      #end
      
      #set ($mediaType = $!entry.MediaType)
      #set ($language = $!entry.Language)
      #set ($country = $!entry.Country)
      #set ($blank = 1)   
  
      #if ($prevCategory == $category)
          <td style="font-size:10">&nbsp;</td>
      #else
          <td style="font-size:10">$!category</td>
      #end
    </tr> 
  
      #if ($!catName)
          <tr>
          #foreach ($index in [1..$blank])
              <td style="font-size:10">&nbsp;</td>        
          #end
          #set ($blank = $blank + 1 )
          #if($prevCatName == $catName)
              <td style="font-size:10">&nbsp;</td>
          #else
              <td style="font-size:10">$!catName</td>
          #end
          </tr>
      #end
      
      #if ($!mediaType)
          <tr>
          #foreach ($index in [1..$blank])
              <td style="font-size:10">&nbsp;</td>        
          #end
          #set ($blank = $blank + 1 )
          #if($prevMediaType == $mediaType)
              <td style="font-size:10">&nbsp;</td>
          #else
              <td style="font-size:10">$mediaType</td>
          #end
          </tr>
      #end    
          
      #if ($!language)
          <tr>
          #foreach ($index in [1..$blank])
              <td style="font-size:10">&nbsp;</td>        
          #end
          #set ($blank = $blank + 1 )
          #if($prevLanguage == $language)
              <td style="font-size:10">&nbsp;</td>
          #else
              <td style="font-size:10">$language</td>
          #end
          </tr>
      #end    
      
      #if ($!country)
          <tr>
          #foreach ($index in [1..$blank])
              <td style="font-size:10">&nbsp;</td>        
          #end
          #set ($blank = $blank + 1 )
          #if($prevCountry == $country)
              <td style="font-size:10">&nbsp;</td>
          #else
              <td style="font-size:10">$country</td>
          #end
          </tr>
      #end    
          
      <tr>
          #if($!entry.GroupName)
              #set ($link1 = $jslink.setGroup($catName,$entry.Name).setAction("controls.Customize"))
          #elseif($!entry.RoleName)
              #set ($link1 = $jslink.setRole($catName,$entry.Name).setAction("controls.Customize"))
          #elseif($!entry.UserName)
              #set ($link1 = $jslink.setUser($catName,$entry.Name).setAction("controls.Customize"))
          #end
          
          #foreach ($index in [1..$blank])
              <td style="font-size:10">&nbsp;</td>        
          #end
          <td>
              <a style="font-size:10" href="$link1">$!entry.Name</a>
          </td>
          #set ($link2 = $jslink.setPage($entry.Name,"PsmlForm").addQueryData("mode","delete"))
          <td>
              <a style="font-size:10" href='$link2'>X</a>
          </td>
      </tr>
      
      #set ($prevCategory = $category)
      #set ($prevCatName = $catName)
      #set ($prevMediaType = $mediaType)
      #set ($prevLanguage = $language)
      #set ($prevCountry = $country)
  
  #end
  <tr/>
  <tr>
      #set ($link3 = $jslink.setPaneByName("PsmlForm").addQueryData("mode","insert"))
      <td>
          <a style="font-size:10" href='$link3'>Add</a>
      </td>
  </tr>
  </table>
  <table width="100%" cellpadding="0" cellspacing="0">
    <tr>
      <td align="right" width="50%">
  #if ($prev)
  <form action="$jslink" method="post">
         <input type="submit" value="&lt; &lt; Previous">
        <input type="hidden" name="start" value="$prev">
  </form>
  #end
      </td>
      <td align="left" width="50%">
  #if ($next)
  <form action="$jslink" method="post">
         <input type="submit" value="Next &gt; &gt;">
        <input type="hidden" name="start" value="$next">
  </form>
  #end
      </td>
    </tr>
  </table>
  
  
  
  1.1                  jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/html/psml-form.vm
  
  Index: psml-form.vm
  ===================================================================
  #**
  
  Display the details of a psml file.
  
  @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
  @version $Id: psml-form.vm,v 1.1 2002/07/02 01:25:35 taylor Exp $
  *#
  
  <form method="post" action="$jslink.getPaneByName("PsmlBrowser").setAction("portlets.PsmlUpdateAction)">
    <table bgcolor="#ffffff" cellpadding="5">
        #if ($errorTemplate)
        <tr>
          <td colspan="2">
            <table bgcolor="#ffffff">
              <tr>
                <td>
                  #parse ($errorTemplate)
                </td>
              </tr>
            </table>
          </td>
        </tr>
        #end
  
        <tr>
          #if ($!psml)
            #set ($Name = "")
            #set ($MediaType = "")
            #set ($Language = "")
            #set ($Country = "")
          #else
            #set ($Name = $!psml.Name)
            #set ($MediaType = $!psml.MediaType)
            #set ($Language = $!psml.Language)
            #set ($Country = $!psml.Country)      
          #end
        </tr>
    </table>
  
    <table bgcolor="#ffffff" cellpadding="5" width="100%">
        <tr>
          <td bgcolor="$!{skin.TitleBackgroundColor}">
            Hello
            #if ($mode == "insert")
              <input type="submit" name="eventSubmit_doInsert" value="Add Psml"/>
            #end
        </td>
        <td>
           $!msg
        </td>
      </tr>
    </table>
  </form>
  
  
  

--
To unsubscribe, e-mail:   <mailto:jetspeed-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:jetspeed-dev-help@jakarta.apache.org>


Mime
View raw message