Ajout drapeaux isIE7max.
[Epoz.git] / epoz / epoz_plone / epoz_toolbox.pt
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
4 <html xmlns:tal="http://xml.zope.org/namespaces/tal"
5 xmlns:metal="http://xml.zope.org/namespaces/metal"
6 i18n:domain="plone">
7
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});">
17 </style>
18 </head>
19
20 <body onload="focus();"
21 style="margin: 4px;padding:0.5em;"
22 tal:define="checkPermission python: here.portal_membership.checkPermission;">
23
24 <form
25 action="search"
26 method="post"
27 name="search"
28 style="padding-bottom:1em;"
29 tal:define="DateTime python:modules['DateTime'].DateTime"
30 tal:attributes="action string: ${here/absolute_url}/${template/getId}">
31
32 <div i18n:translate="legend_search_terms">Search Terms</div>
33 <input type="text"
34 id="searchGadget"
35 name="SearchableText"
36 size="25"
37 tabindex=""
38 />
39 <input tabindex=""
40 class="searchButton"
41 type="submit"
42 name="submit"
43 value="Search"
44 i18n:attributes="value"
45 />
46 </form>
47
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>
51 </div>
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">&raquo;</span>
69 </a>
70 </tal:block>
71 </tal:block>
72 </tal:block>
73 </div>
74
75 <tal:block tal:define="results python: test(query_results, query_results,
76 [item for item in here.listFolderContents()
77 if checkPermission('View',item)]);">
78
79 <table tal:condition="results"
80 class="group" width="100%" cellspacing="0" cellpadding="2">
81
82 <tbody>
83
84 <tal:block tal:repeat="item results">
85 <tr tal:define="oddrow repeat/item/odd"
86 tal:attributes="class python:test(oddrow, 'even', 'odd')" >
87
88 <td width="50%">
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>
93
94 <b tal:condition="python: not item.isPrincipiaFolderish or item==here"
95 tal:content="item/title_or_id">Title</b>
96
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);" />
103 </a>
104 </td>
105
106 <td width="25%"
107 i18n:translate=""
108 tal:content="python:item.getTypeInfo().Title()">Metatype</td>
109
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>
118 </div>
119 </td>
120 </tr>
121 </tal:block>
122
123 </tbody>
124 </table>
125
126 </tal:block>
127
128 </tal:block>
129 </body>
130 </html>