diff options
author | Henri Herscher <henri@oreka.org> | 2005-10-20 13:40:58 +0000 |
---|---|---|
committer | Henri Herscher <henri@oreka.org> | 2005-10-20 13:40:58 +0000 |
commit | 7e1d63dd9fd149e4934bf77095c8610fac786b04 (patch) | |
tree | 5fe486a1b0300c3b84fb559107a868e5cc2c95da /orkweb | |
parent | 467768fc956fc3e5a253373f26c71c681b31b6b8 (diff) |
First checkin
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@2 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkweb')
25 files changed, 996 insertions, 0 deletions
diff --git a/orkweb/.classpath b/orkweb/.classpath new file mode 100644 index 0000000..9093aef --- /dev/null +++ b/orkweb/.classpath @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="src" path="src"/> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> + <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/hibernate-3.1beta1"/> + <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/Tapestry-4.9-beta-9"/> + <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/apache-commons"/> + <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/servlet"/> + <classpathentry kind="src" path="/orkbasej"/> + <classpathentry kind="output" path="context/WEB-INF/classes"/> +</classpath> diff --git a/orkweb/.project b/orkweb/.project new file mode 100644 index 0000000..56a2e2b --- /dev/null +++ b/orkweb/.project @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>orkweb</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.jdt.core.javanature</nature> + </natures> +</projectDescription> diff --git a/orkweb/context/WEB-INF/Home.html b/orkweb/context/WEB-INF/Home.html new file mode 100644 index 0000000..e2ff6d5 --- /dev/null +++ b/orkweb/context/WEB-INF/Home.html @@ -0,0 +1,43 @@ +<html jwcid="@Shell" stylesheet="ognl:assets.mystyle" title="Welcome to OrkWeb" > +<link jwcid="@If" condition="false" href="orekastyle.css" rel="stylesheet" type="text/css"/> + +<body> + +<table id="container"> + <tr> + <td colspan="2"><span jwcid="@my:MainMenu" pageName="Home">Here goes the main menu</span></td> + </tr> + <tr> + <td class="criteria"> + <form jwcid="@Form"> + <table class="inputform"> + <tr> + <td> + <big>Please login<big> + </td> + </tr> + <tr> + <td> + <font color="red"> + <span jwcid="@Insert" value="ognl:errorMessage">Error Message</span> + </font> + </td> + </tr> + <tr> + <td>Username</td> + <td><input jwcid="@TextField" value="ognl:username" translator="translator:string"/></td> + </tr> + <tr> + <td>Password</td> + <td><input jwcid="@TextField" value="ognl:password" translator="translator:string" hidden="true"/></td> + </tr> + <tr> + <td><input type="submit" jwcid="@Submit" action="ognl:listeners.formSubmit" value="Login"/></td> + </tr> + </table> + </form> + </td> + </tr> +</table> +</body> +</html>
\ No newline at end of file diff --git a/orkweb/context/WEB-INF/Home.page b/orkweb/context/WEB-INF/Home.page new file mode 100644 index 0000000..93a41cd --- /dev/null +++ b/orkweb/context/WEB-INF/Home.page @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE page-specification + PUBLIC "-//Apache Software Foundation//Tapestry Specification 3.0//EN" + "http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd"> +<!-- generated by Spindle, http://spindle.sourceforge.net --> + +<page-specification class="net.sf.oreka.pages.Home"> + <description><![CDATA[ add a description ]]></description> + + <external-asset name="mystyle" URL="./css/orekastyle.css" /> +</page-specification> diff --git a/orkweb/context/WEB-INF/RecSegments.html b/orkweb/context/WEB-INF/RecSegments.html new file mode 100644 index 0000000..cf4cf42 --- /dev/null +++ b/orkweb/context/WEB-INF/RecSegments.html @@ -0,0 +1,154 @@ +<html jwcid="@Shell" stylesheet="ognl:assets.mystyle" title="Browse segments" > +<link jwcid="@If" condition="false" href="orekastyle.css" rel="stylesheet" type="text/css"/> +<body jwcid="@Body"> +<table id="container"> + <tr> + <td colspan="2"><span jwcid="@my:MainMenu" pageName="RecSegments">Here goes the main menu</span></td> + </tr> + <tr> + <td class="criteria"> + <form jwcid="@Form" listener="ognl:listeners.formSubmit"> + <table cellpadding="4" class="inputform"> + <span jwcid="@If" condition="ognl:recSegmentFilter.minDurationError != null"> + <tr> + <td class="error"><span jwcid="@Insert" value="ognl:recSegmentFilter.minDurationError">error in this field</span></td> + </tr> + </span> + <tr> + <td>Min Duration</td> + <td><input jwcid="@TextField" value="ognl:recSegmentFilter.minDuration" translator="translator:string" size="12" class="ognl:recSegmentFilter.minDurationError==null ? recSegmentFilter.okStyle : recSegmentFilter.errorStyle"/></td> + </tr> + <span jwcid="@If" condition="ognl:recSegmentFilter.maxDurationError != null"> + <tr> + <td class="error"><span jwcid="@Insert" value="ognl:recSegmentFilter.maxDurationError">error in this field</span></td> + </tr> + </span> + <tr> + <td>Max Duration</td> + <td><input jwcid="@TextField" value="ognl:recSegmentFilter.maxDuration" translator="translator:string" size="12" class="ognl:recSegmentFilter.maxDurationError==null ? recSegmentFilter.okStyle : recSegmentFilter.errorStyle"/></td> + </tr> + <tr jwcid="@If" condition="ognl:recSegmentFilter.localPartyError != null"> + <td class="error"><span jwcid="@Insert" value="ognl:recSegmentFilter.localPartyError">error in this field</span></td> + </tr> + <tr> + <td><span key="LocalParty">Local Party</span></td> + <td><input jwcid="@TextField" value="ognl:recSegmentFilter.localParty" translator="translator:string" size="12" class="ognl:recSegmentFilter.localPartyError==null ? recSegmentFilter.okStyle : recSegmentFilter.errorStyle"/></td> + </tr> + <tr jwcid="@If" condition="ognl:recSegmentFilter.remotePartyError != null"> + <td class="error"><span jwcid="@Insert" value="ognl:recSegmentFilter.remotePartyError">error in this field</span></td> + </tr> + <tr> + <td><span key="RemoteParty">Remote Party</span></td> + <td><input jwcid="@TextField" value="ognl:recSegmentFilter.remoteParty" translator="translator:string" size="12" class="ognl:recSegmentFilter.remotePartyError==null ? recSegmentFilter.okStyle : recSegmentFilter.errorStyle"/></td> + </tr> + <tr> + <td>Start Date</td> + <td><span jwcid="@DatePicker" value="ognl:recSegmentFilter.startDate" translator="translator:date,pattern=yyyy-MM-dd HH:mm:ss" disabled="false" icon="asset:cal"/></td> + </tr> + <tr> + <td>End Date</td> + <td><span jwcid="@DatePicker" value="ognl:recSegmentFilter.endDate" translator="translator:date,pattern=yyyy-MM-dd HH:mm:ss" icon="asset:cal"/></td> + </tr> + <tr> + <td colspan="2"> + <span jwcid="direction@RadioGroup" selected="ognl:recSegmentFilter.direction" displayName="Direction" validators="validators:required"> + <!--<input type="radio" jwcid="@Radio" value="ognl:@net.sf.oreka.Direction@UNKN"> Unkn </input>--> + Outgoing <input type="radio" jwcid="@Radio" value="ognl:@net.sf.oreka.Direction@OUT"> Out </input> + Incoming<input type="radio" jwcid="@Radio" value="ognl:@net.sf.oreka.Direction@IN"> In </input> + Both <input type="radio" jwcid="@Radio" value="ognl:@net.sf.oreka.Direction@ALL"> Both </input> + </span> + </td> + </tr> + <tr align="Left"> + <td colspan="2"><input type="submit" value="Search"/></td> + </tr> + <tr> + <td colspan="2"> + + <script language="JavaScript"> + function play (audioFilename) + { + document.all.player.autoStart = true; + document.all.player.fileName = audioFilename; + } + </script> + + <OBJECT ID="player" + CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" + CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf. + cab#Version=5,1,52,701" + STANDBY="Loading Microsoft Windows Media Player components..." + TYPE="application/x-oleobject" + WIDTH=200 HEIGHT=50 > + <PARAM NAME="fileName" VALUE=""> + <PARAM NAME="animationatStart" VALUE="false"> + <PARAM NAME="transparentatStart" VALUE="true"> + <PARAM NAME="showControls" VALUE="true"> + <PARAM NAME="ShowStatusBar" VALUE="true"> + <PARAM NAME="ShowDisplay" VALUE="false"> + <PARAM NAME="CurrentPosition" VALUE="0"> + <PARAM NAME="autoStart" VALUE="true"> + </OBJECT> + </td> + </tr> + </table> + </form> + </td> + <!-- *** Results table *** --> + <span jwcid="@If" condition="ognl:!items.isEmpty"> + <td class="results"> + <table> + <tr> + <td><span jwcid="mytablepaging">Paging goes here</span></td> + </tr> + <tr> + <td> + <table> + <tr> + <td> + <table> + <span jwcid="mytableheader"></span> + <tr jwcid="segments" class="even"> + <td><span jwcid="@Insert" value="ognl:item.recSegment.timestamp">timestamp</span></td> + <td><span jwcid="@Insert" value="ognl:item.recSegment.duration">duration</span></td> + <td><span jwcid="@Insert" value="ognl:item.recSegment.localParty">local party</span></td> + <td> + <!--<span jwcid="@Insert" value="ognl:item.recSegment.direction">direction</span>--> + <span jwcid="@If" condition="ognl:item.recSegment.direction == @net.sf.oreka.Direction@IN">In</span> + <span jwcid="@If" condition="ognl:item.recSegment.direction == @net.sf.oreka.Direction@OUT">Out</span> + </td> + <td><span jwcid="@Insert" value="ognl:item.recSegment.remoteParty">remote party</span></td> + <td> + <span jwcid="@If" condition="ognl:item.recSegment.recTape != null"> + <span jwcid="@Insert" value="ognl:item.recSegment.recTape.id">tape id</span> + </span> + </td> + <td> + <span jwcid="@If" condition="ognl:item.recSegment.recTape != null"> + <a jwcid="@Any" href="ognl:item.recSegment.recTape.playUrl"><img jwcid="@Image" image="asset:play" alt="Play"/></a> + </span> + </td> + </tr> + </table> + </td> + </tr> + </table> + </td> + </tr> + <tr> + <td><span jwcid="mytablepaging2">Paging goes here</span></td> + </tr> + </table> + </td> + </span> + <span jwcid="@If" condition="ognl:items.isEmpty"> + <td valign="top"> + <span key="NoResults">No results</span> + </td> + </span> + </tr> +</table> +<!--<img jwcid="@Image" image="ognl:assets.myimage" />--> + +</body> +</html>
\ No newline at end of file diff --git a/orkweb/context/WEB-INF/RecSegments.page b/orkweb/context/WEB-INF/RecSegments.page new file mode 100644 index 0000000..5894409 --- /dev/null +++ b/orkweb/context/WEB-INF/RecSegments.page @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE page-specification + PUBLIC "-//Apache Software Foundation//Tapestry Specification 3.0//EN" + "http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd"> +<!-- generated by Spindle, http://spindle.sourceforge.net --> + +<page-specification class="net.sf.oreka.pages.RecSegmentsPage"> + <description><![CDATA[ add a description ]]></description> + + <property-specification name="item" type="net.sf.oreka.services.RecSegmentResult"/> + <property-specification name="items" type="java.util.List"> + new java.util.ArrayList() + </property-specification> + <property-specification name="recSegmentFilter" type="net.sf.oreka.services.RecSegmentFilter" persistent="yes"> + new net.sf.oreka.services.RecSegmentFilter() + </property-specification> + <property-specification name="tableState" type="net.sf.oreka.tapestry.TableState" persistent="yes"> + new net.sf.oreka.tapestry.TableState() + </property-specification> + + <!--<context-asset name="myimage" path="/images/Czech.gif"/>--> + <external-asset name="mystyle" URL="./css/orekastyle.css" /> + <context-asset name="play" path="/images/icon_play.gif"/> + <context-asset name="cal" path="/images/icon_calendar.gif"/> + + <bean name="rowStyle" class="org.apache.tapestry.bean.EvenOdd"/> + + <component id="segments" type="Foreach"> + <binding name="source" expression="items"/> + <binding name="value" expression="item"/> + <static-binding name="element" value="tr"/> + <binding name="class" expression="beans.rowStyle.next"/> + </component> + + <component id="mytableheader" type="my:TableHeader"> + <static-binding name="columnsCSV" value="seg.timestamp, seg.duration, seg.localParty, seg.direction, seg.remoteParty, !tape.id"/> + <binding name="tableState" expression="tableState"/> + </component> + + <component id="mytablepaging" type="my:TablePaging"> + <binding name="tableState" expression="tableState"/> + </component> + <component id="mytablepaging2" copy-of="mytablepaging"/> +</page-specification>
\ No newline at end of file diff --git a/orkweb/context/WEB-INF/RecSegments.properties b/orkweb/context/WEB-INF/RecSegments.properties new file mode 100644 index 0000000..a8606db --- /dev/null +++ b/orkweb/context/WEB-INF/RecSegments.properties @@ -0,0 +1,18 @@ + +Duration=Duration +LocalParty=Local Party +RemoteParty=Remote Party + +seg.timestamp=Time +seg.direction=Direction +seg.duration=Duration +seg.localParty=Local Party +seg.remoteParty=Remote Party +tape.id=Tape Id + +firstPage=<< +lastPage=>> +previousPage=< +nextPage=> + +NoResults=There was no results
\ No newline at end of file diff --git a/orkweb/context/WEB-INF/TestComponent.html b/orkweb/context/WEB-INF/TestComponent.html new file mode 100644 index 0000000..e295913 --- /dev/null +++ b/orkweb/context/WEB-INF/TestComponent.html @@ -0,0 +1,10 @@ +<table> + <tr> + <td> + <span jwcid="@Conditional" condition="ognl:highlight">*</span> + <a jwcid="@DirectLink" listener="ognl:listeners.myAction"> + goHome + </a> + </td> + </tr> +</table>
\ No newline at end of file diff --git a/orkweb/context/WEB-INF/orkweb.application b/orkweb/context/WEB-INF/orkweb.application new file mode 100644 index 0000000..3a3b934 --- /dev/null +++ b/orkweb/context/WEB-INF/orkweb.application @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE application + PUBLIC "-//Apache Software Foundation//Tapestry Specification 4.0//EN" + "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd"> + +<application name="orkweb" engine-class="org.apache.tapestry.engine.BaseEngine" > + + <description><![CDATA[ add a description ]]></description> + + <!--<page name="Home" specification-path="Home.page"/>--> + + <!--<meta key="org.apache.tapestry.page-class-packages" value="net.sf.oreka.pages"/> --> + <meta key="org.apache.tapestry.component-class-packages" value="net.sf.oreka.tcomponents"/> + + <library id="contrib" specification-path="/org/apache/tapestry/contrib/Contrib.library"/> + <library id="my" specification-path="/net/sf/oreka/tapestry/my.library"/> + + <!--<extension name="Startup" class="net.sf.oreka.services.Startup" immediate="yes" />--> +</application> diff --git a/orkweb/context/WEB-INF/web.xml b/orkweb/context/WEB-INF/web.xml new file mode 100644 index 0000000..7fd4fa3 --- /dev/null +++ b/orkweb/context/WEB-INF/web.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE web-app + PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" + "http://java.sun.com/dtd/web-app_2_3.dtd"> +<!-- generated by Spindle, http://spindle.sourceforge.net --> + + +<web-app> + <display-name>orkweb</display-name> + <context-param> + <param-name>Log4jConfigFile</param-name> + <param-value>c:/oreka/orkweb/log4j.properties</param-value> + </context-param> + <context-param> + <param-name>HibernateConfigFile</param-name> + <param-value>c:/oreka/orkweb/mysql.hbm.xml</param-value> + </context-param> + <context-param> + <param-name>Debug</param-name> + <param-value>true</param-value> + </context-param> + <filter> + <filter-name>redirect</filter-name> + <filter-class>org.apache.tapestry.RedirectFilter</filter-class> + </filter> + <filter-mapping> + <filter-name>redirect</filter-name> + <url-pattern>/</url-pattern> + </filter-mapping> + <listener> + <listener-class>net.sf.oreka.orkweb.ContextListener</listener-class> + </listener> + <servlet> + <servlet-name>orkweb</servlet-name> + <servlet-class>org.apache.tapestry.ApplicationServlet</servlet-class> + <load-on-startup>1</load-on-startup> + </servlet> + <servlet-mapping> + <servlet-name>orkweb</servlet-name> + <url-pattern>/app</url-pattern> + </servlet-mapping> +</web-app> diff --git a/orkweb/context/css/base.css b/orkweb/context/css/base.css new file mode 100644 index 0000000..499a858 --- /dev/null +++ b/orkweb/context/css/base.css @@ -0,0 +1,394 @@ + +td.navigation { + color: gray; +} + +td.navigation a { +} + +BODY { + SCROLLBAR-FACE-COLOR: #448BF5; + SCROLLBAR-HIGHLIGHT-COLOR: #448BF5; + SCROLLBAR-SHADOW-COLOR: #0066CC; + SCROLLBAR-3DLIGHT-COLOR: #33CCFF; + SCROLLBAR-ARROW-COLOR: #66CCFF; + SCROLLBAR-TRACK-COLOR: #99CCFF; + SCROLLBAR-DARKSHADOW-COLOR: #0066CC; + font-family : Verdana; + font-size: 8pt; +} + +A { + color: #0071E1; + text-decoration: none; +} + +A:hover { + color: #848484; + text-decoration: underline; +} + +TD { + font-family : Verdana; + font-size: 8pt; +} + +th, .th, th a { + font-family : Arial; + font-size: 10pt; + color: #ffffff; + background-color: #0073E7; + padding-left: 3; padding-right: 3; + font-weight: bold; +} + +th a:hover { + color: #ffffff; +} + +th.dayname { + font-size: 9pt; + font-weight: normal; +} + +td.weekend, tr.absence { + background-color: #FFE1E1; +} + +li.error { + color: red; +} + +td.topmenu { + color: #848484; + text-decoration: none; + FONT-SIZE: 9pt; + FONT-WEIGHT: bold; +} + + +td.topmenu a { + color: #0073E7; +} + +td.topmenu a:hover { + color: #848484; +} + +tr.odd td.noborder, tr.even td.noborder { + background-color: #ffffff; + padding-left: 0; padding-right: 0; +} + +tr.odd td, tr.even td, tr.header td { + padding-left: 4; padding-right: 4; +} + +tr.even { + background-color: #ffffff; +} + +tr.odd { + background-color: #eeeeee; +} + +tr.header { + background-color: #dddddd; +} + +.tdFrame { + background-color: #ffffff; + padding-left: 4; padding-right: 4; + border: 1px solid #eeeeee; +} + +.tdFrameRed { + background-color: #ffffff; + padding-left: 4; padding-right: 4; + border: 2px solid #ff0000; +} + +.tdCalendar1 { + color: #848484; + background-color: #ffffff; + text-decoration: none; + FONT-FAMILY: verdana; + FONT-SIZE: 12pt; + FONT-WEIGHT: bold; +} +.calendarEvent { + color: #000000; + font-family : Verdana; + font-size: 8pt; + text-decoration: none; +} +.calendarEvent:hover { + color: #000000; +} + + +td.label { + font-weight: bold; +} + +td.input { + +} + +td.readOnly { + border: 1px solid #dddddd; padding-left: 4; padding-right: 4; +} + +td.readOnly a { + font-weight: normal; +} + +td.filterLabel { + font-weight: bold; +} + + +H2 { + + font-family : Arial; + font-size: 14pt; + color:# 094E92; +} + +H3 { + font-family : Arial; + font-size: 12pt; + color: #094E92; +} + +H4 { + font-family : Arial; + font-size: 10pt; + color: #094E92; +} + +H5 { + font-family : Verdana, Arial; + font-size: 11px; + color: #094E92; +} + +a.menu { + color: white; + text-decoration: none; + FONT-FAMILY: verdana; + FONT-SIZE: 7pt; + FONT-WEIGHT: normal; +} + +a.menu:hover { + color: black; + text-decoration: underline; + FONT-FAMILY: verdana; + FONT-SIZE: 7pt; + FONT-WEIGHT: normal; +} + +a.g { + color: silver; + text-decoration: none; + +} + +a.g:hover { + color: black; + text-decoration: underline; + +} + +HR { + color: #0071E1; + height: 1pt; +} + +HR.gray { + color: #eeeeee; + height: 1pt; +} + +.male { + color : black; + font-family : Arial; + font-size: 8pt; +} + + +.malevs { + + color : silver; + font-family : Verdana; + font-size: 8pt; + +} + +.nadpis { + font-family : Arial; + font-size: 12pt; + color: #094E92; + font-weight : bold; +} + +.tickerstyle {font-family:"Arial"; font-size:11pt; color:#000000;} + +UL { + + font-family : Verdana; + font-size: 8pt; + +} + +.TDMezi {background: #EEEEEE;} + +LI { + + font-family : Verdana; + font-size: 8pt; + +} + +#box { +position:absolute; +visibility:hidden; +layer-background-color:silver } + +#bluebox { + background-color: #448BF5; + FONT-FAMILY: verdana; + FONT-SIZE: 7pt; + FONT-WEIGHT: normal; +} + +#mnubar { + FONT-FAMILY: verdana; + FONT-SIZE: 8pt; + FONT-WEIGHT: normal; +} + +INPUT { + font-family : Verdana; + font-size: 8pt; + color : Black; + background : #FFFFFF; +} + +INPUT.error { + background : #aaaaaa; +} + +INPUT.Button01 { + background-color:#448BF5; + border-style:1px; + font-family : Verdana; + font-size: 8pt; + color : White; +} + +SELECT.Button01 { + background-color:#448BF5; + border-style:1px; + font-family : Verdana; + font-size: 8pt; + color : White; +} + +OPTION.Button01 { + background-color:#448BF5; + border-style:1px; + font-family : Verdana; + font-size: 8pt; + color : White; +} + +.velke { + font-family : Arial; + font-size: 12pt; + color: #094E92; +} + +.barevneAtluste { + color: #094E92; + font-weight: bold; +} + +.Symboly { + + font-family : Symbol, SymbolPS; + font-size: 8pt; + +} + +li.PodMenuArrow { list-style-position: outside; list-style-image: url(../images/sipecka_smala.gif); } + +#Roztahly { + text-align: justify; +} + +TD.error { + font-weight: bold; + color: red; +} + +TD.TDHead { + border-bottom: 1px solid #0071E1; + border-top: 1px solid #0071E1; + font-weight: bold; +} + +TD.TDHeadFull { + border-bottom: 1px solid #0071E1; + border-top: 1px solid #0071E1; + border-right: 1px solid #0071E1; + border-left: 1px solid #0071E1; + font-weight: bold; +} + +TD.TDHeadFullRight { + border-bottom: 1px solid #0071E1; + border-top: 1px solid #0071E1; + border-right: 1px solid #0071E1; + font-weight: bold; +} + + +TD.TDHeadFullLeft { + border-bottom: 1px solid #0071E1; + border-top: 1px solid #0071E1; + border-left: 1px solid #0071E1; + font-weight: bold; +} + +TD.TDSeznam { + border-bottom: 1px solid #DBDBDB; +} + +TD.TDSeznamFull { + border-bottom: 1px solid #DBDBDB; + border-left: 1px solid #DBDBDB; + border-right: 1px solid #DBDBDB; +} + +TD.TDSeznamFullRight { + border-bottom: 1px solid #DBDBDB; + border-right: 1px solid #DBDBDB; +} + +TD.TDSeznamFullLeft { + border-bottom: 1px solid #DBDBDB; + border-left: 1px solid #DBDBDB; +} + + +span.Kod { + font-family: "Courier New", Courier, monospace; + font-size: 9px; + color: #094E92; +} + +TD.TDSeznamBarevny { + border-bottom: 1px solid #0071E1; +}
\ No newline at end of file diff --git a/orkweb/context/css/orekastyle.css b/orkweb/context/css/orekastyle.css new file mode 100644 index 0000000..343b65c --- /dev/null +++ b/orkweb/context/css/orekastyle.css @@ -0,0 +1,115 @@ +body { + margin: 0; padding: 0; + font-family: Arial, Helvetica, sans-serif; + font-size: 11px;} +img {border: 0;} + +#masthead {padding: 2px;} + +.menuContainer { + font-weight: bold; + border-bottom: 1px solid #000000; + border-top: 1px solid #000000; + background-color: #E6E6E6; + background-image: url(../images/menuback1.gif); + background-repeat: repeat-x; + padding: 0px; + margin: 0px; +} +.menubuttons { +} +.menubuttons td { + background-color: #E9E9E9; + text-align: center; + padding: 2px 8px; + border: 1px solid #000000; +} +.menubuttons td.on { + color: #FFFFFF; + background-color: #003366; + text-align: center; +} + +.menubuttons td.on a {color: #FFF;} + +.menubuttons a {display: block;} +.menubuttons a:link {color: #003366;} +.menubuttons a:visited {color: #003366;} +.menubuttons a:hover {color:#FFCC00;} + +.inputform { + padding: 0px; width: 350px; + /*border: 1px solid #000000;*/ +} +.inputform th { + text-align: right; +} + +.inputform td { + padding: 4px; font-weight: bold; +} + +.inputform input {font-weight: normal;} +.error { + font-size: 10px; + font-style: italic; + color: #FF0000; +} +.cursor { + background-color: white; + text-align: right; + padding-right: 0; +} + +.cursor div { + border-top: solid 2px #930512; + background-color: #FD0D24; + border-bottom: solid 2px #930512; + text-align: right; + color: white; + float: left; + padding-top: 0; + height: 1em; +} + +.bar { + background-color: white; + text-align: right; + padding-right: 0; +} + +.bar div { + border-top: solid 2px #03144B; + background-color: #0930AC; + border-bottom: solid 2px #03144B; + text-align: right; + color: white; + float: left; + padding-top: 0; + height: 1em; +} + +table#container { + border: 1px solid #000000; + padding: 0px; + margin: 0px; + width: 100%; + background-image:url(../images/bg_container.jpg); background-repeat: repeat-x; +} +table#container td {vertical-align: top;} +td.criteria {border: 1px solid #000; width: 350px; background-color: #FFF;} +td.results {border: 1px solid #000; background-color: #FFF;} +td.results table {width: 100%;} + +tr.header {font-weight: bold; background-color:#333333; color: #fff;} +tr.header td {padding: 4px;} +tr.header a:link {color: #FFF; text-decoration: none;} +tr.header a:visited {color: #FFF; text-decoration: none;} +tr.header a:hover {text-decoration: underline;} + +tr.even {background-color: #EAEAEA;} +tr.odd {background-color:#E0E0E0;} + +td.results table.paging {width: auto;} +.paging tr.odd {background-color:#FFFFFF;} +.paging tr.even {background-color:#FFFFFF;} diff --git a/orkweb/context/images/bg_container.gif b/orkweb/context/images/bg_container.gif Binary files differnew file mode 100644 index 0000000..63aa265 --- /dev/null +++ b/orkweb/context/images/bg_container.gif diff --git a/orkweb/context/images/bg_container.jpg b/orkweb/context/images/bg_container.jpg Binary files differnew file mode 100644 index 0000000..51657f1 --- /dev/null +++ b/orkweb/context/images/bg_container.jpg diff --git a/orkweb/context/images/icon_calendar.gif b/orkweb/context/images/icon_calendar.gif Binary files differnew file mode 100644 index 0000000..a0482f0 --- /dev/null +++ b/orkweb/context/images/icon_calendar.gif diff --git a/orkweb/context/images/icon_in.gif b/orkweb/context/images/icon_in.gif Binary files differnew file mode 100644 index 0000000..9f130e5 --- /dev/null +++ b/orkweb/context/images/icon_in.gif diff --git a/orkweb/context/images/icon_out.gif b/orkweb/context/images/icon_out.gif Binary files differnew file mode 100644 index 0000000..eeba975 --- /dev/null +++ b/orkweb/context/images/icon_out.gif diff --git a/orkweb/context/images/icon_pagefirst.gif b/orkweb/context/images/icon_pagefirst.gif Binary files differnew file mode 100644 index 0000000..327f0be --- /dev/null +++ b/orkweb/context/images/icon_pagefirst.gif diff --git a/orkweb/context/images/icon_pagelast.gif b/orkweb/context/images/icon_pagelast.gif Binary files differnew file mode 100644 index 0000000..560fb0a --- /dev/null +++ b/orkweb/context/images/icon_pagelast.gif diff --git a/orkweb/context/images/icon_pagenext.gif b/orkweb/context/images/icon_pagenext.gif Binary files differnew file mode 100644 index 0000000..7e3a275 --- /dev/null +++ b/orkweb/context/images/icon_pagenext.gif diff --git a/orkweb/context/images/icon_pageprev.gif b/orkweb/context/images/icon_pageprev.gif Binary files differnew file mode 100644 index 0000000..346a814 --- /dev/null +++ b/orkweb/context/images/icon_pageprev.gif diff --git a/orkweb/context/images/icon_play.gif b/orkweb/context/images/icon_play.gif Binary files differnew file mode 100644 index 0000000..1835148 --- /dev/null +++ b/orkweb/context/images/icon_play.gif diff --git a/orkweb/context/images/logofpo.gif b/orkweb/context/images/logofpo.gif Binary files differnew file mode 100644 index 0000000..5e50fa5 --- /dev/null +++ b/orkweb/context/images/logofpo.gif diff --git a/orkweb/context/images/menuback1.gif b/orkweb/context/images/menuback1.gif Binary files differnew file mode 100644 index 0000000..27847d1 --- /dev/null +++ b/orkweb/context/images/menuback1.gif diff --git a/orkweb/deploy-template.xml b/orkweb/deploy-template.xml new file mode 100644 index 0000000..343e65a --- /dev/null +++ b/orkweb/deploy-template.xml @@ -0,0 +1,118 @@ +<?xml version="1.0"?> +<project name="ServletDeploy" default="do_everything"> + <!-- + This ANT script does NOT compile the application, + we are relying on Eclipse to do all Java compilation. + This script merely deploys the application to Tomcat. + + You will need Tomcat manager running and working + login for Tomcat manager. To create a user for + Tomcat manager, edit the file + + <tomcat>\conf\tomcat-users.xml + + and add a line for the desired user, such as + + <user + username="username" + password="password" + fullName="Your Fullname" + roles="manager"/> + + If it is not already there, you may want a to add + the manager role above the user line... such as + + <role rolename="manager"/> + + Using the manager to install/remove applications keeps + you from having to stop and restart Tomcat every time + you need to update your application. + --> + + <!-- Change these properties to suit your needs (Begin)--> + <property name="application" value="orkweb" /> + <property name="tomcatHome" value="C:\Program Files\Apache Software Foundation\Tomcat 5.5" /> + <property name="tomcatHomeEsc" value="C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%205.5" /> + <property name="workspaceHome" value="c:/devOrk/" /> + <property name="mgrUsername" value="admin" /> + <property name="mgrPassword" value="" /> + <!-- Change these properties to suit your needs (End)--> + + + <property name="webappsHome" value="${tomcatHome}/webapps" /> + <property name="webappsHomeEsc" value="${tomcatHomeEsc}/webapps" /> + <property name="appHome" value="${webappsHome}/${application}" /> + <property name="contextHome" value="${workspaceHome}/${application}/context" /> + <property name="srcHome" value="${workspaceHome}/${application}/src" /> + <property name="deployWarDir" value="${workspaceHome}/${application}/DeployWar" /> + <property name="mgrUrl" value="http://localhost:8080/manager" /> + <property name="mgrRemoveUrl" value="${mgrUrl}/remove" /> + <property name="mgrDeployUrl" value="${mgrUrl}/install" /> + <property name="orkbasejHome" value="${workspaceHome}/orkbasej" /> + + <target name="create_war"> + <mkdir dir="${deployWarDir}" /> + <delete file="${deployWarDir}/${application}.war" /> + <war + duplicate="preserve" + destfile="${deployWarDir}/${application}.war" + webxml="${contextHome}/WEB-INF/web.xml"> + <classes dir="${contextHome}/WEB-INF/classes" /> + <classes dir="${orkbasejHome}/bin" /> + <fileset dir="${contextHome}"> + <include name="*" /> + <include name="images/*" /> + <include name="WEB-INF/*.page" /> + <include name="WEB-INF/*.application" /> + <include name="WEB-INF/*.jwc" /> + <include name="WEB-INF/*.html" /> + <include name="WEB-INF/*.properties" /> + <include name="css/*.css" /> + </fileset> + </war> + </target> + + <target name="remove_context"> + <delete file="temp.txt" /> + <get + src="${mgrRemoveUrl}?path=/${application}" + dest="temp.txt" + username="${mgrUsername}" + password="${mgrPassword}" /> + <loadfile property="remove.result" + srcFile="temp.txt" /> + <echo>${remove.result}</echo> + <delete file="temp.txt" /> + + <!-- Remove the directory containing the old version of the application --> + <delete dir="${webappsHome}/${application}" /> + </target> + + <target name="deploy"> + <!-- Deploy to Tomcat --> + <unzip + src="${deployWarDir}/${application}.war" + dest="${webappsHome}/${application}" /> + </target> + + <target name="install_context"> + <!-- Install the application --> + <delete file="temp.txt" /> + <property name="mgrDeployParams" + value="path=/${application}&war=file://${webappsHomeEsc}/${application}/" /> + <get + src="${mgrDeployUrl}?${mgrDeployParams}" + dest="temp.txt" + ignoreerrors="true" + verbose="true" + username="${mgrUsername}" + password="${mgrPassword}" /> + <loadfile property="install.result" + srcFile="temp.txt" /> + <echo>${install.result}</echo> + <delete file="temp.txt" /> + </target> + + <target name="do_everything" depends="create_war,remove_context,deploy,install_context" /> + +</project> |