Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Calander Box - looking for PHP code


sales

Recommended Posts

Posted

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

Posted

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

Posted

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

Archived

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

×
×
  • Create New...