1
i barely know about js code.
i try to add this hegira calendar in XOOPS but i failed.
http://hoomb.dnsalias.comthe sample html page works fine:
<HTML>
<HEAD>
<TITLE>Persian Calendar TestTITLE>
HEAD>
<Script Language="JavaScript" Src="dateScript.js">Script>
<Script Language="JavaScript" Src="persianPopupCalendar.js">Script>
<BODY>
<Form Name="myForm" Method="Post" Action="">
<input type="text" name="myFirstDate" size="30" Value="">
<a href="javascript:void(0)" onclick="showCal('calFirstDate'); return false;" HIDEFOCUS><img name="popcal" align="absmiddle" src="calbtn.gif" border="0" alt="Select Date">a>
<br>
<input type="text" name="mySecondDate" size="30" Value="">
<a href="javascript:void(0)" onclick="showCal('calSecondDate'); return false;" HIDEFOCUS><img name="popcal" align="absmiddle" src="calbtn.gif" border="0" alt="Select Date">a>
Form>
<Script Language="JavaScript">
addCalendar("calFirstDate", "Select Date", "myFirstDate", "myForm");
addCalendar("calSecondDate", "Select Date", "mySecondDate", "myForm");
Script>
BODY>
HTML>
but i dont know how to implement this in xoops.
in XOOPS 2.2 i think i find the correct line in this file:
class/xoopsform/formcalendar.php
line 119:
$code = ( '' );
and i try to edit it like this but its not work:
$code = ( '
' );
i think there is an issue in $js_options
in XOOPS 2.0 i still dont know how and where to add.
any help/suggestion would be really appreciated.this is very needed for all Persian community
just follow me in a correct way if im totally wrong in this