Results 1 to 10 of 11

Hybrid View

  1. #1
    Join Date
    Jun 2011
    Posts
    63
    Plugin Contributions
    0

    Default Re: Need Help adding ctlSpiffyCalendarBox

    i added some codes to admin/orders.php and new fields to database,
    now on the orders page in admin, i have an input field in order status update form, so i can enter a date and submit it to my database table,
    it works nice with the code <?php echo zen_draw_input_field('my_date', '', 'size="40"'); ?>

    what i want to do is to change zen_draw_input_field('my_date', '', 'size="40"') to a calendarbox, then i can select a date instead of typing a date.

    so i tried adding the code
    PHP Code:
    <link rel="stylesheet" type="text/css" href="includes/javascript/spiffyCal/spiffyCal_v2_1.css"
    <
    script language="javascript" src="includes/javascript/spiffyCal/spiffyCal_v2_1.js"></script>  
    <div id="spiffycalendar" class="text"></div>
    <script language="javascript"> 
    var StartDate = new ctlSpiffyCalendarBox("StartDate", "status", "my_date", "btnDate1","",scBTNMODE_CUSTOMBLUE); 
    </script> 
    then i replaced
    PHP Code:
    zen_draw_input_field('my_date''''size="40"'
    with the code below
    PHP Code:
    <?php <script language="javascript">StartDate.writeControl(); StartDate.dateFormat="yyyy-MM-dd";</script> ?>
    but when i click the calendarbox icon, nothing poupup

    any help? thanks

  2. #2
    Join Date
    Jun 2011
    Posts
    63
    Plugin Contributions
    0

    Default Re: Need Help adding ctlSpiffyCalendarBox


  3. #3
    Join Date
    Jun 2011
    Posts
    63
    Plugin Contributions
    0

    Default Re: Need Help adding ctlSpiffyCalendarBox

    there's also a calendarbox on admin featured page,
    but i don't know why it doesn't work on admin orders page with the code i added above

  4. #4
    Join Date
    Jun 2011
    Posts
    63
    Plugin Contributions
    0

    Default Re: Need Help adding ctlSpiffyCalendarBox

    ...

  5. #5
    Join Date
    Jun 2011
    Posts
    63
    Plugin Contributions
    0

    Default Re: Need Help adding ctlSpiffyCalendarBox

    117 views, any idea?

  6. #6
    Join Date
    Jun 2011
    Posts
    63
    Plugin Contributions
    0

    Default Re: Need Help adding ctlSpiffyCalendarBox


 

 

Similar Threads

  1. Need help adding a JSCRIPT file
    By kelly60 in forum General Questions
    Replies: 4
    Last Post: 1 Feb 2014, 11:09 PM
  2. Need help adding $_SESSION variable
    By chadderuski in forum General Questions
    Replies: 4
    Last Post: 14 Jun 2010, 04:30 PM
  3. Need Help Adding Special
    By braggweb in forum Setting Up Specials and SaleMaker
    Replies: 3
    Last Post: 1 Jun 2009, 09:37 PM
  4. Need help adding banner to header
    By sheila123 in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 14 Apr 2009, 08:55 PM
  5. I need help with adding a button please help me
    By goheadtry in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 6 Jun 2007, 05:23 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg