File:  [Repository] / basket / zpt / BasketXRef_tec_template_standard.zpt
Revision 1.4: download - view: text, annotated - select for diffs - revision graph
Thu Apr 6 07:50:28 2006 UTC (18 years, 1 month ago) by dwinter
Branches: MAIN
CVS tags: HEAD
behr 5 april templates

<tal:block 
	tal:define="
		vl_technology python: '
			(vl_technology AS tec 
			JOIN vl_images AS img
			ON tec.source = img.reference)
				JOIN vl_literature AS lit
				ON img.source = lit.id';
			
		basis python: here.vlp.vlp_coll.technology;
		tec python: basis.ZSQLSimpleSearch('
			SELECT 
				tec.*, 
				img.caption, img.webcapion, img.exportHeight, img.exportWidth, 
				img.source AS img_source, img.webpage, figureno,
				img.reference AS img_reference,
				lit.fullreference AS fullreference, sql_year
			FROM ' + vl_technology + '
			WHERE tec.reference = \'' + here.xref+ '\'')[0]">

	<img name='thumbnail1' src="IMG.png" border=0
		tal:attributes="src python:basis.vlp.imgbase + 'thumbs/' + 
			tec.img_reference + '.jpg'" width="80" height="80" align="left">
			
	<i class="small" style="float:right" tal:content="tec/reference" />
	<a 
		tal:content="structure tec/webcapion" 
		tal:attributes="
		href python: '/references?id=' + tec.reference">webcaption</a><br><br>
	Source: <span tal:replace="python: tec.fullreference"/>
		<span tal:replace="structure python:
			'(p.&nbsp;' + tec.webpage[1:5] + 
			', fig.&nbsp;' + tec.figureno +  ')'"/>
	<br clear="all">
</tal:block>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>