summaryrefslogtreecommitdiff
path: root/orkweb/context/WEB-INF/RecSegments.html
blob: 75c5263eb6306e88ad1017d45faa6bf1442cf795 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<html jwcid="@Shell" stylesheet="asset:globalStylesheet" title="Browse segments" >
<link jwcid="@If" condition="false" href="orekastyle.css" rel="stylesheet" type="text/css"/>
<body jwcid="@Body">
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
	<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">
					<tr>
						<td>&nbsp;</td>
					</tr>
					<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 id="submitbutton" 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=280 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="ShowPositionControls" VALUE="true">
							    <PARAM NAME="ShowTracker" VALUE="true">
							    <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 align="center">
											    	<!--<span jwcid="@Insert" value="ognl:item.recSegment.direction">direction</span>-->
											    	<span jwcid="@If" condition="ognl:item.recSegment.direction == @net.sf.oreka.Direction@IN"><img src="images/common/icon_incomingcall.gif" alt="In"></span>
											    	<span jwcid="@If" condition="ognl:item.recSegment.direction == @net.sf.oreka.Direction@OUT"><img src="images/common/icon_outgoingcall.gif" alt="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>
					
					
					<!--<tr>	### Not sure where to put this
						<td valign="top">
							<table width="100%" border="0" cellspacing="0" cellpadding="0">
					  			<tr>
					    			<td width="7"><img src="images/common/bdr1_results.gif" width="7" height="24"></td>
					    			<td class="brd4result">&nbsp;</td>
					    			<td width="31"><img src="images/common/bdr4_results.gif" width="23" height="24"></td>
					  			</tr>
							</table>
						</td>
					</tr>-->
					
					
				</table>
			</td>
		</span>
		<span jwcid="@If" condition="ognl:items.isEmpty">
			<td valign="top">
				<span key="NoResults">No results</span>
			</td>
		</span>
		<td width="15" valign="top" class="brdr6results"><img src="images/common/bdr2_results.gif" width="8" height="8"></td>		
	</tr>
</table>
</body>
</html>