version 1.66, 2007/11/13 19:59:57
|
version 1.67, 2008/01/29 13:53:22
|
Line 826 class VLP_resource(ECHO_resource,Cacheab
|
Line 826 class VLP_resource(ECHO_resource,Cacheab
|
def firstPage(self,url=None): |
def firstPage(self,url=None): |
"""showlink to the first image""" |
"""showlink to the first image""" |
if self.REQUEST.get('pn','1')=="1": #erste seinte dann kein a tag |
if self.REQUEST.get('pn','1')=="1": #erste seinte dann kein a tag |
return """<img src="../../images/first.gif" alt="first" width="14" height="14" border="0"><br>first""" |
return """<img src="/images/first.gif" alt="first" width="14" height="14" border="0"><br>first""" |
|
|
else: |
else: |
ws=self.REQUEST.get('ws','1') |
ws=self.REQUEST.get('ws','1') |
return """<a href=%s> |
return """<a href=%s> |
<img src="../../images/first.gif" alt="first" width="14" height="14" border="0"><br>first |
<img src="/images/first.gif" alt="first" width="14" height="14" border="0"><br>first |
</a> |
</a> |
"""%(self.REQUEST['URL']+"?pn=1&ws=%s"%ws) |
"""%(self.REQUEST['URL']+"?pn=1&ws=%s"%ws) |
|
|
Line 842 class VLP_resource(ECHO_resource,Cacheab
|
Line 842 class VLP_resource(ECHO_resource,Cacheab
|
ln=len(pages) |
ln=len(pages) |
|
|
if (self.REQUEST.get('pn')==str(ln)) or (ln==1): #letzte seite dann kein a tag oder nur eine Seite |
if (self.REQUEST.get('pn')==str(ln)) or (ln==1): #letzte seite dann kein a tag oder nur eine Seite |
return """<img src="../../images/last.gif" alt="last" width="14" height="14" border="0"><br>last""" |
return """<img src="/images/last.gif" alt="last" width="14" height="14" border="0"><br>last""" |
|
|
else: |
else: |
ws=self.REQUEST.get('ws','1') |
ws=self.REQUEST.get('ws','1') |
return """<a href=%s> |
return """<a href=%s> |
<img src="../../images/last.gif" alt="last" width="14" height="14" border="0"><br>last |
<img src="/images/last.gif" alt="last" width="14" height="14" border="0"><br>last |
</a> |
</a> |
"""%(self.REQUEST['URL']+"?pn="+str(ln)+"&ws="+ws) |
"""%(self.REQUEST['URL']+"?pn="+str(ln)+"&ws="+ws) |
|
|
Line 857 class VLP_resource(ECHO_resource,Cacheab
|
Line 857 class VLP_resource(ECHO_resource,Cacheab
|
|
|
nn = int(self.REQUEST.get('pn','1'))-1 |
nn = int(self.REQUEST.get('pn','1'))-1 |
if nn < 1: #letzte seite dann kein a tag |
if nn < 1: #letzte seite dann kein a tag |
return """<img src="../../images/lisePrev.gif" alt="prev" width="14" height="14" border="0"><br>prev""" |
return """<img src="/images/lisePrev.gif" alt="prev" width="14" height="14" border="0"><br>prev""" |
|
|
else: |
else: |
ws=self.REQUEST.get('ws','1') |
ws=self.REQUEST.get('ws','1') |
return """<a href=%s> |
return """<a href=%s> |
<img src="../../images/lisePrev.gif" alt="prev" width="14" height="14" border="0"><br>prev |
<img src="/images/lisePrev.gif" alt="prev" width="14" height="14" border="0"><br>prev |
</a> |
</a> |
"""%(self.REQUEST['URL']+"?pn="+str(nn)+"&ws="+ws) |
"""%(self.REQUEST['URL']+"?pn="+str(nn)+"&ws="+ws) |
|
|
Line 874 class VLP_resource(ECHO_resource,Cacheab
|
Line 874 class VLP_resource(ECHO_resource,Cacheab
|
|
|
nn = int(self.REQUEST.get('pn','1'))+1 |
nn = int(self.REQUEST.get('pn','1'))+1 |
if (nn>int(ln)) or (ln==1): #letzte seite dann kein a tag |
if (nn>int(ln)) or (ln==1): #letzte seite dann kein a tag |
return """<img src="../../images/liseNext.gif" alt="next" width="14" height="14" border="0"><br>next""" |
return """<img src="/images/liseNext.gif" alt="next" width="14" height="14" border="0"><br>next""" |
|
|
else: |
else: |
ws=self.REQUEST.get('ws','1') |
ws=self.REQUEST.get('ws','1') |
return """<a href=%s> |
return """<a href=%s> |
<img src="../../images/liseNext.gif" alt="next" width="14" height="14" border="0"><br>next |
<img src="/images/liseNext.gif" alt="next" width="14" height="14" border="0"><br>next |
</a> |
</a> |
"""%(self.REQUEST['URL']+"?pn="+str(nn)+"&ws="+ws) |
"""%(self.REQUEST['URL']+"?pn="+str(nn)+"&ws="+ws) |
|
|