Error: Invalid character at line 301.
<sapi:choose>
2.
3.
4.
5.
<sapi:when exp="eq(this.this.LESS.value,false) and eq(area51.value,0)">
6.
<sapi:code>
7.
<script type="text/javascript">
8.
var bImages = new Array();
9.
var lImages = new Array();
10.
var Resumes = new Array();
11.
var oldVisPosition=1;
12.
var oldFirst=1;
13.
var theResume;
14.
</sapi:code>
15.
</sapi:when>
16.
17.
<sapi:when exp="neq(this.this.LESS.value,false) and gt(area51.value,1)" >
18.
<sapi:code>
19.
<div id="content">
20.
</sapi:code>
21.
</sapi:when>
22.
23.
24.
<sapi:when exp="1">
25.
<sapi:for-each select="get_infochannel()" name="enum">
26.
<sapi:choose>
27.
28.
29.
<sapi:when exp="area51.value>0 and eq(page.MASK.value, '') and eq(this.this.counter.value,1)" title="It's representation of button ADD NEW ENTRY (Administrative mode, viewing state)">
30.
<sapi:code><br /><div style="width: 50px;clear:both;margin-bottom:10px;">
31.
<input class="sapidcms_cont_btn" type="button" name="addentry" onclick="return location.href='&this.navigation.add.href.value;';" value="Kép beszúrása" /></div></sapi:code>
32.
</sapi:when>
33.
34.
35.
36.
<sapi:when exp="eq(this.this.LESS.value,false) and eq(area51.value,0)" title="It's an entry in list (Delivery mode)">
37.
<sapi:code>
38.
39.
lImages[&this.this.counter.value;] = new Image;
40.
lImages[&this.this.counter.value;].src = "&http_path.value;usr/templates/&this.this.icon_pic.value;";
41.
bImages[&this.this.counter.value;] = "&http_path.value;usr/templates/&this.this.PIC.value;";
42.
Resumes[&this.this.counter.value;] = "<sapi:apply exp="expaddslashes(this.this.RESUME.value)" />";
43.
44.
45.
</sapi:code>
46.
</sapi:when>
47.
48.
49.
50.
51.
52.
<sapi:when exp="eq(this.this.LESS.value,false) and eq(area51.value,1)" title="It's an entry in list (Admin mode, viewing state)">
53.
<sapi:code>
54.
<div class="content_boxes" style=""><div class="small box">
55.
<table border="0">
56.
<tr>
57.
<td>
58.
<div ><img src="&http_path.value;usr/templates/&this.this.icon_pic.value;" border="0" /><div>
59.
<div >[<sapi:apply name="this.this.NUMBER.value" />] <sapi:apply name="this.this.RESUME.value" /></div>
60.
</td>
61.
</tr>
62.
</table>
63.
</div></div>
64.
65.
</sapi:code>
66.
</sapi:when>
67.
68.
69.
<sapi:when exp="neq(this.this.LESS.value,false) and lt(area51.value,2)" title="It's the chosen entry (Delivery mode)">
70.
<sapi:code>
71.
<div align="center">
72.
<img src="&http_path.value;usr/templates/&this.this.PIC.value;" border="0" />
73.
<div style="padding: 10px 0px 10px 0px;">[ <sapi:apply name="this.this.NUMBER.value" /> ] <sapi:apply name="this.this.RESUME.value" /></div>
74.
</div>
75.
<table border="0" width="100%" cellpadding="0" cellspacing="0">
76.
<tr>
77.
<td width="100%"><a sapi:href="this.this.LESS.value" title="Vissza a listára">Vissza a listára</a></td>
78.
79.
</tr>
80.
</table>
81.
82.
</sapi:code>
83.
</sapi:when>
84.
85.
86.
87.
88.
<sapi:when exp="neq(this.this.LESS.value,false) and gt(area51.value,1)" title="It's the chosen entry (Administrative mode, editing state)">
89.
<sapi:code>
90.
<div align="center">
91.
<div style="width: 400px; text-align: left;overflow: hidden;">
92.
<sapi:apply name="qc.PIC.value" type="image" resize="400x600" iconsize="110*150" title="Kép" />
93.
<div style="10px 0px 10px 0px">
94.
<sapi:apply name="qc.NUMBER.value" type="string" title="sorszám" index="yes"/>
95.
<sapi:apply name="qc.RESUME.value" type="string" title="rövid leírás" />
96.
</div>
97.
</div>
98.
</div>
99.
<br/>
100.
<table border="0" width="100%" cellpadding="0" cellspacing="0">
101.
<tr>
102.
<td width="100%"><a sapi:href="document.url.value" title="Vissza a listára">Vissza a listára</a></td>
103.
104.
</tr>
105.
</table>
106.
<br/>
107.
108.
</sapi:code>
109.
</sapi:when>
110.
111.
112.
113.
<sapi:when exp="neq(argv_nav.0.value, 'addentry') and eq(this.this.LESS.value, false) and eq(this.this.to_select.value, false)" title="It's an entry in list, which don't contain link into deep (Delivery mode)">
114.
<sapi:code>
115.
<div style="width: 150px; float: left; margin: 0px 5px 5px 0px;">
116.
<img src="&http_path.value;usr/templates/&this.this.icon_pic.value;" border="0" />
117.
<div class="content">[<sapi:apply name="this.this.NUMBER.value" />] <sapi:apply name="this.this.RESUME.value" /></div>
118.
<div class="more">
119.
<a sapi:href="this.this.to_select.value" title="Edit">Edit</a>
120.
</div>
121.
</div>
122.
</sapi:code>
123.
</sapi:when>
124.
125.
126.
127.
<sapi:when exp="eq(this.this.LESS.value,false) AND neq(this.this.to_select.value,false) and gt(area51.value,1)" title="It's an entry in list (Administrative mode, editing state)">
128.
<sapi:code>
129.
<div class="content_boxes" style="" ><div class="small box">
130.
<table border="0" cellspacing="0">
131.
<tr>
132.
<td valign="top" width="150px" style="padding-left:2px">
133.
<div style="float: right;"><a href="&this.this.to_select.value;?mode=edit"><img sapi:src="add('http_path.value', 'usr/system/images/edit.gif')" width="12" height="14" title="Szerkeszt"></a> <a sapi:href="add('document.url.value', 'data/deleteentry/', 'this.this.ID.value', '/')"><img sapi:src="add('http_path.value', 'usr/system/images/delete.gif')" width="12" height="14" title="Törlése"></a></div>
134.
<div ><img src="&http_path.value;usr/templates/&this.this.icon_pic.value;" border="0" /><div>
135.
<div >[<sapi:apply name="this.this.NUMBER.value" />] <sapi:apply name="this.this.RESUME.value" /></div>
136.
</td>
137.
</tr>
138.
</table>
139.
</div></div>
140.
</sapi:code>
141.
</sapi:when>
142.
143.
</sapi:choose>
144.
</sapi:for-each>
145.
</sapi:when>
146.
147.
<sapi:when exp="neq(this.this.LESS.value,false) and gt(area51.value,1)" >
148.
<sapi:code>
149.
</div>
150.
</sapi:code>
151.
</sapi:when>
152.
153.
<sapi:when exp="area51.value>0 and eq(page.MASK.value, '')" title="It's representation of button ADD NEW ENTRY (Administrative mode, viewing state)">
154.
<sapi:code><br /><div style="width: 50px;clear:both;margin-bottom:10px;">
155.
<input class="sapidcms_cont_btn" type="button" name="addentry" onclick="return location.href='&this.navigation.add.href.value;';" value="Kép beszúrása" /></div></sapi:code>
156.
</sapi:when>
157.
158.
159.
160.
<sapi:when exp="eq(argv_nav.0.value, 'addentry') and eq(argv_nav.1.value, this.channel.value) and gt(area51.value,1)" title="It's the chosen entry for editing/addming (Administrative mode, editing state)">
161.
<sapi:code>
162.
<div align="center">
163.
<div style="width: 400px; text-align: left;overflow:hidden;">
164.
<sapi:apply name="qc.PIC.value" type="image" resize="400x600" iconsize="110*150" title="Kép" />
165.
<div style="10px 0px 10px 0px">
166.
<sapi:apply name="qc.NUMBER.value" default="99" type="string" title="sorszám" index="yes" />
167.
<sapi:apply name="qc.RESUME.value" type="string" title="rövid leírás" />
168.
</div>
169.
</div>
170.
</div>
171.
<br/>
172.
<table border="0" width="100%" cellpadding="0" cellspacing="0">
173.
<tr>
174.
<td width="100%"><a sapi:href="document.url.value" title="Vissza a listára">Vissza a listára</a></td>
175.
176.
</tr>
177.
</table>
178.
<br/>
179.
180.
</sapi:code>
181.
</sapi:when>
182.
183.
184.
185.
186.
<sapi:when exp="eq(this.this.LESS.value,false) and eq(area51.value,0)">
187.
<sapi:code>
188.
189.
190.
var cImages = lImages.length-1;
191.
192.
function initImg(){
193.
bigImage=document.getElementById("ib");
194.
theResume=document.getElementById("resume");
195.
196.
littleImages = new Array();
197.
bordersTop = new Array();
198.
bordersBottom = new Array();
199.
var rlimit=5;
200.
201.
if(lImages.length<4) {
202.
rlimit = lImages.length;
203.
document.getElementById("myicon_prev").style.display="none";
204.
document.getElementById("myicon_next").style.display="none";
205.
206.
207.
}
208.
209.
for (var i=1; i<rlimit; i++){
210.
littleImages[i]=document.getElementById("il_"+i);
211.
bordersTop[i]=document.getElementById("tl_"+i);
212.
bordersBottom[i]=document.getElementById("bl_"+i);
213.
}
214.
}
215.
216.
function calcImage(N){
217.
var result = N+oldFirst-1;
218.
if (result>cImages) result=result-cImages;
219.
return result;
220.
}
221.
222.
function backImg(){
223.
if (oldVisPosition>1){
224.
selectImg(oldVisPosition-1);
225.
226.
} else {
227.
predImg();
228.
selectImg(1);
229.
}
230.
231.
}
232.
233.
function forwardImg(){
234.
if (oldVisPosition<3){
235.
selectImg(oldVisPosition+1);
236.
237.
} else {
238.
nextImg();
239.
selectImg(3);
240.
}
241.
242.
}
243.
244.
function predImg(){
245.
if (oldFirst==1) oldFirst=cImages;
246.
else oldFirst--;
247.
for (var i=1; i<4; i++){
248.
littleImages[i].src=lImages[calcImage(i)].src;
249.
}
250.
if (oldVisPosition<3){
251.
littleImages[oldVisPosition].style.cursor="pointer";
252.
bordersTop[oldVisPosition].className="";
253.
bordersBottom[oldVisPosition].className="";
254.
oldVisPosition++;
255.
littleImages[oldVisPosition].style.cursor="default";
256.
bordersTop[oldVisPosition].className="top";
257.
bordersBottom[oldVisPosition].className="bottom";
258.
} else {
259.
bigImage.src=bImages[calcImage(4)];
260.
theResume.innerHTML=Resumes[calcImage(4)];
261.
}
262.
}
263.
264.
function nextImg(){
265.
if (oldFirst==cImages) oldFirst=1;
266.
else oldFirst++;
267.
for (var i=1; i<4; i++){
268.
littleImages[i].src=lImages[calcImage(i)].src;
269.
}
270.
if (oldVisPosition>1){
271.
littleImages[oldVisPosition].style.cursor="pointer";
272.
bordersTop[oldVisPosition].className="";
273.
bordersBottom[oldVisPosition].className="";
274.
oldVisPosition--;
275.
littleImages[oldVisPosition].style.cursor="default";
276.
bordersTop[oldVisPosition].className="top";
277.
bordersBottom[oldVisPosition].className="bottom";
278.
} else {
279.
bigImage.src=bImages[calcImage(1)]; theResume.innerHTML=Resumes[calcImage(1)]; }
280.
}
281.
282.
function selectImg(N){
283.
if (N!=oldVisPosition){
284.
littleImages[oldVisPosition].style.cursor="pointer";
285.
bordersTop[oldVisPosition].className="";
286.
bordersBottom[oldVisPosition].className="";
287.
littleImages[N].style.cursor="default";
288.
bordersTop[N].className="top";
289.
bordersBottom[N].className="bottom";
290.
bigImage.src=bImages[calcImage(N)];
291.
theResume.innerHTML=Resumes[calcImage(N)];
292.
oldVisPosition=N;
293.
}
294.
}
295.
296.
function writeLittleImg(){
297.
var rlimit=4;
298.
if(lImages.length<4) {
299.
rlimit = lImages.length;
300.
}
301.
if(lImages.length>0) {
302.
for (var i=1; i<rlimit; i++)
303.
document.write('<td class="image"><img '+((i==1)?' style="cursor: default" ':'')+'id="il_'+i+'" src="'+lImages[i].src+'" width="110px" height="150px" style="cursor:pointer;margin: 2px;border:1px solid black;" onclick="selectImg('+i+')" /></td>');
304.
}
305.
}
306.
307.
function writeBigImg(){
308.
if(bImages.length>0) {
309.
document.write('<td colspan="6" class="big_image"><center><div class="loading"><img id="ib" src="'+bImages[1]+'" alt="" /><div id="resume" style="padding: 5px; font : small Arial, Helvetica, sans-serif; font-size: 11px;">'+Resumes[1]+'</div></div></center></td>');
310.
}
311.
}
312.
</script>
313.
314.
315.
<table cellpadding="0" cellspacing="0" border="0" style="width:400px;margin-left:5px;" >
316.
<tr>
317.
318.
<td colspan="6"><div> </div></td>
319.
320.
</tr>
321.
<tr>
322.
<script type="text/javascript">
323.
writeBigImg();
324.
</script>
325.
</tr>
326.
<tr>
327.
328.
<td colspan="6"><div> </div></td>
329.
330.
</tr>
331.
332.
<tr>
333.
<td colspan="6"> </td>
334.
</tr>
335.
<tr >
336.
<td> </td>
337.
<td style="width:115px;"><center><div id="tl_0"> </div></center></td>
338.
<td style="width:115px;"><center><div id="tl_1" class="top"> </div></center></td>
339.
<td style="width:115px;"><center><div id="tl_2"> </div></center></td>
340.
<td style="width:115px;"><center><div id="tl_3"> </div></center></td>
341.
<td style="width:115px;"><center><div id="tl_4"> </div></center></td>
342.
343.
</tr>
344.
<tr>
345.
346.
<td style="width:0px;"><div id="myicon_prev"><img src="&http_path.value;images/pic_pred.gif" width="23" height="23" alt="<sapi:apply exp="mlstring('previous')" />" onclick="predImg()" /></div></td>
347.
<td style="width:0px;border: none;"> </td>
348.
<script type="text/javascript">
349.
writeLittleImg();
350.
</script>
351.
<td style="width:30px;text-align:right;"><div id="myicon_next"><img src="&http_path.value;images/pic_next.gif" width="23" height="23" alt="<sapi:apply exp="mlstring('next')" />" onclick="nextImg()" /></div></td>
352.
353.
354.
</tr>
355.
<tr>
356.
<td> </td>
357.
<td style="width:115px;"><center><div id="bl_0" > </div></center></td>
358.
<td style="width:115px;"><center><div id="bl_1" class="bottom"> </div></center></td>
359.
<td style="width:115px;"><center><div id="bl_2"> </div></center></td>
360.
<td style="width:115px;"><center><div id="bl_3"> </div></center></td>
361.
362.
363.
</tr>
364.
365.
</table>
366.
367.
<script type="text/javascript">
368.
initImg();
369.
</script>
370.
</sapi:code>
371.
</sapi:when>
372.
373.
374.
375.
</sapi:choose>