/[papo]/papo/forms/date.gfd
ViewVC logotype

Diff of /papo/forms/date.gfd

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

revision 1.1 by styxman, Thu Dec 5 14:11:15 2002 UTC revision 1.2 by styxman, Sat Dec 7 06:26:56 2002 UTC
# Line 5  Line 5 
5    <!-- no es posible tener un form sin datasource! -->    <!-- no es posible tener un form sin datasource! -->
6    <datasource name="tmpDataSource" cache="1"/>    <datasource name="tmpDataSource" cache="1"/>
7        
8    <trigger name="onStartUp" type="On-Startup"><![CDATA[    <!--trigger name="onStartUp" type="On-Startup"><![CDATA[
9      from time import localtime      from time import localtime
10            
11      (y, m, d, h, n, None, None, None, None)= localtime ()      (y, m, d, h, n, None, None, None, None)= localtime ()
# Line 13  Line 13 
13      dateBlock.dateBox.yearEntry= y      dateBlock.dateBox.yearEntry= y
14      dateBlock.dateBox.monthEntry= m      dateBlock.dateBox.monthEntry= m
15      dateBlock.dateBox.dayEntry= d      dateBlock.dateBox.dayEntry= d
16    ]]></trigger>    ]]></trigger-->
17        
18    <trigger name="okTrigger" type="NAMED"><![CDATA[    <!--trigger name="okTrigger" type="NAMED"><![CDATA[
19      from os import system        from os import system
20      from hack import a2f      from hack import a2f
21        
22      # [MMDDhhmm[[CC]YY][.ss]]      # [MMDDhhmm[[CC]YY][.ss]]
# Line 26  Line 26 
26        exit ()        exit ()
27      else:      else:
28        messageBox ("Fecha inválida")        messageBox ("Fecha inválida")
29    ]]></trigger>    ]]></trigger-->
30        
31    <trigger name="cancelTrigger" type="NAMED"><![CDATA[    <trigger name="cancelTrigger" type="NAMED"><![CDATA[
32      exit ()      exit ()
# Line 35  Line 35 
35    <page>    <page>
36      <block name="dateBlock" datasource="tmpDataSource">      <block name="dateBlock" datasource="tmpDataSource">
37        <!-- date -->        <!-- date -->
38        <box name="dateBox" label="Fecha"        <!--box name="dateBox" label="Fecha"
39          x="1" y="0" width="23" height="5">          x="1" y="0" width="23" height="5">
40          <label name="dayLabel" text="Día"          <label name="dayLabel" text="Día"
41            x="1" y="1"/>            x="1" y="1"/>
# Line 53  Line 53 
53            x="10" y="1"/>            x="10" y="1"/>
54          <entry name="yearEntry" field="year"          <entry name="yearEntry" field="year"
55            x="9" y="2" width="5"/>            x="9" y="2" width="5"/>
56        </box>        </box-->
57                    
58        <!-- time -->        <!-- time -->
59        <!--box name="timeBox" label="Hora"        <!--box name="timeBox" label="Hora"
60          x="1" y="4" width="23" height="5">          x="1" y="4" width="23" height="5">
61          <label name="hourLabel" text="Horas"          <label name="hourLabel" text="Horas"
62            x="1" y="1"/-->            x="1" y="1"/-->
63          <entry name="hourEntry" field="hour" hidden=""          <!--entry name="hourEntry" field="hour" hidden=""
64            x="3" y="2" width="3"/>            x="3" y="2" width="3"/-->
65          <!--label name="hourMinutesLabel" text=":"          <!--label name="hourMinutesLabel" text=":"
66            x="6" y="2"/>            x="6" y="2"/>
67          <label name="minutesLabel" text="Minutos"          <label name="minutesLabel" text="Minutos"
68            x="7" y="1"/-->            x="7" y="1"/-->
69          <entry name="minutesEntry" field="minutes" hidden=""          <!--entry name="minutesEntry" field="minutes" hidden=""
70            x="7" y="2" width="3"/>            x="7" y="2" width="3"/-->
71        <!--/box-->        <!--/box-->
72                
73        <!-- buttons -->        <!-- buttons -->
74        <button name="okButton" label="Listo" trigger="okTrigger"        <!--button name="okButton" label="Listo" trigger="okTrigger"
75          x="2" y="10" width="10" height="1"/>          x="2" y="10" width="10" height="1"/>
76        <button name="cancelButton" label="Cancelar" trigger="cancelTrigger"        <button name="cancelButton" label="Cancelar" trigger="cancelTrigger"
77          x="13" y="10" width="10" height="1"/>          x="13" y="10" width="10" height="1"/-->
78        <!--label name="messageLabel" text="Por favor cambie la fecha en el servidor."        <label name="messageLabel" text="Por favor cambie la fecha en el servidor."
79          x="4" y="2"/>          x="4" y="2"/>
80        <button name="exitButton" label="Ok" trigger="cancelTrigger"        <button name="exitButton" label="Ok" trigger="cancelTrigger"
81          x="10" y="5" width="30" height="3"/-->          x="10" y="5" width="30" height="3"/>
82      </block>      </block>
83    </page>    </page>
84  </form>  </form>

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

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