mirror of
https://github.com/acanas/swad-core.git
synced 2024-06-22 08:25:42 +02:00
Version 17.3.4
This commit is contained in:
parent
8e5ebe3a94
commit
78961a942d
|
@ -252,13 +252,14 @@
|
|||
/****************************** Public constants *****************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
#define Log_PLATFORM_VERSION "SWAD 17.3.3 (2017-09-19)"
|
||||
#define Log_PLATFORM_VERSION "SWAD 17.3.4 (2017-09-19)"
|
||||
#define CSS_FILE "swad17.0.css"
|
||||
#define JS_FILE "swad16.206.3.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 17.3.4: Sep 19, 2017 Changes in edition of projects. (230170 lines)
|
||||
Version 17.3.3: Sep 19, 2017 Changes in listing of projects. (230169 lines)
|
||||
Version 17.3.2: Sep 19, 2017 Changes in listing of projects. (230168 lines)
|
||||
Version 17.3.1: Sep 19, 2017 Fix bugs in projects. (230089 lines)
|
||||
|
|
|
@ -1090,13 +1090,13 @@ void Prj_RequestCreatOrEditPrj (void)
|
|||
extern const char *Txt_New_project;
|
||||
extern const char *Txt_Edit_project;
|
||||
extern const char *Txt_Title;
|
||||
extern const char *Txt_Preassigned_QUESTION;
|
||||
extern const char *Txt_No;
|
||||
extern const char *Txt_Yes;
|
||||
extern const char *Txt_Description;
|
||||
extern const char *Txt_Required_knowledge;
|
||||
extern const char *Txt_Required_materials;
|
||||
extern const char *Txt_URL;
|
||||
extern const char *Txt_Preassigned_QUESTION;
|
||||
extern const char *Txt_Create_project;
|
||||
extern const char *Txt_Save;
|
||||
struct Project Prj;
|
||||
|
@ -1164,30 +1164,6 @@ void Prj_RequestCreatOrEditPrj (void)
|
|||
/***** Project start and end dates *****/
|
||||
Dat_PutFormStartEndClientLocalDateTimes (Prj.TimeUTC,Dat_FORM_SECONDS_ON);
|
||||
|
||||
/***** Preassigned? *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"%s RIGHT_MIDDLE\">"
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td class=\"LEFT_MIDDLE\">"
|
||||
"<select name=\"Preassigned\">",
|
||||
The_ClassForm[Gbl.Prefs.Theme],
|
||||
Txt_Preassigned_QUESTION);
|
||||
|
||||
fprintf (Gbl.F.Out,"<option value=\"N\"");
|
||||
if (Prj.Preassigned == Prj_NOT_PREASSIGNED)
|
||||
fprintf (Gbl.F.Out," selected=\"selected\"");
|
||||
fprintf (Gbl.F.Out,">%s</option>",Txt_No);
|
||||
|
||||
fprintf (Gbl.F.Out,"<option value=\"Y\"");
|
||||
if (Prj.Preassigned == Prj_PREASSIGNED)
|
||||
fprintf (Gbl.F.Out," selected=\"selected\"");
|
||||
fprintf (Gbl.F.Out,">%s</option>",Txt_Yes);
|
||||
|
||||
fprintf (Gbl.F.Out,"</select>"
|
||||
"</td>"
|
||||
"</tr>");
|
||||
|
||||
/***** Description of the project *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"RIGHT_TOP\">"
|
||||
|
@ -1247,6 +1223,30 @@ void Prj_RequestCreatOrEditPrj (void)
|
|||
Txt_URL,
|
||||
Cns_MAX_CHARS_WWW,Prj.URL);
|
||||
|
||||
/***** Preassigned? *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"%s RIGHT_MIDDLE\">"
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td class=\"LEFT_MIDDLE\">"
|
||||
"<select name=\"Preassigned\">",
|
||||
The_ClassForm[Gbl.Prefs.Theme],
|
||||
Txt_Preassigned_QUESTION);
|
||||
|
||||
fprintf (Gbl.F.Out,"<option value=\"N\"");
|
||||
if (Prj.Preassigned == Prj_NOT_PREASSIGNED)
|
||||
fprintf (Gbl.F.Out," selected=\"selected\"");
|
||||
fprintf (Gbl.F.Out,">%s</option>",Txt_No);
|
||||
|
||||
fprintf (Gbl.F.Out,"<option value=\"Y\"");
|
||||
if (Prj.Preassigned == Prj_PREASSIGNED)
|
||||
fprintf (Gbl.F.Out," selected=\"selected\"");
|
||||
fprintf (Gbl.F.Out,">%s</option>",Txt_Yes);
|
||||
|
||||
fprintf (Gbl.F.Out,"</select>"
|
||||
"</td>"
|
||||
"</tr>");
|
||||
|
||||
/***** Groups *****/
|
||||
Prj_ShowLstGrpsToEditProject (Prj.PrjCod);
|
||||
|
||||
|
@ -1401,10 +1401,6 @@ void Prj_RecFormProject (void)
|
|||
/* Get project title */
|
||||
Par_GetParToText ("Title",Prj.Title,Prj_MAX_BYTES_PROJECT_TITLE);
|
||||
|
||||
/* Get whether the project is preassigned */
|
||||
Prj.Preassigned = (Par_GetParToBool ("Preassigned")) ? Prj_PREASSIGNED :
|
||||
Prj_NOT_PREASSIGNED;
|
||||
|
||||
/* Get project description, required knowledge and required materials */
|
||||
Par_GetParToHTML ("Description",Prj.Description,Cns_MAX_BYTES_TEXT); // Store in HTML format (not rigorous)
|
||||
Par_GetParToHTML ("Knowledge" ,Prj.Knowledge ,Cns_MAX_BYTES_TEXT); // Store in HTML format (not rigorous)
|
||||
|
@ -1413,6 +1409,10 @@ void Prj_RecFormProject (void)
|
|||
/* Get degree WWW */
|
||||
Par_GetParToText ("URL",Prj.URL,Cns_MAX_BYTES_WWW);
|
||||
|
||||
/* Get whether the project is preassigned */
|
||||
Prj.Preassigned = (Par_GetParToBool ("Preassigned")) ? Prj_PREASSIGNED :
|
||||
Prj_NOT_PREASSIGNED;
|
||||
|
||||
/***** Adjust dates *****/
|
||||
if (Prj.TimeUTC[Dat_START_TIME] == 0)
|
||||
Prj.TimeUTC[Dat_START_TIME] = Gbl.StartExecutionTimeUTC;
|
||||
|
|
Loading…
Reference in New Issue
Block a user