/[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.2 by styxman, Sat Dec 7 06:26:56 2002 UTC revision 1.2.2.1 by anthonyl, Fri Mar 14 22:45:25 2003 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 width="50" height="10" title="Cambio de Fecha">  <!--  GNUe Forms 0.5.0 Migration Tool
4    <!-- parece un chiste de mal gusto, pero... -->        Saved on: 2003-02-11 17:42:12  -->
5    <!-- no es posible tener un form sin datasource! -->  
6    <form title="Cambio de Fecha">
7    <datasource name="tmpDataSource" cache="1"/>    <datasource name="tmpDataSource" cache="1"/>
     
   <!--trigger name="onStartUp" type="On-Startup"><![CDATA[  
     from time import localtime  
       
     (y, m, d, h, n, None, None, None, None)= localtime ()  
       
     dateBlock.dateBox.yearEntry= y  
     dateBlock.dateBox.monthEntry= m  
     dateBlock.dateBox.dayEntry= d  
   ]]></trigger-->  
     
   <!--trigger name="okTrigger" type="NAMED"><![CDATA[  
     from os import system  
     from hack import a2f  
     
     # [MMDDhhmm[[CC]YY][.ss]]  
     (y, m, d, h, n, None, None, None, None)= localtime ()  
     if system ( "date "+str(dateBlock.dateBox.month)+str(dateBlock.dateBox.day)+  
                         str(h)+str(n)+str(dateBlock.dateBox.year) )==0:  
       exit ()  
     else:  
       messageBox ("Fecha inválida")  
   ]]></trigger-->  
     
8    <trigger name="cancelTrigger" type="NAMED"><![CDATA[    <trigger name="cancelTrigger" type="NAMED"><![CDATA[
9      exit ()      exit ()
10    ]]></trigger>    ]]></trigger>
11        <logic>
12    <page>      <block name="dateBlock" datasource="tmpDataSource"/>
13      <block name="dateBlock" datasource="tmpDataSource">    </logic>
14        <!-- date -->    <layout xmlns:c="GNUe:Layout:Char" c:height="13" c:width="50">
15        <!--box name="dateBox" label="Fecha"      <page>
16          x="1" y="0" width="23" height="5">        <label name="messageLabel"
17          <label name="dayLabel" text="Día"               text="Por favor cambie la fecha en el servidor." c:x="4" c:y="2"/>
18            x="1" y="1"/>        <button name="exitButton" c:height="3" label="Ok" c:width="30" c:x="10"
19          <entry name="dayEntry" field="day"                c:y="5">
20            x="1" y="2" width="3"/>          <trigger src="cancelTrigger" type="On-Action"/>
21          <label name="dayMonthLabel" text="/"        </button>
22            x="4" y="2"/>      </page>
23          <label name="monthLabel" text="Mes"    </layout>
           x="5" y="1"/>  
         <entry name="monthEntry" field="month"  
           x="5" y="2" width="3"/>  
         <label name="monthYearLabel" text="/"  
           x="8" y="2"/>  
         <label name="yearLabel" text="Año"  
           x="10" y="1"/>  
         <entry name="yearEntry" field="year"  
           x="9" y="2" width="5"/>  
       </box-->  
           
       <!-- time -->  
       <!--box name="timeBox" label="Hora"  
         x="1" y="4" width="23" height="5">  
         <label name="hourLabel" text="Horas"  
           x="1" y="1"/-->  
         <!--entry name="hourEntry" field="hour" hidden=""  
           x="3" y="2" width="3"/-->  
         <!--label name="hourMinutesLabel" text=":"  
           x="6" y="2"/>  
         <label name="minutesLabel" text="Minutos"  
           x="7" y="1"/-->  
         <!--entry name="minutesEntry" field="minutes" hidden=""  
           x="7" y="2" width="3"/-->  
       <!--/box-->  
         
       <!-- buttons -->  
       <!--button name="okButton" label="Listo" trigger="okTrigger"  
         x="2" y="10" width="10" height="1"/>  
       <button name="cancelButton" label="Cancelar" trigger="cancelTrigger"  
         x="13" y="10" width="10" height="1"/-->  
       <label name="messageLabel" text="Por favor cambie la fecha en el servidor."  
         x="4" y="2"/>  
       <button name="exitButton" label="Ok" trigger="cancelTrigger"  
         x="10" y="5" width="30" height="3"/>  
     </block>  
   </page>  
24  </form>  </form>

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

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