Menu

[r7]: / includes / calendar.php  Maximize  Restore  History

Download this file

52 lines (45 with data), 1.6 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
/*
** Application name: phpCollab
** Last Edit page: 04/12/2004
** Path by root: ../includes/calendar.php
** Authors: Ceam / Fullo
**
** =============================================================================
**
** phpCollab - Project Managment
**
** -----------------------------------------------------------------------------
** Please refer to license, copyright, and credits in README.TXT
**
** -----------------------------------------------------------------------------
** FILE: calendar.php
**
** DESC: Screen: calendar js file, this file is included every time a calendar js
** popup is needed
**
** HISTORY:
** 04/12/2004 - added new document info
** 04/12/2004 - fixed [ 1077236 ] Calendar bug in Client's Project site
** -----------------------------------------------------------------------------
** TO-DO:
**
**
** =============================================================================
*/
if (file_exists("../javascript/calendar/lang/calendar-$lang.js"))
{
$calendar_lang = $lang;
}
else {
$calendar_lang = 'en';
}
$calendar_common_settings = "ifFormat: '%Y-%m-%d', singleClick: true, step: 1,weekNumbers: false";
$build = <<<END
<script type="text/javascript" src="../javascript/calendar/calendar.js"></script>
<script type="text/javascript" src="../javascript/calendar/lang/calendar-$calendar_lang.js"></script>
<script type="text/javascript" src="../javascript/calendar/calendar-setup.js"></script>
END;
echo "<link rel='stylesheet' href='../themes/".THEME."/calendar.css' type='text/css' />";
echo $build;
?>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.