/[papo]/papo/zot/template.gfd
ViewVC logotype

Diff of /papo/zot/template.gfd

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by apronotti, Fri Nov 29 19:41:41 2002 UTC revision 1.4 by jlenton, Mon Dec 2 02:11:08 2002 UTC
# Line 1  Line 1 
1  <?xml version="1.0" encoding="ISO-8859-1"?>  <?xml version="1.0" encoding="ISO-8859-1"?>
2    
3  <form tabbed="top" title="@_FORM_@" height="18" width="84">  <form tabbed="top" title="@ $form @" height="18" width="84">
4    <datasource name="focusDataSource" cache="1"/>    <datasource name="focusDataSource" cache="1"/>
5    <datasource name="searchDataSource" cache="1"/>    <datasource name="searchDataSource" cache="1"/>
6    <datasource name="resultDataSource" database="@_DATABASE_@"    <datasource name="resultDataSource" database="@ $database @"
7      table="@_TABLES_@"      table="@ $tables @"
8      order_by="@_SORTER_@"      order_by="@ $order_by @"
9      historytable="@_HISTORYTABLES_@">      historytable="@ $histables @">
10      <condition>      <condition>
11        <and>        <and>
12        @_CONDITIONS_@</and>          @ $conditions @
13          </and>
14      </condition>      </condition>
15    </datasource>    </datasource>
16    <datasource name="editDataSource" database="@_DATABASE_@"    <datasource name="editDataSource" database="@ $database @"
17      table="@_TABLES_@"      table="@ $tables @"
18      historytable="@_HISTORYTABLES_@">      historytable="@ $histables @">
19      <condition>      <condition>
20        <and>        <and>
21        @_CONDITIONS_@</and>        @ $conditions @
22          </and>
23      </condition>      </condition>
24    </datasource>    </datasource>
25    
26    <trigger name="searchTrigger" type="NAMED">    <trigger name="searchTrigger" type="NAMED">
27    resultBlock.processRollback()    resultBlock.processRollback()
28    resultBlock.initQuery()    resultBlock.initQuery()
29    resultBlock.nameListEntry = str(searchBlock.searchEntry)+'%' #  @_DO_SEARCHERS_@
30      resultBlock.listEntry@ $i @ = str(searchBlock.searchEntry@ $i @)+'%'
31    @_DONE_@
32    resultBlock.processQuery()    resultBlock.processQuery()
33    </trigger>    </trigger>
34    
# Line 53  Line 57 
57      hack.confirmPageChanges(self, 'commitTrigger', editBlock)      hack.confirmPageChanges(self, 'commitTrigger', editBlock)
58    </trigger>    </trigger>
59    
60    <page name="@_PAGE_SEARCH_@">    <page name="@ $page{search} @">
61      <trigger type="Pre-Focusout">      <trigger type="Pre-Focusout">
62        editBlock.processRollback()        editBlock.processRollback()
63        if resultBlock.getRecordCount() > 0 and not resultBlock.getCurrentRecord().isEmpty():        if resultBlock.getRecordCount() > 0 and not resultBlock.getCurrentRecord().isEmpty():
# Line 62  Line 66 
66            editBlock.processQuery()            editBlock.processQuery()
67      </trigger>      </trigger>
68      <block name="searchBlock" datasource="searchDataSource" transparentBlock="" restrictInsert="">      <block name="searchBlock" datasource="searchDataSource" transparentBlock="" restrictInsert="">
69        <label x="1" y="1" text="@_LABEL_NAME_@"/>  @{ $y=0 }@
70        <entry x="1" y="2" name="searchEntry" width="35"/>  @_DO_SEARCHERS_@
71        <button x="36" y="2" trigger="searchTrigger" width="9" label="Buscar"        <label x="1" y="@ ++$y @" text="@ $search_label[$i] @"/>
72          <entry x="1" y="@ ++$y @" name="searchEntry@ $i @" width="35"/>
73    @_DONE_@
74          <button x="37" y="@ $y++ @" trigger="searchTrigger" width="9" label="Buscar"
75          name="searchBtn" height="1"/>          name="searchBtn" height="1"/>
76      </block>      </block>
77      <block name="resultBlock" datasource="resultDataSource">      <block name="resultBlock" datasource="resultDataSource">
78        <entry x="1" y="1" name="idREntry" field="@_FIELD_ID_@" hidden="true"/>        <entry x="1" y="@ $y++ @" name="idREntry" field="@ $id @" hidden="y"/>
79        <label x="1" y="3" text="Resultado"/>  @_DO_SEARCHERS_@
80        <entry x="1" y="4" name="nameListEntry" field="@_FIELD_NAME_@" width="80" rows="12"/>        <label x="@ $search_x[$i] @" y="@ $y @" text="@ $result_label[$i] @"/>
81        <scrollbar page="12" x="81" y="4" width="3" height="12"/>  @_DONE_@
82    @{ $y++ }@
83    @_DO_SEARCHERS_@
84          <entry x="@ $search_x[$i] @" y="@ $y @" name="listEntry@ $i @"
85            field="@ $search_by[$i] @" width="@ $search_width[$i] @" rows="12"/>
86    @_DONE_@
87          <scrollbar page="12" x="81" y="@ $y @" width="3" height="12"/>
88      </block>      </block>
89    </page>    </page>
90    <page name="@_PAGE_EDIT_@">    <page name="@ $page{edit} @">
91      <trigger type="pre-Focusout" src="askForChangesTrigger"/>      <trigger type="pre-Focusout" src="askForChangesTrigger"/>
92      <box label="@_BOX_EDIT_@" x="0" y="0" height="20" width="84">      <block name="editBlock" datasource="editDataSource">
93        <block name="editBlock" datasource="editDataSource">        <entry x="0" y="0" name="idEntry" field="@ $id @" hidden="y"/>
94          <entry x="0" y="0" name="idEntry" field="@_FIELD_ID_@" hidden="under the carpet"/>  @{ $h=0; $y=1 }@
95  @@DO@@  @_DO_FIELDS_@
96          <label x="1" y="@@2*$n+1@@" text="@_LABEL__@"/>        <label x="1" y="@ $y++ @" text="@ $label[$i] @"/>
97          <entry x="1" y="@@2*$n+2@@" width="@@$width@@" name="@_ENTRY__@" field="@_FIELD__@"/>        <entry x="1" y="@ $y @"
98  @@DONE@@          width="@ $width[$i] @"
99          <button x="1" y="17" trigger="commitTrigger" width="9" label="Aceptar"          height="@ $h = $height[$i] @"
100                  name="commitBtn" height="1"/>          name="@ $fqdn[$i] @_entry"
101          <button x="11" y="17" trigger="deleteTrigger" width="9" label="Borrar"          field="@ $fqdn[$i] @"/>
102                  name="deleteBtn" height="1"/>        @{ $y += $height[$i] }@
103          <button x="21" y="17" trigger="rollbackTrigger" width="9" label="Cancelar"  @_DONE_@
104                  name="rollbackBtn" height="1"/>        <button x="1" y="@ $y @" trigger="commitTrigger" width="9" label="Aceptar"
105       </block>          name="commitBtn" height="1"/>
106      </box>        <button x="11" y="@ $y @" trigger="deleteTrigger" width="9" label="Borrar"
107            name="deleteBtn" height="1"/>
108          <button x="21" y="@ $y @" trigger="rollbackTrigger" width="9" label="Cancelar"
109            name="rollbackBtn" height="1"/>
110        </block>
111    </page>    </page>
112  </form>  </form>

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26