mirror of https://github.com/acanas/swad-core.git
Version 14.118
This commit is contained in:
parent
5c8c8c8826
commit
e349de8b32
|
@ -417,7 +417,6 @@ void ID_ShowFormOthIDs (void)
|
|||
void ID_ShowFormChangeUsrID (const struct UsrData *UsrDat,bool ItsMe)
|
||||
{
|
||||
extern const char *The_ClassFormul[The_NUM_THEMES];
|
||||
extern const char *Txt_Removal_not_allowed;
|
||||
extern const char *Txt_ID;
|
||||
extern const char *Txt_Remove_ID_X;
|
||||
extern const char *Txt_ID_X_confirmed;
|
||||
|
@ -448,11 +447,7 @@ void ID_ShowFormChangeUsrID (const struct UsrData *UsrDat,bool ItsMe)
|
|||
{
|
||||
if (ItsMe && UsrDat->IDs.List[NumID].Confirmed) // I can not remove my confirmed IDs
|
||||
/* Put disabled icon to remove user's ID */
|
||||
fprintf (Gbl.F.Out,"<img src=\"%s/deloff16x16.gif\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
" class=\"ICON16x16\" />",
|
||||
Gbl.Prefs.IconsURL,
|
||||
Txt_Removal_not_allowed,Txt_Removal_not_allowed);
|
||||
Lay_PutIconRemovalNotAllowed ();
|
||||
else // I can remove
|
||||
{
|
||||
/* Form to remove user's ID */
|
||||
|
|
|
@ -1138,7 +1138,6 @@ void Ctr_WriteSelectorOfCentre (Act_Action_t NextAction)
|
|||
static void Ctr_ListCentresForEdition (void)
|
||||
{
|
||||
extern const char *Txt_Centres_of_INSTITUTION_X;
|
||||
extern const char *Txt_Removal_not_allowed;
|
||||
extern const char *Txt_Remove_centre;
|
||||
extern const char *Txt_Another_place;
|
||||
extern const char *Txt_CENTRE_STATUS[Ctr_NUM_STATUS_TXT];
|
||||
|
@ -1177,13 +1176,10 @@ static void Ctr_ListCentresForEdition (void)
|
|||
/* Put icon to remove centre */
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"BM\">");
|
||||
if (Ctr->NumDegs || Ctr->NumTchs || // Centre has degrees or teachers ==> deletion forbidden
|
||||
if (Ctr->NumDegs ||
|
||||
Ctr->NumTchs || // Centre has degrees or teachers ==> deletion forbidden
|
||||
!ICanEdit)
|
||||
fprintf (Gbl.F.Out,"<img src=\"%s/deloff16x16.gif\""
|
||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />",
|
||||
Gbl.Prefs.IconsURL,
|
||||
Txt_Removal_not_allowed,
|
||||
Txt_Removal_not_allowed);
|
||||
Lay_PutIconRemovalNotAllowed ();
|
||||
else
|
||||
{
|
||||
Act_FormStart (ActRemCtr);
|
||||
|
@ -1974,7 +1970,6 @@ static void Ctr_PutFormToCreateCentre (void)
|
|||
{
|
||||
extern const char *The_ClassFormul[The_NUM_THEMES];
|
||||
extern const char *Txt_New_centre_of_INSTITUTION_X;
|
||||
extern const char *Txt_Removal_not_allowed;
|
||||
extern const char *Txt_Another_place;
|
||||
extern const char *Txt_CENTRE_STATUS[Ctr_NUM_STATUS_TXT];
|
||||
extern const char *Txt_Create_centre;
|
||||
|
@ -2001,13 +1996,9 @@ static void Ctr_PutFormToCreateCentre (void)
|
|||
|
||||
/***** Put disabled icon to remove centre *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"BM\">"
|
||||
"<img src=\"%s/deloff16x16.gif\""
|
||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
|
||||
"</td>",
|
||||
Gbl.Prefs.IconsURL,
|
||||
Txt_Removal_not_allowed,
|
||||
Txt_Removal_not_allowed);
|
||||
"<td class=\"BM\">");
|
||||
Lay_PutIconRemovalNotAllowed ();
|
||||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
||||
/***** Centre code *****/
|
||||
fprintf (Gbl.F.Out,"<td></td>");
|
||||
|
|
|
@ -103,11 +103,12 @@
|
|||
/****************************** Public constants *****************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
#define Log_PLATFORM_VERSION "SWAD 14.117.17 (2015/07/22)"
|
||||
#define Log_PLATFORM_VERSION "SWAD 14.118 (2015/07/22)"
|
||||
|
||||
// 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 14.118: Jul 22, 2015 Function to put a disabled icon indicating that removal is not allowed. (185361 lines)
|
||||
Version 14.117.17:Jul 22, 2015 Checking "alt" and "title" in all images. (185437 lines)
|
||||
Version 14.117.16:Jul 22, 2015 Checking "alt" and "title" in all images. (185368 lines)
|
||||
Version 14.117.15:Jul 22, 2015 Checking "alt" and "title" in all images. (185279 lines)
|
||||
|
|
|
@ -1273,7 +1273,6 @@ void Cty_FreeListCountries (void)
|
|||
static void Cty_ListCountriesForEdition (void)
|
||||
{
|
||||
extern const char *Txt_Countries;
|
||||
extern const char *Txt_Removal_not_allowed;
|
||||
extern const char *Txt_Remove_country;
|
||||
extern const char *Txt_STR_LANG_NAME[Txt_NUM_LANGUAGES];
|
||||
unsigned NumCty;
|
||||
|
@ -1298,10 +1297,7 @@ static void Cty_ListCountriesForEdition (void)
|
|||
1 + Txt_NUM_LANGUAGES);
|
||||
if (Cty->NumInss ||
|
||||
Cty->NumUsrs) // Country has institutions or users ==> deletion forbidden
|
||||
fprintf (Gbl.F.Out,"<img src=\"%s/deloff16x16.gif\""
|
||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />",
|
||||
Gbl.Prefs.IconsURL,
|
||||
Txt_Removal_not_allowed,Txt_Removal_not_allowed);
|
||||
Lay_PutIconRemovalNotAllowed ();
|
||||
else
|
||||
{
|
||||
Act_FormStart (ActRemCty);
|
||||
|
|
|
@ -1339,7 +1339,6 @@ static void Crs_ListCoursesForSeeing (void)
|
|||
static void Crs_ListCoursesForEdition (void)
|
||||
{
|
||||
extern const char *Txt_Courses_of_DEGREE_X;
|
||||
extern const char *Txt_Removal_not_allowed;
|
||||
extern const char *Txt_Remove_course;
|
||||
extern const char *Txt_YEAR_OF_DEGREE[1+Deg_MAX_YEARS_PER_DEGREE];
|
||||
extern const char *Txt_SEMESTER_OF_YEAR[1+2];
|
||||
|
@ -1381,11 +1380,7 @@ static void Crs_ListCoursesForEdition (void)
|
|||
"<td class=\"BM\">");
|
||||
if (Crs->NumUsrs || // Course has users ==> deletion forbidden
|
||||
!ICanEdit)
|
||||
fprintf (Gbl.F.Out,"<img src=\"%s/deloff16x16.gif\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
" class=\"ICON16x16\" />",
|
||||
Gbl.Prefs.IconsURL,
|
||||
Txt_Removal_not_allowed,Txt_Removal_not_allowed);
|
||||
Lay_PutIconRemovalNotAllowed ();
|
||||
else // Crs->NumUsrs == 0 && ICanEdit
|
||||
{
|
||||
Act_FormStart (ActRemCrs);
|
||||
|
@ -1658,7 +1653,6 @@ static Crs_Status_t Crs_GetStatusBitsFromStatusTxt (Crs_StatusTxt_t StatusTxt)
|
|||
static void Crs_PutFormToCreateCourse (void)
|
||||
{
|
||||
extern const char *Txt_New_course_of_DEGREE_X;
|
||||
extern const char *Txt_Removal_not_allowed;
|
||||
extern const char *Txt_YEAR_OF_DEGREE[1+Deg_MAX_YEARS_PER_DEGREE];
|
||||
extern const char *Txt_SEMESTER_OF_YEAR[1+2];
|
||||
extern const char *Txt_COURSE_STATUS[Crs_NUM_STATUS_TXT];
|
||||
|
@ -1686,12 +1680,9 @@ static void Crs_PutFormToCreateCourse (void)
|
|||
|
||||
/***** Disabled icon to remove course *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"BM\">"
|
||||
"<img src=\"%s/deloff16x16.gif\""
|
||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
|
||||
"</td>",
|
||||
Gbl.Prefs.IconsURL,
|
||||
Txt_Removal_not_allowed,Txt_Removal_not_allowed);
|
||||
"<td class=\"BM\">");
|
||||
Lay_PutIconRemovalNotAllowed ();
|
||||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
||||
/***** Course code *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"DAT\""
|
||||
|
|
|
@ -1149,7 +1149,6 @@ static void Deg_ListDegreeTypesForSeeing (void)
|
|||
static void Deg_ListDegreeTypesForEdition (void)
|
||||
{
|
||||
extern const char *Txt_Types_of_degree;
|
||||
extern const char *Txt_Removal_not_allowed;
|
||||
extern const char *Txt_Remove_type_of_degree;
|
||||
unsigned NumDegTyp;
|
||||
|
||||
|
@ -1166,11 +1165,7 @@ static void Deg_ListDegreeTypesForEdition (void)
|
|||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"BM\">");
|
||||
if (Gbl.Degs.DegTypes.Lst[NumDegTyp].NumDegs) // Degree type has degrees ==> deletion forbidden
|
||||
fprintf (Gbl.F.Out,"<img src=\"%s/deloff16x16.gif\""
|
||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />",
|
||||
Txt_Removal_not_allowed,
|
||||
Txt_Removal_not_allowed,
|
||||
Gbl.Prefs.IconsURL);
|
||||
Lay_PutIconRemovalNotAllowed ();
|
||||
else
|
||||
{
|
||||
Act_FormStart (ActRemDegTyp);
|
||||
|
@ -1390,7 +1385,6 @@ static void Deg_ListOneDegreeForSeeing (struct Degree *Deg,unsigned NumDeg)
|
|||
static void Deg_ListDegreesForEdition (void)
|
||||
{
|
||||
extern const char *Txt_Degrees_of_CENTRE_X;
|
||||
extern const char *Txt_Removal_not_allowed;
|
||||
extern const char *Txt_Remove_degree;
|
||||
extern const char *Txt_DEGREE_With_year_for_optional_courses;
|
||||
extern const char *Txt_DEGREE_Without_year_for_optional_courses;
|
||||
|
@ -1429,11 +1423,7 @@ static void Deg_ListDegreesForEdition (void)
|
|||
"<td class=\"BM\">");
|
||||
if (Deg->NumCourses || // Degree has courses ==> deletion forbidden
|
||||
!ICanEdit)
|
||||
fprintf (Gbl.F.Out,"<img src=\"%s/deloff16x16.gif\""
|
||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />",
|
||||
Gbl.Prefs.IconsURL,
|
||||
Txt_Removal_not_allowed,
|
||||
Txt_Removal_not_allowed);
|
||||
Lay_PutIconRemovalNotAllowed ();
|
||||
else
|
||||
{
|
||||
Act_FormStart (ActRemDeg);
|
||||
|
@ -1818,7 +1808,6 @@ static void Deg_PutFormToCreateDegType (void)
|
|||
static void Deg_PutFormToCreateDegree (void)
|
||||
{
|
||||
extern const char *Txt_New_degree_of_CENTRE_X;
|
||||
extern const char *Txt_Removal_not_allowed;
|
||||
extern const char *Txt_DEGREE_STATUS[Deg_NUM_STATUS_TXT];
|
||||
extern const char *Txt_Create_degree;
|
||||
struct Degree *Deg;
|
||||
|
@ -1847,13 +1836,9 @@ static void Deg_PutFormToCreateDegree (void)
|
|||
|
||||
/***** Put disabled icon to remove degree *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"BM\">"
|
||||
"<img src=\"%s/deloff16x16.gif\""
|
||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
|
||||
"</td>",
|
||||
Gbl.Prefs.IconsURL,
|
||||
Txt_Removal_not_allowed,
|
||||
Txt_Removal_not_allowed);
|
||||
"<td class=\"BM\">");
|
||||
Lay_PutIconRemovalNotAllowed ();
|
||||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
||||
/***** Degree code *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"DAT\""
|
||||
|
|
|
@ -483,7 +483,6 @@ unsigned Dpt_GetNumDepartmentsInInstitution (long InsCod)
|
|||
static void Dpt_ListDepartmentsForEdition (void)
|
||||
{
|
||||
extern const char *Txt_Departments;
|
||||
extern const char *Txt_Removal_not_allowed;
|
||||
extern const char *Txt_Remove_department;
|
||||
extern const char *Txt_Another_institution;
|
||||
unsigned NumDpt;
|
||||
|
@ -511,11 +510,7 @@ static void Dpt_ListDepartmentsForEdition (void)
|
|||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"BM\">");
|
||||
if (Dpt->NumTchs) // Department has teachers ==> deletion forbidden
|
||||
fprintf (Gbl.F.Out,"<img src=\"%s/deloff16x16.gif\""
|
||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />",
|
||||
Txt_Removal_not_allowed,
|
||||
Txt_Removal_not_allowed,
|
||||
Gbl.Prefs.IconsURL);
|
||||
Lay_PutIconRemovalNotAllowed ();
|
||||
else
|
||||
{
|
||||
Act_FormStart (ActRemDpt);
|
||||
|
|
|
@ -4998,7 +4998,6 @@ static void Brw_PutIconRemoveFile (Brw_FileType_t FileType,
|
|||
const char *PathInTree,const char *FileName,const char *FileNameToShow)
|
||||
{
|
||||
extern const char *Txt_Remove_FILE_OR_LINK_X;
|
||||
extern const char *Txt_Removal_not_allowed;
|
||||
|
||||
fprintf (Gbl.F.Out,"<td class=\"BM%d\">",Gbl.RowEvenOdd);
|
||||
|
||||
|
@ -5024,19 +5023,15 @@ static void Brw_PutIconRemoveFile (Brw_FileType_t FileType,
|
|||
Brw_ParamListFiles (FileType,PathInTree,FileName);
|
||||
sprintf (Gbl.Title,Txt_Remove_FILE_OR_LINK_X,FileNameToShow);
|
||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16B\" />",
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
" class=\"ICON16x16\" />",
|
||||
Gbl.Prefs.IconsURL,
|
||||
Gbl.Title,
|
||||
Gbl.Title);
|
||||
Act_FormEnd ();
|
||||
}
|
||||
else
|
||||
fprintf (Gbl.F.Out,"<img src=\"%s/deloff16x16.gif\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
" class=\"ICON16x16B\" />",
|
||||
Gbl.Prefs.IconsURL,
|
||||
Txt_Removal_not_allowed,
|
||||
Txt_Removal_not_allowed);
|
||||
Lay_PutIconRemovalNotAllowed ();
|
||||
fprintf (Gbl.F.Out,"</td>");
|
||||
}
|
||||
|
||||
|
@ -5047,7 +5042,6 @@ static void Brw_PutIconRemoveFile (Brw_FileType_t FileType,
|
|||
static void Brw_PutIconRemoveDir (const char *PathInTree,const char *FileName,const char *FileNameToShow)
|
||||
{
|
||||
extern const char *Txt_Remove_folder_X;
|
||||
extern const char *Txt_Removal_not_allowed;
|
||||
|
||||
fprintf (Gbl.F.Out,"<td class=\"BM%d\">",Gbl.RowEvenOdd);
|
||||
|
||||
|
@ -5073,19 +5067,15 @@ static void Brw_PutIconRemoveDir (const char *PathInTree,const char *FileName,co
|
|||
Brw_ParamListFiles (Brw_IS_FOLDER,PathInTree,FileName);
|
||||
sprintf (Gbl.Title,Txt_Remove_folder_X,FileNameToShow);
|
||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16B\" />",
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
" class=\"ICON16x16\" />",
|
||||
Gbl.Prefs.IconsURL,
|
||||
Gbl.Title,
|
||||
Gbl.Title);
|
||||
Act_FormEnd ();
|
||||
}
|
||||
else
|
||||
fprintf (Gbl.F.Out,"<img src=\"%s/deloff16x16.gif\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
" class=\"ICON16x16B\" />",
|
||||
Gbl.Prefs.IconsURL,
|
||||
Txt_Removal_not_allowed,
|
||||
Txt_Removal_not_allowed);
|
||||
Lay_PutIconRemovalNotAllowed ();
|
||||
fprintf (Gbl.F.Out,"</td>");
|
||||
}
|
||||
|
||||
|
|
28
swad_group.c
28
swad_group.c
|
@ -2051,7 +2051,6 @@ static void Grp_WriteRowGrp (struct Group *Grp,bool Highlight)
|
|||
static void Grp_PutFormToCreateGroupType (void)
|
||||
{
|
||||
extern const char *Txt_New_type_of_group;
|
||||
extern const char *Txt_Removal_not_allowed;
|
||||
extern const char *Txt_It_is_optional_to_choose_a_group;
|
||||
extern const char *Txt_It_is_mandatory_to_choose_a_group;
|
||||
extern const char *Txt_A_student_can_belong_to_several_groups;
|
||||
|
@ -2071,13 +2070,9 @@ static void Grp_PutFormToCreateGroupType (void)
|
|||
|
||||
/***** Put disabled icon to remove group type *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"BM\">"
|
||||
"<img src=\"%s/deloff16x16.gif\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
" class=\"ICON16x16\" />"
|
||||
"</td>",
|
||||
Gbl.Prefs.IconsURL,
|
||||
Txt_Removal_not_allowed,Txt_Removal_not_allowed);
|
||||
"<td class=\"BM\">");
|
||||
Lay_PutIconRemovalNotAllowed ();
|
||||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
||||
/***** Name of group type *****/
|
||||
fprintf (Gbl.F.Out,"<td style=\"text-align:left; vertical-align:middle;\">"
|
||||
|
@ -2167,7 +2162,6 @@ static void Grp_PutFormToCreateGroupType (void)
|
|||
static void Grp_PutFormToCreateGroup (void)
|
||||
{
|
||||
extern const char *Txt_New_group;
|
||||
extern const char *Txt_Removal_not_allowed;
|
||||
extern const char *Txt_Group_closed;
|
||||
extern const char *Txt_File_zones_disabled;
|
||||
extern const char *Txt_Create_group;
|
||||
|
@ -2184,11 +2178,9 @@ static void Grp_PutFormToCreateGroup (void)
|
|||
|
||||
/***** Put disabled icons to remove group, open group and archive zone *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"BM\">"
|
||||
"<img src=\"%s/deloff16x16.gif\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
" class=\"ICON16x16\" />"
|
||||
"</td>"
|
||||
"<td class=\"BM\">");
|
||||
Lay_PutIconRemovalNotAllowed ();
|
||||
fprintf (Gbl.F.Out,"</td>"
|
||||
"<td class=\"BM\">"
|
||||
"<img src=\"%s/closed_off16x16.gif\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
|
@ -2200,11 +2192,11 @@ static void Grp_PutFormToCreateGroup (void)
|
|||
" class=\"ICON16x16\" />"
|
||||
"</td>",
|
||||
Gbl.Prefs.IconsURL,
|
||||
Txt_Removal_not_allowed,Txt_Removal_not_allowed,
|
||||
Txt_Group_closed,
|
||||
Txt_Group_closed,
|
||||
Gbl.Prefs.IconsURL,
|
||||
Txt_Group_closed,Txt_Group_closed,
|
||||
Gbl.Prefs.IconsURL,
|
||||
Txt_File_zones_disabled,Txt_File_zones_disabled);
|
||||
Txt_File_zones_disabled,
|
||||
Txt_File_zones_disabled);
|
||||
|
||||
/***** Group type *****/
|
||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center; vertical-align:middle;\">"
|
||||
|
|
|
@ -1082,7 +1082,6 @@ void Ins_WriteSelectorOfInstitution (Act_Action_t NextAction)
|
|||
static void Ins_ListInstitutionsForEdition (void)
|
||||
{
|
||||
extern const char *Txt_Institutions_of_COUNTRY_X;
|
||||
extern const char *Txt_Removal_not_allowed;
|
||||
extern const char *Txt_Remove_institution;
|
||||
extern const char *Txt_Another_country;
|
||||
extern const char *Txt_INSTITUTION_STATUS[Ins_NUM_STATUS_TXT];
|
||||
|
@ -1121,11 +1120,7 @@ static void Ins_ListInstitutionsForEdition (void)
|
|||
"<td class=\"BM\">");
|
||||
if (Ins->NumCtrs ||
|
||||
Ins->NumUsrs) // Institution has centres or users ==> deletion forbidden
|
||||
fprintf (Gbl.F.Out,"<img src=\"%s/deloff16x16.gif\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
" class=\"ICON16x16\" />",
|
||||
Gbl.Prefs.IconsURL,
|
||||
Txt_Removal_not_allowed,Txt_Removal_not_allowed);
|
||||
Lay_PutIconRemovalNotAllowed ();
|
||||
else
|
||||
{
|
||||
Act_FormStart (ActRemIns);
|
||||
|
@ -1751,7 +1746,6 @@ void Ins_RemoveLogo (void)
|
|||
static void Ins_PutFormToCreateInstitution (void)
|
||||
{
|
||||
extern const char *Txt_New_institution_of_COUNTRY_X;
|
||||
extern const char *Txt_Removal_not_allowed;
|
||||
extern const char *Txt_INSTITUTION_STATUS[Ins_NUM_STATUS_TXT];
|
||||
extern const char *Txt_Create_institution;
|
||||
struct Institution *Ins;
|
||||
|
@ -1780,12 +1774,9 @@ static void Ins_PutFormToCreateInstitution (void)
|
|||
|
||||
/***** Put icon to remove institution *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"BM\">"
|
||||
"<img src=\"%s/deloff16x16.gif\""
|
||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
|
||||
"</td>",
|
||||
Gbl.Prefs.IconsURL,
|
||||
Txt_Removal_not_allowed,Txt_Removal_not_allowed);
|
||||
"<td class=\"BM\">");
|
||||
Lay_PutIconRemovalNotAllowed ();
|
||||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
||||
/***** Institution code *****/
|
||||
fprintf (Gbl.F.Out,"<td></td>");
|
||||
|
|
|
@ -1030,6 +1030,22 @@ void Lay_PutCalculateIconWithText (const char *Alt,const char *Text)
|
|||
Text);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
/************ Put a icon indicating that removal is not allowed **************/
|
||||
/*****************************************************************************/
|
||||
|
||||
void Lay_PutIconRemovalNotAllowed (void)
|
||||
{
|
||||
extern const char *Txt_Removal_not_allowed;
|
||||
|
||||
fprintf (Gbl.F.Out,"<img src=\"%s/deloff16x16.gif\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
" class=\"ICON16x16\" />",
|
||||
Gbl.Prefs.IconsURL,
|
||||
Txt_Removal_not_allowed,
|
||||
Txt_Removal_not_allowed);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
/********************** Put a button to submit a form ************************/
|
||||
/*****************************************************************************/
|
||||
|
|
|
@ -99,6 +99,8 @@ void Lay_PutFormToEdit (Act_Action_t Action);
|
|||
void Lay_PutIconWithText (const char *Icon,const char *Alt,const char *Text);
|
||||
void Lay_PutCalculateIconWithText (const char *Alt,const char *Text);
|
||||
|
||||
void Lay_PutIconRemovalNotAllowed (void);
|
||||
|
||||
void Lay_PutCreateButton (const char *Text);
|
||||
void Lay_PutCreateButtonInline (const char *Text);
|
||||
void Lay_PutConfirmButton (const char *Text);
|
||||
|
|
|
@ -408,7 +408,6 @@ void Plc_FreeListPlaces (void)
|
|||
static void Plc_ListPlacesForEdition (void)
|
||||
{
|
||||
extern const char *Txt_Places;
|
||||
extern const char *Txt_Removal_not_allowed;
|
||||
extern const char *Txt_Remove_place;
|
||||
unsigned NumPlc;
|
||||
struct Place *Plc;
|
||||
|
@ -429,11 +428,7 @@ static void Plc_ListPlacesForEdition (void)
|
|||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"BM\">");
|
||||
if (Plc->NumCtrs) // Place has centres ==> deletion forbidden
|
||||
fprintf (Gbl.F.Out,"<img src=\"%s/deloff16x16.gif\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
" class=\"ICON16x16\" />",
|
||||
Txt_Removal_not_allowed,Txt_Removal_not_allowed,
|
||||
Gbl.Prefs.IconsURL);
|
||||
Lay_PutIconRemovalNotAllowed ();
|
||||
else
|
||||
{
|
||||
Act_FormStart (ActRemPlc);
|
||||
|
|
|
@ -268,7 +268,6 @@ void Rec_ListFieldsRecordsForEdition (void)
|
|||
void Rec_ShowFormCreateRecordField (void)
|
||||
{
|
||||
extern const char *Txt_New_record_field;
|
||||
extern const char *Txt_Removal_not_allowed;
|
||||
extern const char *Txt_RECORD_FIELD_VISIBILITY_MENU[Rec_NUM_TYPES_VISIBILITY];
|
||||
extern const char *Txt_Create_record_field;
|
||||
Rec_VisibilityRecordFields_t Vis;
|
||||
|
@ -284,14 +283,9 @@ void Rec_ShowFormCreateRecordField (void)
|
|||
|
||||
/***** Write disabled icon to remove the field *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"BM\">"
|
||||
"<img src=\"%s/deloff16x16.gif\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
" class=\"ICON16x16\" />"
|
||||
"</td>",
|
||||
Gbl.Prefs.IconsURL,
|
||||
Txt_Removal_not_allowed,
|
||||
Txt_Removal_not_allowed);
|
||||
"<td class=\"BM\">");
|
||||
Lay_PutIconRemovalNotAllowed ();
|
||||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
||||
/***** Field name *****/
|
||||
fprintf (Gbl.F.Out,"<td style=\"text-align:left; vertical-align:middle;\">"
|
||||
|
|
|
@ -514,7 +514,6 @@ static void Syl_ShowSyllabus (Inf_InfoType_t InfoType)
|
|||
|
||||
static void Syl_ShowRowSyllabus (Inf_InfoType_t InfoType,unsigned NumItem,int Level,int *CodItem,const char *Text,bool NewItem)
|
||||
{
|
||||
extern const char *Txt_Removal_not_allowed;
|
||||
extern const char *Txt_Remove;
|
||||
extern const char *Txt_Move_up_X_and_its_subsections;
|
||||
extern const char *Txt_Move_up_X;
|
||||
|
@ -548,12 +547,7 @@ static void Syl_ShowRowSyllabus (Inf_InfoType_t InfoType,unsigned NumItem,int Le
|
|||
/***** Icon to remove the row *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"BM%d\">",Gbl.RowEvenOdd);
|
||||
if (LstItemsSyllabus.Lst[NumItem].HasChildren)
|
||||
fprintf (Gbl.F.Out,"<img src=\"%s/deloff16x16.gif\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
" class=\"ICON16x16\" />",
|
||||
Gbl.Prefs.IconsURL,
|
||||
Txt_Removal_not_allowed,
|
||||
Txt_Removal_not_allowed);
|
||||
Lay_PutIconRemovalNotAllowed ();
|
||||
else
|
||||
{
|
||||
Act_FormStart (InfoType == Inf_LECTURES ? ActDelItmSylLec :
|
||||
|
|
Loading…
Reference in New Issue