⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 customizer-portletset-add.vm

📁 jetspeed源代码
💻 VM
字号:
#*
Copyright 2004 The Apache Software Foundation

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.
*#

<!-- WEB-INF\templates\vm\portlets\html\customizer-portletset-add.vm -->
<br>
#set ($mtype = $!data.Parameters.getString("mtype"))
#if ($!mtype) 
    <form action="$jslink.Template.addQueryData('mtype', $mtype)" method="post">
#else
    <form action="$jslink.Template" method="post">
#end
  #if ($action) <input name="$jslink.ActionKey" type="hidden" value="$action" > #end 

  <center>
  #*
    <table width="80%" border="1" cellspacing="0">
     <tr>
       <td style="font-weight:bold">$l10n.CUSTOMIZER_FILTER_MSG 
         #set($filter_cat = $data.User.getTemp("filter_category"))
         <select size="1" name="filter_category" onChange="this.form.eventSubmit_doFiltercategory.click()">
         #foreach($category in $categories)
          <option value="$category.Name" #if($filter_cat == $category.Name) selected #end >$category.Name</option>
         #end    
         </select>
         <input type="submit" name="eventSubmit_doFiltercategory" style="visibility:hidden">
             </td>
         </tr>
      </table>
  *#
    <table width="80%" border="1" cellspacing="0">
	<tr>
		<td style="font-weight:bold">$l10n.CUSTOMIZER_CATEGORY_FILTER</td>
		<td>
			<input type="hidden" name="filter_field" value="category"/>
			<select name="category:filter_value">
				<option value="">All Portlets</option>
				#foreach($category in $categories)
					<option value="$category.name" #if($category_filter_value == $category.name) selected="true" #end)>$category.name</option>
				#end
			</select>
		</td>
	
		<td style="font-weight:bold">$l10n.CUSTOMIZER_PARENT_FILTER</td>
		<td>
			<input type="hidden" name="filter_field" value="parent"/>
			<select name="parent:filter_value">
				<option value="">All Parents</option>
				#foreach($parent in $parents)
					#if($parent.Title)
						<option value="$parent.name" #if($parent_filter_value == $parent.name) selected="true" #end>$parent.Title</option>
					#else
						<option value="$parent.name" #if($parent_filter_value == $parent.name) selected="true" #end>$parent.name</option>
					#end
				#end
			</select>
		</td>
	
		<td><input type="submit" name="eventSubmit_doFilter" value="$l10n.CUSTOMIZER_FILTER"/></td>
	</tr>
    </table>  
      
      
    <table width="80%" border="1" cellspacing="0">
      <tr>
        <td>
          <table width="100%" border="0" cellspacing="2" cellpadding="0" align="center">
            <tr>
              <th #if (${skin.TitleBackgroundColor}) bgcolor="${skin.TitleBackgroundColor}" #end align="left" colspan="2">
                #if ($skin.TitleColor) <font color="$skin.TitleColor"> #end
                $l10n.CUSTOMIZER_ADD
                #if ($skin.TitleColor) </font> #end
              </th>
              <th #if (${skin.TitleBackgroundColor}) bgcolor="${skin.TitleBackgroundColor}" #end align="left">
                #if ($skin.TitleColor) <font color="$skin.TitleColor"> #end
                $l10n.CUSTOMIZER_TITLE
                #if ($skin.TitleColor) </font> #end
              </th>
              <th #if (${skin.TitleBackgroundColor}) bgcolor="${skin.TitleBackgroundColor}" #end align="left">
                #if ($skin.TitleColor) <font color="$skin.TitleColor"> #end
                $l10n.CUSTOMIZER_DESCRIPTION
                #if ($skin.TitleColor) </font> #end
              </th>
            </tr>  
            ##
            #set ($IX="a")
            #set ($COUNTI="0")
            #foreach ($portlet in $browser)
              #set ($COUNTI="1")
              ##Display rows in alternating colors
              #if ($IX=="a")
              <tr valign=top bgcolor="#FAFAFA">
              #set ($IX="b")
              #else
              <tr valign=top bgcolor="#F0F0F0">
              #set ($IX="a")
              #end

                <td align="center">
                  ## Insert a image for already used portlets!
                  #set ($FF="")
                  #foreach ($entry in $runs)
                    #if ($entry.parent == $portlet.Name)
                    #set ($FF="checked")
                    #end
                  #end
                  ## Portlet is not used - use blank image!
                  #if($portletsSelected.containsKey($portlet.Name))
					  <input type="checkbox" name="pname" value="$portlet.Name" checked>
				  #else
					  <input type="checkbox" name="pname" value="$portlet.Name">
				  #end
                </td>
                                <td>
                                  #if($FF == "checked")
                                     <img src="$clink.setURI('images/checkmark.gif').Absolute" alt="">
                                    #end
                                </td>
                ## Display checkbox for portlet selection
                <td valign="top" align="left">
                  #if ($config.getBoolean("customizer.preview.enable", false) == true)
                    <a target="_blank" href="#previewLink($portlet.Name)">#if ($portlet.Title) $portlet.Title #else $portlet.Name #end</a>
                  #else
                    #if ($portlet.Title) $portlet.Title #else $portlet.Name #end
                  #end  
                </td>
                <td valign="top" align="left">
                  #if ($portlet.Description) $portlet.Description #else $l10n.CUSTOMIZER_NODESCRIPTION #end
                </td>
              </tr>
               #end
               #if ($COUNTI=="0")
               <tr>
                 <td align="center" colspan=4>$l10n.CUSTOMIZER_NOTHINGDEFINED</td>
               </tr>
               #end
               ##
             </table>
          </td>
       </tr>
    </table>
  </center>
<center>
  <table cellspacing="2">
    <tr>
      <td>
        #set ($mtype = $!data.Parameters.getString("mtype"))
        #if ($!mtype)
		  <input type="hidden" name="mtype" value="$mtype">
		#end
        
		#if ($prev)
          <input type="hidden" name="previous" value="$prev">
		  <input type="submit" name="eventSubmit_doPrevious" value="$l10n.CUSTOMIZER_PREVIOUSBTN"> 
        #else
          &nbsp;
        #end
      </td>
      <td>
        <input type="hidden" name="size" value="$size">
        <input type="submit" name="eventSubmit_doAdd" value="$l10n.CUSTOMIZER_APPLY">
      </td>
      <td>
        <input type="submit" name="eventSubmit_doCancel" value="$l10n.CUSTOMIZER_CANCEL">
      </td>
      <td>
        #if ($next)
          <input type="hidden" name="next" value="$next">
		  <input type="submit" name="eventSubmit_doNext" value="$l10n.CUSTOMIZER_NEXTBTN"> 
        #else
          &nbsp;
        #end
        </td>
      </tr>
    </table>
  </center>
</form>

<center>
  <table>
    <tr>
      <td>
        #registry_alpha_nav($jslink.setTemplate("Customize") $portlets 1 "" "")
      </td>
    </tr>
  </table>
</center>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -