Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Streda, 25. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  strftimemask in edit mode

phpMyEdit General     strftimemask in edit mode
Odoslať novú tému   Odpovedať na tému    
 
joe438     Založený: 23.06.2008   Príspevky: 2  
Príspevok Zaslal: 2008-06-26 19:37
Návrat hore  Odpovedať s citátom     

I have 2 date fields that I have applied a strftime mask to so they display %m/%d/%Y. They display correctly in list mode and view mode.

However, edit mode defaults to displaying them in %Y-%m-%d as read from the database. How can I get the same mask to appear in edit mode?

It's very confusing to the users to see the dates in this format only when editing.

I've already written update and insert triggers to convert any valid dates entered to the proper format for mysql.

 
ajh     Založený: 17.12.2003   Príspevky: 236  
Príspevok Zaslal: 2008-06-27 15:24
Návrat hore  Odpovedať s citátom     

The only way I know of doing it is to use a 'sqlw' to convert the text input into the correct format for MySQL...so you would write an expression to convert:
mm/dd/yy to yy/mm/dd

The alternative is to use an extension like mce_cal (in the CVS) to use a Javascript calendar popup for the field.

 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov