?? psml-form.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.
*#
#**
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.9 2004/03/17 19:19:02 jford Exp $
*#
<form method="post" action="$jslink.getPaneByName("PsmlBrowser").setAction("portlets.PsmlUpdateAction")">
<table bgcolor="#ffffff" cellpadding="5">
#if ($msg)
<tr>
<td colspan="2">
<table bgcolor="#ffffff">
<tr>
<td>
$msg
</td>
</tr>
</table>
</td>
</tr>
#end
#if (($mode == "delete"))
<tr>
#formReadOnlyCell ("Id" "Id" $profile.Id)
</tr>
<tr>
#formReadOnlyCell ("Name" "Name" $profile.Name)
</tr>
#elseif (($mode == "insert") || ($mode == "import"))
<tr>
<td bgcolor="$!{skin.TitleBackgroundColor}">
<b><font face="$ui.sansSerifFonts">Name</font></b>
</td>
<td bgcolor="$!{skin.TitleBackgroundColor}">
<font face="$ui.sansSerifFonts">
<input type="text" size="30" name="Name" value=$!profile.Name>
</font>
</td>
</tr>
<tr>
<td bgcolor="$!{skin.TitleBackgroundColor}">
<b><font face="$ui.sansSerifFonts">Media Type</font></b>
</td>
<td bgcolor="$!{skin.TitleBackgroundColor}">
<select name="psml_mediatype">
#set ($flag = 0)
#foreach ($type in $mediaTypes)
#if ($type == $profile.MediaType)
<option value="$type" selected>$type</option>
#set ($flag = 1)
#else
<option value="$type" >$type</option>
#end
#end
#if ($flag == 1)
<option value="" > </option>
#else
<option value="" selected> </option>
#end
</select>
</td>
</tr>
<tr>
<td bgcolor="$!{skin.TitleBackgroundColor}">
<b><font face="$ui.sansSerifFonts">Language</font></b>
</td>
<td bgcolor="$!{skin.TitleBackgroundColor}">
<font face="$ui.sansSerifFonts">
<input type="text" size="30" name="psml_language" value=$!profile.Language>
</font>
</td>
</tr>
<tr>
<td bgcolor="$!{skin.TitleBackgroundColor}">
<b><font face="$ui.sansSerifFonts">Country</font></b>
</td>
<td bgcolor="$!{skin.TitleBackgroundColor}">
<font face="$ui.sansSerifFonts">
<input type="text" size="30" name="psml_country" value=$!profile.Country>
</font>
</td>
</tr>
<tr>
<td bgcolor="$!{skin.TitleBackgroundColor}">
<b><font face="$ui.sansSerifFonts">Category Name:</font></b>
</td>
<td bgcolor="$!{skin.TitleBackgroundColor}">
<select name="CategoryName">
#if ($categoryName == "group")
<option value="group" selected>group</option>
#else
<option value="group">group</option>
#end
#if ($categoryName == "role")
<option value="role" selected>role</option>
#else
<option value="role">role</option>
#end
#if ($categoryName == "user")
<option value="user" selected>user</option>
#else
<option value="user">user</option>
#end
</select>
</td>
</tr>
<tr>
#formCell ("Category Value" "CategoryValue" $categoryValue)
</tr>
<tr>
#formCell ("Copy From" "CopyFrom" $copyFrom)
</tr>
#end
#if ($mode == "export")
<tr>
#formCell ("Copy From" "CopyFrom" $copyFrom)
</tr>
<tr>
#formCell ("Copy To" "CopyTo" $copyTo)
</tr>
#end
#if ($mode == "export_all")
<tr>
<td colspan="2">
This option exports ALL .psml profiles found to the root given by <b>Copy To</b> parameter. The root
directory is assumed to be located on the server machine. <p>
Please note that this feature is probably not very useful if you're using file-based psml.
</td>
</tr>
<tr>
#formCell ("Copy To" "CopyTo" $copyTo)
</tr>
#end
#if ($mode == "import_all")
<tr>
<td colspan="2">
This option imports ALL .psml files found in the root given by <b>Copy From</b> parameter including
subdirectories. The root directory is assumed to be located on the server machine. Also, it is assumed that
each .psml file found will reside relative to the root in one of the following locations:
<ul>
<li>/user | role | group/${entity-name}/${media-type}/${language}/${country}/${page-name}.psml</li>
<li>/user | role | group/${entity-name}/${media-type}/${language}/${page-name}.psml</li>
<li>/user | role | group/${entity-name}/${media-type}/${page-name}.psml</li>
<li>/user | role | group/${entity-name}/${page-name}.psml}</li>
</ul>
Please note that this feature is probably not very useful if you're using file-based psml.
</td>
</tr>
<tr>
#formCell ("Copy From" "CopyFrom" $copyFrom)
</tr>
#end
</table>
<table border="0" cellspacing="0" cellpadding="5" width="30%">
<tr>
<td>
#if ($mode == "insert")
<input type="submit" name="eventSubmit_doInsert" value="Add Psml"/>
#elseif ($mode == "delete")
<input type="submit" name="eventSubmit_doDelete" value="Delete"/>
#elseif ($mode == "export")
<input type="submit" name="eventSubmit_doExport" value="Export Psml"/>
#elseif ($mode == "import")
<input type="submit" name="eventSubmit_doImport" value="Import Psml"/>
#elseif ($mode == "export_all")
<input type="submit" name="eventSubmit_doExportall" value="Export All"/>
#elseif ($mode == "import_all")
<input type="submit" name="eventSubmit_doImportall" value="Import All"/>
#end
</td>
</form>
<form action="$jslink.setPaneByName("PsmlBrowser")" method="post">
<td>
<input type="submit" value="Cancel">
</td>
</tr>
</table>
</form>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -