Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • luke66 Friend
    #164876

    I have a module that requires a date input and I have added this code at the top of my default template file:


    // no direct access
    defined('_JEXEC') or die;

    JHTML::_('behavior.calendar');

    $today = mktime(0, 0, 0, date("m") , date("d"), date("Y"));
    $in2days = mktime(0, 0, 0, date("m") , date("d")+2, date("Y"));

    I create the date field using the following code which worked in Joomla 1.5 using a different template.

    <?php echo JHTML::calendar(date("Y-m-d", $today), 'checkin_date', 'checkin_date',"%Y-%m-%d", 'class="inputbox" style="width: 72px; padding-right: 4px;" maxlength="10"'); ?>

    I am using the JA_Portfolio template. Any ideas what is wrong?

    luke66 Friend
    #394899

    Sorry, I fixed it myself. There was a clash with CSS styleshet and the problem disappeared when I modified the stylesheet. Thanks

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 1 voice, and was last updated by  luke66 13 years, 5 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum