tyagi.prashant2 Posted January 21, 2009 Share Posted January 21, 2009 hi, can anybody tell me how i can add admin area calender in user area page.thanks in advance Link to comment Share on other sites More sharing options...
fbrace Posted January 21, 2009 Share Posted January 21, 2009 hi, can anybody tell me how i can add admin area calender in user area page.thanks in advance I am not sure what you mean as I do not have a calender in my admin section, but are you sure you installed the contribution in the catalog directories and not the catalog/admin directories? Frederick C Brace,III PA-C www.21st-tees.com (osc) www.tanda-designs.com (osc) Link to comment Share on other sites More sharing options...
roya.k Posted January 21, 2009 Share Posted January 21, 2009 [if you talk about Spiffy Calendar used in osCommerce admin interface, when you want to add a new product] 1) here is a simple form without calendar: <form name="myform" ...> ... Date: <input type="text" name="mydate" /><br /> ... </form> 2) and here , the same form , with calendar: <html> <head> .... <link rel="stylesheet" type="text/css" href="http://myoscommercesite/admin/includes/javascript/spiffyCal/spiffyCal_v2_1.css"> <script language="JavaScript" src="http://myoscommercesite/admin/includes/javascript/spiffyCal/spiffyCal_v2_1.js"></script> <script language="javascript"> var cal1=new ctlSpiffyCalendarBox("cal1", "myform", "mydate","btnDate1",""); </script> .... </head> <body><div id="spiffycalendar" class="text"> </div> ... <form name="myform" ...> Date : <script language="javascript">cal1.writeControl();</script> </form> ... where http://myoscommercesite is your site url , of course. Open source n'est pas un échange à sens unique ... La plupart du temps un simple merci ou quelques mots d'encouragement suffisent... Link to comment Share on other sites More sharing options...
roya.k Posted January 21, 2009 Share Posted January 21, 2009 Another point , if calendar's buttons are not displayed correctly: In /admin/includes/javascript/spiffyCal/spiffyCal_v2_1.js : Replace : // GLOBAL variables var scImgPath = './includes/javascript/spiffyCal/images/'; with : // GLOBAL variables var scImgPath = 'http://myoscommercesite/admin/includes/javascript/spiffyCal/images/'; Open source n'est pas un échange à sens unique ... La plupart du temps un simple merci ou quelques mots d'encouragement suffisent... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.