sales Posted August 16, 2010 Posted August 16, 2010 I've created a new entry screen in my site which allows the customer to enter the date in yyyy/mm/dd format. What I would like to do is give the customer the ability to select the date from a calendar. Does anyone have code that does this? Thanks Rick
FIMBLE Posted August 16, 2010 Posted August 16, 2010 this is already used in the admin section, you can use the existing code to work out how to intergrate on your catalog side. hope this helps nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
minghoo Posted August 16, 2010 Posted August 16, 2010 oscommerce has build in calender which located in admin/include/javascript/spiffyCal sameple code from events listing contribution: <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> before</head> <td class="main" valign="top"> <?php echo '<script language="javascript"><!--' . "\n" .' var dateBegins = new ctlSpiffyCalendarBox("dateBegins", "new_event", "event_start","btnDateb","' . (tep_not_null($event_start_array) ? $event_start_array : $event_info['start']) . '",scBTNMODE_CALBTN); dateBegins.writeControl(); dateBegins.dateFormat="yyyy-MM-dd";' . "\n" .'//--></script>'; ?> hope those codes are helpful. Sean My contributions: EZ new fields easy way add Qty box in your product_info.php
Recommended Posts
Archived
This topic is now archived and is closed to further replies.