Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Calander Box - looking for PHP code


sales

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...