Annotation of basket/zpt/BasketXRef_per_template_standard.zpt, revision 1.2

1.1       dwinter     1: <tal:x 
                      2:    tal:define="
                      3:        basis python:here.vlp.vlp_coll.technology;
                      4:        result python:basis.ZSQLSimpleSearch('
                      5:            SELECT 
                      6:                vl_people.* ,
                      7:                TO_CHAR(born, \'DD.MM.YYYY\') AS fBorn, 
                      8:                TO_CHAR(died, \'DD.MM.YYYY\') AS fDied
                      9:            FROM vl_people
                     10:            WHERE reference=\''+ here.xref +'\'')[0];"
                     11: >
1.2     ! dwinter    12: <tal:block tal:condition="result/image"
        !            13:        ><span tal:define="image python:basis.ZSQLSimpleSearch('
        !            14:            SELECT exportheight, exportwidth
        !            15:            FROM vl_images 
        !            16:            WHERE reference = \'' + str(result.image) + '\'')"
        !            17:            tal:omit-tag="">
        !            18:        <img name='thumbnail1' src="IMG.png" border=0
        !            19:            tal:attributes="src python:basis.vlp.imgbase + 'thumbs/' + 
        !            20:                result.image + '.jpg'" width="80" align="left">
        !            21:          </span>
        !            22: </tal:block>
        !            23: <i class="small" style="float:right" tal:content="result/reference" />
1.1       dwinter    24: 
1.2     ! dwinter    25: <a tal:content="result/fullname" 
        !            26:    tal:attributes="href python: '/references?id=' + here.xref">Full Name</a> <br>
        !            27: <br>
        !            28: <span tal:replace="result/born_place" tal:omit-tag="">Place of Birth</span>
        !            29: <span 
        !            30:    tal:condition="result/born" 
        !            31:    tal:content="result/fborn">Date of Birth</span
        !            32: ><span
        !            33:    tal:condition="not:result/born" 
        !            34:    tal:content="result/born_year">Year of Birth</span>
        !            35: <br>   
        !            36: <span tal:replace="result/died_place" tal:omit-tag="">Place of Death</span>
        !            37: <span
        !            38:    tal:condition="result/died" 
        !            39:    tal:content="result/fdied">Date of Death</span
        !            40: ><span
        !            41:    tal:condition="not:result/died" 
        !            42:    tal:content="result/died_year">Year of Death</span>
        !            43: <br clear="all">
1.1       dwinter    44: </tal:x>

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