1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4 <html xmlns:tal="http://xml.zope.org/namespaces/tal"
5 xmlns:metal="http://xml.zope.org/namespaces/metal"
8 <head tal:define="ztu modules/ZTUtils;">
9 <title tal:content="here/title_or_id">Title or Id</title>
10 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"
11 tal:define="charset here/portal_properties/site_properties/default_charset;
12 dummy python:request.RESPONSE.setHeader('Content-Type', 'text/html;;charset=%s' % charset)"
13 tal:attributes="content string:text/html;;charset=${charset}" />
14 <style type="text/css" media="all"
15 tal:define="current_skin python:ztu.make_query(skin=request.get(here.portal_skins.getRequestVarname(), ''))"
16 tal:content="string: @import url(${here/portal_url}/plone.css?${current_skin});">
20 <body onload="focus();"
21 style="margin: 4px;padding:0.5em;"
22 tal:define="checkPermission python: here.portal_membership.checkPermission;">
28 style="padding-bottom:1em;"
29 tal:define="DateTime python:modules['DateTime'].DateTime"
30 tal:attributes="action string: ${here/absolute_url}/${template/getId}">
32 <div i18n:translate="legend_search_terms">Search Terms</div>
44 i18n:attributes="value"
48 <tal:block tal:define="query_results python:[brain.getObject() for brain in here.queryCatalog()];">
49 <div tal:condition="query_results">
50 <span i18n:translate="heading_search_results">Search results</span>
52 <div style="border-top:1px solid black;border-bottom:1px solid black;"
53 tal:attributes="style string:border-top:1px solid ${here/base_properties/globalBorderColor};;
54 border-bottom:1px solid ${here/base_properties/globalBorderColor};;
55 margin-bottom:1em;;padding:0.2em 0 0.1em 0"
56 tal:condition="not: query_results"
57 tal:define="parents request/PARENTS;
58 nil python: parents.reverse();
59 portal here/portal_url/getPortalObject;">
60 <tal:block tal:repeat="parent parents">
61 <tal:block tal:condition="python:checkPermission('View', parent) and checkPermission('List folder contents', parent)">
62 <img tal:condition="repeat/parent/start" tal:attributes="src string:${here/portal_url}/logoIcon.gif"/>
63 <tal:block tal:condition="not: repeat/parent/start">
64 <a tal:attributes="href string: ${parent/absolute_url}/${template/getId};">
65 <span tal:content="string: ${parent/title_or_id}"
66 tal:condition="python: parent.absolute_url()!=portal.absolute_url()"/>
67 <span tal:content="string:Home" tal:condition="python: parent.absolute_url()==portal.absolute_url()"/>
68 <span tal:condition="not: repeat/parent/end" class="breadcrumbSeparator">»</span>
75 <tal:block tal:define="results python: test(query_results, query_results,
76 [item for item in here.listFolderContents()
77 if checkPermission('View',item)]);">
79 <table tal:condition="results"
80 class="group" width="100%" cellspacing="0" cellpadding="2">
84 <tal:block tal:repeat="item results">
85 <tr tal:define="oddrow repeat/item/odd"
86 tal:attributes="class python:test(oddrow, 'even', 'odd')" >
89 <img src="#" tal:attributes="src string:${here/portal_url}/${item/getIcon};alt item/Title" />
90 <a tal:condition="python: item.isPrincipiaFolderish and item<>here"
91 tal:attributes="href string: ${item/absolute_url}/${template/getId}"
92 tal:content="item/title_or_id">Title</a>
94 <b tal:condition="python: not item.isPrincipiaFolderish or item==here"
95 tal:content="item/title_or_id">Title</b>
97 <a tal:condition="python: item.getTypeInfo().getId() in ['Image','Photo']"
98 tal:attributes="href string:#;
99 onclick string: window.open('${item/absolute_url}','${repeat/item/index}','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=${item/width},height=${item/height}');; ;">
100 <img tal:define="max python: 32;"
101 tal:attributes="src item/absolute_url;
102 height python: test(item.height < max, item.height, max);" />
108 tal:content="python:item.getTypeInfo().Title()">Metatype</td>
110 <td width="25%" tal:define="url python: item.absolute_url() + test(item.isPrincipiaFolderish,'/','');">
111 <a tal:attributes="href string: #;
112 onclick string: window.opener.CreateLink('${url}');; window.close();; ;"
113 i18n:translate="epoz_insert_link">Insert Link</a>
114 <div tal:condition="python: item.getTypeInfo().getId() in ['Image','Photo']">
115 <a tal:attributes="href string: #;
116 onclick string: window.opener.CreateImage('${url}');; window.close();; ;"
117 i18n:translate="epoz_insert_image">Insert Image</a>