mirror of
https://github.com/acanas/swad-core.git
synced 2024-06-29 20:05:45 +02:00
Version 16.98
This commit is contained in:
parent
38d15a9ca1
commit
9562dfe3ef
|
@ -72,19 +72,21 @@ function writeLocalDateFromUTC (id,TimeUTC,StrToday) {
|
|||
// TimeUTC is the date-time to write in UTC UNIX time format
|
||||
// separator is HTML code to write between date and time
|
||||
|
||||
function writeLocalDateHMSFromUTC (id,TimeUTC,separator,StrToday) {
|
||||
function writeLocalDateHMSFromUTC (id,TimeUTC,Separator,StrToday,OmitDateOnSameDay,OmitSeconds) {
|
||||
// HMS: Hour, Minutes, Seconds
|
||||
var today = new Date();
|
||||
var todayYea = today.getFullYear();
|
||||
var todayMon = today.getMonth()+1;
|
||||
var todayDay = today.getDate();
|
||||
var d = new Date();
|
||||
var WriteDate;
|
||||
var Yea;
|
||||
var Mon;
|
||||
var Day;
|
||||
var Hou;
|
||||
var Min;
|
||||
var Sec;
|
||||
var StrDate;
|
||||
var StrMon;
|
||||
var StrDay;
|
||||
var StrHou;
|
||||
|
@ -95,64 +97,50 @@ function writeLocalDateHMSFromUTC (id,TimeUTC,separator,StrToday) {
|
|||
Yea = d.getFullYear();
|
||||
Mon = d.getMonth() + 1;
|
||||
Day = d.getDate();
|
||||
|
||||
if (OmitDateOnSameDay)
|
||||
WriteDate = (Yea != writeLocalDateHMSFromUTC.lastd.getFullYear() ||
|
||||
Mon != writeLocalDateHMSFromUTC.lastd.getMonth() + 1 ||
|
||||
Day != writeLocalDateHMSFromUTC.lastd.getDate())
|
||||
else
|
||||
WriteDate = true;
|
||||
|
||||
writeLocalDateHMSFromUTC.lastd = d; // Remember current date for the next call
|
||||
|
||||
/* Set date */
|
||||
if (WriteDate) {
|
||||
StrMon = ((Mon < 10) ? '-0' : '-') + Mon;
|
||||
StrDay = ((Day < 10) ? '-0' : '-') + Day;
|
||||
|
||||
if (Yea == todayYea &&
|
||||
Mon == todayMon &&
|
||||
Day == todayDay && // Today
|
||||
StrToday.length)
|
||||
StrDate = StrToday;
|
||||
else
|
||||
StrDate = Yea.toString() + StrMon + StrDay;
|
||||
}
|
||||
else
|
||||
StrDate = '';
|
||||
|
||||
/* Set time */
|
||||
Hou = d.getHours();
|
||||
Min = d.getMinutes();
|
||||
Sec = d.getSeconds();
|
||||
StrMon = ((Mon < 10) ? '-0' : '-') + Mon;
|
||||
StrDay = ((Day < 10) ? '-0' : '-') + Day;
|
||||
StrHou = ((Hou < 10) ? '0' : '') + Hou;
|
||||
StrHou = ((Hou < 10) ? '0' : '') + Hou;
|
||||
StrMin = ((Min < 10) ? ':0' : ':') + Min;
|
||||
if (Sec)
|
||||
StrSec = ((Sec < 10) ? ':0' : ':') + Sec;
|
||||
else
|
||||
if (OmitSeconds)
|
||||
StrSec = '';
|
||||
if (Yea == todayYea && Mon == todayMon && Day == todayDay && // Today
|
||||
StrToday.length)
|
||||
document.getElementById(id).innerHTML = StrToday +
|
||||
separator +
|
||||
StrHou + StrMin + StrSec;
|
||||
else
|
||||
document.getElementById(id).innerHTML = Yea + StrMon + StrDay +
|
||||
separator +
|
||||
StrHou + StrMin + StrSec;
|
||||
}
|
||||
else {
|
||||
Sec = d.getSeconds();
|
||||
if (Sec)
|
||||
StrSec = ((Sec < 10) ? ':0' : ':') + Sec;
|
||||
else
|
||||
StrSec = '';
|
||||
}
|
||||
|
||||
function writeLocalDateHMFromUTC (id,TimeUTC,separator,StrToday) {
|
||||
// HM: Hour, Minutes
|
||||
var today = new Date();
|
||||
var todayYea = today.getFullYear();
|
||||
var todayMon = today.getMonth()+1;
|
||||
var todayDay = today.getDate();
|
||||
var d = new Date();
|
||||
var Yea;
|
||||
var Mon;
|
||||
var Day;
|
||||
var Hou;
|
||||
var Min;
|
||||
var StrMon;
|
||||
var StrDay;
|
||||
var StrHou;
|
||||
var StrMin;
|
||||
|
||||
d.setTime(TimeUTC * 1000);
|
||||
Yea = d.getFullYear();
|
||||
Mon = d.getMonth() + 1;
|
||||
Day = d.getDate();
|
||||
Hou = d.getHours();
|
||||
Min = d.getMinutes();
|
||||
StrMon = ((Mon < 10) ? '0' : '') + Mon;
|
||||
StrDay = ((Day < 10) ? '0' : '') + Day;
|
||||
StrHou = ((Hou < 10) ? '0' : '') + Hou;
|
||||
StrMin = ((Min < 10) ? '0' : '') + Min;
|
||||
if (Yea == todayYea && Mon == todayMon && Day == todayDay && // Today
|
||||
StrToday.length)
|
||||
document.getElementById(id).innerHTML = StrToday +
|
||||
separator +
|
||||
StrHou + ':' + StrMin;
|
||||
else
|
||||
document.getElementById(id).innerHTML = Yea + '-' + StrMon + '-' + StrDay +
|
||||
separator +
|
||||
StrHou + ':' + StrMin;
|
||||
/* Write date and time */
|
||||
document.getElementById(id).innerHTML = StrDate + Separator +
|
||||
StrHou + StrMin + StrSec;
|
||||
}
|
||||
|
||||
// Set local date-time form fields from UTC time
|
|
@ -606,7 +606,7 @@ static void Agd_ShowOneEvent (Agd_AgendaType_t AgendaType,long AgdCod)
|
|||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td id=\"agd_date_start_%u\" class=\"%s LEFT_TOP COLOR%u\">"
|
||||
"<script type=\"text/javascript\">"
|
||||
"writeLocalDateHMSFromUTC('agd_date_start_%u',%ld,'<br />','%s');"
|
||||
"writeLocalDateHMSFromUTC('agd_date_start_%u',%ld,'<br />','%s',false,true);"
|
||||
"</script>"
|
||||
"</td>",
|
||||
UniqueId,
|
||||
|
@ -619,14 +619,16 @@ static void Agd_ShowOneEvent (Agd_AgendaType_t AgendaType,long AgdCod)
|
|||
UniqueId++;
|
||||
fprintf (Gbl.F.Out,"<td id=\"agd_date_end_%u\" class=\"%s LEFT_TOP COLOR%u\">"
|
||||
"<script type=\"text/javascript\">"
|
||||
"writeLocalDateHMSFromUTC('agd_date_end_%u',%ld,'<br />','%s');"
|
||||
"writeLocalDateHMSFromUTC('agd_date_end_%u',%ld,'<br />','%s',true,true);"
|
||||
"</script>"
|
||||
"</td>",
|
||||
UniqueId,
|
||||
AgdEvent.Hidden ? Dat_TimeStatusClassHidden[AgdEvent.TimeStatus] :
|
||||
Dat_TimeStatusClassVisible[AgdEvent.TimeStatus],
|
||||
Gbl.RowEvenOdd,
|
||||
UniqueId,AgdEvent.TimeUTC[Agd_END_TIME],Txt_Today);
|
||||
UniqueId,AgdEvent.TimeUTC[Agd_END_TIME],
|
||||
|
||||
Txt_Today);
|
||||
|
||||
/* Event */
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP COLOR%u\">"
|
||||
|
@ -637,7 +639,7 @@ static void Agd_ShowOneEvent (Agd_AgendaType_t AgendaType,long AgdCod)
|
|||
"ASG_TITLE",
|
||||
AgdEvent.Event);
|
||||
|
||||
/* Event */
|
||||
/* Location */
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP COLOR%u\">"
|
||||
"<div class=\"%s\">%s</div>"
|
||||
"</td>"
|
||||
|
|
|
@ -316,7 +316,7 @@ static void Asg_ShowOneAssignment (long AsgCod)
|
|||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td id=\"asg_date_start_%u\" class=\"%s LEFT_TOP COLOR%u\">"
|
||||
"<script type=\"text/javascript\">"
|
||||
"writeLocalDateHMSFromUTC('asg_date_start_%u',%ld,'<br />','%s');"
|
||||
"writeLocalDateHMSFromUTC('asg_date_start_%u',%ld,'<br />','%s',false,false);"
|
||||
"</script>"
|
||||
"</td>",
|
||||
UniqueId,
|
||||
|
@ -331,7 +331,7 @@ static void Asg_ShowOneAssignment (long AsgCod)
|
|||
UniqueId++;
|
||||
fprintf (Gbl.F.Out,"<td id=\"asg_date_end_%u\" class=\"%s LEFT_TOP COLOR%u\">"
|
||||
"<script type=\"text/javascript\">"
|
||||
"writeLocalDateHMSFromUTC('asg_date_end_%u',%ld,'<br />','%s');"
|
||||
"writeLocalDateHMSFromUTC('asg_date_end_%u',%ld,'<br />','%s',true,false);"
|
||||
"</script>"
|
||||
"</td>",
|
||||
UniqueId,
|
||||
|
|
|
@ -372,7 +372,7 @@ static void Att_ShowOneAttEvent (struct AttendanceEvent *Att,bool ShowOnlyThisAt
|
|||
fprintf (Gbl.F.Out," COLOR%u",Gbl.RowEvenOdd);
|
||||
fprintf (Gbl.F.Out,"\">"
|
||||
"<script type=\"text/javascript\">"
|
||||
"writeLocalDateHMSFromUTC('att_date_start_%u',%ld,'<br />','%s');"
|
||||
"writeLocalDateHMSFromUTC('att_date_start_%u',%ld,'<br />','%s',false,false);"
|
||||
"</script>"
|
||||
"</td>",
|
||||
UniqueId,Att->TimeUTC[Att_START_TIME],Txt_Today);
|
||||
|
@ -388,7 +388,7 @@ static void Att_ShowOneAttEvent (struct AttendanceEvent *Att,bool ShowOnlyThisAt
|
|||
fprintf (Gbl.F.Out," COLOR%u",Gbl.RowEvenOdd);
|
||||
fprintf (Gbl.F.Out,"\">"
|
||||
"<script type=\"text/javascript\">"
|
||||
"writeLocalDateHMSFromUTC('att_date_end_%u',%ld,'<br />','%s');"
|
||||
"writeLocalDateHMSFromUTC('att_date_end_%u',%ld,'<br />','%s',true,false);"
|
||||
"</script>"
|
||||
"</td>",
|
||||
UniqueId,Att->TimeUTC[Att_END_TIME],Txt_Today);
|
||||
|
@ -3107,7 +3107,7 @@ static void Att_ListEventsToSelect (Att_TypeOfView_t TypeOfView)
|
|||
"<td class=\"DAT LEFT_MIDDLE COLOR%u\">"
|
||||
"<span id=\"att_date_start_%u\"></span> %s"
|
||||
"<script type=\"text/javascript\">"
|
||||
"writeLocalDateHMSFromUTC('att_date_start_%u',%ld,' ','%s');"
|
||||
"writeLocalDateHMSFromUTC('att_date_start_%u',%ld,' ','%s',false,false);"
|
||||
"</script>"
|
||||
"</td>"
|
||||
"<td class=\"DAT RIGHT_MIDDLE COLOR%u\">"
|
||||
|
@ -3515,7 +3515,7 @@ static void Att_ListAttEventsForAStd (unsigned NumStd,struct UsrData *UsrDat)
|
|||
" alt=\"%s\" title=\"%s\" class=\"ICO20x20\" />"
|
||||
"<span id=\"att_date_start_%u\"></span> %s"
|
||||
"<script type=\"text/javascript\">"
|
||||
"writeLocalDateHMSFromUTC('att_date_start_%u',%ld,' ','%s');"
|
||||
"writeLocalDateHMSFromUTC('att_date_start_%u',%ld,' ','%s',false,false);"
|
||||
"</script>"
|
||||
"</td>"
|
||||
"</tr>",
|
||||
|
|
|
@ -185,13 +185,15 @@
|
|||
/****************************** Public constants *****************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
#define Log_PLATFORM_VERSION "SWAD 16.97.1 (2016-12-12)"
|
||||
#define Log_PLATFORM_VERSION "SWAD 16.98 (2016-12-12)"
|
||||
#define CSS_FILE "swad16.97.css"
|
||||
#define JS_FILE "swad16.90.2.js"
|
||||
#define JS_FILE "swad16.98.js"
|
||||
|
||||
// Number of lines (includes comments but not blank lines) has been got with the following command:
|
||||
// nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*?.h sql/swad*.sql | tail -1
|
||||
/*
|
||||
Version 16.98: Dec 12, 2016 Changes in help about homework.
|
||||
Changes in script to write local date and time. (210739 lines)
|
||||
Version 16.97.1: Dec 12, 2016 Changes in translation about announcements of exams. (210748 lines)
|
||||
Version 16.97: Dec 12, 2016 Exam announcements can be hidden. (210739 lines)
|
||||
2 changes necessary in database:
|
||||
|
|
|
@ -3042,6 +3042,7 @@ static bool Brw_CheckIfQuotaExceded (void)
|
|||
|
||||
void Brw_AskEditWorksCrs (void)
|
||||
{
|
||||
extern const char *Hlp_ASSESSMENT_Homework_for_teachers;
|
||||
extern const char *Txt_Users;
|
||||
extern const char *Txt_View_homework;
|
||||
unsigned NumTotalUsrs;
|
||||
|
@ -3064,7 +3065,8 @@ void Brw_AskEditWorksCrs (void)
|
|||
Gbl.Usrs.LstUsrs[Rol_STUDENT].NumUsrs;
|
||||
|
||||
/***** Draw class photos to select users *****/
|
||||
Lay_StartRoundFrame (NULL,Txt_Users,NULL,NULL);
|
||||
Lay_StartRoundFrame (NULL,Txt_Users,
|
||||
NULL,Hlp_ASSESSMENT_Homework_for_teachers);
|
||||
|
||||
/***** Show form to select the groups *****/
|
||||
Grp_ShowFormToSelectSeveralGroups (ActReqAsgWrkCrs);
|
||||
|
@ -3130,7 +3132,7 @@ static void Brw_ShowFileBrowserNormal (void)
|
|||
|
||||
static void Brw_ShowFileBrowsersAsgWrkCrs (void)
|
||||
{
|
||||
extern const char *Hlp_ASSESSMENT_Works;
|
||||
extern const char *Hlp_ASSESSMENT_Homework_for_teachers;
|
||||
extern const char *Txt_Assignments_and_other_works;
|
||||
extern const char *Txt_You_must_select_one_ore_more_users;
|
||||
const char *Ptr;
|
||||
|
@ -3147,7 +3149,7 @@ static void Brw_ShowFileBrowsersAsgWrkCrs (void)
|
|||
|
||||
/***** Header of the table with the list of users *****/
|
||||
Lay_StartRoundFrameTable ("100%",Txt_Assignments_and_other_works,
|
||||
Brw_PutIconShowFigure,Hlp_ASSESSMENT_Works,0);
|
||||
Brw_PutIconShowFigure,Hlp_ASSESSMENT_Homework_for_teachers,0);
|
||||
|
||||
/***** List the assignments and works of the selected users *****/
|
||||
Ptr = Gbl.Usrs.Select.All;
|
||||
|
@ -3455,7 +3457,8 @@ static void Brw_ShowFileBrowser (void)
|
|||
extern const char *Hlp_COURSE_Documents;
|
||||
extern const char *Hlp_COURSE_Private;
|
||||
extern const char *Hlp_COURSE_Shared;
|
||||
extern const char *Hlp_ASSESSMENT_Works;
|
||||
extern const char *Hlp_ASSESSMENT_Homework_for_students;
|
||||
extern const char *Hlp_ASSESSMENT_Homework_for_teachers;
|
||||
extern const char *Hlp_ASSESSMENT_Marks;
|
||||
extern const char *Hlp_PROFILE_Briefcase;
|
||||
|
||||
|
@ -3511,16 +3514,16 @@ static void Brw_ShowFileBrowser (void)
|
|||
Brw_HelpOfFileBrowser[Brw_ADMI_DOCUM_CRS] = Hlp_COURSE_Documents; // Brw_ADMI_DOCUM_CRS
|
||||
Brw_HelpOfFileBrowser[Brw_ADMI_SHARE_CRS] = Hlp_COURSE_Shared; // Brw_ADMI_SHARE_CRS
|
||||
Brw_HelpOfFileBrowser[Brw_ADMI_SHARE_GRP] = Hlp_COURSE_Shared; // Brw_ADMI_SHARE_GRP
|
||||
Brw_HelpOfFileBrowser[Brw_ADMI_WORKS_USR] = Hlp_ASSESSMENT_Works; // Brw_ADMI_WORKS_USR
|
||||
Brw_HelpOfFileBrowser[Brw_ADMI_WORKS_CRS] = NULL; // Brw_ADMI_WORKS_CRS
|
||||
Brw_HelpOfFileBrowser[Brw_ADMI_WORKS_USR] = Hlp_ASSESSMENT_Homework_for_students; // Brw_ADMI_WORKS_USR
|
||||
Brw_HelpOfFileBrowser[Brw_ADMI_WORKS_CRS] = Hlp_ASSESSMENT_Homework_for_teachers; // Brw_ADMI_WORKS_CRS
|
||||
Brw_HelpOfFileBrowser[Brw_ADMI_MARKS_CRS] = Hlp_ASSESSMENT_Marks; // Brw_ADMI_MARKS_CRS
|
||||
Brw_HelpOfFileBrowser[Brw_ADMI_BRIEF_USR] = Hlp_PROFILE_Briefcase; // Brw_ADMI_BRIEF_USR
|
||||
Brw_HelpOfFileBrowser[Brw_SHOW_DOCUM_GRP] = Hlp_COURSE_Documents; // Brw_SHOW_DOCUM_GRP
|
||||
Brw_HelpOfFileBrowser[Brw_ADMI_DOCUM_GRP] = Hlp_COURSE_Documents; // Brw_ADMI_DOCUM_GRP
|
||||
Brw_HelpOfFileBrowser[Brw_SHOW_MARKS_GRP] = Hlp_ASSESSMENT_Marks; // Brw_SHOW_MARKS_GRP
|
||||
Brw_HelpOfFileBrowser[Brw_ADMI_MARKS_GRP] = Hlp_ASSESSMENT_Marks; // Brw_ADMI_MARKS_GRP
|
||||
Brw_HelpOfFileBrowser[Brw_ADMI_ASSIG_USR] = Hlp_ASSESSMENT_Works; // Brw_ADMI_ASSIG_USR
|
||||
Brw_HelpOfFileBrowser[Brw_ADMI_ASSIG_CRS] = NULL; // Brw_ADMI_ASSIG_CRS
|
||||
Brw_HelpOfFileBrowser[Brw_ADMI_ASSIG_USR] = Hlp_ASSESSMENT_Homework_for_students; // Brw_ADMI_ASSIG_USR
|
||||
Brw_HelpOfFileBrowser[Brw_ADMI_ASSIG_CRS] = Hlp_ASSESSMENT_Homework_for_teachers; // Brw_ADMI_ASSIG_CRS
|
||||
Brw_HelpOfFileBrowser[Brw_SHOW_DOCUM_DEG] = Hlp_DEGREE_Documents; // Brw_SHOW_DOCUM_DEG
|
||||
Brw_HelpOfFileBrowser[Brw_ADMI_DOCUM_DEG] = Hlp_DEGREE_Documents; // Brw_ADMI_DOCUM_DEG
|
||||
Brw_HelpOfFileBrowser[Brw_SHOW_DOCUM_CTR] = Hlp_CENTRE_Documents; // Brw_SHOW_DOCUM_CTR
|
||||
|
@ -6148,7 +6151,7 @@ static void Brw_WriteDatesAssignment (void)
|
|||
Gbl.FileBrowser.Asg.Open ? "ASG_LST_DATE_GREEN" :
|
||||
"ASG_LST_DATE_RED");
|
||||
fprintf (Gbl.F.Out,"<script type=\"text/javascript\">"
|
||||
"writeLocalDateHMSFromUTC('asg_start_date_%u',%ld,' ','%s');"
|
||||
"writeLocalDateHMSFromUTC('asg_start_date_%u',%ld,' ','%s',false,false);"
|
||||
"</script>",
|
||||
UniqueId,
|
||||
(long) Gbl.FileBrowser.Asg.TimeUTC[Asg_START_TIME],Txt_Today);
|
||||
|
@ -6168,7 +6171,7 @@ static void Brw_WriteDatesAssignment (void)
|
|||
Gbl.FileBrowser.Asg.Open ? "ASG_LST_DATE_GREEN" :
|
||||
"ASG_LST_DATE_RED");
|
||||
fprintf (Gbl.F.Out,"<script type=\"text/javascript\">"
|
||||
"writeLocalDateHMSFromUTC('asg_end_date_%u',%ld,' ','%s');"
|
||||
"writeLocalDateHMSFromUTC('asg_end_date_%u',%ld,' ','%s',true,false);"
|
||||
"</script>",
|
||||
UniqueId,
|
||||
(long) Gbl.FileBrowser.Asg.TimeUTC[Asg_END_TIME],Txt_Today);
|
||||
|
@ -6211,7 +6214,7 @@ static void Brw_WriteFileSizeAndDate (struct FileMetadata *FileMetadata)
|
|||
UniqueId++;
|
||||
fprintf (Gbl.F.Out,"<span id=\"filedate%u\"></span>"
|
||||
"<script type=\"text/javascript\">"
|
||||
"writeLocalDateHMSFromUTC('filedate%u',%ld,' ','%s');"
|
||||
"writeLocalDateHMSFromUTC('filedate%u',%ld,' ','%s',false,false);"
|
||||
"</script>",
|
||||
UniqueId,
|
||||
UniqueId,(long) FileMetadata->Time,Txt_Today);
|
||||
|
@ -9375,7 +9378,7 @@ void Brw_ShowFileMetadata (void)
|
|||
"</td>"
|
||||
"<td id=\"filedate\" class=\"DAT LEFT_MIDDLE\">"
|
||||
"<script type=\"text/javascript\">"
|
||||
"writeLocalDateHMSFromUTC('filedate',%ld,' ','%s');"
|
||||
"writeLocalDateHMSFromUTC('filedate',%ld,' ','%s',false,false);"
|
||||
"</script>"
|
||||
"</td>"
|
||||
"</tr>",
|
||||
|
|
|
@ -3481,7 +3481,7 @@ void For_ListForumThrs (long ThrCods[Pag_ITEMS_PER_PAGE],struct Pagination *Pagi
|
|||
UniqueId++;
|
||||
fprintf (Gbl.F.Out,"<td id=\"date_%u\" class=\"%s LEFT_TOP %s\">"
|
||||
"<script type=\"text/javascript\">"
|
||||
"writeLocalDateHMSFromUTC('date_%u',%ld,'<br />','%s');"
|
||||
"writeLocalDateHMSFromUTC('date_%u',%ld,'<br />','%s',false,false);"
|
||||
"</script>"
|
||||
"</td>",
|
||||
UniqueId,Style,BgColor,
|
||||
|
|
|
@ -1951,7 +1951,7 @@ static void Grp_WriteGrpHead (struct GroupType *GrpTyp)
|
|||
fprintf (Gbl.F.Out,"<br />%s: "
|
||||
"<span id=\"open_time_%u\"></span>"
|
||||
"<script type=\"text/javascript\">"
|
||||
"writeLocalDateHMSFromUTC('open_time_%u',%ld,' ','%s');"
|
||||
"writeLocalDateHMSFromUTC('open_time_%u',%ld,' ','%s',false,false);"
|
||||
"</script>",
|
||||
Txt_Opening_of_groups,
|
||||
UniqueId,
|
||||
|
|
|
@ -116,7 +116,8 @@ const char *Hlp_ASSESSMENT_Assignments = WIKI "ASSESSMENT.Assign
|
|||
const char *Hlp_ASSESSMENT_Assignments_new_assignment = WIKI "ASSESSMENT.Assignments#new-assignment";
|
||||
const char *Hlp_ASSESSMENT_Assignments_edit_assignment = WIKI "ASSESSMENT.Assignments#edit-assignment";
|
||||
|
||||
const char *Hlp_ASSESSMENT_Works = WIKI "ASSESSMENT.Works";
|
||||
const char *Hlp_ASSESSMENT_Homework_for_students = WIKI "ASSESSMENT.Homework#for-students";
|
||||
const char *Hlp_ASSESSMENT_Homework_for_teachers = WIKI "ASSESSMENT.Homework#for-teachers";
|
||||
|
||||
const char *Hlp_ASSESSMENT_Tests = WIKI "ASSESSMENT.Tests";
|
||||
const char *Hlp_ASSESSMENT_Tests_test_results = WIKI "ASSESSMENT.Tests#test-results";
|
||||
|
|
|
@ -3510,7 +3510,7 @@ void Msg_WriteMsgDate (time_t TimeUTC,const char *ClassBackground)
|
|||
|
||||
/***** Write date and time *****/
|
||||
fprintf (Gbl.F.Out,"<script type=\"text/javascript\">"
|
||||
"writeLocalDateHMSFromUTC('date_%u',%ld,' ','%s');"
|
||||
"writeLocalDateHMSFromUTC('date_%u',%ld,' ','%s',false,false);"
|
||||
"</script>",
|
||||
UniqueId,(long) TimeUTC,Txt_Today);
|
||||
|
||||
|
|
|
@ -711,7 +711,7 @@ static void Not_DrawANotice (Not_Listing_t TypeNoticesListing,
|
|||
Act_FormEnd ();
|
||||
}
|
||||
fprintf (Gbl.F.Out,"<script type=\"text/javascript\">"
|
||||
"writeLocalDateHMSFromUTC('notice_date_%u',%ld,'<br />','%s');"
|
||||
"writeLocalDateHMSFromUTC('notice_date_%u',%ld,'<br />','%s',false,false);"
|
||||
"</script>"
|
||||
"</div>",
|
||||
UniqueId,(long) TimeUTC,Txt_Today);
|
||||
|
|
|
@ -1449,7 +1449,7 @@ static void Soc_WriteDateTime (time_t TimeUTC)
|
|||
// This must be out of the div where the output is written
|
||||
// because it will be evaluated in a loop in JavaScript
|
||||
fprintf (Gbl.F.Out,"<script type=\"text/javascript\">"
|
||||
"writeLocalDateHMFromUTC('%s',%ld,' ','%s');"
|
||||
"writeLocalDateHMSFromUTC('%s',%ld,' ','%s',false,true);"
|
||||
"</script>",
|
||||
IdDateTime,(long) TimeUTC,Txt_Today);
|
||||
}
|
||||
|
|
|
@ -1695,7 +1695,7 @@ static void Sta_ShowDetailedAccessesList (unsigned long NumRows,MYSQL_RES *mysql
|
|||
/* Write the date-time (row[3]) */
|
||||
fprintf (Gbl.F.Out,"<td id=\"date_%u\" class=\"LOG CENTER_TOP COLOR%u\">"
|
||||
"<script type=\"text/javascript\">"
|
||||
"writeLocalDateHMSFromUTC('date_%u',%ld,' ','%s');"
|
||||
"writeLocalDateHMSFromUTC('date_%u',%ld,' ','%s',false,false);"
|
||||
"</script>"
|
||||
"</td>",
|
||||
UniqueId,Gbl.RowEvenOdd,
|
||||
|
|
|
@ -452,7 +452,7 @@ static void Svy_ShowOneSurvey (long SvyCod,struct SurveyQuestion *SvyQst,
|
|||
fprintf (Gbl.F.Out," COLOR%u",Gbl.RowEvenOdd);
|
||||
fprintf (Gbl.F.Out,"\">"
|
||||
"<script type=\"text/javascript\">"
|
||||
"writeLocalDateHMSFromUTC('svy_date_start_%u',%ld,'<br />','%s');"
|
||||
"writeLocalDateHMSFromUTC('svy_date_start_%u',%ld,'<br />','%s',false,false);"
|
||||
"</script>"
|
||||
"</td>",
|
||||
UniqueId,Svy.TimeUTC[Svy_START_TIME],Txt_Today);
|
||||
|
@ -468,7 +468,7 @@ static void Svy_ShowOneSurvey (long SvyCod,struct SurveyQuestion *SvyQst,
|
|||
fprintf (Gbl.F.Out," COLOR%u",Gbl.RowEvenOdd);
|
||||
fprintf (Gbl.F.Out,"\">"
|
||||
"<script type=\"text/javascript\">"
|
||||
"writeLocalDateHMSFromUTC('svy_date_end_%u',%ld,'<br />','%s');"
|
||||
"writeLocalDateHMSFromUTC('svy_date_end_%u',%ld,'<br />','%s',true,false);"
|
||||
"</script>"
|
||||
"</td>",
|
||||
UniqueId,Svy.TimeUTC[Svy_END_TIME],Txt_Today);
|
||||
|
|
|
@ -672,7 +672,7 @@ static bool Tst_CheckIfNextTstAllowed (void)
|
|||
"<span id=\"date_next_test\">"
|
||||
"</span>"
|
||||
"<script type=\"text/javascript\">"
|
||||
"writeLocalDateHMSFromUTC('date_next_test',%ld,' ','%s');"
|
||||
"writeLocalDateHMSFromUTC('date_next_test',%ld,' ','%s',false,false);"
|
||||
"</script>"
|
||||
"</div>",
|
||||
(long) TimeNextTestUTC,Txt_Today);
|
||||
|
@ -2813,7 +2813,7 @@ static void Tst_ListOneOrMoreQuestionsToEdit (unsigned long NumRows,MYSQL_RES *m
|
|||
fprintf (Gbl.F.Out,"<td id=\"tst_date_%u\""
|
||||
" class=\"DAT_SMALL CENTER_TOP COLOR%u\">"
|
||||
"<script type=\"text/javascript\">"
|
||||
"writeLocalDateHMSFromUTC('tst_date_%u',%ld,'<br />','%s');"
|
||||
"writeLocalDateHMSFromUTC('tst_date_%u',%ld,'<br />','%s',false,false);"
|
||||
"</script>"
|
||||
"</td>",
|
||||
UniqueId,Gbl.RowEvenOdd,
|
||||
|
@ -7252,7 +7252,7 @@ static void Tst_ShowTestResults (struct UsrData *UsrDat)
|
|||
UniqueId++;
|
||||
fprintf (Gbl.F.Out,"<td id =\"tst_date_%u\" class=\"%s RIGHT_TOP COLOR%u\">"
|
||||
"<script type=\"text/javascript\">"
|
||||
"writeLocalDateHMSFromUTC('tst_date_%u',%ld,' ','%s');"
|
||||
"writeLocalDateHMSFromUTC('tst_date_%u',%ld,' ','%s',false,false);"
|
||||
"</script>"
|
||||
"</td>",
|
||||
UniqueId,ClassDat,Gbl.RowEvenOdd,
|
||||
|
@ -7637,7 +7637,7 @@ void Tst_ShowOneTestResult (void)
|
|||
"</td>"
|
||||
"<td id=\"test\" class=\"DAT LEFT_TOP\">"
|
||||
"<script type=\"text/javascript\">"
|
||||
"writeLocalDateHMSFromUTC('test',%ld,' ','%s');"
|
||||
"writeLocalDateHMSFromUTC('test',%ld,' ','%s',false,false);"
|
||||
"</script>"
|
||||
"</td>"
|
||||
"</tr>",
|
||||
|
|
Loading…
Reference in New Issue
Block a user