Initial commit of Posterita

This commit is contained in:
shameem_z 2007-09-19 12:49:38 +00:00
parent c678a274d5
commit 0b9e8ec106
315 changed files with 53397 additions and 0 deletions

View File

@ -0,0 +1,416 @@
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib
PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
"http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
<taglib>
<tlib-version>1.0</tlib-version>
<jsp-version>1.2</jsp-version>
<short-name>c</short-name>
<uri>http://java.sun.com/jstl/core</uri>
<display-name>JSTL core</display-name>
<description>JSTL 1.0 core library</description>
<validator>
<validator-class>
org.apache.taglibs.standard.tlv.JstlCoreTLV
</validator-class>
<init-param>
<param-name>expressionAttributes</param-name>
<param-value>
out:value
out:default
out:escapeXml
if:test
import:url
import:context
import:charEncoding
forEach:items
forEach:begin
forEach:end
forEach:step
forTokens:items
forTokens:begin
forTokens:end
forTokens:step
param:encode
param:name
param:value
redirect:context
redirect:url
set:property
set:target
set:value
url:context
url:value
when:test
</param-value>
<description>
Whitespace-separated list of colon-separated token pairs
describing tag:attribute combinations that accept expressions.
The validator uses this information to determine which
attributes need their syntax validated.
</description>
</init-param>
</validator>
<tag>
<name>catch</name>
<tag-class>org.apache.taglibs.standard.tag.common.core.CatchTag</tag-class>
<body-content>JSP</body-content>
<description>
Catches any Throwable that occurs in its body and optionally
exposes it.
</description>
<attribute>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>choose</name>
<tag-class>org.apache.taglibs.standard.tag.common.core.ChooseTag</tag-class>
<body-content>JSP</body-content>
<description>
Simple conditional tag that establishes a context for
mutually exclusive conditional operations, marked by
&lt;when&gt; and &lt;otherwise&gt;
</description>
</tag>
<tag>
<name>out</name>
<tag-class>org.apache.taglibs.standard.tag.el.core.OutTag</tag-class>
<body-content>JSP</body-content>
<description>
Like &lt;%= ... &gt;, but for expressions.
</description>
<attribute>
<name>value</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>default</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>escapeXml</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>if</name>
<tag-class>org.apache.taglibs.standard.tag.el.core.IfTag</tag-class>
<body-content>JSP</body-content>
<description>
Simple conditional tag, which evalutes its body if the
supplied condition is true and optionally exposes a Boolean
scripting variable representing the evaluation of this condition
</description>
<attribute>
<name>test</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>import</name>
<tag-class>org.apache.taglibs.standard.tag.el.core.ImportTag</tag-class>
<tei-class>org.apache.taglibs.standard.tei.ImportTEI</tei-class>
<body-content>JSP</body-content>
<description>
Retrieves an absolute or relative URL and exposes its contents
to either the page, a String in 'var', or a Reader in 'varReader'.
</description>
<attribute>
<name>url</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>varReader</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>context</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>charEncoding</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>forEach</name>
<tag-class>org.apache.taglibs.standard.tag.el.core.ForEachTag</tag-class>
<tei-class>org.apache.taglibs.standard.tei.ForEachTEI</tei-class>
<body-content>JSP</body-content>
<description>
The basic iteration tag, accepting many different
collection types and supporting subsetting and other
functionality
</description>
<attribute>
<name>items</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>begin</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>end</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>step</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>varStatus</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>forTokens</name>
<tag-class>org.apache.taglibs.standard.tag.el.core.ForTokensTag</tag-class>
<body-content>JSP</body-content>
<description>
Iterates over tokens, separated by the supplied delimeters
</description>
<attribute>
<name>items</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>delims</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>begin</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>end</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>step</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>varStatus</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>otherwise</name>
<tag-class>org.apache.taglibs.standard.tag.common.core.OtherwiseTag</tag-class>
<body-content>JSP</body-content>
<description>
Subtag of &lt;choose&gt; that follows &lt;when&gt; tags
and runs only if all of the prior conditions evaluated to
'false'
</description>
</tag>
<tag>
<name>param</name>
<tag-class>org.apache.taglibs.standard.tag.el.core.ParamTag</tag-class>
<body-content>JSP</body-content>
<description>
Adds a parameter to a containing 'import' tag's URL.
</description>
<attribute>
<name>name</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>value</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>redirect</name>
<tag-class>org.apache.taglibs.standard.tag.el.core.RedirectTag</tag-class>
<body-content>JSP</body-content>
<description>
Redirects to a new URL.
</description>
<attribute>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>url</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>context</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>remove</name>
<tag-class>org.apache.taglibs.standard.tag.common.core.RemoveTag</tag-class>
<body-content>empty</body-content>
<description>
Removes a scoped variable (from a particular scope, if specified).
</description>
<attribute>
<name>var</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>set</name>
<tag-class>org.apache.taglibs.standard.tag.el.core.SetTag</tag-class>
<body-content>JSP</body-content>
<description>
Sets the result of an expression evaluation in a 'scope'
</description>
<attribute>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>value</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>target</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>url</name>
<tag-class>org.apache.taglibs.standard.tag.el.core.UrlTag</tag-class>
<body-content>JSP</body-content>
<description>
Prints or exposes a URL with optional query parameters
(via the c:param tag).
</description>
<attribute>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>value</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>context</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>when</name>
<tag-class>org.apache.taglibs.standard.tag.el.core.WhenTag</tag-class>
<body-content>JSP</body-content>
<description>
Subtag of &lt;choose&gt; that includes its body if its
condition evalutes to 'true'
</description>
<attribute>
<name>test</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
</taglib>

View File

@ -0,0 +1,201 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
<taglib>
<tlibversion>1.0</tlibversion>
<jspversion>1.1</jspversion>
<shortname>dcs</shortname>
<uri></uri>
<tag>
<name>orderStatus</name>
<tagclass>org.posterita.taglib.OrderStatus</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>name</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>attributeValues</name>
<tagclass>com.posterita.taglib.AttributeValues</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>name</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<!--
<tag>
<name>unreadMessageCount</name>
<tagclass>com.udimu.taglib.UnreadMessageCount</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>value</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
-->
<!--
<tag>
<name>vinNumberDetails</name>
<tagclass>com.udimu.taglib.VinNumberDetails</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>name</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
-->
<!--
<tag>
<name>currentMonthReport</name>
<tagclass>com.udimu.taglib.DealerMonthlySalesReport</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
-->
<!--
<tag>
<name>allocationStatus</name>
<tagclass>com.udimu.taglib.AllocationStatus</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>name</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
-->
<!--
<tag>
<name>assetStatus</name>
<tagclass>com.udimu.taglib.AssetStatus</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>name</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
-->
<!--
<tag>
<name>salesRepName</name>
<tagclass>com.udimu.taglib.SalesRepName</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>name</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
-->
</taglib>

View File

@ -0,0 +1,442 @@
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib
PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
"http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
<taglib>
<tlib-version>1.0</tlib-version>
<jsp-version>1.2</jsp-version>
<short-name>fmt</short-name>
<uri>http://java.sun.com/jstl/fmt</uri>
<display-name>JSTL fmt</display-name>
<description>JSTL 1.0 i18n-capable formatting library</description>
<validator>
<validator-class>
org.apache.taglibs.standard.tlv.JstlFmtTLV
</validator-class>
<init-param>
<param-name>expressionAttributes</param-name>
<param-value>
requestEncoding:value
setLocale:value
setLocale:variant
timeZone:value
setTimeZone:value
bundle:basename
bundle:prefix
setBundle:basename
message:key
message:bundle
param:value
formatNumber:value
formatNumber:pattern
formatNumber:currencyCode
formatNumber:currencySymbol
formatNumber:groupingUsed
formatNumber:maxIntegerDigits
formatNumber:minIntegerDigits
formatNumber:maxFractionDigits
formatNumber:minFractionDigits
parseNumber:value
parseNumber:pattern
parseNumber:parseLocale
parseNumber:integerOnly
formatDate:value
formatDate:pattern
formatDate:timeZone
parseDate:value
parseDate:pattern
parseDate:timeZone
parseDate:parseLocale
</param-value>
<description>
Whitespace-separated list of colon-separated token pairs
describing tag:attribute combinations that accept expressions.
The validator uses this information to determine which
attributes need their syntax validated.
</description>
</init-param>
</validator>
<tag>
<name>requestEncoding</name>
<tag-class>org.apache.taglibs.standard.tag.el.fmt.RequestEncodingTag</tag-class>
<body-content>empty</body-content>
<description>
Sets the request character encoding
</description>
<attribute>
<name>value</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>setLocale</name>
<tag-class>org.apache.taglibs.standard.tag.el.fmt.SetLocaleTag</tag-class>
<body-content>empty</body-content>
<description>
Stores the given locale in the locale configuration variable
</description>
<attribute>
<name>value</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>variant</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>timeZone</name>
<tag-class>org.apache.taglibs.standard.tag.el.fmt.TimeZoneTag</tag-class>
<body-content>JSP</body-content>
<description>
Specifies the time zone for any time formatting or parsing actions
nested in its body
</description>
<attribute>
<name>value</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>setTimeZone</name>
<tag-class>org.apache.taglibs.standard.tag.el.fmt.SetTimeZoneTag</tag-class>
<body-content>empty</body-content>
<description>
Stores the given time zone in the time zone configuration variable
</description>
<attribute>
<name>value</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>bundle</name>
<tag-class>org.apache.taglibs.standard.tag.el.fmt.BundleTag</tag-class>
<body-content>JSP</body-content>
<description>
Loads a resource bundle to be used by its tag body
</description>
<attribute>
<name>basename</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>prefix</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>setBundle</name>
<tag-class>org.apache.taglibs.standard.tag.el.fmt.SetBundleTag</tag-class>
<body-content>empty</body-content>
<description>
Loads a resource bundle and stores it in the named scoped variable or
the bundle configuration variable
</description>
<attribute>
<name>basename</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>message</name>
<tag-class>org.apache.taglibs.standard.tag.el.fmt.MessageTag</tag-class>
<body-content>JSP</body-content>
<description>
Maps key to localized message and performs parametric replacement
</description>
<attribute>
<name>key</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>bundle</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>param</name>
<tag-class>org.apache.taglibs.standard.tag.el.fmt.ParamTag</tag-class>
<body-content>JSP</body-content>
<description>
Supplies an argument for parametric replacement to a containing
&lt;message&gt; tag
</description>
<attribute>
<name>value</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>formatNumber</name>
<tag-class>org.apache.taglibs.standard.tag.el.fmt.FormatNumberTag</tag-class>
<body-content>JSP</body-content>
<description>
Formats a numeric value as a number, currency, or percentage
</description>
<attribute>
<name>value</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>type</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>pattern</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>currencyCode</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>currencySymbol</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>groupingUsed</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>maxIntegerDigits</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>minIntegerDigits</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>maxFractionDigits</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>minFractionDigits</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>parseNumber</name>
<tag-class>org.apache.taglibs.standard.tag.el.fmt.ParseNumberTag</tag-class>
<body-content>JSP</body-content>
<description>
Parses the string representation of a number, currency, or percentage
</description>
<attribute>
<name>value</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>type</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>pattern</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>parseLocale</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>integerOnly</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>formatDate</name>
<tag-class>org.apache.taglibs.standard.tag.el.fmt.FormatDateTag</tag-class>
<body-content>empty</body-content>
<description>
Formats a date and/or time using the supplied styles and pattern
</description>
<attribute>
<name>value</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>type</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>dateStyle</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>timeStyle</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>pattern</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>timeZone</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>parseDate</name>
<tag-class>org.apache.taglibs.standard.tag.el.fmt.ParseDateTag</tag-class>
<body-content>JSP</body-content>
<description>
Parses the string representation of a date and/or time
</description>
<attribute>
<name>value</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>type</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>dateStyle</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>timeStyle</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>pattern</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>timeZone</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>parseLocale</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
</taglib>

View File

@ -0,0 +1,35 @@
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib
PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
"http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
<taglib>
<tlib-version>1.0</tlib-version>
<jsp-version>1.2</jsp-version>
<short-name>pos</short-name>
<uri>pos.tld</uri>
<display-name>POSterita</display-name>
<description>$Id: pos.tld,v 1.2 2006/11/29 05:23:55 alok Exp $</description>
<tag>
<name>element</name>
<tag-class>org.posterita.pos.taglib.ElementTag</tag-class>
<body-content>JSP</body-content>
<description>Display element</description>
<attribute>
<name>columnName</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>printing</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>textOnly</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
</taglib>

View File

@ -0,0 +1,146 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
<taglib>
<tlibversion>1.0</tlibversion>
<jspversion>1.1</jspversion>
<shortname>dms</shortname>
<uri></uri>
<tag>
<name>regionName</name>
<tagclass>com.dms.taglib.Region</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>name</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>warehouseName</name>
<tagclass>com.dms.taglib.Warehouse</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>name</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>productName</name>
<tagclass>com.dms.taglib.ProductName</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>name</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>bankName</name>
<tagclass>com.dms.taglib.BankName</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>name</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>menuClose</name>
<tagclass>com.dms.taglib.MenuClose</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>name</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>sco</name>
<tagclass>com.dms.taglib.SCONaming</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>abbreviated</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
</taglib>

View File

@ -0,0 +1,382 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
<taglib>
<tlibversion>1.2</tlibversion>
<jspversion>1.1</jspversion>
<shortname>bean</shortname>
<uri>http://struts.apache.org/tags-bean</uri>
<tag>
<name>cookie</name>
<tagclass>org.apache.struts.taglib.bean.CookieTag</tagclass>
<teiclass>org.apache.struts.taglib.bean.CookieTei</teiclass>
<bodycontent>empty</bodycontent>
<attribute>
<name>id</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>multiple</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>value</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>define</name>
<tagclass>org.apache.struts.taglib.bean.DefineTag</tagclass>
<teiclass>org.apache.struts.taglib.bean.DefineTei</teiclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>id</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>toScope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>type</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>value</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>header</name>
<tagclass>org.apache.struts.taglib.bean.HeaderTag</tagclass>
<teiclass>org.apache.struts.taglib.bean.HeaderTei</teiclass>
<bodycontent>empty</bodycontent>
<attribute>
<name>id</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>multiple</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>value</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>include</name>
<tagclass>org.apache.struts.taglib.bean.IncludeTag</tagclass>
<teiclass>org.apache.struts.taglib.bean.IncludeTei</teiclass>
<bodycontent>empty</bodycontent>
<attribute>
<name>anchor</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>forward</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>href</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>id</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>page</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>transaction</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>message</name>
<tagclass>org.apache.struts.taglib.bean.MessageTag</tagclass>
<bodycontent>empty</bodycontent>
<attribute>
<name>arg0</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>arg1</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>arg2</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>arg3</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>arg4</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>bundle</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>key</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>locale</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>page</name>
<tagclass>org.apache.struts.taglib.bean.PageTag</tagclass>
<teiclass>org.apache.struts.taglib.bean.PageTei</teiclass>
<bodycontent>empty</bodycontent>
<attribute>
<name>id</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>parameter</name>
<tagclass>org.apache.struts.taglib.bean.ParameterTag</tagclass>
<teiclass>org.apache.struts.taglib.bean.ParameterTei</teiclass>
<bodycontent>empty</bodycontent>
<attribute>
<name>id</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>multiple</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>value</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>resource</name>
<tagclass>org.apache.struts.taglib.bean.ResourceTag</tagclass>
<teiclass>org.apache.struts.taglib.bean.ResourceTei</teiclass>
<bodycontent>empty</bodycontent>
<attribute>
<name>id</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>input</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>size</name>
<tagclass>org.apache.struts.taglib.bean.SizeTag</tagclass>
<teiclass>org.apache.struts.taglib.bean.SizeTei</teiclass>
<bodycontent>empty</bodycontent>
<attribute>
<name>collection</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>id</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>struts</name>
<tagclass>org.apache.struts.taglib.bean.StrutsTag</tagclass>
<teiclass>org.apache.struts.taglib.bean.StrutsTei</teiclass>
<bodycontent>empty</bodycontent>
<attribute>
<name>id</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>formBean</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>forward</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>mapping</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>write</name>
<tagclass>org.apache.struts.taglib.bean.WriteTag</tagclass>
<bodycontent>empty</bodycontent>
<attribute>
<name>bundle</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>filter</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>format</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>formatKey</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>ignore</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>locale</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
</taglib>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,686 @@
<!--
DTD for the Struts Application Configuration File
To support validation of your configuration file, include the following
DOCTYPE element at the beginning (after the "xml" declaration):
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
"http://struts.apache.org/dtds/struts-config_1_2.dtd">
$Id: struts-config_1_2.dtd,v 1.1 2005/06/23 08:33:30 vishee Exp $
-->
<!-- ========== Defined Types ============================================= -->
<!-- An "AttributeName" is the identifier of a page, request, session, or
application scope attribute.
-->
<!ENTITY % AttributeName "CDATA">
<!-- A "BeanName" is the identifier of a JavaBean, such as a form bean,
and also serves as the name of the corresponding scripting variable
and the name of the JSP attribute under which the bean is accessed.
Therefore, it must conform to the rules for a Java identifier.
-->
<!ENTITY % BeanName "CDATA">
<!-- A "Boolean" is the string representation of a boolean (true or false)
variable.
-->
<!ENTITY % Boolean "(true|false|yes|no)">
<!-- A "ClassName" is the fully qualified name of a Java class that is
instantiated to provide the functionality of the enclosing element.
-->
<!ENTITY % ClassName "CDATA">
<!-- An "Integer" is a character string consisting solely of numeric digits,
optionally preceeded by a minus sign, that can be converted to a
32-bit integer.
-->
<!ENTITY % Integer "CDATA">
<!-- A "Location" is a relative path, delimited by "/" characters, that
defines the location of a resource relative to the location of the
Struts configuration file itself.
-->
<!ENTITY % Location "#PCDATA">
<!-- A "PropName" is the name of a JavaBeans property, and must begin with
a lower case letter and contain only characters that are legal in a
Java identifier.
-->
<!ENTITY % PropName "CDATA">
<!-- A "RequestPath" is an module-relative URI path, beginning with a
slash, that identifies a mapped resource (such as a JSP page or a servlet)
within this web application.
-->
<!ENTITY % RequestPath "CDATA">
<!-- The name of a JSP bean scope within which such a form bean may be
accessed.
-->
<!ENTITY % RequestScope "(request|session)">
<!-- ========== Top Level Elements ======================================== -->
<!-- The "struts-config" element is the root of the configuration file
hierarchy, and contains nested elements for all of the other
configuration settings.
-->
<!ELEMENT struts-config (display-name?, description?, data-sources?, form-beans?, global-exceptions?, global-forwards?, action-mappings?, controller?, message-resources*, plug-in*)>
<!ATTLIST struts-config id ID #IMPLIED>
<!-- The "data-sources" element describes a set of DataSource objects [JDBC 2.0
Standard Extension]. The individual DataSource objects are configured through
nested <data-source> elements.
-->
<!ELEMENT data-sources (data-source*)>
<!ATTLIST data-sources id ID #IMPLIED>
<!-- The "data-source" element describes a DataSource object [JDBC 2.0 Standard
Extension] that will be instantiated, configured, and made available as a
servlet context attribute (or "application-scope bean"). Any object can be
specified so long as it implements [javax.sql.DataSource] and can be
configured entirely from JavaBean properties. The following attributes
are required:
className The configuration bean for this DataSource object. If
specified, the object must be a subclass of the default
configuration bean.
["org.apache.struts.config.DataSourceConfig"]
key Servlet context attribute key under which this data source
will be stored. Default is the value specified by string
constant defined by Globals.DATA_SOURCE_KEY. The application
module prefix (if any) is appended to the key
(${key}$prefix}).
[org.apache.struts.Globals.DATA_SOURCE_KEY]
NOTE: The application module prefix includes the leading
slash, so the default datasource for a module named "foo" is
stored under "org.apache.struts.action.DATA_SOURCE/foo".
type Fully qualified Java class name for this data source object.
The class must implement DataSource [javax.sql.DataSource],
and the object must be configurable entirely from JavaBean
properties.
-->
<!ELEMENT data-source (set-property*)>
<!ATTLIST data-source id ID #IMPLIED>
<!ATTLIST data-source className %ClassName; #IMPLIED>
<!ATTLIST data-source key %AttributeName; #IMPLIED>
<!ATTLIST data-source type %ClassName; #REQUIRED>
<!-- The "form-beans" element describes the set of form bean descriptors for this
module. The following attributes are defined:
type Fully qualified Java class to use when instantiating
ActionFormBean objects. If specified, the object must be a
subclass of the default class type.
WARNING: For Struts 1.0, this value is ignored. You
can set the default implementation class name with the
"formBean" initialization parameter to the Struts
controller servlet.
-->
<!ELEMENT form-beans (form-bean*)>
<!ATTLIST form-beans id ID #IMPLIED>
<!ATTLIST form-beans type %ClassName; #IMPLIED>
<!-- The "form-bean" element describes an ActionForm subclass
[org.apache.struts.action.ActionForm] that can be referenced by an "action"
element.
The "form-bean" element describes a particular form bean, which is a
JavaBean that implements the org.apache.struts.action.ActionForm
class. The following attributes are defined:
className The configuration bean for this form bean object. If
specified, the object must be a subclass of the default
configuration bean.
["org.apache.struts.config.FormBeanConfig"]
name The unique identifier for this form bean. Referenced by the
<action> element to specify which form bean to use with its
request.
type Fully qualified Java class name of the ActionForm subclass
to use with this form bean.
-->
<!ELEMENT form-bean (icon?, display-name?, description?, set-property*, form-property*)>
<!ATTLIST form-bean id ID #IMPLIED>
<!ATTLIST form-bean className %ClassName; #IMPLIED>
<!ATTLIST form-bean dynamic %Boolean; #IMPLIED>
<!ATTLIST form-bean name %BeanName; #REQUIRED>
<!ATTLIST form-bean type %ClassName; #REQUIRED>
<!-- The "form-property" element describes a JavaBean property that can be used to
configure an instance of a DynaActionForm or a subclass thereof. This element
is only utilized when the "type" attribute of the enclosing "form-bean" element
is [org.apache.struts.action.DynaActionForm] or a subclass of DynaActionForm. If
a custom DynaActionForm subclass is used, then the "dynamic" attribute of the
enclosing <form-bean> element must be set to "true". Since Struts 1.1.
className The configuration bean for this form property object. If
specified, the object must be a subclass of the default
configuration bean.
["org.apache.struts.config.FormPropertyConfig"]
initial String representation of the initial value for this property.
If not specified, primitives will be initialized to zero and
objects initialized to the zero-argument instantiation of that
object class. For example, Strings will be initialized to ""
name The name of the JavaBean property described by this element.
size The number of array elements to create if the value of the
"type" attribute specifies an array, but there is no value
specified for the "initial" attribute.
type Fully qualified Java class name of the field underlying this
property, optionally followed by "[]" to indicate that the
field is indexed.
-->
<!ELEMENT form-property (set-property*)>
<!ATTLIST form-property className %ClassName; #IMPLIED>
<!ATTLIST form-property initial CDATA #IMPLIED>
<!ATTLIST form-property name %PropName; #REQUIRED>
<!ATTLIST form-property size %Integer; #IMPLIED>
<!ATTLIST form-property type %ClassName; #REQUIRED>
<!-- The "global-exceptions" element describes a set of exceptions that might be
thrown by an Action object. The handling of individual exception types is
configured through nested exception elements. An <action> element may
override a global exception handler by registering a local exception handler
for the same exception type. Since Struts 1.1.
-->
<!ELEMENT global-exceptions (exception*)>
<!ATTLIST global-exceptions id ID #IMPLIED>
<!-- The "exception" element registers an ExceptionHandler for an exception type.
The following attributes are defined:
bundle Servlet context attribute for the message resources bundle
associated with this handler. The default attribute is the
value specified by the string constant declared at
Globals.MESSAGES_KEY.
[org.apache.struts.Globals.MESSAGES_KEY]
className The configuration bean for this ExceptionHandler object.
If specified, className must be a subclass of the default
configuration bean
["org.apache.struts.config.ExceptionConfig"]
handler Fully qualified Java class name for this exception handler.
["org.apache.struts.action.ExceptionHandler"]
key The key to use with this handler's message resource bundle
that will retrieve the error message template for this
exception.
path The module-relative URI to the resource that will complete
the request/response if this exception occurs.
scope The context ("request" or "session") that is used to access
the ActionError object [org.apache.struts.action.ActionError]
for this exception.
type Fully qualified Java class name of the exception type to
register with this handler.
-->
<!ELEMENT exception (icon?, display-name?, description?, set-property*)>
<!ATTLIST exception id ID #IMPLIED>
<!ATTLIST exception bundle %AttributeName; #IMPLIED>
<!ATTLIST exception className %ClassName; #IMPLIED>
<!ATTLIST exception handler %ClassName; #IMPLIED>
<!ATTLIST exception key CDATA #REQUIRED>
<!ATTLIST exception path %RequestPath; #IMPLIED>
<!ATTLIST exception scope CDATA #IMPLIED>
<!ATTLIST exception type %ClassName; #REQUIRED>
<!-- The "global-forwards" element describes a set of ActionForward objects
[org.apache.struts.action.ActionForward] that are available to all Action
objects as a return value. The individual ActionForwards are configured
through nested <forward> elements. An <action> element may override a global
forward by defining a local <forward> of the same name.
type Fully qualified Java class to use when instantiating
ActionForward objects. If specified, the object must be a
subclass of the default class type.
WARNING: For Struts 1.0, this value is ignored. You
can set the default implementation class name with the
"forward" initialization parameter to the Struts
controller servlet.
-->
<!ELEMENT global-forwards (forward*)>
<!ATTLIST global-forwards id ID #IMPLIED>
<!ATTLIST global-forwards type %ClassName; #IMPLIED>
<!-- The "forward" element describes an ActionForward that is to be made
available to an Action as a return value. An ActionForward is referenced by
a logical name and encapsulates a URI. A "forward" element may be used to
describe both global and local ActionForwards. Global forwards are available
to all the Action objects in the module. Local forwards can be
nested within an <action> element and only available to an Action object
when it is invoked through that ActionMapping.
className Fully qualified Java class name of ActionForward
subclass to use for this object.
["org.apache.struts.action.ActionForward"]
contextRelative Set this to "true" if, in a modular application, the path
attribute starts with a slash "/" and should be considered
relative to the entire web application rather than the module.
Since Struts 1.1.
DEPRECATED.
[false]
module The module prefix to use with this path. This value should
begin with a slash ("/").
name The unique identifier for this forward. Referenced by the
Action object at runtime to select - by its logical name -
the resource that should complete the request/response.
path The module-relative or context-relative path to the resources
that is encapsulated by the logical name of this ActionForward.
If the path is to be considered context-relative when used in
a modular application, then the contextRelative attribute
should be set to "true". This value should begin with a slash
("/") character.
redirect Set to "true" if a redirect instruction should be issued to
the user-agent so that a new request is issued for this
forward's resource. If true, RequestDispatcher.Redirect is
called. If "false", RequestDispatcher.forward is called instead.
[false]
-->
<!ELEMENT forward (icon?, display-name?, description?, set-property*)>
<!ATTLIST forward id ID #IMPLIED>
<!ATTLIST forward className %ClassName; #IMPLIED>
<!ATTLIST forward contextRelative %Boolean; #IMPLIED>
<!ATTLIST forward module %RequestPath; #IMPLIED>
<!ATTLIST forward name CDATA #REQUIRED>
<!ATTLIST forward path %RequestPath; #REQUIRED>
<!ATTLIST forward redirect %Boolean; #IMPLIED>
<!-- The "action-mappings" element describes a set of ActionMapping objects
[org.apache.struts.action.ActionMapping] that are available to process
requests matching the url-pattern our ActionServlet registered with the
container. The individual ActionMappings are configured through nested
<action> elements. The following attributes are defined:
type Fully qualified Java class to use when instantiating
ActionMapping objects. If specified, the object must be a
subclass of the default class type.
WARNING: For Struts 1.0, this value is ignored. You
can set the default implementation class name with the
"mapping" initialization parameter to the Struts
controller servlet.
-->
<!ELEMENT action-mappings (action*)>
<!ATTLIST action-mappings id ID #IMPLIED>
<!ATTLIST action-mappings type %ClassName; #IMPLIED>
<!-- The "action" element describes an ActionMapping object that is to be used
to process a request for a specific module-relative URI. The following
attributes are defined:
attribute Name of the request-scope or session-scope attribute that
is used to access our ActionForm bean, if it is other than
the bean's specified "name". Optional if "name" is specified,
else not valid.
className The fully qualified Java class name of the ActionMapping
subclass to use for this action mapping object. Defaults to
the type specified by the enclosing <action-mappings>
element or to "org.apache.struts.action.ActionMapping" if
not specified.
["org.apache.struts.action.ActionMapping"]
forward Module-relative path of the servlet or other resource that
will process this request, instead of the Action class
specified by "type". The path WILL NOT be processed
through the "forwardPattern" attribute that is configured
on the "controller" element for this module.
Exactly one of "forward", "include", or "type" must be
specified.
include Module-relative path of the servlet or other resource that
will process this request, instead of the Action class
specified by "type". The path WILL NOT be processed
through the "forwardPattern" attribute that is configured
on the "controller" element for this module.
Exactly one of "forward", "include", or "type" must be
specified.
input Module-relative path of the action or other resource to
which control should be returned if a validation error is
encountered. Valid only when "name" is specified. Required
if "name" is specified and the input bean returns
validation errors. Optional if "name" is specified and the
input bean does not return validation errors.
name Name of the form bean, if any, that is associated with this
action mapping.
path The module-relative path of the submitted request, starting
with a "/" character, and without the filename extension if
extension mapping is used.
NOTE: Do *not* include a period in your path name,
because it will look like a filename extension and
cause your Action to not be located.
parameter General-purpose configuration parameter that can be used to
pass extra information to the Action object selected by
this action mapping.
prefix Prefix used to match request parameter names to ActionForm
property names, if any. Optional if "name" is specified,
else not allowed.
roles Comma-delimited list of security role names that are allowed
access to this ActionMapping object. Since Struts 1.1.
scope The context ("request" or "session") that is used to
access our ActionForm bean, if any. Optional if "name" is
specified, else not valid.
suffix Suffix used to match request parameter names to ActionForm
bean property names, if any. Optional if "name" is
specified, else not valid.
type Fully qualified Java class name of the Action subclass
[org.apache.struts.action.Action] that will process requests
for this action mapping. Not valid if either the "forward"
or "include" attribute is specified. Exactly one of
"forward", "include", or "type" must be specified.
unknown Set to "true" if this object should be configured as the
default action mapping for this module. If a request does not
match another object, it will be passed to the ActionMapping
object with unknown set to "true". Only one ActionMapping
can be marked as "unknown" within a module.
[false]
validate Set to "true" if the validate method of the ActionForm bean
should be called prior to calling the Action object for this
action mapping, or set to "false" if you do not want the
validate method called.
[true]
-->
<!ELEMENT action (icon?, display-name?, description?, set-property*, exception*, forward*)>
<!ATTLIST action id ID #IMPLIED>
<!ATTLIST action attribute %BeanName; #IMPLIED>
<!ATTLIST action className %ClassName; #IMPLIED>
<!ATTLIST action forward %RequestPath; #IMPLIED>
<!ATTLIST action include %RequestPath; #IMPLIED>
<!ATTLIST action input %RequestPath; #IMPLIED>
<!ATTLIST action name %BeanName; #IMPLIED>
<!ATTLIST action parameter CDATA #IMPLIED>
<!ATTLIST action path %RequestPath; #REQUIRED>
<!ATTLIST action prefix CDATA #IMPLIED>
<!ATTLIST action roles CDATA #IMPLIED>
<!ATTLIST action scope %RequestScope; #IMPLIED>
<!ATTLIST action suffix CDATA #IMPLIED>
<!ATTLIST action type %ClassName; #IMPLIED>
<!ATTLIST action unknown %Boolean; #IMPLIED>
<!ATTLIST action validate %Boolean; #IMPLIED>
<!-- The "controller" element describes the ControllerConfig bean
[org.apache.struts.config.ControllerConfig] that encapsulates
a module's runtime configuration. The following
attributes are defined:
bufferSize The size of the input buffer used when processing
file uploads.
[4096]
className Fully qualified Java class name of the
ControllerConfig subclass for this controller object.
If specified, the object must be a subclass of the
default class.
["org.apache.struts.config.ControllerConfig"]
contentType Default content type (and optional character encoding) to
be set on each response. May be overridden by the Action,
JSP, or other resource to which the request is forwarded.
["text/html"]
forwardPattern Replacement pattern defining how the "path" attribute of a
<forward> element is mapped to a context-relative URL when
it starts with a slash (and when the contextRelative
property is false). This value may consist of any
combination of the following:
- "$M" - Replaced by the module prefix of this module
- "$P" - Replaced by the "path" attribute of the selected
"forward" element
- "$$" - Causes a literal dollar sign to be rendered
- "$x" - (Where "x" is any character not defined above)
Silently swallowed, reserved for future use
If not specified, the default forwardPattern is "$M$P",
which is consistent with the previous behavior of
forwards. Since Struts 1.1. ["$M$P"]
inputForward Set to "true" if you want the "input" attribute of
<action> elements to be the name of a local or global
ActionForward, which will then be used to calculate the
ultimate URL. Set to "false" (the default) to treat the
"input" parameter of <action> elements as a
module-relative path to the resource
to be used as the input form. Since Struts 1.1.
[false]
locale Set to "true" if you want a Locale object stored in the
user's session if not already present.
[true]
maxFileSize The maximum size (in bytes) of a file to be accepted as a
file upload. Can be expressed as a number followed by a
"K", "M", or "G", which are interpreted to mean kilobytes,
megabytes, or gigabytes, respectively.
["250M"]
memFileSize The maximum size (in bytes) of a file whose contents will
be retained in memory after uploading. Files larger than
this threshold will be written to some alternative storage
medium, typically a hard disk. Can be expressed as a number
followed by a "K", "M", or "G", which are interpreted to
mean kilobytes, megabytes, or gigabytes, respectively.
["256K"]
multipartClass The fully qualified Java class name of the multipart
request handler class to be used with this module.
["org.apache.struts.upload.CommonsMultipartRequestHandler"]
nocache Set to "true" if you want the controller to add HTTP
headers for defeating caching to every response from
this module. [false]
pagePattern Replacement pattern defining how the "page" attribute of
custom tags using it is mapped to a context-relative URL
of the corresponding resource. This value may consist of
any combination of the following:
- "$M" - Replaced by the module prefix of this module
- "$P" - Replaced by the value of the "page" attribute
- "$$" - Causes a literal dollar sign to be rendered
- "$x" - (Where "x" is any character not defined above)
Silently swallowed, reserved for future use
If not specified, the default forwardPattern is
"$M$P", which is consistent with previous hard coded
behavior of URL evaluation for "page" attributes.
["$M$P"]
processorClass The fully qualified Java class name of the
RequestProcessor subclass to be used with this module.
["org.apache.struts.action.RequestProcessor"]
tempDir Temporary working directory to use when processing
file uploads.
[{Directory provided by servlet container}]
-->
<!ELEMENT controller (set-property*)>
<!ATTLIST controller id ID #IMPLIED>
<!ATTLIST controller bufferSize %Integer; #IMPLIED>
<!ATTLIST controller className %ClassName; #IMPLIED>
<!ATTLIST controller contentType CDATA #IMPLIED>
<!ATTLIST controller forwardPattern CDATA #IMPLIED>
<!ATTLIST controller inputForward %Boolean; #IMPLIED>
<!ATTLIST controller locale %Boolean; #IMPLIED>
<!ATTLIST controller maxFileSize CDATA #IMPLIED>
<!ATTLIST controller memFileSize CDATA #IMPLIED>
<!ATTLIST controller multipartClass %ClassName; #IMPLIED>
<!ATTLIST controller nocache %Boolean; #IMPLIED>
<!ATTLIST controller pagePattern CDATA #IMPLIED>
<!ATTLIST controller processorClass %ClassName; #IMPLIED>
<!ATTLIST controller tempDir CDATA #IMPLIED>
<!-- The "message-resources" element describes a MessageResources object with
message templates for this module. The following attributes are defined:
className The configuration bean for this message resources object.
If specified, the object must be a subclass of the default
configuration bean.
["org.apache.struts.config.MessageResourcesConfig"]
factory Fully qualified Java class name of the
MessageResourcesFactory subclass to use for this message
resources object.
["org.apache.struts.util.PropertyMessageResourcesFactory"]
key Servlet context attribute under which this message
resources bundle will be stored. The default attribute is
the value specified by the string constant at
[Globals.MESSAGES_KEY]. The module prefix (if
any) is appended to the key (${key}${prefix}).
[org.apache.struts.Globals.MESSAGES_KEY]
NOTE: The module prefix includes the leading
slash, so the default message resource bundle for a module
named "foo" is stored under
"org.apache.struts.action.MESSAGE/foo".
null Set to "true" if you want our message resources to return a
null string for unknown message keys, or "false" to return a
message with the bad key value.
parameter Configuration parameter to be passed to the createResources
method of our factory object.
-->
<!ELEMENT message-resources (set-property*)>
<!ATTLIST message-resources id ID #IMPLIED>
<!ATTLIST message-resources className %ClassName; #IMPLIED>
<!ATTLIST message-resources factory %ClassName; #IMPLIED>
<!ATTLIST message-resources key %AttributeName; #IMPLIED>
<!ATTLIST message-resources null %Boolean; #IMPLIED>
<!ATTLIST message-resources parameter CDATA #REQUIRED>
<!-- The "plug-in" element specifies the fully qualified class name of a
general-purpose application plug-in module that receives notification of
application startup and shutdown events. An instance of the specified class
is created for each element, and can be configured with nested <set-property>
elements. The following attributes are supported:
className Fully qualified Java class name of the plug-in class; must
implement [org.apache.struts.action.PlugIn].
-->
<!ELEMENT plug-in (set-property*)>
<!ATTLIST plug-in id ID #IMPLIED>
<!ATTLIST plug-in className %ClassName; #REQUIRED>
<!-- ========== Subordinate Elements ====================================== -->
<!-- The "description" element contains descriptive (paragraph length) text
about the surrounding element, suitable for use in GUI tools.
-->
<!ELEMENT description (#PCDATA)>
<!ATTLIST description id ID #IMPLIED>
<!-- The "display-name" element contains a short (one line) description of
the surrounding element, suitable for use in GUI tools.
-->
<!ELEMENT display-name (#PCDATA)>
<!ATTLIST display-name id ID #IMPLIED>
<!-- The "icon" element contains a small-icon and large-icon element which
specify the location, relative to the Struts configuration file, for small
and large images used to represent the surrounding element in GUI tools.
-->
<!ELEMENT icon (small-icon?, large-icon?)>
<!ATTLIST icon id ID #IMPLIED>
<!-- The "large-icon" element specifies the location, relative to the Struts
configuration file, of a resource containing a large (32x32 pixel)
icon image.
-->
<!ELEMENT large-icon (%Location;)>
<!ATTLIST large-icon id ID #IMPLIED>
<!-- The "set-property" element specifies the method name and initial value of
an additional JavaBean configuration property. When the object representing
the surrounding element is instantiated, the accessor for the indicated
property is called and passed the indicated value. The "set-property"
element is especially useful when a custom subclass is used with
<data-source>, <forward>, <action>, or <plug-in> elements. The subclass
can be passed whatever other properties may be required to configure the
object without changing how the struts-config is parsed.
property Name of the JavaBeans property whose setter method
will be called.
value String representation of the value to which this
property will be set, after suitable type conversion
-->
<!ELEMENT set-property EMPTY>
<!ATTLIST set-property id ID #IMPLIED>
<!ATTLIST set-property property %PropName; #REQUIRED>
<!ATTLIST set-property value CDATA #REQUIRED>
<!-- The "small-icon" element specifies the location, relative to the Struts
configuration file, of a resource containing a small (16x16 pixel)
icon image.
-->
<!ELEMENT small-icon (%Location;)>
<!ATTLIST small-icon id ID #IMPLIED>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,652 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
<taglib>
<tlibversion>1.2</tlibversion>
<jspversion>1.1</jspversion>
<shortname>logic</shortname>
<uri>http://struts.apache.org/tags-logic</uri>
<tag>
<name>empty</name>
<tagclass>org.apache.struts.taglib.logic.EmptyTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>equal</name>
<tagclass>org.apache.struts.taglib.logic.EqualTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>cookie</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>header</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>parameter</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>value</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>forward</name>
<tagclass>org.apache.struts.taglib.logic.ForwardTag</tagclass>
<bodycontent>empty</bodycontent>
<attribute>
<name>name</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>greaterEqual</name>
<tagclass>org.apache.struts.taglib.logic.GreaterEqualTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>cookie</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>header</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>parameter</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>value</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>greaterThan</name>
<tagclass>org.apache.struts.taglib.logic.GreaterThanTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>cookie</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>header</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>parameter</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>value</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>iterate</name>
<tagclass>org.apache.struts.taglib.logic.IterateTag</tagclass>
<teiclass>org.apache.struts.taglib.logic.IterateTei</teiclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>collection</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>id</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>indexId</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>length</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>offset</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>type</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>lessEqual</name>
<tagclass>org.apache.struts.taglib.logic.LessEqualTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>cookie</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>header</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>parameter</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>value</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>lessThan</name>
<tagclass>org.apache.struts.taglib.logic.LessThanTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>cookie</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>header</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>parameter</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>value</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>match</name>
<tagclass>org.apache.struts.taglib.logic.MatchTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>cookie</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>header</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>location</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>parameter</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>value</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>messagesNotPresent</name>
<tagclass>org.apache.struts.taglib.logic.MessagesNotPresentTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>message</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>messagesPresent</name>
<tagclass>org.apache.struts.taglib.logic.MessagesPresentTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>message</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>notEmpty</name>
<tagclass>org.apache.struts.taglib.logic.NotEmptyTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>notEqual</name>
<tagclass>org.apache.struts.taglib.logic.NotEqualTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>cookie</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>header</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>parameter</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>value</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>notMatch</name>
<tagclass>org.apache.struts.taglib.logic.NotMatchTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>cookie</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>header</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>location</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>parameter</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>value</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>notPresent</name>
<tagclass>org.apache.struts.taglib.logic.NotPresentTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>cookie</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>header</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>parameter</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>role</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>user</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>present</name>
<tagclass>org.apache.struts.taglib.logic.PresentTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>cookie</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>header</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>parameter</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>role</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>user</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>redirect</name>
<tagclass>org.apache.struts.taglib.logic.RedirectTag</tagclass>
<attribute>
<name>action</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>anchor</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>forward</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>href</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>page</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>paramId</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>paramName</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>paramProperty</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>paramScope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>transaction</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>useLocalEncoding</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
</taglib>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,344 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
<taglib>
<tlibversion>1.2</tlibversion>
<jspversion>1.1</jspversion>
<shortname>tiles</shortname>
<uri>http://struts.apache.org/tags-tiles</uri>
<tag>
<name>insert</name>
<tagclass>org.apache.struts.taglib.tiles.InsertTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>template</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>component</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>page</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>definition</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>attribute</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>beanName</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>beanProperty</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>beanScope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>flush</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>ignore</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>role</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>controllerUrl</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>controllerClass</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>definition</name>
<tagclass>org.apache.struts.taglib.tiles.DefinitionTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>id</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>template</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>page</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>role</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>extends</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>put</name>
<tagclass>org.apache.struts.taglib.tiles.PutTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>value</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>content</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>direct</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>type</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>beanName</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>beanProperty</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>beanScope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>role</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>putList</name>
<tagclass>org.apache.struts.taglib.tiles.PutListTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>name</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>add</name>
<tagclass>org.apache.struts.taglib.tiles.AddTag</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>value</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>content</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>direct</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>type</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>beanName</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>beanProperty</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>beanScope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>role</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>get</name>
<tagclass>org.apache.struts.taglib.tiles.GetTag</tagclass>
<bodycontent>empty</bodycontent>
<attribute>
<name>name</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>ignore</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>flush</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>role</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>getAsString</name>
<tagclass>org.apache.struts.taglib.tiles.GetAttributeTag</tagclass>
<bodycontent>empty</bodycontent>
<attribute>
<name>name</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>ignore</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>role</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>useAttribute</name>
<tagclass>org.apache.struts.taglib.tiles.UseAttributeTag</tagclass>
<teiclass>org.apache.struts.taglib.tiles.UseAttributeTei</teiclass>
<bodycontent>empty</bodycontent>
<attribute>
<name>id</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>classname</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>name</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>ignore</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>importAttribute</name>
<tagclass>org.apache.struts.taglib.tiles.ImportAttributeTag</tagclass>
<bodycontent>empty</bodycontent>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>ignore</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<name>initComponentDefinitions</name>
<tagclass>org.apache.struts.taglib.tiles.InitDefinitionsTag</tagclass>
<bodycontent>empty</bodycontent>
<attribute>
<name>file</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>classname</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
</taglib>

View File

@ -0,0 +1,281 @@
<!--
DTD for the Tile Definition File, Version 1.1
To support validation of your configuration file, include the following
DOCTYPE element at the beginning (after the "xml" declaration):
<!DOCTYPE tiles-definitions PUBLIC
"-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
"http://struts.apache.org/dtds/tiles-config_1_1.dtd">
$Id: tiles-config_1_1.dtd,v 1.1 2005/06/23 08:33:30 vishee Exp $
-->
<!-- ========== Defined Types ============================================= -->
<!-- A "Boolean" is the string representation of a boolean (true or false)
variable.
-->
<!ENTITY % Boolean "(true|false)">
<!-- A "ContentType" is the content type of an attribute passed to a tile
component.
-->
<!ENTITY % ContentType "(string|page|template|definition)">
<!-- A "ClassName" is the fully qualified name of a Java class that is
instantiated to provide the functionality of the enclosing element.
-->
<!ENTITY % ClassName "CDATA">
<!-- A "RequestPath" is an module-relative URI path, beginning with a
slash, that identifies a mapped resource (such as a JSP page or a servlet)
within this web application.
-->
<!ENTITY % RequestPath "CDATA">
<!-- A "DefinitionName" is the unique identifier of a definition. This identifier
is a logical name used to reference the definition.
-->
<!ENTITY % DefinitionName "CDATA">
<!-- A "BeanName" is the identifier of a JavaBean, such as a form bean,
and also serves as the name of the corresponding scripting variable
and the name of the JSP attribute under which the bean is accessed.
Therefore, it must conform to the rules for a Java identifier.
-->
<!ENTITY % BeanName "CDATA">
<!-- A "PropName" is the name of a JavaBeans property, and must begin with
a lower case letter and contain only characters that are legal in a
Java identifier.
-->
<!ENTITY % PropName "CDATA">
<!-- A "Location" is a relative path, delimited by "/" characters, that
defines the location of a resource relative to the location of the
configuration file itself.
-->
<!ENTITY % Location "#PCDATA">
<!-- ========== Top Level Elements ======================================== -->
<!-- deprecated: use tiles-definitions instead.-->
<!ELEMENT component-definitions (definition+)>
<!-- The "tiles-definitions" element is the root of the configuration file
hierarchy, and contains nested elements for all of the other
configuration settings.
-->
<!ELEMENT tiles-definitions (definition+)>
<!-- The "definition" element describes a definition that can be inserted in a jsp
page. This definition is identified by its logical name. A definition allows
to define all the attributes that can be set in <insert> tag from a jsp page.
controllerClass The fully qualified Java class name of the controller
subclass to call immediately before the tiles is inserted.
Only one of controllerClass or controllerUrl should be
specified.
controllerUrl The context-relative path to the resource used as controller
called immediately before the tiles is inserted.
Only one of controllerClass or controllerUrl should be
specified.
extends Name of a definition that is used as ancestor of this definition.
All attributes from the ancestor are available to the new
definition. Any attribute inherited from the ancestor can
be overloaded by providing a new value.
name The unique identifier for this definition.
page Same as path.
path The context-relative path to the resource used as tiles to
insert. This tiles will be inserted and a tiles context
containing appropriate attributes will be available.
role Security role name that is allowed access to this definition
object. The definition is inserted only if the role name is
allowed.
template Same as path. For compatibility with the template tag library.
-->
<!ELEMENT definition (icon?, display-name?, description?, put*, putList*)>
<!ATTLIST definition id ID #IMPLIED>
<!ATTLIST definition controllerClass %ClassName; #IMPLIED>
<!ATTLIST definition controllerUrl %RequestPath; #IMPLIED>
<!ATTLIST definition extends %DefinitionName; #IMPLIED>
<!ATTLIST definition name %DefinitionName; #REQUIRED>
<!ATTLIST definition page %RequestPath; #IMPLIED>
<!ATTLIST definition path %RequestPath; #IMPLIED>
<!ATTLIST definition role CDATA #IMPLIED>
<!ATTLIST definition template %RequestPath; #IMPLIED>
<!-- The "put" element describes an attribute of a definition. It allows to
specify the tiles attribute name and its value. The tiles value can be
specified as an xml attribute, or in the body of the <put> tag.
content Same as value. For compatibility with the template tag library.
direct Same as type="string". For compatibility with the template
tag library.
name The unique identifier for this put.
type The type of the value. Can be: string, page, template or definition.
By default, no type is associated to a value. If a type is
associated, it will be used as a hint to process the value
when the attribute will be used in the inserted tiles.
value The value associated to this tiles attribute. The value should
be specified with this tag attribute, or in the body of the tag.
-->
<!ELEMENT put (#PCDATA)>
<!ATTLIST put id ID #IMPLIED>
<!ATTLIST put content CDATA #IMPLIED>
<!ATTLIST put direct %Boolean; #IMPLIED>
<!ATTLIST put name CDATA #REQUIRED>
<!ATTLIST put type %ContentType; #IMPLIED>
<!ATTLIST put value CDATA #IMPLIED>
<!-- The "putList" element describes a list attribute of a definition. It allows to
specify an attribute that is a java List containing any kind of values. In
the config file, the list elements are specified by nested <add>, <item> or
<putList>.
name The unique identifier for this put list.
-->
<!ELEMENT putList ( (add* | item* | bean* | putList*)+) >
<!ATTLIST putList id ID #IMPLIED>
<!ATTLIST putList name CDATA #REQUIRED>
<!-- ========== Subordinate Elements ====================================== -->
<!-- The "add" element describes an element of a list. It is similar to the
<put> element.
content Same as value. For compatibility with the template tag library.
direct Same as type="string". For compatibility with the template
tag library.
type The type of the value. Can be: string, page, template or definition.
By default, no type is associated to a value. If a type is
associated, it will be used as a hint to process the value
when the attribute will be used in the inserted tiles.
value The value associated to this tiles attribute. The value should
be specified with this tag attribute, or in the body of the tag.
-->
<!ELEMENT add (#PCDATA)>
<!ATTLIST add id ID #IMPLIED>
<!ATTLIST add content CDATA #IMPLIED>
<!ATTLIST add direct %Boolean; #IMPLIED>
<!ATTLIST add type %ContentType; #IMPLIED>
<!ATTLIST add value CDATA #IMPLIED>
<!-- The "bean" element describes an element of a list. It create a bean of the
specified java classtype. This bean is initialized with appropriate nested
<set-property>.
classtype The fully qualified classname for this bean.
-->
<!ELEMENT bean (set-property*)>
<!ATTLIST bean id ID #IMPLIED>
<!ATTLIST bean classtype %ClassName; #REQUIRED>
<!-- The "set-property" element specifies the method name and initial value of
a bean property. When the object representing
the surrounding element is instantiated, the accessor for the indicated
property is called and passed the indicated value.
property Name of the JavaBeans property whose setter method
will be called.
value String representation of the value to which this
property will be set, after suitable type conversion
-->
<!ELEMENT set-property EMPTY>
<!ATTLIST set-property id ID #IMPLIED>
<!ATTLIST set-property property %PropName; #REQUIRED>
<!ATTLIST set-property value CDATA #REQUIRED>
<!-- The "item" element describes an element of a list. It create a bean added as
element to the list. Each bean can contain different properties: value, link,
icon, tooltip. These properties are to be interpreted by the jsp page using
them.
By default the bean is of type
"org.apache.struts.tiles.beans.SimpleMenuItem". This bean is useful to
create a list of beans used as menu items.
classtype The fully qualified classtype for this bean.
If specified, the classtype must be a subclass of the interface
"org.apache.struts.tiles.beans.MenuItem".
icon The bean 'icon' property.
link The bean 'link' property.
tooltip The bean 'tooltip' property.
value The bean 'value' property.
-->
<!ELEMENT item (#PCDATA)>
<!ATTLIST item id ID #IMPLIED>
<!ATTLIST item classtype %ClassName; #IMPLIED>
<!ATTLIST item icon CDATA #IMPLIED>
<!ATTLIST item link CDATA #REQUIRED>
<!ATTLIST item tooltip CDATA #IMPLIED>
<!ATTLIST item value CDATA #REQUIRED>
<!-- ========== Info Elements ====================================== -->
<!-- The "description" element contains descriptive (paragraph length) text
about the surrounding element, suitable for use in GUI tools.
-->
<!ELEMENT description (#PCDATA)>
<!ATTLIST description id ID #IMPLIED>
<!-- The "display-name" element contains a short (one line) description of
the surrounding element, suitable for use in GUI tools.
-->
<!ELEMENT display-name (#PCDATA)>
<!ATTLIST display-name id ID #IMPLIED>
<!-- The "icon" element contains a small-icon and large-icon element which
specify the location, relative to the Struts configuration file, for small
and large images used to represent the surrounding element in GUI tools.
-->
<!ELEMENT icon (small-icon?, large-icon?)>
<!ATTLIST icon id ID #IMPLIED>
<!-- The "large-icon" element specifies the location, relative to the Struts
configuration file, of a resource containing a large (32x32 pixel)
icon image.
-->
<!ELEMENT large-icon (%Location;)>
<!ATTLIST large-icon id ID #IMPLIED>
<!-- The "small-icon" element specifies the location, relative to the Struts
configuration file, of a resource containing a small (16x16 pixel)
icon image.
-->
<!ELEMENT small-icon (%Location;)>
<!ATTLIST small-icon id ID #IMPLIED>

View File

@ -0,0 +1,42 @@
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE tiles-definitions PUBLIC
"-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd">
<!--
This is a blank Tiles definition file with a commented example.
-->
<tiles-definitions>
<!-- sample tiles definitions
<definition name=".mainLayout" path="/common/layouts/classicLayout.jsp">
<put name="title" value="Sample Page Title" />
<put name="header" value="/common/header.jsp" />
<put name="menu" value=".mainMenu" />
<put name="footer" value="/common/footer.jsp" />
<put name="body" value=".portal.body" />
</definition>
<definition name=".mainMenu" path="/common/layouts/vboxLayout.jsp" >
<putList name="list" >
<add value=".menu.links" />
<add value=".menu.taglib.references" />
<add value=".menu.printer.friendly" />
<add value=".menu.old.documents" />
</putList>
</definition>
<definition name="aPage" extends=".mainLayout">
<put name="title" value="Another Title" />
<put name="body" value=".aPage.body" />
</definition>
end samples -->
<definition name="${YOUR_DEFINITION_HERE}">
</definition>
</tiles-definitions>

View File

@ -0,0 +1,287 @@
<!DOCTYPE form-validation PUBLIC
"-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1.3//EN"
"http://jakarta.apache.org/commons/dtds/validator_1_1_3.dtd">
<!--
$Header: /usr/local/cvs/posterita/WEB-INF/validator-rules.xml,v 1.2 2005/12/21 06:02:22 jane Exp $
$Revision: 1.2 $
$Date: 2005/12/21 06:02:22 $
This file contains the default Struts Validator pluggable validator
definitions. It should be placed somewhere under /WEB-INF and
referenced in the struts-config.xml under the plug-in element
for the ValidatorPlugIn.
<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property property="pathnames" value="/WEB-INF/validator-rules.xml,
/WEB-INF/validation.xml"/>
</plug-in>
These are the default error messages associated with
each validator defined in this file. They should be
added to your projects ApplicationResources.properties
file or you can associate new ones by modifying the
pluggable validators msg attributes in this file.
# Struts Validator Error Messages
errors.required={0} is required.
errors.minlength={0} can not be less than {1} characters.
errors.maxlength={0} can not be greater than {1} characters.
errors.invalid={0} is invalid.
errors.byte={0} must be a byte.
errors.short={0} must be a short.
errors.integer={0} must be an integer.
errors.long={0} must be a long.
errors.float={0} must be a float.
errors.double={0} must be a double.
errors.date={0} is not a date.
errors.range={0} is not in the range {1} through {2}.
errors.creditcard={0} is an invalid credit card number.
errors.email={0} is an invalid e-mail address.
Note: Starting in Struts 1.2.0 the default javascript definitions have
been consolidated to commons-validator. The default can be overridden
by supplying a <javascript> element with a CDATA section, just as
in struts 1.1.
-->
<form-validation>
<global>
<validator name="required"
classname="org.apache.struts.validator.FieldChecks"
method="validateRequired"
methodParams="java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,
org.apache.struts.action.ActionMessages,
javax.servlet.http.HttpServletRequest"
msg="errors.required"/>
<validator name="requiredif"
classname="org.apache.struts.validator.FieldChecks"
method="validateRequiredIf"
methodParams="java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,
org.apache.struts.action.ActionMessages,
org.apache.commons.validator.Validator,
javax.servlet.http.HttpServletRequest"
msg="errors.required"/>
<validator name="validwhen"
msg="errors.required"
classname="org.apache.struts.validator.validwhen.ValidWhen"
method="validateValidWhen"
methodParams="java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,
org.apache.struts.action.ActionMessages,
org.apache.commons.validator.Validator,
javax.servlet.http.HttpServletRequest"/>
<validator name="minlength"
classname="org.apache.struts.validator.FieldChecks"
method="validateMinLength"
methodParams="java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,
org.apache.struts.action.ActionMessages,
javax.servlet.http.HttpServletRequest"
depends=""
msg="errors.minlength"
jsFunction="org.apache.commons.validator.javascript.validateMinLength"/>
<validator name="maxlength"
classname="org.apache.struts.validator.FieldChecks"
method="validateMaxLength"
methodParams="java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,
org.apache.struts.action.ActionMessages,
javax.servlet.http.HttpServletRequest"
depends=""
msg="errors.maxlength"
jsFunction="org.apache.commons.validator.javascript.validateMaxLength"/>
<validator name="mask"
classname="org.apache.struts.validator.FieldChecks"
method="validateMask"
methodParams="java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,
org.apache.struts.action.ActionMessages,
javax.servlet.http.HttpServletRequest"
depends=""
msg="errors.invalid"/>
<validator name="byte"
classname="org.apache.struts.validator.FieldChecks"
method="validateByte"
methodParams="java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,
org.apache.struts.action.ActionMessages,
javax.servlet.http.HttpServletRequest"
depends=""
msg="errors.byte"
jsFunctionName="ByteValidations"/>
<validator name="short"
classname="org.apache.struts.validator.FieldChecks"
method="validateShort"
methodParams="java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,
org.apache.struts.action.ActionMessages,
javax.servlet.http.HttpServletRequest"
depends=""
msg="errors.short"
jsFunctionName="ShortValidations"/>
<validator name="integer"
classname="org.apache.struts.validator.FieldChecks"
method="validateInteger"
methodParams="java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,
org.apache.struts.action.ActionMessages,
javax.servlet.http.HttpServletRequest"
depends=""
msg="errors.integer"
jsFunctionName="IntegerValidations"/>
<validator name="long"
classname="org.apache.struts.validator.FieldChecks"
method="validateLong"
methodParams="java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,
org.apache.struts.action.ActionMessages,
javax.servlet.http.HttpServletRequest"
depends=""
msg="errors.long"/>
<validator name="float"
classname="org.apache.struts.validator.FieldChecks"
method="validateFloat"
methodParams="java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,
org.apache.struts.action.ActionMessages,
javax.servlet.http.HttpServletRequest"
depends=""
msg="errors.float"
jsFunctionName="FloatValidations"/>
<validator name="double"
classname="org.apache.struts.validator.FieldChecks"
method="validateDouble"
methodParams="java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,
org.apache.struts.action.ActionMessages,
javax.servlet.http.HttpServletRequest"
depends=""
msg="errors.double"/>
<validator name="date"
classname="org.apache.struts.validator.FieldChecks"
method="validateDate"
methodParams="java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,
org.apache.struts.action.ActionMessages,
javax.servlet.http.HttpServletRequest"
depends=""
msg="errors.date"
jsFunctionName="DateValidations"/>
<validator name="intRange"
classname="org.apache.struts.validator.FieldChecks"
method="validateIntRange"
methodParams="java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,
org.apache.struts.action.ActionMessages,
javax.servlet.http.HttpServletRequest"
depends="integer"
msg="errors.range"/>
<validator name="floatRange"
classname="org.apache.struts.validator.FieldChecks"
method="validateFloatRange"
methodParams="java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,
org.apache.struts.action.ActionMessages,
javax.servlet.http.HttpServletRequest"
depends="float"
msg="errors.range"/>
<validator name="creditCard"
classname="org.apache.struts.validator.FieldChecks"
method="validateCreditCard"
methodParams="java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,
org.apache.struts.action.ActionMessages,
javax.servlet.http.HttpServletRequest"
depends=""
msg="errors.creditcard"/>
<validator name="email"
classname="org.apache.struts.validator.FieldChecks"
method="validateEmail"
methodParams="java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,
org.apache.struts.action.ActionMessages,
javax.servlet.http.HttpServletRequest"
depends=""
msg="errors.email"/>
<validator name="url"
classname="org.apache.struts.validator.FieldChecks"
method="validateUrl"
methodParams="java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,
org.apache.struts.action.ActionMessages,
javax.servlet.http.HttpServletRequest"
depends=""
msg="errors.url"/>
<!--
This simply allows struts to include the validateUtilities into a page, it should
not be used as a validation rule.
-->
<validator name="includeJavaScriptUtilities"
classname=""
method=""
methodParams=""
depends=""
msg=""
jsFunction="org.apache.commons.validator.javascript.validateUtilities"/>
</global>
</form-validation>

View File

@ -0,0 +1,565 @@
<!--
The web-app element is the root of the deployment descriptor for
a web application
-->
<!ELEMENT web-app (icon?, display-name?, description?, distributable?,
context-param*, servlet*, servlet-mapping*, session-config?,
mime-mapping*, welcome-file-list?, error-page*, taglib*,
resource-ref*, security-constraint*, login-config?, security-role*,
env-entry*, ejb-ref*)>
<!--
The icon element contains a small-icon and a large-icon element
which specify the location within the web application for a small and
large image used to represent the web application in a GUI tool. At a
minimum, tools must accept GIF and JPEG format images.
-->
<!ELEMENT icon (small-icon?, large-icon?)>
<!--
The small-icon element contains the location within the web
application of a file containing a small (16x16 pixel) icon image.
-->
<!ELEMENT small-icon (#PCDATA)>
<!--
The large-icon element contains the location within the web
application of a file containing a large (32x32 pixel) icon image.
-->
<!ELEMENT large-icon (#PCDATA)>
<!--
The display-name element contains a short name that is intended
to be displayed by GUI tools
-->
<!ELEMENT display-name (#PCDATA)>
<!--
The description element is used to provide descriptive text about
the parent element.
-->
<!ELEMENT description (#PCDATA)>
<!--
The distributable element, by its presence in a web application
deployment descriptor, indicates that this web application is
programmed appropriately to be deployed into a distributed servlet
container
-->
<!ELEMENT distributable EMPTY>
<!--
The context-param element contains the declaration of a web
application's servlet context initialization parameters.
-->
<!ELEMENT context-param (param-name, param-value, description?)>
<!--
The param-name element contains the name of a parameter.
-->
<!ELEMENT param-name (#PCDATA)>
<!--
The param-value element contains the value of a parameter.
-->
<!ELEMENT param-value (#PCDATA)>
<!--
The servlet element contains the declarative data of a
servlet. If a jsp-file is specified and the load-on-startup element is
present, then the JSP should be precompiled and loaded.
-->
<!ELEMENT servlet (icon?, servlet-name, display-name?, description?,
(servlet-class|jsp-file), init-param*, load-on-startup?, security-role-ref*)>
<!--
The servlet-name element contains the canonical name of the
servlet.
-->
<!ELEMENT servlet-name (#PCDATA)>
<!--
The servlet-class element contains the fully qualified class name
of the servlet.
-->
<!ELEMENT servlet-class (#PCDATA)>
<!--
The jsp-file element contains the full path to a JSP file within
the web application.
-->
<!ELEMENT jsp-file (#PCDATA)>
<!--
The init-param element contains a name/value pair as an
initialization param of the servlet
-->
<!ELEMENT init-param (param-name, param-value, description?)>
<!--
The load-on-startup element indicates that this servlet should be
loaded on the startup of the web application. The optional contents of
these element must be a positive integer indicating the order in which
the servlet should be loaded. Lower integers are loaded before higher
integers. If no value is specified, or if the value specified is not a
positive integer, the container is free to load it at any time in the
startup sequence.
-->
<!ELEMENT load-on-startup (#PCDATA)>
<!--
The servlet-mapping element defines a mapping between a servlet
and a url pattern
-->
<!ELEMENT servlet-mapping (servlet-name, url-pattern)>
<!--
The url-pattern element contains the url pattern of the
mapping. Must follow the rules specified in Section 10 of the Servlet
API Specification.
-->
<!ELEMENT url-pattern (#PCDATA)>
<!--
The session-config element defines the session parameters for
this web application.
-->
<!ELEMENT session-config (session-timeout?)>
<!--
The session-timeout element defines the default session timeout
interval for all sessions created in this web application. The
specified timeout must be expressed in a whole number of minutes.
-->
<!ELEMENT session-timeout (#PCDATA)>
<!--
The mime-mapping element defines a mapping between an extension
and a mime type.
-->
<!ELEMENT mime-mapping (extension, mime-type)>
<!--
The extension element contains a string describing an
extension. example: "txt"
-->
<!ELEMENT extension (#PCDATA)>
<!--
The mime-type element contains a defined mime type. example:
"text/plain"
-->
<!ELEMENT mime-type (#PCDATA)>
<!--
The welcome-file-list contains an ordered list of welcome files
elements.
-->
<!ELEMENT welcome-file-list (welcome-file+)>
<!--
The welcome-file element contains file name to use as a default
welcome file, such as index.html
-->
<!ELEMENT welcome-file (#PCDATA)>
<!--
The taglib element is used to describe a JSP tag library.
-->
<!ELEMENT taglib (taglib-uri, taglib-location)>
<!--
The taglib-uri element describes a URI, relative to the location
of the web.xml document, identifying a Tag Library used in the Web
Application.
-->
<!ELEMENT taglib-uri (#PCDATA)>
<!--
the taglib-location element contains the location (as a resource
relative to the root of the web application) where to find the Tag
Libary Description file for the tag library.
-->
<!ELEMENT taglib-location (#PCDATA)>
<!--
The error-page element contains a mapping between an error code
or exception type to the path of a resource in the web application
-->
<!ELEMENT error-page ((error-code | exception-type), location)>
<!--
The error-code contains an HTTP error code, ex: 404
-->
<!ELEMENT error-code (#PCDATA)>
<!--
The exception type contains a fully qualified class name of a
Java exception type.
-->
<!ELEMENT exception-type (#PCDATA)>
<!--
The location element contains the location of the resource in the
web application
-->
<!ELEMENT location (#PCDATA)>
<!--
The resource-ref element contains a declaration of a Web
Application's reference to an external resource.
-->
<!ELEMENT resource-ref (description?, res-ref-name, res-type, res-auth)>
<!--
The res-ref-name element specifies the name of the resource
factory reference name.
-->
<!ELEMENT res-ref-name (#PCDATA)>
<!--
The res-type element specifies the (Java class) type of the data
source.
-->
<!ELEMENT res-type (#PCDATA)>
<!--
The res-auth element indicates whether the application component
code performs resource signon programmatically or whether the
container signs onto the resource based on the principle mapping
information supplied by the deployer. Must be CONTAINER or SERVLET
-->
<!ELEMENT res-auth (#PCDATA)>
<!--
The security-constraint element is used to associate security
constraints with one or more web resource collections
-->
<!ELEMENT security-constraint (web-resource-collection+,
auth-constraint?, user-data-constraint?)>
<!--
The web-resource-collection element is used to identify a subset
of the resources and HTTP methods on those resources within a web
application to which a security constraint applies. If no HTTP methods
are specified, then the security constraint applies to all HTTP
methods.
-->
<!ELEMENT web-resource-collection (web-resource-name, description?,
url-pattern*, http-method*)>
<!--
The web-resource-name contains the name of this web resource
collection
-->
<!ELEMENT web-resource-name (#PCDATA)>
<!--
The http-method contains an HTTP method (GET | POST |...)
-->
<!ELEMENT http-method (#PCDATA)>
<!--
The user-data-constraint element is used to indicate how data
communicated between the client and container should be protected
-->
<!ELEMENT user-data-constraint (description?, transport-guarantee)>
<!--
The transport-guarantee element specifies that the communication
between client and server should be NONE, INTEGRAL, or
CONFIDENTIAL. NONE means that the application does not require any
transport guarantees. A value of INTEGRAL means that the application
requires that the data sent between the client and server be sent in
such a way that it can't be changed in transit. CONFIDENTIAL means
that the application requires that the data be transmitted in a
fashion that prevents other entities from observing the contents of
the transmission. In most cases, the presence of the INTEGRAL or
CONFIDENTIAL flag will indicate that the use of SSL is required.
-->
<!ELEMENT transport-guarantee (#PCDATA)>
<!--
The auth-constraint element indicates the user roles that should
be permitted access to this resource collection. The role used here
must appear in a security-role-ref element.
-->
<!ELEMENT auth-constraint (description?, role-name*)>
<!--
The role-name element contains the name of a security role.
-->
<!ELEMENT role-name (#PCDATA)>
<!--
The login-config element is used to configure the authentication
method that should be used, the realm name that should be used for
this application, and the attributes that are needed by the form login
mechanism.
-->
<!ELEMENT login-config (auth-method?, realm-name?, form-login-config?)>
<!--
The realm name element specifies the realm name to use in HTTP
Basic authorization
-->
<!ELEMENT realm-name (#PCDATA)>
<!--
The form-login-config element specifies the login and error pages
that should be used in form based login. If form based authentication
is not used, these elements are ignored.
-->
<!ELEMENT form-login-config (form-login-page, form-error-page)>
<!--
The form-login-page element defines the location in the web app
where the page that can be used for login can be found
-->
<!ELEMENT form-login-page (#PCDATA)>
<!--
The form-error-page element defines the location in the web app
where the error page that is displayed when login is not successful
can be found
-->
<!ELEMENT form-error-page (#PCDATA)>
<!--
The auth-method element is used to configure the authentication
mechanism for the web application. As a prerequisite to gaining access
to any web resources which are protected by an authorization
constraint, a user must have authenticated using the configured
mechanism. Legal values for this element are "BASIC", "DIGEST",
"FORM", or "CLIENT-CERT".
-->
<!ELEMENT auth-method (#PCDATA)>
<!--
The security-role element contains the declaration of a security
role which is used in the security-constraints placed on the web
application.
-->
<!ELEMENT security-role (description?, role-name)>
<!--
The role-name element contains the name of a role. This element
must contain a non-empty string.
-->
<!ELEMENT security-role-ref (description?, role-name, role-link)>
<!--
The role-link element is used to link a security role reference
to a defined security role. The role-link element must contain the
name of one of the security roles defined in the security-role
elements.
-->
<!ELEMENT role-link (#PCDATA)>
<!--
The env-entry element contains the declaration of an
application's environment entry. This element is required to be
honored on in J2EE compliant servlet containers.
-->
<!ELEMENT env-entry (description?, env-entry-name, env-entry-value?,
env-entry-type)>
<!--
The env-entry-name contains the name of an application's
environment entry
-->
<!ELEMENT env-entry-name (#PCDATA)>
<!--
The env-entry-value element contains the value of an
application's environment entry
-->
<!ELEMENT env-entry-value (#PCDATA)>
<!--
The env-entry-type element contains the fully qualified Java type
of the environment entry value that is expected by the application
code. The following are the legal values of env-entry-type:
java.lang.Boolean, java.lang.String, java.lang.Integer,
java.lang.Double, java.lang.Float.
-->
<!ELEMENT env-entry-type (#PCDATA)>
<!--
The ejb-ref element is used to declare a reference to an
enterprise bean.
-->
<!ELEMENT ejb-ref (description?, ejb-ref-name, ejb-ref-type, home, remote,
ejb-link?)>
<!--
The ejb-ref-name element contains the name of an EJB
reference. This is the JNDI name that the servlet code uses to get a
reference to the enterprise bean.
-->
<!ELEMENT ejb-ref-name (#PCDATA)>
<!--
The ejb-ref-type element contains the expected java class type of
the referenced EJB.
-->
<!ELEMENT ejb-ref-type (#PCDATA)>
<!--
The ejb-home element contains the fully qualified name of the
EJB's home interface
-->
<!ELEMENT home (#PCDATA)>
<!--
The ejb-remote element contains the fully qualified name of the
EJB's remote interface
-->
<!ELEMENT remote (#PCDATA)>
<!--
The ejb-link element is used in the ejb-ref element to specify
that an EJB reference is linked to an EJB in an encompassing Java2
Enterprise Edition (J2EE) application package. The value of the
ejb-link element must be the ejb-name of and EJB in the J2EE
application package.
-->
<!ELEMENT ejb-link (#PCDATA)>
<!--
The ID mechanism is to allow tools to easily make tool-specific
references to the elements of the deployment descriptor. This allows
tools that produce additional deployment information (i.e information
beyond the standard deployment descriptor information) to store the
non-standard information in a separate file, and easily refer from
these tools-specific files to the information in the standard web-app
deployment descriptor.
-->
<!ATTLIST web-app id ID #IMPLIED>
<!ATTLIST icon id ID #IMPLIED>
<!ATTLIST small-icon id ID #IMPLIED>
<!ATTLIST large-icon id ID #IMPLIED>
<!ATTLIST display-name id ID #IMPLIED>
<!ATTLIST description id ID #IMPLIED>
<!ATTLIST distributable id ID #IMPLIED>
<!ATTLIST context-param id ID #IMPLIED>
<!ATTLIST param-name id ID #IMPLIED>
<!ATTLIST param-value id ID #IMPLIED>
<!ATTLIST servlet id ID #IMPLIED>
<!ATTLIST servlet-name id ID #IMPLIED>
<!ATTLIST servlet-class id ID #IMPLIED>
<!ATTLIST jsp-file id ID #IMPLIED>
<!ATTLIST init-param id ID #IMPLIED>
<!ATTLIST load-on-startup id ID #IMPLIED>
<!ATTLIST servlet-mapping id ID #IMPLIED>
<!ATTLIST url-pattern id ID #IMPLIED>
<!ATTLIST session-config id ID #IMPLIED>
<!ATTLIST session-timeout id ID #IMPLIED>
<!ATTLIST mime-mapping id ID #IMPLIED>
<!ATTLIST extension id ID #IMPLIED>
<!ATTLIST mime-type id ID #IMPLIED>
<!ATTLIST welcome-file-list id ID #IMPLIED>
<!ATTLIST welcome-file id ID #IMPLIED>
<!ATTLIST taglib id ID #IMPLIED>
<!ATTLIST taglib-uri id ID #IMPLIED>
<!ATTLIST taglib-location id ID #IMPLIED>
<!ATTLIST error-page id ID #IMPLIED>
<!ATTLIST error-code id ID #IMPLIED>
<!ATTLIST exception-type id ID #IMPLIED>
<!ATTLIST location id ID #IMPLIED>
<!ATTLIST resource-ref id ID #IMPLIED>
<!ATTLIST res-ref-name id ID #IMPLIED>
<!ATTLIST res-type id ID #IMPLIED>
<!ATTLIST res-auth id ID #IMPLIED>
<!ATTLIST security-constraint id ID #IMPLIED>
<!ATTLIST web-resource-collection id ID #IMPLIED>
<!ATTLIST web-resource-name id ID #IMPLIED>
<!ATTLIST http-method id ID #IMPLIED>
<!ATTLIST user-data-constraint id ID #IMPLIED>
<!ATTLIST transport-guarantee id ID #IMPLIED>
<!ATTLIST auth-constraint id ID #IMPLIED>
<!ATTLIST role-name id ID #IMPLIED>
<!ATTLIST login-config id ID #IMPLIED>
<!ATTLIST realm-name id ID #IMPLIED>
<!ATTLIST form-login-config id ID #IMPLIED>
<!ATTLIST form-login-page id ID #IMPLIED>
<!ATTLIST form-error-page id ID #IMPLIED>
<!ATTLIST auth-method id ID #IMPLIED>
<!ATTLIST security-role id ID #IMPLIED>
<!ATTLIST security-role-ref id ID #IMPLIED>
<!ATTLIST role-link id ID #IMPLIED>
<!ATTLIST env-entry id ID #IMPLIED>
<!ATTLIST env-entry-name id ID #IMPLIED>
<!ATTLIST env-entry-value id ID #IMPLIED>
<!ATTLIST env-entry-type id ID #IMPLIED>
<!ATTLIST ejb-ref id ID #IMPLIED>
<!ATTLIST ejb-ref-name id ID #IMPLIED>
<!ATTLIST ejb-ref-type id ID #IMPLIED>
<!ATTLIST home id ID #IMPLIED>
<!ATTLIST remote id ID #IMPLIED>
<!ATTLIST ejb-link id ID #IMPLIED>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,171 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<icon>
<large-icon>/C32.gif</large-icon>
</icon>
<display-name>Tamak ICT Enterprise Software Platform</display-name>
<description>$Id: web.xml,v 1.18 2006/10/16 13:34:18 ashley Exp $</description>
<!--Standard Parameters - if 0 first non-demo client is used-->
<context-param>
<param-name>#AD_Client_ID</param-name>
<param-value>0</param-value>
</context-param>
<context-param>
<param-name>#AD_Language</param-name>
<param-value>en_US</param-value>
</context-param>
<context-param>
<param-name>#AD_Org_ID</param-name>
<param-value>0</param-value>
</context-param>
<context-param>
<param-name>#AD_User_ID</param-name>
<param-value>0</param-value>
</context-param>
<context-param>
<param-name>#C_BankAccount_ID</param-name>
<param-value>0</param-value>
</context-param>
<context-param>
<param-name>#SalesRep_ID</param-name>
<param-value>0</param-value>
</context-param>
<context-param>
<param-name>#AD_Role_ID</param-name>
<param-value>0</param-value>
</context-param>
<context-param>
<param-name>#W_Store_ID</param-name>
<param-value>1000000</param-value>
</context-param>
<context-param>
<param-name>REPORT_DIRECTORY</param-name>
<param-value>/config/reports/</param-value>
</context-param>
<!-- Standard Action Servlet Configuration (with debugging) -->
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>2</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>2</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet>
<servlet-name>DisplayChart</servlet-name>
<servlet-class>org.jfree.chart.servlet.DisplayChart</servlet-class>
</servlet>
<servlet>
<servlet-name>DisplayReportServlet</servlet-name>
<servlet-class>org.posterita.core.utils.DisplayReportServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<!-- JFreeChart servlet -->
<servlet-mapping>
<servlet-name>DisplayChart</servlet-name>
<url-pattern>/servlet/DisplayChart</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>DisplayReportServlet</servlet-name>
<url-pattern>/servlet/DisplayReportServlet/*</url-pattern>
</servlet-mapping>
<!-- Session Config -->
<session-config>
<session-timeout>60</session-timeout>
</session-config>
<!-- Standard Action Servlet Mapping -->
<!-- The Usual Welcome File List -->
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<!-- Struts Tag Library Descriptors -->
<taglib>
<taglib-uri>/tags/struts-bean</taglib-uri>
<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/tags/struts-html</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/tags/struts-logic</taglib-uri>
<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/tags/struts-nested</taglib-uri>
<taglib-location>/WEB-INF/struts-nested.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/tags/struts-tiles</taglib-uri>
<taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
</taglib>
<!-- Compiere Taglib -->
<!--
<taglib>
<taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/c.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/fmt</taglib-uri>
<taglib-location>/WEB-INF/fmt.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/sql</taglib-uri>
<taglib-location>/WEB-INF/sql.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/xml</taglib-uri>
<taglib-location>/WEB-INF/x.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>webStore.tld</taglib-uri>
<taglib-location>/WEB-INF/webStore.tld</taglib-location>
</taglib>
-->
</web-app>

View File

@ -0,0 +1,213 @@
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib
PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
"http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
<taglib>
<tlib-version>1.0</tlib-version>
<jsp-version>1.2</jsp-version>
<short-name>cws</short-name>
<uri>webStore.tld</uri>
<display-name>Compiere WebStore</display-name>
<description>$Id: webStore.tld,v 1.1 2005/06/23 08:33:30 vishee Exp $</description>
<tag>
<name>requestType</name>
<tag-class>org.compiere.wstore.RequestTypeTag</tag-class>
<body-content>empty</body-content>
<description>Request Type Selection</description>
</tag>
<tag>
<name>loginLink</name>
<tag-class>org.compiere.wstore.LoginLinkTag</tag-class>
<body-content>empty</body-content>
<description>Login Links</description>
</tag>
<tag>
<name>checkOutLink</name>
<tag-class>org.compiere.wstore.CheckOutLinkTag</tag-class>
<body-content>empty</body-content>
<description>CheckOut Links</description>
<attribute>
<name>oneLine</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>infoLink</name>
<tag-class>org.compiere.wstore.InfoLinkTag</tag-class>
<body-content>empty</body-content>
<description>Info Links</description>
<attribute>
<name>oneLine</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>priceList</name>
<tag-class>org.compiere.wstore.PriceListTag</tag-class>
<body-content>empty</body-content>
<description>Initializes + loads Price List</description>
<attribute>
<name>priceList_ID</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>productCategoryList</name>
<tag-class>org.compiere.wstore.ProductCategoryListTag</tag-class>
<body-content>empty</body-content>
<description>Login Links</description>
</tag>
<tag>
<name>workflow</name>
<tag-class>org.compiere.wstore.WorkflowTag</tag-class>
<body-content>empty</body-content>
<description>Workflow Choices</description>
<attribute>
<name>activityID</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>location</name>
<tag-class>org.compiere.wstore.LocationTag</tag-class>
<body-content>empty</body-content>
<description>Location table rows</description>
<attribute>
<name>countryID</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>regionID</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>regionName</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>postal</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>city</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>message</name>
<tag-class>org.compiere.wstore.MessageTag</tag-class>
<body-content>empty</body-content>
<description>Translate Messages</description>
<attribute>
<name>txt</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<name>tableBorder</name>
<tag-class>com.tamak.webstore.util.TableBorder</tag-class>
<body-content>JSP</body-content>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>lcTopImg</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>bgTopImg</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>rcTopImg</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>topBorderHeight</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>bgLeftImg</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>sideBorderHeight</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>borderBgColor</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>contentBgColor</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>classStyleSheet</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>bgRightImg</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>lcBtmImg</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>bgBtmImg</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>rcBtmImg</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>btmBorderHeight</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>borderWidth</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
</taglib>

View File

@ -0,0 +1,194 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Ashley
--%>
<%@ page import="org.posterita.Constants" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>POSterita</title>
<link type="text/css" href="css/newPOS.jsp" rel="stylesheet">
<link type="text/css" href="css/common.jsp" rel="stylesheet">
<link rel="shortcut icon" href="images/posterita.jpg" type="image/jpg" />
</head>
<body>
<div id="keyboard"></div>
<center>
<table cellspacing="0">
<tr>
<!--
<td style="width:150px;border:solid 1px #000000">
&nbsp;
</td>
-->
<td>
<div class="main" align="center">
<!-- start of header layout -->
<div class="header">
<table width="100%" class="layout">
<tr>
<td class="headerLogo" align="right" valign="bottom">
<font class="redcolor">
</font>
</td>
</tr>
</table>
</div>
<div class="menu">
<table width="100%" class="topmenu">
<tr>
<td>
<font class="title">
Create Client
</font>
</td>
</tr>
</table>
</div>
<div class="content">
<table width="100%" class="layout">
<tr>
<td>
<html:form action="/ClientAction">
<html:hidden property="action" value="createClient"/>
<%@ include file="/jsp/include/errors.jsp" %>
<table>
<TR>
<td valign="top">
<fieldset>
<legend><font class="title">Client</font></legend>
<table width="100%" border="0" class="display">
<tr>
<td>Client Name</td>
<td><html:text property="clientName"/></td>
</tr>
<tr>
<td>Organisation Name</td>
<td><html:text property="orgName"/></td>
</tr>
<tr>
<td>Currency</td>
<td>
<html:select property="currencyId" value="100" style="width:190px">
<html:options collection="<%=Constants.CURRENCIES%>" property="key" labelProperty="name"/>
</html:select>
</td>
</tr>
<tr>
<td>Address</td>
<td><html:text property="address1"/></td>
</tr>
<tr>
<td>Postal Address</td>
<td><html:text property="postalAddress"/></td>
</tr>
<tr>
<td>City</td>
<td><html:text property="city"/></td>
</tr>
<tr>
<td>Country</td>
<td>
<html:select property="countryId" value="100" style="width:190px">
<html:options collection="<%=Constants.COUNTRIES%>" property="key" labelProperty="name"/>
</html:select>
</td>
</tr>
</table>
</fieldset>
</td>
<td valign="top">
<fieldset>
<legend><font class="title">Administrator</font></legend>
<table width="100%" border="0" class="display">
<tr>
<td>User Name</td>
<td><html:text property="username"/></td>
</tr>
<tr>
<td>Role Name</td>
<td><html:text property="roleName"/></td>
</tr>
<tr>
<td>Password</td>
<td><html:password property="password"/></td>
</tr>
<tr>
<td>Confirm Password</td>
<td><html:password property="confirmPassword"/></td>
</tr>
<tr>
<td>User PIN</td>
<td><html:password property="userPIN"/></td>
</tr>
<tr>
<td>Email</td>
<td><html:text property="email"/></td>
</tr>
</table>
</fieldset>
</td>
</TR>
<tr>
<td>
&nbsp;
</td>
<td align="right">
<html:button property="button" styleClass="save smallbutton" onclick="newsubmit(this)" tabindex="10" accesskey="s">
&nbsp;
</html:button>
</td>
</tr>
</table>
</html:form>
<SCRIPT>
function newsubmit(button)
{
form=document.forms[0];
button.disabled=true;
form.submit();
}
</SCRIPT>
</center>
</body>
</html>

View File

@ -0,0 +1,51 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Alok
--%>
<!-- createPOSCustomer.jsp -->
<%@ page import="org.posterita.struts.customer.CustomerAction" %>
<%@ page import="org.compiere.model.MBPartner" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="/WEB-INF/pos.tld" prefix="pos"%>
<bean:define id="title"><pos:element columnName="create.customer" textOnly="true"/></bean:define>
<%@ include file="/jsp/include/posHeader.jsp" %>
<%@ include file="/jsp/include/errors.jsp" %>
<html:form action="/CreatePOSCustomerAction" focus="partnerName">
<html:hidden property="action" value="<%=CustomerAction.SAVE_POS_CUSTOMER%>" />
<%@ include file="/jsp/pos/customerDetails.jsp" %>
</html:form>
<%@ include file="/jsp/include/posFooter.jsp" %>

View File

@ -0,0 +1,138 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Alok
--%>
<%@ page import="org.posterita.user.*" %>
<%@ page import="org.posterita.beans.*" %>
<%@ page import ="org.posterita.Constants" %>
<%@ page import="org.compiere.model.MOrg" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<tiles:insert page="/jsp/include/headerTableTop.jsp">
<tiles:put name="title"><bean:message key="bPartner.title"/></tiles:put>
</tiles:insert>
<%@ include file="/jsp/include/tabTop.jsp" %>Customers<%@ include file="/jsp/include/tabBottom.jsp" %>
<table width="100%" border="0" cellpadding="5" cellspacing="0">
<tr>
<td>
<%@ include file="/jsp/include/errors.jsp" %>
</td>
</tr>
<tr>
<td>
<table width="100%" border="0" class="content" cellpadding="5" cellspacing="1" align="center" cols="5">
<tr>
<th colspan="1">
Surname
</th>
<th colspan="1">
Name
</th>
<th colspan="1">
Customer ID No.
</th>
<th colspan="1">
Phone No.
</th>
<th colspan="1">
Cell No.
</th>
<th colspan="1">
AA Card No.
</th>
<th colspan="1">
Address
</th>
<th colspan="1">
City
</th>
<th colspan="1">&nbsp;
</th>
</tr>
<logic:iterate indexId="count" id="element" name="<%=Constants.ALL_CUSTOMERS%>" type="org.posterita.beans.CustomerBean">
<tr>
<%
String styleClass = "label";
if ((count.intValue()%2) != 0)
styleClass = "contentname";
%>
<td class="<%=styleClass%>">
<bean:write name="element" property="surname"/>
</td>
<td class="<%=styleClass%>">
<bean:write name="element" property="partnerName"/>
</td>
<td class="<%=styleClass%>">
<bean:write name="element" property="custIdNumber"/>
</td>
<td class="<%=styleClass%>">
<bean:write name="element" property="phone"/>
</td>
<td class="<%=styleClass%>">
<bean:write name="element" property="phone2"/>
</td>
<td class="<%=styleClass%>">
<bean:write name="element" property="aaCardnumber"/>
</td>
<td class="<%=styleClass%>">
<bean:write name="element" property="address1"/>
</td>
<td class="<%=styleClass%>">
<bean:write name="element" property="city"/>
</td>
</td>
</tr>
</logic:iterate>
</table>
</td>
</tr>
</table>
<%@ include file="/jsp/include/footerTableBottom.jsp" %>

View File

@ -0,0 +1,50 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Alok
--%>
<!-- savePOSCustomer.jsp -->
<%@ page import="org.posterita.struts.customer.CustomerAction" %>
<%@ page import="org.compiere.model.MBPartner" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="/WEB-INF/pos.tld" prefix="pos"%>
<bean:define id="title"><pos:element columnName="create.customer" textOnly="true"/></bean:define>
<%@ include file="/jsp/include/posHeader.jsp" %>
<%@ include file="/jsp/include/errors.jsp" %>
<html:form action="/CreatePOSCustomerAction" focus="partnerName">
<html:hidden property="action" value="<%=CustomerAction.SAVE_POS_CUSTOMER%>" />
<%@ include file="/jsp/pos/customerDetails.jsp" %>
</html:form>
<%@ include file="/jsp/include/posFooter.jsp" %>

View File

@ -0,0 +1,78 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Tamak
--%>
<%@ page import="org.apache.struts.Globals" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<tiles:insert page="/jsp/include/posHeader.jsp">
<tiles:put name="title"><bean:message key="errorpage.title"/></tiles:put>
</tiles:insert>
<table width="100%" border="0" cellpadding="5" cellspacing="0">
<tr>
<td valign="top">
<%@ include file="/jsp/include/tabTop.jsp" %><bean:message key="errorpage.heading"/><%@ include file="/jsp/include/tabBottom.jsp" %>
<html:base/>
<!--<html:errors />-->
<B><bean:write name="<%=Globals.EXCEPTION_KEY%>" property="localizedMessage"/></B>
<br>
<!-- TODO taglib-->
<%--
Exception xception = (Exception) request.getAttribute(Globals.EXCEPTION_KEY);
out.println(xception.getMessage());
--%>
<%--
Exception xception = (Exception) request.getAttribute(Globals.EXCEPTION_KEY);
StackTraceElement[] stackTraceElem = xception.getStackTrace();
for(int i = 0;i<stackTraceElem.length; i++)
{
out.println(stackTraceElem[i].toString());
}
--%>
</td>
</tr>
</table>
<%@ include file="/jsp/include/posFooter.jsp" %>

View File

@ -0,0 +1,153 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Vishee
--%>
<%@ page import="org.posterita.Constants" %>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50%" class="label">
<bean:write name="<%=Constants.WEB_DOCUMENT_HEADER_BEAN%>" property="to"/>
<B><c:out value='${me.name}'/></B>
</td>
<td align="right" class="label">
<bean:write name="<%=Constants.WEB_DOCUMENT_HEADER_BEAN%>" property="from"/>
<c:out value='${you.name}'/>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td class="label">
Document Type: <bean:write name="<%=Constants.WEB_DOCUMENT_HEADER_BEAN%>" property="documentHeader"/>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<%@ include file="/jsp/include/errors.jsp" %>
<table width="100%" border="0 cellspacing="0" cellspacing="0">
<tr>
<td colspan="2" class="label">
<c:url value="ViewInvoiceAction.do" var="invoiceId">
<c:param name="action" value="viewInvoice"/>
<c:param name="documentId" value="${minvoice.c_Invoice_ID}"/>
</c:url>
Invoice Ref No:
<a href='<c:out value="${invoiceId}"/>'>
<c:out value="${minvoice.c_Invoice_ID}"/>
</a>
</td>
</tr>
<tr>
<td width="50%" class="label">
Shipment Ref No: <bean:write name="<%=Constants.MINOUT%>" property="m_InOut_ID"/>
</td>
<td align="right" class="label">
Counter Shipment Ref No: <bean:write name="<%=Constants.MINOUT%>" property="ref_InOut_ID"/>
</td>
</tr>
<tr>
<td colspan="2" class="label">
Doc Status: <dcs:orderStatus name="<%=Constants.MINOUT%>" property="docStatus"/>
</td>
</tr>
<tr>
<td colspan="2">
&nbsp;
</td>
</tr>
</table>
</td>
</tr>
<tr class="white">
<td valign="top">
<table width="100%" class="content" cellpadding="5" cellspacing="1" align="center" border="1" cols="6">
<tr>
<th colspan="1" align="left" class="label"><bean:message key="product.umodel"/></th>
<th colspan="1" align="left" class="label"><bean:message key="product.ucolour"/></th>
<th colspan="1" align="left" class="label"><bean:message key="product.utransmission"/></th>
<th colspan="1" align="left" class="label"><bean:message key="product.year"/></th>
<th colspan="1" align="left" class="label"><bean:message key="product.vinNo"/></th>
<th colspan="1" align="left" class="label" width="12%">Quantity</th>
</tr>
<logic:iterate name="<%=Constants.MINOUT_LINES_COLLECTION%>" id="element" type="org.posterita.beans.WebMinOutLineBean">
<tr>
<td class="label">
<bean:write name="element" property="attributeValuesPair.modelAttributeValue.name"/>
</td>
<td class="label">
<bean:write name="element" property="attributeValuesPair.colourAttributeValue.name"/>
</td>
<td class="label">
<bean:write name="element" property="attributeValuesPair.transmissionAttributeValue.name"/>
</td>
<td class="label">
<bean:write name="element" property="attributeValuesPair.yearAttributeValue.name"/>
</td>
<td class="label">
<bean:write name="element" property="serno"/>
</td>
<td class="label">
1
</td>
</tr>
</logic:iterate>
</table>
</td>
</tr>

View File

@ -0,0 +1,65 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Vishee
--%>
<%@ page import="org.posterita.Constants" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="/WEB-INF/fmt.tld" prefix="fmt" %>
<%@ taglib uri="/WEB-INF/dcs.tld" prefix="dcs" %>
<html>
<head>
<link rel="stylesheet" href="css/style.css" type="text/css">
</head>
<body BGCOLOR="#FFFFFF">
<%@ include file="/jsp/include/tabTop.jsp" %><bean:write name="<%=Constants.WEB_DOCUMENT_HEADER_BEAN%>" property="documentHeader"/><%@ include file="/jsp/include/tabBottom.jsp" %>
<table bgcolor="#FFFFFF" width="100%">
<tr>
<td>
</td>
</tr>
<tr>
<td>
<%@ include file="/jsp/inOut/webStoreMinOutDetails.jsp" %>
</td>
</tr>
<tr>
<td>&nbsp;
</td>
</tr>
</table>
</body>
</html>

View File

@ -0,0 +1,103 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Vishee
--%>
<%@ page import="org.posterita.Constants" %>
<%@ page import="org.posterita.user.WebUserInfo" %>
<%@ page import="org.compiere.process.DocumentEngine" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="/WEB-INF/fmt.tld" prefix="fmt" %>
<%@ taglib uri="/WEB-INF/dcs.tld" prefix="dcs" %>
<logic:notPresent name="<%=WebUserInfo.NAME%>" scope="session">
<jsp:forward page="/LoginHome.do"/>
</logic:notPresent>
<tiles:insert page="/jsp/include/headerTableTop.jsp">
<tiles:put name="title"><bean:message key = "shipment.material.receipt"/></tiles:put>
</tiles:insert>
<%@ include file="/jsp/include/tabTop.jsp" %><bean:write name="<%=Constants.WEB_DOCUMENT_HEADER_BEAN%>" property="documentHeader"/><%@ include file="/jsp/include/tabBottom.jsp" %>
<html:form action="/ChangeMInOutStatusAction" onsubmit="return getAcceptPermission()">
<table width="100%" border="0" cellpadding="5" cellspacing="0">
<%@ include file="/jsp/include/errors.jsp" %>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
</td>
<td colspan="2" align="right">
<html:link href="#" onclick="window.open('PrintShipment.do','Print Shipment','width=700,height=600,scrollbars=yes,menubar=yes,toolbar=yes,resizable=no');">
<img src="images/ico_printer.gif" border="0"/>
</html:link>
</td>
</tr>
</table>
</td>
</tr>
<%@ include file="/jsp/inOut/webStoreMinOutDetails.jsp" %>
<tr>
<td>
<table width="100%" border="0" cellpadding="5" cellspacing="0">
<tr>
<td align="right">
<table>
<tr>
<logic:present name="<%=Constants.SIMPLE_COMMAND%>">
<logic:iterate name="<%=Constants.SIMPLE_COMMAND%>" id="simpleElement" type="java.lang.String">
<td align="right">
<html:submit property="submit" value="<%=simpleElement%>" styleClass="button"/>
</td>
</logic:iterate>
</logic:present>
<logic:present name="<%=Constants.COMPLEX_COMMAND%>">
<logic:iterate name="<%=Constants.COMPLEX_COMMAND%>" id="complexElement" type="java.lang.String">
<td align="right">
<html:submit property="submit" value="<%=complexElement%>" styleClass="button"/>
</td>
</logic:iterate>
</logic:present>
</html:form>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<%@ include file="/jsp/include/footerTableBottom.jsp" %>

View File

@ -0,0 +1,118 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Vishee
--%>
<%@ page import="org.posterita.Constants" %>
<%@ page import="org.posterita.user.*" %>
<%@ page import="org.compiere.model.MOrg" %>
<%@ page import="org.posterita.struts.InOut.InOutAction" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="/WEB-INF/fmt.tld" prefix="fmt" %>
<tiles:insert page="/jsp/include/headerTableTop.jsp">
<tiles:put name="title"><bean:message key="inout.receipt.history"/></tiles:put>
</tiles:insert>
<%@ include file="/jsp/include/tabTop.jsp" %><bean:message key="inout.receipt.history"/><%@ include file="/jsp/include/tabBottom.jsp" %>
<table width="100%" border="0" cellpadding="5" cellspacing="0">
<tr>
<td>
</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="5" align="right">
<html:form action="/ViewReceiptHistoryAction">
<html:hidden property="action" value="<%=InOutAction.VIEW_RECEIPT_HISTORY%>"/>
<%@ include file="/jsp/include/filter.jsp"%>
</html:form>
</table>
</td>
</tr>
<tr>
<td>
<table width="100%" border="0" class="content" cellpadding="5" cellspacing="1" align="center" cols="5">
<tr>
<th colspan="1"> <bean:message key="history.receiptNumber"/></th>
<th colspan="1"> <bean:message key="history.dealerName" /></th>
<th colspan="1"> <bean:message key="history.documentStatus" /></th>
<th colspan="1"> <bean:message key="history.date" /></th>
<th colspan="1"> <bean:message key="history.orderNumber" /></th>
<th colspan="1"> <bean:message key="history.invoiceNumber" /></th>
</tr>
<logic:iterate indexId="count" name="<%=Constants.RECEIPT_HISTORY%>" id="element" type="org.posterita.beans.InOutHistoryBean">
<tr>
<%
String styleClass = "label";
if ((count.intValue()%2) != 0)
styleClass = "contentname";
%>
<td class="<%=styleClass%>">
<bean:write name="element" property="inOutId"/>
</td>
<td class="<%=styleClass%>">
<bean:write name="element" property="partnerName"/>
</td>
<td class="<%=styleClass%>">
<bean:write name="element" property="docStatus"/>
</td>
<td class="<%=styleClass%>">
<%-- <fmt:formatDate value='${element.dateMovement}' pattern='MMM dd yyyy, HH:mm'/> --%>
</td>
<td class="<%=styleClass%>">
<bean:write name="element" property="orderId"/>
</td>
<td class="<%=styleClass%>">
<bean:write name="element" property="invoiceId"/>
</td>
</tr>
</logic:iterate>
</table>
</td>
</tr>
</table>
<%@ include file="/jsp/include/footerTableBottom.jsp" %>

View File

@ -0,0 +1,118 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Vishee
--%>
<%@ page import="org.posterita.Constants" %>
<%@ page import="org.posterita.user.*" %>
<%@ page import="org.compiere.model.MOrg" %>
<%@ page import="org.posterita.struts.InOut.InOutAction" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="/WEB-INF/fmt.tld" prefix="fmt" %>
<tiles:insert page="/jsp/include/headerTableTop.jsp">
<tiles:put name="title"><bean:message key="inout.shipment.history"/></tiles:put>
</tiles:insert>
<%@ include file="/jsp/include/tabTop.jsp" %><bean:message key="inout.shipment.history"/><%@ include file="/jsp/include/tabBottom.jsp" %>
<table width="100%" border="0" cellpadding="5" cellspacing="0">
<tr>
<td>
</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="5" align="right">
<html:form action="/ViewShipmentHistoryAction">
<html:hidden property="action" value="<%=InOutAction.VIEW_SHIPMENT_HISTORY%>"/>
<%@ include file="/jsp/include/filter.jsp"%>
</html:form>
</table>
</td>
</tr>
<tr>
<td>
<table width="100%" border="0" class="content" cellpadding="5" cellspacing="1" align="center" cols="5">
<tr>
<th colspan="1"><bean:message key="history.shipmentNumber" /></th>
<th colspan="1"><bean:message key="history.dealerName" /></th>
<th colspan="1"><bean:message key="history.documentStatus" /></th>
<th colspan="1"><bean:message key="history.date" /></th>
<th colspan="1"><bean:message key="history.orderNumber" /></th>
<th colspan="1"><bean:message key="history.invoiceNumber" /></th>
</tr>
<logic:iterate indexId="count" name="<%=Constants.SHIPMENT_HISTORY%>" id="element" type="org.posterita.beans.InOutHistoryBean">
<tr>
<%
String styleClass = "label";
if ((count.intValue()%2) != 0)
styleClass = "contentname";
%>
<td class="<%=styleClass%>">
<bean:write name="element" property="inOutId"/>
</td>
<td class="<%=styleClass%>">
<bean:write name="element" property="partnerName"/>
</td>
<td class="<%=styleClass%>">
<bean:write name="element" property="docStatus"/>
</td>
<td class="<%=styleClass%>">
<%-- <fmt:formatDate value='${element.dateMovement}' pattern='MMM dd yyyy, HH:mm'/> --%>
</td>
<td class="<%=styleClass%>">
<bean:write name="element" property="orderId"/>
</td>
<td class="<%=styleClass%>">
<bean:write name="element" property="invoiceId"/>
</td>
</tr>
</logic:iterate>
</table>
</td>
</tr>
</table>
<%@ include file="/jsp/include/footerTableBottom.jsp" %>

View File

@ -0,0 +1,28 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Tamak
--%>
<table width="100%">
<td align="right">
<a href="javascript::GoBack()">
<%-- Go Back--%>
</a>
</td>
</table>

View File

@ -0,0 +1,115 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Alok
--%>
<!--CompletePOSOrder.jsp-->
<%@ page import="org.posterita.Constants" %>
<%@ page import="org.compiere.model.MOrder" %>
<%@ page import="org.posterita.user.WebUserInfo" %>
<%@ page import="org.posterita.struts.pos.POSOrderAction" %>
<%@ page import="java.util.ArrayList" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="/WEB-INF/fmt.tld" prefix="fmt" %>
<%@ taglib uri="/WEB-INF/dcs.tld" prefix="dcs" %>
<%@ taglib uri="/WEB-INF/pos.tld" prefix="pos"%>
<logic:notPresent name="<%=WebUserInfo.NAME%>" scope="session">
<jsp:forward page="/LoginHome.do"/>
</logic:notPresent>
<bean:define id="title"><pos:element textOnly="true" columnName="pos.order"/></bean:define>
<%@ include file="/jsp/include/posHeader.jsp" %>
<%@ include file="/jsp/include/errors.jsp" %>
<div align="right">
<a href="javascript:showDocumentPDF(<c:out value='${morder._ID}'/>);">
<img style="cursor:pointer" src="images/ico_printer.gif" border="0"/>
</a>
</div>
<%@ include file="/jsp/pos/orderHeader.jsp" %>
<% String orderlines = Constants.POS_ORDER_LINES; %>
<%@ include file="/jsp/pos/completePOSShoppingCart.jsp" %>
<div class="space"></div>
<div>
<table cellpadding="0" cellspacing="0">
<logic:greaterThan name="morder" property="amountTendered" value="0">
<tr>
<td><label><pos:element columnName="cash.tendered"/></label></td>
<td><label>:<fmt:formatNumber value='${morder.amountTendered}'type="currency" currencySymbol='${currSymbole}'/></label></td>
</tr>
</logic:greaterThan>
<logic:present name="<%=Constants.CARD_AMT_TENDERED%>">
<logic:greaterThan name="<%=Constants.CARD_AMT_TENDERED%>" value="0">
<bean:define id="cardAmtTendered" name="<%=Constants.CARD_AMT_TENDERED%>"/>
<tr>
<td><label><pos:element columnName="card.amt.tendered"/></label></td>
<td><label>:<fmt:formatNumber value='${cardAmtTendered}'type="currency" currencySymbol='${currSymbole}'/></label></td>
</tr>
</logic:greaterThan>
</logic:present>
<logic:present name="<%=Constants.CHEQUE_AMT_TENDERED%>">
<logic:greaterThan name="<%=Constants.CHEQUE_AMT_TENDERED%>" value="0">
<bean:define id="chequeAmtTendered" name="<%=Constants.CHEQUE_AMT_TENDERED%>"/>
<tr>
<td><label><pos:element columnName="cheque.amt.tendered"/></label></td>
<td><label>:<fmt:formatNumber value='${chequeAmtTendered}'type="currency" currencySymbol='${currSymbole}'/></label></td>
</tr>
</logic:greaterThan>
</logic:present>
<logic:greaterThan name="morder" property="amountTendered" value="0">
<tr>
<td><label><strong><pos:element columnName="cash.refunded"/></strong></label></td>
<td><label><strong>:<fmt:formatNumber value='${morder.amountRefunded}'type="currency" currencySymbol='${currSymbole}'/></strong></label></td>
</tr>
</logic:greaterThan>
</table>
</div>
<table cellspacing="0" border="0" width="100%" cellpadding="0">
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td align="right">
<input type="button" value="" class="neworder bigbutton" accesskey="n" onclick="createNewOrder()">
</td>
</tr>
<tr>
<td align="center">
<label><pos:element columnName="new.order"/> -</label>
<label class="red">Alt-N</label>
</td>
</tr>
</table>
<%@ include file="/jsp/include/printOrderApplet.jsp" %>
<%@ include file="/jsp/include/posFooter.jsp" %>

View File

@ -0,0 +1,115 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Alok
--%>
<!--CompletePOSOrderIncl.jsp-->
<%@ page import="org.posterita.Constants" %>
<%@ page import="org.compiere.model.MOrder" %>
<%@ page import="org.posterita.user.WebUserInfo" %>
<%@ page import="org.posterita.struts.pos.POSOrderAction" %>
<%@ page import="java.util.ArrayList" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="/WEB-INF/fmt.tld" prefix="fmt" %>
<%@ taglib uri="/WEB-INF/dcs.tld" prefix="dcs" %>
<%@ taglib uri="/WEB-INF/pos.tld" prefix="pos"%>
<logic:notPresent name="<%=WebUserInfo.NAME%>" scope="session">
<jsp:forward page="/LoginHome.do"/>
</logic:notPresent>
<%@ include file="/jsp/include/posHeader.jsp" %>
<%@ include file="/jsp/include/errors.jsp" %>
<div align="right">
<a href="javascript:showDocumentPDF(<c:out value='${morder._ID}'/>);">
<img style="cursor:pointer" src="images/ico_printer.gif" border="0"/>
</a>
</div>
<%@ include file="/jsp/pos/orderHeader.jsp" %>
<% String orderlines = Constants.POS_ORDER_LINES; %>
<%@ include file="/jsp/pos/completePOSShoppingCart.jsp" %>
<div class="space"></div>
<div>
<table cellpadding="0" cellspacing="0">
<logic:greaterThan name="morder" property="amountTendered" value="0">
<tr>
<td><label><pos:element columnName="cash.tendered"/></label></td>
<td><label>:<fmt:formatNumber value='${morder.amountTendered}'type="currency" currencySymbol='${currSymbole}'/></label></td>
</tr>
</logic:greaterThan>
<logic:present name="<%=Constants.CARD_AMT_TENDERED%>">
<logic:greaterThan name="<%=Constants.CARD_AMT_TENDERED%>" value="0">
<bean:define id="cardAmtTendered" name="<%=Constants.CARD_AMT_TENDERED%>"/>
<tr>
<td><label><pos:element columnName="card.amt.tendered"/></label></td>
<td><label>:<fmt:formatNumber value='${cardAmtTendered}'type="currency" currencySymbol='${currSymbole}'/></label></td>
</tr>
</logic:greaterThan>
</logic:present>
<logic:present name="<%=Constants.CHEQUE_AMT_TENDERED%>">
<logic:greaterThan name="<%=Constants.CHEQUE_AMT_TENDERED%>" value="0">
<bean:define id="chequeAmtTendered" name="<%=Constants.CHEQUE_AMT_TENDERED%>"/>
<tr>
<td><label><pos:element columnName="cheque.amt.tendered"/></label></td>
<td><label>:<fmt:formatNumber value='${chequeAmtTendered}'type="currency" currencySymbol='${currSymbole}'/></label></td>
</tr>
</logic:greaterThan>
</logic:present>
<logic:greaterThan name="morder" property="amountTendered" value="0">
<tr>
<td><label><strong><pos:element columnName="cash.refunded"/></strong></label></td>
<td><label><strong>:<fmt:formatNumber value='${morder.amountRefunded}'type="currency" currencySymbol='${currSymbole}'/></strong></label></td>
</tr>
</logic:greaterThan>
</table>
</div>
<table cellspacing="0" border="0" width="100%" cellpadding="0">
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td align="right">
<input type="button" value="" class="neworder bigbutton" accesskey="n" onclick="createNewOrder()">
</td>
</tr>
<tr>
<td align="center">
<label><pos:element columnName="new.order"/> -</label>
<label class="red">Alt-N</label>
</td>
</tr>
</table>
<%@ include file="/jsp/include/printOrderApplet.jsp" %>
<%@ include file="/jsp/include/posFooter.jsp" %>

View File

@ -0,0 +1,121 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Alok
--%>
<html:hidden property="isSales" value="true"/>
<html:hidden property="action" value=""/>
<html:hidden property="ifAdd" value="true"/>
<html:hidden property="orderType" value="<%=Constants.POS_ORDER%>"/>
<%@ taglib uri="/WEB-INF/pos.tld" prefix="pos"%>
<logic:present name="<%= Constants.CURRENT_POS_ORDER_ID %>">
<bean:define id="orderId">
<bean:write name="<%= Constants.CURRENT_POS_ORDER_ID %>"/>
</bean:define>
<html:hidden property="orderId" value="<%= orderId %>"/>
</logic:present>
<table class="main">
<tr>
<td>
<table class="main">
<%@ include file="/jsp/include/posOrderBarCode.jsp" %>
<%@ include file="/jsp/include/posOrderSearch.jsp" %>
</table>
</td>
</tr>
<tr>
<td>
<div id="shoppingCart">
<%@ include file="/jsp/pos/creditOrderShoppingCart.jsp" %>
</div>
</td>
</tr>
<tr>
<td>
<table class="main">
<tr>
<td valign="top" width="45%">
<fieldset>
<legend><pos:element columnName="shipment.no" /></legend>
<div style="height:160px">
<table border="0" cellpadding="5">
<tr>
<html:select property="toBeShipped" value="true" onchange="setShipmentRequired(this)" styleClass="text">
<html:option value="true"><pos:element columnName="shipment.required" /></html:option>
<html:option value="false"><pos:element columnName="no.shipment" /></html:option>
</html:select>
<html:hidden property="toBeShipped" />
</tr>
</table>
</div>
</fieldset>
</td>
<td valign="top" width="45%">
<%@ include file="/jsp/include/customerInfoPanel.jsp" %>
</td>
<td valign="top">
<table border="0" width="100%" cellspacing="0" style="padding-right: 0px; padding-left: 5px; padding-top: 5px; padding-bottom: 5px">
<tr>
<td class="buttoncell" align="right">
<html:button property="btn" styleClass="checkout bigbutton" onclick="createOrder()" accesskey="c">&nbsp;</html:button>
</td>
</tr>
<script>
function setPaymentTerm(select)
{
var paymentTermId = select.options[select.selectedIndex].value;
var PaymentTerms = document.getElementsByName('paymentTermId');
for (var i=0;i<PaymentTerms.length;i++)
{
PaymentTerms[i].value = paymentTermId;
}
$focus('barCode');
}
function setShipmentRequired(select)
{
var toBeShipped = select.options[select.selectedIndex].value;
var ShipStatus = document.getElementsByName('toBeShipped');
for (var i=0;i<ShipStatus.length;i++)
{
ShipStatus[i].value = toBeShipped;
}
$focus('barCode');
}
var select = document.getElementsByName('bpartnerId')[0];
var paymentTermId = select.options[select.selectedIndex].value;
var PaymentTerms = document.getElementsByName('paymentTermId');
for (var i=0;i<PaymentTerms.length;i++)
{
PaymentTerms[i].value = paymentTermId;
}
$focus('barCode');
</script>

View File

@ -0,0 +1,33 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Alok
--%>
<%@ include file="/jsp/include/creditOrderPart1FocusBarCode.jsp" %>
<tr>
<td class="buttoncell" align="right">
<html:button property="btn" onclick="checkout()" accesskey="o" styleClass="advanced bigbutton">&nbsp;</html:button>
</td>
</tr>
<%@ include file="/jsp/include/posOrderPart2.jsp" %>

View File

@ -0,0 +1,42 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Praveen
--%>
<%@ taglib uri="/WEB-INF/pos.tld" prefix="pos"%>
<fieldset>
<legend><pos:element columnName="customer.info"/></legend>
<div style="height:160px">
<div>
<label><pos:element columnName="customer"/></label>
</div>
<html:text property="bpartnerId" styleClass="text" accesskey="i"/>
<div>
<label><pos:element columnName="search.customer"/></label>
</div>
<%@ include file="/jsp/include/searchCustomerPanel.jsp" %>
<div class="space"></div>
<html:text property="partnerName" readonly="true" styleClass="text"/>
<div class="space"></div>
<input type="button" value='<pos:element textOnly="true" columnName="new.customer"/>' onclick="createCustomer()" class="newbutton" accessKey="n"/>
<input type="button" value="Default" onclick="defaultCustomer()" class="newbutton"/>
</div>
</fieldset>

View File

@ -0,0 +1,40 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Praveen
--%>
<fieldset>
<legend>Customer Info</legend>
<div style="height:160px">
<div>
<label><pos:element columnName="customer"/></label>
</div>
<html:text property="bpartnerId" styleClass="text" accesskey="i"/>
<div>
<label><pos:element columnName="search.customer"/></label>
</div>
<%@ include file="/jsp/include/searchCustomerPanel.jsp" %>
<div class="space"></div>
<html:text property="partnerName" readonly="true" styleClass="text"/>
<div class="space"></div>
<input type="button" value='<pos:element textOnly="true" columnName="new.customer"/>' onclick="createCustomer()" class="newbutton" accessKey="n"/>
</div>
</fieldset>

View File

@ -0,0 +1,34 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author vishee
--%>
<%@ taglib uri="/WEB-INF/pos.tld" prefix="pos"%>
<table align="center">
<tr>
<td>
<%@ include file="/jsp/include/startCalendar.jsp" %>
</td>
</tr>
<tr>
<td>
<%@ include file="/jsp/include/endCalendar.jsp" %>
</td>
</tr>
</table>

View File

@ -0,0 +1,54 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Praveen
--%>
<html:option value="1">1</html:option>
<html:option value="2">2</html:option>
<html:option value="3">3</html:option>
<html:option value="4">4</html:option>
<html:option value="5">5</html:option>
<html:option value="6">6</html:option>
<html:option value="7">7</html:option>
<html:option value="8">8</html:option>
<html:option value="9">9</html:option>
<html:option value="10">10</html:option>
<html:option value="11">11</html:option>
<html:option value="12">12</html:option>
<html:option value="13">13</html:option>
<html:option value="14">14</html:option>
<html:option value="15">15</html:option>
<html:option value="16">16</html:option>
<html:option value="17">17</html:option>
<html:option value="18">18</html:option>
<html:option value="19">19</html:option>
<html:option value="20">20</html:option>
<html:option value="21">21</html:option>
<html:option value="22">22</html:option>
<html:option value="23">23</html:option>
<html:option value="24">24</html:option>
<html:option value="25">25</html:option>
<html:option value="26">26</html:option>
<html:option value="27">27</html:option>
<html:option value="28">28</html:option>
<html:option value="29">29</html:option>
<html:option value="30">30</html:option>
<html:option value="31">31</html:option>

View File

@ -0,0 +1,29 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Alok
--%>
<%@ taglib uri="/WEB-INF/pos.tld" prefix="pos"%>
<%@ page import="org.compiere.process.DocAction" %>
<html:option value="<%= DocAction.STATUS_Drafted%>"><pos:element columnName="drafted"/></html:option>
<html:option value="<%= DocAction.STATUS_InProgress%>"><pos:element columnName="inprogress"/></html:option>
<html:option value="<%= DocAction.STATUS_Completed%>"><pos:element columnName="completed"/></html:option>
<html:option value="<%= DocAction.STATUS_Closed%>"><pos:element columnName="closed"/></html:option>
<html:option value="<%= DocAction.STATUS_Invalid%>"><pos:element columnName="invalid"/></html:option>

View File

@ -0,0 +1,82 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Alok
--%>
<!-- draftedCreditSOrderIncluded.jsp-->
<%@ taglib uri="/WEB-INF/pos.tld" prefix="pos"%>
<html:hidden property="action" value="<%=POSOrderAction.CREATE_POS_ORDER%>"/>
<html:hidden property="orderType" value="<%=Constants.POS_ORDER%>"/>
<logic:present name="<%= Constants.CURRENT_PARTIAL_POS_ORDER_ID %>">
<bean:define id="orderId">
<bean:write name="<%= Constants.CURRENT_PARTIAL_POS_ORDER_ID %>"/>
</bean:define>
<html:hidden property="orderId" value="<%= orderId %>"/>
</logic:present>
<%@ include file="/jsp/pos/orderHeader.jsp" %>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>
<% String orderlines = Constants.POS_ORDER_LINES; %>
<%@ include file="/jsp/pos/draftedPOSShoppingCart.jsp" %>
<input type="hidden" name="grandTotal" value=<fmt:formatNumber value='${grandTotal}' pattern="########.##"/>>
</td>
</tr>
<tr>
<td>
<div class="space"></div>
<div align="right">
<html:button property="deleteBtn" styleClass="delete smallbutton" onclick="deleteSelected()" accesskey="d">&nbsp;</html:button>
</div>
<div class="space"></div>
<div align="right">
<logic:present name="<%= Constants.CURRENT_POS_ORDER_ID %>">
<html:button property="edit" styleClass="edit smallbutton" accesskey="e">&nbsp;</html:button>
</logic:present>
<html:button property="btn" styleClass="complete smallbutton" onclick="completeOrder(this)" accesskey="c">&nbsp;</html:button>
</div>
<div align="center">
<table border="0" cellpadding="10">
<tr>
<td>
<label><pos:element columnName="delete"/> -</label><label class="red">Alt-D</label>
</td>
<td>
<label><pos:element columnName="edit"/> -</label><label class="red">Alt-E</label>
</td>
<td>
<label><pos:element columnName="AmountTendered"/> -</label><label class="red">Alt-G</label>
</td>
<td>
<label><pos:element columnName="continue"/> -</label><label class="red">Alt-C</label>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>

View File

@ -0,0 +1,115 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Alok
--%>
<!-- draftedPOSOrderIncluded.jsp-->
<%@ taglib uri="/WEB-INF/pos.tld" prefix="pos"%>
<html:hidden property="action" value="<%=POSOrderAction.CREATE_POS_ORDER%>"/>
<html:hidden property="orderType" value="<%=Constants.POS_ORDER%>"/>
<logic:present name="<%= Constants.CURRENT_PARTIAL_POS_ORDER_ID %>">
<bean:define id="orderId">
<bean:write name="<%= Constants.CURRENT_PARTIAL_POS_ORDER_ID %>"/>
</bean:define>
<html:hidden property="orderId" value="<%= orderId %>"/>
</logic:present>
<%@ include file="/jsp/pos/orderHeader.jsp" %>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>
<div id="amtGiven">
<table border="0" cellpadding="5" cellspacing="0" align="center">
<tr>
<td>
<label><b><pos:element columnName="amount.tendered"/>:</b></label>
</td>
<td>
<html:text property="amountGiven" styleClass="text" onkeyup="updateAmountToBeReturned(this)" accesskey="g"/>
</td>
<td>
<LABEL><b><pos:element columnName="amount.refunded"/>:</b></LABEL>
</td>
<td>
<html:text property="amountRefunded" styleClass="text" readonly="true" />
<html:hidden property ="trxType"/>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td>
<% String orderlines = Constants.POS_ORDER_LINES; %>
<%@ include file="/jsp/pos/draftedPOSShoppingCart.jsp" %>
<input type="hidden" name="grandTotal" value=<fmt:formatNumber value='${grandTotal}' pattern="########.##"/>>
</td>
</tr>
<tr>
<td>
<div class="space"></div>
<logic:notPresent name="<%= Constants.PARTIAL_POS_OREDR %>">
<div align="right">
<html:button property="deleteBtn" styleClass="delete smallbutton" onclick="deleteSelected()" accesskey="d">&nbsp;</html:button>
</div>
</logic:notPresent>
<div class="space"></div>
<div align="right">
<logic:notPresent name="<%= Constants.PARTIAL_POS_OREDR %>">
<logic:present name="<%= Constants.CURRENT_POS_ORDER_ID %>">
<bean:define id="posOrderId" name="<%= Constants.CURRENT_POS_ORDER_ID %>"/>
<html:link href="<%="GetShoppingCartForOrder.do?action=getOrderShoppingCart&orderId="+posOrderId + "&orderType=" + orderType%>">
<html:button property="btn" styleClass="edit smallbutton" accesskey="c">&nbsp;</html:button>
</html:link>
</logic:present>
</logic:notPresent>
<html:button property="btn" styleClass="complete smallbutton" onclick="completeOrder(this)" accesskey="c">&nbsp;</html:button>
</div>
<div align="center">
<table border="0" cellpadding="10">
<tr>
<td>
<label><pos:element columnName="delete"/> -</label><label class="red">Alt-D</label>
</td>
<td>
<label><pos:element columnName="edit"/> -</label><label class="red">Alt-E</label>
</td>
<td>
<label><pos:element columnName="amount.tendered"/> -</label><label class="red">Alt-G</label>
</td>
<td>
<label><pos:element columnName="continue"/> -</label><label class="red">Alt-C</label>
</td>
</tr>
</table>
</div>
</td>
</tr>

View File

@ -0,0 +1,121 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Praveen
--%>
<table align="center">
<tr>
<td width="40px">
<label><pos:element columnName="date.to"/>:</label>
</td>
<td>
<html:select property="endDay" styleClass="daySelectBox">
<%@ include file="/jsp/include/dayList.jsp" %>
</html:select>
<html:select property="endMonth" styleClass="monthSelectBox">
<%@ include file="/jsp/include/monthList.jsp" %>
</html:select>
<html:select property="endYear" styleClass="yearSelectBox">
<%@ include file="/jsp/include/yearList.jsp" %>
</html:select>
</td>
<td>
<html:hidden property="toDate"/>
<input type="hidden" id="endDate">
<button id="endDateBtn" style="background-image: url('images/calendar_icon.png');height: 22px;width: 22px"></button>
</td>
<td>
<html:select property="endHour">
<%@ include file="/jsp/include/hourList.jsp" %>
</html:select>
<pos:element columnName="time.hour"/>:
<html:select property="endMinute">
<%@ include file="/jsp/include/minuteList.jsp" %>
</html:select>
<pos:element columnName="time.minute"/>:
</td>
</tr>
</table>
<script>
//addRequiredLibrary('js/js-calendar.js');
function setEndDate(calendar)
{
var y = calendar.date.getFullYear();
var m = calendar.date.getMonth();
var d = calendar.date.getDate();
$FElement('endDay').options[d-1].selected = true;
$FElement('endMonth').options[m].selected = true;
var options = $FElement('endYear').options;
for(var i = 0; i < options.length; i++)
{
if(options[i].value == y)
{
$FElement('endYear').options[i].selected = true;
break;
}
}
updateEndDate();
}
function updateEndDate()
{
var d = $FElement('endDay').selectedIndex + 1;
var m = $FElement('endMonth').selectedIndex + 1;
var y = $FElement('endYear').selectedIndex;
y = $FElement('endYear').options[y].value;
d = (d > 9) ? d : ('0' + d);
m = (m > 9) ? m : ('0' + m);
$('endDate').value = d + '/' + m + '/' + y;
$FElement('toDate').value = $('endDate').value;
}
function initEndCalendar()
{
$FElement('endDay').onchange = updateEndDate;
$FElement('endMonth').onchange = updateEndDate;
$FElement('endYear').onchange = updateEndDate;
Calendar.setup(
{ inputField : "endDate",
ifFormat : "%d/%m/%Y",
showTime : true,
button : "endDateBtn",
onUpdate : setEndDate
}
);
$('endDate').value = $FElement('toDate').value;
}
Event.observe(window,'load',initEndCalendar,false);
</script>

View File

@ -0,0 +1,34 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author tamak
--%>
<div align="left">
<logic:messagesPresent>
<div id="errorbox">
<html:messages id="error">
<div class="errormsg">
<bean:write name="error" filter="false"/>
</div>
</html:messages>
</div>
<div class="space"></div>
</logic:messagesPresent>
</div>

View File

@ -0,0 +1,91 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Alok
--%>
<%@ taglib uri="/WEB-INF/pos.tld" prefix="pos"%>
<tr>
<td class="label12pxbold" align="right">
<pos:element columnName="filter.by"/> : &nbsp;
</td>
<td width="3%" class="label">
<pos:element columnName="month"/>
</td>
<td width="3%" class="label">
<pos:element columnName="year"/>
</td>
<logic:present name="<%=Constants.BPARTNER%>">
<td width="3%" class="label">
<pos:element columnName="dealer.name"/>
</td>
</logic:present>
<td width="3%" class="label">
<pos:element columnName="DocStatus"/>
</td>
</tr>
<tr>
<td>
&nbsp;
</td>
<td>
<html:select property="month" onchange="submit()">
<html:option value=""><pos:element columnName="all"/></html:option>
<%@include file="/jsp/include/month.jsp"%>
</html:select>
</td>
<td>
<html:select property="year" onchange="submit()">
<html:option value=""><pos:element columnName="all"/></html:option>
<%
int currentYear = java.util.Calendar.getInstance().get(java.util.Calendar.YEAR);
%>
<html:option value="<%= String.valueOf(currentYear) %>"><%= currentYear %></html:option>
<html:option value="<%= String.valueOf(currentYear - 1) %>"><%= currentYear - 1 %></html:option>
</html:select>
</td>
<logic:present name="<%=Constants.BPARTNER%>">
<td>
<html:select property="bpartnerId" onchange="submit()">
<html:option value=""><pos:element columnName="all"/></html:option>
<logic:present name="<%=Constants.BPARTNER%>">
<html:options collection="<%=Constants.BPARTNER%>" property="key" labelProperty="name"/>
</logic:present>
</html:select>
</td>
</logic:present>
<td>
<html:select property="compiereDocStatus" onchange="submit()">
<html:option value=""><pos:element columnName="all"/></html:option>
<logic:present name="<%=Constants.DOC_STATUS%>">
<html:options collection="<%=Constants.DOC_STATUS%>" property="compiereDocStatus" labelProperty="hondaDocStatus"/>
</logic:present>
</html:select>
</td>
</tr>

View File

@ -0,0 +1,55 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author tamak
--%>
<%@ page import="org.posterita.Constants" %>
<%
String appName = (String) request.getSession().getServletContext().getAttribute(Constants.APP_NAME);
%>
</tr>
<tr>
<td>
&nbsp;
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%">
<tr>
<td>
<div class="copy">
<%=appName%> <%=java.util.Calendar.getInstance().get(java.util.Calendar.YEAR)%>
</div>
</td>
</tr>
</table>
</body>
</html>

View File

@ -0,0 +1,77 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author tamak
--%>
</td>
<%-- start tablebottom.jsp --%>
<td width="15" colspan="1">&nbsp; </td>
</tr>
</table>
<%-- end tablebottom.jsp --%>
</td>
</tr>
<tr>
<td>
</td>
</tr>
</table>
</td>
<td class="caRight" width="20" height="260"><img src="images/spacer.gif" border="0"></td>
<%-- start footer.jsp --%>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
&nbsp;
</td>
<td>
<!--<div class="copy">
<bean:message key="include.footer.allContent"/>
</div>
--></td>
</tr>
</table>
</body>
</html>
<%-- end footer.jsp --%>

View File

@ -0,0 +1,41 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Praveen
--%>
<%@ taglib uri="/WEB-INF/pos.tld" prefix="pos"%>
<td align="right">
<html:select property="month" onchange="submit()">
<html:option value=""><pos:element columnName="all"/></html:option>
<%@include file="/jsp/include/month.jsp"%>
</html:select>
</td>
<td align="right">
<html:select property="year" onchange="submit()">
<html:option value=""><pos:element columnName="all"/></html:option>
<%
int currentYear = java.util.Calendar.getInstance().get(java.util.Calendar.YEAR);
%>
<html:option value="<%= String.valueOf(currentYear) %>"><%= currentYear %></html:option>
<html:option value="<%= String.valueOf(currentYear - 1) %>"><%= currentYear - 1 %></html:option>
</html:select>
</td>

View File

@ -0,0 +1,62 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Alok
--%>
<%@ taglib uri="/WEB-INF/pos.tld" prefix="pos"%>
<table class="view">
<tr>
<td class="label12pxbold" align="right">
<pos:element columnName="filter.by"/> : &nbsp;
</td>
<td width="3%" class="label">
<pos:element columnName="month"/>
</td>
<td width="3%" class="label">
<pos:element columnName="year"/>
</td>
</tr>
<tr>
<td>
&nbsp;
</td>
<td>
<html:select property="month" onchange="submit()">
<html:option value=""><pos:element columnName="all"/></html:option>
<%@include file="/jsp/include/month.jsp"%>
</html:select>
</td>
<td>
<html:select property="year" onchange="submit()">
<html:option value=""><pos:element columnName="all"/></html:option>
<%
int currentYear = java.util.Calendar.getInstance().get(java.util.Calendar.YEAR);
%>
<html:option value="<%= String.valueOf(currentYear) %>"><%= currentYear %></html:option>
<html:option value="<%= String.valueOf(currentYear - 1) %>"><%= currentYear - 1 %></html:option>
</html:select>
</td>
</tr>
</table>

View File

@ -0,0 +1,47 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Praveen
--%>
<html:option value="00">00</html:option>
<html:option value="01">01</html:option>
<html:option value="02">02</html:option>
<html:option value="03">03</html:option>
<html:option value="04">04</html:option>
<html:option value="05">05</html:option>
<html:option value="06">06</html:option>
<html:option value="07">07</html:option>
<html:option value="08">08</html:option>
<html:option value="09">09</html:option>
<html:option value="10">10</html:option>
<html:option value="11">11</html:option>
<html:option value="12">12</html:option>
<html:option value="13">13</html:option>
<html:option value="14">14</html:option>
<html:option value="15">15</html:option>
<html:option value="16">16</html:option>
<html:option value="17">17</html:option>
<html:option value="18">18</html:option>
<html:option value="19">19</html:option>
<html:option value="20">20</html:option>
<html:option value="21">21</html:option>
<html:option value="22">22</html:option>
<html:option value="23">23</html:option>

View File

@ -0,0 +1,82 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Praveen
--%>
<html:option value="00">00</html:option>
<html:option value="01">01</html:option>
<html:option value="02">02</html:option>
<html:option value="03">03</html:option>
<html:option value="04">04</html:option>
<html:option value="05">05</html:option>
<html:option value="06">06</html:option>
<html:option value="07">07</html:option>
<html:option value="08">08</html:option>
<html:option value="09">09</html:option>
<html:option value="10">10</html:option>
<html:option value="11">11</html:option>
<html:option value="12">12</html:option>
<html:option value="13">13</html:option>
<html:option value="14">14</html:option>
<html:option value="15">15</html:option>
<html:option value="16">16</html:option>
<html:option value="17">17</html:option>
<html:option value="18">18</html:option>
<html:option value="19">19</html:option>
<html:option value="20">20</html:option>
<html:option value="21">21</html:option>
<html:option value="22">22</html:option>
<html:option value="23">23</html:option>
<html:option value="24">24</html:option>
<html:option value="25">25</html:option>
<html:option value="26">26</html:option>
<html:option value="27">27</html:option>
<html:option value="28">28</html:option>
<html:option value="29">29</html:option>
<html:option value="30">30</html:option>
<html:option value="31">31</html:option>
<html:option value="32">32</html:option>
<html:option value="33">33</html:option>
<html:option value="34">34</html:option>
<html:option value="35">35</html:option>
<html:option value="36">36</html:option>
<html:option value="37">37</html:option>
<html:option value="38">38</html:option>
<html:option value="39">39</html:option>
<html:option value="40">40</html:option>
<html:option value="41">41</html:option>
<html:option value="42">42</html:option>
<html:option value="43">43</html:option>
<html:option value="44">44</html:option>
<html:option value="45">45</html:option>
<html:option value="46">46</html:option>
<html:option value="47">47</html:option>
<html:option value="48">48</html:option>
<html:option value="49">49</html:option>
<html:option value="50">50</html:option>
<html:option value="51">51</html:option>
<html:option value="52">52</html:option>
<html:option value="53">53</html:option>
<html:option value="54">54</html:option>
<html:option value="55">55</html:option>
<html:option value="56">56</html:option>
<html:option value="57">57</html:option>
<html:option value="58">58</html:option>
<html:option value="59">59</html:option>

View File

@ -0,0 +1,34 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Praveen
--%>
<html:option value="1"><bean:message key="calendar.month1"/></html:option>
<html:option value="2"><bean:message key="calendar.month2"/></html:option>
<html:option value="3"><bean:message key="calendar.month3"/></html:option>
<html:option value="4"><bean:message key="calendar.month4"/></html:option>
<html:option value="5"><bean:message key="calendar.month5"/></html:option>
<html:option value="6"><bean:message key="calendar.month6"/></html:option>
<html:option value="7"><bean:message key="calendar.month7"/></html:option>
<html:option value="8"><bean:message key="calendar.month8"/></html:option>
<html:option value="9"><bean:message key="calendar.month9"/></html:option>
<html:option value="10"><bean:message key="calendar.month10"/></html:option>
<html:option value="11"><bean:message key="calendar.month11"/></html:option>
<html:option value="12"><bean:message key="calendar.month12"/></html:option>

View File

@ -0,0 +1,23 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Praveen
--%>
<%@ include file="/jsp/include/month.jsp" %>

View File

@ -0,0 +1,131 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Praveen
--%>
<%@ page import="org.posterita.core.businesslogic.ElementManager" %>
<%@ page import="org.posterita.core.bean.ElementBean" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/pos.tld" prefix="pos"%>
<!-- start of pager -->
<bean:size id="recordSize" name="<%=collection%>"/>
<%
int firstOffset = 0;
int lastOffset = 0;
int currentOffset = Integer.parseInt(offset);
int previousOffset = currentOffset - Integer.parseInt(length);
int nextOffset = currentOffset + Integer.parseInt(length);
boolean isFirst = (currentOffset == 0);
boolean isLast = ((currentOffset + Integer.parseInt(length)) >= recordSize.intValue());
ElementBean elementBean = null;
if(url.indexOf("?") != -1)
{
url = url + "&";
}
else
{
url = url + "?";
}
%>
<div class="space"></div>
<div class="pager">
<logic:equal name="recordSize" value="0">
<strong><bean:write name="recordSize"/></strong> <pos:element columnName="RecordFound" />.
</logic:equal>
<logic:notEqual name="recordSize" value="0">
<strong><bean:write name="recordSize"/></strong> <pos:element columnName="RecordFound"/>. <pos:element columnName="search.result.displaying"/> <strong><%= currentOffset + 1 %></strong> <pos:element columnName="to" /> <strong><%= (isLast) ? recordSize.intValue() : (Integer.parseInt(offset) + Integer.parseInt(length)) %></strong><br>
<%
if(!isFirst){
out.print("[<a href='"+ url +"offset=0'>");
out.print(ElementManager.getMsg(ctx, "first").getName());
out.print("</a>/<a href='"+ url +"offset="+ previousOffset +"'>");
out.print(ElementManager.getMsg(ctx, "prev").getName());
out.print("]</a> ");
}
int len = Integer.parseInt(length);
lastOffset = recordSize.intValue() - (recordSize.intValue() % len);
int b = currentOffset/len + 1;
int d = lastOffset/len;
if((recordSize.intValue() % len) != 0)
{
d = d + 1;
}
b = (b < 1) ? 1 : b;
int a = b - 2;
int c = b + 2;
a = (a < 1) ? 1 : a;
c = (c < d) ? c : d;
if(Integer.parseInt(length) != recordSize.intValue())
{
if(recordSize.intValue() > len)
{
for(int i= a ; i < b ; i++)
{
out.print("<a href='"+ url +"offset=" + (i-1)*len + "'>[" + i + "]</a> ");
}
out.print(b + " ");
for(int j= b+1 ; j < c+1 ; j++)
{
out.print("<a href='"+ url +"offset=" + (j-1)*len + "'>[" + j + "]</a> ");
}
}
if(!isLast){
out.print("[<a href='"+ url +"offset="+ nextOffset +"'>");
out.print(ElementManager.getMsg(ctx, "next").getName());
out.print("</a>/<a href='"+ url +"offset="+ lastOffset +"'>");
out.print(ElementManager.getMsg(ctx, "last").getName());
out.print("]</a> ");
}
if(recordSize.intValue() > len){
out.print("<a href='"+ url + "offset=0&length=" + recordSize +"' onclick='return confirm(\"");
out.print(ElementManager.getMsg(ctx, "display.all.records").getName());
out.print("\")'>");
out.print(ElementManager.getMsg(ctx, "all").getName());
out.print("</a>");
}
}
else
{
out.print("<a href='"+ url +"offset=0'>");
out.print(ElementManager.getMsg(ctx, "switch.to.paging").getName());
out.print("</a>");
}
%>
</logic:notEqual>
</div>
<!-- end of pager -->

View File

@ -0,0 +1,29 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Alok
--%>
<%@ page import="org.compiere.model.MOrder" %>
<%@ taglib uri="/WEB-INF/pos.tld" prefix="pos"%>
<html:option value="<%= MOrder.PAYMENTRULE_Cash%>"><pos:element columnName="cash"/></html:option>
<html:option value="<%= MOrder.PAYMENTRULE_CreditCard%>"><pos:element columnName="card"/></html:option>
<html:option value="<%= MOrder.PAYMENTRULE_Check%>"><pos:element columnName="cheque"/></html:option>
<html:option value="<%= UdiConstants.PAYMENTRULE_MIXED%>"><pos:element columnName="mixed"/></html:option>

View File

@ -0,0 +1,135 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Alok
--%>
<tr>
<td>
<label><pos:element columnName="PaymentTerm"/></label><mandatory>*</mandatory>
</td>
<td colspan="3">
<html:text property="paymentTermName" styleClass="text"/>
<html:hidden property="paymentTermId"/>
</td>
</tr>
<tbody id="netDays">
<tr>
<td>
<label><pos:element columnName="NetDays"/></label><mandatory>*</mandatory>
</td>
<td colspan="3">
<html:text property="netDays" styleClass="text" style="width:100%"/>
</td>
</tr>
</tbody>
<tr>
<td>
<label><pos:element columnName="IsDueFixed"/></label>
</td>
<td colspan="3">
<html:checkbox property="fixedDueDate" value="true"/>
</td>
</tr>
<tbody id="fixDueDate">
<tr>
<td>
<label><pos:element columnName="FixMonthDay"/></label><mandatory>*</mandatory>
</td>
<td colspan="3">
<html:text property="fixedMonthDay" styleClass="text" style="width:100%"/>
</td>
</tr>
<tr>
<td>
<label><pos:element columnName="FixMonthOffset"/></label><mandatory>*</mandatory>
</td>
<td colspan="3">
<html:text property="fixedMonthOffset" styleClass="text" style="width:100%"/>
</td>
</tr>
<tr>
<td>
<label><pos:element columnName="FixMonthCutoff"/></label><mandatory>*</mandatory>
</td>
<td colspan="3">
<html:text property="fiedMonthCutoff" styleClass="text" style="width:100%"/>
</td>
</tr>
</tbody>
<tr>
<td>
<label><pos:element columnName="AfterDelivery"/></label>
</td>
<td colspan="3">
<html:checkbox property="afterDelivery" value="true"/>
</td>
</tr>
<tr>
<td>
<label><pos:element columnName="IsActive"/></label>
</td>
<td colspan="3">
<html:checkbox property="isActive" value="true"/>
</td>
</tr>
<tr>
<td>
<label><pos:element columnName="DiscountDays"/></label>
</td>
<td colspan="3">
<html:text property="discountDay1" styleClass="text" style="width:100%"/>
</td>
</tr>
<tr>
<td>
<label><pos:element columnName="Discount"/></label>
</td>
<td colspan="3">
<html:text property="discountAmt1" styleClass="text" style="width:100%"/>
</td>
</tr>
<tr>
<td>
<label><pos:element columnName="DiscountDays2"/></label>
</td>
<td colspan="3">
<html:text property="discountDay2" styleClass="text" style="width:100%"/>
</td>
</tr>
<tr>
<td>
<label><pos:element columnName="Discount2"/></label>
</td>
<td colspan="3">
<html:text property="discountAmt2" styleClass="text" style="width:100%"/>
</td>
</tr>

View File

@ -0,0 +1,49 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Praveen
--%>
<%@ taglib uri="/WEB-INF/pos.tld" prefix="pos"%>
<div id="divBack"></div>
<div id="PINPanel">
<table border="0" width="100%" height="100%">
<tr>
<td valign="top" align="left">
<img src="images/tango/system-password.png" >
<pos:element columnName="please.enter.pin" textOnly="true"/><br>
</td>
</tr>
<tr>
<td>
<input type="password" class="text" id="PIN" style="width:100%">
</td>
</tr>
<tr>
<td align="right">
<div id="closeBtn">
<form>
<input type="button" value="OK" onclick="validatePIN()">
<input type="button" value="Cancel" onclick="hidePINPanel()">
</form>
</div>
</td>
</tr>
</table>
</div>

View File

@ -0,0 +1,37 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Praveen
--%>
<%@ taglib uri="/WEB-INF/pos.tld" prefix="pos"%>
<!-- end of page content -->
</td>
</tr>
</table>
</div>
<!-- end of content layout -->
<!-- start of copyright layout -->
<div class="copyright"><pos:element textOnly="true" columnName="footer.copyright"/></div>
<!-- end of copyright layout -->
</div>
</center>
</body>
</html>

View File

@ -0,0 +1,192 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Praveen
--%>
<!-- posHeader.jsp -->
<%@ page import="org.posterita.Constants" %>
<%@ page import="org.compiere.model.MPOS" %>
<%@ page import="java.util.Properties" %>
<%@ page import="org.posterita.core.TmkJSPEnv" %>
<%@ page import="org.compiere.util.Env" %>
<%@ page import="org.posterita.lib.UdiConstants" %>
<%@ page import="org.posterita.user.WebUserInfo" %>
<%@ page import="org.posterita.lib.UdiConstants" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/pos.tld" prefix="pos"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="/WEB-INF/pos.tld" prefix="pos"%>
<logic:notPresent name="<%=WebUserInfo.NAME%>" scope="session">
<jsp:forward page="/POSLogin.do"/>
</logic:notPresent>
<bean:parameter id="offset" name="offset" value="0"/>
<bean:parameter id="length" name="length" value="50"/>
<logic:present parameter="length">
<bean:parameter id="length" name="length"/>
</logic:present>
<logic:notPresent parameter="length">
<logic:present cookie="preference.display">
<bean:cookie id="cookie" name="preference.display"/>
<bean:parameter id="length" name="length" value="<%=cookie.getValue()%>"/>
</logic:present>
<logic:notPresent cookie="preference.display">
<bean:parameter id="length" name="length" value="50"/>
</logic:notPresent>
</logic:notPresent>
<%
response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
response.setHeader("Cache-Control","no-store"); //HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setDateHeader ("Expires", 0); //prevents caching at the proxy server
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
Properties ctx = TmkJSPEnv.getCtx(request);
String posName = MPOS.get(ctx,Env.getContextAsInt(ctx,UdiConstants.POS_ID)).getName();
Integer userId = new Integer(Env.getAD_User_ID(ctx));
String version = UdiConstants.POS_VERSION;
String appName = (String) request.getSession().getServletContext().getAttribute(Constants.APP_NAME);
%>
<%--
<logic:notPresent name="<%=WebUserInfo.NAME%>" scope="session">
<jsp:forward page="/LoginHome.do"/>
</logic:notPresent>
--%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<base href="<%=basePath%>">
<title><%=appName%></title>
<script src="js/enableButton.js"></script>
<script src="js/pos.js"></script>
<script src="javascripts/prototype.js"></script>
<script src="javascripts/scriptaculous.js"></script>
<script src="javascripts/sorttable.js"></script>
<script src="js/tooltip.js"></script>
<script src="js/dom-drag.js"></script>
<script src="js/keyboard.js"></script>
<link rel="shortcut icon" href="images/posterita.jpg" type="image/jpg" />
<link type="text/css" href="css/common.jsp" rel="stylesheet">
<link type="text/css" href="css/newPOS.jsp" rel="stylesheet">
</head>
<body>
<div id="keyboard"></div>
<center>
<div class="main" align="center">
<!-- start of header layout -->
<div class="header">
<table width="100%" class="layout">
<tr>
<td class="headerLogo">
</td>
<td align="right" valign="top">
<html:link href="<%="POSUserAction.do?action=initEditUser&userId="+userId%>">
<font><c:out value ='${webUserInfo.user.name}'/></font>
</html:link>
<font>
<%=posName%>
</font>
<div id="timer" style="border: 0px #E83530 solid;background-color: #ffffff; color: #666666; font-size: 13px; font-weight: bold;"></div>
<script type="text/javascript" src="js/timer.js"></script>
</td>
<td align="right">
<html:link href="<%="POSLogoutAction.do?action=logout"%>">
<image src="images/tango/system-log-out.png" border="0"/>
</html:link>
</td>
</tr>
</table>
</div>
<!-- end of header layout -->
<!-- start of menu layout -->
<div class="menu">
<table width="100%" class="topmenu">
<tr>
<td align="right">
<!-- start top menus -->
<logic:iterate indexId="count" id="element" name="<%= Constants.TOP_MENUS%>" type="org.posterita.core.MenuItem">
<a class="topmenu" href="<%= element.getMenuLink()%>" class="nodecoration">
<span class="menu"><pos:element columnName="<%= element.getName() %>" textOnly="true"/></span>
</a>
&nbsp;|&nbsp;
</logic:iterate>
<!-- end top menus -->
</td>
<td align="center">
<img src="images/tango/input-keyboard.png" id="keyboardicon">
</td>
</tr>
</table>
<script>
function openCashDrawer()
{
var url = '<%=basePath + "CompletePOSOrderAction.do?action=openCashDrawer"%>';
document.applets[0].printURL(url);
}
</script>
</div>
<!-- end of menu layout -->
<!-- start of content layout -->
<div class="content">
<table width="100%" class="layout">
<%--
<tr>
<td width="100%" align="left">
<logic:present name="<%=Constants.BREADCRUMB%>">
<div>
<ul>
<logic:iterate id="element" indexId="count" name="<%= Constants.BREADCRUMB%>" type="org.posterita.core.MenuItem">
<li class="breadcrumb">
<a href="<%=element.getMenuLink()%>">
<pos:element columnName="<%=element.getName()%>" textOnly="true"/>
</a>
</li>
</logic:iterate>
</ul>
</div>
</logic:present>
</td>
</tr>
--%>
<tr>
<td>
<!-- start of page content -->
<font class="pagetitle">
<logic:present name="title">
<bean:write name="title"/>
</logic:present>
</font>

View File

@ -0,0 +1,92 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Alok
--%>
<%@ page import="org.posterita.Constants" %>
<%@ taglib uri="/WEB-INF/pos.tld" prefix="pos"%>
<tr>
<td align="right">
<label class="greencolor"><pos:element columnName="filter.by"/>:</label>
</td>
<td width="3%">
<label><pos:element columnName="DocStatus"/></label>
</td>
<td width="3%">
<label><pos:element columnName="month"/></label>
</td>
<td width="3%">
<label><pos:element columnName="year"/></label>
</td>
<logic:present name="<%=Constants.ORDER_TYPES%>">
<td width="3%">
<label><pos:element columnName="order.type"/></label>
</td>
</logic:present>
<logic:present name="<%=Constants.PAYMENT_RULES%>">
<td width="3%">
<label><pos:element columnName="PaymentRule"/></label>
</td>
</logic:present>
</tr>
<tr>
<td>
&nbsp;
</td>
<td align="right">
<html:select property="docStatus" onchange="submit()">
<html:option value=""><pos:element columnName="all"/></html:option>
<%@include file="/jsp/include/documentStatusFilter.jsp"%>
</html:select>
</td>
<%@ include file="/jsp/include/historyMonthYearFilter.jsp"%>
<logic:present name="<%=Constants.ORDER_TYPES%>">
<td align="right">
<html:select property="orderType" onchange="submit()">
<html:option value=""><pos:element columnName="all"/></html:option>
<logic:present name="<%=Constants.ORDER_TYPES%>">
<html:options collection="<%=Constants.ORDER_TYPES%>" property="orderType"/>
</logic:present>
</html:select>
</td>
</logic:present>
<logic:present name="<%=Constants.PAYMENT_RULES%>">
<td align="right">
<html:select property="paymentRule" onchange="submit()">
<html:option value=""><pos:element columnName="all"/></html:option>
<logic:present name="<%=Constants.PAYMENT_RULES%>">
<%@include file="/jsp/include/paymentRuleFilter.jsp"%>
</logic:present>
</html:select>
</td>
</logic:present>
</tr>

View File

@ -0,0 +1,75 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Alok
--%>
<%@ page import="org.posterita.Constants" %>
<%@ taglib uri="/WEB-INF/pos.tld" prefix="pos"%>
<tr>
<td align="right">
<label class="greencolor"><pos:element columnName="filter.by"/>:</label>
</td>
<td width="3%">
<label><pos:element columnName="DocStatus"/></label>
</td>
<td width="3%">
<label><pos:element columnName="month"/></label>
</td>
<td width="3%">
<label><pos:element columnName="year"/></label>
</td>
<logic:present name="<%=Constants.PAYMENT_RULES%>">
<td width="3%">
<label><pos:element columnName="PaymentRule"/></label>
</td>
</logic:present>
</tr>
<tr>
<td>
&nbsp;
</td>
<td align="right">
<html:select property="docStatus" onchange="submit()">
<html:option value=""><pos:element columnName="all"/></html:option>
<%@include file="/jsp/include/documentStatusFilter.jsp"%>
</html:select>
</td>
<%@ include file="/jsp/include/historyMonthYearFilter.jsp"%>
<logic:present name="<%=Constants.PAYMENT_RULES%>">
<td align="right">
<html:select property="paymentRule" onchange="submit()">
<html:option value=""><pos:element columnName="all"/></html:option>
<logic:present name="<%=Constants.PAYMENT_RULES%>">
<%@include file="/jsp/include/paymentRuleFilter.jsp"%>
</logic:present>
</html:select>
</td>
</logic:present>
</tr>

View File

@ -0,0 +1,27 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Vishee
--%>
<%@ include file="/jsp/include/posOrderPart1FocusBarCode.jsp" %>
<%@ include file="/jsp/include/posOrderPart2.jsp" %>

View File

@ -0,0 +1,42 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Vishee
--%>
<%@ taglib uri="/WEB-INF/pos.tld" prefix="pos"%>
<tr>
<td>
<label><pos:element columnName="barcode"/>:</label>
</td>
<td>
<html:text property="barCode" accesskey="b" styleClass="text"/>
<html:hidden property="productId" value=""/>
</td>
<td>
<label><pos:element columnName="Qty"/>:</label>
</td>
<td>
<html:text property="quantity" accesskey="q" styleClass="text"/>
</td>
<td class="buttoncell" align="right">
<html:button property="btn" styleClass="addtocart bigbutton" onclick="addToCart()" accesskey="a">&nbsp</html:button>
</td>
</tr>

View File

@ -0,0 +1,29 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Vishee
--%>
<%@ include file="/jsp/include/posOrderPart1.jsp" %>
<%@ include file="/jsp/include/posOrderPart2.jsp" %>

View File

@ -0,0 +1,29 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Vishee
--%>
<%@ include file="/jsp/include/posOrderPart1.jsp" %>
<%@ include file="/jsp/include/posOrderPart2.jsp" %>

View File

@ -0,0 +1,101 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Vishee
--%>
<%@ taglib uri="/WEB-INF/pos.tld" prefix="pos"%>
<html:hidden property="isSales" value="true"/>
<html:hidden property="action" value=""/>
<html:hidden property="ifAdd" value="true"/>
<html:hidden property="orderType" value="<%=Constants.POS_ORDER%>"/>
<logic:present name="<%= Constants.CURRENT_POS_ORDER_ID %>">
<bean:define id="orderId">
<bean:write name="<%= Constants.CURRENT_POS_ORDER_ID %>"/>
</bean:define>
<html:hidden property="orderId" value="<%= orderId %>"/>
</logic:present>
<table class="main">
<tr>
<td>
<table class="main">
<tr>
<td>
<label><u><pos:element columnName="barcode"/>:</label>
</td>
<td>
<html:text property="barCode" accesskey="b" styleClass="text"/>
<html:hidden property="productId" value=""/>
</td>
<td>
<label><u><pos:element columnName="Qty"/>:</label>
</td>
<td>
<html:text property="quantity" accesskey="q" styleClass="text"/>
</td>
<td class="buttoncell" align="right">
<html:button property="btn" styleClass="addtocart bigbutton" onclick="addToCart()" accesskey="a">&nbsp</html:button>
</td>
</tr>
<tr>
<td>
<label><pos:element columnName="search.product"/>:</label>
</td>
<td colspan="3">
<div>
<%@ include file="/jsp/include/searchProductPanel.jsp" %>
</div>
</td>
<td>&nbsp;</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<div id="shoppingCart">
<%@ include file="/jsp/pos/posShoppingCartFirstPage.jsp" %>
</div>
</td>
</tr>
<tr>
<td>
<table class="main">
<tr>
<td valign="top" width="300px">
<%@ include file="/jsp/include/tenderPanel.jsp" %>
</td>
<td valign="top" width="300px">
<%@ include file="/jsp/include/customerInfoPanel.jsp" %>
</td>
<td valign="top">
<table border="0" width="100%" cellspacing="0" style="padding-right: 0px; padding-left: 5px; padding-top: 5px; padding-bottom: 5px">
<tr>
<td class="buttoncell" align="right">
<html:button property="btn" styleClass="checkout bigbutton" onclick="createOrder()" accesskey="c">&nbsp;</html:button>
</td>
</tr>

View File

@ -0,0 +1,70 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Vishee
--%>
<html:hidden property="isSales" value="true"/>
<html:hidden property="action" value=""/>
<html:hidden property="ifAdd" value="true"/>
<html:hidden property="orderType" value="<%=Constants.POS_ORDER%>"/>
<logic:present name="<%= Constants.CURRENT_POS_ORDER_ID %>">
<bean:define id="orderId">
<bean:write name="<%= Constants.CURRENT_POS_ORDER_ID %>"/>
</bean:define>
<html:hidden property="orderId" value="<%= orderId %>"/>
</logic:present>
<table class="main">
<tr>
<td>
<table class="main">
<%@ include file="/jsp/include/posOrderBarCode.jsp" %>
<%@ include file="/jsp/include/posOrderSearch.jsp" %>
</table>
</td>
</tr>
<tr>
<td>
<div id="shoppingCart">
<%@ include file="/jsp/pos/posShoppingCartFirstPage.jsp" %>
</div>
</td>
</tr>
<tr>
<td>
<table class="main">
<tr>
<td valign="top" width="45%">
<%@ include file="/jsp/include/tenderPanel.jsp" %>
</td>
<td valign="top" width="45%">
<%@ include file="/jsp/include/customerInfoPanel.jsp" %>
</td>
<td valign="top">
<table border="0" width="100%" cellspacing="0" style="padding-right: 0px; padding-left: 5px; padding-top: 5px; padding-bottom: 5px">
<tr>
<td class="buttoncell" align="right">
<html:button property="btn" styleClass="checkout bigbutton" onclick="createOrder()" accesskey="c">&nbsp;</html:button>
</td>
</tr>

View File

@ -0,0 +1,61 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Vishee
--%>
<html:hidden property="isSales" value="true"/>
<html:hidden property="action" value=""/>
<html:hidden property="ifAdd" value="true"/>
<table class="main">
<tr>
<td>
<table class="main">
<%@ include file="/jsp/include/posOrderSearch.jsp" %>
<%@ include file="/jsp/include/posOrderBarCode.jsp" %>
</table>
</td>
</tr>
<tr>
<td>
<div id="shoppingCart">
<%@ include file="/jsp/pos/posShoppingCartFirstPage.jsp" %>
</div>
</td>
</tr>
<tr>
<td>
<table class="main">
<tr>
<td valign="top" width="45%">
<%@ include file="/jsp/include/tenderPanel.jsp" %>
</td>
<td valign="top" width="45%">
<%@ include file="/jsp/include/customerInfoPanel.jsp" %>
</td>
<td valign="top">
<table border="0" width="100%" cellspacing="0" style="padding-right: 0px; padding-left: 5px; padding-top: 5px; padding-bottom: 5px">
<tr>
<td class="buttoncell" align="right">
<html:button property="btn" styleClass="checkout bigbutton" onclick="createOrder()" accesskey="c">&nbsp;</html:button>
</td>
</tr>

View File

@ -0,0 +1,85 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Vishee
--%>
<%@ taglib uri="/WEB-INF/pos.tld" prefix="pos"%>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td align="center">
<span>
<span class="shortcutkey">
<label><pos:element columnName="barcode"/>-</label>
<label class="red">Alt-B</label>
</span>
<span class="shortcutkey">
<label><pos:element columnName="Qty"/>-</label>
<label class="red">Alt-Q</label>
</span>
<span class="shortcutkey">
<label><pos:element columnName="add.to.cart"/>-</label>
<label class="red">Alt-A</label>
</span>
<span class="shortcutkey">
<label><pos:element columnName="checkout"/>-</label>
<label class="red">Alt-C</label>
</span>
<span class="shortcutkey">
<label><pos:element columnName="search.product"/>-</label>
<label class="red">Alt-P</label>
</span>
<span class="shortcutkey">
<label><pos:element columnName="search.customer"/>-</label>
<label class="red">Alt-U</label>
</span>
<span class="shortcutkey">
<label><pos:element columnName="advanced"/>-</label>
<label class="red">Alt-O</label>
</span>
<span class="shortcutkey">
<label><pos:element columnName="cash"/>-</label>
<label class="red">Alt-S</label>
</span>
<span class="shortcutkey">
<label><pos:element columnName="card"/>-</label>
<label class="red">Alt-R</label>
</span>
<span class="shortcutkey">
<label><pos:element columnName="cheque"/>-</label>
<label class="red">Alt-K</label>
</span>
<span class="shortcutkey">
<label><pos:element columnName="new.customer"/>-</label>
<label class="red">Alt-N</label>
</span>
</span>
</td>
</tr>
</table>

View File

@ -0,0 +1,35 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Preveen
--%>
<%@ taglib uri="/WEB-INF/pos.tld" prefix="pos"%>
<tr>
<td>
<label><pos:element columnName="search.product"/>:</label>
</td>
<td colspan="3">
<div>
<%@ include file="/jsp/include/searchProductPanel.jsp" %>
</div>
</td>
<td>&nbsp;</td>
</tr>

View File

@ -0,0 +1,38 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Vishee
--%>
<%@ include file="/jsp/include/posOrderPart1FocusBarCode.jsp"%>
<tr>
<td>
<%@ include file="/jsp/include/pinPanel.jsp"%>
</td>
</tr>
<tr>
<td class="buttoncell" align="right">
<html:button property="btn" onclick="checkout()" accesskey="o" styleClass="advanced bigbutton">&nbsp;</html:button>
</td>
</tr>
<%@ include file="/jsp/include/posOrderPart2.jsp"%>

View File

@ -0,0 +1,39 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Vishee
--%>
<%@ include file="/jsp/include/posOrderPart1FocusSearch.jsp" %>
<tr>
<td>
<%@ include file="/jsp/include/pinPanel.jsp" %>
</td>
</tr>
<tr>
<td class="buttoncell" align="right">
<html:button property="btn" onclick="checkout()" accesskey="o" styleClass="advanced bigbutton">&nbsp;</html:button>
</td>
</tr>
<%@ include file="/jsp/include/posOrderPart2.jsp" %>

View File

@ -0,0 +1,307 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Alok
--%>
<%@ page import="org.posterita.form.OrderLineForm" %>
<%@ page import="org.posterita.form.OrderLineForm" %>
<%@ taglib uri="/WEB-INF/pos.tld" prefix="pos"%>
<%@ page import="java.text.DecimalFormat" %>
<!--pospaymentDetails.jsp-->
<table class="content">
<tr>
<td>
<logic:present name="<%=Constants.SHOPPING_ORDER_CART_ITEMS%>">
<logic:notEmpty name="<%=Constants.SHOPPING_ORDER_CART_ITEMS%>">
<table class="cart">
<tr>
<th align="left">
<pos:element columnName="Description"/>
</th>
<th align="right">
<pos:element columnName="Qty"/>
</th>
<th align="right">
<pos:element columnName="Price"/>
</th>
<th align="right">
<pos:element columnName="vat"/>
</th>
<th align="right">
<pos:element columnName="total.price"/>
</th>
<th align="right">
<pos:element columnName="Discount"/>
</th>
<th align="right">
<pos:element columnName="actual.price"/>
</th>
</tr>
<logic:iterate indexId="count" id="element" name="<%=Constants.SHOPPING_ORDER_CART_ITEMS%>" type="org.posterita.beans.ItemBean">
<%
String styleClass = "label";
if ((count.intValue()%2) != 0)
styleClass = "contentname";
%>
<tr>
<td class="<%=styleClass%>">
<bean:write name="element" property="description"/>
</td>
<td class="<%=styleClass%>" align="right">
<bean:write name="element" property="qty"/>
<bean:define id="qtyTotal" name="element" property="qtyTotal"/>
</td>
<td class="<%=styleClass%>" align="right">
<bean:define id="standardPrice" name="element" property="standardPrice"/>
<fmt:formatNumber value='${standardPrice}'type="currency" currencySymbol=""/>
<bean:define id="priceTotal" name="element" property="priceTotal"/>
</td>
<td class="<%=styleClass%>" align="right">
<bean:define id="taxAmt" name="element" property="taxAmt"/>
<fmt:formatNumber value='${taxAmt}'type="currency" currencySymbol=""/>
<bean:define id="taxTotal" name="element" property="taxTotal"/>
</td>
<td class="<%=styleClass%>" align="right">
<bean:define id="price" name="element" property="price"/>
<fmt:formatNumber value='${price}'type="currency" currencySymbol=""/>
<html:hidden property="price" value="<%= element.getPrice() + ""%>"/>
<bean:define id="grandTotal" name="element" property="grandTotal"/>
</td>
<%
String defaultDiscount = "0";
String defaultPrice = element.getPrice().toString();
OrderLineForm form = (OrderLineForm)request.getAttribute("OrderLineForm");
if(form!=null)
{
String[] discountPercentage = form.getDiscountPercent();
String[] actualPrice = form.getActualPrice();
if(discountPercentage!= null)
if(discountPercentage.length!=0)
defaultDiscount = discountPercentage[count.intValue()].toString();
if(actualPrice!=null)
if(actualPrice.length!=0)
defaultPrice = actualPrice[count.intValue()];
}
%>
<td class="<%=styleClass%>" align="right">
<html:text property="discountPercent" styleClass="text medium" value="<%=defaultDiscount%>"/>
</td>
<td class="<%=styleClass%>" align="right">
<html:text property="actualPrice" styleClass="text medium" value="<%=defaultPrice%>"/>
</td>
</tr>
</logic:iterate>
<tr>
<bean:define id="currSymbole" name="<%= Constants.CURRENCY_SYMBOLE %>"/>
<td class="total" colspan="1"><pos:element columnName="GrandTotal"/></td>
<td nowrap class="total" align="right">
<fmt:formatNumber value='${qtyTotal}'/>
</td>
<td nowrap class="total" align="right">
<fmt:formatNumber value='${priceTotal}'type="currency" currencySymbol='${currSymbole}'/>
</td>
<td nowrap class="total" align="right">
<fmt:formatNumber value='${taxTotal}'type="currency" currencySymbol='${currSymbole}'/>
</td>
<td nowrap class="total" align="right">
<fmt:formatNumber value='${grandTotal}'type="currency" currencySymbol='${currSymbole}'/>
</td>
<td class="total">&nbsp;</td>
<td class="total" align="right">
<html:hidden property="totalActualPrice"/>
<div id="actualPriceTotal">
<fmt:formatNumber value='${grandTotal}'type="currency" currencySymbol='${currSymbole}'/>
</div>
</td>
</tr>
<tr>
<td class="total" colspan="5">&nbsp;</td>
<td class="total" align="right"><input id="discountTotal" type="text" class="text medium"></td>
<td class="total" align="right"><input id="grandTotal" type="text" class="text medium"></td>
</tr>
</table>
</logic:notEmpty>
</logic:present>
</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>
<table align="center" border="0" cellpadding="5" cellspacing="0">
<tr>
<td>
<html:button styleClass="cash smallbutton" property="<%=MOrder.PAYMENTRULE_Cash%>" onclick="showCash();" accesskey="s">
&nbsp;
</html:button>
</td>
<td>
<html:button styleClass="card smallbutton" property="<%=MOrder.PAYMENTRULE_CreditCard%>" onclick="showCard();" accesskey="r">
&nbsp;
</html:button>
</td>
<td>
<html:button styleClass="cheque smallbutton" property="<%=MOrder.PAYMENTRULE_Check%>" onclick="showCheque();" accesskey="q">
&nbsp;
</html:button>
</td>
<td>
<html:button styleClass="mixed smallbutton" property="<%=UdiConstants.PAYMENTRULE_MIXED%>" onclick="showMixed();" accesskey="m">
&nbsp;
</html:button>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="5">
<tr>
<td>
<label><pos:element columnName="TenderType"/></label>
</td>
<td colspan="3">
<html:text property="trxType" readonly="true" styleClass="text"/>
<html:hidden property="bpartnerId"/>
</td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="5">
<tr>
<td>
<div id="cashLabel" class="nodisplay"><label><pos:element columnName="cash.amount"/></label></div>
</td>
<td colspan="3">
<div id="cashTxt" class="nodisplay"><html:text property="paymentByCash" readonly="true" styleClass="text"/></div>
</td>
</tr>
<tr>
<td>
<div id="cardLabel" class="nodisplay"><label><pos:element columnName="card.amount"/></label></div>
</td>
<td>
<div id="cardTxt" class="nodisplay"><html:text property="paymentByCard" styleClass="text"/></div>
</td>
<td>
<div id="cardNoLabel" class="nodisplay"><label><pos:element columnName="card.no"/></label></div>
</td>
<td>
<div id="cardNoTxt" class="nodisplay"><html:text property="creditCardNumber" styleClass="text" /></div>
</td>
</tr>
<tr>
<td>
<div id="chequeLabel" class="nodisplay"><label><pos:element columnName="cheque.amount"/></label></div>
</td>
<td>
<div id="chequeTxt" class="nodisplay"><html:text property="paymentByChq" styleClass="text" /></div>
</td>
<td>
<div id="chequeNoLabel" class="nodisplay"><label><pos:element columnName="cheque.no"/></label></div>
</td>
<td>
<div id="chequeNoTxt" class="nodisplay"><html:text property="chequeNo" styleClass="text"/></div>
</td>
</tr>
</table>
</td>
</tr>
<tr><td>&nbsp;</td></tr>
<tr>
<td align="right">
<html:link href="<%="CreatePOSOrder.do"%>">
<img src="images/pos/buttons/button_edit.gif" styleClass="continue smallbutton"/>
</html:link>
</td>
</tr>
<tr>
<td align="right">
<html:button property="btn" styleClass="continue smallbutton" onclick="createOrder()" accesskey="c">
&nbsp;
</html:button>
</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td align="center">
<table border="0" cellpadding="10">
<tr>
<td>
<label><pos:element columnName="cash"/> -</label><label class="red">Alt-S</label>
</td>
<td>
<label><pos:element columnName="card"/> -</label><label class="red">Alt-R</label>
</td>
<td>
<label><pos:element columnName="cheque"/> -</label><label class="red">Alt-Q</label>
</td>
<td>
<label><pos:element columnName="mixed"/> -</label><label class="red">Alt-M</label>
</td>
<td>
<label><pos:element columnName="continue"/> -</label><label class="red">Alt-C</label>
</td>
</tr>
</table>
</td>
</tr>
</table>

View File

@ -0,0 +1,307 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Alok
--%>
<%@ page import="org.posterita.form.OrderLineForm" %>
<%@ page import="java.text.DecimalFormat" %>
<%@ taglib uri="/WEB-INF/pos.tld" prefix="pos"%>
<!--pospaymentDetails.jsp-->
<table class="content">
<tr>
<td>
<logic:present name="<%=Constants.SHOPPING_ORDER_CART_ITEMS%>">
<logic:notEmpty name="<%=Constants.SHOPPING_ORDER_CART_ITEMS%>">
<table class="cart">
<tr>
<th align="left">
<pos:element columnName="Description"/>
</th>
<th align="right">
<pos:element columnName="Qty"/>
</th>
<th align="right">
<pos:element columnName="Price"/>
</th>
<th align="right">
<pos:element columnName="vat"/>
</th>
<th align="right">
<pos:element columnName="total.price"/>
</th>
<th align="right">
<pos:element columnName="Discount"/>
</th>
<th align="right">
<pos:element columnName="actual.price"/>
</th>
</tr>
<logic:iterate indexId="count" id="element" name="<%=Constants.SHOPPING_ORDER_CART_ITEMS%>" type="org.posterita.beans.ItemBean">
<%
String styleClass = "label";
if ((count.intValue()%2) != 0)
styleClass = "contentname";
%>
<tr>
<td class="<%=styleClass%>">
<bean:write name="element" property="description"/>
</td>
<td class="<%=styleClass%>" align="right">
<bean:write name="element" property="qty"/>
<bean:define id="qtyTotal" name="element" property="qtyTotal"/>
</td>
<td class="<%=styleClass%>" align="right">
<bean:define id="standardPrice" name="element" property="standardPrice"/>
<fmt:formatNumber value='${standardPrice}'type="currency" currencySymbol=""/>
<bean:define id="priceTotal" name="element" property="priceTotal"/>
</td>
<td class="<%=styleClass%>" align="right">
<bean:define id="taxAmt" name="element" property="taxAmt"/>
<fmt:formatNumber value='${taxAmt}'type="currency" currencySymbol=""/>
<bean:define id="taxTotal" name="element" property="taxTotal"/>
</td>
<td class="<%=styleClass%>" align="right">
<bean:define id="price" name="element" property="price"/>
<fmt:formatNumber value='${price}'type="currency" currencySymbol=""/>
<html:hidden property="price" value="<%= element.getPrice() + ""%>"/>
<bean:define id="grandTotal" name="element" property="grandTotal"/>
</td>
<%
String defaultDiscount = "0";
String defaultPrice = element.getPrice().toString();
DecimalFormat df = new DecimalFormat("0.00");
OrderLineForm form = (OrderLineForm)request.getAttribute("OrderLineForm");
if(form!=null)
{
String[] discountPercentage = form.getDiscountPercent();
String[] actualPrice = form.getActualPrice();
if(discountPercentage!= null)
if(discountPercentage.length!=0)
defaultDiscount = discountPercentage[count.intValue()].toString();
if(actualPrice!=null)
if(actualPrice.length!=0)
defaultPrice = actualPrice[count.intValue()];
}
%>
<td class="<%=styleClass%>" align="right">
<html:text property="discountPercent" styleClass="text medium" value="<%=defaultDiscount%>"/>
</td>
<td class="<%=styleClass%>" align="right">
<html:text property="actualPrice" styleClass="text medium" value="<%=defaultPrice%>"/>
</td>
</tr>
</logic:iterate>
<tr>
<bean:define id="currSymbole" name="<%= Constants.CURRENCY_SYMBOLE %>"/>
<td class="total" colspan="1"><pos:element columnName="GrandTotal"/></td>
<td nowrap class="total" align="right">
<fmt:formatNumber value='${qtyTotal}'/>
</td>
<td nowrap class="total" align="right">
<fmt:formatNumber value='${priceTotal}'type="currency" currencySymbol='${currSymbole}'/>
</td>
<td nowrap class="total" align="right">
<fmt:formatNumber value='${taxTotal}'type="currency" currencySymbol='${currSymbole}'/>
</td>
<td nowrap class="total" align="right">
<fmt:formatNumber value='${grandTotal}'type="currency" currencySymbol='${currSymbole}'/>
</td>
<td class="total">&nbsp;</td>
<td class="total" align="right">
<html:hidden property="totalActualPrice"/>
<div id="actualPriceTotal">
<fmt:formatNumber value='${grandTotal}'type="currency" currencySymbol='${currSymbole}'/>
</div>
</td>
</tr>
<tr>
<td class="total" colspan="5">&nbsp;</td>
<td class="total" align="right"><input id="discountTotal" type="text" class="text medium"></td>
<td class="total" align="right"><input id="grandTotal" type="text" class="text medium"></td>
</tr>
</table>
</logic:notEmpty>
</logic:present>
</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>
<table align="center" border="0" cellpadding="5" cellspacing="0">
<tr>
<td>
<html:button styleClass="cash smallbutton" property="<%=MOrder.PAYMENTRULE_Cash%>" onclick="showCash();" accesskey="s">
&nbsp;
</html:button>
</td>
<td>
<html:button styleClass="card smallbutton" property="<%=MOrder.PAYMENTRULE_CreditCard%>" onclick="showCard();" accesskey="r">
&nbsp;
</html:button>
</td>
<td>
<html:button styleClass="cheque smallbutton" property="<%=MOrder.PAYMENTRULE_Check%>" onclick="showCheque();" accesskey="q">
&nbsp;
</html:button>
</td>
<td>
<html:button styleClass="mixed smallbutton" property="<%=UdiConstants.PAYMENTRULE_MIXED%>" onclick="showMixed();" accesskey="m">
&nbsp;
</html:button>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="5">
<tr>
<td>
<label><pos:element columnName="TenderType"/></label>
</td>
<td colspan="3">
<html:text property="trxType" readonly="true" styleClass="text"/>
<html:hidden property="bpartnerId"/>
</td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="5">
<tr>
<td>
<div id="cashLabel" class="nodisplay"><label><pos:element columnName="cash.amount"/></label></div>
</td>
<td colspan="3">
<div id="cashTxt" class="nodisplay"><html:text property="paymentByCash" readonly="true" styleClass="text"/></div>
</td>
</tr>
<tr>
<td>
<div id="cardLabel" class="nodisplay"><label><pos:element columnName="card.amount"/></label></div>
</td>
<td>
<div id="cardTxt" class="nodisplay"><html:text property="paymentByCard" styleClass="text"/></div>
</td>
<td>
<div id="cardNoLabel" class="nodisplay"><label><pos:element columnName="card.no"/></label></div>
</td>
<td>
<div id="cardNoTxt" class="nodisplay"><html:text property="creditCardNumber" styleClass="text" /></div>
</td>
</tr>
<tr>
<td>
<div id="chequeLabel" class="nodisplay"><label><pos:element columnName="cheque.amount"/></label></div>
</td>
<td>
<div id="chequeTxt" class="nodisplay"><html:text property="paymentByChq" styleClass="text" /></div>
</td>
<td>
<div id="chequeNoLabel" class="nodisplay"><label><pos:element columnName="cheque.no"/></label></div>
</td>
<td>
<div id="chequeNoTxt" class="nodisplay"><html:text property="chequeNo" styleClass="text"/></div>
</td>
</tr>
</table>
</td>
</tr>
<tr><td>&nbsp;</td></tr>
<tr>
<td align="right">
<html:link href="<%="CreatePOSOrder2.do"%>">
<img src="images/pos/buttons/button_edit.gif" styleClass="continue smallbutton"/>
</html:link>
</td>
</tr>
<tr>
<td align="right">
<html:button property="btn" styleClass="continue smallbutton" onclick="createOrder()" accesskey="c">
&nbsp;
</html:button>
</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td align="center">
<table border="0" cellpadding="10">
<tr>
<td>
<label><pos:element columnName="cash"/> -</label><label class="red">Alt-S</label>
</td>
<td>
<label><pos:element columnName="card"/> -</label><label class="red">Alt-R</label>
</td>
<td>
<label><pos:element columnName="cheque"/> -</label><label class="red">Alt-Q</label>
</td>
<td>
<label><pos:element columnName="mixed"/> -</label><label class="red">Alt-M</label>
</td>
<td>
<label><pos:element columnName="continue"/> -</label><label class="red">Alt-C</label>
</td>
</tr>
</table>
</td>
</tr>
</table>

View File

@ -0,0 +1,141 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Praveen
--%>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<!-- start of header -->
<%
String appName = (String) request.getSession().getServletContext().getAttribute(Constants.APP_NAME);
%>
<html>
<head>
<title><%=appName%></title>
<script src="/js/enableButton.js"></script>
<!--
<link rel="stylesheet" href="css/style.css" type="text/css">
<link rel="stylesheet" href="css/global.css" type="text/css">
<bean:write name="cssURI" filter="false"/>
-->
<style>
body, td, th, input { /* redundant rules for bad browsers */
font-family: verdana, sans-serif;
font-size: x-small;
voice-family: "\"}\"";
voice-family: inherit;
font-size: small;
}
body{
margin:40px;
background-color:#CCCCCC;
}
table.header{
background-color:#FFFFFF;
}
table.content{
background-color:#FFFFFF;
}
table.footer{
background-color:##CCCCCC;
}
</style>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="header">
<tr>
<td>
<img src="">
</td>
<td align="right">
<table>
<tr>
<td>User: </td>
<td>XXXXXX</td>
</tr>
<tr>
<td>Till No: </td>
<td>XX</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2">
<table>
<tr>
<td>Menu 1</td>
<td>Menu 2</td>
<td>Menu 3</td>
<td>Menu 4</td>
</tr>
</table>
</td>
</tr>
<tr><td colspan="2">&nbsp;</td></tr>
</table>
</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="content">
<tr>
<td>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="footer">
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td align="center">
<div class="copy">
All Content © <%=java.util.Calendar.getInstance().get(java.util.Calendar.YEAR)%> Tamak ICT
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
<!-- end of footer -->

View File

@ -0,0 +1,45 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Praveen
--%>
<logic:present cookie="preference.printing">
<logic:equal cookie="preference.printing" property="value" value="true">
<div>
<applet archive="<%= basePath + "applets/printOrderApplet.jar"%>" code="PrintOrderApplet.class" width="0" height="0"></applet>
</div>
<script>
function print()
{
try
{
var url = '<%=basePath + "ReprintOrderAction.do?action=getPrintOrderData&orderId="%>';
document.applets[0].printURL(url + '<c:out value='${morder._ID}'/>');
}
catch(e)
{
toConsole(e);
}
}
Event.observe(window,'load',print,false);
</script>
</logic:equal>
</logic:present>

View File

@ -0,0 +1,39 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Praveen
--%>
<div>
<applet archive="<%= basePath + "applets/printOrderApplet.jar"%>" code="PrintOrderApplet.class" width="0" height="0"></applet>
</div>
<script>
function print()
{
var url = '<%=basePath + "ReprintOrderAction.do?action=getPrintOrderData&orderId="%>';
document.applets[0].printURL(url + '<c:out value='${morder._ID}'/>');
}
function printOrder(orderId)
{
var url = '<%=basePath + "ReprintOrderAction.do?action=getPrintOrderData&openDrawer=false&orderId="%>';
document.applets[0].printURL(url + orderId);
}
</script>

View File

@ -0,0 +1,25 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Praveen
--%>
<input type="text" class="text searchBox" style="width:100%" id="customerQuery" accesskey="u"/>
<div id="customerSearchResult" class="autocomplete"></div>
<script>addRequiredLibrary('js/customer.js');</script>

View File

@ -0,0 +1,26 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Praveen
--%>
<input type="text" class="text searchBox" style="width:100%" id="customerQuery" accesskey="u"/>
<div id="customerSearchResult" class="autocomplete"></div>
<script>addRequiredLibrary('js/customer2.js');</script>

View File

@ -0,0 +1,71 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Praveen
--%>
<input type="text" class="text searchBox" style="width:100%" id="productQuery" accesskey="p" />
<div id="productSearchResult" class="autocomplete"></div>
<script>
function convertString2Unicode(s)
{
var uniString = "", hexVal, uniChar;
for(var i = 0; i < s.length; ++i)
{
//Convert char to hex
//hexVal = Number(s.charCodeAt(i)).toString(16);
hexVal = Number(s.charCodeAt(i)).toString(10);
//Convert to unicode by making sure hex is 4 chars long, padding with 0's if less
//uniChar = "\\u" + ("000" + hexVal).match(/.{4}$/)[0];
uniChar = "&#" + ("000" + hexVal).match(/.{4}$/)[0] +";";
uniString += uniChar;
}
if(hexVal < 255)
return s;
return uniString;
}
var productAutocompleter = new Ajax.Autocompleter('productQuery','productSearchResult','SearchProductsAction.do',{
paramName:'productName',
frequency:1.0,
afterUpdateElement:function(e1,e2){
var barcode = e2.getAttribute('barcode');
if(barcode=='null')
{
barcode = "";
}
var productId = e2.getAttribute('productId');
document.getElementsByName('barCode')[0].value = barcode;
document.getElementsByName('productId')[0].value= productId;
addToCart();
}
});
$('productQuery').Autocompleter = productAutocompleter;
</script>

View File

@ -0,0 +1,50 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Praveen
--%>
<input type="text" class="text searchBox" style="width:100%" id="productQuery" accesskey="p"/>
<div id="productSearchResult" class="autocomplete"></div>
<script>
var productAutocompleter = new Ajax.Autocompleter('productQuery','productSearchResult','SearchProductsAction.do',{
paramName:'productName',
frequency:1.0,
afterUpdateElement:function(e1,e2){
var barcode = e2.getAttribute('barcode');
if(barcode=='null')
{
barcode = "";
}
var productId = e2.getAttribute('productId');
document.getElementsByName('barCode')[0].value = barcode;
document.getElementsByName('productId')[0].value= productId;
addToCart();
}
});
$('productQuery').Autocompleter = productAutocompleter;
</script>

View File

@ -0,0 +1,44 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Praveen
--%>
<input type="text" style="width:100%" id="customerQuery" accesskey="s"/>
<div id="customerSearchResult" class="autocomplete"></div>
<script>
new Ajax.Autocompleter('customerQuery','customerSearchResult','SearchVendorAction.do',{
paramName:'customerQuery',
frequency:TROTTLE_TIME,
afterUpdateElement:function(e1,e2){
var bpartner = document.getElementsByName('bpartnerId')[0];
var vendorName = document.getElementsByName('vendorName')[0];
if(e2.value != '-1'){
bpartner.value = e2.value;
vendorName.value = e2.getAttribute('name');
}else{
bpartner.value = "";
vendorName.value = "";
}//if
}//function
});
</script>

View File

@ -0,0 +1,98 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author tamak
--%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
<title><tiles:getAsString name="title" /></title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<!-- <link rel="stylesheet" href="css/style.css" type="text/css"> -->
<!-- <link rel="stylesheet" href="css/global.css" type="text/css"> -->
<bean:write name="cssURI" filter="false"/>
<script src="js/enableButton.js"></script>
<base href="<%=basePath%>">
</head>
<body>
<table align="center" width="778" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="main" width="100%">
<table width="100%" height="70" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr height="65">
<td width="10" height="65" class="iconmenuLeft">
</td>
<td width="277" height="65" class="iconmenuBg">
</td>
<td height="65" width="191" class="iconmenuBg">
<img src="images/pos/logo_red.jpg">
</td>
<td width="277" height="65" class="iconmenuBg">
</td>
<td width="10" height="65" class="iconmenuRight">
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="1" valign="top">
<table width="100%" border="0" cellpadding="5" cellspacing="0">
<tr>
<td valign="top">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="15" height="15" colspan="1">&nbsp; </td>
<td height="15" colspan="1">&nbsp; </td>
<td height="15" width="17" colspan="1">&nbsp; </td>
</tr>
<tr>
<td width="15">&nbsp; </td>

View File

@ -0,0 +1,67 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Praveen
--%>
<table align="center">
<tr>
<td width="40px">
<label><pos:element columnName="date.from"/>:</label>
</td>
<td>
<html:select property="startDay" styleClass="daySelectBox">
<%@ include file="/jsp/include/dayList.jsp" %>
</html:select>
<html:select property="startMonth" styleClass="monthSelectBox">
<%@ include file="/jsp/include/monthList.jsp" %>
</html:select>
<html:select property="startYear" styleClass="yearSelectBox">
<%@ include file="/jsp/include/yearList.jsp" %>
</html:select>
</td>
<td>
<html:hidden property="fromDate"/>
<input type="hidden" id="startDate">
<button id="startDateBtn" style="background-image: url('images/calendar_icon.png');height: 22px;width: 22px"></button>
</td>
<td>
<html:select property="startHour">
<%@ include file="/jsp/include/hourList.jsp" %>
</html:select>
<pos:element columnName="time.hour"/>:
<html:select property="startMinute">
<%@ include file="/jsp/include/minuteList.jsp" %>
</html:select>
<pos:element columnName="time.minute"/>:
</td>
</tr>
</table>
<script>
addRequiredLibrary('js/js-calendar.js');
<%@ include file="/js/js-date.js" %>
Event.observe(window,'load',initStartCalendar,false);
</script>

View File

@ -0,0 +1,24 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author tamak
--%>
</div>

View File

@ -0,0 +1,25 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author vishee
--%>
<div class="headerForm">

View File

@ -0,0 +1,27 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author vishee
--%>
<table width=100% height="38px" border=0 cellpadding=0 cellspacing=0>
<tr><td width="60%" height="38px" background="images/tabbg.gif">&nbsp;</td>
<td height="38" background="images/tabbg.gif" align="right"><img src="images/tableft.jpg"></td>
<td class="pagetitle" align="center" nowrap><font class="pagetitlefont">

View File

@ -0,0 +1,37 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author vishee
--%>
<td width="17">&nbsp; </td>
</tr>
<tr>
<td width="15" height="20" colspan="1">&nbsp; </td>
<td eight="20" colspan="1">&nbsp; </td>
<td width="17" height="20" colspan="1">&nbsp; </td>
</tr>
</table>

View File

@ -0,0 +1,71 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Alok
--%>
<%@ taglib uri="/WEB-INF/pos.tld" prefix="pos"%>
<table class="view">
<tr>
<td>
<label><pos:element columnName="C_Tax_ID"/></label><mandatory>*</mandatory>
</td>
<td colspan="3">
<html:text property="taxName" styleClass="text"/>
</td>
</tr>
<tr>
<td>
<label><pos:element columnName="Rate"/></label><mandatory>*</mandatory>
</td>
<td colspan="3">
<html:text property="taxRate" styleClass="text" style="width:100%"/>
</td>
</tr>
<tr>
<td>
<label><pos:element columnName="Description"/></label>
</td>
<td colspan="3">
<html:text property="description" styleClass="text" style="width:100%"/>
</td>
</tr>
<tr>
<td>
<label><pos:element columnName="IsTaxExempt"/></label>
</td>
<td colspan="3">
<html:checkbox property="isTaxExempted" value="true"/>
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td align="right">
<html:submit styleClass="save smallbutton">
&nbsp;
</html:submit>
</td>
<td colspan="2">&nbsp;</td>
</tr>
</table>

View File

@ -0,0 +1,75 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Praveen
--%>
<%@ taglib uri="/WEB-INF/pos.tld" prefix="pos"%>
<fieldset>
<legend><pos:element columnName="TenderType" /></legend>
<div style="height:160px">
<table border="0" cellpadding="5">
<tr>
<td>
<table>
<tr>
<td>
<html:button property="btn" styleClass="cash smallbutton" onclick="return setTrxType('Cash');" accesskey="s">&nbsp;</html:button>
</td>
<td>
<html:button property="btn" styleClass="card smallbutton" onclick="return setTrxType('Card');" accesskey="r">&nbsp;</html:button>
</td>
<td>
<html:button property="btn" styleClass="cheque smallbutton" onclick="return setTrxType('Cheque');" accesskey="k">&nbsp;</html:button>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<html:hidden property="trxType"/>
<table>
<tbody id="cashNoTxt">
<tr>
<td style="width:180px"><label><pos:element columnName="payment.by" /></label></td>
<td>&nbsp;</td>
</tr>
</tbody>
<tbody id="cardNoTxt">
<tr>
<td style="width:180px"><label><pos:element columnName="card.no" /></label></td>
<td><html:text property="creditCardNumber" styleClass="text"/></td>
</tr>
</tbody>
<tbody id="chequeNoTxt">
<tr>
<td style="width:180px"><label><pos:element columnName="cheque.no" /></label></td>
<td><html:text property="chequeNo" styleClass="text"/></td>
</tr>
</tbody>
</table>
</td>
</tr>
</table>
</div>
</fieldset>

View File

@ -0,0 +1,116 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Praveen
--%>
<fieldset>
<legend>Tender</legend>
<div style="height:160px">
<table border="0" cellpadding="5">
<tr>
<td>
<table>
<tr>
<td>
<html:button property="btn" styleClass="card smallbutton" onclick="return setTrxType('Card');" accesskey="r">&nbsp;</html:button>
</td>
<td>
<html:button property="btn" styleClass="cheque smallbutton" onclick="return setTrxType('Cheque');" accesskey="k">&nbsp;</html:button>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<html:hidden property="trxType"/>
<table>
<tbody id="cardNoTxt">
<tr>
<td style="width:130px"><label>Card No:</label></td>
<td><html:text property="creditCardNumber" styleClass="text"/></td>
</tr>
</tbody>
<tbody id="chequeNoTxt">
<tr>
<td style="width:130px"><label>Cheque No:</label></td>
<td><html:text property="chequeNo" styleClass="text"/></td>
</tr>
</tbody>
</table>
</td>
</tr>
</table>
</div>
</fieldset>
<script>
function setTrxType(type)
{
toConsole(type);
document.forms[0].trxType.value = type;
//var divCash = $('cashNoTxt');
var divCard = $('cardNoTxt');
var divCheque = $('chequeNoTxt');
//Element.hide(divCash);
Element.hide(divCard);
Element.hide(divCheque);
if(type == 'Cash')
{
Element.show(divCash);
}
if(type == 'Card')
{
Element.show(divCard);
$focus('creditCardNumber');
}
if(type == 'Cheque')
{
Element.show(divCheque);
$focus('chequeNo');
}
return false;
}
try
{
//Element.hide($('cashNoTxt'));
Element.hide($('cardNoTxt'));
Element.hide($('chequeNoTxt'));
if(document.forms[0].trxType.value)
setTrxType(document.forms[0].trxType.value);
else
setTrxType('Card');
}
catch (e)
{
toConsole(e);
}
</script>

View File

@ -0,0 +1,39 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Praveen
--%>
<%
java.util.Calendar c = java.util.Calendar.getInstance();
int curYear = c.get(java.util.Calendar.YEAR);
curYear = curYear - 57;
%>
<%
for(int i=0;i<=57;i++)
{
%>
<html:option value="<%=String.valueOf(curYear + i)%>"><%=curYear + i%></html:option>
<%
}
%>

View File

@ -0,0 +1,36 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Praveen
--%>
<%
java.util.Calendar c = java.util.Calendar.getInstance();
int curYear = c.get(java.util.Calendar.YEAR);
%>
<html:option value="<%=String.valueOf(curYear-1)%>"><%=curYear-1%></html:option>
<html:option value="<%=String.valueOf(curYear)%>"><%=curYear%></html:option>
<html:option value="<%=String.valueOf(curYear+1)%>"><%=curYear+1%></html:option>
<html:option value="<%=String.valueOf(curYear+2)%>"><%=curYear+2%></html:option>
<html:option value="<%=String.valueOf(curYear+3)%>"><%=curYear+3%></html:option>
<html:option value="<%=String.valueOf(curYear+4)%>"><%=curYear+4%></html:option>
<html:option value="<%=String.valueOf(curYear+5)%>"><%=curYear+5%></html:option>

View File

@ -0,0 +1,126 @@
<!-- webstoreInvoice.jsp -->
<%@ page import="org.posterita.user.*" %>
<%@ page import="org.posterita.Constants" %>
<%@ page import="org.posterita.struts.stock.StockAction" %>
<%@ page import="org.posterita.beans.ProductBean" %>
<%@ page import="org.posterita.beans.OrderLineBean" %>
<%@ taglib uri="/WEB-INF/fmt.tld" prefix="fmt" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/dcs.tld" prefix="dcs" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<bean:define id="title">Invoice</bean:define>
<%@ include file="/jsp/include/posHeader.jsp" %>
<%@ include file="/jsp/include/errors.jsp" %>
<div align="right">
<a href="javascript:showInvoiceDocumentPDF(<c:out value='${minvoice._ID}'/>);">
<img style="cursor:pointer" src="images/ico_printer.gif" border="0"/>
</a>
</div>
<table width="100%" border="0" cellspacing="0" class="orderheader">
<bean:define id="currSymbole" name="<%= Constants.CURRENCY_SYMBOLE %>"/>
<tr>
<td colspan="2">
Order Ref No:
<a href="ViewPOSOrderAction.do?action=viewPOSOrders&orderId=<c:out value="${morder._ID}"/>">
<c:out value="${morder.documentNo}"/>
</a>
<br>
Invoice Ref No: <bean:write name="<%=Constants.MINVOICE%>" property="c_Invoice_ID"/>
<br>
Doc Status: <dcs:orderStatus name="<%=Constants.MINVOICE%>" property="docStatus"/>
</td>
</tr>
</table>
</td>
</tr>
<tr class="white">
<td valign="top">
<div class="space"></div>
<table class="cart">
<tr>
<th align="left" width="60%">Name</th>
<th align="right">Qty</th>
<th align="right">Price</th>
<th align="right">VAT</th>
<th align="right">Total</th>
</tr>
<logic:iterate indexId="count" name="<%=Constants.MINVOICE_LINES_COLLECTION%>" id="element" type="org.posterita.beans.WebInvoiceLineBean">
<%
String styleClass = "label";
if ((count.intValue()%2) != 0)
styleClass = "contentname";
%>
<tr>
<td class="<%=styleClass%>">
<bean:write name="element" property="description"/>
</td>
<td class="<%=styleClass%>" align="right" >
<bean:write name="element" property="qtyOrdered"/>
</td>
<td class="<%=styleClass%>" align="right" >
<fmt:formatNumber value='${element.lineNetAmt}' type="currency" currencySymbol=""/>
</td>
<td class="<%=styleClass%>" align="right" >
<fmt:formatNumber value='${element.taxAmt}' maxFractionDigits="2" type="currency" currencySymbol=""/>
</td>
<td class="<%=styleClass%>" align="right" >
<fmt:formatNumber value='${element.lineTotalAmt}' maxFractionDigits="2" type="currency" currencySymbol=""/>
</td>
<logic:equal name="element" property="isInvoiced" value="false">
<td class="<%=styleClass%>">
<html:checkbox property="checkBox" value="<%=element.getOrderLineId().toString()%>"/>
</td>
</logic:equal>
</tr>
</logic:iterate>
<tr>
<td class="total" colspan="2">
<bean:message key="orderView.orderPriceDetails.orderTotal"/>
</td>
<td class="total" align="right" >
<fmt:formatNumber value='${totalLines}'type="currency" currencySymbol=""/>
</td>
<td class="total" align="right" >
<fmt:formatNumber value='${invoiceTax}' type="currency" currencySymbol=""/>
</td>
<td class="total" align="right" >
<fmt:formatNumber value='${grandTotal}'type="currency" currencySymbol='${currSymbole}'/>
</td>
</tr>
</table>
</td>
</tr>
</table>
<%@ include file="/jsp/include/posFooter.jsp" %>

View File

@ -0,0 +1,79 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Praveen
--%>
<%@ page import="org.posterita.Constants" %>
<%@ page import="org.posterita.user.*" %>
<%@ page import="org.posterita.beans.OrgBean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<tiles:insert page="/jsp/include/simpleHeader.jsp">
<tiles:put name="title"><bean:message key="login.home.title"/></tiles:put>
</tiles:insert>
<td colspan="1" bgcolor="#FFFFFF">
<h2><bean:message key="login.choose.title"/></h2>
<table width="300" align="center" cellpadding="5" cellspacing="0" cols="2">
<tr>
<td colspan="1" valign="top">
<table width="100%" border="0" cellpadding="5" cellspacing="0">
<logic:iterate indexId="count" id="element" name="<%=Constants.ORGS%>" type="org.posterita.beans.OrgBean">
<tr>
<td align="center" valign="top">
<a href="<%="LoginOrgAction.do?action=chooseOrg&orgID=" + element.getOrgID()%>" border="0">
<%=element.getDealerName()%>
</a>
</td>
</tr>
</logic:iterate>
</table>
</td>
</tr>
</table>
</td>
<%@ include file="/jsp/include/tablebottom.jsp" %>
</td>
</tr>
</table>
</td>
<%@ include file="/jsp/include/footer.jsp" %>

View File

@ -0,0 +1,156 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Ashley
--%>
<!-- chooseApplication.jsp -->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ page import="org.posterita.Constants" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<title>Welcome to POSterita</title>
<script src="js/enableButton.js"></script>
<link rel="shortcut icon" href="images/posterita.jpg" type="image/jpg" />
<link type="text/css" href="css/common.jsp" rel="stylesheet">
<link type="text/css" href="css/newPOS.jsp" rel="stylesheet">
</head>
<body>
<div id="keyboard"></div>
<center>
<table cellspacing="0">
<tr>
<!--
<td style="width:150px;border:solid 1px #000000">
&nbsp;
</td>
-->
<td>
<div class="main" align="center">
<!-- start of header layout -->
<div class="header">
<table width="100%" class="layout">
<tr>
<td class="headerLogo" align="right" valign="bottom">
<font class="redcolor">
</font>
</td>
</tr>
</table>
</div>
<div class="menu">
<table width="100%" class="topmenu">
<tr>
<td>
<font class="title">
Posterita Applications
</font>
</td>
</tr>
</table>
</div>
<div class="content">
<table width="100%" class="layout">
<tr>
<td>
<table width="778" border="0" cellspacing="0" cellpadding="0" align="center" valign="center">
<tr>
<td>
<%@ include file="/jsp/include/errors.jsp" %>
</td>
</tr>
<tr>
<td class="main">
<table align="center">
<tr>
<td width="400px">
<Fieldset>
<legend><font class="title">POS</font></legend>
<table width="100%" border="0" class="display">
<logic:present name="<%=Constants.WEB_APPLICATIONS%>">
<logic:iterate id="app" name="<%=Constants.WEB_APPLICATIONS%>" indexId="count">
<logic:equal name="app" property="applicationType" value="<%= Constants.APP_POS%>">
<tr>
<td class="submenu">
<li class="submenu">
<html:link href="SetApplicationParametersAction.do?action=setApplicationParameters" paramName="app" paramId="applicationName" paramProperty="applicationWebContext" styleClass="submenu">
<bean:write name="app" property="applicationName"/>
</html:link>
</li>
</td>
</tr>
</logic:equal>
</logic:iterate>
</logic:present>
</table>
</Fieldset>
</td>
<td width="400px" valign="top">
<fieldset>
<legend><font class="title">Webstore</font></legend>
<table width="100%" border="0" class="display">
<logic:present name="<%=Constants.WEB_APPLICATIONS%>">
<logic:iterate id="app" name="<%=Constants.WEB_APPLICATIONS%>">
<logic:equal name="app" property="applicationType" value="<%= Constants.APP_WEBSTORE%>">
<tr>
<td>
<li class="submenu">
<html:link href="SetApplicationParametersAction.do?action=setApplicationParameters" paramName="app" paramId="applicationName" paramProperty="applicationWebContext" styleClass="submenu">
<bean:write name="app" property="applicationName"/>
</html:link>
</li>
</td>
</tr>
</logic:equal>
</logic:iterate>
</logic:present>
</table>
</fieldset>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>

View File

@ -0,0 +1,136 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Praveen
--%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<tiles:insert page="/jsp/include/simpleHeader.jsp">
<tiles:put name="title"><bean:message key="login.home.title"/></tiles:put>
</tiles:insert>
<td colspan="1" bgcolor="#FFFFFF">
<table width="324" align="center" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="center">
<h1>
<bean:message key="login.home.title.part1"/>
</h1>
</td>
</tr>
<tr>
<td align="center">
<h1>
<bean:message key="login.home.title.part2"/>
</h1>
</td>
</tr>
</table>
<table width="324" align="center" cellpadding="0" cellspacing="0" border="0">
<tr>
<td valign="top">
<table width="100%" border="0" cellpadding="5" cellspacing="0">
<tr>
<td align="center">
<font class="darkgray">
Please choose an Organisation and a Role
</font>
</td>
</tr>
<tr>
<td valign="top" class="boldgraysmall">
<%@ include file="/jsp/include/errors.jsp" %>
<html:form action="/ChooseRoleAction">
<html:hidden property="action" value="chooseRole"/>
<table width="270" align="center" cellpadding="3" cellspacing="0" border="0" bgcolor="#EFEFEF">
<tr>
<td colspan="2" align="center">
&nbsp;
</td>
</tr>
<tr>
<td class="bolddarkgray" align="right" width="210">Organisation</td>
<td align="left">
<html:select property="orgId" onchange="setAction(this.form,'initChooseRole')" style="width:150px">
<html:options collection="<%= org.posterita.Constants.ACCESSIBLE_ORGS %>" property="key" labelProperty="name"/>
</html:select>
</td>
</tr>
<tr>
<td class="bolddarkgray" align="right">Role</td>
<td align="left">
<html:select property="roleId" onchange="setAction(this.form,'initChooseRole')" style="width:150px">
<html:options collection="<%= org.posterita.Constants.ASSIGNED_ROLES %>" property="key" labelProperty="name"/>
</html:select>
</td>
</tr>
<tr>
<td colspan="2" align="right">
<html:submit styleClass="button">
<bean:message key="login.home.loginButton"/>
</html:submit>
</td>
</tr>
</table>
</html:form>
</td>
</tr>
<tr>
<td align="right">
<html:link href="LoginForgot.do">
<bean:message key="login.home.loginForgot"/>
</html:link>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<%@ include file="/jsp/include/tablebottom.jsp" %>
</td>
</tr>
</table>
</td>
<%@ include file="/jsp/include/footer.jsp" %>

View File

@ -0,0 +1,119 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Praveen
--%>
<%@ page import="org.posterita.Constants" %>
<%@ page import="org.posterita.user.*" %>
<%@ page import="org.posterita.beans.OrgUsersBean"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<tiles:insert page="/jsp/include/simpleHeader.jsp">
<tiles:put name="title"><bean:message key="login.home.title"/></tiles:put>
</tiles:insert>
<td colspan="1" bgcolor="#FFFFFF">
<h2>
<bean:message key="login.choose.title"/>
</h2>
<table cellspacing="0" cellpadding="0" width="100%">
<logic:iterate id="element" indexId="count" name="<%=Constants.ORG_USERS%>" type="org.posterita.beans.OrgUsersBean">
<%
if ((count.intValue()%4) == 0)
{
%>
<tr>
<%
}
%>
<td valign="top">
<table cellspacing="0" cellpadding="0">
<tr>
<td>
<B><bean:write name="element" property="orgName"/></B>
<br>
</td>
</tr>
<tr>
<td>
<!--<ul>-->
<logic:iterate id="user" collection="<%=element.getOrgUsers()%>" type="org.compiere.model.MUser">
<!--<li>-->
&nbsp;&nbsp;&nbsp;&nbsp;<html:link href="<%="LoginUserAction.do?action=loginUser&userId=" + user.get_ID()%>" styleClass="submenu">
<bean:write name="user" property="name"/>
</html:link>
<br/>
<!--</li>-->
</logic:iterate>
<!--</ul>-->
</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
</table>
</td>
<%
if ((count.intValue()%4-4) == 0)
{
%>
</tr>
<%
}
%>
</logic:iterate>
</table>
</td>
<%@ include file="/jsp/include/tablebottom.jsp" %>
</td>
</tr>
</table>
</td>
<%@ include file="/jsp/include/footer.jsp" %>

View File

@ -0,0 +1,103 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Vishee
--%>
<!--forgot.jsp-->
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ page import="org.posterita.Constants" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Welcome to Posterita</title>
<link type="text/css" href="css/newPOS.jsp" rel="stylesheet">
<link type="text/css" href="css/common.jsp" rel="stylesheet">
<link rel="shortcut icon" href="images/posterita.jpg" type="image/jpg" />
</head>
<body>
<table width="100%" height="100%">
<tr><td align="center" valign="middle">
<table class="login" align="center" cellpadding="0" cellspacing="0">
<tr>
<td class="loginHeader">
&nbsp;
</td>
</tr>
<tr>
<td height="330px" bgcolor="#CCCCCC" valign="middle" align="center">
<table width="100%" border="0" cellpadding="5" cellspacing="0">
<tr>
<td valign="top">
<table width="400" align="center" cellpadding="5" cellspacing="0">
<tr>
<td valig2007 Posterita Ltdn="top">
<div class="nb">
<logic:messagesPresent>
<ul>
<html:messages id="error">
<li><bean:write name="error"/></li>
</html:messages>
</ul>
</logic:messagesPresent>
</div>
</td>
</tr>
</table>
<html:form action="/LoginActionForgotPOS">
<html:hidden property="action" value="<%=Constants.PASSWORD%>"/>
<table class="loginbox" width="420" align="center" cellpadding="5" cellspacing="0" cols="2">
<tr>
<td colspan="2"><br><bean:message key="login.forgot.forgotPassword"/><br><br></td>
</tr>
<tr>
<td colspan="1" align="right" width="171"><bean:message key="login.forgot.username"/></td>
<td colspan="1" align="left"><html:text property="username"/></td>
</tr>
<tr>
<td align="center">&nbsp;</td>
<td>
<html:image property="btn" src="images/pos/buttons/button_submit.gif" onclick="submit()"/>
</td>
</tr>
</table>
</html:form>
</td>
</tr>
</table>
</td>
</tr>
<td>
<div class="copyright">All content &copy;2007 Posterita Ltd</div>
</td>
</table>
</table>
</body>
</html>

View File

@ -0,0 +1,87 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Vishee
--%>
<%@ page import="org.posterita.Constants" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<tiles:insert page="/jsp/include/simpleHeader.jsp">
<tiles:put name="title"><bean:message key="login.home.title"/></tiles:put>
</tiles:insert>
<td colspan="1" bgcolor="#FFFFFF">
<h2><bean:message key="login.home.title"/></h2>
<table width="420" align="center" cellpadding="5" border="0" cellspacing="0" cols="2">
<tr>
<td colspan="1" valign="top">
<table width="100%" border="0" cellpadding="5" cellspacing="0">
<tr>
<td valign="top">
<table width="400" align="center" cellpadding="5" cellspacing="0">
<tr>
<td valign="top">
<div class="nb">
<logic:messagesPresent>
<ul>
<html:messages id="error">
<li><bean:write name="error"/></li>
</html:messages>
</ul>
</logic:messagesPresent>
</div>
</td>
</tr>
</table>
<html:form action="/LoginActionDefault">
<html:hidden property="action" value="<%=Constants.PASSWORD%>"/>
<table class="loginbox" width="420" align="center" cellpadding="5" cellspacing="0" cols="2">
<tr>
<td colspan="2"><br><bean:message key="login.forgot.forgotPassword"/><br><br></td>
</tr>
<tr>
<td colspan="1" align="right" width="171"><bean:message key="login.forgot.username"/></td>
<td colspan="1" align="left"><html:text property="username"/></td>
</tr>
<tr>
<td align="center">&nbsp;</td>
<td align="left">
<html:submit styleClass="buttonwide"><bean:message key="login.forgot.sendPassword"/></html:submit>
<br><br>
</td>
</tr>
</table>
</html:form>
</td>
</tr>
</table>
</td>
</tr>
</table>
<%@ include file="/jsp/include/footerTableBottom.jsp" %>

View File

@ -0,0 +1,100 @@
<%--
* Product: Posterita Web-Based POS and Adempiere Plugin
* Copyright (C) 2007 Posterita Ltd
* This file is part of POSterita
*
* POSterita is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @author Vishee
--%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<tiles:insert page="/jsp/include/simpleHeader.jsp">
<tiles:put name="title"><bean:message key="login.home.title"/></tiles:put>
</tiles:insert>
<td colspan="1" bgcolor="#FFFFFF">
<table width="324" align="center" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="center">
<h1>
<bean:message key="login.home.title.part1"/>
</h1>
</td>
</tr>
<tr>
<td align="center">
<h1>
<bean:message key="login.home.title.part2"/>
</h1>
</td>
</tr>
</table>
<table width="324" align="center" cellpadding="0" cellspacing="0" border="0">
<tr>
<td valign="top">
<table width="100%" border="0" cellpadding="5" cellspacing="0">
<tr>
<td valign="top" class="boldgraysmall">
<%@ include file="/jsp/include/errors.jsp" %>
<html:form action="/LoginAction" focus="username">
<html:hidden property="action" value="success"/>
<%@ include file="/jsp/login/loginForm.jsp" %>
</html:form>
</td>
</tr>
<tr>
<td align="right">
<html:link href="LoginForgot.do">
<bean:message key="login.home.loginForgot"/>
</html:link>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<%@ include file="/jsp/include/tablebottom.jsp" %>
</td>
</tr>
</table>
</td>
<%@ include file="/jsp/include/footer.jsp" %>

Some files were not shown because too many files have changed in this diff Show More