mirror of
https://github.com/acanas/swad-core.git
synced 2024-06-03 07:15:26 +02:00
Version 15.57
This commit is contained in:
parent
38ded6a0d5
commit
37d95d4b00
|
@ -1804,6 +1804,48 @@ a:hover img.CENTRE_PHOTO_SHOW
|
||||||
min-width:312px;
|
min-width:312px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/************* Forms to edit institution, centre, degree, course *************/
|
||||||
|
.CODE
|
||||||
|
{
|
||||||
|
min-width:60px;
|
||||||
|
text-align:right;
|
||||||
|
vertical-align:middle;
|
||||||
|
}
|
||||||
|
.INPUT_INS_CODE
|
||||||
|
{
|
||||||
|
width:90px;
|
||||||
|
}
|
||||||
|
.INPUT_DEGREE
|
||||||
|
{
|
||||||
|
width:90px;
|
||||||
|
}
|
||||||
|
.INPUT_SHORT_NAME
|
||||||
|
{
|
||||||
|
width:90px;
|
||||||
|
}
|
||||||
|
.INPUT_FULL_NAME
|
||||||
|
{
|
||||||
|
width:180px;
|
||||||
|
}
|
||||||
|
.INPUT_WWW
|
||||||
|
{
|
||||||
|
width:90px;
|
||||||
|
}
|
||||||
|
.STATUS
|
||||||
|
{
|
||||||
|
min-width:90px;
|
||||||
|
text-align:left;
|
||||||
|
vertical-align:middle;
|
||||||
|
}
|
||||||
|
.INPUT_STATUS
|
||||||
|
{
|
||||||
|
width:80px;
|
||||||
|
}
|
||||||
|
.INPUT_REQUESTER
|
||||||
|
{
|
||||||
|
width:90px;
|
||||||
|
}
|
||||||
|
|
||||||
/********************************** Page foot ********************************/
|
/********************************** Page foot ********************************/
|
||||||
@media only screen and (max-width: 899px)
|
@media only screen and (max-width: 899px)
|
||||||
{ /* For mobile-phones */
|
{ /* For mobile-phones */
|
|
@ -355,7 +355,8 @@ static void Ban_ListBannersForEdition (void)
|
||||||
Act_FormStart (ActRenBanSho);
|
Act_FormStart (ActRenBanSho);
|
||||||
Ban_PutParamBanCod (Ban->BanCod);
|
Ban_PutParamBanCod (Ban->BanCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"ShortName\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"ShortName\""
|
||||||
" size=\"12\" maxlength=\"%u\" value=\"%s\""
|
" maxlength=\"%u\" value=\"%s\""
|
||||||
|
" class=\"INPUT_SHORT_NAME\""
|
||||||
" onchange=\"document.getElementById('%s').submit();\" />",
|
" onchange=\"document.getElementById('%s').submit();\" />",
|
||||||
Ban_MAX_LENGTH_SHORT_NAME,Ban->ShortName,Gbl.FormId);
|
Ban_MAX_LENGTH_SHORT_NAME,Ban->ShortName,Gbl.FormId);
|
||||||
Act_FormEnd ();
|
Act_FormEnd ();
|
||||||
|
@ -366,7 +367,8 @@ static void Ban_ListBannersForEdition (void)
|
||||||
Act_FormStart (ActRenBanFul);
|
Act_FormStart (ActRenBanFul);
|
||||||
Ban_PutParamBanCod (Ban->BanCod);
|
Ban_PutParamBanCod (Ban->BanCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"FullName\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"FullName\""
|
||||||
" size=\"24\" maxlength=\"%u\" value=\"%s\""
|
" maxlength=\"%u\" value=\"%s\""
|
||||||
|
" class=\"INPUT_FULL_NAME\""
|
||||||
" onchange=\"document.getElementById('%s').submit();\" />",
|
" onchange=\"document.getElementById('%s').submit();\" />",
|
||||||
Ban_MAX_LENGTH_FULL_NAME,Ban->FullName,Gbl.FormId);
|
Ban_MAX_LENGTH_FULL_NAME,Ban->FullName,Gbl.FormId);
|
||||||
Act_FormEnd ();
|
Act_FormEnd ();
|
||||||
|
@ -388,7 +390,8 @@ static void Ban_ListBannersForEdition (void)
|
||||||
Act_FormStart (ActChgBanWWW);
|
Act_FormStart (ActChgBanWWW);
|
||||||
Ban_PutParamBanCod (Ban->BanCod);
|
Ban_PutParamBanCod (Ban->BanCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"WWW\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"WWW\""
|
||||||
" size=\"24\" maxlength=\"%u\" value=\"%s\""
|
" maxlength=\"%u\" value=\"%s\""
|
||||||
|
" class=\"INPUT_WWW\""
|
||||||
" onchange=\"document.getElementById('%s').submit();\" />",
|
" onchange=\"document.getElementById('%s').submit();\" />",
|
||||||
Cns_MAX_LENGTH_WWW,Ban->WWW,Gbl.FormId);
|
Cns_MAX_LENGTH_WWW,Ban->WWW,Gbl.FormId);
|
||||||
Act_FormEnd ();
|
Act_FormEnd ();
|
||||||
|
@ -749,14 +752,16 @@ static void Ban_PutFormToCreateBanner (void)
|
||||||
/***** Banner short name *****/
|
/***** Banner short name *****/
|
||||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
||||||
"<input type=\"text\" name=\"ShortName\""
|
"<input type=\"text\" name=\"ShortName\""
|
||||||
" size=\"12\" maxlength=\"%u\" value=\"%s\" />"
|
" maxlength=\"%u\" value=\"%s\""
|
||||||
|
" class=\"INPUT_SHORT_NAME\" />"
|
||||||
"</td>",
|
"</td>",
|
||||||
Ban_MAX_LENGTH_SHORT_NAME,Ban->ShortName);
|
Ban_MAX_LENGTH_SHORT_NAME,Ban->ShortName);
|
||||||
|
|
||||||
/***** Banner full name *****/
|
/***** Banner full name *****/
|
||||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
||||||
"<input type=\"text\" name=\"FullName\""
|
"<input type=\"text\" name=\"FullName\""
|
||||||
" size=\"24\" maxlength=\"%u\" value=\"%s\" />"
|
" maxlength=\"%u\" value=\"%s\""
|
||||||
|
" class=\"INPUT_FULL_NAME\" />"
|
||||||
"</td>",
|
"</td>",
|
||||||
Ban_MAX_LENGTH_FULL_NAME,Ban->FullName);
|
Ban_MAX_LENGTH_FULL_NAME,Ban->FullName);
|
||||||
|
|
||||||
|
@ -770,7 +775,8 @@ static void Ban_PutFormToCreateBanner (void)
|
||||||
/***** Banner WWW *****/
|
/***** Banner WWW *****/
|
||||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
||||||
"<input type=\"text\" name=\"WWW\""
|
"<input type=\"text\" name=\"WWW\""
|
||||||
" size=\"24\" maxlength=\"%u\" value=\"%s\" />"
|
" maxlength=\"%u\" value=\"%s\""
|
||||||
|
" class=\"INPUT_WWW\" />"
|
||||||
"</td>"
|
"</td>"
|
||||||
"</tr>",
|
"</tr>",
|
||||||
Cns_MAX_LENGTH_WWW,Ban->WWW);
|
Cns_MAX_LENGTH_WWW,Ban->WWW);
|
||||||
|
|
|
@ -1197,8 +1197,8 @@ static void Ctr_ListCentresForEdition (void)
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Centre code */
|
/* Centre code */
|
||||||
fprintf (Gbl.F.Out,"<td class=\"DAT RIGHT_MIDDLE\">"
|
fprintf (Gbl.F.Out,"<td class=\"DAT CODE\">"
|
||||||
"%ld "
|
"%ld"
|
||||||
"</td>",
|
"</td>",
|
||||||
Ctr->CtrCod);
|
Ctr->CtrCod);
|
||||||
|
|
||||||
|
@ -1272,7 +1272,8 @@ static void Ctr_ListCentresForEdition (void)
|
||||||
Act_FormStart (ActRenCtrSho);
|
Act_FormStart (ActRenCtrSho);
|
||||||
Ctr_PutParamOtherCtrCod (Ctr->CtrCod);
|
Ctr_PutParamOtherCtrCod (Ctr->CtrCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"ShortName\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"ShortName\""
|
||||||
" size=\"10\" maxlength=\"%u\" value=\"%s\""
|
" maxlength=\"%u\" value=\"%s\""
|
||||||
|
" class=\"INPUT_SHORT_NAME\""
|
||||||
" onchange=\"document.getElementById('%s').submit();\" />",
|
" onchange=\"document.getElementById('%s').submit();\" />",
|
||||||
Ctr_MAX_LENGTH_CENTRE_SHORT_NAME,Ctr->ShortName,Gbl.FormId);
|
Ctr_MAX_LENGTH_CENTRE_SHORT_NAME,Ctr->ShortName,Gbl.FormId);
|
||||||
Act_FormEnd ();
|
Act_FormEnd ();
|
||||||
|
@ -1289,7 +1290,8 @@ static void Ctr_ListCentresForEdition (void)
|
||||||
Act_FormStart (ActRenCtrFul);
|
Act_FormStart (ActRenCtrFul);
|
||||||
Ctr_PutParamOtherCtrCod (Ctr->CtrCod);
|
Ctr_PutParamOtherCtrCod (Ctr->CtrCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"FullName\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"FullName\""
|
||||||
" size=\"30\" maxlength=\"%u\" value=\"%s\""
|
" maxlength=\"%u\" value=\"%s\""
|
||||||
|
" class=\"INPUT_FULL_NAME\""
|
||||||
" onchange=\"document.getElementById('%s').submit();\" />",
|
" onchange=\"document.getElementById('%s').submit();\" />",
|
||||||
Ctr_MAX_LENGTH_CENTRE_FULL_NAME,Ctr->FullName,Gbl.FormId);
|
Ctr_MAX_LENGTH_CENTRE_FULL_NAME,Ctr->FullName,Gbl.FormId);
|
||||||
Act_FormEnd ();
|
Act_FormEnd ();
|
||||||
|
@ -1306,7 +1308,8 @@ static void Ctr_ListCentresForEdition (void)
|
||||||
Act_FormStart (ActChgCtrWWW);
|
Act_FormStart (ActChgCtrWWW);
|
||||||
Ctr_PutParamOtherCtrCod (Ctr->CtrCod);
|
Ctr_PutParamOtherCtrCod (Ctr->CtrCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"WWW\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"WWW\""
|
||||||
" size=\"10\" maxlength=\"%u\" value=\"%s\""
|
" maxlength=\"%u\" value=\"%s\""
|
||||||
|
" class=\"INPUT_WWW\""
|
||||||
" onchange=\"document.getElementById('%s').submit();\" />",
|
" onchange=\"document.getElementById('%s').submit();\" />",
|
||||||
Cns_MAX_LENGTH_WWW,Ctr->WWW,Gbl.FormId);
|
Cns_MAX_LENGTH_WWW,Ctr->WWW,Gbl.FormId);
|
||||||
Act_FormEnd ();
|
Act_FormEnd ();
|
||||||
|
@ -1337,13 +1340,13 @@ static void Ctr_ListCentresForEdition (void)
|
||||||
|
|
||||||
/* Centre status */
|
/* Centre status */
|
||||||
StatusTxt = Ctr_GetStatusTxtFromStatusBits (Ctr->Status);
|
StatusTxt = Ctr_GetStatusTxtFromStatusBits (Ctr->Status);
|
||||||
fprintf (Gbl.F.Out,"<td class=\"DAT LEFT_MIDDLE\">");
|
fprintf (Gbl.F.Out,"<td class=\"DAT STATUS\">");
|
||||||
if (Gbl.Usrs.Me.LoggedRole >= Rol_INS_ADM &&
|
if (Gbl.Usrs.Me.LoggedRole >= Rol_INS_ADM &&
|
||||||
StatusTxt == Ctr_STATUS_PENDING)
|
StatusTxt == Ctr_STATUS_PENDING)
|
||||||
{
|
{
|
||||||
Act_FormStart (ActChgCtrSta);
|
Act_FormStart (ActChgCtrSta);
|
||||||
Ctr_PutParamOtherCtrCod (Ctr->CtrCod);
|
Ctr_PutParamOtherCtrCod (Ctr->CtrCod);
|
||||||
fprintf (Gbl.F.Out,"<select name=\"Status\" style=\"width:100px;\""
|
fprintf (Gbl.F.Out,"<select name=\"Status\" class=\"INPUT_STATUS\""
|
||||||
" onchange=\"document.getElementById('%s').submit();\">"
|
" onchange=\"document.getElementById('%s').submit();\">"
|
||||||
"<option value=\"%u\" selected=\"selected\">%s</option>"
|
"<option value=\"%u\" selected=\"selected\">%s</option>"
|
||||||
"<option value=\"%u\">%s</option>"
|
"<option value=\"%u\">%s</option>"
|
||||||
|
@ -1362,10 +1365,10 @@ static void Ctr_ListCentresForEdition (void)
|
||||||
/* Centre requester */
|
/* Centre requester */
|
||||||
UsrDat.UsrCod = Ctr->RequesterUsrCod;
|
UsrDat.UsrCod = Ctr->RequesterUsrCod;
|
||||||
Usr_ChkUsrCodAndGetAllUsrDataFromUsrCod (&UsrDat);
|
Usr_ChkUsrCodAndGetAllUsrDataFromUsrCod (&UsrDat);
|
||||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\" style=\"width:125px;\">"
|
fprintf (Gbl.F.Out,"<td class=\"INPUT_REQUESTER LEFT_TOP\">"
|
||||||
"<table class=\"CELLS_PAD_2\" style=\"width:125px;\">"
|
"<table class=\"INPUT_REQUESTER CELLS_PAD_2\">"
|
||||||
"<tr>");
|
"<tr>");
|
||||||
Msg_WriteMsgAuthor (&UsrDat,100,10,"DAT",true,NULL);
|
Msg_WriteMsgAuthor (&UsrDat,100,6,"DAT",true,NULL);
|
||||||
fprintf (Gbl.F.Out,"</tr>"
|
fprintf (Gbl.F.Out,"</tr>"
|
||||||
"</table>"
|
"</table>"
|
||||||
"</td>"
|
"</td>"
|
||||||
|
@ -2001,7 +2004,7 @@ static void Ctr_PutFormToCreateCentre (void)
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/***** Centre code *****/
|
/***** Centre code *****/
|
||||||
fprintf (Gbl.F.Out,"<td></td>");
|
fprintf (Gbl.F.Out,"<td class=\"CODE\"></td>");
|
||||||
|
|
||||||
/***** Centre logo *****/
|
/***** Centre logo *****/
|
||||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\" style=\"width:25px;\">");
|
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\" style=\"width:25px;\">");
|
||||||
|
@ -2041,21 +2044,24 @@ static void Ctr_PutFormToCreateCentre (void)
|
||||||
/***** Centre short name *****/
|
/***** Centre short name *****/
|
||||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\">"
|
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\">"
|
||||||
"<input type=\"text\" name=\"ShortName\""
|
"<input type=\"text\" name=\"ShortName\""
|
||||||
" size=\"10\" maxlength=\"%u\" value=\"%s\" />"
|
" maxlength=\"%u\" value=\"%s\""
|
||||||
|
" class=\"INPUT_SHORT_NAME\" />"
|
||||||
"</td>",
|
"</td>",
|
||||||
Ctr_MAX_LENGTH_CENTRE_SHORT_NAME,Ctr->ShortName);
|
Ctr_MAX_LENGTH_CENTRE_SHORT_NAME,Ctr->ShortName);
|
||||||
|
|
||||||
/***** Centre full name *****/
|
/***** Centre full name *****/
|
||||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\">"
|
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\">"
|
||||||
"<input type=\"text\" name=\"FullName\""
|
"<input type=\"text\" name=\"FullName\""
|
||||||
" size=\"30\" maxlength=\"%u\" value=\"%s\" />"
|
" maxlength=\"%u\" value=\"%s\""
|
||||||
|
" class=\"INPUT_FULL_NAME\" />"
|
||||||
"</td>",
|
"</td>",
|
||||||
Ctr_MAX_LENGTH_CENTRE_FULL_NAME,Ctr->FullName);
|
Ctr_MAX_LENGTH_CENTRE_FULL_NAME,Ctr->FullName);
|
||||||
|
|
||||||
/***** Centre WWW *****/
|
/***** Centre WWW *****/
|
||||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\">"
|
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\">"
|
||||||
"<input type=\"text\" name=\"WWW\""
|
"<input type=\"text\" name=\"WWW\""
|
||||||
" size=\"10\" maxlength=\"%u\" value=\"%s\" />"
|
" maxlength=\"%u\" value=\"%s\""
|
||||||
|
" class=\"INPUT_WWW\" />"
|
||||||
"</td>",
|
"</td>",
|
||||||
Cns_MAX_LENGTH_WWW,Ctr->WWW);
|
Cns_MAX_LENGTH_WWW,Ctr->WWW);
|
||||||
|
|
||||||
|
@ -2070,30 +2076,23 @@ static void Ctr_PutFormToCreateCentre (void)
|
||||||
"</td>");
|
"</td>");
|
||||||
|
|
||||||
/***** Centre status *****/
|
/***** Centre status *****/
|
||||||
fprintf (Gbl.F.Out,"<td class=\"DAT LEFT_MIDDLE\">"
|
fprintf (Gbl.F.Out,"<td class=\"DAT STATUS\">"
|
||||||
"%s"
|
"%s"
|
||||||
"</td>",
|
"</td>",
|
||||||
Txt_CENTRE_STATUS[Ctr_STATUS_PENDING]);
|
Txt_CENTRE_STATUS[Ctr_STATUS_PENDING]);
|
||||||
|
|
||||||
/***** Centre requester *****/
|
/***** Centre requester *****/
|
||||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\" style=\"width:125px;\">"
|
fprintf (Gbl.F.Out,"<td class=\"INPUT_REQUESTER LEFT_TOP\">"
|
||||||
"<table class=\"CELLS_PAD_2\" style=\"width:125px;\">"
|
"<table class=\"INPUT_REQUESTER CELLS_PAD_2\">"
|
||||||
"<tr>");
|
"<tr>");
|
||||||
Msg_WriteMsgAuthor (&Gbl.Usrs.Me.UsrDat,100,10,"DAT",true,NULL);
|
Msg_WriteMsgAuthor (&Gbl.Usrs.Me.UsrDat,100,6,"DAT",true,NULL);
|
||||||
fprintf (Gbl.F.Out,"</tr>"
|
fprintf (Gbl.F.Out,"</tr>"
|
||||||
"</table>"
|
"</table>"
|
||||||
"</td>"
|
"</td>"
|
||||||
"</tr>");
|
"</tr>");
|
||||||
|
|
||||||
/***** Send button *****/
|
/***** Send button and end frame *****/
|
||||||
fprintf (Gbl.F.Out,"<tr>"
|
Lay_EndRoundFrameTableWithButton (Lay_CREATE_BUTTON,Txt_Create_centre);
|
||||||
"<td colspan=\"12\" class=\"CENTER_MIDDLE\">");
|
|
||||||
Lay_PutCreateButton (Txt_Create_centre);
|
|
||||||
fprintf (Gbl.F.Out,"</td>"
|
|
||||||
"</tr>");
|
|
||||||
|
|
||||||
/***** End of frame *****/
|
|
||||||
Lay_EndRoundFrameTable ();
|
|
||||||
|
|
||||||
/***** End of form *****/
|
/***** End of form *****/
|
||||||
Act_FormEnd ();
|
Act_FormEnd ();
|
||||||
|
@ -2174,7 +2173,7 @@ static void Ctr_PutHeadCentresForEdition (void)
|
||||||
"<th class=\"RIGHT_MIDDLE\">"
|
"<th class=\"RIGHT_MIDDLE\">"
|
||||||
"%s"
|
"%s"
|
||||||
"</th>"
|
"</th>"
|
||||||
"<th style=\"width:25px;\"></th>"
|
"<th></th>"
|
||||||
"<th class=\"LEFT_MIDDLE\">"
|
"<th class=\"LEFT_MIDDLE\">"
|
||||||
"%s"
|
"%s"
|
||||||
"</th>"
|
"</th>"
|
||||||
|
|
|
@ -116,12 +116,13 @@
|
||||||
/****************************** Public constants *****************************/
|
/****************************** Public constants *****************************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
#define Log_PLATFORM_VERSION "SWAD 15.56.6 (2015/12/05)"
|
#define Log_PLATFORM_VERSION "SWAD 15.57 (2015/12/05)"
|
||||||
#define CSS_FILE "swad15.56.1.css"
|
#define CSS_FILE "swad15.57.css"
|
||||||
|
|
||||||
// Number of lines (includes comments but not blank lines) has been got with the following command:
|
// 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
|
// nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*.h sql/swad*.sql | tail -1
|
||||||
/*
|
/*
|
||||||
|
Version 15.57: Dec 05, 2015 Lot of changes in forms to edit institutions, centres, degrees, courses, etc. (186903 lines)
|
||||||
Version 15.56.6: Dec 05, 2015 Fixed minor bug in edition of degrees. (186843 lines)
|
Version 15.56.6: Dec 05, 2015 Fixed minor bug in edition of degrees. (186843 lines)
|
||||||
Version 15.56.5: Dec 05, 2015 Go to degree in table of degrees (statistic). (186843 lines)
|
Version 15.56.5: Dec 05, 2015 Go to degree in table of degrees (statistic). (186843 lines)
|
||||||
Version 15.56.4: Dec 05, 2015 Changed icons in forums and chat. (186844 lines)
|
Version 15.56.4: Dec 05, 2015 Changed icons in forums and chat. (186844 lines)
|
||||||
|
|
|
@ -1329,7 +1329,8 @@ static void Cty_ListCountriesForEdition (void)
|
||||||
Cty_PutParamOtherCtyCod (Cty->CtyCod);
|
Cty_PutParamOtherCtyCod (Cty->CtyCod);
|
||||||
Par_PutHiddenParamUnsigned ("Lan",(unsigned) Lan);
|
Par_PutHiddenParamUnsigned ("Lan",(unsigned) Lan);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"WWW\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"WWW\""
|
||||||
" size=\"15\" maxlength=\"%u\" value=\"%s\""
|
" maxlength=\"%u\" value=\"%s\""
|
||||||
|
" class=\"INPUT_WWW\""
|
||||||
" onchange=\"document.getElementById('%s').submit();\" />",
|
" onchange=\"document.getElementById('%s').submit();\" />",
|
||||||
Cty_MAX_LENGTH_COUNTRY_WWW,
|
Cty_MAX_LENGTH_COUNTRY_WWW,
|
||||||
Cty->WWW[Lan],Gbl.FormId);
|
Cty->WWW[Lan],Gbl.FormId);
|
||||||
|
@ -1683,7 +1684,8 @@ static void Cty_PutFormToCreateCountry (void)
|
||||||
/* WWW */
|
/* WWW */
|
||||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\">"
|
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\">"
|
||||||
"<input type=\"text\" name=\"WWW_%s\""
|
"<input type=\"text\" name=\"WWW_%s\""
|
||||||
" size=\"15\" maxlength=\"%u\" value=\"%s\" />"
|
" maxlength=\"%u\" value=\"%s\""
|
||||||
|
" class=\"INPUT_WWW\" />"
|
||||||
"</td>"
|
"</td>"
|
||||||
"</tr>",
|
"</tr>",
|
||||||
Txt_STR_LANG_ID[Lan],Cty_MAX_LENGTH_COUNTRY_WWW,Cty->WWW[Lan]);
|
Txt_STR_LANG_ID[Lan],Cty_MAX_LENGTH_COUNTRY_WWW,Cty->WWW[Lan]);
|
||||||
|
|
|
@ -1440,7 +1440,7 @@ static void Crs_ListCoursesForEdition (void)
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Course code */
|
/* Course code */
|
||||||
fprintf (Gbl.F.Out,"<td class=\"DAT RIGHT_MIDDLE\">"
|
fprintf (Gbl.F.Out,"<td class=\"DAT CODE\">"
|
||||||
"%ld"
|
"%ld"
|
||||||
"</td>",
|
"</td>",
|
||||||
Crs->CrsCod);
|
Crs->CrsCod);
|
||||||
|
@ -1452,10 +1452,10 @@ static void Crs_ListCoursesForEdition (void)
|
||||||
Act_FormStart (ActChgInsCrsCod);
|
Act_FormStart (ActChgInsCrsCod);
|
||||||
Crs_PutParamOtherCrsCod (Crs->CrsCod);
|
Crs_PutParamOtherCrsCod (Crs->CrsCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"InsCrsCod\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"InsCrsCod\""
|
||||||
" size=\"%u\" maxlength=\"%u\" value=\"%s\""
|
" maxlength=\"%u\" value=\"%s\""
|
||||||
|
" class=\"INPUT_INS_CODE\""
|
||||||
" onchange=\"document.getElementById('%s').submit();\" />",
|
" onchange=\"document.getElementById('%s').submit();\" />",
|
||||||
Crs_LENGTH_INSTITUTIONAL_CRS_COD,
|
Crs_LENGTH_INSTITUTIONAL_CRS_COD,
|
||||||
Crs_LENGTH_INSTITUTIONAL_CRS_COD,
|
|
||||||
Crs->InstitutionalCrsCod,
|
Crs->InstitutionalCrsCod,
|
||||||
Gbl.FormId);
|
Gbl.FormId);
|
||||||
Act_FormEnd ();
|
Act_FormEnd ();
|
||||||
|
@ -1465,13 +1465,13 @@ static void Crs_ListCoursesForEdition (void)
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Degree */
|
/* Degree */
|
||||||
fprintf (Gbl.F.Out,"<td class=\"DAT LEFT_MIDDLE\">");
|
fprintf (Gbl.F.Out,"<td class=\"DAT CENTER_MIDDLE\">");
|
||||||
if (Gbl.Usrs.Me.LoggedRole >= Rol_DEG_ADM)
|
if (Gbl.Usrs.Me.LoggedRole >= Rol_DEG_ADM)
|
||||||
{
|
{
|
||||||
Act_FormStart (ActChgCrsDeg);
|
Act_FormStart (ActChgCrsDeg);
|
||||||
Crs_PutParamOtherCrsCod (Crs->CrsCod);
|
Crs_PutParamOtherCrsCod (Crs->CrsCod);
|
||||||
fprintf (Gbl.F.Out,"<select name=\"OthDegCod\""
|
fprintf (Gbl.F.Out,"<select name=\"OthDegCod\""
|
||||||
" style=\"width:100px;\""
|
" class=\"INPUT_DEGREE\""
|
||||||
" onchange=\"document.getElementById('%s').submit();\">",
|
" onchange=\"document.getElementById('%s').submit();\">",
|
||||||
Gbl.FormId);
|
Gbl.FormId);
|
||||||
for (NumDeg = 0;
|
for (NumDeg = 0;
|
||||||
|
@ -1547,7 +1547,8 @@ static void Crs_ListCoursesForEdition (void)
|
||||||
Act_FormStart (ActRenCrsSho);
|
Act_FormStart (ActRenCrsSho);
|
||||||
Crs_PutParamOtherCrsCod (Crs->CrsCod);
|
Crs_PutParamOtherCrsCod (Crs->CrsCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"ShortName\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"ShortName\""
|
||||||
" size=\"10\" maxlength=\"%u\" value=\"%s\""
|
" maxlength=\"%u\" value=\"%s\""
|
||||||
|
" class=\"INPUT_SHORT_NAME\""
|
||||||
" onchange=\"document.getElementById('%s').submit();\" />",
|
" onchange=\"document.getElementById('%s').submit();\" />",
|
||||||
Crs_MAX_LENGTH_COURSE_SHORT_NAME,Crs->ShortName,
|
Crs_MAX_LENGTH_COURSE_SHORT_NAME,Crs->ShortName,
|
||||||
Gbl.FormId);
|
Gbl.FormId);
|
||||||
|
@ -1564,7 +1565,8 @@ static void Crs_ListCoursesForEdition (void)
|
||||||
Act_FormStart (ActRenCrsFul);
|
Act_FormStart (ActRenCrsFul);
|
||||||
Crs_PutParamOtherCrsCod (Crs->CrsCod);
|
Crs_PutParamOtherCrsCod (Crs->CrsCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"FullName\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"FullName\""
|
||||||
" size=\"20\" maxlength=\"%u\" value=\"%s\""
|
" maxlength=\"%u\" value=\"%s\""
|
||||||
|
" class=\"INPUT_FULL_NAME\""
|
||||||
" onchange=\"document.getElementById('%s').submit();\" />",
|
" onchange=\"document.getElementById('%s').submit();\" />",
|
||||||
Crs_MAX_LENGTH_COURSE_FULL_NAME,Crs->FullName,
|
Crs_MAX_LENGTH_COURSE_FULL_NAME,Crs->FullName,
|
||||||
Gbl.FormId);
|
Gbl.FormId);
|
||||||
|
@ -1588,14 +1590,13 @@ static void Crs_ListCoursesForEdition (void)
|
||||||
|
|
||||||
/* Course status */
|
/* Course status */
|
||||||
StatusTxt = Crs_GetStatusTxtFromStatusBits (Crs->Status);
|
StatusTxt = Crs_GetStatusTxtFromStatusBits (Crs->Status);
|
||||||
fprintf (Gbl.F.Out,"<td class=\"DAT LEFT_MIDDLE\">");
|
fprintf (Gbl.F.Out,"<td class=\"DAT STATUS\">");
|
||||||
if (Gbl.Usrs.Me.LoggedRole >= Rol_DEG_ADM &&
|
if (Gbl.Usrs.Me.LoggedRole >= Rol_DEG_ADM &&
|
||||||
StatusTxt == Crs_STATUS_PENDING)
|
StatusTxt == Crs_STATUS_PENDING)
|
||||||
{
|
{
|
||||||
Act_FormStart (ActChgCrsSta);
|
Act_FormStart (ActChgCrsSta);
|
||||||
Crs_PutParamOtherCrsCod (Crs->CrsCod);
|
Crs_PutParamOtherCrsCod (Crs->CrsCod);
|
||||||
fprintf (Gbl.F.Out,"<select name=\"Status\""
|
fprintf (Gbl.F.Out,"<select name=\"Status\" class=\"INPUT_STATUS\""
|
||||||
" style=\"width:100px;\""
|
|
||||||
" onchange=\"document.getElementById('%s').submit();\">"
|
" onchange=\"document.getElementById('%s').submit();\">"
|
||||||
"<option value=\"%u\" selected=\"selected\">%s</option>"
|
"<option value=\"%u\" selected=\"selected\">%s</option>"
|
||||||
"<option value=\"%u\">%s</option>"
|
"<option value=\"%u\">%s</option>"
|
||||||
|
@ -1614,12 +1615,10 @@ static void Crs_ListCoursesForEdition (void)
|
||||||
/* Course requester */
|
/* Course requester */
|
||||||
UsrDat.UsrCod = Crs->RequesterUsrCod;
|
UsrDat.UsrCod = Crs->RequesterUsrCod;
|
||||||
Usr_ChkUsrCodAndGetAllUsrDataFromUsrCod (&UsrDat);
|
Usr_ChkUsrCodAndGetAllUsrDataFromUsrCod (&UsrDat);
|
||||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\""
|
fprintf (Gbl.F.Out,"<td class=\"INPUT_REQUESTER LEFT_TOP\">"
|
||||||
" style=\"width:125px;\">"
|
"<table class=\"INPUT_REQUESTER CELLS_PAD_2\">"
|
||||||
"<table class=\"CELLS_PAD_2\""
|
|
||||||
" style=\"width:125px;\">"
|
|
||||||
"<tr>");
|
"<tr>");
|
||||||
Msg_WriteMsgAuthor (&UsrDat,100,10,"DAT",true,NULL);
|
Msg_WriteMsgAuthor (&UsrDat,100,6,"DAT",true,NULL);
|
||||||
fprintf (Gbl.F.Out,"</tr>"
|
fprintf (Gbl.F.Out,"</tr>"
|
||||||
"</table>"
|
"</table>"
|
||||||
"</td>"
|
"</td>"
|
||||||
|
@ -1726,22 +1725,22 @@ static void Crs_PutFormToCreateCourse (void)
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/***** Course code *****/
|
/***** Course code *****/
|
||||||
fprintf (Gbl.F.Out,"<td class=\"DAT CENTER_MIDDLE\">"
|
fprintf (Gbl.F.Out,"<td class=\"CODE\"></td>");
|
||||||
"</td>");
|
|
||||||
|
|
||||||
/***** Institutional code of the course *****/
|
/***** Institutional code of the course *****/
|
||||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
||||||
"<input type=\"text\" name=\"InsCrsCod\""
|
"<input type=\"text\" name=\"InsCrsCod\""
|
||||||
" size=\"%u\" maxlength=\"%u\" value=\"%s\" />"
|
" maxlength=\"%u\" value=\"%s\""
|
||||||
|
" class=\"INPUT_INS_CODE\" />"
|
||||||
"</td>",
|
"</td>",
|
||||||
Crs_LENGTH_INSTITUTIONAL_CRS_COD,
|
Crs_LENGTH_INSTITUTIONAL_CRS_COD,
|
||||||
Crs_LENGTH_INSTITUTIONAL_CRS_COD,
|
|
||||||
Crs->InstitutionalCrsCod);
|
Crs->InstitutionalCrsCod);
|
||||||
|
|
||||||
/***** Degree *****/
|
/***** Degree *****/
|
||||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
||||||
"<select name=\"OthDegCod\""
|
"<select name=\"OthDegCod\""
|
||||||
" style=\"width:100px;\" disabled=\"disabled\">"
|
" class=\"INPUT_DEGREE\""
|
||||||
|
" disabled=\"disabled\">"
|
||||||
"<option value=\"%ld\">%s</option>"
|
"<option value=\"%ld\">%s</option>"
|
||||||
"</select>"
|
"</select>"
|
||||||
"</td>",
|
"</td>",
|
||||||
|
@ -1780,14 +1779,16 @@ static void Crs_PutFormToCreateCourse (void)
|
||||||
/***** Course short name *****/
|
/***** Course short name *****/
|
||||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
||||||
"<input type=\"text\" name=\"ShortName\""
|
"<input type=\"text\" name=\"ShortName\""
|
||||||
" size=\"10\" maxlength=\"%u\" value=\"%s\" />"
|
" maxlength=\"%u\" value=\"%s\""
|
||||||
|
" class=\"INPUT_SHORT_NAME\" />"
|
||||||
"</td>",
|
"</td>",
|
||||||
Crs_MAX_LENGTH_COURSE_SHORT_NAME,Crs->ShortName);
|
Crs_MAX_LENGTH_COURSE_SHORT_NAME,Crs->ShortName);
|
||||||
|
|
||||||
/***** Course full name *****/
|
/***** Course full name *****/
|
||||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
||||||
"<input type=\"text\" name=\"FullName\""
|
"<input type=\"text\" name=\"FullName\""
|
||||||
" size=\"20\" maxlength=\"%u\" value=\"%s\" />"
|
" maxlength=\"%u\" value=\"%s\""
|
||||||
|
" class=\"INPUT_FULL_NAME\" />"
|
||||||
"</td>",
|
"</td>",
|
||||||
Crs_MAX_LENGTH_COURSE_FULL_NAME,Crs->FullName);
|
Crs_MAX_LENGTH_COURSE_FULL_NAME,Crs->FullName);
|
||||||
|
|
||||||
|
@ -1802,16 +1803,16 @@ static void Crs_PutFormToCreateCourse (void)
|
||||||
"</td>");
|
"</td>");
|
||||||
|
|
||||||
/***** Course status *****/
|
/***** Course status *****/
|
||||||
fprintf (Gbl.F.Out,"<td class=\"DAT CENTER_MIDDLE\">"
|
fprintf (Gbl.F.Out,"<td class=\"DAT STATUS\">"
|
||||||
"%s"
|
"%s"
|
||||||
"</td>",
|
"</td>",
|
||||||
Txt_COURSE_STATUS[Crs_STATUS_PENDING]);
|
Txt_COURSE_STATUS[Crs_STATUS_PENDING]);
|
||||||
|
|
||||||
/***** Course requester *****/
|
/***** Course requester *****/
|
||||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\" style=\"width:125px;\">"
|
fprintf (Gbl.F.Out,"<td class=\"INPUT_REQUESTER LEFT_TOP\">"
|
||||||
"<table class=\"CELLS_PAD_2\" style=\"width:125px;\">"
|
"<table class=\"INPUT_REQUESTER CELLS_PAD_2\">"
|
||||||
"<tr>");
|
"<tr>");
|
||||||
Msg_WriteMsgAuthor (&Gbl.Usrs.Me.UsrDat,100,10,"DAT",true,NULL);
|
Msg_WriteMsgAuthor (&Gbl.Usrs.Me.UsrDat,100,6,"DAT",true,NULL);
|
||||||
fprintf (Gbl.F.Out,"</tr>"
|
fprintf (Gbl.F.Out,"</tr>"
|
||||||
"</table>"
|
"</table>"
|
||||||
"</td>"
|
"</td>"
|
||||||
|
@ -1898,7 +1899,7 @@ static void Crs_PutHeadCoursesForEdition (void)
|
||||||
"<th class=\"CENTER_MIDDLE\">"
|
"<th class=\"CENTER_MIDDLE\">"
|
||||||
"%s (%s)"
|
"%s (%s)"
|
||||||
"</th>"
|
"</th>"
|
||||||
"<th class=\"LEFT_MIDDLE\">"
|
"<th class=\"CENTER_MIDDLE\">"
|
||||||
"%s"
|
"%s"
|
||||||
"</th>"
|
"</th>"
|
||||||
"<th class=\"CENTER_MIDDLE\">"
|
"<th class=\"CENTER_MIDDLE\">"
|
||||||
|
|
|
@ -1440,7 +1440,7 @@ static void Deg_ListDegreesForEdition (void)
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Degree code */
|
/* Degree code */
|
||||||
fprintf (Gbl.F.Out,"<td class=\"DAT RIGHT_MIDDLE\">"
|
fprintf (Gbl.F.Out,"<td class=\"DAT CODE\">"
|
||||||
"%ld"
|
"%ld"
|
||||||
"</td>",
|
"</td>",
|
||||||
Deg->DegCod);
|
Deg->DegCod);
|
||||||
|
@ -1482,7 +1482,8 @@ static void Deg_ListDegreesForEdition (void)
|
||||||
Act_FormStart (ActRenDegSho);
|
Act_FormStart (ActRenDegSho);
|
||||||
Deg_PutParamOtherDegCod (Deg->DegCod);
|
Deg_PutParamOtherDegCod (Deg->DegCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"ShortName\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"ShortName\""
|
||||||
" size=\"10\" maxlength=\"%u\" value=\"%s\""
|
" maxlength=\"%u\" value=\"%s\""
|
||||||
|
" class=\"INPUT_SHORT_NAME\""
|
||||||
" onchange=\"document.getElementById('%s').submit();\" />",
|
" onchange=\"document.getElementById('%s').submit();\" />",
|
||||||
Deg_MAX_LENGTH_DEGREE_SHORT_NAME,Deg->ShortName,Gbl.FormId);
|
Deg_MAX_LENGTH_DEGREE_SHORT_NAME,Deg->ShortName,Gbl.FormId);
|
||||||
Act_FormEnd ();
|
Act_FormEnd ();
|
||||||
|
@ -1498,7 +1499,8 @@ static void Deg_ListDegreesForEdition (void)
|
||||||
Act_FormStart (ActRenDegFul);
|
Act_FormStart (ActRenDegFul);
|
||||||
Deg_PutParamOtherDegCod (Deg->DegCod);
|
Deg_PutParamOtherDegCod (Deg->DegCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"FullName\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"FullName\""
|
||||||
" size=\"20\" maxlength=\"%u\" value=\"%s\""
|
" maxlength=\"%u\" value=\"%s\""
|
||||||
|
" class=\"INPUT_FULL_NAME\""
|
||||||
" onchange=\"document.getElementById('%s').submit();\" />",
|
" onchange=\"document.getElementById('%s').submit();\" />",
|
||||||
Deg_MAX_LENGTH_DEGREE_FULL_NAME,Deg->FullName,Gbl.FormId);
|
Deg_MAX_LENGTH_DEGREE_FULL_NAME,Deg->FullName,Gbl.FormId);
|
||||||
Act_FormEnd ();
|
Act_FormEnd ();
|
||||||
|
@ -1622,7 +1624,8 @@ static void Deg_ListDegreesForEdition (void)
|
||||||
Act_FormStart (ActChgDegWWW);
|
Act_FormStart (ActChgDegWWW);
|
||||||
Deg_PutParamOtherDegCod (Deg->DegCod);
|
Deg_PutParamOtherDegCod (Deg->DegCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"WWW\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"WWW\""
|
||||||
" size=\"5\" maxlength=\"%u\" value=\"%s\""
|
" maxlength=\"%u\" value=\"%s\""
|
||||||
|
" class=\"INPUT_WWW\""
|
||||||
" onchange=\"document.getElementById('%s').submit();\" />",
|
" onchange=\"document.getElementById('%s').submit();\" />",
|
||||||
Cns_MAX_LENGTH_WWW,Deg->WWW,Gbl.FormId);
|
Cns_MAX_LENGTH_WWW,Deg->WWW,Gbl.FormId);
|
||||||
Act_FormEnd ();
|
Act_FormEnd ();
|
||||||
|
@ -1647,13 +1650,13 @@ static void Deg_ListDegreesForEdition (void)
|
||||||
|
|
||||||
/* Degree status */
|
/* Degree status */
|
||||||
StatusTxt = Deg_GetStatusTxtFromStatusBits (Deg->Status);
|
StatusTxt = Deg_GetStatusTxtFromStatusBits (Deg->Status);
|
||||||
fprintf (Gbl.F.Out,"<td class=\"DAT LEFT_MIDDLE\">");
|
fprintf (Gbl.F.Out,"<td class=\"DAT STATUS\">");
|
||||||
if (Gbl.Usrs.Me.LoggedRole >= Rol_CTR_ADM &&
|
if (Gbl.Usrs.Me.LoggedRole >= Rol_CTR_ADM &&
|
||||||
StatusTxt == Deg_STATUS_PENDING)
|
StatusTxt == Deg_STATUS_PENDING)
|
||||||
{
|
{
|
||||||
Act_FormStart (ActChgDegSta);
|
Act_FormStart (ActChgDegSta);
|
||||||
Deg_PutParamOtherDegCod (Deg->DegCod);
|
Deg_PutParamOtherDegCod (Deg->DegCod);
|
||||||
fprintf (Gbl.F.Out,"<select name=\"Status\" style=\"width:100px;\""
|
fprintf (Gbl.F.Out,"<select name=\"Status\" class=\"INPUT_STATUS\""
|
||||||
" onchange=\"document.getElementById('%s').submit();\">"
|
" onchange=\"document.getElementById('%s').submit();\">"
|
||||||
"<option value=\"%u\" selected=\"selected\">%s</option>"
|
"<option value=\"%u\" selected=\"selected\">%s</option>"
|
||||||
"<option value=\"%u\">%s</option>"
|
"<option value=\"%u\">%s</option>"
|
||||||
|
@ -1672,10 +1675,10 @@ static void Deg_ListDegreesForEdition (void)
|
||||||
/* Degree requester */
|
/* Degree requester */
|
||||||
UsrDat.UsrCod = Deg->RequesterUsrCod;
|
UsrDat.UsrCod = Deg->RequesterUsrCod;
|
||||||
Usr_ChkUsrCodAndGetAllUsrDataFromUsrCod (&UsrDat);
|
Usr_ChkUsrCodAndGetAllUsrDataFromUsrCod (&UsrDat);
|
||||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\" style=\"width:125px;\">"
|
fprintf (Gbl.F.Out,"<td class=\"INPUT_REQUESTER LEFT_TOP\">"
|
||||||
"<table class=\"CELLS_PAD_2\" style=\"width:125px;\">"
|
"<table class=\"INPUT_REQUESTER CELLS_PAD_2\">"
|
||||||
"<tr>");
|
"<tr>");
|
||||||
Msg_WriteMsgAuthor (&UsrDat,100,10,"DAT",true,NULL);
|
Msg_WriteMsgAuthor (&UsrDat,100,6,"DAT",true,NULL);
|
||||||
fprintf (Gbl.F.Out,"</tr>"
|
fprintf (Gbl.F.Out,"</tr>"
|
||||||
"</table>"
|
"</table>"
|
||||||
"</td>"
|
"</td>"
|
||||||
|
@ -1836,8 +1839,7 @@ static void Deg_PutFormToCreateDegree (void)
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/***** Degree code *****/
|
/***** Degree code *****/
|
||||||
fprintf (Gbl.F.Out,"<td class=\"DAT RIGHT_MIDDLE\">"
|
fprintf (Gbl.F.Out,"<td class=\"CODE\"></td>");
|
||||||
"</td>");
|
|
||||||
|
|
||||||
/***** Degree logo *****/
|
/***** Degree logo *****/
|
||||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\">");
|
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\">");
|
||||||
|
@ -1859,14 +1861,16 @@ static void Deg_PutFormToCreateDegree (void)
|
||||||
/***** Degree short name *****/
|
/***** Degree short name *****/
|
||||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\">"
|
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\">"
|
||||||
"<input type=\"text\" name=\"ShortName\""
|
"<input type=\"text\" name=\"ShortName\""
|
||||||
" size=\"10\" maxlength=\"%u\" value=\"%s\" />"
|
" maxlength=\"%u\" value=\"%s\""
|
||||||
|
" class=\"INPUT_SHORT_NAME\" />"
|
||||||
"</td>",
|
"</td>",
|
||||||
Deg_MAX_LENGTH_DEGREE_SHORT_NAME,Deg->ShortName);
|
Deg_MAX_LENGTH_DEGREE_SHORT_NAME,Deg->ShortName);
|
||||||
|
|
||||||
/***** Degree full name *****/
|
/***** Degree full name *****/
|
||||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\">"
|
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\">"
|
||||||
"<input type=\"text\" name=\"FullName\""
|
"<input type=\"text\" name=\"FullName\""
|
||||||
" size=\"20\" maxlength=\"%u\" value=\"%s\" />"
|
" maxlength=\"%u\" value=\"%s\""
|
||||||
|
" class=\"INPUT_FULL_NAME\" />"
|
||||||
"</td>",
|
"</td>",
|
||||||
Deg_MAX_LENGTH_DEGREE_FULL_NAME,Deg->FullName);
|
Deg_MAX_LENGTH_DEGREE_FULL_NAME,Deg->FullName);
|
||||||
|
|
||||||
|
@ -1924,7 +1928,8 @@ static void Deg_PutFormToCreateDegree (void)
|
||||||
/***** Degree WWW *****/
|
/***** Degree WWW *****/
|
||||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\">"
|
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\">"
|
||||||
"<input type=\"text\" name=\"WWW\""
|
"<input type=\"text\" name=\"WWW\""
|
||||||
" size=\"5\" maxlength=\"%u\" value=\"%s\" />"
|
" maxlength=\"%u\" value=\"%s\""
|
||||||
|
" class=\"INPUT_WWW\" />"
|
||||||
"</td>",
|
"</td>",
|
||||||
Cns_MAX_LENGTH_WWW,Deg->WWW);
|
Cns_MAX_LENGTH_WWW,Deg->WWW);
|
||||||
|
|
||||||
|
@ -1934,16 +1939,16 @@ static void Deg_PutFormToCreateDegree (void)
|
||||||
"</td>");
|
"</td>");
|
||||||
|
|
||||||
/***** Degree status *****/
|
/***** Degree status *****/
|
||||||
fprintf (Gbl.F.Out,"<td class=\"DAT LEFT_MIDDLE\">"
|
fprintf (Gbl.F.Out,"<td class=\"DAT STATUS\">"
|
||||||
"%s"
|
"%s"
|
||||||
"</td>",
|
"</td>",
|
||||||
Txt_DEGREE_STATUS[Deg_STATUS_PENDING]);
|
Txt_DEGREE_STATUS[Deg_STATUS_PENDING]);
|
||||||
|
|
||||||
/***** Degree requester *****/
|
/***** Degree requester *****/
|
||||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\" style=\"width:125px;\">"
|
fprintf (Gbl.F.Out,"<td class=\"INPUT_REQUESTER LEFT_TOP\">"
|
||||||
"<table class=\"CELLS_PAD_2\" style=\"width:125px;\">"
|
"<table class=\"INPUT_REQUESTER CELLS_PAD_2\">"
|
||||||
"<tr>");
|
"<tr>");
|
||||||
Msg_WriteMsgAuthor (&Gbl.Usrs.Me.UsrDat,100,10,"DAT",true,NULL);
|
Msg_WriteMsgAuthor (&Gbl.Usrs.Me.UsrDat,100,6,"DAT",true,NULL);
|
||||||
fprintf (Gbl.F.Out,"</tr>"
|
fprintf (Gbl.F.Out,"</tr>"
|
||||||
"</table>"
|
"</table>"
|
||||||
"</td>"
|
"</td>"
|
||||||
|
@ -2022,7 +2027,7 @@ static void Deg_PutHeadDegreeTypesForEdition (void)
|
||||||
static void Deg_PutHeadDegreesForSeeing (void)
|
static void Deg_PutHeadDegreesForSeeing (void)
|
||||||
{
|
{
|
||||||
extern const char *Txt_Degree;
|
extern const char *Txt_Degree;
|
||||||
extern const char *Txt_Type_of_BR_degree;
|
extern const char *Txt_Type;
|
||||||
extern const char *Txt_First_BR_year;
|
extern const char *Txt_First_BR_year;
|
||||||
extern const char *Txt_Last_BR_year;
|
extern const char *Txt_Last_BR_year;
|
||||||
extern const char *Txt_Opt_BR_year;
|
extern const char *Txt_Opt_BR_year;
|
||||||
|
@ -2055,7 +2060,7 @@ static void Deg_PutHeadDegreesForSeeing (void)
|
||||||
"</th>"
|
"</th>"
|
||||||
"</tr>",
|
"</tr>",
|
||||||
Txt_Degree,
|
Txt_Degree,
|
||||||
Txt_Type_of_BR_degree,
|
Txt_Type,
|
||||||
Txt_First_BR_year,
|
Txt_First_BR_year,
|
||||||
Txt_Last_BR_year,
|
Txt_Last_BR_year,
|
||||||
Txt_Opt_BR_year,
|
Txt_Opt_BR_year,
|
||||||
|
@ -2073,7 +2078,7 @@ static void Deg_PutHeadDegreesForEdition (void)
|
||||||
extern const char *Txt_Centre;
|
extern const char *Txt_Centre;
|
||||||
extern const char *Txt_Short_BR_Name;
|
extern const char *Txt_Short_BR_Name;
|
||||||
extern const char *Txt_Full_BR_Name;
|
extern const char *Txt_Full_BR_Name;
|
||||||
extern const char *Txt_Type_of_BR_degree;
|
extern const char *Txt_Type;
|
||||||
extern const char *Txt_First_BR_year;
|
extern const char *Txt_First_BR_year;
|
||||||
extern const char *Txt_Last_BR_year;
|
extern const char *Txt_Last_BR_year;
|
||||||
extern const char *Txt_Opt_BR_year;
|
extern const char *Txt_Opt_BR_year;
|
||||||
|
@ -2087,7 +2092,7 @@ static void Deg_PutHeadDegreesForEdition (void)
|
||||||
"<th class=\"RIGHT_MIDDLE\">"
|
"<th class=\"RIGHT_MIDDLE\">"
|
||||||
"%s"
|
"%s"
|
||||||
"</th>"
|
"</th>"
|
||||||
"<th style=\"width:25px;\"></th>"
|
"<th></th>"
|
||||||
"<th class=\"LEFT_MIDDLE\">"
|
"<th class=\"LEFT_MIDDLE\">"
|
||||||
"%s"
|
"%s"
|
||||||
"</th>"
|
"</th>"
|
||||||
|
@ -2126,7 +2131,7 @@ static void Deg_PutHeadDegreesForEdition (void)
|
||||||
Txt_Centre,
|
Txt_Centre,
|
||||||
Txt_Short_BR_Name,
|
Txt_Short_BR_Name,
|
||||||
Txt_Full_BR_Name,
|
Txt_Full_BR_Name,
|
||||||
Txt_Type_of_BR_degree,
|
Txt_Type,
|
||||||
Txt_First_BR_year,
|
Txt_First_BR_year,
|
||||||
Txt_Last_BR_year,
|
Txt_Last_BR_year,
|
||||||
Txt_Opt_BR_year,
|
Txt_Opt_BR_year,
|
||||||
|
|
|
@ -551,7 +551,8 @@ static void Dpt_ListDepartmentsForEdition (void)
|
||||||
Act_FormStart (ActRenDptSho);
|
Act_FormStart (ActRenDptSho);
|
||||||
Dpt_PutParamDptCod (Dpt->DptCod);
|
Dpt_PutParamDptCod (Dpt->DptCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"ShortName\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"ShortName\""
|
||||||
" size=\"15\" maxlength=\"%u\" value=\"%s\""
|
" maxlength=\"%u\" value=\"%s\""
|
||||||
|
" class=\"INPUT_SHORT_NAME\""
|
||||||
" onchange=\"document.getElementById('%s').submit();\" />",
|
" onchange=\"document.getElementById('%s').submit();\" />",
|
||||||
MAX_LENGTH_DEPARTMENT_SHORT_NAME,Dpt->ShortName,Gbl.FormId);
|
MAX_LENGTH_DEPARTMENT_SHORT_NAME,Dpt->ShortName,Gbl.FormId);
|
||||||
Act_FormEnd ();
|
Act_FormEnd ();
|
||||||
|
@ -562,7 +563,8 @@ static void Dpt_ListDepartmentsForEdition (void)
|
||||||
Act_FormStart (ActRenDptFul);
|
Act_FormStart (ActRenDptFul);
|
||||||
Dpt_PutParamDptCod (Dpt->DptCod);
|
Dpt_PutParamDptCod (Dpt->DptCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"FullName\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"FullName\""
|
||||||
" size=\"40\" maxlength=\"%u\" value=\"%s\""
|
" maxlength=\"%u\" value=\"%s\""
|
||||||
|
" class=\"INPUT_FULL_NAME\""
|
||||||
" onchange=\"document.getElementById('%s').submit();\" />",
|
" onchange=\"document.getElementById('%s').submit();\" />",
|
||||||
MAX_LENGTH_DEPARTMENT_FULL_NAME,Dpt->FullName,Gbl.FormId);
|
MAX_LENGTH_DEPARTMENT_FULL_NAME,Dpt->FullName,Gbl.FormId);
|
||||||
Act_FormEnd ();
|
Act_FormEnd ();
|
||||||
|
@ -573,7 +575,8 @@ static void Dpt_ListDepartmentsForEdition (void)
|
||||||
Act_FormStart (ActChgDptWWW);
|
Act_FormStart (ActChgDptWWW);
|
||||||
Dpt_PutParamDptCod (Dpt->DptCod);
|
Dpt_PutParamDptCod (Dpt->DptCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"WWW\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"WWW\""
|
||||||
" size=\"20\" maxlength=\"%u\" value=\"%s\""
|
" maxlength=\"%u\" value=\"%s\""
|
||||||
|
" class=\"INPUT_WWW\""
|
||||||
" onchange=\"document.getElementById('%s').submit();\" />",
|
" onchange=\"document.getElementById('%s').submit();\" />",
|
||||||
Cns_MAX_LENGTH_WWW,Dpt->WWW,Gbl.FormId);
|
Cns_MAX_LENGTH_WWW,Dpt->WWW,Gbl.FormId);
|
||||||
Act_FormEnd ();
|
Act_FormEnd ();
|
||||||
|
@ -917,21 +920,24 @@ static void Dpt_PutFormToCreateDepartment (void)
|
||||||
/***** Department short name *****/
|
/***** Department short name *****/
|
||||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
||||||
"<input type=\"text\" name=\"ShortName\""
|
"<input type=\"text\" name=\"ShortName\""
|
||||||
" size=\"15\" maxlength=\"%u\" value=\"%s\" />"
|
" maxlength=\"%u\" value=\"%s\""
|
||||||
|
" class=\"INPUT_SHORT_NAME\" />"
|
||||||
"</td>",
|
"</td>",
|
||||||
MAX_LENGTH_DEPARTMENT_SHORT_NAME,Dpt->ShortName);
|
MAX_LENGTH_DEPARTMENT_SHORT_NAME,Dpt->ShortName);
|
||||||
|
|
||||||
/***** Department full name *****/
|
/***** Department full name *****/
|
||||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
||||||
"<input type=\"text\" name=\"FullName\""
|
"<input type=\"text\" name=\"FullName\""
|
||||||
" size=\"40\" maxlength=\"%u\" value=\"%s\" />"
|
" maxlength=\"%u\" value=\"%s\""
|
||||||
|
" class=\"INPUT_FULL_NAME\" />"
|
||||||
"</td>",
|
"</td>",
|
||||||
MAX_LENGTH_DEPARTMENT_FULL_NAME,Dpt->FullName);
|
MAX_LENGTH_DEPARTMENT_FULL_NAME,Dpt->FullName);
|
||||||
|
|
||||||
/***** Department WWW *****/
|
/***** Department WWW *****/
|
||||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
||||||
"<input type=\"text\" name=\"WWW\""
|
"<input type=\"text\" name=\"WWW\""
|
||||||
" size=\"20\" maxlength=\"%u\" value=\"%s\" />"
|
" maxlength=\"%u\" value=\"%s\""
|
||||||
|
" class=\"INPUT_WWW\" />"
|
||||||
"</td>"
|
"</td>"
|
||||||
"</tr>",
|
"</tr>",
|
||||||
Cns_MAX_LENGTH_WWW,Dpt->WWW);
|
Cns_MAX_LENGTH_WWW,Dpt->WWW);
|
||||||
|
|
|
@ -1149,7 +1149,7 @@ static void Ins_ListInstitutionsForEdition (void)
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Institution code */
|
/* Institution code */
|
||||||
fprintf (Gbl.F.Out,"<td class=\"DAT RIGHT_MIDDLE\">"
|
fprintf (Gbl.F.Out,"<td class=\"DAT CODE\">"
|
||||||
"%ld"
|
"%ld"
|
||||||
"</td>",
|
"</td>",
|
||||||
Ins->InsCod);
|
Ins->InsCod);
|
||||||
|
@ -1168,7 +1168,7 @@ static void Ins_ListInstitutionsForEdition (void)
|
||||||
{
|
{
|
||||||
Act_FormStart (ActChgInsCty);
|
Act_FormStart (ActChgInsCty);
|
||||||
Ins_PutParamOtherInsCod (Ins->InsCod);
|
Ins_PutParamOtherInsCod (Ins->InsCod);
|
||||||
fprintf (Gbl.F.Out,"<select name=\"OthCtyCod\" style=\"width:100px;\""
|
fprintf (Gbl.F.Out,"<select name=\"OthCtyCod\" style=\"width:40px;\""
|
||||||
" onchange=\"document.getElementById('%s').submit();\" />"
|
" onchange=\"document.getElementById('%s').submit();\" />"
|
||||||
"<option value=\"0\"",
|
"<option value=\"0\"",
|
||||||
Gbl.FormId);
|
Gbl.FormId);
|
||||||
|
@ -1199,7 +1199,8 @@ static void Ins_ListInstitutionsForEdition (void)
|
||||||
Act_FormStart (ActRenInsSho);
|
Act_FormStart (ActRenInsSho);
|
||||||
Ins_PutParamOtherInsCod (Ins->InsCod);
|
Ins_PutParamOtherInsCod (Ins->InsCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"ShortName\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"ShortName\""
|
||||||
" size=\"10\" maxlength=\"%u\" value=\"%s\""
|
" maxlength=\"%u\" value=\"%s\""
|
||||||
|
" class=\"INPUT_SHORT_NAME\""
|
||||||
" onchange=\"document.getElementById('%s').submit();\" />",
|
" onchange=\"document.getElementById('%s').submit();\" />",
|
||||||
Ins_MAX_LENGTH_INSTITUTION_SHORT_NAME,Ins->ShortName,
|
Ins_MAX_LENGTH_INSTITUTION_SHORT_NAME,Ins->ShortName,
|
||||||
Gbl.FormId);
|
Gbl.FormId);
|
||||||
|
@ -1216,7 +1217,8 @@ static void Ins_ListInstitutionsForEdition (void)
|
||||||
Act_FormStart (ActRenInsFul);
|
Act_FormStart (ActRenInsFul);
|
||||||
Ins_PutParamOtherInsCod (Ins->InsCod);
|
Ins_PutParamOtherInsCod (Ins->InsCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"FullName\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"FullName\""
|
||||||
" size=\"30\" maxlength=\"%u\" value=\"%s\""
|
" maxlength=\"%u\" value=\"%s\""
|
||||||
|
" class=\"INPUT_FULL_NAME\""
|
||||||
" onchange=\"document.getElementById('%s').submit();\" />",
|
" onchange=\"document.getElementById('%s').submit();\" />",
|
||||||
Ins_MAX_LENGTH_INSTITUTION_FULL_NAME,Ins->FullName,
|
Ins_MAX_LENGTH_INSTITUTION_FULL_NAME,Ins->FullName,
|
||||||
Gbl.FormId);
|
Gbl.FormId);
|
||||||
|
@ -1233,7 +1235,8 @@ static void Ins_ListInstitutionsForEdition (void)
|
||||||
Act_FormStart (ActChgInsWWW);
|
Act_FormStart (ActChgInsWWW);
|
||||||
Ins_PutParamOtherInsCod (Ins->InsCod);
|
Ins_PutParamOtherInsCod (Ins->InsCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"WWW\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"WWW\""
|
||||||
" size=\"10\" maxlength=\"%u\" value=\"%s\""
|
" maxlength=\"%u\" value=\"%s\""
|
||||||
|
" class=\"INPUT_WWW\""
|
||||||
" onchange=\"document.getElementById('%s').submit();\" />",
|
" onchange=\"document.getElementById('%s').submit();\" />",
|
||||||
Cns_MAX_LENGTH_WWW,Ins->WWW,
|
Cns_MAX_LENGTH_WWW,Ins->WWW,
|
||||||
Gbl.FormId);
|
Gbl.FormId);
|
||||||
|
@ -1264,15 +1267,15 @@ static void Ins_ListInstitutionsForEdition (void)
|
||||||
"</td>",
|
"</td>",
|
||||||
Ins->NumCtrs);
|
Ins->NumCtrs);
|
||||||
|
|
||||||
/* Degree status */
|
/* Institution status */
|
||||||
StatusTxt = Ins_GetStatusTxtFromStatusBits (Ins->Status);
|
StatusTxt = Ins_GetStatusTxtFromStatusBits (Ins->Status);
|
||||||
fprintf (Gbl.F.Out,"<td class=\"DAT LEFT_MIDDLE\">");
|
fprintf (Gbl.F.Out,"<td class=\"DAT STATUS\">");
|
||||||
if (Gbl.Usrs.Me.LoggedRole == Rol_SYS_ADM &&
|
if (Gbl.Usrs.Me.LoggedRole == Rol_SYS_ADM &&
|
||||||
StatusTxt == Ins_STATUS_PENDING)
|
StatusTxt == Ins_STATUS_PENDING)
|
||||||
{
|
{
|
||||||
Act_FormStart (ActChgInsSta);
|
Act_FormStart (ActChgInsSta);
|
||||||
Ins_PutParamOtherInsCod (Ins->InsCod);
|
Ins_PutParamOtherInsCod (Ins->InsCod);
|
||||||
fprintf (Gbl.F.Out,"<select name=\"Status\" style=\"width:100px;\""
|
fprintf (Gbl.F.Out,"<select name=\"Status\" class=\"INPUT_STATUS\""
|
||||||
" onchange=\"document.getElementById('%s').submit();\">"
|
" onchange=\"document.getElementById('%s').submit();\">"
|
||||||
"<option value=\"%u\" selected=\"selected\">%s</option>"
|
"<option value=\"%u\" selected=\"selected\">%s</option>"
|
||||||
"<option value=\"%u\">%s</option>"
|
"<option value=\"%u\">%s</option>"
|
||||||
|
@ -1288,13 +1291,13 @@ static void Ins_ListInstitutionsForEdition (void)
|
||||||
fprintf (Gbl.F.Out,"%s",Txt_INSTITUTION_STATUS[StatusTxt]);
|
fprintf (Gbl.F.Out,"%s",Txt_INSTITUTION_STATUS[StatusTxt]);
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Degree requester */
|
/* Institution requester */
|
||||||
UsrDat.UsrCod = Ins->RequesterUsrCod;
|
UsrDat.UsrCod = Ins->RequesterUsrCod;
|
||||||
Usr_ChkUsrCodAndGetAllUsrDataFromUsrCod (&UsrDat);
|
Usr_ChkUsrCodAndGetAllUsrDataFromUsrCod (&UsrDat);
|
||||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\" style=\"width:125px;\">"
|
fprintf (Gbl.F.Out,"<td class=\"INPUT_REQUESTER LEFT_TOP\">"
|
||||||
"<table class=\"CELLS_PAD_2\" style=\"width:125px;\">"
|
"<table class=\"INPUT_REQUESTER CELLS_PAD_2\">"
|
||||||
"<tr>");
|
"<tr>");
|
||||||
Msg_WriteMsgAuthor (&UsrDat,100,10,"DAT",true,NULL);
|
Msg_WriteMsgAuthor (&UsrDat,100,6,"DAT",true,NULL);
|
||||||
fprintf (Gbl.F.Out,"</tr>"
|
fprintf (Gbl.F.Out,"</tr>"
|
||||||
"</table>"
|
"</table>"
|
||||||
"</td>"
|
"</td>"
|
||||||
|
@ -1790,7 +1793,7 @@ static void Ins_PutFormToCreateInstitution (void)
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/***** Institution code *****/
|
/***** Institution code *****/
|
||||||
fprintf (Gbl.F.Out,"<td></td>");
|
fprintf (Gbl.F.Out,"<td class=\"CODE\"></td>");
|
||||||
|
|
||||||
/***** Institution logo *****/
|
/***** Institution logo *****/
|
||||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\" style=\"width:25px;\">");
|
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\" style=\"width:25px;\">");
|
||||||
|
@ -1798,9 +1801,9 @@ static void Ins_PutFormToCreateInstitution (void)
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/***** Country *****/
|
/***** Country *****/
|
||||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\">"
|
||||||
"<select name=\"OthCtyCod\""
|
"<select name=\"OthCtyCod\""
|
||||||
" style=\"width:100px;\" disabled=\"disabled\">"
|
" style=\"width:40px;\" disabled=\"disabled\">"
|
||||||
"<option value=\"%ld\" selected=\"selected\">"
|
"<option value=\"%ld\" selected=\"selected\">"
|
||||||
"%s"
|
"%s"
|
||||||
"</option>"
|
"</option>"
|
||||||
|
@ -1810,23 +1813,26 @@ static void Ins_PutFormToCreateInstitution (void)
|
||||||
Gbl.CurrentCty.Cty.Name[Gbl.Prefs.Language]);
|
Gbl.CurrentCty.Cty.Name[Gbl.Prefs.Language]);
|
||||||
|
|
||||||
/***** Institution short name *****/
|
/***** Institution short name *****/
|
||||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\">"
|
||||||
"<input type=\"text\" name=\"ShortName\""
|
"<input type=\"text\" name=\"ShortName\""
|
||||||
" size=\"10\" maxlength=\"%u\" value=\"%s\" />"
|
" maxlength=\"%u\" value=\"%s\""
|
||||||
|
" class=\"INPUT_SHORT_NAME\" />"
|
||||||
"</td>",
|
"</td>",
|
||||||
Ins_MAX_LENGTH_INSTITUTION_SHORT_NAME,Ins->ShortName);
|
Ins_MAX_LENGTH_INSTITUTION_SHORT_NAME,Ins->ShortName);
|
||||||
|
|
||||||
/***** Institution full name *****/
|
/***** Institution full name *****/
|
||||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\">"
|
||||||
"<input type=\"text\" name=\"FullName\""
|
"<input type=\"text\" name=\"FullName\""
|
||||||
" size=\"30\" maxlength=\"%u\" value=\"%s\" />"
|
" maxlength=\"%u\" value=\"%s\""
|
||||||
|
" class=\"INPUT_FULL_NAME\" />"
|
||||||
"</td>",
|
"</td>",
|
||||||
Ins_MAX_LENGTH_INSTITUTION_FULL_NAME,Ins->FullName);
|
Ins_MAX_LENGTH_INSTITUTION_FULL_NAME,Ins->FullName);
|
||||||
|
|
||||||
/***** Institution WWW *****/
|
/***** Institution WWW *****/
|
||||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\">"
|
||||||
"<input type=\"text\" name=\"WWW\""
|
"<input type=\"text\" name=\"WWW\""
|
||||||
" size=\"10\" maxlength=\"%u\" value=\"%s\" />"
|
" maxlength=\"%u\" value=\"%s\""
|
||||||
|
" class=\"INPUT_WWW\" />"
|
||||||
"</td>",
|
"</td>",
|
||||||
Cns_MAX_LENGTH_WWW,Ins->WWW);
|
Cns_MAX_LENGTH_WWW,Ins->WWW);
|
||||||
|
|
||||||
|
@ -1840,17 +1846,17 @@ static void Ins_PutFormToCreateInstitution (void)
|
||||||
"0"
|
"0"
|
||||||
"</td>");
|
"</td>");
|
||||||
|
|
||||||
/***** Centre status *****/
|
/***** Institution status *****/
|
||||||
fprintf (Gbl.F.Out,"<td class=\"DAT LEFT_MIDDLE\">"
|
fprintf (Gbl.F.Out,"<td class=\"DAT STATUS\">"
|
||||||
"%s"
|
"%s"
|
||||||
"</td>",
|
"</td>",
|
||||||
Txt_INSTITUTION_STATUS[Ins_STATUS_PENDING]);
|
Txt_INSTITUTION_STATUS[Ins_STATUS_PENDING]);
|
||||||
|
|
||||||
/***** Centre requester *****/
|
/***** Institution requester *****/
|
||||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\" style=\"width:125px;\">"
|
fprintf (Gbl.F.Out,"<td class=\"INPUT_REQUESTER LEFT_TOP\">"
|
||||||
"<table class=\"CELLS_PAD_2\" style=\"width:125px;\">"
|
"<table class=\"INPUT_REQUESTER CELLS_PAD_2\">"
|
||||||
"<tr>");
|
"<tr>");
|
||||||
Msg_WriteMsgAuthor (&Gbl.Usrs.Me.UsrDat,100,10,"DAT",true,NULL);
|
Msg_WriteMsgAuthor (&Gbl.Usrs.Me.UsrDat,100,6,"DAT",true,NULL);
|
||||||
fprintf (Gbl.F.Out,"</tr>"
|
fprintf (Gbl.F.Out,"</tr>"
|
||||||
"</table>"
|
"</table>"
|
||||||
"</td>"
|
"</td>"
|
||||||
|
@ -1884,7 +1890,7 @@ static void Ins_PutHeadInstitutionsForEdition (void)
|
||||||
"<th class=\"RIGHT_MIDDLE\">"
|
"<th class=\"RIGHT_MIDDLE\">"
|
||||||
"%s"
|
"%s"
|
||||||
"</th>"
|
"</th>"
|
||||||
"<th style=\"width:25px;\"></th>"
|
"<th></th>"
|
||||||
"<th class=\"LEFT_MIDDLE\">"
|
"<th class=\"LEFT_MIDDLE\">"
|
||||||
"%s"
|
"%s"
|
||||||
"</th>"
|
"</th>"
|
||||||
|
|
18
swad_link.c
18
swad_link.c
|
@ -351,7 +351,8 @@ static void Lnk_ListLinksForEdition (void)
|
||||||
Act_FormStart (ActRenLnkSho);
|
Act_FormStart (ActRenLnkSho);
|
||||||
Lnk_PutParamLnkCod (Lnk->LnkCod);
|
Lnk_PutParamLnkCod (Lnk->LnkCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"ShortName\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"ShortName\""
|
||||||
" size=\"10\" maxlength=\"%u\" value=\"%s\""
|
" maxlength=\"%u\" value=\"%s\""
|
||||||
|
" class=\"INPUT_SHORT_NAME\""
|
||||||
" onchange=\"document.getElementById('%s').submit();\" />",
|
" onchange=\"document.getElementById('%s').submit();\" />",
|
||||||
Lnk_MAX_LENGTH_LINK_SHORT_NAME,Lnk->ShortName,
|
Lnk_MAX_LENGTH_LINK_SHORT_NAME,Lnk->ShortName,
|
||||||
Gbl.FormId);
|
Gbl.FormId);
|
||||||
|
@ -363,7 +364,8 @@ static void Lnk_ListLinksForEdition (void)
|
||||||
Act_FormStart (ActRenLnkFul);
|
Act_FormStart (ActRenLnkFul);
|
||||||
Lnk_PutParamLnkCod (Lnk->LnkCod);
|
Lnk_PutParamLnkCod (Lnk->LnkCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"FullName\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"FullName\""
|
||||||
" size=\"20\" maxlength=\"%u\" value=\"%s\""
|
" maxlength=\"%u\" value=\"%s\""
|
||||||
|
" class=\"INPUT_FULL_NAME\""
|
||||||
" onchange=\"document.getElementById('%s').submit();\" />",
|
" onchange=\"document.getElementById('%s').submit();\" />",
|
||||||
Lnk_MAX_LENGTH_LINK_FULL_NAME,Lnk->FullName,
|
Lnk_MAX_LENGTH_LINK_FULL_NAME,Lnk->FullName,
|
||||||
Gbl.FormId);
|
Gbl.FormId);
|
||||||
|
@ -375,7 +377,8 @@ static void Lnk_ListLinksForEdition (void)
|
||||||
Act_FormStart (ActChgLnkWWW);
|
Act_FormStart (ActChgLnkWWW);
|
||||||
Lnk_PutParamLnkCod (Lnk->LnkCod);
|
Lnk_PutParamLnkCod (Lnk->LnkCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"WWW\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"WWW\""
|
||||||
" size=\"20\" maxlength=\"%u\" value=\"%s\""
|
" maxlength=\"%u\" value=\"%s\""
|
||||||
|
" class=\"INPUT_WWW\""
|
||||||
" onchange=\"document.getElementById('%s').submit();\" />",
|
" onchange=\"document.getElementById('%s').submit();\" />",
|
||||||
Cns_MAX_LENGTH_WWW,Lnk->WWW,
|
Cns_MAX_LENGTH_WWW,Lnk->WWW,
|
||||||
Gbl.FormId);
|
Gbl.FormId);
|
||||||
|
@ -634,21 +637,24 @@ static void Lnk_PutFormToCreateLink (void)
|
||||||
/***** Link short name *****/
|
/***** Link short name *****/
|
||||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
||||||
"<input type=\"text\" name=\"ShortName\""
|
"<input type=\"text\" name=\"ShortName\""
|
||||||
" size=\"10\" maxlength=\"%u\" value=\"%s\" />"
|
" maxlength=\"%u\" value=\"%s\""
|
||||||
|
" class=\"INPUT_SHORT_NAME\" />"
|
||||||
"</td>",
|
"</td>",
|
||||||
Lnk_MAX_LENGTH_LINK_SHORT_NAME,Lnk->ShortName);
|
Lnk_MAX_LENGTH_LINK_SHORT_NAME,Lnk->ShortName);
|
||||||
|
|
||||||
/***** Link full name *****/
|
/***** Link full name *****/
|
||||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
||||||
"<input type=\"text\" name=\"FullName\""
|
"<input type=\"text\" name=\"FullName\""
|
||||||
" size=\"20\" maxlength=\"%u\" value=\"%s\" />"
|
" maxlength=\"%u\" value=\"%s\""
|
||||||
|
" class=\"INPUT_FULL_NAME\" />"
|
||||||
"</td>",
|
"</td>",
|
||||||
Lnk_MAX_LENGTH_LINK_FULL_NAME,Lnk->FullName);
|
Lnk_MAX_LENGTH_LINK_FULL_NAME,Lnk->FullName);
|
||||||
|
|
||||||
/***** Link WWW *****/
|
/***** Link WWW *****/
|
||||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
||||||
"<input type=\"text\" name=\"WWW\""
|
"<input type=\"text\" name=\"WWW\""
|
||||||
" size=\"20\" maxlength=\"%u\" value=\"%s\" />"
|
" maxlength=\"%u\" value=\"%s\""
|
||||||
|
" class=\"INPUT_WWW\" />"
|
||||||
"</td>"
|
"</td>"
|
||||||
"</tr>",
|
"</tr>",
|
||||||
Cns_MAX_LENGTH_WWW,Lnk->WWW);
|
Cns_MAX_LENGTH_WWW,Lnk->WWW);
|
||||||
|
|
|
@ -2856,7 +2856,8 @@ static void Msg_WriteSentOrReceivedMsgSubject (Msg_TypeOfMessages_t TypeOfMessag
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
// Input: UsrDat must hold user's data
|
// Input: UsrDat must hold user's data
|
||||||
|
|
||||||
void Msg_WriteMsgAuthor (struct UsrData *UsrDat,unsigned WidthOfNameColumn,unsigned MaxCharsInName,
|
void Msg_WriteMsgAuthor (struct UsrData *UsrDat,
|
||||||
|
unsigned WidthOfNameColumn,unsigned MaxCharsInName,
|
||||||
const char *Style,bool Enabled,const char *BgColor)
|
const char *Style,bool Enabled,const char *BgColor)
|
||||||
{
|
{
|
||||||
extern const char *Txt_Unknown_or_without_photo;
|
extern const char *Txt_Unknown_or_without_photo;
|
||||||
|
|
|
@ -99,7 +99,8 @@ void Msg_GetMsgSubject (long MsgCod,char *Subject);
|
||||||
void Msg_GetNotifMessage (char *SummaryStr,char **ContentStr,long MsgCod,unsigned MaxChars,bool GetContent);
|
void Msg_GetNotifMessage (char *SummaryStr,char **ContentStr,long MsgCod,unsigned MaxChars,bool GetContent);
|
||||||
|
|
||||||
void Msg_WriteMsgNumber (unsigned long MsgNum,bool NewMsg);
|
void Msg_WriteMsgNumber (unsigned long MsgNum,bool NewMsg);
|
||||||
void Msg_WriteMsgAuthor (struct UsrData *UsrDat,unsigned WidthOfNameColumn,unsigned MaxCharsInName,
|
void Msg_WriteMsgAuthor (struct UsrData *UsrDat,
|
||||||
|
unsigned WidthOfNameColumn,unsigned MaxCharsInName,
|
||||||
const char *Style,bool Enabled,const char *BgColor);
|
const char *Style,bool Enabled,const char *BgColor);
|
||||||
bool Msg_WriteCrsOrgMsg (long CrsCod);
|
bool Msg_WriteCrsOrgMsg (long CrsCod);
|
||||||
void Msg_WriteListUsrsDstMsg (long MsgCod);
|
void Msg_WriteListUsrsDstMsg (long MsgCod);
|
||||||
|
|
12
swad_place.c
12
swad_place.c
|
@ -448,7 +448,8 @@ static void Plc_ListPlacesForEdition (void)
|
||||||
Act_FormStart (ActRenPlcSho);
|
Act_FormStart (ActRenPlcSho);
|
||||||
Plc_PutParamPlcCod (Plc->PlcCod);
|
Plc_PutParamPlcCod (Plc->PlcCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"ShortName\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"ShortName\""
|
||||||
" size=\"15\" maxlength=\"%u\" value=\"%s\""
|
" maxlength=\"%u\" value=\"%s\""
|
||||||
|
" class=\"INPUT_SHORT_NAME\""
|
||||||
" onchange=\"document.getElementById('%s').submit();\" />",
|
" onchange=\"document.getElementById('%s').submit();\" />",
|
||||||
Plc_MAX_LENGTH_PLACE_SHORT_NAME,Plc->ShortName,Gbl.FormId);
|
Plc_MAX_LENGTH_PLACE_SHORT_NAME,Plc->ShortName,Gbl.FormId);
|
||||||
Act_FormEnd ();
|
Act_FormEnd ();
|
||||||
|
@ -459,7 +460,8 @@ static void Plc_ListPlacesForEdition (void)
|
||||||
Act_FormStart (ActRenPlcFul);
|
Act_FormStart (ActRenPlcFul);
|
||||||
Plc_PutParamPlcCod (Plc->PlcCod);
|
Plc_PutParamPlcCod (Plc->PlcCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"FullName\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"FullName\""
|
||||||
" size=\"40\" maxlength=\"%u\" value=\"%s\""
|
" maxlength=\"%u\" value=\"%s\""
|
||||||
|
" class=\"INPUT_FULL_NAME\""
|
||||||
" onchange=\"document.getElementById('%s').submit();\" />",
|
" onchange=\"document.getElementById('%s').submit();\" />",
|
||||||
Plc_MAX_LENGTH_PLACE_FULL_NAME,Plc->FullName,Gbl.FormId);
|
Plc_MAX_LENGTH_PLACE_FULL_NAME,Plc->FullName,Gbl.FormId);
|
||||||
Act_FormEnd ();
|
Act_FormEnd ();
|
||||||
|
@ -696,14 +698,16 @@ static void Plc_PutFormToCreatePlace (void)
|
||||||
fprintf (Gbl.F.Out,"<tr>"
|
fprintf (Gbl.F.Out,"<tr>"
|
||||||
"<td class=\"CENTER_MIDDLE\">"
|
"<td class=\"CENTER_MIDDLE\">"
|
||||||
"<input type=\"text\" name=\"ShortName\""
|
"<input type=\"text\" name=\"ShortName\""
|
||||||
" size=\"15\" maxlength=\"%u\" value=\"%s\" />"
|
" maxlength=\"%u\" value=\"%s\""
|
||||||
|
" class=\"INPUT_SHORT_NAME\" />"
|
||||||
"</td>",
|
"</td>",
|
||||||
Plc_MAX_LENGTH_PLACE_SHORT_NAME,Plc->ShortName);
|
Plc_MAX_LENGTH_PLACE_SHORT_NAME,Plc->ShortName);
|
||||||
|
|
||||||
/***** Place full name *****/
|
/***** Place full name *****/
|
||||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
||||||
"<input type=\"text\" name=\"FullName\""
|
"<input type=\"text\" name=\"FullName\""
|
||||||
" size=\"40\" maxlength=\"%u\" value=\"%s\" />"
|
" maxlength=\"%u\" value=\"%s\""
|
||||||
|
" class=\"INPUT_FULL_NAME\" />"
|
||||||
"</td>"
|
"</td>"
|
||||||
"<td></td>"
|
"<td></td>"
|
||||||
"</tr>",
|
"</tr>",
|
||||||
|
|
37
swad_text.c
37
swad_text.c
|
@ -5466,23 +5466,23 @@ const char *Txt_Courses =
|
||||||
|
|
||||||
const char *Txt_Courses_ABBREVIATION =
|
const char *Txt_Courses_ABBREVIATION =
|
||||||
#if L==0
|
#if L==0
|
||||||
"Assignat.";
|
"Assig.";
|
||||||
#elif L==1
|
#elif L==1
|
||||||
"Veranst.";
|
"Veran.";
|
||||||
#elif L==2
|
#elif L==2
|
||||||
"Courses";
|
"Cours.";
|
||||||
#elif L==3
|
#elif L==3
|
||||||
"Asignat.";
|
"Asig.";
|
||||||
#elif L==4
|
#elif L==4
|
||||||
"Matiè.";
|
"Mat.";
|
||||||
#elif L==5
|
#elif L==5
|
||||||
"Asignat."; // Okoteve traducción
|
"Asig."; // Okoteve traducción
|
||||||
#elif L==6
|
#elif L==6
|
||||||
"Corsi";
|
"Corsi";
|
||||||
#elif L==7
|
#elif L==7
|
||||||
"Kursów";
|
"Kurs.";
|
||||||
#elif L==8
|
#elif L==8
|
||||||
"Discip.";
|
"Disc.";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
const char *Txt_courses =
|
const char *Txt_courses =
|
||||||
|
@ -45978,27 +45978,6 @@ const char *Txt_Type_of_BR_answers = // Answers of a test
|
||||||
"Tipo de<br />respostas";
|
"Tipo de<br />respostas";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
const char *Txt_Type_of_degree =
|
|
||||||
#if L==0
|
|
||||||
"Tipus de titulació";
|
|
||||||
#elif L==1
|
|
||||||
"Abschlussart";
|
|
||||||
#elif L==2
|
|
||||||
"Type of degree";
|
|
||||||
#elif L==3
|
|
||||||
"Tipo de titulación";
|
|
||||||
#elif L==4
|
|
||||||
"Type d'étude";
|
|
||||||
#elif L==5
|
|
||||||
"Arandurã lája";
|
|
||||||
#elif L==6
|
|
||||||
"Tipo di laurea";
|
|
||||||
#elif L==7
|
|
||||||
"Type of degree"; // Potrzebujesz tlumaczenie
|
|
||||||
#elif L==8
|
|
||||||
"Tipo de titulação";
|
|
||||||
#endif
|
|
||||||
|
|
||||||
const char *Txt_Type_of_BR_degree =
|
const char *Txt_Type_of_BR_degree =
|
||||||
#if L==0
|
#if L==0
|
||||||
"Tipo de<br />titulación"; // Necessita traduccio
|
"Tipo de<br />titulación"; // Necessita traduccio
|
||||||
|
|
Loading…
Reference in New Issue
Block a user