Welcome, Guest
Username: Password: Remember me

TOPIC: convert calendar!

convert calendar! 4 years 6 months ago #25552

  • mrmv
  • mrmv's Avatar
  • Newcomer
  • Posts: 2
  • Karma: 0
i want to know if the calendar can be converted to persian calendar (hijri shamsi)?
The administrator has disabled public write access.

convert calendar! 3 years 5 days ago #28695

Download this
Jalali Calendar

and then in dolibarr\htdocs\main.inc.php

set this line code

//تاریخ جلالی
print '<script type="text/javascript" src="'.DOL_URL_ROOT.'/core/js/jalaliCalendar/jjalali.js"></script>'."\n";
print '<script type="text/javascript" src="'.DOL_URL_ROOT.'/core/js/jalaliCalendar/jcalendar.js"></script>'."\n";
print '<script type="text/javascript" src="'.DOL_URL_ROOT.'/core/js/jalaliCalendar/jcalendar-setup.js"></script>'."\n";
print '<script type="text/javascript" src="'.DOL_URL_ROOT.'/core/js/jalaliCalendar/jcalendar-fa.js"></script>'."\n";
print '<link rel="stylesheet" type="text/css" media="all" href="'.DOL_URL_ROOT.'/core/js/jalaliCalendar/skins/aqua/jtheme.css" title="Aqua" />'."\n";

then in

dolibarr\htdocs\core\js\lib_head.js.php in showDP function

inputField : dateFieldID, // id of the input field
button : dateFieldID+"Button", // trigger for the calendar (button ID)
ifFormat : '%Y/%m/%d', // format of the input field
dateFormat : '%Y/%m/%d', // format of the input field
dateType : 'jalali',
singleClick : true,
weekNumbers : false,
//langNumbers : true
The administrator has disabled public write access.
Time to create page: 0.065 seconds