Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Thursday, March 28, 2024
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpMyEdit  »  Forum  »  phpMyEdit-mce-cal timestamp

phpMyEdit Configuration     phpMyEdit-mce-cal timestamp
Post new topic   Reply to topic    
 
zoycite     Joined: 03 Dec 2006   Posts: 3  
Post Posted: 2006-12-03 09:46
Back to top  Reply with quote     

The calendar works, however I am unable to have the calendar start up based on a unix timestamp.

I have been reading the jscalendar documentation and the phpMyEdit documentation and searching the forums to see if this is even possible without heavy modifications to jscalendar. I found nothing in the calendar docs about this. I found a wealth of topics on the the calendar but it seems I was unable to locate anything useful. I also checked the php documentation for strftime options to accomplish this and no go.

If there does exist a topic or reference for this I would appreciate a link to it, or any help you can provide is much appreciated.

 
ajh     Joined: 17 Dec 2003   Posts: 236  
Post Posted: 2006-12-03 19:42
Back to top  Reply with quote     

Easiest way of doing this is to use the MySQL date conversion functions to do this. I assume that you database columns stores date/time in Unix format. So you need to put an SQL and SQLW option on the field in PME to convert to/from Unix dates as follows:

Code:
...['sql'] = 'FROM_UNIXTIME(colname)';
...['sqlw'] = 'UNIXTIME($val)';


 
zoycite     Joined: 03 Dec 2006   Posts: 3  
Post Posted: 2006-12-10 03:26
Back to top  Reply with quote     

well i use the %s option, on the strftime mask and it seems to write and read the right values, except when the calendar is initilized, the calendar is initilized with the current date instead of the timestamp.

 
ajh     Joined: 17 Dec 2003   Posts: 236  
Post Posted: 2006-12-10 15:56
Back to top  Reply with quote     

Could you post the definition of the MySQL column concerned, the PME definition of that column from your PME setup file and your setup for jscalendar?

Could you also tell me what versions of PME and jscalendar you are using please?

By default, jscalendar should pick up your strftime set up to use as the input format.

Thanks

Adam

 
zoycite     Joined: 03 Dec 2006   Posts: 3  
Post Posted: 2006-12-10 23:05
Back to top  Reply with quote     

Expiration in MySQL is of type int(11)

Code:
//PME
$opts['fdd']['Expiration'] = array(
  'name'     => 'Expiration',
  'select'   => 'T',
  'maxlen'   => 11,
  'options'  => 'AVPDC',
  'datemask' => 'D M j, Y g:i A',
  'strftime' => '%s',
  'default'  => '0',
  'sort'     => true,
  'calendar' => true
);


According to the generated code for PME i am using
* phpMyEdit version: unknown
* phpMyEdit.class.php core class: 1.188
* phpMyEditSetup.php script: 1.48
* generating setup script: 1.48

For js calendar i just downloded it recently the version is 1.0.

I was reading that it should pick up on the strftime mask and use it as the input in the jscalendar documentation, however when it did not, im not sure if this is a PME issue or a calendar, or maybe im just not doing something right.

 
aeiche     Joined: 06 Apr 2007   Posts: 10  
Post Posted: 2007-05-08 19:00
Back to top  Reply with quote     

I wanted to add a couple of things onto this topic because I've been struggling with this problem a bit this morning. So for new people like me:

Code:

  'sql'  => 'FROM_UNIXTIME(last_edit_date)',
  'sqlw' => 'UNIX_TIMESTAMP("$val")',

note the quotes on the sqlw. They are necessary, otherwise mySQL won't interpret the value properly.

also, make sure that the length of your field is long enough to hold the value. if you're using a timestamp, you're likely doing an INT type with an 11 character length. that's not long enough for a date-timestamp, so increase your maxlength.

 
AlvinaC0     Joined: 17 Nov 2020   Posts: 1  
Post Posted: 2020-11-17 12:49
Back to top  Reply with quote     

To configure this software. Stay tuned with this blog,. You can get assignment masters review to tips to learn education. They keep the people updated with the latest technologies and software to let them realize about the importance of it. So be vigilent and stay connected with it.

 
Purnell     Joined: 15 Dec 2020   Posts: 1  
Post Posted: 2020-12-15 09:12
Back to top  Reply with quote     

Dosłownie nie miałem pojęcia o kalendarzu Js przed przeczytaniem tego bloga. Wyjaśnili, że zajmiemy się tym, abyśmy mogli go możliwie udostępnić dla wszystkich. Wolę
kasyna online bez depozytu nowe gry kasynowe dla miłośników kasyn. Jesteśmy wdzięczni, że dzielą się z nami tak pouczającymi treściami w tak pozytywny sposób".

 
d289olge     Joined: 13 May 2021   Posts: 1  
Post Posted: 2021-05-13 14:30
Back to top  Reply with quote     

Kasyna online przygotowały dobrą sugestię dla graczy. Kasyno zostało uruchomione w 2010 roku po otrzymaniu licencji na Maltę, Curacao, która umożliwia mu świadczenie usług na terenie całej Unii Europejskiej. Witryna posiada https://chmielewska.pl/darmowe-kasyno/ wersje językowe dla większości krajów rozwiniętych w Europie. Od strony oprogramowania kasyno prezentuje się naprawdę spektakularnie, proponując gry takich dostawców jak Playson, Microgaming, Netent czy Betsoft.

Oprogramowanie i gry automaty online

Legalne kasyno zgodziło się współpracować z wieloma innymi programistami, w tym z Microgaming, Playson, Netent i Betsoft. Dzięki temu oferta kasyn jest szczególnie bogata. Gracze z całego świata mogą swobodnie poruszać się w świecie gier, w tym Dead or Alive, Immortal Romance, Game of Thrones, Starburst, a także Avalon II. Netend i Microgaming zajmują się również uruchamianiem automatów do gier z progresywnymi funduszami nagród.

Poszukiwacze graczy na eskapady na 3D gry maszyny muszą wypróbować Betsoft i Playson. Miłośnikom gier stołowych kasyno proponuje różne formy ruletki, kości, blackjacka i bakarata. Video poker jest nieco mniej popularny, ale istnieje kilka wariantów, takich jak All Aces Poker, Aces and Eights, All American, Jacks or Better i Deuces Wild. Propozycja nie obejmowała krupiera na żywo, ale kasyno proponuje pełne wsparcie dla urządzeń przenośnych - telefonów i tabletów.

Zagraj w darmowe gry i promocje

Nowi gracze mają wiele powodów, aby trzymać się kasyn online. Po pierwsze, pierwszy depozyt jest nagradzany dodatkowym free spiny, ale to nie wszystko. Ponadto gracze mogli spodziewać się bezpłatnych kuponów ruletki, regularnych zapasów i specjalnych kampanii reklamowych w ograniczonym czasie. Pojawieniu się nowej sugerowanej gry zawsze towarzyszyły dalsze bonusy, więc lojalni klienci zawsze mogą spodziewać się czegoś wyjątkowego.

 
millerkira     Joined: 20 May 2021   Posts: 1  
Post Posted: 2021-05-20 12:52
Back to top  Reply with quote     

Prezentowany przez nas automat pudzianator https://onlinecasinoprofy.com/pl/pudzianator/ to stosunkowo nowa gra od 2019 roku, dzięki czemu posiada ładną oprawę graficzną. Jest jednak dość łatwy w obsłudze, co wynika również z kilku przydatnych funkcji wprowadzonych przez producenta. Jedna to możliwość postawienia maksymalnego zakładu, druga to wybór gry automatycznej. W grze dostępne są również symbole dzikie i rozproszone, darmowe spiny, hazard, czyli ryzyko.

 
d289olge28     Joined: 18 Jun 2021   Posts: 1  
Post Posted: 2021-06-18 13:43
Back to top  Reply with quote     

Казино азарт плей предоставил игрокам отличную идею. Казино было запущено в 2010 году после получения лицензии Кюрасао, которая позволяет ему предоставлять услуги на всей территории Европейского Союза. У сайта есть языковые версии для большинства развитых европейских стран. Со стороны программного обеспечения казино выглядит действительно впечатляюще, предлагая игры от таких поставщиков, как Playson или Betsoft.

Софт и игры

Казино Azart Play согласилось сотрудничать со многими разработчиками, включая Microgaming и Betsoft. В результате предложение казино особенно богатое. Игроки со всего мира могут погрузиться в мир игр, включая Game of Thrones, вместе с Avalon II. Netend и Microgaming также занимаются запуском игровых автоматов с прогрессивными призовыми фондами.

Игрок, ищущий приключения в 3D-слотах, должен попробовать Playson. Для любителей настольных игр казино предлагает различные виды игральных костей и баккару. Видеопокер немного менее популярен, но есть такие версии, как Aces and Eights и Deuces Wild. Предложение исключает живого дилера, но казино предлагает полную поддержку портативных устройств - телефонов.

Бонусы и акции

Новые игроки - это множество причин, по которым присоединиться к казино Azart Play. Во-первых, за первый депозит начисляется дополнительный бонус, но это еще не все. Кроме того, игроки могут с нетерпением ждать бесплатных купонов на рулетку, регулярно пополнять запасы и проводить специальные рекламные кампании в течение ограниченного времени. Появление новой предлагаемой игры всегда сопровождается дополнительными бонусами, поэтому завсегдатаи всегда могут рассчитывать на что-то особенное.

 
Post new topic   Reply to topic    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy