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
then i replacedPHP 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>
with the code belowPHP Code:zen_draw_input_field('my_date', '', 'size="40"')
but when i click the calendarbox icon, nothing poupupPHP Code:<?php <script language="javascript">StartDate.writeControl(); StartDate.dateFormat="yyyy-MM-dd";</script> ?>
any help? thanks


Reply With Quote
...

