mirror of https://github.com/acanas/swad-core.git
Version 15.0
This commit is contained in:
parent
4d20b8ba60
commit
85a2e6c713
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -219,8 +219,8 @@ function zoom(imagen,urlPhoto,shortName) {
|
|||
yPos += tempEl.offsetTop;
|
||||
tempEl = tempEl.offsetParent;
|
||||
}
|
||||
xPos -= (150+12);
|
||||
yPos -= ((200+12)/2);
|
||||
xPos -= (225+18);
|
||||
yPos -= ((300+18)/2);
|
||||
if (yPos < 0)
|
||||
yPos = 0;
|
||||
document.getElementById('zoomLyr').style.left = xPos + 'px';
|
||||
|
@ -231,8 +231,8 @@ function zoom(imagen,urlPhoto,shortName) {
|
|||
|
||||
// Exit from zooming a user's photograph
|
||||
function noZoom(imagen) {
|
||||
var xPos = -(150+12);
|
||||
var yPos = -(200+12+88);
|
||||
var xPos = -(225+18);
|
||||
var yPos = -(300+18+132);
|
||||
document.getElementById('zoomTxt').innerHTML = '';
|
||||
document.getElementById('zoomImg').src='/icon/_.gif';
|
||||
document.getElementById('zoomLyr').style.left = xPos + 'px';
|
||||
|
|
19
swad_QR.c
19
swad_QR.c
|
@ -41,8 +41,7 @@
|
|||
/***************************** Internal constants ****************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
//#define QR_CODE_SIZE ((6+21+6)*6)
|
||||
#define QR_CODE_SIZE ((6+25+6)*6)
|
||||
#define QR_CODE_SIZE ((6+25+6)*9) // Changed!
|
||||
#define QR_DEFAULT_TYPE QR_ID
|
||||
|
||||
/*****************************************************************************/
|
||||
|
@ -107,11 +106,11 @@ void QR_PrintQRCode (void)
|
|||
|
||||
static void QR_ImageQRCode (const char *QRString)
|
||||
{
|
||||
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\" style=\"width:%upx;\">"
|
||||
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\" style=\"width:%upx;\">" // Changed!
|
||||
"<img src=\"https://chart.googleapis.com/chart?cht=qr&chs=%ux%u&chl=%s\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
" style=\"width:%upx; height:%upx;"
|
||||
" border:1px dashed silver;\" />"
|
||||
" style=\"width:%upx; height:%upx;" // Changed!
|
||||
" border:1px dashed silver;\" />" // Changed!
|
||||
"<br />"
|
||||
"<span class=\"DAT\">%s</span>"
|
||||
"</div>",
|
||||
|
@ -134,10 +133,10 @@ void QR_LinkTo (unsigned Size,const char *ParamStr,long Cod)
|
|||
extern const char *Txt_STR_LANG_ID[Txt_NUM_LANGUAGES];
|
||||
|
||||
/***** Show QR code with direct link to the current centre *****/
|
||||
fprintf (Gbl.F.Out,"<img src=\"https://chart.googleapis.com/chart?cht=qr&chs=%ux%u&chl=%s/%s?%s=%ld\""
|
||||
fprintf (Gbl.F.Out,"<img src=\"https://chart.googleapis.com/chart?cht=qr&chs=%ux%u&chl=%s/%s?%s=%ld\"" // Changed!
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
" style=\"width:%upx; height:%upx;\" />",
|
||||
Size,Size,
|
||||
" style=\"width:%upx; height:%upx;\" />", // Changed!
|
||||
Size,Size, // Changed!
|
||||
Cfg_HTTPS_URL_SWAD_CGI,Txt_STR_LANG_ID[Gbl.Prefs.Language],ParamStr,Cod,
|
||||
Txt_Shortcut,
|
||||
Txt_Shortcut,
|
||||
|
@ -156,9 +155,9 @@ void QR_ExamAnnnouncement (void)
|
|||
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\">"
|
||||
"<img src=\"https://chart.googleapis.com/chart?cht=qr&chs=%ux%u&chl=%s/?crs=%ld%%26act=%ld\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
" style=\"width:200px; height:200px;\" />"
|
||||
" style=\"width:300px; height:300px;\" />" // Changed!
|
||||
"</div>",
|
||||
200,200,
|
||||
300,300, // Changed!
|
||||
Cfg_HTTPS_URL_SWAD_CGI,Gbl.CurrentCrs.Crs.CrsCod,Act_Actions[ActSeeExaAnn].ActCod,
|
||||
Txt_Link_to_announcement_of_exam,
|
||||
Txt_Link_to_announcement_of_exam);
|
||||
|
|
|
@ -31,8 +31,6 @@
|
|||
/***************************** Public constants ******************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
#define QR_NUM_QR_TYPES 3
|
||||
|
||||
/*****************************************************************************/
|
||||
/******************************* Public types ********************************/
|
||||
/*****************************************************************************/
|
||||
|
@ -44,7 +42,7 @@
|
|||
void QR_PutLinkToPrintQRCode (struct UsrData *UsrDat,bool PrintText);
|
||||
void QR_PrintQRCode (void);
|
||||
|
||||
void QR_LinkTo (unsigned Size,const char *ParamStr,long Cod);
|
||||
void QR_LinkTo (unsigned Size,const char *ParamStr,long Cod); // Changed!
|
||||
void QR_ExamAnnnouncement (void);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -4874,12 +4874,12 @@ void Act_WriteBigMFUActions (struct Act_ListMFUActions *ListMFUActions)
|
|||
/* Icon and text */
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"LEFT_MIDDLE\""
|
||||
" style=\"padding-left:2px;\">");
|
||||
" style=\"padding-left:3px;\">"); // Changed!
|
||||
Act_FormStart (Action);
|
||||
Act_LinkFormSubmit (TabMenuStr,The_ClassFormNoWrap[Gbl.Prefs.Theme]);
|
||||
fprintf (Gbl.F.Out,"<img src=\"%s/%s/%s64x64.gif\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
" class=\"ICON32x32\" style=\"margin:4px;\" />",
|
||||
" class=\"ICON32x32\" style=\"margin:6px;\" />", // Changed!
|
||||
Gbl.Prefs.PathIconSet,Cfg_ICON_ACTION,
|
||||
Act_Actions[Action].Icon,
|
||||
MenuStr,TabMenuStr);
|
||||
|
@ -4944,7 +4944,7 @@ void Act_WriteSmallMFUActions (struct Act_ListMFUActions *ListMFUActions)
|
|||
fprintf (Gbl.F.Out,"<img src=\"%s/%s/%s64x64.gif\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
" class=\"ICON16x16\""
|
||||
" style=\"margin:1px;\" />",
|
||||
" style=\"margin:1px;\" />", // Changed!
|
||||
Gbl.Prefs.PathIconSet,Cfg_ICON_ACTION,
|
||||
Act_Actions[Action].Icon,
|
||||
MenuStr,TabMenuStr);
|
||||
|
|
|
@ -209,7 +209,7 @@ static void Ann_ShowAnnouncement (long AnnCod,const char *Subject,const char *Co
|
|||
|
||||
/***** Start yellow note *****/
|
||||
fprintf (Gbl.F.Out,"<div class=\"NOTICE_CONTAINER\""
|
||||
" style=\"width:400px;\">");
|
||||
" style=\"width:600px;\">"); // Changed!
|
||||
|
||||
/***** Write the content of the announcement *****/
|
||||
fprintf (Gbl.F.Out,"<div class=\"NOTICE_SUBJECT\">%s</div>",
|
||||
|
@ -220,7 +220,7 @@ static void Ann_ShowAnnouncement (long AnnCod,const char *Subject,const char *Co
|
|||
Content);
|
||||
|
||||
/***** Write form *****/
|
||||
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\" style=\"margin:10px;\">");
|
||||
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\" style=\"margin:15px;\">"); // Changed!
|
||||
|
||||
if (ShowAllAnnouncements)
|
||||
{
|
||||
|
|
|
@ -1887,7 +1887,7 @@ static void Att_ListAttOnlyMeAsStudent (struct AttendanceEvent *Att)
|
|||
"<th></th>"
|
||||
"<th></th>");
|
||||
if (Gbl.Usrs.Listing.WithPhotos)
|
||||
fprintf (Gbl.F.Out,"<th style=\"width:18px;\"></th>");
|
||||
fprintf (Gbl.F.Out,"<th style=\"width:27px;\"></th>"); // Changed!
|
||||
fprintf (Gbl.F.Out,"<th colspan=\"2\" class=\"TIT_TBL LEFT_MIDDLE\">"
|
||||
"%s"
|
||||
"</th>"
|
||||
|
@ -1958,7 +1958,7 @@ static void Att_ListAttStudents (struct AttendanceEvent *Att)
|
|||
"<th></th>"
|
||||
"<th></th>");
|
||||
if (Gbl.Usrs.Listing.WithPhotos)
|
||||
fprintf (Gbl.F.Out,"<th style=\"width:18px;\"></th>");
|
||||
fprintf (Gbl.F.Out,"<th style=\"width:27px;\"></th>"); // Changed!
|
||||
fprintf (Gbl.F.Out,"<th colspan=\"2\" class=\"LEFT_MIDDLE\">"
|
||||
"%s"
|
||||
"</th>"
|
||||
|
@ -3158,7 +3158,7 @@ static void Att_WriteRowStdSeveralAttEvents (unsigned NumStd,struct UsrData *Usr
|
|||
if (Gbl.Usrs.Listing.WithPhotos)
|
||||
{
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE COLOR%u\""
|
||||
" style=\"width:18px;\">",
|
||||
" style=\"width:27px;\">", // Changed!
|
||||
Gbl.RowEvenOdd);
|
||||
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL);
|
||||
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
|
||||
|
@ -3292,7 +3292,7 @@ static void Att_ListAttEventsForAStd (unsigned NumStd,struct UsrData *UsrDat)
|
|||
|
||||
/***** Show student's photo *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE COLOR%u\""
|
||||
" style=\"width:18px;\">",
|
||||
" style=\"width:27px;\">", // Changed!
|
||||
Gbl.RowEvenOdd);
|
||||
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL);
|
||||
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
|
||||
|
|
|
@ -906,7 +906,7 @@ void Ban_WriteMenuWithBanners (void)
|
|||
{
|
||||
/* Write data of this banner */
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"LEFT_MIDDLE\" style=\"width:120px;\">");
|
||||
"<td class=\"LEFT_MIDDLE\" style=\"width:180px;\">"); // Changed!
|
||||
Act_FormStart (ActClkBan);
|
||||
Ban_PutParamBanCod (Gbl.Banners.Lst[NumBan].BanCod);
|
||||
Par_PutHiddenParamString ("URL",Gbl.Banners.Lst[NumBan].WWW);
|
||||
|
|
|
@ -142,7 +142,7 @@ void Cal_DrawCalendar (void)
|
|||
/***** Draw several months *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"CENTER_TOP\">"
|
||||
"<table style=\"border-spacing:5px;\">");
|
||||
"<table style=\"border-spacing:7px;\">"); // Changed!
|
||||
for (Row = 0;
|
||||
Row < 4;
|
||||
Row++)
|
||||
|
@ -152,7 +152,7 @@ void Cal_DrawCalendar (void)
|
|||
Col < 4;
|
||||
Col++)
|
||||
{
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_TOP\" style=\"width:120px;\">");
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_TOP\" style=\"width:180px;\">"); // Changed!
|
||||
Cal_DrawMonth (Year,Month,true,!PrintView,(Gbl.CurrentAct == ActPrnCal));
|
||||
fprintf (Gbl.F.Out,"</td>");
|
||||
if (++Month == 13)
|
||||
|
|
|
@ -432,7 +432,7 @@ static void Ctr_Configuration (bool PrintView)
|
|||
"<td class=\"DAT LEFT_MIDDLE\">",
|
||||
The_ClassForm[Gbl.Prefs.Theme],
|
||||
Txt_QR_code);
|
||||
QR_LinkTo (200,"ctr",Gbl.CurrentCtr.Ctr.CtrCod);
|
||||
QR_LinkTo (300,"ctr",Gbl.CurrentCtr.Ctr.CtrCod); // Changed!
|
||||
fprintf (Gbl.F.Out,"</td>"
|
||||
"</tr>");
|
||||
}
|
||||
|
@ -1046,7 +1046,7 @@ void Ctr_WriteSelectorOfCentre (void)
|
|||
|
||||
/***** Start form *****/
|
||||
Act_FormGoToStart (ActSeeDeg);
|
||||
fprintf (Gbl.F.Out,"<select name=\"ctr\" style=\"width:140px;\"");
|
||||
fprintf (Gbl.F.Out,"<select name=\"ctr\" style=\"width:210px;\""); // Changed!
|
||||
if (Gbl.CurrentIns.Ins.InsCod > 0)
|
||||
fprintf (Gbl.F.Out," onchange=\"javascript:document.getElementById('%s').submit();\"",
|
||||
Gbl.FormId);
|
||||
|
@ -1164,7 +1164,7 @@ static void Ctr_ListCentresForEdition (void)
|
|||
|
||||
/* Centre logo */
|
||||
fprintf (Gbl.F.Out,"<td title=\"%s\" class=\"LEFT_MIDDLE\""
|
||||
" style=\"width:20px;\">",
|
||||
" style=\"width:30px;\">", // Changed!
|
||||
Ctr->FullName);
|
||||
Log_DrawLogo (Sco_SCOPE_CTR,Ctr->CtrCod,Ctr->ShortName,16,NULL,true);
|
||||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
@ -1175,7 +1175,7 @@ static void Ctr_ListCentresForEdition (void)
|
|||
{
|
||||
Act_FormStart (ActChgCtrIns);
|
||||
Ctr_PutParamOtherCtrCod (Ctr->CtrCod);
|
||||
fprintf (Gbl.F.Out,"<select name=\"OthInsCod\" style=\"width:50px;\""
|
||||
fprintf (Gbl.F.Out,"<select name=\"OthInsCod\" style=\"width:75px;\"" // Changed!
|
||||
" onchange=\"javascript:document.getElementById('%s').submit();\">",
|
||||
Gbl.FormId);
|
||||
for (NumIns = 0;
|
||||
|
@ -1199,7 +1199,7 @@ static void Ctr_ListCentresForEdition (void)
|
|||
{
|
||||
Act_FormStart (ActChgCtrPlc);
|
||||
Ctr_PutParamOtherCtrCod (Ctr->CtrCod);
|
||||
fprintf (Gbl.F.Out,"<select name=\"PlcCod\" style=\"width:50px;\""
|
||||
fprintf (Gbl.F.Out,"<select name=\"PlcCod\" style=\"width:75px;\"" // Changed!
|
||||
" onchange=\"javascript:document.getElementById('%s').submit();\">",
|
||||
Gbl.FormId);
|
||||
fprintf (Gbl.F.Out,"<option value=\"0\"");
|
||||
|
@ -1300,7 +1300,7 @@ static void Ctr_ListCentresForEdition (void)
|
|||
{
|
||||
Act_FormStart (ActChgCtrSta);
|
||||
Ctr_PutParamOtherCtrCod (Ctr->CtrCod);
|
||||
fprintf (Gbl.F.Out,"<select name=\"Status\" style=\"width:80px;\""
|
||||
fprintf (Gbl.F.Out,"<select name=\"Status\" style=\"width:120px;\"" // Changed!
|
||||
" onchange=\"javascript:document.getElementById('%s').submit();\">"
|
||||
"<option value=\"%u\" selected=\"selected\">%s</option>"
|
||||
"<option value=\"%u\">%s</option>"
|
||||
|
@ -1319,10 +1319,10 @@ static void Ctr_ListCentresForEdition (void)
|
|||
/* Centre requester */
|
||||
UsrDat.UsrCod = Ctr->RequesterUsrCod;
|
||||
Usr_ChkUsrCodAndGetAllUsrDataFromUsrCod (&UsrDat);
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\" style=\"width:100px;\">"
|
||||
"<table class=\"CELLS_PAD_2\" style=\"width:100px;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\" style=\"width:150px;\">" // Changed!
|
||||
"<table class=\"CELLS_PAD_2\" style=\"width:150px;\">" // Changed!
|
||||
"<tr>");
|
||||
Msg_WriteMsgAuthor (&UsrDat,80,10,"DAT",true,NULL);
|
||||
Msg_WriteMsgAuthor (&UsrDat,120,10,"DAT",true,NULL); // Changed!
|
||||
fprintf (Gbl.F.Out,"</tr>"
|
||||
"</table>"
|
||||
"</td>"
|
||||
|
@ -1960,13 +1960,13 @@ static void Ctr_PutFormToCreateCentre (void)
|
|||
fprintf (Gbl.F.Out,"<td></td>");
|
||||
|
||||
/***** Centre logo *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\" style=\"width:20px;\">");
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\" style=\"width:30px;\">"); // Changed!
|
||||
Log_DrawLogo (Sco_SCOPE_CTR,-1L,"",16,NULL,true);
|
||||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
||||
/***** Institution *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\">"
|
||||
"<select name=\"OthInsCod\" style=\"width:50px;\""
|
||||
"<select name=\"OthInsCod\" style=\"width:75px;\"" // Changed!
|
||||
" disabled=\"disabled\">"
|
||||
"<option value=\"%ld\" selected=\"selected\">"
|
||||
"%s"
|
||||
|
@ -1978,7 +1978,7 @@ static void Ctr_PutFormToCreateCentre (void)
|
|||
|
||||
/***** Place *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\">"
|
||||
"<select name=\"PlcCod\" style=\"width:50px;\">"
|
||||
"<select name=\"PlcCod\" style=\"width:75px;\">" // Changed!
|
||||
"<option value=\"0\"");
|
||||
if (Ctr->PlcCod == 0)
|
||||
fprintf (Gbl.F.Out," selected=\"selected\"");
|
||||
|
@ -2029,10 +2029,10 @@ static void Ctr_PutFormToCreateCentre (void)
|
|||
Txt_CENTRE_STATUS[Ctr_STATUS_PENDING]);
|
||||
|
||||
/***** Centre requester *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\" style=\"width:100px;\">"
|
||||
"<table class=\"CELLS_PAD_2\" style=\"width:100px;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\" style=\"width:150px;\">" // Changed!
|
||||
"<table class=\"CELLS_PAD_2\" style=\"width:150px;\">" // Changed!
|
||||
"<tr>");
|
||||
Msg_WriteMsgAuthor (&Gbl.Usrs.Me.UsrDat,80,10,"DAT",true,NULL);
|
||||
Msg_WriteMsgAuthor (&Gbl.Usrs.Me.UsrDat,120,10,"DAT",true,NULL); // Changed!
|
||||
fprintf (Gbl.F.Out,"</tr>"
|
||||
"</table>"
|
||||
"</td>"
|
||||
|
@ -2128,7 +2128,7 @@ static void Ctr_PutHeadCentresForEdition (void)
|
|||
"<th class=\"RIGHT_MIDDLE\">"
|
||||
"%s"
|
||||
"</th>"
|
||||
"<th style=\"width:20px;\"></th>"
|
||||
"<th style=\"width:30px;\"></th>" // Changed!
|
||||
"<th class=\"LEFT_MIDDLE\">"
|
||||
"%s"
|
||||
"</th>"
|
||||
|
|
|
@ -98,11 +98,12 @@
|
|||
/****************************** Public constants *****************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
#define Log_PLATFORM_VERSION "SWAD 14.135 (2015/09/23)"
|
||||
#define Log_PLATFORM_VERSION "SWAD 15.0 (2015/09/23)"
|
||||
|
||||
// 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 15.0: Sep 23, 2015 All sizes are multiplied by 1.5 (50% bigger). (184885 lines)
|
||||
Version 14.135: Sep 23, 2015 Option to show last clicks in real time is moved inside "Users - Connected". (184883 lines)
|
||||
Version 14.134.9: Sep 22, 2015 Link in connected users to clicks in real time. (184923 lines)
|
||||
Version 14.134.8: Sep 20, 2015 Fixed bug in list of guests.
|
||||
|
|
|
@ -121,7 +121,7 @@ void Cht_ShowListOfAvailableChatRooms (void)
|
|||
"<ul class=\"LIST_LEFT\">");
|
||||
|
||||
/***** Title of top level *****/
|
||||
fprintf (Gbl.F.Out,"<li class=\"DAT\" style=\"height:20px;\">"
|
||||
fprintf (Gbl.F.Out,"<li class=\"DAT\" style=\"height:30px;\">" // Changed!
|
||||
"<img src=\"%s/chat16x16.gif\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
" class=\"ICON16x16\" />"
|
||||
|
@ -301,7 +301,7 @@ static void Cht_WriteLinkToChat1 (const char *RoomCode,const char *RoomShortName
|
|||
{
|
||||
extern const char *The_ClassForm[The_NUM_THEMES];
|
||||
|
||||
fprintf (Gbl.F.Out,"<li style=\"height:20px;\">");
|
||||
fprintf (Gbl.F.Out,"<li style=\"height:30px;\">"); // Changed!
|
||||
Lay_IndentDependingOnLevel (Level,IsLastItemInLevel);
|
||||
Act_FormStart (ActCht);
|
||||
Cht_WriteParamsRoomCodeAndNames (RoomCode,RoomShortName,RoomFullName);
|
||||
|
|
|
@ -73,8 +73,8 @@
|
|||
#define Cfg_ABOUT_NAME "Centro de Educación Virtual de la Universidad Nacional de Asunción"
|
||||
#define Cfg_ABOUT_URL "http://www.cevuna.una.py/"
|
||||
#define Cfg_ABOUT_LOGO "cevuna.una.py100x32.gif"
|
||||
#define Cfg_ABOUT_LOGO_WIDTH 100
|
||||
#define Cfg_ABOUT_LOGO_HEIGHT 32
|
||||
#define Cfg_ABOUT_LOGO_WIDTH 150 // Changed!
|
||||
#define Cfg_ABOUT_LOGO_HEIGHT 48 // Changed!
|
||||
|
||||
#define Cfg_DEFAULT_COLUMNS Lay_SHOW_BOTH_COLUMNS
|
||||
#define Cfg_DEFAULT_ACTION_WHEN_NO_USR_LOGGED ActFrmUsrAcc
|
||||
|
|
|
@ -101,7 +101,7 @@ void Con_ShowConnectedUsrs (void)
|
|||
/***** Put form to update connected users *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"CENTER_MIDDLE\""
|
||||
" style=\"padding-bottom:10px;\">");
|
||||
" style=\"padding-bottom:15px;\">"); // Changed!
|
||||
Act_FormStart (ActLstCon);
|
||||
Gbl.Scope.Current = Sco_SCOPE_CRS;
|
||||
if (Gbl.Usrs.Me.LoggedRole >= Rol_DEG_ADM)
|
||||
|
@ -201,23 +201,23 @@ void Con_GetAndShowLastClicks (void)
|
|||
fprintf (Gbl.F.Out,"<table class=\"TABLE10\">"
|
||||
"<tr>"
|
||||
"<th class=\"LEFT_MIDDLE\""
|
||||
" style=\"width:70px;\">"
|
||||
" style=\"width:105px;\">" // Changed!
|
||||
"%s"
|
||||
"</th>"
|
||||
"<th class=\"LEFT_MIDDLE\""
|
||||
" style=\"width:60px;\">"
|
||||
" style=\"width:90px;\">" // Changed!
|
||||
"%s"
|
||||
"</th>"
|
||||
"<th class=\"LEFT_MIDDLE\""
|
||||
" style=\"width:100px;\">"
|
||||
" style=\"width:150px;\">" // Changed!
|
||||
"%s"
|
||||
"</th>"
|
||||
"<th class=\"LEFT_MIDDLE\""
|
||||
" style=\"width:150px;\">"
|
||||
" style=\"width:225px;\">" // Changed!
|
||||
"%s"
|
||||
"</th>"
|
||||
"<th class=\"LEFT_MIDDLE\""
|
||||
" style=\"width:220px;\">"
|
||||
" style=\"width:330px;\">" // Changed!
|
||||
"%s"
|
||||
"</th>"
|
||||
"</tr>",
|
||||
|
@ -297,12 +297,12 @@ void Con_ShowGlobalConnectedUsrs (void)
|
|||
|
||||
/***** Start table *****/
|
||||
fprintf (Gbl.F.Out,"<div class=\"CONNECTED\""
|
||||
" style=\"width:110px; \">"
|
||||
"<table style=\"width:110px;\">");
|
||||
" style=\"width:165px; \">" // Changed!
|
||||
"<table style=\"width:165px;\">"); // Changed!
|
||||
|
||||
/***** Write total number of sessions *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"CENTER_TOP\" style=\"width:110px;\">"
|
||||
"<td class=\"CENTER_TOP\" style=\"width:165px;\">" // Changed!
|
||||
"%u %s"
|
||||
"</td>"
|
||||
"</tr>",
|
||||
|
@ -312,7 +312,7 @@ void Con_ShowGlobalConnectedUsrs (void)
|
|||
|
||||
/***** Write total number of users *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"CENTER_TOP\" style=\"width:110px;\">"
|
||||
"<td class=\"CENTER_TOP\" style=\"width:165px;\">" // Changed!
|
||||
"%u %s:"
|
||||
"</td>"
|
||||
"</tr>",
|
||||
|
@ -322,7 +322,7 @@ void Con_ShowGlobalConnectedUsrs (void)
|
|||
|
||||
/***** Write total number of students *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"CENTER_TOP\" style=\"width:110px;\">"
|
||||
"<td class=\"CENTER_TOP\" style=\"width:165px;\">" // Changed!
|
||||
"%u %s"
|
||||
"</td>"
|
||||
"</tr>",
|
||||
|
@ -332,24 +332,24 @@ void Con_ShowGlobalConnectedUsrs (void)
|
|||
|
||||
/***** Write total number of teachers *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"CENTER_TOP\" style=\"width:110px;\">"
|
||||
"<td class=\"CENTER_TOP\" style=\"width:165px;\">" // Changed!
|
||||
"%u %s"
|
||||
"</td>"
|
||||
"</tr>",
|
||||
TchsTotal,
|
||||
(TchsTotal == 1) ? Txt_ROLES_SINGUL_abc[Rol_TEACHER][Usr_SEX_UNKNOWN] :
|
||||
Txt_ROLES_PLURAL_abc [Rol_TEACHER][Usr_SEX_UNKNOWN]);
|
||||
Txt_ROLES_PLURAL_abc[Rol_TEACHER][Usr_SEX_UNKNOWN]);
|
||||
|
||||
/***** Write total number of users who do not belong to any course *****/
|
||||
if (WithoutCoursesTotal)
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"CENTER_TOP\" style=\"width:110px;\">"
|
||||
"<td class=\"CENTER_TOP\" style=\"width:165px;\">" // Changed!
|
||||
"%u %s"
|
||||
"</td>"
|
||||
"</tr>",
|
||||
WithoutCoursesTotal,
|
||||
(WithoutCoursesTotal == 1) ? Txt_ROLES_SINGUL_abc[Rol__GUEST_][Usr_SEX_UNKNOWN] :
|
||||
Txt_ROLES_PLURAL_abc [Rol__GUEST_][Usr_SEX_UNKNOWN]);
|
||||
Txt_ROLES_PLURAL_abc[Rol__GUEST_][Usr_SEX_UNKNOWN]);
|
||||
|
||||
/***** End table *****/
|
||||
fprintf (Gbl.F.Out,"</table>"
|
||||
|
@ -457,12 +457,12 @@ void Con_ShowConnectedUsrsBelongingToScope (void)
|
|||
switch (Gbl.Usrs.Connected.WhereToShow)
|
||||
{
|
||||
case Con_SHOW_ON_MAIN_ZONE:
|
||||
fprintf (Gbl.F.Out,"<div class=\"CONNECTED\" style=\"width:312px;\">"
|
||||
fprintf (Gbl.F.Out,"<div class=\"CONNECTED\" style=\"width:468px;\">" // Changed!
|
||||
"<table>");
|
||||
break;
|
||||
case Con_SHOW_ON_RIGHT_COLUMN:
|
||||
fprintf (Gbl.F.Out,"<div class=\"CONNECTED\" style=\"width:110px;\">"
|
||||
"<table style=\"width:110px;\">");
|
||||
fprintf (Gbl.F.Out,"<div class=\"CONNECTED\" style=\"width:165px;\">" // Changed!
|
||||
"<table style=\"width:165px;\">"); // Changed!
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -601,7 +601,7 @@ static void Con_ShowConnectedUsrsWithARoleBelongingToCurrentLocationOnRightColum
|
|||
Gbl.Usrs.Connected.NumUsrsToList = Cfg_MAX_CONNECTED_SHOWN;
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td colspan=\"3\" class=\"CENTER_TOP\""
|
||||
" style=\"width:110px;\">"
|
||||
" style=\"width:165px;\">" // Changed!
|
||||
"%u %s"
|
||||
"</td>"
|
||||
"</tr>",
|
||||
|
@ -1017,7 +1017,7 @@ static void Con_WriteRowConnectedUsrOnRightColumn (Rol_Role_t Role)
|
|||
/***** Show photo *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"LEFT_MIDDLE COLOR%u\""
|
||||
" style=\"width:18px;\">",
|
||||
" style=\"width:27px;\">", // Changed!
|
||||
Gbl.RowEvenOdd);
|
||||
sprintf (Gbl.FormId,"form_con_%d",++Gbl.NumFormConnectedUsrs);
|
||||
Act_FormStartId (ActSeePubPrf,Gbl.FormId);
|
||||
|
@ -1033,7 +1033,7 @@ static void Con_WriteRowConnectedUsrOnRightColumn (Rol_Role_t Role)
|
|||
|
||||
/***** Write full name and link *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"%s LEFT_MIDDLE COLOR%u\""
|
||||
" style=\"width:54px;\">",
|
||||
" style=\"width:81px;\">", // Changed!
|
||||
Font,Gbl.RowEvenOdd);
|
||||
sprintf (Gbl.FormId,"form_con_%d",++Gbl.NumFormConnectedUsrs);
|
||||
Act_FormStartId ((Role == Rol_STUDENT) ? ActSeeRecOneStd :
|
||||
|
@ -1048,7 +1048,7 @@ static void Con_WriteRowConnectedUsrOnRightColumn (Rol_Role_t Role)
|
|||
|
||||
/***** Write time from last access *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"%s RIGHT_MIDDLE COLOR%u\""
|
||||
" style=\"width:38px;\">",
|
||||
" style=\"width:57px;\">", // Changed!
|
||||
Font,Gbl.RowEvenOdd);
|
||||
|
||||
fprintf (Gbl.F.Out,"<div id=\"hm%u\">",
|
||||
|
@ -1214,7 +1214,7 @@ static void Con_ShowConnectedUsrsCurrentLocationOneByOneOnMainZone (Rol_Role_t R
|
|||
/***** Show photo *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"LEFT_MIDDLE COLOR%u\""
|
||||
" style=\"width:18px;\">",
|
||||
" style=\"width:27px;\">", // Changed!
|
||||
Gbl.RowEvenOdd);
|
||||
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (&UsrDat,PhotoURL);
|
||||
Pho_ShowUsrPhoto (&UsrDat,ShowPhoto ? PhotoURL :
|
||||
|
@ -1224,7 +1224,7 @@ static void Con_ShowConnectedUsrsCurrentLocationOneByOneOnMainZone (Rol_Role_t R
|
|||
|
||||
/***** Write full name and link *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"%s LEFT_MIDDLE COLOR%u\""
|
||||
" style=\"width:256px;\">",
|
||||
" style=\"width:384px;\">", // Changed!
|
||||
Font,Gbl.RowEvenOdd);
|
||||
if (PutLinkToRecord)
|
||||
{
|
||||
|
@ -1243,7 +1243,7 @@ static void Con_ShowConnectedUsrsCurrentLocationOneByOneOnMainZone (Rol_Role_t R
|
|||
|
||||
/***** Write time from last access *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"%s RIGHT_MIDDLE COLOR%u\""
|
||||
" style=\"width:38px;\">",
|
||||
" style=\"width:57px;\">", // Changed!
|
||||
Font,Gbl.RowEvenOdd);
|
||||
Hours = Seconds / (60 * 60);
|
||||
Minutes = (Seconds / 60) % 60;
|
||||
|
|
|
@ -348,7 +348,7 @@ static void Cty_Configuration (bool PrintView)
|
|||
"<td class=\"DAT LEFT_MIDDLE\">",
|
||||
The_ClassForm[Gbl.Prefs.Theme],
|
||||
Txt_QR_code);
|
||||
QR_LinkTo (200,"cty",Gbl.CurrentCty.Cty.CtyCod);
|
||||
QR_LinkTo (300,"cty",Gbl.CurrentCty.Cty.CtyCod); // Changed!
|
||||
fprintf (Gbl.F.Out,"</td>"
|
||||
"</tr>");
|
||||
}
|
||||
|
@ -663,8 +663,8 @@ void Cty_ListCountries2 (void)
|
|||
/***** Div for Google Geochart *****/
|
||||
if (Gbl.CurrentAct == ActSeeCty)
|
||||
{
|
||||
fprintf (Gbl.F.Out,"<div id='chart_div' style=\"width:500px;"
|
||||
" margin:10px auto;\">"
|
||||
fprintf (Gbl.F.Out,"<div id='chart_div' style=\"width:750px;" // Changed!
|
||||
" margin:15px auto;\">" // Changed!
|
||||
"</div>");
|
||||
}
|
||||
|
||||
|
@ -970,7 +970,7 @@ void Cty_WriteSelectorOfCountry (void)
|
|||
|
||||
/***** Start form *****/
|
||||
Act_FormGoToStart (ActSeeIns);
|
||||
fprintf (Gbl.F.Out,"<select name=\"cty\" style=\"width:140px;\""
|
||||
fprintf (Gbl.F.Out,"<select name=\"cty\" style=\"width:210px;\"" // Changed!
|
||||
" onchange=\"javascript:document.getElementById('%s').submit();\">"
|
||||
"<option value=\"\"",
|
||||
Gbl.FormId);
|
||||
|
|
|
@ -113,7 +113,7 @@ void Crs_ShowIntroduction (void)
|
|||
{
|
||||
/***** Course configuration *****/
|
||||
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\""
|
||||
" style=\"margin-bottom:20px;\">");
|
||||
" style=\"margin-bottom:30px;\">"); // Changed!
|
||||
Crs_Configuration (false);
|
||||
fprintf (Gbl.F.Out,"</div>");
|
||||
|
||||
|
@ -362,7 +362,7 @@ static void Crs_Configuration (bool PrintView)
|
|||
"<td class=\"DAT LEFT_MIDDLE\">",
|
||||
The_ClassForm[Gbl.Prefs.Theme],
|
||||
Txt_QR_code);
|
||||
QR_LinkTo (200,"crs",Gbl.CurrentCrs.Crs.CrsCod);
|
||||
QR_LinkTo (300,"crs",Gbl.CurrentCrs.Crs.CrsCod); // Changed!
|
||||
fprintf (Gbl.F.Out,"</td>"
|
||||
"</tr>");
|
||||
}
|
||||
|
@ -568,7 +568,7 @@ static void Crs_WriteListMyCoursesToSelectOne (void)
|
|||
"<ul class=\"LIST_LEFT\">");
|
||||
|
||||
/***** Write link to platform *****/
|
||||
fprintf (Gbl.F.Out,"<li style=\"height:20px;\">");
|
||||
fprintf (Gbl.F.Out,"<li style=\"height:30px;\">"); // Changed!
|
||||
Act_FormGoToStart (ActMnu);
|
||||
Par_PutHiddenParamUnsigned ("NxtTab",(unsigned) TabSys);
|
||||
Act_LinkFormSubmit (Txt_System,
|
||||
|
@ -604,7 +604,7 @@ static void Crs_WriteListMyCoursesToSelectOne (void)
|
|||
Lay_ShowErrorAndExit ("Country not found.");
|
||||
|
||||
/***** Write link to country *****/
|
||||
fprintf (Gbl.F.Out,"<li style=\"height:20px;\">");
|
||||
fprintf (Gbl.F.Out,"<li style=\"height:30px;\">"); // Changed!
|
||||
IsLastItemInLevel[1] = (NumCty == NumCtys - 1);
|
||||
Lay_IndentDependingOnLevel (1,IsLastItemInLevel);
|
||||
Act_FormStart (ActSeeCtyInf);
|
||||
|
@ -647,7 +647,7 @@ static void Crs_WriteListMyCoursesToSelectOne (void)
|
|||
Lay_ShowErrorAndExit ("Institution not found.");
|
||||
|
||||
/***** Write link to institution *****/
|
||||
fprintf (Gbl.F.Out,"<li style=\"height:20px;\">");
|
||||
fprintf (Gbl.F.Out,"<li style=\"height:30px;\">"); // Changed!
|
||||
IsLastItemInLevel[2] = (NumIns == NumInss - 1);
|
||||
Lay_IndentDependingOnLevel (2,IsLastItemInLevel);
|
||||
Act_FormStart (ActSeeInsInf);
|
||||
|
@ -685,7 +685,7 @@ static void Crs_WriteListMyCoursesToSelectOne (void)
|
|||
Lay_ShowErrorAndExit ("Centre not found.");
|
||||
|
||||
/***** Write link to centre *****/
|
||||
fprintf (Gbl.F.Out,"<li style=\"height:20px;\">");
|
||||
fprintf (Gbl.F.Out,"<li style=\"height:30px;\">"); // Changed!
|
||||
IsLastItemInLevel[3] = (NumCtr == NumCtrs - 1);
|
||||
Lay_IndentDependingOnLevel (3,IsLastItemInLevel);
|
||||
Act_FormStart (ActSeeCtrInf);
|
||||
|
@ -723,7 +723,7 @@ static void Crs_WriteListMyCoursesToSelectOne (void)
|
|||
Lay_ShowErrorAndExit ("Degree not found.");
|
||||
|
||||
/***** Write link to degree *****/
|
||||
fprintf (Gbl.F.Out,"<li style=\"height:20px;\">");
|
||||
fprintf (Gbl.F.Out,"<li style=\"height:30px;\">"); // Changed!
|
||||
IsLastItemInLevel[4] = (NumDeg == NumDegs - 1);
|
||||
Lay_IndentDependingOnLevel (4,IsLastItemInLevel);
|
||||
Act_FormStart (ActSeeDegInf);
|
||||
|
@ -761,7 +761,7 @@ static void Crs_WriteListMyCoursesToSelectOne (void)
|
|||
Lay_ShowErrorAndExit ("Course not found.");
|
||||
|
||||
/***** Write link to course *****/
|
||||
fprintf (Gbl.F.Out,"<li style=\"height:20px;\">");
|
||||
fprintf (Gbl.F.Out,"<li style=\"height:30px;\">"); // Changed!
|
||||
IsLastItemInLevel[5] = (NumCrs == NumCrss - 1);
|
||||
Lay_IndentDependingOnLevel (5,IsLastItemInLevel);
|
||||
Act_FormStart (ActSeeCrsInf);
|
||||
|
@ -942,7 +942,7 @@ void Crs_WriteSelectorOfCourse (void)
|
|||
|
||||
/***** Start form *****/
|
||||
Act_FormGoToStart (ActSeeCrsInf);
|
||||
fprintf (Gbl.F.Out,"<select name=\"crs\" style=\"width:140px;\"");
|
||||
fprintf (Gbl.F.Out,"<select name=\"crs\" style=\"width:210px;\""); // Changed!
|
||||
if (Gbl.CurrentDeg.Deg.DegCod > 0)
|
||||
fprintf (Gbl.F.Out," onchange=\"javascript:document.getElementById('%s').submit();\"",
|
||||
Gbl.FormId);
|
||||
|
@ -1129,8 +1129,8 @@ void Crs_WriteSelectorMyCourses (void)
|
|||
extern const char *Txt_No_COURSE_SELECTED;
|
||||
static const unsigned SelectorWidth[Lay_NUM_LAYOUTS] =
|
||||
{
|
||||
140, // Lay_LAYOUT_DESKTOP
|
||||
240, // Lay_LAYOUT_MOBILE
|
||||
210, // Lay_LAYOUT_DESKTOP // Changed!
|
||||
360, // Lay_LAYOUT_MOBILE // Changed!
|
||||
};
|
||||
unsigned NumMyCrs;
|
||||
bool IBelongToCurrentCrs = false;
|
||||
|
@ -1150,7 +1150,7 @@ void Crs_WriteSelectorMyCourses (void)
|
|||
|
||||
/***** Start of selector of courses *****/
|
||||
fprintf (Gbl.F.Out,"<select name=\"CrsCod\""
|
||||
" style=\"width:%upx; margin:1px;\""
|
||||
" style=\"width:%upx; margin:1px;\"" // Changed!
|
||||
" onchange=\"javascript:document.getElementById('%s').submit();\">",
|
||||
SelectorWidth[Gbl.Prefs.Layout],Gbl.FormId);
|
||||
|
||||
|
@ -1454,7 +1454,7 @@ static void Crs_ListCoursesForEdition (void)
|
|||
Act_FormStart (ActChgCrsDeg);
|
||||
Crs_PutParamOtherCrsCod (Crs->CrsCod);
|
||||
fprintf (Gbl.F.Out,"<select name=\"OthDegCod\""
|
||||
" style=\"width:80px;\""
|
||||
" style=\"width:120px;\"" // Changed!
|
||||
" onchange=\"javascript:document.getElementById('%s').submit();\">",
|
||||
Gbl.FormId);
|
||||
for (NumDeg = 0;
|
||||
|
@ -1479,7 +1479,7 @@ static void Crs_ListCoursesForEdition (void)
|
|||
Act_FormStart (ActChgCrsYea);
|
||||
Crs_PutParamOtherCrsCod (Crs->CrsCod);
|
||||
fprintf (Gbl.F.Out,"<select name=\"OthCrsYear\""
|
||||
" style=\"width:40px;\""
|
||||
" style=\"width:60px;\"" // Changed!
|
||||
" onchange=\"javascript:document.getElementById('%s').submit();\">",
|
||||
Gbl.FormId);
|
||||
for (YearAux = 0;
|
||||
|
@ -1576,7 +1576,7 @@ static void Crs_ListCoursesForEdition (void)
|
|||
Act_FormStart (ActChgCrsSta);
|
||||
Crs_PutParamOtherCrsCod (Crs->CrsCod);
|
||||
fprintf (Gbl.F.Out,"<select name=\"Status\""
|
||||
" style=\"width:80px;\""
|
||||
" style=\"width:120px;\"" // Changed!
|
||||
" onchange=\"javascript:document.getElementById('%s').submit();\">"
|
||||
"<option value=\"%u\" selected=\"selected\">%s</option>"
|
||||
"<option value=\"%u\">%s</option>"
|
||||
|
@ -1596,11 +1596,11 @@ static void Crs_ListCoursesForEdition (void)
|
|||
UsrDat.UsrCod = Crs->RequesterUsrCod;
|
||||
Usr_ChkUsrCodAndGetAllUsrDataFromUsrCod (&UsrDat);
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\""
|
||||
" style=\"width:100px;\">"
|
||||
" style=\"width:150px;\">" // Changed!
|
||||
"<table class=\"CELLS_PAD_2\""
|
||||
" style=\"width:100px;\">"
|
||||
" style=\"width:150px;\">" // Changed!
|
||||
"<tr>");
|
||||
Msg_WriteMsgAuthor (&UsrDat,80,10,"DAT",true,NULL);
|
||||
Msg_WriteMsgAuthor (&UsrDat,120,10,"DAT",true,NULL); // Changed!
|
||||
fprintf (Gbl.F.Out,"</tr>"
|
||||
"</table>"
|
||||
"</td>"
|
||||
|
@ -1721,7 +1721,7 @@ static void Crs_PutFormToCreateCourse (void)
|
|||
/***** Degree *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
||||
"<select name=\"OthDegCod\""
|
||||
" style=\"width:80px;\" disabled=\"disabled\">"
|
||||
" style=\"width:120px;\" disabled=\"disabled\">" // Changed!
|
||||
"<option value=\"%ld\">%s</option>"
|
||||
"</select>"
|
||||
"</td>",
|
||||
|
@ -1730,7 +1730,7 @@ static void Crs_PutFormToCreateCourse (void)
|
|||
|
||||
/***** Year *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
||||
"<select name=\"OthCrsYear\" style=\"width:40px;\">");
|
||||
"<select name=\"OthCrsYear\" style=\"width:60px;\">"); // Changed!
|
||||
for (Year = 0;
|
||||
Year <= Gbl.CurrentDeg.Deg.LastYear;
|
||||
Year++)
|
||||
|
@ -1786,10 +1786,10 @@ static void Crs_PutFormToCreateCourse (void)
|
|||
Txt_COURSE_STATUS[Crs_STATUS_PENDING]);
|
||||
|
||||
/***** Course requester *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\" style=\"width:100px;\">"
|
||||
"<table class=\"CELLS_PAD_2\" style=\"width:100px;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\" style=\"width:150px;\">" // Changed!
|
||||
"<table class=\"CELLS_PAD_2\" style=\"width:150px;\">" // Changed!
|
||||
"<tr>");
|
||||
Msg_WriteMsgAuthor (&Gbl.Usrs.Me.UsrDat,80,10,"DAT",true,NULL);
|
||||
Msg_WriteMsgAuthor (&Gbl.Usrs.Me.UsrDat,120,10,"DAT",true,NULL); // Changed!
|
||||
fprintf (Gbl.F.Out,"</tr>"
|
||||
"</table>"
|
||||
"</td>"
|
||||
|
|
|
@ -160,7 +160,7 @@ void Dat_ShowCurrentDateTime (void)
|
|||
extern const char *The_ClassCurrentTime[The_NUM_THEMES];
|
||||
extern const char *Txt_MONTHS_SMALL_SHORT[12];
|
||||
|
||||
fprintf (Gbl.F.Out,"<div id=\"hm\" class=\"%s\" style=\"padding-top:8px;\">"
|
||||
fprintf (Gbl.F.Out,"<div id=\"hm\" class=\"%s\" style=\"padding-top:12px;\">" // Changed!
|
||||
"%u %s, %u:%02u"
|
||||
"</div>",
|
||||
The_ClassCurrentTime[Gbl.Prefs.Theme],
|
||||
|
|
|
@ -416,7 +416,7 @@ static void Deg_Configuration (bool PrintView)
|
|||
"<td class=\"DAT LEFT_MIDDLE\">",
|
||||
The_ClassForm[Gbl.Prefs.Theme],
|
||||
Txt_QR_code);
|
||||
QR_LinkTo (200,"deg",Gbl.CurrentDeg.Deg.DegCod);
|
||||
QR_LinkTo (300,"deg",Gbl.CurrentDeg.Deg.DegCod); // Changed!
|
||||
fprintf (Gbl.F.Out,"</td>"
|
||||
"</tr>");
|
||||
}
|
||||
|
@ -481,7 +481,7 @@ void Deg_WriteMenuAllCourses (void)
|
|||
|
||||
/***** Start of table *****/
|
||||
fprintf (Gbl.F.Out,"<table class=\"CELLS_PAD_2\""
|
||||
" style=\"margin:0 auto 10px auto;\">");
|
||||
" style=\"margin:0 auto 15px auto;\">"); // Changed!
|
||||
|
||||
/***** Write a 1st selector
|
||||
with all the countries *****/
|
||||
|
@ -575,7 +575,7 @@ static void Deg_WriteSelectorOfDegree (void)
|
|||
|
||||
/***** Start form *****/
|
||||
Act_FormGoToStart (ActSeeCrs);
|
||||
fprintf (Gbl.F.Out,"<select name=\"deg\" style=\"width:140px;\"");
|
||||
fprintf (Gbl.F.Out,"<select name=\"deg\" style=\"width:210px;\""); // Changed!
|
||||
if (Gbl.CurrentCtr.Ctr.CtrCod > 0)
|
||||
fprintf (Gbl.F.Out," onchange=\"javascript:document.getElementById('%s').submit();\"",
|
||||
Gbl.FormId);
|
||||
|
@ -1412,7 +1412,7 @@ static void Deg_ListDegreesForEdition (void)
|
|||
|
||||
/* Degree logo */
|
||||
fprintf (Gbl.F.Out,"<td title=\"%s LEFT_MIDDLE\""
|
||||
" style=\"width:20px;>",
|
||||
" style=\"width:30px;>", // Changed!
|
||||
Deg->FullName);
|
||||
Log_DrawLogo (Sco_SCOPE_DEG,Deg->DegCod,Deg->ShortName,16,NULL,true);
|
||||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
@ -1423,7 +1423,7 @@ static void Deg_ListDegreesForEdition (void)
|
|||
{
|
||||
Act_FormStart (ActChgDegCtr);
|
||||
Deg_PutParamOtherDegCod (Deg->DegCod);
|
||||
fprintf (Gbl.F.Out,"<select name=\"OthCtrCod\" style=\"width:50px;\""
|
||||
fprintf (Gbl.F.Out,"<select name=\"OthCtrCod\" style=\"width:75px;\"" // Changed!
|
||||
" onchange=\"javascript:document.getElementById('%s').submit();\">",
|
||||
Gbl.FormId);
|
||||
for (NumCtr = 0;
|
||||
|
@ -1478,7 +1478,7 @@ static void Deg_ListDegreesForEdition (void)
|
|||
Act_FormStart (ActChgDegTyp);
|
||||
Deg_PutParamOtherDegCod (Deg->DegCod);
|
||||
fprintf (Gbl.F.Out,"<select name=\"OthDegTypCod\""
|
||||
" style=\"width:50px;\""
|
||||
" style=\"width:75px;\"" // Changed!
|
||||
" onchange=\"javascript:document.getElementById('%s').submit();\">",
|
||||
Gbl.FormId);
|
||||
for (NumDegTyp = 0;
|
||||
|
@ -1616,7 +1616,7 @@ static void Deg_ListDegreesForEdition (void)
|
|||
{
|
||||
Act_FormStart (ActChgDegSta);
|
||||
Deg_PutParamOtherDegCod (Deg->DegCod);
|
||||
fprintf (Gbl.F.Out,"<select name=\"Status\" style=\"width:80px;\""
|
||||
fprintf (Gbl.F.Out,"<select name=\"Status\" style=\"width:120px;\"" // Changed!
|
||||
" onchange=\"javascript:document.getElementById('%s').submit();\">"
|
||||
"<option value=\"%u\" selected=\"selected\">%s</option>"
|
||||
"<option value=\"%u\">%s</option>"
|
||||
|
@ -1635,10 +1635,10 @@ static void Deg_ListDegreesForEdition (void)
|
|||
/* Degree requester */
|
||||
UsrDat.UsrCod = Deg->RequesterUsrCod;
|
||||
Usr_ChkUsrCodAndGetAllUsrDataFromUsrCod (&UsrDat);
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\" style=\"width:100px;\">"
|
||||
"<table class=\"CELLS_PAD_2\" style=\"width:100px;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\" style=\"width:150px;\">" // Changed!
|
||||
"<table class=\"CELLS_PAD_2\" style=\"width:150px;\">" // Changed!
|
||||
"<tr>");
|
||||
Msg_WriteMsgAuthor (&UsrDat,80,10,"DAT",true,NULL);
|
||||
Msg_WriteMsgAuthor (&UsrDat,120,10,"DAT",true,NULL); // Changed!
|
||||
fprintf (Gbl.F.Out,"</tr>"
|
||||
"</table>"
|
||||
"</td>"
|
||||
|
@ -1809,7 +1809,7 @@ static void Deg_PutFormToCreateDegree (void)
|
|||
/***** Centre *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\">"
|
||||
"<select name=\"OthCtrCod\""
|
||||
" style=\"width:50px;\" disabled=\"disabled\">"
|
||||
" style=\"width:75px;\" disabled=\"disabled\">" // Changed!
|
||||
"<option value=\"%ld\" selected=\"selected\">"
|
||||
"%s"
|
||||
"</option>"
|
||||
|
@ -1832,7 +1832,7 @@ static void Deg_PutFormToCreateDegree (void)
|
|||
|
||||
/***** Degree type *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\">"
|
||||
"<select name=\"OthDegTypCod\" style=\"width:50px;\">");
|
||||
"<select name=\"OthDegTypCod\" style=\"width:75px;\">"); // Changed!
|
||||
for (NumDegTyp = 0;
|
||||
NumDegTyp < Gbl.Degs.DegTypes.Num;
|
||||
NumDegTyp++)
|
||||
|
@ -1899,10 +1899,10 @@ static void Deg_PutFormToCreateDegree (void)
|
|||
Txt_DEGREE_STATUS[Deg_STATUS_PENDING]);
|
||||
|
||||
/***** Degree requester *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\" style=\"width:100px;\">"
|
||||
"<table class=\"CELLS_PAD_2\" style=\"width:100px;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\" style=\"width:150px;\">" // Changed!
|
||||
"<table class=\"CELLS_PAD_2\" style=\"width:150px;\">" // Changed!
|
||||
"<tr>");
|
||||
Msg_WriteMsgAuthor (&Gbl.Usrs.Me.UsrDat,80,10,"DAT",true,NULL);
|
||||
Msg_WriteMsgAuthor (&Gbl.Usrs.Me.UsrDat,120,10,"DAT",true,NULL); // Changed!
|
||||
fprintf (Gbl.F.Out,"</tr>"
|
||||
"</table>"
|
||||
"</td>"
|
||||
|
@ -2047,7 +2047,7 @@ static void Deg_PutHeadDegreesForEdition (void)
|
|||
"<th class=\"RIGHT_MIDDLE\">"
|
||||
"%s"
|
||||
"</th>"
|
||||
"<th style=\"width:20px;\"></th>"
|
||||
"<th style=\"width:30px;\"></th>" // Changed!
|
||||
"<th class=\"LEFT_MIDDLE\">"
|
||||
"%s"
|
||||
"</th>"
|
||||
|
|
|
@ -527,7 +527,7 @@ static void Dpt_ListDepartmentsForEdition (void)
|
|||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">");
|
||||
Act_FormStart (ActChgDptIns);
|
||||
Dpt_PutParamDptCod (Dpt->DptCod);
|
||||
fprintf (Gbl.F.Out,"<select name=\"OthInsCod\" style=\"width:50px;\""
|
||||
fprintf (Gbl.F.Out,"<select name=\"OthInsCod\" style=\"width:75px;\"" // Changed!
|
||||
"onchange=\"javascript:document.getElementById('%s').submit();\">"
|
||||
"<option value=\"0\"",
|
||||
Gbl.FormId);
|
||||
|
@ -895,7 +895,7 @@ static void Dpt_PutFormToCreateDepartment (void)
|
|||
/***** Institution *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"CENTER_MIDDLE\">"
|
||||
"<select name=\"OthInsCod\" style=\"width:50px;\">"
|
||||
"<select name=\"OthInsCod\" style=\"width:75px;\">" // Changed!
|
||||
"<option value=\"0\"");
|
||||
if (Dpt->InsCod == 0)
|
||||
fprintf (Gbl.F.Out," selected=\"selected\"");
|
||||
|
@ -1106,7 +1106,7 @@ void Dpt_WriteSelectorDepartment (long InsCod)
|
|||
/* Get list of departments */
|
||||
Dpt_GetListDepartments (InsCod);
|
||||
|
||||
fprintf (Gbl.F.Out,"<select name=\"DptCod\" style=\"width:300px;\">"
|
||||
fprintf (Gbl.F.Out,"<select name=\"DptCod\" style=\"width:450px;\">" // Changed!
|
||||
"<option value=\"-1\"");
|
||||
if (Gbl.Stat.DptCod == -1L)
|
||||
fprintf (Gbl.F.Out," selected=\"selected\"");
|
||||
|
|
|
@ -875,7 +875,7 @@ bool Enr_PutActionsRegRemOneUsr (bool ItsMe)
|
|||
|
||||
/***** Start list of options *****/
|
||||
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\""
|
||||
" style=\"display:inline-block; margin:10px;\">"
|
||||
" style=\"display:inline-block; margin:15px;\">" // Changed!
|
||||
"<ul class=\"LIST_LEFT %s\">",
|
||||
The_ClassForm[Gbl.Prefs.Theme]);
|
||||
|
||||
|
@ -2159,7 +2159,7 @@ void Enr_ShowEnrollmentRequests (void)
|
|||
/***** Selection of scope and roles *****/
|
||||
/* Start form */
|
||||
Act_FormStart (ActSeeSignUpReq);
|
||||
fprintf (Gbl.F.Out,"<table style=\"margin:0 auto; border-spacing:4px;\">");
|
||||
fprintf (Gbl.F.Out,"<table style=\"margin:0 auto; border-spacing:6px;\">"); // Changed!
|
||||
|
||||
/* Scope (whole platform, current centre, current degree or current course) */
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
|
@ -2505,7 +2505,7 @@ void Enr_ShowEnrollmentRequests (void)
|
|||
|
||||
/***** User photo *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"DAT CENTER_TOP\""
|
||||
" style=\"width:18px;\">");
|
||||
" style=\"width:27px;\">"); // Changed!
|
||||
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (&UsrDat,PhotoURL);
|
||||
Pho_ShowUsrPhoto (&UsrDat,ShowPhoto ? PhotoURL :
|
||||
NULL,
|
||||
|
|
|
@ -762,7 +762,7 @@ static void Exa_ShowExamAnnouncement (long ExaCod,Exa_tTypeViewExamAnnouncement_
|
|||
}
|
||||
|
||||
/***** Start frame *****/
|
||||
Lay_StartRoundFrameTable ("500px",0,NULL);
|
||||
Lay_StartRoundFrameTable ("750px",0,NULL); // Changed!
|
||||
|
||||
if (TypeViewExamAnnouncement == Exa_NORMAL_VIEW)
|
||||
{
|
||||
|
@ -805,7 +805,7 @@ static void Exa_ShowExamAnnouncement (long ExaCod,Exa_tTypeViewExamAnnouncement_
|
|||
|
||||
fprintf (Gbl.F.Out,"<table class=\"CELLS_PAD_2\""
|
||||
" style=\"width:100%%;"
|
||||
" padding:20px 20px 100px 20px;\">"); // Bottom space used for signatures
|
||||
" padding:30px 30px 150px 30px;\">"); // Bottom space used for signatures // Changed!
|
||||
|
||||
/***** Institution logo *****/
|
||||
fprintf (Gbl.F.Out,"<tr>" \
|
||||
|
|
|
@ -3089,7 +3089,7 @@ static void Brw_FormToChangeCrsGrpZone (void)
|
|||
"<img src=\"%s/%s20x20.gif\""
|
||||
" alt=\"\" title=\"\""
|
||||
" class=\"ICON20x20\""
|
||||
" style=\"margin-left:5px;\" />"
|
||||
" style=\"margin-left:7px;\" />" // Changed!
|
||||
"<input type=\"radio\" name=\"GrpCod\" value=\"%ld\"",
|
||||
(IsGroupZone &&
|
||||
GrpDat.GrpCod == Gbl.CurrentCrs.Grps.GrpCod) ? "BROWSER_TITLE" :
|
||||
|
@ -3155,7 +3155,7 @@ static void Brw_ShowDataOwnerAsgWrk (struct UsrData *UsrDat)
|
|||
char PhotoURL[PATH_MAX+1];
|
||||
|
||||
/***** Show user's photo *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\" style=\"width:80px;\">");
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\" style=\"width:120px;\">"); // Changed!
|
||||
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL);
|
||||
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
|
||||
NULL,
|
||||
|
@ -3163,7 +3163,7 @@ static void Brw_ShowDataOwnerAsgWrk (struct UsrData *UsrDat)
|
|||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
||||
/***** Start form to send a message to this user *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"MSG_AUT LEFT_TOP\" style=\"width:160px;\">");
|
||||
fprintf (Gbl.F.Out,"<td class=\"MSG_AUT LEFT_TOP\" style=\"width:240px;\">"); // Changed!
|
||||
Act_FormStart (UsrDat->RoleInCurrentCrsDB == Rol_STUDENT ? ActSeeRecOneStd :
|
||||
ActSeeRecOneTch);
|
||||
Usr_PutParamUsrCodEncrypted (UsrDat->EncryptedUsrCod);
|
||||
|
@ -3525,7 +3525,7 @@ static void Brw_WriteSubtitleOfFileBrowser (void)
|
|||
extern const char *Txt_nobody_else_can_access_this_content;
|
||||
char Subtitle[1024];
|
||||
|
||||
fprintf (Gbl.F.Out,"<div style=\"margin:0 auto; min-width:600px;\">");
|
||||
fprintf (Gbl.F.Out,"<div style=\"margin:0 auto; min-width:900px;\">"); // Changed!
|
||||
|
||||
/***** Form to change zone (course and group browsers) *****/
|
||||
switch (Gbl.FileBrowser.Type)
|
||||
|
@ -5287,7 +5287,7 @@ static void Brw_IndentDependingOnLevel (unsigned Level)
|
|||
for (i = 1;
|
||||
i < Level;
|
||||
i++)
|
||||
fprintf (Gbl.F.Out,"<td style=\"width:16px;\">"
|
||||
fprintf (Gbl.F.Out,"<td style=\"width:24px;\">" // Changed!
|
||||
"<img src=\"%s/tr16x16.gif\""
|
||||
" alt=\"\" title=\"\""
|
||||
" class=\"ICON16x16B\" />"
|
||||
|
@ -5392,8 +5392,8 @@ static void Brw_PutIconFolder (unsigned Level,Brw_ExpandTree_t ExpandTree,
|
|||
bool ICanCreate;
|
||||
|
||||
/***** Start cell *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">",
|
||||
Level * 16);
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">", // Changed!
|
||||
Level * 24); // Changed!
|
||||
|
||||
/***** Put icon *****/
|
||||
if ((ICanCreate = Brw_CheckIfICanCreateIntoFolder (Level))) // I can create a new file or folder
|
||||
|
@ -5771,7 +5771,7 @@ static void Brw_WriteDatesAssignment (void)
|
|||
Gbl.FileBrowser.Asg.DateTimes[Asg_START_TIME].Time.Minute);
|
||||
|
||||
/***** Arrow *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"RIGHT_MIDDLE\" style=\"width:16px;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"RIGHT_MIDDLE\" style=\"width:24px;\">" // Changed!
|
||||
"<img src=\"%s/arrow%s16x12.gif\""
|
||||
" alt=\"\" title=\"\""
|
||||
" class=\"ICON16x16B\" />"
|
||||
|
@ -7708,7 +7708,7 @@ static void Brw_PutFormToUploadFilesUsingDropzone (const char *FileNameToShow)
|
|||
Lay_ShowAlert (Lay_INFO,Gbl.Message);
|
||||
|
||||
/***** Form to upload files using the library Dropzone.js *****/
|
||||
// Use min-height:100px; or other number to stablish the height?
|
||||
// Use min-height:150px; or other number to stablish the height? // Changed!
|
||||
Gbl.NumForm++;
|
||||
fprintf (Gbl.F.Out,"<form method=\"post\" action=\"%s/%s\""
|
||||
" class=\"dropzone\""
|
||||
|
|
|
@ -100,7 +100,7 @@ void Fol_ShowFollowingAndFollowers (const struct UsrData *UsrDat)
|
|||
extern const char *Txt_Followers;
|
||||
|
||||
/***** Start table *****/
|
||||
fprintf (Gbl.F.Out,"<table style=\"margin:0 auto 4px auto;\">"
|
||||
fprintf (Gbl.F.Out,"<table style=\"margin:0 auto 6px auto;\">" // Changed!
|
||||
"<tr>");
|
||||
|
||||
/***** Followed users *****/
|
||||
|
@ -132,7 +132,7 @@ static void Fol_ShowNumberOfFollowingOrFollowers (const struct UsrData *UsrDat,
|
|||
|
||||
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_TOP\""
|
||||
" style=\"min-width:100px;\">");
|
||||
" style=\"min-width:150px;\">"); // Changed!
|
||||
/* Number */
|
||||
fprintf (Gbl.F.Out,"<div class=\"%s\">",
|
||||
(Gbl.CurrentAct == Action) ? "FOLLOW_B" :
|
||||
|
@ -238,7 +238,7 @@ void Fol_ListFollowing (void)
|
|||
|
||||
/***** Start listing *****/
|
||||
fprintf (Gbl.F.Out,"<table class=\"CELLS_PAD_2\""
|
||||
" style=\"margin:10px auto;\">");
|
||||
" style=\"margin:15px auto;\">"); // Changed!
|
||||
|
||||
for (NumUsr = 0;
|
||||
NumUsr < NumUsrs;
|
||||
|
@ -315,7 +315,7 @@ void Fol_ListFollowers (void)
|
|||
|
||||
/***** Start listing *****/
|
||||
fprintf (Gbl.F.Out,"<table class=\"CELLS_PAD_2\""
|
||||
" style=\"margin:10px auto;\">");
|
||||
" style=\"margin:15px auto;\">"); // Changed!
|
||||
|
||||
for (NumUsr = 0;
|
||||
NumUsr < NumUsrs;
|
||||
|
@ -374,7 +374,7 @@ static void Fol_ShowFollowedOrFollowed (const struct UsrData *UsrDat)
|
|||
|
||||
/***** Put form to follow / unfollow *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"RIGHT_MIDDLE\""
|
||||
" style=\"width:20px; height:50px;\">");
|
||||
" style=\"width:30px; height:75px;\">"); // Changed!
|
||||
if (Visible &&
|
||||
Gbl.Usrs.Me.Logged &&
|
||||
Gbl.Usrs.Me.UsrDat.UsrCod != UsrDat->UsrCod)
|
||||
|
@ -414,7 +414,7 @@ static void Fol_ShowFollowedOrFollowed (const struct UsrData *UsrDat)
|
|||
|
||||
/***** Check if I can see the public profile *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\""
|
||||
" style=\"width:40px; height:50px;\">");
|
||||
" style=\"width:60px; height:75px;\">"); // Changed!
|
||||
if (Visible)
|
||||
{
|
||||
/***** User's photo *****/
|
||||
|
@ -427,7 +427,7 @@ static void Fol_ShowFollowedOrFollowed (const struct UsrData *UsrDat)
|
|||
|
||||
/***** Put form to go to public profile *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\""
|
||||
" style=\"min-width:70px; height:50px;\">");
|
||||
" style=\"min-width:105px; height:75px;\">"); // Changed!
|
||||
if (Visible &&
|
||||
UsrDat->Nickname[0])
|
||||
{
|
||||
|
|
30
swad_forum.c
30
swad_forum.c
|
@ -916,7 +916,7 @@ static void For_ShowThreadPosts (long ThrCod,char *LastSubject)
|
|||
For_WriteLinkToAForum (Gbl.Forum.ForumType,true,1,IsLastItemInLevel);
|
||||
|
||||
/* Write thread title */
|
||||
fprintf (Gbl.F.Out,"<li class=\"DAT\" style=\"height:20px;\">");
|
||||
fprintf (Gbl.F.Out,"<li class=\"DAT\" style=\"height:30px;\">"); // Changed!
|
||||
IsLastItemInLevel[2] = true;
|
||||
Lay_IndentDependingOnLevel (2,IsLastItemInLevel);
|
||||
|
||||
|
@ -1079,7 +1079,7 @@ static void For_ShowAForumPost (struct ForumThread *Thr,unsigned PstNum,long Pst
|
|||
|
||||
/***** Put an icon with post status *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"%s CENTER_TOP\" style=\"width:24px;\">"
|
||||
"<td class=\"%s CENTER_TOP\" style=\"width:36px;\">" // Changed!
|
||||
"<img src=\"%s/%s16x16.gif\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
" class=\"ICON16x16\" />"
|
||||
|
@ -1119,7 +1119,7 @@ static void For_ShowAForumPost (struct ForumThread *Thr,unsigned PstNum,long Pst
|
|||
|
||||
/***** Form to remove post *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"CENTER_TOP\" style=\"width:18px;\">");
|
||||
"<td class=\"CENTER_TOP\" style=\"width:27px;\">"); // Changed!
|
||||
if (LastPst && Gbl.Usrs.Me.UsrDat.UsrCod == UsrDat.UsrCod)
|
||||
// Post can be removed if post is the last (without answers) and it's mine
|
||||
{
|
||||
|
@ -1179,13 +1179,13 @@ static void For_ShowAForumPost (struct ForumThread *Thr,unsigned PstNum,long Pst
|
|||
/***** Write author or destinatary, and form to reply (in case of received post) *****/
|
||||
fprintf (Gbl.F.Out,"</td>"
|
||||
"<td colspan=\"2\" class=\"LEFT_TOP\""
|
||||
" style=\"width:120px;\">"
|
||||
"<table class=\"CELLS_PAD_2\" style=\"width:120px;\">");
|
||||
" style=\"width:180px;\">" // Changed!
|
||||
"<table class=\"CELLS_PAD_2\" style=\"width:180px;\">"); // Changed!
|
||||
|
||||
/* Write author */
|
||||
fprintf (Gbl.F.Out,"<tr>");
|
||||
Usr_ChkUsrCodAndGetAllUsrDataFromUsrCod (&UsrDat);
|
||||
Msg_WriteMsgAuthor (&UsrDat,100,16,"MSG_AUT",Enabled,NULL);
|
||||
Msg_WriteMsgAuthor (&UsrDat,150,16,"MSG_AUT",Enabled,NULL); // Changed!
|
||||
fprintf (Gbl.F.Out,"</tr>");
|
||||
if (Enabled)
|
||||
{
|
||||
|
@ -1312,7 +1312,7 @@ static void For_WriteNumberOfPosts (For_ForumType_t ForumType,long UsrCod)
|
|||
|
||||
/***** Star table cell *****/
|
||||
fprintf (Gbl.F.Out,"<td colspan=\"2\" class=\"MSG_AUT CENTER_TOP\""
|
||||
" style=\"width:120px;\">");
|
||||
" style=\"width:180px;\">"); // Changed!
|
||||
|
||||
/***** Get number of posts from database *****/
|
||||
switch (ForumType)
|
||||
|
@ -1751,7 +1751,7 @@ static void For_PutFormWhichForums (void)
|
|||
Act_FormStart (ActSeeFor);
|
||||
For_PutParamForumOrder ();
|
||||
For_PutParamsForumInsDegCrs ();
|
||||
fprintf (Gbl.F.Out,"<div style=\"margin:10px 0;\">"
|
||||
fprintf (Gbl.F.Out,"<div style=\"margin:15px 0;\">" // Changed!
|
||||
"<ul class=\"LIST_CENTER\">");
|
||||
|
||||
for (WhichForums = (For_WhichForums_t) 0;
|
||||
|
@ -1783,7 +1783,7 @@ static void For_WriteLinkToTopLevelOfForums (void)
|
|||
extern const char *The_ClassForm[The_NUM_THEMES];
|
||||
extern const char *Txt_Forums;
|
||||
|
||||
fprintf (Gbl.F.Out,"<li style=\"height:20px;\">");
|
||||
fprintf (Gbl.F.Out,"<li style=\"height:30px;\">"); // Changed!
|
||||
Act_FormStart (ActSeeFor);
|
||||
For_PutAllHiddenParamsForum ();
|
||||
Act_LinkFormSubmit (Txt_Forums,The_ClassForm[Gbl.Prefs.Theme]);
|
||||
|
@ -2122,7 +2122,7 @@ static void For_WriteLinkToForum (For_ForumType_t ForumType,Act_Action_t NextAct
|
|||
The_ClassForm[Gbl.Prefs.Theme]);
|
||||
|
||||
/***** Start row *****/
|
||||
fprintf (Gbl.F.Out,"<li style=\"height:20px;\">");
|
||||
fprintf (Gbl.F.Out,"<li style=\"height:30px;\">"); // Changed!
|
||||
|
||||
/***** Indent forum title *****/
|
||||
Lay_IndentDependingOnLevel (Level,IsLastItemInLevel);
|
||||
|
@ -2491,10 +2491,10 @@ void For_ShowForumThrs (void)
|
|||
/***** Heading row *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<th class=\"LEFT_MIDDLE\""
|
||||
" style=\"width:14px;\">"
|
||||
" style=\"width:21px;\">" // Changed!
|
||||
"</th>"
|
||||
"<th class=\"LEFT_MIDDLE\""
|
||||
" style=\"width:18px;\">"
|
||||
" style=\"width:27px;\">" // Changed!
|
||||
"</th>"
|
||||
"<th class=\"LEFT_MIDDLE\">"
|
||||
"%s"
|
||||
|
@ -3246,7 +3246,7 @@ void For_ListForumThrs (long ThrCods[Pag_ITEMS_PER_PAGE],struct Pagination *Pagi
|
|||
|
||||
/***** Show my photo if I have any posts in this thread *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"RIGHT_TOP %s\" style=\"width:14px;\">",
|
||||
"<td class=\"RIGHT_TOP %s\" style=\"width:21px;\">", // Changed!
|
||||
BgColor);
|
||||
if (Thr.NumMyPosts)
|
||||
{
|
||||
|
@ -3269,7 +3269,7 @@ void For_ListForumThrs (long ThrCods[Pag_ITEMS_PER_PAGE],struct Pagination *Pagi
|
|||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
||||
/***** Put an icon with thread status *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP %s\" style=\"width:24px;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP %s\" style=\"width:36px;\">" // Changed!
|
||||
"<img src=\"%s/%s16x16.gif\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
" class=\"ICON16x16\" />",
|
||||
|
@ -3336,7 +3336,7 @@ void For_ListForumThrs (long ThrCods[Pag_ITEMS_PER_PAGE],struct Pagination *Pagi
|
|||
/* Write the author of first or last message */
|
||||
UsrDat.UsrCod = Thr.UsrCod[Order];
|
||||
Usr_ChkUsrCodAndGetAllUsrDataFromUsrCod (&UsrDat);
|
||||
Msg_WriteMsgAuthor (&UsrDat,55,9,Style,Thr.Enabled[Order],BgColor);
|
||||
Msg_WriteMsgAuthor (&UsrDat,82,9,Style,Thr.Enabled[Order],BgColor); // Changed!
|
||||
|
||||
/* Write the date of first or last message (it's in YYYYMMDDHHMMSS format) */
|
||||
fprintf (Gbl.F.Out,"<td class=\"%s LEFT_TOP %s\">",
|
||||
|
|
18
swad_group.c
18
swad_group.c
|
@ -278,7 +278,7 @@ static void Grp_ShowFormSeveralGrps (Act_Action_t NextAction)
|
|||
/***** Submit button *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td colspan=\"6\" class=\"CENTER_MIDDLE\""
|
||||
" style=\"padding-top:10px;\">");
|
||||
" style=\"padding-top:15px;\">"); // Changed!
|
||||
Act_LinkFormSubmitAnimated (Txt_Update_students_according_to_selected_groups,The_ClassFormBold[Gbl.Prefs.Theme]);
|
||||
Lay_PutCalculateIconWithText (Txt_Update_students_according_to_selected_groups,Txt_Update_students);
|
||||
fprintf (Gbl.F.Out,"</td>"
|
||||
|
@ -1159,7 +1159,7 @@ static void Grp_ListGroupTypesForEdition (void)
|
|||
Act_FormStart (ActChgMdtGrpTyp);
|
||||
Grp_PutParamGrpTypCod (Gbl.CurrentCrs.Grps.GrpTypes.LstGrpTypes[NumGrpTyp].GrpTypCod);
|
||||
fprintf (Gbl.F.Out,"<select name=\"MandatoryEnrollment\""
|
||||
" style=\"width:120px;\""
|
||||
" style=\"width:180px;\"" // Changed!
|
||||
" onchange=\"javascript:document.getElementById('%s').submit();\">"
|
||||
"<option value=\"N\"",
|
||||
Gbl.FormId);
|
||||
|
@ -1181,7 +1181,7 @@ static void Grp_ListGroupTypesForEdition (void)
|
|||
Act_FormStart (ActChgMulGrpTyp);
|
||||
Grp_PutParamGrpTypCod (Gbl.CurrentCrs.Grps.GrpTypes.LstGrpTypes[NumGrpTyp].GrpTypCod);
|
||||
fprintf (Gbl.F.Out,"<select name=\"MultipleEnrollment\""
|
||||
" style=\"width:120px;\""
|
||||
" style=\"width:180px;\"" // Changed!
|
||||
" onchange=\"javascript:document.getElementById('%s').submit();\">"
|
||||
"<option value=\"N\"",
|
||||
Gbl.FormId);
|
||||
|
@ -1204,7 +1204,7 @@ static void Grp_ListGroupTypesForEdition (void)
|
|||
Grp_PutParamGrpTypCod (Gbl.CurrentCrs.Grps.GrpTypes.LstGrpTypes[NumGrpTyp].GrpTypCod);
|
||||
fprintf (Gbl.F.Out,"<table class=\"CELLS_PAD_2\">"
|
||||
"<tr>"
|
||||
"<td class=\"LEFT_MIDDLE\" style=\"width:16px;\">"
|
||||
"<td class=\"LEFT_MIDDLE\" style=\"width:24px;\">" // Changed!
|
||||
"<img src=\"%s/%s16x16.gif\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
" class=\"ICON16x16\" />"
|
||||
|
@ -1966,7 +1966,7 @@ static void Grp_WriteRowGrp (struct Group *Grp,bool Highlight)
|
|||
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE");
|
||||
if (Highlight)
|
||||
fprintf (Gbl.F.Out," LIGHT_BLUE");
|
||||
fprintf (Gbl.F.Out,"\" style=\"width:12px;\">"
|
||||
fprintf (Gbl.F.Out,"\" style=\"width:18px;\">" // Changed!
|
||||
"<img src=\"%s/%s_off16x16.gif\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
" class=\"ICON16x16\" />"
|
||||
|
@ -2059,7 +2059,7 @@ static void Grp_PutFormToCreateGroupType (void)
|
|||
/***** Is it mandatory to register in any groups of this type? *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
||||
"<select name=\"MandatoryEnrollment\""
|
||||
" style=\"width:120px;\">"
|
||||
" style=\"width:180px;\">" // Changed!
|
||||
"<option value=\"N\"");
|
||||
if (!Gbl.CurrentCrs.Grps.GrpTyp.MandatoryEnrollment)
|
||||
fprintf (Gbl.F.Out," selected=\"selected\"");
|
||||
|
@ -2076,7 +2076,7 @@ static void Grp_PutFormToCreateGroupType (void)
|
|||
/***** Is it possible to register in multiple groups of this type? *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
||||
"<select name=\"MultipleEnrollment\""
|
||||
" style=\"width:120px;\">"
|
||||
" style=\"width:180px;\">" // Changed!
|
||||
"<option value=\"N\"");
|
||||
if (!Gbl.CurrentCrs.Grps.GrpTyp.MultipleEnrollment)
|
||||
fprintf (Gbl.F.Out," selected=\"selected\"");
|
||||
|
@ -2099,7 +2099,7 @@ static void Grp_PutFormToCreateGroupType (void)
|
|||
" alt=\"%s\" title=\"%s\""
|
||||
" class=\"ICON16x16\" />"
|
||||
"</td>"
|
||||
"<td class=\"LEFT_BOTTOM\" style=\"width:16px;\">",
|
||||
"<td class=\"LEFT_BOTTOM\" style=\"width:24px;\">", // Changed!
|
||||
Gbl.Prefs.IconsURL,
|
||||
Gbl.CurrentCrs.Grps.GrpTyp.MustBeOpened ? "time" :
|
||||
"time-off",
|
||||
|
@ -4175,7 +4175,7 @@ void Grp_ShowSelectorWhichGrps (void)
|
|||
extern const char *Txt_Show_WHICH_groups[2];
|
||||
Grp_WhichGroups_t WhichGrps;
|
||||
|
||||
fprintf (Gbl.F.Out,"<div style=\"margin:10px 0;\">"
|
||||
fprintf (Gbl.F.Out,"<div style=\"margin:15px 0;\">" // Changed!
|
||||
"<ul class=\"LIST_CENTER\">");
|
||||
for (WhichGrps = Grp_ONLY_MY_GROUPS;
|
||||
WhichGrps <= Grp_ALL_GROUPS;
|
||||
|
|
|
@ -503,7 +503,7 @@ static void Hld_ListHolidaysForEdition (void)
|
|||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">");
|
||||
Act_FormStart (ActChgHldPlc);
|
||||
Hld_PutParamHldCod (Hld->HldCod);
|
||||
fprintf (Gbl.F.Out,"<select name=\"PlcCod\" style=\"width:50px;\""
|
||||
fprintf (Gbl.F.Out,"<select name=\"PlcCod\" style=\"width:75px;\"" // Changed!
|
||||
" onchange=\"javascript:document.getElementById('%s').submit();\">"
|
||||
"<option value=\"-1\"",
|
||||
Gbl.FormId);
|
||||
|
@ -526,7 +526,7 @@ static void Hld_ListHolidaysForEdition (void)
|
|||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">");
|
||||
Act_FormStart (ActChgHldTyp);
|
||||
Hld_PutParamHldCod (Hld->HldCod);
|
||||
fprintf (Gbl.F.Out,"<select name=\"HldTyp\" style=\"width:50px;\""
|
||||
fprintf (Gbl.F.Out,"<select name=\"HldTyp\" style=\"width:75px;\"" // Changed!
|
||||
" onchange=\"javascript:document.getElementById('%s').submit();\">",
|
||||
Gbl.FormId);
|
||||
for (HolidayType = (Hld_HolidayType_t) 0;
|
||||
|
@ -937,7 +937,7 @@ static void Hld_PutFormToCreateHoliday (void)
|
|||
/***** Holiday place *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"CENTER_MIDDLE\">"
|
||||
"<select name=\"PlcCod\" style=\"width:50px;\">"
|
||||
"<select name=\"PlcCod\" style=\"width:75px;\">" // Changed!
|
||||
"<option value=\"-1\"");
|
||||
if (Hld->PlcCod <= 0)
|
||||
fprintf (Gbl.F.Out," selected=\"selected\"");
|
||||
|
@ -955,7 +955,7 @@ static void Hld_PutFormToCreateHoliday (void)
|
|||
|
||||
/***** Holiday type *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
||||
"<select name=\"HldTyp\" style=\"width:50px;\">");
|
||||
"<select name=\"HldTyp\" style=\"width:75px;\">"); // Changed!
|
||||
for (HolidayType = (Hld_HolidayType_t) 0;
|
||||
HolidayType < Hld_NUM_TYPES_HOLIDAY;
|
||||
HolidayType++)
|
||||
|
|
|
@ -355,7 +355,7 @@ static void Ins_Configuration (bool PrintView)
|
|||
"<td class=\"LEFT_MIDDLE\">",
|
||||
The_ClassForm[Gbl.Prefs.Theme],
|
||||
Txt_QR_code);
|
||||
QR_LinkTo (200,"ins",Gbl.CurrentIns.Ins.InsCod);
|
||||
QR_LinkTo (300,"ins",Gbl.CurrentIns.Ins.InsCod); // Changed!
|
||||
fprintf (Gbl.F.Out,"</td>"
|
||||
"</tr>");
|
||||
}
|
||||
|
@ -526,7 +526,7 @@ static void Ins_ListOneInstitutionForSeeing (struct Institution *Ins,unsigned Nu
|
|||
|
||||
/***** Icon *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE %s\""
|
||||
" style=\"width:20px;\">"
|
||||
" style=\"width:30px;\">" // Changed!
|
||||
"<a href=\"%s\" target=\"_blank\" title=\"%s\">",
|
||||
BgColor,
|
||||
Ins->WWW,Ins->FullName);
|
||||
|
@ -602,7 +602,7 @@ static void Ins_PutHeadInstitutionsForSeeing (bool OrderSelectable)
|
|||
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<th></th>"
|
||||
"<th style=\"width:20px;\"></th>");
|
||||
"<th style=\"width:30px;\"></th>"); // Changed!
|
||||
for (Order = Ins_ORDER_BY_INSTITUTION;
|
||||
Order <= Ins_ORDER_BY_NUM_USRS;
|
||||
Order++)
|
||||
|
@ -989,7 +989,7 @@ void Ins_WriteSelectorOfInstitution (void)
|
|||
|
||||
/***** Start form *****/
|
||||
Act_FormGoToStart (ActSeeCtr);
|
||||
fprintf (Gbl.F.Out,"<select name=\"ins\" style=\"width:140px;\"");
|
||||
fprintf (Gbl.F.Out,"<select name=\"ins\" style=\"width:210px;\""); // Changed!
|
||||
if (Gbl.CurrentCty.Cty.CtyCod > 0)
|
||||
fprintf (Gbl.F.Out," onchange=\"javascript:document.getElementById('%s').submit();\"",
|
||||
Gbl.FormId);
|
||||
|
@ -1103,7 +1103,7 @@ static void Ins_ListInstitutionsForEdition (void)
|
|||
|
||||
/* Institution logo */
|
||||
fprintf (Gbl.F.Out,"<td title=\"%s\" class=\"LEFT_MIDDLE\""
|
||||
" style=\"width:20px;\">",
|
||||
" style=\"width:30px;\">", // Changed!
|
||||
Ins->FullName);
|
||||
Log_DrawLogo (Sco_SCOPE_INS,Ins->InsCod,Ins->ShortName,
|
||||
16,NULL,true);
|
||||
|
@ -1115,7 +1115,7 @@ static void Ins_ListInstitutionsForEdition (void)
|
|||
{
|
||||
Act_FormStart (ActChgInsCty);
|
||||
Ins_PutParamOtherInsCod (Ins->InsCod);
|
||||
fprintf (Gbl.F.Out,"<select name=\"OthCtyCod\" style=\"width:80px;\""
|
||||
fprintf (Gbl.F.Out,"<select name=\"OthCtyCod\" style=\"width:120px;\"" // Changed!
|
||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />"
|
||||
"<option value=\"0\"",
|
||||
Gbl.FormId);
|
||||
|
@ -1216,7 +1216,7 @@ static void Ins_ListInstitutionsForEdition (void)
|
|||
{
|
||||
Act_FormStart (ActChgInsSta);
|
||||
Ins_PutParamOtherInsCod (Ins->InsCod);
|
||||
fprintf (Gbl.F.Out,"<select name=\"Status\" style=\"width:80px;\""
|
||||
fprintf (Gbl.F.Out,"<select name=\"Status\" style=\"width:120px;\"" // Changed!
|
||||
" onchange=\"javascript:document.getElementById('%s').submit();\">"
|
||||
"<option value=\"%u\" selected=\"selected\">%s</option>"
|
||||
"<option value=\"%u\">%s</option>"
|
||||
|
@ -1235,10 +1235,10 @@ static void Ins_ListInstitutionsForEdition (void)
|
|||
/* Degree requester */
|
||||
UsrDat.UsrCod = Ins->RequesterUsrCod;
|
||||
Usr_ChkUsrCodAndGetAllUsrDataFromUsrCod (&UsrDat);
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\" style=\"width:100px;\">"
|
||||
"<table class=\"CELLS_PAD_2\" style=\"width:100px;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\" style=\"width:150px;\">" // Changed!
|
||||
"<table class=\"CELLS_PAD_2\" style=\"width:150px;\">" // Changed!
|
||||
"<tr>");
|
||||
Msg_WriteMsgAuthor (&UsrDat,80,10,"DAT",true,NULL);
|
||||
Msg_WriteMsgAuthor (&UsrDat,120,10,"DAT",true,NULL); // Changed!
|
||||
fprintf (Gbl.F.Out,"</tr>"
|
||||
"</table>"
|
||||
"</td>"
|
||||
|
@ -1737,14 +1737,14 @@ static void Ins_PutFormToCreateInstitution (void)
|
|||
fprintf (Gbl.F.Out,"<td></td>");
|
||||
|
||||
/***** Institution logo *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\" style=\"width:20px;\">");
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\" style=\"width:30px;\">"); // Changed!
|
||||
Log_DrawLogo (Sco_SCOPE_INS,-1L,"",16,NULL,true);
|
||||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
||||
/***** Country *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
||||
"<select name=\"OthCtyCod\""
|
||||
" style=\"width:80px;\" disabled=\"disabled\">"
|
||||
" style=\"width:120px;\" disabled=\"disabled\">" // Changed!
|
||||
"<option value=\"%ld\" selected=\"selected\">"
|
||||
"%s"
|
||||
"</option>"
|
||||
|
@ -1788,10 +1788,10 @@ static void Ins_PutFormToCreateInstitution (void)
|
|||
Txt_INSTITUTION_STATUS[Ins_STATUS_PENDING]);
|
||||
|
||||
/***** Centre requester *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\" style=\"width:100px;\">"
|
||||
"<table class=\"CELLS_PAD_2\" style=\"width:100px;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\" style=\"width:150px;\">" // Changed!
|
||||
"<table class=\"CELLS_PAD_2\" style=\"width:150px;\">" // Changed!
|
||||
"<tr>");
|
||||
Msg_WriteMsgAuthor (&Gbl.Usrs.Me.UsrDat,80,10,"DAT",true,NULL);
|
||||
Msg_WriteMsgAuthor (&Gbl.Usrs.Me.UsrDat,120,10,"DAT",true,NULL); // Changed!
|
||||
fprintf (Gbl.F.Out,"</tr>"
|
||||
"</table>"
|
||||
"</td>"
|
||||
|
@ -1825,7 +1825,7 @@ static void Ins_PutHeadInstitutionsForEdition (void)
|
|||
"<th class=\"RIGHT_MIDDLE\">"
|
||||
"%s"
|
||||
"</th>"
|
||||
"<th style=\"width:20px;\"></th>"
|
||||
"<th style=\"width:30px;\"></th>" // Changed!
|
||||
"<th class=\"LEFT_MIDDLE\">"
|
||||
"%s"
|
||||
"</th>"
|
||||
|
|
|
@ -285,14 +285,14 @@ void Lay_WriteStartOfPage (void)
|
|||
{
|
||||
case Lay_LAYOUT_DESKTOP:
|
||||
/* Left bar used to expand-contract central zone */
|
||||
fprintf (Gbl.F.Out,"<td class=\"RIGHT_TOP\" style=\"width:10px;\">");
|
||||
fprintf (Gbl.F.Out,"<td class=\"RIGHT_TOP\" style=\"width:15px;\">"); // Changed!
|
||||
Pre_PutLeftIconToHideShowCols ();
|
||||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
||||
if (Gbl.Prefs.Menu == Mnu_MENU_VERTICAL)
|
||||
{
|
||||
/* Tab content, including vertical menu (left) and main zone (right) */
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\" style=\"width:140px;\">");
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\" style=\"width:210px;\">"); // Changed!
|
||||
Mnu_WriteVerticalMenuThisTabDesktop ();
|
||||
fprintf (Gbl.F.Out,"</td>");
|
||||
}
|
||||
|
@ -316,7 +316,7 @@ void Lay_WriteStartOfPage (void)
|
|||
/***** Main zone *****/
|
||||
/* Start of main zone for actions output */
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\""
|
||||
" style=\"padding:0 10px 10px 10px;\">");
|
||||
" style=\"padding:0 15px 15px 15px;\">"); // Changed!
|
||||
|
||||
if (Gbl.Prefs.Layout == Lay_LAYOUT_DESKTOP &&
|
||||
Gbl.Prefs.Menu == Mnu_MENU_HORIZONTAL)
|
||||
|
@ -345,7 +345,7 @@ void Lay_WriteStartOfPage (void)
|
|||
Gbl.Now.Date.Day == 1)
|
||||
{
|
||||
fprintf (Gbl.F.Out,"<div class=\"ASG_TITLE CENTER_MIDDLE\""
|
||||
" style=\"margin:50px;\">");
|
||||
" style=\"margin:75px;\">"); // Changed!
|
||||
fprintf (Gbl.F.Out,Txt_NEW_YEAR_GREETING,Gbl.Now.Date.Year);
|
||||
fprintf (Gbl.F.Out,"</div>");
|
||||
}
|
||||
|
@ -368,7 +368,7 @@ static void Lay_WriteEndOfPage (void)
|
|||
if (Gbl.Prefs.Layout == Lay_LAYOUT_DESKTOP)
|
||||
{
|
||||
/* Right bar used to expand-contract central zone */
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\" style=\"width:10px;\">");
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\" style=\"width:15px;\">"); // Changed!
|
||||
Pre_PutRigthIconToHideShowCols ();
|
||||
fprintf (Gbl.F.Out,"</td>");
|
||||
}
|
||||
|
@ -609,10 +609,10 @@ static void Lay_WritePageTopHeading (void)
|
|||
} LogoLayout[Lay_NUM_LAYOUTS] =
|
||||
{
|
||||
{ // Lay_LAYOUT_DESKTOP
|
||||
"swad112x32.gif",112,32,
|
||||
"swad112x32.gif",168,48, // Changed!
|
||||
},
|
||||
{ // Lay_LAYOUT_MOBILE
|
||||
"swad168x48.gif",168,48,
|
||||
"swad168x48.gif",252,72, // Changed!
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -621,15 +621,15 @@ static void Lay_WritePageTopHeading (void)
|
|||
Gbl.Prefs.PathTheme);
|
||||
|
||||
/***** 1st. row, 1st. column: logo *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\" style=\"width:%upx;\">",
|
||||
LogoLayout[Gbl.Prefs.Layout].Width + 16);
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\" style=\"width:%upx;\">", // Changed!
|
||||
LogoLayout[Gbl.Prefs.Layout].Width + 24); // Changed!
|
||||
|
||||
/* Left logo */
|
||||
fprintf (Gbl.F.Out,"<a href=\"%s\" target=\"_blank\">"
|
||||
"<img src=\"%s/%s\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
" class=\"CENTER_MIDDLE\""
|
||||
" style=\"width:%upx; height:%upx;\" />"
|
||||
" style=\"width:%upx; height:%upx;\" />" // Changed!
|
||||
"</a>",
|
||||
Cfg_HTTPS_URL_SWAD_CGI,Gbl.Prefs.PathTheme,
|
||||
LogoLayout[Gbl.Prefs.Layout].Icon,
|
||||
|
@ -672,7 +672,7 @@ static void Lay_WritePageTopHeading (void)
|
|||
"</td>");
|
||||
|
||||
/***** 1st. row, 3rd. column: link to open/close session *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"%s CENTER_MIDDLE\" style=\"width:128px;\">",
|
||||
fprintf (Gbl.F.Out,"<td class=\"%s CENTER_MIDDLE\" style=\"width:192px;\">", // Changed!
|
||||
The_ClassHead[Gbl.Prefs.Theme]);
|
||||
if (Gbl.Usrs.Me.Logged)
|
||||
Usr_PutFormLogOut ();
|
||||
|
@ -682,7 +682,7 @@ static void Lay_WritePageTopHeading (void)
|
|||
"</tr>");
|
||||
|
||||
/***** 2nd. row *****/
|
||||
fprintf (Gbl.F.Out,"<tr style=\"height:64px;"
|
||||
fprintf (Gbl.F.Out,"<tr style=\"height:96px;" // Changed!
|
||||
" background-image:url('%s/head_row2_1x64.gif');"
|
||||
" background-repeat:repeat-x;\">",
|
||||
Gbl.Prefs.PathTheme);
|
||||
|
@ -693,14 +693,14 @@ static void Lay_WritePageTopHeading (void)
|
|||
/***** 2nd. row, 1st. column *****/
|
||||
/* Clock with hour:minute (server hour is shown) */
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_TOP\""
|
||||
" style=\"width:128px; height:64px;\">");
|
||||
" style=\"width:192px; height:96px;\">"); // Changed!
|
||||
Dat_ShowCurrentDateTime ();
|
||||
fprintf (Gbl.F.Out,"</td>"); // End of first column
|
||||
|
||||
/***** 2nd. row, 2nd. column: degree and course *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_TOP\" style=\"height:64px;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_TOP\" style=\"height:96px;\">" // Changed!
|
||||
"<div class=\"CENTER_TOP\""
|
||||
" style=\"padding-top:4px;\">");
|
||||
" style=\"padding-top:6px;\">"); // Changed!
|
||||
Deg_WriteCtyInsCtrDeg ();
|
||||
Crs_WriteSelectorMyCourses ();
|
||||
Deg_WriteBigNameCtyInsCtrDegCrs ();
|
||||
|
@ -709,19 +709,19 @@ static void Lay_WritePageTopHeading (void)
|
|||
|
||||
/***** 2nd. row, 3rd. column *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_TOP\""
|
||||
" style=\"width:128px; height:64px;\">");
|
||||
" style=\"width:192px; height:96px;\">"); // Changed!
|
||||
if (Gbl.Usrs.Me.Logged)
|
||||
{
|
||||
/* Number of new messages (not seen) */
|
||||
fprintf (Gbl.F.Out,"<div id=\"msg\"" // Used for AJAX based refresh
|
||||
" style=\"padding-top:8px;\">");
|
||||
" style=\"padding-top:12px;\">"); // Changed!
|
||||
Ntf_WriteNumberOfNewNtfs ();
|
||||
fprintf (Gbl.F.Out,"</div>"); // Used for AJAX based refresh
|
||||
}
|
||||
break;
|
||||
case Lay_LAYOUT_MOBILE:
|
||||
fprintf (Gbl.F.Out,"<td colspan=\"3\" class=\"CENTER_MIDDLE\""
|
||||
" style=\"height:32px;"
|
||||
" style=\"height:48px;" // Changed!
|
||||
" background-image:url('%s/head_row2_1x64.gif');"
|
||||
" background-repeat:repeat-x;\">",
|
||||
Gbl.Prefs.PathTheme);
|
||||
|
@ -742,7 +742,7 @@ static void Lay_WritePageTopHeading (void)
|
|||
case Lay_LAYOUT_DESKTOP:
|
||||
/***** 3rd. row, 1st. column *****/
|
||||
if (Gbl.Prefs.SideCols & Lay_SHOW_LEFT_COLUMN) // Left column visible
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_TOP\" style=\"width:128px;"
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_TOP\" style=\"width:192px;" // Changed!
|
||||
" background-image:url('%s/head_base_background_1x56.gif');"
|
||||
" background-repeat:repeat-x;\">"
|
||||
"</td>",
|
||||
|
@ -755,7 +755,7 @@ static void Lay_WritePageTopHeading (void)
|
|||
if (Gbl.Prefs.SideCols & Lay_SHOW_RIGHT_COLUMN) // Right column visible
|
||||
{
|
||||
fprintf (Gbl.F.Out,"<td rowspan=\"2\" class=\"CENTER_TOP\""
|
||||
" style=\"width:128px;\">");
|
||||
" style=\"width:192px;\">"); // Changed!
|
||||
Lay_ShowRightColumn ();
|
||||
fprintf (Gbl.F.Out,"</td>");
|
||||
}
|
||||
|
@ -767,7 +767,7 @@ static void Lay_WritePageTopHeading (void)
|
|||
if (Gbl.Prefs.SideCols & Lay_SHOW_LEFT_COLUMN) // Left column visible
|
||||
{
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_TOP\""
|
||||
" style=\"width:128px;\">");
|
||||
" style=\"width:192px;\">"); // Changed!
|
||||
Lay_ShowLeftColumn ();
|
||||
fprintf (Gbl.F.Out,"</td>");
|
||||
}
|
||||
|
@ -821,10 +821,10 @@ static void Lay_ShowLeftColumn (void)
|
|||
{
|
||||
struct Act_ListMFUActions ListMFUActions;
|
||||
|
||||
fprintf (Gbl.F.Out,"<table style=\"width:128px;\">"
|
||||
fprintf (Gbl.F.Out,"<table style=\"width:192px;\">" // Changed!
|
||||
"<tr>"
|
||||
"<td class=\"LEFT_TOP\">"
|
||||
"<table style=\"width:128px; border-spacing:4px;\">");
|
||||
"<table style=\"width:192px; border-spacing:6px;\">"); // Changed!
|
||||
|
||||
/***** Most frequently used actions *****/
|
||||
if (Gbl.Usrs.Me.Logged)
|
||||
|
@ -881,8 +881,8 @@ static void Lay_ShowRightColumn (void)
|
|||
"<td class=\"RIGHT_TOP\""
|
||||
" style=\"background-image:url('%s/head_base_background_1x56.gif');"
|
||||
" background-repeat:repeat-x;\">"
|
||||
"<table style=\"width:100%%; padding-top:56px;"
|
||||
" border-spacing:4px;\">",
|
||||
"<table style=\"width:100%%; padding-top:84px;" // Changed!
|
||||
" border-spacing:6px;\">", // Changed!
|
||||
Gbl.Prefs.PathTheme);
|
||||
|
||||
/***** Banners *****/
|
||||
|
@ -922,7 +922,7 @@ static void Lay_ShowRightColumn (void)
|
|||
" target=\"_blank\" title=\"%s\">"
|
||||
"<img src=\"%s/SWADroid120x200.png\""
|
||||
" alt=\"SWADroid\" title=\"SWADroid\""
|
||||
" style=\"width:120px; height:200px;\" />"
|
||||
" style=\"width:180px; height:300px;\" />" // Changed!
|
||||
"</a>"
|
||||
"</td>"
|
||||
"</tr>",
|
||||
|
@ -993,7 +993,7 @@ void Lay_PutIconWithText (const char *Icon,const char *Alt,const char *Text)
|
|||
void Lay_PutCalculateIconWithText (const char *Alt,const char *Text)
|
||||
{
|
||||
fprintf (Gbl.F.Out,"<div class=\"ICON_HIGHLIGHT\""
|
||||
" style=\"margin:0 5px; display:inline;\">"
|
||||
" style=\"margin:0 7px; display:inline;\">" // Changed!
|
||||
"<img id=\"update_%d\" src=\"%s/recycle16x16.gif\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
" class=\"ICON16x16\" />"
|
||||
|
@ -1396,13 +1396,13 @@ void Lay_WritePageFooter (void)
|
|||
Lay_WriteFootFromHTMLFile ();
|
||||
|
||||
fprintf (Gbl.F.Out,"<div class=\"FOOT CENTER_MIDDLE\""
|
||||
" style=\"padding-bottom:10px;\">");
|
||||
" style=\"padding-bottom:15px;\">"); // Changed!
|
||||
|
||||
/***** Institution and centre hosting the platform *****/
|
||||
fprintf (Gbl.F.Out,"<a href=\"%s\" class=\"FOOT\" target=\"_blank\">"
|
||||
"<img src=\"%s/%s\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
" style=\"width:%upx; height:%upx;\" />"
|
||||
" style=\"width:%upx; height:%upx;\" />" // Changed!
|
||||
"<div>%s</div>"
|
||||
"</a>",
|
||||
Cfg_ABOUT_URL,
|
||||
|
@ -1482,12 +1482,12 @@ void Lay_WriteHeaderClassPhoto (unsigned NumColumns,bool PrintView,bool DrawingC
|
|||
/***** Table start *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td colspan=\"%u\" class=\"CENTER_MIDDLE\">"
|
||||
"<table style=\"width:100%%; padding:10px;\">"
|
||||
"<table style=\"width:100%%; padding:15px;\">" // Changed!
|
||||
"<tr>",
|
||||
NumColumns);
|
||||
|
||||
/***** First column: institution logo *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\" style=\"width:64px;\">");
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\" style=\"width:96px;\">"); // Changed!
|
||||
if (InsCod > 0)
|
||||
{
|
||||
if (!PrintView)
|
||||
|
@ -1534,7 +1534,7 @@ void Lay_WriteHeaderClassPhoto (unsigned NumColumns,bool PrintView,bool DrawingC
|
|||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
||||
/***** Third column: degree logo *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"RIGHT_TOP\" style=\"width:64px;\">");
|
||||
fprintf (Gbl.F.Out,"<td class=\"RIGHT_TOP\" style=\"width:96px;\">"); // Changed!
|
||||
if (DegCod > 0)
|
||||
{
|
||||
if (!PrintView)
|
||||
|
@ -1640,7 +1640,7 @@ void Lay_AdvertisementMobile (void)
|
|||
|
||||
if (!(rand () % Lay_SHOW_ADVERTISEMENT_ONE_TIME_OF_X))
|
||||
{
|
||||
fprintf (Gbl.F.Out,"<div style=\"margin-top:20px;\">");
|
||||
fprintf (Gbl.F.Out,"<div style=\"margin-top:30px;\">"); // Changed!
|
||||
|
||||
/***** Table start *****/
|
||||
Lay_StartRoundFrameTable (NULL,8,NULL);
|
||||
|
@ -1653,7 +1653,7 @@ void Lay_AdvertisementMobile (void)
|
|||
"%s<br /><br />"
|
||||
"<img src=\"%s/SWADroid200x300.png\""
|
||||
" alt=\"SWADroid\" title=\"%s\""
|
||||
" style=\"width:200px; height:300px;\" />"
|
||||
" style=\"width:300px; height:450px;\" />" // Changed!
|
||||
"</a>"
|
||||
"</td>"
|
||||
"</tr>",
|
||||
|
|
|
@ -111,7 +111,7 @@ void Lnk_WriteMenuWithInstitutionalLinks (void)
|
|||
{
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"INS_LNK CENTER_MIDDLE\""
|
||||
" style=\"width:120px;\">"
|
||||
" style=\"width:180px;\">" // Changed!
|
||||
"<div id=\"institutional_links\">");
|
||||
Lnk_WriteListOfLinks ();
|
||||
fprintf (Gbl.F.Out,"</div>"
|
||||
|
|
|
@ -127,7 +127,7 @@ void Mnu_WriteVerticalMenuThisTabDesktop (void)
|
|||
/***** Icon *****/
|
||||
fprintf (Gbl.F.Out,"<div class=\"MENU_OPTION\""
|
||||
" style=\"background-image:url('%s/%s/%s64x64.gif');"
|
||||
" background-size:32px 32px;\"\">",
|
||||
" background-size:48px 48px;\"\">", // Changed!
|
||||
Gbl.Prefs.PathIconSet,Cfg_ICON_ACTION,
|
||||
Act_Actions[NumAct].Icon);
|
||||
|
||||
|
@ -277,7 +277,7 @@ void Mnu_WriteMenuThisTabMobile (void)
|
|||
The_ClassMenuOff[Gbl.Prefs.Theme]);
|
||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/%s/%s64x64.gif\""
|
||||
" alt=\"%s\" class=\"ICON64x64\""
|
||||
" style=\"margin:4px;\" />"
|
||||
" style=\"margin:6px;\" />" // Changed!
|
||||
"<div>%s</div>"
|
||||
"</a>",
|
||||
Gbl.Prefs.PathIconSet,Cfg_ICON_ACTION,
|
||||
|
|
|
@ -2600,7 +2600,7 @@ static void Msg_ShowASentOrReceivedMessage (Msg_TypeOfMessages_t TypeOfMessages,
|
|||
Txt_MSG_Unopened) :
|
||||
Txt_MSG_Sent;
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"%s CENTER_TOP\" style=\"width:16px;\">"
|
||||
"<td class=\"%s CENTER_TOP\" style=\"width:24px;\">" // Changed!
|
||||
"<img src=\"%s/msg-%s16x16.gif\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
" class=\"ICON16x16\" />",
|
||||
|
@ -2625,7 +2625,7 @@ static void Msg_ShowASentOrReceivedMessage (Msg_TypeOfMessages_t TypeOfMessages,
|
|||
|
||||
/***** Write message author *****/
|
||||
Usr_ChkUsrCodAndGetAllUsrDataFromUsrCod (&UsrDat);
|
||||
Msg_WriteMsgAuthor (&UsrDat,80,11,
|
||||
Msg_WriteMsgAuthor (&UsrDat,120,11, // Changed!
|
||||
Open ? "MSG_AUT_BG" :
|
||||
"MSG_AUT_BG_NEW", // Style
|
||||
true,NULL);
|
||||
|
@ -2757,7 +2757,7 @@ void Msg_GetNotifMessage (char *SummaryStr,char **ContentStr,long MsgCod,unsigne
|
|||
|
||||
void Msg_WriteMsgNumber (unsigned long MsgNum,bool NewMsg)
|
||||
{
|
||||
fprintf (Gbl.F.Out,"<td class=\"%s CENTER_TOP\" style=\"width:36px;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"%s CENTER_TOP\" style=\"width:54px;\">" // Changed!
|
||||
"%lu:"
|
||||
"</td>",
|
||||
NewMsg ? "MSG_TIT_BG_NEW" :
|
||||
|
@ -2812,7 +2812,7 @@ static void Msg_WriteSentOrReceivedMsgSubject (Msg_TypeOfMessages_t TypeOfMessag
|
|||
/*****************************************************************************/
|
||||
// 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, // Changed!
|
||||
const char *Style,bool Enabled,const char *BgColor)
|
||||
{
|
||||
extern const char *Txt_Unknown_or_without_photo;
|
||||
|
@ -2824,7 +2824,7 @@ void Msg_WriteMsgAuthor (struct UsrData *UsrDat,unsigned WidthOfNameColumn,unsig
|
|||
fprintf (Gbl.F.Out,"<td class=\"%s CENTER_TOP",Style);
|
||||
if (BgColor)
|
||||
fprintf (Gbl.F.Out," %s",BgColor);
|
||||
fprintf (Gbl.F.Out,"\" style=\"width:24px;\">");
|
||||
fprintf (Gbl.F.Out,"\" style=\"width:36px;\">"); // Changed!
|
||||
|
||||
/***** Write author name or don't write it? *****/
|
||||
if (Enabled)
|
||||
|
@ -2844,7 +2844,7 @@ void Msg_WriteMsgAuthor (struct UsrData *UsrDat,unsigned WidthOfNameColumn,unsig
|
|||
fprintf (Gbl.F.Out,"<td class=\"%s LEFT_TOP",Style);
|
||||
if (BgColor)
|
||||
fprintf (Gbl.F.Out," %s",BgColor);
|
||||
fprintf (Gbl.F.Out,"\" style=\"width:%upx;\">",WidthOfNameColumn);
|
||||
fprintf (Gbl.F.Out,"\" style=\"width:%upx;\">",WidthOfNameColumn); // Changed!
|
||||
|
||||
/* Restrict length of firstname and surnames */
|
||||
Usr_RestrictLengthAndWriteName (UsrDat,MaxCharsInName);
|
||||
|
@ -2861,7 +2861,7 @@ void Msg_WriteMsgAuthor (struct UsrData *UsrDat,unsigned WidthOfNameColumn,unsig
|
|||
Style);
|
||||
if (BgColor)
|
||||
fprintf (Gbl.F.Out," %s",BgColor);
|
||||
fprintf (Gbl.F.Out,"\" style=\"width:%upx;\">",
|
||||
fprintf (Gbl.F.Out,"\" style=\"width:%upx;\">", // Changed!
|
||||
WidthOfNameColumn);
|
||||
}
|
||||
|
||||
|
@ -2981,7 +2981,7 @@ static void Msg_WriteMsgFrom (struct UsrData *UsrDat,bool Deleted)
|
|||
/***** Put an icon to show if user has read the message *****/
|
||||
fprintf (Gbl.F.Out,"<table>"
|
||||
"<tr>"
|
||||
"<td class=\"LEFT_MIDDLE\" style=\"width:16px;\">"
|
||||
"<td class=\"LEFT_MIDDLE\" style=\"width:24px;\">" // Changed!
|
||||
"<img src=\"%s/%s16x16.gif\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
" class=\"ICON16x16\" />"
|
||||
|
@ -2995,7 +2995,7 @@ static void Msg_WriteMsgFrom (struct UsrData *UsrDat,bool Deleted)
|
|||
Txt_MSG_Sent);
|
||||
|
||||
/***** Put user's photo *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\" style=\"width:24px;\">");
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\" style=\"width:36px;\">"); // Changed!
|
||||
ShowPhoto = (Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL));
|
||||
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
|
||||
NULL,
|
||||
|
@ -3127,7 +3127,7 @@ static void Msg_WriteMsgTo (Msg_TypeOfMessages_t TypeOfMessages,long MsgCod)
|
|||
(Deleted ? Txt_MSG_Deleted_without_opening :
|
||||
Txt_MSG_Unopened);
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"LEFT_MIDDLE\" style=\"width:16px;\">"
|
||||
"<td class=\"LEFT_MIDDLE\" style=\"width:24px;\">" // Changed!
|
||||
"<img src=\"%s/%s16x16.gif\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
" class=\"ICON16x16\" />"
|
||||
|
@ -3140,7 +3140,7 @@ static void Msg_WriteMsgTo (Msg_TypeOfMessages_t TypeOfMessages,long MsgCod)
|
|||
Title,Title);
|
||||
|
||||
/* Put user's photo */
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_TOP\" style=\"width:24px;\">");
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_TOP\" style=\"width:36px;\">"); // Changed!
|
||||
ShowPhoto = (UsrValid ? Pho_ShowUsrPhotoIsAllowed (&UsrDat,PhotoURL) :
|
||||
false);
|
||||
Pho_ShowUsrPhoto (&UsrDat,ShowPhoto ? PhotoURL :
|
||||
|
@ -3212,7 +3212,7 @@ static void Msg_WriteMsgTo (Msg_TypeOfMessages_t TypeOfMessages,long MsgCod)
|
|||
void Msg_WriteMsgDate (const char *DateTime,const char *ClassBackground)
|
||||
{
|
||||
/***** Start cell *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"%s RIGHT_TOP\" style=\"width:85px;\">",
|
||||
fprintf (Gbl.F.Out,"<td class=\"%s RIGHT_TOP\" style=\"width:127px;\">", // Changed!
|
||||
ClassBackground);
|
||||
|
||||
/***** Write date and time (DateTime holds date and time in YYYYMMDDHHMMSS format) *****/
|
||||
|
@ -3308,7 +3308,7 @@ static void Msg_PutFormToBanSender (struct UsrData *UsrDat)
|
|||
Msg_PutHiddenParamsMsgsFilters ();
|
||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/open_on16x16.gif\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
" class=\"ICON16x16\" style=\"margin-left:10px;\" />",
|
||||
" class=\"ICON16x16\" style=\"margin-left:15px;\" />", // Changed!
|
||||
Gbl.Prefs.IconsURL,
|
||||
Txt_Sender_permitted_click_to_ban_him,
|
||||
Txt_Sender_permitted_click_to_ban_him);
|
||||
|
@ -3518,7 +3518,7 @@ void Msg_ListBannedUsrs (void)
|
|||
|
||||
/* Show photo */
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\""
|
||||
" style=\"width:24px;\">");
|
||||
" style=\"width:36px;\">"); // Changed!
|
||||
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (&UsrDat,PhotoURL);
|
||||
Pho_ShowUsrPhoto (&UsrDat,ShowPhoto ? PhotoURL :
|
||||
NULL,
|
||||
|
|
|
@ -99,7 +99,7 @@ void Msg_GetMsgSubject (long MsgCod,char *Subject);
|
|||
void Msg_GetNotifMessage (char *SummaryStr,char **ContentStr,long MsgCod,unsigned MaxChars,bool GetContent);
|
||||
|
||||
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, // Changed!
|
||||
const char *Style,bool Enabled,const char *BgColor);
|
||||
bool Msg_WriteCrsOrgMsg (long CrsCod);
|
||||
void Msg_WriteListUsrsDstMsg (long MsgCod);
|
||||
|
|
|
@ -164,7 +164,7 @@ void Net_ShowWebsAndSocialNets (const struct UsrData *UsrDat)
|
|||
char URL[Cns_MAX_BYTES_URL+1];
|
||||
|
||||
/***** Start container *****/
|
||||
fprintf (Gbl.F.Out,"<div style=\"width:144px; margin:0 auto;\">");
|
||||
fprintf (Gbl.F.Out,"<div style=\"width:216px; margin:0 auto;\">"); // Changed!
|
||||
|
||||
/***** Show link to public profile *****/
|
||||
Net_ShowAWebOrSocialNet (Prf_GetURLPublicProfile (URL,UsrDat->Nickname),
|
||||
|
@ -227,7 +227,7 @@ static void Net_ShowAWebOrSocialNet (const char *URL,
|
|||
/********************* Show form to edit my social networks ******************/
|
||||
/*****************************************************************************/
|
||||
|
||||
#define Net_COL2_WIDTH 400
|
||||
#define Net_COL2_WIDTH 600 // Changed!
|
||||
|
||||
void Net_ShowFormMyWebsAndSocialNets (void)
|
||||
{
|
||||
|
@ -274,9 +274,9 @@ void Net_ShowFormMyWebsAndSocialNets (void)
|
|||
"<img src=\"%s/%s16x16.gif\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
" class=\"ICON16x16\""
|
||||
" style=\"margin-right:10px;\" />"
|
||||
" style=\"margin-right:15px;\" />" // Changed!
|
||||
"%s:</td>"
|
||||
"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">",
|
||||
"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">", // Changed!
|
||||
The_ClassForm[Gbl.Prefs.Theme],
|
||||
Gbl.Prefs.IconsURL,Net_WebsAndSocialNetworksDB[NumURL],
|
||||
Net_TitleWebsAndSocialNetworks[NumURL],
|
||||
|
@ -286,7 +286,7 @@ void Net_ShowFormMyWebsAndSocialNets (void)
|
|||
Act_FormStart (ActChgMyNet);
|
||||
Par_PutHiddenParamUnsigned ("Web",(unsigned) NumURL);
|
||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"URL\""
|
||||
" style=\"width:400px;\" maxlength=\"%u\" value=\"%s\""
|
||||
" style=\"width:600px;\" maxlength=\"%u\" value=\"%s\"" // Changed!
|
||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
||||
Cns_MAX_LENGTH_URL,URL,
|
||||
Gbl.FormId);
|
||||
|
@ -492,7 +492,7 @@ void Net_ShowWebAndSocialNetworksStats (void)
|
|||
"<img src=\"%s/%s16x16.gif\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
" class=\"ICON16x16\""
|
||||
" style=\"margin-right:10px;\" />"
|
||||
" style=\"margin-right:15px;\" />" // Changed!
|
||||
"%s</td>"
|
||||
"<td class=\"DAT RIGHT_MIDDLE\">"
|
||||
"%u"
|
||||
|
|
|
@ -51,8 +51,8 @@ extern struct Globals Gbl;
|
|||
|
||||
const unsigned Not_ContainerWidth[Not_NUM_TYPES_LISTING] =
|
||||
{
|
||||
100, // Not_LIST_BRIEF_NOTICES
|
||||
400, // Not_LIST_FULL_NOTICES
|
||||
150, // Not_LIST_BRIEF_NOTICES // Changed!
|
||||
600, // Not_LIST_FULL_NOTICES // Changed!
|
||||
};
|
||||
|
||||
const unsigned Not_MaxCharsURLOnScreen[Not_NUM_TYPES_LISTING] =
|
||||
|
@ -379,8 +379,8 @@ void Not_ShowNotices (Not_Listing_t TypeNoticesListing)
|
|||
{
|
||||
if (NumNotices)
|
||||
{
|
||||
sprintf (StrWidth,"%upx",
|
||||
Not_ContainerWidth[Not_LIST_FULL_NOTICES] + 40);
|
||||
sprintf (StrWidth,"%upx", // Changed!
|
||||
Not_ContainerWidth[Not_LIST_FULL_NOTICES] + 60); // Changed!
|
||||
Lay_StartRoundFrameTable (StrWidth,2,Txt_All_notices);
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"CENTER_TOP\">");
|
||||
|
@ -481,8 +481,8 @@ static void Not_DrawANotice (Not_Listing_t TypeNoticesListing,
|
|||
struct UsrData UsrDat;
|
||||
|
||||
/***** Start yellow note *****/
|
||||
fprintf (Gbl.F.Out,"<div class=\"NOTICE_CONTAINER\" style=\"width:%upx;\">",
|
||||
Not_ContainerWidth[TypeNoticesListing]);
|
||||
fprintf (Gbl.F.Out,"<div class=\"NOTICE_CONTAINER\" style=\"width:%upx;\">", // Changed!
|
||||
Not_ContainerWidth[TypeNoticesListing]); // Changed!
|
||||
|
||||
/***** Write the date in the top part of the yellow note *****/
|
||||
/* Write symbol to indicate if notice is obsolete or active */
|
||||
|
|
|
@ -429,7 +429,7 @@ void Ntf_ShowMyNotifications (void)
|
|||
/***** Write row for this notification *****/
|
||||
/* Write event icon */
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"%s LEFT_TOP\" style=\"width:20px;\">",
|
||||
"<td class=\"%s LEFT_TOP\" style=\"width:30px;\">", // Changed!
|
||||
ClassBackground);
|
||||
if (PutLink)
|
||||
{
|
||||
|
@ -470,7 +470,7 @@ void Ntf_ShowMyNotifications (void)
|
|||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
||||
/* Write user (from) */
|
||||
Msg_WriteMsgAuthor (&UsrDat,80,11,ClassAuthorBg,true,NULL);
|
||||
Msg_WriteMsgAuthor (&UsrDat,120,11,ClassAuthorBg,true,NULL); // Changed!
|
||||
|
||||
/* Write location */
|
||||
fprintf (Gbl.F.Out,"<td class=\"%s LEFT_TOP\">",
|
||||
|
@ -551,7 +551,7 @@ void Ntf_ShowMyNotifications (void)
|
|||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td colspan=\"2\"></td>"
|
||||
"<td colspan=\"5\" class=\"DAT LEFT_TOP\""
|
||||
" style=\"padding-bottom:10px;\">"
|
||||
" style=\"padding-bottom:15px;\">" // Changed!
|
||||
"%s"
|
||||
"</td>"
|
||||
"</tr>",
|
||||
|
|
|
@ -188,7 +188,7 @@ void Pag_WriteLinksToPages (Pag_WhatPaginate_t WhatPaginate,long ThrCod,struct P
|
|||
if (Pagination->MoreThanOnePage)
|
||||
{
|
||||
/***** Links to several pages start here *****/
|
||||
fprintf (Gbl.F.Out,"<table style=\"margin:0 auto; border-spacing:5px;\">"
|
||||
fprintf (Gbl.F.Out,"<table style=\"margin:0 auto; border-spacing:7px;\">" // Changed!
|
||||
"<tr>"
|
||||
"<td class=\"%s LEFT_MIDDLE\">"
|
||||
"["
|
||||
|
|
|
@ -884,7 +884,7 @@ void Pwd_AskForConfirmationOnDangerousAction (void)
|
|||
extern const char *Txt_I_understand_that_this_action_may_have_serious_consequences_and_can_not_be_undone;
|
||||
extern const char *Txt_For_security_enter_your_password;
|
||||
|
||||
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\" style=\"margin:10px;\">"
|
||||
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\" style=\"margin:15px;\">" // Changed!
|
||||
"<input type=\"checkbox\" name=\"Consent\" value=\"Y\" />"
|
||||
"<span class=\"%s\">%s</span><br />"
|
||||
"<span class=\"%s\">%s: </span>"
|
||||
|
|
33
swad_photo.c
33
swad_photo.c
|
@ -756,14 +756,14 @@ static void Pho_UpdatePhoto2 (void)
|
|||
fprintf (Gbl.F.Out,"<td class=\"DAT CENTER_TOP\" style=\"width:33%%;\">"
|
||||
"<img src=\"%s/%s/%s/%s_paso%u.jpg\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
" style=\"width:%upx; height:%upx;\" />"
|
||||
" style=\"width:%upx; height:%upx;\" />" // Changed!
|
||||
"<br />%s"
|
||||
"</td>",
|
||||
Cfg_HTTPS_URL_SWAD_PUBLIC,Cfg_FOLDER_PHOTO,Cfg_FOLDER_PHOTO_TMP,
|
||||
Gbl.Usrs.FileNamePhoto,NumPhoto + 1,
|
||||
Txt_PHOTO_PROCESSING_CAPTIONS[NumPhoto],
|
||||
Txt_PHOTO_PROCESSING_CAPTIONS[NumPhoto],
|
||||
Pho_PHOTO_REAL_WIDTH,Pho_PHOTO_REAL_HEIGHT,
|
||||
Pho_PHOTO_REAL_WIDTH,Pho_PHOTO_REAL_HEIGHT, // Changed!
|
||||
Txt_PHOTO_PROCESSING_CAPTIONS[NumPhoto]);
|
||||
fprintf (Gbl.F.Out,"</tr>"
|
||||
"</table>");
|
||||
|
@ -2179,7 +2179,8 @@ static void Pho_ShowDegreeAvgPhotoAndStat (struct Degree *Deg,Pho_AvgPhotoSeeOrP
|
|||
extern const char *Txt_students_ABBREVIATION;
|
||||
extern const char *Txt_SEX_PLURAL_abc[Usr_NUM_SEXS];
|
||||
extern const char *Txt_photos;
|
||||
unsigned PhotoWidth,PhotoHeight;
|
||||
unsigned PhotoWidth;
|
||||
unsigned PhotoHeight;
|
||||
char PathRelAvgPhoto[PATH_MAX+1];
|
||||
char PhotoURL[PATH_MAX+1];
|
||||
char CopyOfDegShortName[Deg_MAX_LENGTH_DEGREE_SHORT_NAME+1]; // Short name of degree
|
||||
|
@ -2213,8 +2214,8 @@ static void Pho_ShowDegreeAvgPhotoAndStat (struct Degree *Deg,Pho_AvgPhotoSeeOrP
|
|||
Cfg_HTTPS_URL_SWAD_PUBLIC,Cfg_FOLDER_PHOTO,
|
||||
Pho_StrAvgPhotoDirs[Gbl.Stat.DegPhotos.TypeOfAverage],
|
||||
Deg->DegCod,Usr_StringsSexDB[Sex]);
|
||||
fprintf (Gbl.F.Out,"%s\" style=\"width:%upx; height:%upx;\"",
|
||||
PhotoURL,PhotoWidth,PhotoHeight);
|
||||
fprintf (Gbl.F.Out,"%s\" style=\"width:%upx; height:%upx;\"", // Changed!
|
||||
PhotoURL,PhotoWidth,PhotoHeight); // Changed!
|
||||
if (SeeOrPrint == Pho_DEGREES_SEE)
|
||||
{
|
||||
sprintf (PhotoCaption,"%s<br />"
|
||||
|
@ -2233,12 +2234,12 @@ static void Pho_ShowDegreeAvgPhotoAndStat (struct Degree *Deg,Pho_AvgPhotoSeeOrP
|
|||
}
|
||||
else
|
||||
fprintf (Gbl.F.Out,"%s/usr_bl.jpg\""
|
||||
" style=\"width:%upx; height:%upx;\"",
|
||||
" style=\"width:%upx; height:%upx;\"", // Changed!
|
||||
Gbl.Prefs.IconsURL,PhotoWidth,PhotoHeight);
|
||||
}
|
||||
else
|
||||
fprintf (Gbl.F.Out,"%s/usr_bl.jpg\""
|
||||
" style=\"width:%upx; height:%upx;\"",
|
||||
" style=\"width:%upx; height:%upx;\"", // Changed!
|
||||
Gbl.Prefs.IconsURL,PhotoWidth,PhotoHeight);
|
||||
fprintf (Gbl.F.Out," alt=\"%s\" title=\"%s\" />",
|
||||
Deg->ShortName,
|
||||
|
@ -2260,15 +2261,15 @@ static void Pho_ShowDegreeAvgPhotoAndStat (struct Degree *Deg,Pho_AvgPhotoSeeOrP
|
|||
/*****************************************************************************/
|
||||
/******** Compute photo width and height for class photo of degrees **********/
|
||||
/*****************************************************************************/
|
||||
#define MIN_WIDTH_PHOTO 9
|
||||
#define MIN_HEIGHT_PHOTO 12
|
||||
#define MIN_PIXELS_PHOTO (MIN_WIDTH_PHOTO * MIN_HEIGHT_PHOTO)
|
||||
#define DEF_WIDTH_PHOTO 36
|
||||
#define DEF_HEIGHT_PHOTO 48
|
||||
#define DEF_PIXELS_PHOTO (DEF_WIDTH_PHOTO * DEF_HEIGHT_PHOTO)
|
||||
#define MAX_WIDTH_PHOTO 72
|
||||
#define MAX_HEIGHT_PHOTO 96
|
||||
#define MAX_PIXELS_PHOTO (MAX_WIDTH_PHOTO * MAX_HEIGHT_PHOTO)
|
||||
#define MIN_WIDTH_PHOTO 12 // Changed!
|
||||
#define MIN_HEIGHT_PHOTO 18 // Changed!
|
||||
#define MIN_PIXELS_PHOTO (MIN_WIDTH_PHOTO * MIN_HEIGHT_PHOTO)
|
||||
#define DEF_WIDTH_PHOTO 54 // Changed!
|
||||
#define DEF_HEIGHT_PHOTO 72 // Changed!
|
||||
#define DEF_PIXELS_PHOTO (DEF_WIDTH_PHOTO * DEF_HEIGHT_PHOTO)
|
||||
#define MAX_WIDTH_PHOTO 108 // Changed!
|
||||
#define MAX_HEIGHT_PHOTO 144 // Changed!
|
||||
#define MAX_PIXELS_PHOTO (MAX_WIDTH_PHOTO * MAX_HEIGHT_PHOTO)
|
||||
|
||||
static void Pho_ComputePhotoSize (int NumStds,int NumStdsWithPhoto,unsigned *PhotoWidth,unsigned *PhotoHeight)
|
||||
{
|
||||
|
|
|
@ -31,8 +31,8 @@
|
|||
/************************* Public types and constants ************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
#define Pho_PHOTO_REAL_WIDTH 150
|
||||
#define Pho_PHOTO_REAL_HEIGHT 200
|
||||
#define Pho_PHOTO_REAL_WIDTH 225
|
||||
#define Pho_PHOTO_REAL_HEIGHT 300
|
||||
|
||||
/***** Zoom? *****/
|
||||
typedef enum
|
||||
|
|
|
@ -99,7 +99,7 @@ void Plg_ListPlugins (void)
|
|||
|
||||
/***** Write table heading *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<th style=\"width:32px;\">"
|
||||
"<th style=\"width:48px;\">" // Changed!
|
||||
"</th>"
|
||||
"<th class=\"LEFT_MIDDLE\">"
|
||||
"%s"
|
||||
|
@ -119,7 +119,7 @@ void Plg_ListPlugins (void)
|
|||
/* Plugin logo */
|
||||
// TODO: Change plugin icons to 32x32
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"DAT LEFT_MIDDLE\" style=\"width:36px;\">"
|
||||
"<td class=\"DAT LEFT_MIDDLE\" style=\"width:54px;\">" // Changed!
|
||||
"<a href=\"%s\" title=\"%s\" class=\"DAT\" target=\"_blank\">"
|
||||
"<img src=\"%s/%s/%s24x24.gif\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
|
@ -383,7 +383,7 @@ static void Plg_ListPluginsForEdition (void)
|
|||
|
||||
/* Plugin logo */
|
||||
// TODO: Change plugin icons to 32x32
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\" style=\"width:36px;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\" style=\"width:54px;\">" // Changed!
|
||||
"<img src=\"%s/%s/%s24x24.gif\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
" class=\"ICON32x32\" />"
|
||||
|
@ -929,7 +929,7 @@ static void Plg_PutHeadPlugins (void)
|
|||
"<th class=\"RIGHT_MIDDLE\">"
|
||||
"%s"
|
||||
"</th>"
|
||||
"<th style=\"width:28px;\"></th>"
|
||||
"<th style=\"width:42px;\"></th>" // Changed!
|
||||
"<th class=\"LEFT_MIDDLE\">"
|
||||
"%s"
|
||||
"</th>"
|
||||
|
|
|
@ -73,7 +73,7 @@ void Pre_EditPrefs (void)
|
|||
Lay_EndRoundFrame ();
|
||||
|
||||
/***** Layout, theme, icon set, menu & side columns *****/
|
||||
fprintf (Gbl.F.Out,"<table style=\"margin:0 auto; border-spacing:10px;\">"
|
||||
fprintf (Gbl.F.Out,"<table style=\"margin:0 auto; border-spacing:15px;\">" // Changed!
|
||||
"<tr>"
|
||||
"<td>");
|
||||
Lay_PutIconsToSelectLayout (); // 1. Layout
|
||||
|
@ -225,12 +225,12 @@ void Pre_PutSelectorToSelectLanguage (void)
|
|||
Txt_Language_t Lan;
|
||||
static const unsigned SelectorWidth[Lay_NUM_LAYOUTS] =
|
||||
{
|
||||
90, // Lay_LAYOUT_DESKTOP
|
||||
120, // Lay_LAYOUT_MOBILE
|
||||
135, // Lay_LAYOUT_DESKTOP // Changed!
|
||||
180, // Lay_LAYOUT_MOBILE // Changed!
|
||||
};
|
||||
|
||||
Act_FormStart (ActReqChgLan);
|
||||
fprintf (Gbl.F.Out,"<select name=\"Lan\" style=\"width:%upx; margin:0;\""
|
||||
fprintf (Gbl.F.Out,"<select name=\"Lan\" style=\"width:%upx; margin:0;\"" // Changed!
|
||||
" onchange=\"javascript:document.getElementById('%s').submit();\">",
|
||||
SelectorWidth[Gbl.Prefs.Layout],Gbl.FormId);
|
||||
for (Lan = (Txt_Language_t) 0;
|
||||
|
@ -352,7 +352,7 @@ static void Pre_PutIconsToSelectSideCols (void)
|
|||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/layout%u%u_32x20.gif\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
" style=\"display:block;"
|
||||
" width:32px; height:20px;\" />",
|
||||
" width:48px; height:30px;\" />", // Changed!
|
||||
Gbl.Prefs.IconsURL,
|
||||
SideCols >> 1,SideCols & 1,
|
||||
Txt_LAYOUT_SIDE_COLUMNS[SideCols],
|
||||
|
|
|
@ -327,7 +327,7 @@ static void Prf_ShowDetailsUserProfile (const struct UsrData *UsrDat)
|
|||
// char StrTimeGenerationInMicroseconds[64];
|
||||
|
||||
/***** Start table *****/
|
||||
fprintf (Gbl.F.Out,"<table class=\"CELLS_PAD_2\" style=\"margin:0 10px;\">");
|
||||
fprintf (Gbl.F.Out,"<table class=\"CELLS_PAD_2\" style=\"margin:0 15px;\">"); // Changed!
|
||||
/*
|
||||
if (Gbl.Usrs.Me.LoggedRole == Rol_ROLE_SYS_ADM)
|
||||
{
|
||||
|
@ -1319,7 +1319,7 @@ void Prf_ShowRankingFigure (const char *Query)
|
|||
fprintf (Gbl.F.Out,"<tr>");
|
||||
Prf_ShowUsrInRanking (&UsrDat,Rank);
|
||||
fprintf (Gbl.F.Out,"<td class=\"RIGHT_MIDDLE COLOR%u\""
|
||||
" style=\"height:40px;\">"
|
||||
" style=\"height:60px;\">" // Changed!
|
||||
"%ld"
|
||||
"</td>"
|
||||
"</tr>",
|
||||
|
@ -1464,7 +1464,7 @@ void Prf_GetAndShowRankingClicksPerDay (void)
|
|||
fprintf (Gbl.F.Out,"<tr>");
|
||||
Prf_ShowUsrInRanking (&UsrDat,Rank);
|
||||
fprintf (Gbl.F.Out,"<td class=\"RIGHT_MIDDLE COLOR%u\""
|
||||
" style=\"height:40px;\">",
|
||||
" style=\"height:60px;\">", // Changed!
|
||||
Gbl.RowEvenOdd);
|
||||
Str_WriteFloatNum (NumClicksPerDay);
|
||||
fprintf (Gbl.F.Out,"</td>"
|
||||
|
@ -1493,11 +1493,11 @@ void Prf_ShowUsrInRanking (const struct UsrData *UsrDat,unsigned Rank)
|
|||
bool Visible = Pri_ShowIsAllowed (UsrDat->ProfileVisibility,UsrDat->UsrCod);
|
||||
|
||||
fprintf (Gbl.F.Out,"<td class=\"RANK RIGHT_MIDDLE COLOR%u\""
|
||||
" style=\"height:40px;\">"
|
||||
" style=\"height:60px;\">" // Changed!
|
||||
"#%u"
|
||||
"</td>"
|
||||
"<td class=\"COLOR%u\""
|
||||
" style=\"width:28px; height:40px;\">",
|
||||
" style=\"width:42px; height:60px;\">", // Changed!
|
||||
Gbl.RowEvenOdd,
|
||||
Rank,
|
||||
Gbl.RowEvenOdd);
|
||||
|
@ -1513,7 +1513,7 @@ void Prf_ShowUsrInRanking (const struct UsrData *UsrDat,unsigned Rank)
|
|||
}
|
||||
|
||||
fprintf (Gbl.F.Out,"</td>"
|
||||
"<td class=\"COLOR%u\" style=\"height:40px;\">",
|
||||
"<td class=\"COLOR%u\" style=\"height:60px;\">", // Changed!
|
||||
Gbl.RowEvenOdd);
|
||||
|
||||
/***** Put form to go to public profile *****/
|
||||
|
|
231
swad_record.c
231
swad_record.c
|
@ -57,8 +57,8 @@ extern struct Act_Actions Act_Actions[Act_NUM_ACTIONS];
|
|||
/***************************** Private constants *****************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
#define Rec_INSTITUTION_LOGO_SIZE 48
|
||||
#define Rec_DEGREE_LOGO_SIZE 48
|
||||
#define Rec_INSTITUTION_LOGO_SIZE 72 // Changed!
|
||||
#define Rec_DEGREE_LOGO_SIZE 72 // Changed!
|
||||
#define Rec_SHOW_OFFICE_HOURS_DEFAULT true
|
||||
|
||||
/*****************************************************************************/
|
||||
|
@ -209,7 +209,7 @@ void Rec_ListFieldsRecordsForEdition (void)
|
|||
Act_FormStart (ActRenFie);
|
||||
Par_PutHiddenParamLong ("FieldCod",Gbl.CurrentCrs.Records.LstFields.Lst[NumField].FieldCod);
|
||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"FieldName\""
|
||||
" style=\"width:400px;\" maxlength=\"%u\" value=\"%s\""
|
||||
" style=\"width:600px;\" maxlength=\"%u\" value=\"%s\"" // Changed!
|
||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
||||
Rec_MAX_LENGTH_NAME_FIELD,
|
||||
Gbl.CurrentCrs.Records.LstFields.Lst[NumField].Name,
|
||||
|
@ -282,7 +282,7 @@ void Rec_ShowFormCreateRecordField (void)
|
|||
/***** Field name *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\">"
|
||||
"<input type=\"text\" name=\"FieldName\""
|
||||
" style=\"width:400px;\" maxlength=\"%u\" value=\"%s\" />"
|
||||
" style=\"width:600px;\" maxlength=\"%u\" value=\"%s\" />" // Changed!
|
||||
"</td>",
|
||||
Rec_MAX_LENGTH_NAME_FIELD,Gbl.CurrentCrs.Records.Field.Name);
|
||||
|
||||
|
@ -915,7 +915,7 @@ void Rec_ListRecordsGsts (void)
|
|||
if (Usr_ChkUsrCodAndGetAllUsrDataFromUsrCod (&UsrDat)) // Get from the database the data of the student
|
||||
{
|
||||
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\""
|
||||
" style=\"margin-bottom:10px;");
|
||||
" style=\"margin-bottom:15px;"); // Changed!
|
||||
if (Gbl.CurrentAct == ActPrnRecSevGst &&
|
||||
NumUsrs != 0 &&
|
||||
(NumUsrs % Gbl.Usrs.Listing.RecsPerPag) == 0)
|
||||
|
@ -1082,7 +1082,7 @@ void Rec_ListRecordsStds (void)
|
|||
true);
|
||||
|
||||
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\""
|
||||
" style=\"margin-bottom:10px;");
|
||||
" style=\"margin-bottom:15px;"); // Changed!
|
||||
if (Gbl.CurrentAct == ActPrnRecSevStd &&
|
||||
NumUsrs != 0 &&
|
||||
(NumUsrs % Gbl.Usrs.Listing.RecsPerPag) == 0)
|
||||
|
@ -1169,7 +1169,7 @@ static void Rec_ShowRecordOneTchCrs (void)
|
|||
fprintf (Gbl.F.Out,"</div>");
|
||||
|
||||
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\""
|
||||
" style=\"margin-bottom:10px;\">");
|
||||
" style=\"margin-bottom:15px;\">"); // Changed!
|
||||
|
||||
/* Common record */
|
||||
Rec_ShowSharedUsrRecord (Rec_RECORD_LIST,&Gbl.Usrs.Other.UsrDat);
|
||||
|
@ -1258,7 +1258,7 @@ void Rec_ListRecordsTchs (void)
|
|||
true);
|
||||
|
||||
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\""
|
||||
" style=\"margin-bottom:10px;");
|
||||
" style=\"margin-bottom:15px;"); // Changed!
|
||||
if (Gbl.CurrentAct == ActPrnRecSevTch &&
|
||||
NumUsrs != 0 &&
|
||||
(NumUsrs % Gbl.Usrs.Listing.RecsPerPag) == 0)
|
||||
|
@ -1348,7 +1348,7 @@ static void Rec_WriteFormShowOfficeHours (bool ShowOfficeHours,const char *ListU
|
|||
Par_PutHiddenParamChar ("ParamOfficeHours",'Y');
|
||||
|
||||
/***** End form *****/
|
||||
fprintf (Gbl.F.Out,"<div style=\"margin:0 5px; display:inline;\">"
|
||||
fprintf (Gbl.F.Out,"<div style=\"margin:0 7px; display:inline;\">" // Changed!
|
||||
"<input type=\"checkbox\" name=\"ShowOfficeHours\" value=\"Y\"");
|
||||
if (ShowOfficeHours)
|
||||
fprintf (Gbl.F.Out," checked=\"checked\"");
|
||||
|
@ -1453,10 +1453,10 @@ void Rec_ShowCrsRecord (Rec_RecordViewType_t TypeOfView,struct UsrData *UsrDat)
|
|||
extern const char *Txt_You_dont_have_permission_to_perform_this_action;
|
||||
extern const char *Txt_RECORD_FIELD_VISIBILITY_RECORD[Rec_NUM_TYPES_VISIBILITY];
|
||||
extern const char *Txt_Save;
|
||||
unsigned RecordWidth = Rec_RECORD_WIDTH_WIDE;
|
||||
unsigned RecordWidth = Rec_RECORD_WIDTH_WIDE; // Changed!
|
||||
char StrRecordWidth[10+1];
|
||||
unsigned FrameWidth = 10;
|
||||
unsigned Col1Width = 140;
|
||||
unsigned FrameWidth = 15; // Changed!
|
||||
unsigned Col1Width = 210; // Changed!
|
||||
unsigned Col2Width;
|
||||
char *ClassHead;
|
||||
char *ClassData;
|
||||
|
@ -1539,7 +1539,7 @@ void Rec_ShowCrsRecord (Rec_RecordViewType_t TypeOfView,struct UsrData *UsrDat)
|
|||
Col2Width = RecordWidth - FrameWidth * 2 - Col1Width;
|
||||
|
||||
/***** Start frame *****/
|
||||
sprintf (StrRecordWidth,"%upx",RecordWidth);
|
||||
sprintf (StrRecordWidth,"%upx",RecordWidth); // Changed!
|
||||
Lay_StartRoundFrameTable (StrRecordWidth,2,NULL);
|
||||
|
||||
/***** Header *****/
|
||||
|
@ -1547,7 +1547,7 @@ void Rec_ShowCrsRecord (Rec_RecordViewType_t TypeOfView,struct UsrData *UsrDat)
|
|||
"<td colspan=\"2\" class=\"LEFT_TOP\">"
|
||||
"<table style=\"width:100%%;\">"
|
||||
"<tr>"
|
||||
"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">",
|
||||
"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">", // Changed!
|
||||
Rec_DEGREE_LOGO_SIZE);
|
||||
Log_DrawLogo (Sco_SCOPE_DEG,Gbl.CurrentDeg.Deg.DegCod,
|
||||
Gbl.CurrentDeg.Deg.ShortName,Rec_DEGREE_LOGO_SIZE,NULL,true);
|
||||
|
@ -1581,11 +1581,11 @@ void Rec_ShowCrsRecord (Rec_RecordViewType_t TypeOfView,struct UsrData *UsrDat)
|
|||
/* Name of the field */
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"%s LEFT_TOP COLOR%u\""
|
||||
" style=\"width:%upx;\">"
|
||||
" style=\"width:%upx;\">" // Changed!
|
||||
"%s:",
|
||||
ICanEdit ? The_ClassForm[Gbl.Prefs.Theme] :
|
||||
"DAT_REC_SMALL",
|
||||
Gbl.RowEvenOdd,Col1Width,
|
||||
Gbl.RowEvenOdd,Col1Width, // Changed!
|
||||
Gbl.CurrentCrs.Records.LstFields.Lst[NumField].Name);
|
||||
if (TypeOfView == Rec_RECORD_LIST)
|
||||
fprintf (Gbl.F.Out,"<span class=\"DAT_SMALL\"> (%s)</span>",
|
||||
|
@ -1603,12 +1603,12 @@ void Rec_ShowCrsRecord (Rec_RecordViewType_t TypeOfView,struct UsrData *UsrDat)
|
|||
|
||||
/***** Write form, text, or nothing depending on the user's role and the visibility of the field... */
|
||||
fprintf (Gbl.F.Out,"<td class=\"%s LEFT_TOP COLOR%u\""
|
||||
" style=\"width:%upx;\">",
|
||||
ClassData,Gbl.RowEvenOdd,Col2Width);
|
||||
" style=\"width:%upx;\">", // Changed!
|
||||
ClassData,Gbl.RowEvenOdd,Col2Width); // Changed!
|
||||
if (ICanEdit) // Show with form
|
||||
{
|
||||
fprintf (Gbl.F.Out,"<textarea name=\"Field%ld\" rows=\"%u\""
|
||||
" style=\"width:360px;\">",
|
||||
" style=\"width:540px;\">", // Changed!
|
||||
Gbl.CurrentCrs.Records.LstFields.Lst[NumField].FieldCod,
|
||||
Gbl.CurrentCrs.Records.LstFields.Lst[NumField].NumLines);
|
||||
if (ThisFieldHasText)
|
||||
|
@ -2118,13 +2118,13 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
Act_Actions[Gbl.CurrentAct].BrowserWindow == Act_MAIN_WINDOW; // Only in main window
|
||||
|
||||
/***** Start frame *****/
|
||||
sprintf (StrRecordWidth,"%upx",RecordWidth);
|
||||
sprintf (StrRecordWidth,"%upx",RecordWidth); // Changed!
|
||||
Lay_StartRoundFrameTable (StrRecordWidth,2,NULL);
|
||||
|
||||
/***** Institution *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"CENTER_MIDDLE\""
|
||||
" style=\"width:%upx; height:%upx;\">",
|
||||
" style=\"width:%upx; height:%upx;\">", // Changed!
|
||||
TopC1Width,TopC1Width);
|
||||
if (UsrDat->InsCod > 0)
|
||||
{
|
||||
|
@ -2148,7 +2148,7 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
}
|
||||
fprintf (Gbl.F.Out,"</td>"
|
||||
"<td class=\"%s LEFT_MIDDLE\""
|
||||
" style=\"width:%upx; height:%upx;\">",
|
||||
" style=\"width:%upx; height:%upx;\">", // Changed!
|
||||
ClassHead,TopC2Width,TopC1Width);
|
||||
if (UsrDat->InsCod > 0)
|
||||
{
|
||||
|
@ -2171,7 +2171,7 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
/***** Photo *****/
|
||||
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL);
|
||||
fprintf (Gbl.F.Out,"<td rowspan=\"3\" class=\"CENTER_TOP\""
|
||||
" style=\"width:%upx;\">",
|
||||
" style=\"width:%upx;\">", // Changed!
|
||||
TopC3Width);
|
||||
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
|
||||
NULL,
|
||||
|
@ -2182,12 +2182,12 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
/***** Commands *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td rowspan=\"3\" class=\"LEFT_TOP\""
|
||||
" style=\"width:%upx;\">",
|
||||
" style=\"width:%upx;\">", // Changed!
|
||||
TopC1Width);
|
||||
|
||||
if (PutFormLinks && Gbl.Usrs.Me.Logged)
|
||||
{
|
||||
fprintf (Gbl.F.Out,"<div style=\"width:20px; margin:6px auto;\">");
|
||||
fprintf (Gbl.F.Out,"<div style=\"width:30px; margin:9px auto;\">"); // Changed!
|
||||
|
||||
/***** Button to edit my record card *****/
|
||||
if (ItsMe)
|
||||
|
@ -2395,7 +2395,7 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
|
||||
/***** Full name *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"REC_NAME LEFT_TOP\""
|
||||
" style=\"width:%upx;\">"
|
||||
" style=\"width:%upx;\">" // Changed!
|
||||
"%s<br />%s<br />%s"
|
||||
"</td>"
|
||||
"</tr>",
|
||||
|
@ -2406,7 +2406,7 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
|
||||
/***** User's nickname *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"REC_NAME LEFT_BOTTOM\""
|
||||
" style=\"width:%upx;\">"
|
||||
" style=\"width:%upx;\">" // Changed!
|
||||
"<div class=\"REC_NICK\">",
|
||||
TopC2Width);
|
||||
if (UsrDat->Nickname[0])
|
||||
|
@ -2434,7 +2434,7 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
|
||||
/***** Country *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"%s LEFT_TOP\" style=\"width:%upx;\">",
|
||||
"<td class=\"%s LEFT_TOP\" style=\"width:%upx;\">", // Changed!
|
||||
ClassData,TopC2Width);
|
||||
if (ShowData && UsrDat->CtyCod > 0)
|
||||
{
|
||||
|
@ -2444,7 +2444,7 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
||||
/***** User's web and social networks *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_TOP\" style=\"width:%upx;\">",
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_TOP\" style=\"width:%upx;\">", // Changed!
|
||||
TopC3Width);
|
||||
Net_ShowWebsAndSocialNets (UsrDat);
|
||||
fprintf (Gbl.F.Out,"</td>"
|
||||
|
@ -2485,11 +2485,11 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
/***** User's e-mail *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"%s RIGHT_MIDDLE\""
|
||||
" style=\"width:%upx;\">"
|
||||
" style=\"width:%upx;\">" // Changed!
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td class=\"%s LEFT_MIDDLE\""
|
||||
" style=\"width:%upx;\">",
|
||||
" style=\"width:%upx;\">", // Changed!
|
||||
ClassForm,Rec_C1_BOTTOM_WIDE,Txt_Email,
|
||||
ClassData,Rec_C2_BOTTOM_WIDE);
|
||||
if (UsrDat->Email[0])
|
||||
|
@ -2511,11 +2511,11 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
/***** User's ID *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"%s RIGHT_TOP\""
|
||||
" style=\"width:%upx;\">"
|
||||
" style=\"width:%upx;\">" // Changed!
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td class=\"%s LEFT_TOP\""
|
||||
" style=\"width:%upx;\">",
|
||||
" style=\"width:%upx;\">", // Changed!
|
||||
ClassForm,Rec_C1_BOTTOM_WIDE,Txt_ID,
|
||||
ClassData,Rec_C2_BOTTOM_WIDE);
|
||||
ID_WriteUsrIDs (UsrDat,ShowID);
|
||||
|
@ -2527,10 +2527,10 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
{
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"%s RIGHT_MIDDLE\""
|
||||
" style=\"width:%upx;\">"
|
||||
" style=\"width:%upx;\">" // Changed!
|
||||
"%s:</td>"
|
||||
"<td class=\"%s LEFT_MIDDLE\""
|
||||
" style=\"width:%upx;\">",
|
||||
" style=\"width:%upx;\">", // Changed!
|
||||
ClassForm,Rec_C1_BOTTOM_WIDE,
|
||||
Txt_Role,
|
||||
ClassData,Rec_C2_BOTTOM_WIDE);
|
||||
|
@ -2663,10 +2663,10 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
{
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"%s RIGHT_MIDDLE\""
|
||||
" style=\"width:%upx;\">"
|
||||
" style=\"width:%upx;\">" // Changed!
|
||||
"%s*:</td>"
|
||||
"<td class=\"%s LEFT_MIDDLE\""
|
||||
" style=\"width:%upx;\">",
|
||||
" style=\"width:%upx;\">", // Changed!
|
||||
ClassForm,Rec_C1_BOTTOM_WIDE,
|
||||
Txt_Sex,
|
||||
ClassData,Rec_C2_BOTTOM_WIDE);
|
||||
|
@ -2693,11 +2693,11 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
else // RoleForm == false, SexForm == false
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"%s RIGHT_MIDDLE\""
|
||||
" style=\"width:%upx;\">"
|
||||
" style=\"width:%upx;\">" // Changed!
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td class=\"%s LEFT_MIDDLE\""
|
||||
" style=\"width:%upx;\">"
|
||||
" style=\"width:%upx;\">" // Changed!
|
||||
"%s"
|
||||
"</td>"
|
||||
"</tr>",
|
||||
|
@ -2712,22 +2712,22 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
/* Surname 1 */
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"%s RIGHT_MIDDLE\""
|
||||
" style=\"width:%upx;\">"
|
||||
" style=\"width:%upx;\">" // Changed!
|
||||
"%s",
|
||||
ClassForm,Rec_C1_BOTTOM_WIDE,Txt_Surname_1);
|
||||
if (TypeOfView == Rec_FORM_MY_COMMON_RECORD)
|
||||
fprintf (Gbl.F.Out,"*");
|
||||
fprintf (Gbl.F.Out,":</td>"
|
||||
"<td class=\"%s LEFT_MIDDLE\""
|
||||
" style=\"width:%upx;\">",
|
||||
" style=\"width:%upx;\">", // Changed!
|
||||
ClassData,Rec_C2_BOTTOM_WIDE);
|
||||
if (DataForm)
|
||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"Surname1\""
|
||||
" maxlength=\"%u\" value=\"%s\""
|
||||
" style=\"width:%upx;\" />",
|
||||
" style=\"width:%upx;\" />", // Changed!
|
||||
Usr_MAX_LENGTH_USR_NAME_OR_SURNAME,
|
||||
UsrDat->Surname1,
|
||||
Rec_C2_BOTTOM_WIDE - 60);
|
||||
Rec_C2_BOTTOM_WIDE - 90); // Changed!
|
||||
else if (UsrDat->Surname1[0])
|
||||
fprintf (Gbl.F.Out,"<strong>%s</strong>",UsrDat->Surname1);
|
||||
fprintf (Gbl.F.Out,"</td>"
|
||||
|
@ -2736,21 +2736,21 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
/* Surname 2 */
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"%s RIGHT_MIDDLE\""
|
||||
" style=\"width:%upx;\">"
|
||||
" style=\"width:%upx;\">" // Changed!
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td class=\"%s LEFT_MIDDLE\""
|
||||
" style=\"width:%upx;\">",
|
||||
" style=\"width:%upx;\">", // Changed!
|
||||
ClassForm,Rec_C1_BOTTOM_WIDE,
|
||||
Txt_Surname_2,
|
||||
ClassData,Rec_C2_BOTTOM_WIDE);
|
||||
if (DataForm)
|
||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"Surname2\""
|
||||
" maxlength=\"%u\" value=\"%s\""
|
||||
" style=\"width:%upx;\" />",
|
||||
" style=\"width:%upx;\" />", // Changed!
|
||||
Usr_MAX_LENGTH_USR_NAME_OR_SURNAME,
|
||||
UsrDat->Surname2,
|
||||
Rec_C2_BOTTOM_WIDE - 60);
|
||||
Rec_C2_BOTTOM_WIDE - 90); // Changed!
|
||||
else if (UsrDat->Surname2[0])
|
||||
fprintf (Gbl.F.Out,"<strong>%s</strong>",
|
||||
UsrDat->Surname2);
|
||||
|
@ -2760,22 +2760,22 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
/* First name */
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"%s RIGHT_MIDDLE\""
|
||||
" style=\"width:%upx;\">"
|
||||
" style=\"width:%upx;\">" // Changed!
|
||||
"%s",
|
||||
ClassForm,Rec_C1_BOTTOM_WIDE,Txt_First_name);
|
||||
if (TypeOfView == Rec_FORM_MY_COMMON_RECORD)
|
||||
fprintf (Gbl.F.Out,"*");
|
||||
fprintf (Gbl.F.Out,":</td>"
|
||||
"<td colspan=\"2\" class=\"%s LEFT_MIDDLE\""
|
||||
" style=\"width:%upx;\">",
|
||||
" style=\"width:%upx;\">", // Changed!
|
||||
ClassData,Rec_C2_BOTTOM_WIDE);
|
||||
if (DataForm)
|
||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"FirstName\""
|
||||
" maxlength=\"%u\" value=\"%s\""
|
||||
" style=\"width:%upx;\" />",
|
||||
" style=\"width:%upx;\" />", // Changed!
|
||||
Usr_MAX_LENGTH_USR_NAME_OR_SURNAME,
|
||||
UsrDat->FirstName,
|
||||
Rec_C2_BOTTOM_WIDE - 60);
|
||||
Rec_C2_BOTTOM_WIDE - 90); // Changed!
|
||||
else if (UsrDat->FirstName[0])
|
||||
fprintf (Gbl.F.Out,"<strong>%s</strong>",UsrDat->FirstName);
|
||||
fprintf (Gbl.F.Out,"</td>"
|
||||
|
@ -2793,22 +2793,22 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"%s RIGHT_MIDDLE\""
|
||||
" style=\"width:%upx;\">"
|
||||
" style=\"width:%upx;\">" // Changed!
|
||||
"%s",
|
||||
ClassForm,Rec_C1_BOTTOM_WIDE,Txt_Country);
|
||||
if (TypeOfView == Rec_FORM_MY_COMMON_RECORD)
|
||||
fprintf (Gbl.F.Out,"*");
|
||||
fprintf (Gbl.F.Out,":</td>"
|
||||
"<td colspan=\"2\" class=\"%s LEFT_MIDDLE\""
|
||||
" style=\"width:%upx;\">",
|
||||
" style=\"width:%upx;\">", // Changed!
|
||||
ClassData,Rec_C2_BOTTOM_WIDE);
|
||||
|
||||
/* Selector of country */
|
||||
fprintf (Gbl.F.Out,"<select name=\"OthCtyCod\""
|
||||
" style=\"width:%upx;\">"
|
||||
" style=\"width:%upx;\">" // Changed!
|
||||
"<option value=\"-1\">%s</option>"
|
||||
"<option value=\"0\"",
|
||||
Rec_C2_BOTTOM_WIDE - 60,
|
||||
Rec_C2_BOTTOM_WIDE - 90,
|
||||
Txt_Country);
|
||||
if (UsrDat->CtyCod == 0)
|
||||
fprintf (Gbl.F.Out," selected=\"selected\"");
|
||||
|
@ -2836,11 +2836,11 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
/* Origin place */
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"%s RIGHT_MIDDLE\""
|
||||
" style=\"width:%upx;\">"
|
||||
" style=\"width:%upx;\">" // Changed!
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td class=\"%s LEFT_MIDDLE\""
|
||||
" style=\"width:%upx;\">",
|
||||
" style=\"width:%upx;\">", // Changed!
|
||||
ClassForm,Rec_C1_BOTTOM_WIDE,Txt_Place_of_origin,
|
||||
ClassData,Rec_C2_BOTTOM_WIDE);
|
||||
if (ShowData)
|
||||
|
@ -2848,10 +2848,10 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
if (DataForm)
|
||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"OriginPlace\""
|
||||
" maxlength=\"%u\" value=\"%s\""
|
||||
" style=\"width:%upx;\" />",
|
||||
" style=\"width:%upx;\" />", // Changed!
|
||||
Cns_MAX_LENGTH_STRING,
|
||||
UsrDat->OriginPlace,
|
||||
Rec_C2_BOTTOM_WIDE - 60);
|
||||
Rec_C2_BOTTOM_WIDE - 90);
|
||||
else if (UsrDat->OriginPlace[0])
|
||||
fprintf (Gbl.F.Out,"%s",UsrDat->OriginPlace);
|
||||
}
|
||||
|
@ -2861,11 +2861,11 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
/* Date of birth */
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"%s RIGHT_MIDDLE\""
|
||||
" style=\"width:%upx;\">"
|
||||
" style=\"width:%upx;\">" // Changed!
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td class=\"%s LEFT_MIDDLE\""
|
||||
" style=\"width:%upx;\">",
|
||||
" style=\"width:%upx;\">", // Changed!
|
||||
ClassForm,Rec_C1_BOTTOM_WIDE,Txt_Date_of_birth,
|
||||
ClassData,Rec_C2_BOTTOM_WIDE);
|
||||
if (ShowData)
|
||||
|
@ -2885,11 +2885,11 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
/* Local address */
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"%s RIGHT_MIDDLE\""
|
||||
" style=\"width:%upx;\">"
|
||||
" style=\"width:%upx;\">" // Changed!
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td class=\"%s LEFT_MIDDLE\""
|
||||
" style=\"width:%upx;\">",
|
||||
" style=\"width:%upx;\">", // Changed!
|
||||
ClassForm,Rec_C1_BOTTOM_WIDE,Txt_Local_address,
|
||||
ClassData,Rec_C2_BOTTOM_WIDE);
|
||||
if (ShowData)
|
||||
|
@ -2897,10 +2897,10 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
if (DataForm)
|
||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"LocalAddress\""
|
||||
" maxlength=\"%u\" value=\"%s\""
|
||||
" style=\"width:%upx;\" />",
|
||||
" style=\"width:%upx;\" />", // Changed!
|
||||
Cns_MAX_LENGTH_STRING,
|
||||
UsrDat->LocalAddress,
|
||||
Rec_C2_BOTTOM_WIDE - 60);
|
||||
Rec_C2_BOTTOM_WIDE - 90); // Changed!
|
||||
else if (UsrDat->LocalAddress[0])
|
||||
fprintf (Gbl.F.Out,"%s",UsrDat->LocalAddress);
|
||||
}
|
||||
|
@ -2910,11 +2910,11 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
/* Local phone */
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"%s RIGHT_MIDDLE\""
|
||||
" style=\"width:%upx;\">"
|
||||
" style=\"width:%upx;\">" // Changed!
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td class=\"%s LEFT_MIDDLE\""
|
||||
" style=\"width:%upx;\">",
|
||||
" style=\"width:%upx;\">", // Changed!
|
||||
ClassForm,Rec_C1_BOTTOM_WIDE,Txt_Phone,
|
||||
ClassData,Rec_C2_BOTTOM_WIDE);
|
||||
if (ShowData)
|
||||
|
@ -2922,10 +2922,10 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
if (DataForm)
|
||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"LocalPhone\""
|
||||
" maxlength=\"%u\" value=\"%s\""
|
||||
" style=\"width:%upx;\" />",
|
||||
" style=\"width:%upx;\" />", // Changed!
|
||||
Usr_MAX_LENGTH_PHONE,
|
||||
UsrDat->LocalPhone,
|
||||
Rec_C2_BOTTOM_WIDE - 60);
|
||||
Rec_C2_BOTTOM_WIDE - 90); // Changed!
|
||||
else if (UsrDat->LocalPhone[0])
|
||||
fprintf (Gbl.F.Out,"%s",UsrDat->LocalPhone);
|
||||
}
|
||||
|
@ -2935,11 +2935,11 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
/* Family address */
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"%s RIGHT_MIDDLE\""
|
||||
" style=\"width:%upx;\">"
|
||||
" style=\"width:%upx;\">" // Changed!
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td class=\"%s LEFT_MIDDLE\""
|
||||
" style=\"width:%upx;\">",
|
||||
" style=\"width:%upx;\">", // Changed!
|
||||
ClassForm,Rec_C1_BOTTOM_WIDE,Txt_Family_address,
|
||||
ClassData,Rec_C2_BOTTOM_WIDE);
|
||||
if (ShowData)
|
||||
|
@ -2947,10 +2947,10 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
if (DataForm)
|
||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"FamilyAddress\""
|
||||
" maxlength=\"%u\" value=\"%s\""
|
||||
" style=\"width:%upx;\" />",
|
||||
" style=\"width:%upx;\" />", // Changed!
|
||||
Cns_MAX_LENGTH_STRING,
|
||||
UsrDat->FamilyAddress,
|
||||
Rec_C2_BOTTOM_WIDE - 60);
|
||||
Rec_C2_BOTTOM_WIDE - 90);
|
||||
else if (UsrDat->FamilyAddress[0])
|
||||
fprintf (Gbl.F.Out,"%s",UsrDat->FamilyAddress);
|
||||
}
|
||||
|
@ -2960,11 +2960,11 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
/* Family phone */
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"%s RIGHT_MIDDLE\""
|
||||
" style=\"width:%upx;\">"
|
||||
" style=\"width:%upx;\">" // Changed!
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td class=\"%s LEFT_MIDDLE\""
|
||||
" style=\"width:%upx;\">",
|
||||
" style=\"width:%upx;\">", // Changed!
|
||||
ClassForm,Rec_C1_BOTTOM_WIDE,Txt_Phone,
|
||||
ClassData,Rec_C2_BOTTOM_WIDE);
|
||||
if (ShowData)
|
||||
|
@ -2972,10 +2972,10 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
if (DataForm)
|
||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"FamilyPhone\""
|
||||
" maxlength=\"%u\" value=\"%s\""
|
||||
" style=\"width:%upx;\" />",
|
||||
" style=\"width:%upx;\" />", // Changed!
|
||||
Usr_MAX_LENGTH_PHONE,
|
||||
UsrDat->FamilyPhone,
|
||||
Rec_C2_BOTTOM_WIDE - 60);
|
||||
Rec_C2_BOTTOM_WIDE - 90); // Changed!
|
||||
else if (UsrDat->FamilyPhone[0])
|
||||
fprintf (Gbl.F.Out,"%s",UsrDat->FamilyPhone);
|
||||
}
|
||||
|
@ -2985,20 +2985,20 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
/* Common comments for all the courses */
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"%s RIGHT_TOP\""
|
||||
" style=\"width:%upx;\">"
|
||||
" style=\"width:%upx;\">" // Changed!
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td class=\"%s LEFT_TOP\" style=\"width:%upx;\">",
|
||||
"<td class=\"%s LEFT_TOP\" style=\"width:%upx;\">", // Changed!
|
||||
ClassForm,Rec_C1_BOTTOM_WIDE,Txt_USER_comments,
|
||||
ClassData,Rec_C2_BOTTOM_WIDE);
|
||||
if (ShowData)
|
||||
{
|
||||
if (DataForm)
|
||||
fprintf (Gbl.F.Out,"<textarea name=\"Comments\" rows=\"3\""
|
||||
" style=\"width:%upx;\">"
|
||||
" style=\"width:%upx;\">" // Changed!
|
||||
"%s"
|
||||
"</textarea>",
|
||||
Rec_C2_BOTTOM_WIDE - 60,
|
||||
Rec_C2_BOTTOM_WIDE - 90, // Changed!
|
||||
UsrDat->Comments);
|
||||
else if (UsrDat->Comments[0])
|
||||
{
|
||||
|
@ -3017,11 +3017,11 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
/* Institution */
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"%s RIGHT_MIDDLE\""
|
||||
" style=\"width:%upx;\">"
|
||||
" style=\"width:%upx;\">" // Changed!
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td class=\"%s LEFT_MIDDLE\""
|
||||
" style=\"width:%upx;\">",
|
||||
" style=\"width:%upx;\">", // Changed!
|
||||
ClassForm,Rec_C1_BOTTOM_WIDE,Txt_Institution,
|
||||
ClassData,Rec_C2_BOTTOM_WIDE);
|
||||
if (ShowData)
|
||||
|
@ -3042,11 +3042,11 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
/* Centre */
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"%s RIGHT_MIDDLE\""
|
||||
" style=\"width:%upx;\">"
|
||||
" style=\"width:%upx;\">" // Changed!
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td class=\"%s LEFT_MIDDLE\""
|
||||
" style=\"width:%upx;\">",
|
||||
" style=\"width:%upx;\">", // Changed!
|
||||
ClassForm,Rec_C1_BOTTOM_WIDE,Txt_Centre,
|
||||
ClassData,Rec_C2_BOTTOM_WIDE);
|
||||
if (ShowData)
|
||||
|
@ -3069,11 +3069,11 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
/* Department */
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"%s RIGHT_MIDDLE\""
|
||||
" style=\"width:%upx;\">"
|
||||
" style=\"width:%upx;\">" // Changed!
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td class=\"%s LEFT_MIDDLE\""
|
||||
" style=\"width:%upx;\">",
|
||||
" style=\"width:%upx;\">", // Changed!
|
||||
ClassForm,Rec_C1_BOTTOM_WIDE,Txt_Department,
|
||||
ClassData,Rec_C2_BOTTOM_WIDE);
|
||||
if (ShowData)
|
||||
|
@ -3096,13 +3096,13 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
/* Office */
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"%s RIGHT_MIDDLE\""
|
||||
" style=\"width:%upx;\">"
|
||||
" style=\"width:%upx;\">" // Changed!
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td class=\"%s LEFT_MIDDLE\""
|
||||
" style=\"width:%upx;\">",
|
||||
ClassForm,Rec_C1_BOTTOM_WIDE,Txt_Office,
|
||||
ClassData,Rec_C2_BOTTOM_WIDE);
|
||||
" style=\"width:%upx;\">", // Changed!
|
||||
ClassForm,Rec_C1_BOTTOM_WIDE,Txt_Office, // Changed!
|
||||
ClassData,Rec_C2_BOTTOM_WIDE); // Changed!
|
||||
if (ShowData)
|
||||
fprintf (Gbl.F.Out,"%s",UsrDat->Tch.Office);
|
||||
fprintf (Gbl.F.Out,"</td>"
|
||||
|
@ -3111,13 +3111,13 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
/* Phone */
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"%s RIGHT_MIDDLE\""
|
||||
" style=\"width:%upx;\">"
|
||||
" style=\"width:%upx;\">" // Changed!
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td class=\"%s LEFT_MIDDLE\""
|
||||
" style=\"width:%upx;\">",
|
||||
ClassForm,Rec_C1_BOTTOM_WIDE,Txt_Phone,
|
||||
ClassData,Rec_C2_BOTTOM_WIDE);
|
||||
" style=\"width:%upx;\">", // Changed!
|
||||
ClassForm,Rec_C1_BOTTOM_WIDE,Txt_Phone, // Changed!
|
||||
ClassData,Rec_C2_BOTTOM_WIDE); // Changed!
|
||||
if (ShowData)
|
||||
fprintf (Gbl.F.Out,"%s",UsrDat->Tch.OfficePhone);
|
||||
fprintf (Gbl.F.Out,"</td>"
|
||||
|
@ -3351,7 +3351,7 @@ static void Rec_PutLinkToChangeMySocialNetworks (void)
|
|||
/********* Show form to edit my institution, centre and department ***********/
|
||||
/*****************************************************************************/
|
||||
|
||||
#define COL2_WIDTH 400
|
||||
#define COL2_WIDTH 600 // Changed!
|
||||
|
||||
void Rec_ShowFormMyInsCtrDpt (void)
|
||||
{
|
||||
|
@ -3385,7 +3385,7 @@ void Rec_ShowFormMyInsCtrDpt (void)
|
|||
Lay_ShowAlert (Lay_WARNING,Txt_Please_fill_in_your_centre_and_department);
|
||||
|
||||
/***** Start table *****/
|
||||
Lay_StartRoundFrameTable ("560px",2,
|
||||
Lay_StartRoundFrameTable ("840px",3, // Changed!
|
||||
IAmTeacher ? Txt_Institution_centre_and_department :
|
||||
Txt_Institution);
|
||||
|
||||
|
@ -3394,9 +3394,9 @@ void Rec_ShowFormMyInsCtrDpt (void)
|
|||
"<td class=\"%s RIGHT_MIDDLE\">"
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">",
|
||||
"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">", // Changed!
|
||||
ClassForm,Txt_Country_of_institution,
|
||||
COL2_WIDTH);
|
||||
COL2_WIDTH); // Changed!
|
||||
|
||||
/* If list of countries is empty, try to get it */
|
||||
if (!Gbl.Ctys.Num)
|
||||
|
@ -3407,7 +3407,7 @@ void Rec_ShowFormMyInsCtrDpt (void)
|
|||
|
||||
/* Start form to select the country of my institution */
|
||||
Act_FormGoToStart (ActChgCtyMyIns);
|
||||
fprintf (Gbl.F.Out,"<select name=\"OthCtyCod\" style=\"width:400px;\""
|
||||
fprintf (Gbl.F.Out,"<select name=\"OthCtyCod\" style=\"width:600px;\"" // Changed!
|
||||
" onchange=\"javascript:document.getElementById('%s').submit();\">"
|
||||
"<option value=\"-1\"",
|
||||
Gbl.FormId);
|
||||
|
@ -3435,9 +3435,9 @@ void Rec_ShowFormMyInsCtrDpt (void)
|
|||
"<td class=\"%s RIGHT_MIDDLE\">"
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">",
|
||||
"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">", // Changed!
|
||||
ClassForm,Txt_Institution,
|
||||
COL2_WIDTH);
|
||||
COL2_WIDTH); // Changed!
|
||||
|
||||
/* Get list of institutions in this country */
|
||||
Ins_FreeListInstitutions ();
|
||||
|
@ -3446,7 +3446,7 @@ void Rec_ShowFormMyInsCtrDpt (void)
|
|||
|
||||
/* Start form to select institution */
|
||||
Act_FormGoToStart (ActChgMyIns);
|
||||
fprintf (Gbl.F.Out,"<select name=\"OthInsCod\" style=\"width:400px;\""
|
||||
fprintf (Gbl.F.Out,"<select name=\"OthInsCod\" style=\"width:600px;\"" // Changed!
|
||||
" onchange=\"javascript:document.getElementById('%s').submit();\">"
|
||||
"<option value=\"-1\"",
|
||||
Gbl.FormId);
|
||||
|
@ -3481,9 +3481,9 @@ void Rec_ShowFormMyInsCtrDpt (void)
|
|||
"<td class=\"%s RIGHT_MIDDLE\">"
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">",
|
||||
"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">", // Changed!
|
||||
ClassForm,Txt_Centre,
|
||||
COL2_WIDTH);
|
||||
COL2_WIDTH); // Changed!
|
||||
|
||||
/* Get list of centres in this institution */
|
||||
Ctr_FreeListCentres ();
|
||||
|
@ -3492,7 +3492,7 @@ void Rec_ShowFormMyInsCtrDpt (void)
|
|||
|
||||
/* Start form to select centre */
|
||||
Act_FormGoToStart (ActChgMyCtr);
|
||||
fprintf (Gbl.F.Out,"<select name=\"OthCtrCod\" style=\"width:400px;\""
|
||||
fprintf (Gbl.F.Out,"<select name=\"OthCtrCod\" style=\"width:600px;\"" // Changed!
|
||||
" onchange=\"javascript:document.getElementById('%s').submit();\">"
|
||||
"<option value=\"-1\"",
|
||||
Gbl.FormId);
|
||||
|
@ -3525,9 +3525,9 @@ void Rec_ShowFormMyInsCtrDpt (void)
|
|||
"<td class=\"%s RIGHT_MIDDLE\">"
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">",
|
||||
"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">", // Changed!
|
||||
ClassForm,Txt_Department,
|
||||
COL2_WIDTH);
|
||||
COL2_WIDTH); // Changed!
|
||||
|
||||
/* Get list of departments in this institution */
|
||||
Dpt_FreeListDepartments ();
|
||||
|
@ -3536,7 +3536,7 @@ void Rec_ShowFormMyInsCtrDpt (void)
|
|||
|
||||
/* Start form to select department */
|
||||
Act_FormGoToStart (ActChgMyDpt);
|
||||
fprintf (Gbl.F.Out,"<select name=\"DptCod\" style=\"width:400px;\""
|
||||
fprintf (Gbl.F.Out,"<select name=\"DptCod\" style=\"width:600px;\"" // Changed!
|
||||
" onchange=\"javascript:document.getElementById('%s').submit();\">"
|
||||
"<option value=\"-1\"",
|
||||
Gbl.FormId);
|
||||
|
@ -3569,12 +3569,13 @@ void Rec_ShowFormMyInsCtrDpt (void)
|
|||
"<td class=\"%s RIGHT_MIDDLE\">"
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">",
|
||||
"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">", // Changed!
|
||||
ClassForm,Txt_Office,
|
||||
COL2_WIDTH);
|
||||
COL2_WIDTH); // Changed!
|
||||
Act_FormGoToStart (ActChgMyOff);
|
||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"Office\""
|
||||
" style=\"width:400px;\" maxlength=\"%u\" value=\"%s\""
|
||||
" maxlength=\"%u\" value=\"%s\""
|
||||
" style=\"width:600px;\"" // Changed!
|
||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
||||
Cns_MAX_LENGTH_STRING,
|
||||
Gbl.Usrs.Me.UsrDat.Tch.Office,
|
||||
|
@ -3588,13 +3589,13 @@ void Rec_ShowFormMyInsCtrDpt (void)
|
|||
"<td class=\"%s RIGHT_MIDDLE\">"
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">",
|
||||
"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">", // Changed!
|
||||
ClassForm,Txt_Phone,
|
||||
COL2_WIDTH);
|
||||
COL2_WIDTH); // Changed!
|
||||
Act_FormGoToStart (ActChgMyOffPho);
|
||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"OfficePhone\""
|
||||
" maxlength=\"%u\" value=\"%s\""
|
||||
" style=\"width:400px;\""
|
||||
" style=\"width:600px;\"" // Changed!
|
||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
||||
Usr_MAX_LENGTH_PHONE,
|
||||
Gbl.Usrs.Me.UsrDat.Tch.OfficePhone,
|
||||
|
|
|
@ -35,17 +35,17 @@
|
|||
/***************************** Public constants ******************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
#define Rec_RECORD_WIDTH_WIDE 560
|
||||
#define Rec_C1_TOP_WIDE 52
|
||||
#define Rec_C2_TOP_WIDE 354
|
||||
#define Rec_C3_TOP_WIDE 154
|
||||
#define Rec_C1_BOTTOM_WIDE (160-2)
|
||||
#define Rec_C2_BOTTOM_WIDE (400-2)
|
||||
#define Rec_RECORD_WIDTH_WIDE 840 // Changed!
|
||||
#define Rec_C1_TOP_WIDE 78 // Changed!
|
||||
#define Rec_C2_TOP_WIDE 531 // Changed!
|
||||
#define Rec_C3_TOP_WIDE 231 // Changed!
|
||||
#define Rec_C1_BOTTOM_WIDE (240-3) // Changed!
|
||||
#define Rec_C2_BOTTOM_WIDE (600-3) // Changed!
|
||||
|
||||
#define Rec_RECORD_WIDTH_NARROW 460
|
||||
#define Rec_C1_TOP_NARROW 52
|
||||
#define Rec_C2_TOP_NARROW 254
|
||||
#define Rec_C3_TOP_NARROW 154
|
||||
#define Rec_RECORD_WIDTH_NARROW 690 // Changed!
|
||||
#define Rec_C1_TOP_NARROW 78 // Changed!
|
||||
#define Rec_C2_TOP_NARROW 381 // Changed!
|
||||
#define Rec_C3_TOP_NARROW 231 // Changed!
|
||||
|
||||
#define Rec_MAX_LENGTH_NAME_FIELD 255
|
||||
#define Rec_MIN_LINES_IN_EDITION_FIELD 1
|
||||
|
|
|
@ -288,16 +288,16 @@ void Rol_PutFormToChangeMyRole (bool FormInHead)
|
|||
extern const char *Txt_ROLES_SINGUL_Abc[Rol_NUM_ROLES][Usr_NUM_SEXS];
|
||||
static const unsigned SelectorWidth[Lay_NUM_LAYOUTS] =
|
||||
{
|
||||
90, // Lay_LAYOUT_DESKTOP
|
||||
90, // Lay_LAYOUT_MOBILE
|
||||
135, // Lay_LAYOUT_DESKTOP // Changed!
|
||||
135, // Lay_LAYOUT_MOBILE // Changed!
|
||||
};
|
||||
Rol_Role_t Role;
|
||||
|
||||
Act_FormStart (ActChgMyRol);
|
||||
fprintf (Gbl.F.Out,"<select name=\"UsrTyp\"");
|
||||
if (FormInHead)
|
||||
fprintf (Gbl.F.Out," style=\"width:%upx;\"",
|
||||
SelectorWidth[Gbl.Prefs.Layout]);
|
||||
fprintf (Gbl.F.Out," style=\"width:%upx;\"", // Changed!
|
||||
SelectorWidth[Gbl.Prefs.Layout]); // Changed!
|
||||
fprintf (Gbl.F.Out," onchange=\"javascript:document.getElementById('%s').submit();\">",
|
||||
Gbl.FormId);
|
||||
for (Role = Rol__GUEST_;
|
||||
|
|
|
@ -250,7 +250,7 @@ static void Sch_PutFormToSearchWithWhatToSearchAndScope (Act_Action_t Action,Sco
|
|||
fprintf (Gbl.F.Out,"</div>");
|
||||
|
||||
/***** What to search? *****/
|
||||
fprintf (Gbl.F.Out,"<select name=\"WhatToSearch\" style=\"width:150px;\">");
|
||||
fprintf (Gbl.F.Out,"<select name=\"WhatToSearch\" style=\"width:225px;\">"); // Changed!
|
||||
for (WhatToSearch = (Sch_WhatToSearch_t) 0;
|
||||
WhatToSearch < Sch_NUM_WHAT_TO_SEARCH;
|
||||
WhatToSearch++)
|
||||
|
|
135
swad_statistic.c
135
swad_statistic.c
|
@ -434,7 +434,7 @@ void Sta_AskSeeCrsAccesses (void)
|
|||
|
||||
/***** Draw two class photographs with the users: one for teachers of the course and another one for students *****/
|
||||
/* Start the table */
|
||||
fprintf (Gbl.F.Out,"<table style=\"margin:0 auto; border-spacing:4px;\">"
|
||||
fprintf (Gbl.F.Out,"<table style=\"margin:0 auto; border-spacing:6px;\">" // Changed!
|
||||
"<tr>"
|
||||
"<td colspan=\"2\" class=\"LEFT_MIDDLE\">");
|
||||
Lay_StartRoundFrameTable (NULL,0,NULL);
|
||||
|
@ -556,7 +556,7 @@ void Sta_AskSeeGblAccesses (void)
|
|||
Gbl.Usrs.Me.LoggedRole == Rol_SYS_ADM))
|
||||
{
|
||||
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\""
|
||||
" style=\"padding-bottom:10px;\">");
|
||||
" style=\"padding-bottom:15px;\">"); // Changed!
|
||||
Sta_PutFormToRequestAccessesCrs ();
|
||||
fprintf (Gbl.F.Out,"</div>");
|
||||
}
|
||||
|
@ -696,7 +696,7 @@ static void Sta_WriteSelectorAction (void)
|
|||
"%s:"
|
||||
"</td>"
|
||||
"<td class=\"LEFT_TOP\">"
|
||||
"<select name=\"StatAct\" id=\"StatAct\" style=\"width:300px;\">",
|
||||
"<select name=\"StatAct\" id=\"StatAct\" style=\"width:450px;\">", // Changed!
|
||||
The_ClassForm[Gbl.Prefs.Theme],Txt_Action);
|
||||
for (NumAction = (Act_Action_t) 0;
|
||||
NumAction < Act_NUM_ACTIONS;
|
||||
|
@ -1801,7 +1801,7 @@ static void Sta_ShowNumAccessesPerUsr (unsigned long NumRows,MYSQL_RES *mysql_re
|
|||
MaxPagesGenerated = NumPagesGenerated;
|
||||
if (MaxPagesGenerated > 0.0)
|
||||
{
|
||||
BarWidth = (unsigned) (((NumPagesGenerated * 300.0) / MaxPagesGenerated) + 0.5);
|
||||
BarWidth = (unsigned) (((NumPagesGenerated * 450.0) / MaxPagesGenerated) + 0.5); // Changed!
|
||||
if (BarWidth == 0)
|
||||
BarWidth = 1;
|
||||
}
|
||||
|
@ -1813,11 +1813,11 @@ static void Sta_ShowNumAccessesPerUsr (unsigned long NumRows,MYSQL_RES *mysql_re
|
|||
fprintf (Gbl.F.Out,"<img src=\"%s/%c1x14.gif\""
|
||||
" alt=\"\" title=\"\""
|
||||
" class=\"LEFT_TOP\""
|
||||
" style=\"width:%upx; height:14px;\" />"
|
||||
" style=\"width:%upx; height:21px;\" />" // Changed!
|
||||
" ",
|
||||
Gbl.Prefs.IconsURL,
|
||||
UsrDat.RoleInCurrentCrsDB == Rol_STUDENT ? 'c' :
|
||||
'v',
|
||||
'v',
|
||||
BarWidth);
|
||||
Str_WriteFloatNum (NumPagesGenerated);
|
||||
fprintf (Gbl.F.Out," </td>"
|
||||
|
@ -1923,7 +1923,7 @@ static void Sta_ShowNumAccessesPerDays (unsigned long NumRows,MYSQL_RES *mysql_r
|
|||
'c',
|
||||
D == NumDaysFromLastDateToCurrDate ? NumPagesGenerated :
|
||||
0.0,
|
||||
MaxPagesGenerated,TotalPagesGenerated,400);
|
||||
MaxPagesGenerated,TotalPagesGenerated,600); // Changed!
|
||||
|
||||
/* Decrease day */
|
||||
Dat_GetDateBefore (&Date,&Date);
|
||||
|
@ -1960,7 +1960,7 @@ static void Sta_ShowNumAccessesPerDays (unsigned long NumRows,MYSQL_RES *mysql_r
|
|||
/* Draw bar proportional to number of pages generated */
|
||||
Sta_DrawBarNumClicks (NumDayWeek == 6 ? 'r' :
|
||||
'c',
|
||||
0.0,MaxPagesGenerated,TotalPagesGenerated,400);
|
||||
0.0,MaxPagesGenerated,TotalPagesGenerated,600); // Changed!
|
||||
|
||||
/* Decrease day */
|
||||
Dat_GetDateBefore (&Date,&Date);
|
||||
|
@ -1971,8 +1971,8 @@ static void Sta_ShowNumAccessesPerDays (unsigned long NumRows,MYSQL_RES *mysql_r
|
|||
/************ Show graphic of number of pages generated per hour *************/
|
||||
/*****************************************************************************/
|
||||
|
||||
#define GRAPH_DISTRIBUTION_PER_HOUR_HOUR_WIDTH 20
|
||||
#define GRAPH_DISTRIBUTION_PER_HOUR_TOTAL_WIDTH (GRAPH_DISTRIBUTION_PER_HOUR_HOUR_WIDTH*24)
|
||||
#define GRAPH_DISTRIBUTION_PER_HOUR_HOUR_WIDTH 30 // Changed!
|
||||
#define GRAPH_DISTRIBUTION_PER_HOUR_TOTAL_WIDTH (GRAPH_DISTRIBUTION_PER_HOUR_HOUR_WIDTH*24) // Changed!
|
||||
|
||||
static void Sta_ShowDistrAccessesPerDaysAndHour (unsigned long NumRows,MYSQL_RES *mysql_res)
|
||||
{
|
||||
|
@ -2062,17 +2062,18 @@ static void Sta_ShowDistrAccessesPerDaysAndHour (unsigned long NumRows,MYSQL_RES
|
|||
"%s "
|
||||
"</th>"
|
||||
"<th colspan=\"24\" class=\"LEFT_TOP\""
|
||||
" style=\"width:%upx;\">"
|
||||
" style=\"width:%upx;\">" // Changed!
|
||||
"%s"
|
||||
"</th>"
|
||||
"</tr>",
|
||||
Txt_Date,
|
||||
Txt_Day,
|
||||
GRAPH_DISTRIBUTION_PER_HOUR_TOTAL_WIDTH,Txt_STAT_TYPE_COUNT_CAPS[Gbl.Stat.CountType]);
|
||||
GRAPH_DISTRIBUTION_PER_HOUR_TOTAL_WIDTH, // Changed!
|
||||
Txt_STAT_TYPE_COUNT_CAPS[Gbl.Stat.CountType]);
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td colspan=\"24\" class=\"LEFT_TOP\""
|
||||
" style=\"width:%upx;\">",
|
||||
GRAPH_DISTRIBUTION_PER_HOUR_TOTAL_WIDTH);
|
||||
" style=\"width:%upx;\">", // Changed!
|
||||
GRAPH_DISTRIBUTION_PER_HOUR_TOTAL_WIDTH); // Changed!
|
||||
Sta_DrawBarColors (SelectedColorType,MaxPagesGenerated);
|
||||
fprintf (Gbl.F.Out,"</td>"
|
||||
"</tr>"
|
||||
|
@ -2080,10 +2081,10 @@ static void Sta_ShowDistrAccessesPerDaysAndHour (unsigned long NumRows,MYSQL_RES
|
|||
for (Hour = 0;
|
||||
Hour < 24;
|
||||
Hour++)
|
||||
fprintf (Gbl.F.Out,"<td class=\"LOG CENTER_TOP\" style=\"width:%upx;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"LOG CENTER_TOP\" style=\"width:%upx;\">" // Changed!
|
||||
"%02uh"
|
||||
"</td>",
|
||||
GRAPH_DISTRIBUTION_PER_HOUR_HOUR_WIDTH,Hour);
|
||||
GRAPH_DISTRIBUTION_PER_HOUR_HOUR_WIDTH,Hour); // Changed!
|
||||
fprintf (Gbl.F.Out,"</tr>");
|
||||
|
||||
/***** Write rows beginning by the most recent day and ending by the oldest one *****/
|
||||
|
@ -2272,7 +2273,7 @@ static void Sta_DrawBarColors (Sta_ColorType_t ColorType,float MaxPagesGenerated
|
|||
fprintf (Gbl.F.Out,"<table style=\"width:100%%;\">"
|
||||
"<tr>"
|
||||
"<td colspan=\"%u\" class=\"LOG LEFT_BOTTOM\""
|
||||
" style=\"width:%upx;\">"
|
||||
" style=\"width:%upx;\">" // Changed!
|
||||
"0"
|
||||
"</td>",
|
||||
(GRAPH_DISTRIBUTION_PER_HOUR_TOTAL_WIDTH/5)/2,
|
||||
|
@ -2282,14 +2283,14 @@ static void Sta_DrawBarColors (Sta_ColorType_t ColorType,float MaxPagesGenerated
|
|||
Interval++)
|
||||
{
|
||||
fprintf (Gbl.F.Out,"<td colspan=\"%u\" class=\"LOG CENTER_BOTTOM\""
|
||||
" style=\"width:%upx;\">",
|
||||
" style=\"width:%upx;\">", // Changed!
|
||||
GRAPH_DISTRIBUTION_PER_HOUR_TOTAL_WIDTH/5,
|
||||
GRAPH_DISTRIBUTION_PER_HOUR_TOTAL_WIDTH/5);
|
||||
Str_WriteFloatNum ((float) Interval * MaxPagesGenerated / 5.0);
|
||||
fprintf (Gbl.F.Out,"</td>");
|
||||
}
|
||||
fprintf (Gbl.F.Out,"<td colspan=\"%u\" class=\"LOG RIGHT_BOTTOM\""
|
||||
" style=\"width:%upx;\">",
|
||||
" style=\"width:%upx;\">", // Changed!
|
||||
(GRAPH_DISTRIBUTION_PER_HOUR_TOTAL_WIDTH/5)/2,
|
||||
(GRAPH_DISTRIBUTION_PER_HOUR_TOTAL_WIDTH/5)/2);
|
||||
Str_WriteFloatNum (MaxPagesGenerated);
|
||||
|
@ -2303,7 +2304,7 @@ static void Sta_DrawBarColors (Sta_ColorType_t ColorType,float MaxPagesGenerated
|
|||
NumColor++)
|
||||
{
|
||||
Sta_SetColor (ColorType,(float) NumColor,(float) GRAPH_DISTRIBUTION_PER_HOUR_TOTAL_WIDTH,&R,&G,&B);
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\" style=\"width:1px;"
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\" style=\"width:1px;" // Changed!
|
||||
" background-color:#%02X%02X%02X;\">"
|
||||
"<img src=\"%s/tr1x14.gif\""
|
||||
" alt=\"\" title=\"\" />"
|
||||
|
@ -2329,7 +2330,7 @@ static void Sta_DrawAccessesPerHourForADay (Sta_ColorType_t ColorType,float NumP
|
|||
Sta_SetColor (ColorType,NumPagesGenerated[Hour],MaxPagesGenerated,&R,&G,&B);
|
||||
fprintf (Gbl.F.Out,"<td class=\"LOG LEFT_MIDDLE\" title=\"");
|
||||
Str_WriteFloatNum (NumPagesGenerated[Hour]);
|
||||
fprintf (Gbl.F.Out,"\" style=\"width:%upx;"
|
||||
fprintf (Gbl.F.Out,"\" style=\"width:%upx;" // Changed!
|
||||
" background-color:#%02X%02X%02X;\">"
|
||||
"</td>",
|
||||
GRAPH_DISTRIBUTION_PER_HOUR_HOUR_WIDTH,R,G,B);
|
||||
|
@ -2487,7 +2488,7 @@ static void Sta_ShowNumAccessesPerWeeks (unsigned long NumRows,MYSQL_RES *mysql_
|
|||
Sta_DrawBarNumClicks ('c',
|
||||
W == NumWeeksBetweenLastDateAndCurrentDate ? NumPagesGenerated :
|
||||
0.0,
|
||||
MaxPagesGenerated,TotalPagesGenerated,400);
|
||||
MaxPagesGenerated,TotalPagesGenerated,600); // Changed!
|
||||
|
||||
/* Decrement week */
|
||||
Dat_GetWeekBefore (&Date,&Date);
|
||||
|
@ -2510,7 +2511,7 @@ static void Sta_ShowNumAccessesPerWeeks (unsigned long NumRows,MYSQL_RES *mysql_
|
|||
Date.Week,Date.Year % 100);
|
||||
|
||||
/* Draw bar proportional to number of pages generated */
|
||||
Sta_DrawBarNumClicks ('c',0.0,MaxPagesGenerated,TotalPagesGenerated,400);
|
||||
Sta_DrawBarNumClicks ('c',0.0,MaxPagesGenerated,TotalPagesGenerated,600); // Changed!
|
||||
|
||||
/* Decrement week */
|
||||
Dat_GetWeekBefore (&Date,&Date);
|
||||
|
@ -2592,7 +2593,7 @@ static void Sta_ShowNumAccessesPerMonths (unsigned long NumRows,MYSQL_RES *mysql
|
|||
Sta_DrawBarNumClicks ('c',
|
||||
M == NumMesesEntreLastDateYAct ? NumPagesGenerated :
|
||||
0.0,
|
||||
MaxPagesGenerated,TotalPagesGenerated,400);
|
||||
MaxPagesGenerated,TotalPagesGenerated,600); // Changed!
|
||||
|
||||
/* Decrease month */
|
||||
Dat_GetMonthBefore (&Date,&Date);
|
||||
|
@ -2614,7 +2615,7 @@ static void Sta_ShowNumAccessesPerMonths (unsigned long NumRows,MYSQL_RES *mysql
|
|||
Date.Month,Date.Year % 100);
|
||||
|
||||
/* Draw bar proportional to number of pages generated */
|
||||
Sta_DrawBarNumClicks ('c',0.0,MaxPagesGenerated,TotalPagesGenerated,400);
|
||||
Sta_DrawBarNumClicks ('c',0.0,MaxPagesGenerated,TotalPagesGenerated,600); // Changed!
|
||||
|
||||
/* Decrease month */
|
||||
Dat_GetMonthBefore (&Date,&Date);
|
||||
|
@ -2625,7 +2626,7 @@ static void Sta_ShowNumAccessesPerMonths (unsigned long NumRows,MYSQL_RES *mysql
|
|||
/**************** Show graphic of number of pages generated per hour ***************/
|
||||
/*****************************************************************************/
|
||||
|
||||
#define DIGIT_WIDTH 5
|
||||
#define DIGIT_WIDTH 7 // Changed!
|
||||
|
||||
static void Sta_ShowNumAccessesPerHour (unsigned long NumRows,MYSQL_RES *mysql_res)
|
||||
{
|
||||
|
@ -2656,7 +2657,7 @@ static void Sta_ShowNumAccessesPerHour (unsigned long NumRows,MYSQL_RES *mysql_r
|
|||
/* Maximum number of dígits. If less than 4, set it to 4 to ensure a minimum width */
|
||||
NumDigits = (MaxPagesGenerated >= 1000) ? (unsigned) floor (log10 ((double) MaxPagesGenerated)) + 1 :
|
||||
4;
|
||||
ColumnWidth = NumDigits * DIGIT_WIDTH + 2;
|
||||
ColumnWidth = NumDigits * DIGIT_WIDTH + 3; // Changed!
|
||||
|
||||
/***** Draw the graphic *****/
|
||||
mysql_data_seek (mysql_res, 0);
|
||||
|
@ -2674,15 +2675,15 @@ static void Sta_ShowNumAccessesPerHour (unsigned long NumRows,MYSQL_RES *mysql_r
|
|||
for (H = Hour;
|
||||
H < ReadHour;
|
||||
H++, Hour++)
|
||||
Sta_WriteAccessHour (H,0.0,MaxPagesGenerated,TotalPagesGenerated,ColumnWidth);
|
||||
Sta_WriteAccessHour (ReadHour,NumPagesGenerated,MaxPagesGenerated,TotalPagesGenerated,ColumnWidth);
|
||||
Sta_WriteAccessHour (H,0.0,MaxPagesGenerated,TotalPagesGenerated,ColumnWidth); // Changed!
|
||||
Sta_WriteAccessHour (ReadHour,NumPagesGenerated,MaxPagesGenerated,TotalPagesGenerated,ColumnWidth); // Changed!
|
||||
Hour++;
|
||||
}
|
||||
else
|
||||
for (H = ReadHour + 1;
|
||||
H < 24;
|
||||
H++, Hour++)
|
||||
Sta_WriteAccessHour (H,0.0,MaxPagesGenerated,TotalPagesGenerated,ColumnWidth);
|
||||
Sta_WriteAccessHour (H,0.0,MaxPagesGenerated,TotalPagesGenerated,ColumnWidth); // Changed!
|
||||
}
|
||||
fprintf (Gbl.F.Out,"</tr>");
|
||||
}
|
||||
|
@ -2694,10 +2695,10 @@ static void Sta_ShowNumAccessesPerHour (unsigned long NumRows,MYSQL_RES *mysql_r
|
|||
|
||||
static void Sta_WriteAccessHour (unsigned Hour,float NumPagesGenerated,float MaxPagesGenerated,float TotalPagesGenerated,unsigned ColumnWidth)
|
||||
{
|
||||
unsigned AltoBarra;
|
||||
unsigned BarHeight;
|
||||
|
||||
fprintf (Gbl.F.Out,"<td class=\"DAT_SMALL CENTER_BOTTOM\""
|
||||
" style=\"width:%upx;\">",
|
||||
" style=\"width:%upx;\">", // Changed!
|
||||
ColumnWidth);
|
||||
|
||||
/* Draw bar with a height porportional to the number of clicks */
|
||||
|
@ -2708,13 +2709,13 @@ static void Sta_WriteAccessHour (unsigned Hour,float NumPagesGenerated,float Max
|
|||
TotalPagesGenerated) + 0.5));
|
||||
Str_WriteFloatNum (NumPagesGenerated);
|
||||
fprintf (Gbl.F.Out,"<br />");
|
||||
AltoBarra = (unsigned) (((NumPagesGenerated * 400.0) / MaxPagesGenerated) + 0.5);
|
||||
if (AltoBarra == 0)
|
||||
AltoBarra = 1;
|
||||
BarHeight = (unsigned) (((NumPagesGenerated * 600.0) / MaxPagesGenerated) + 0.5); // Changed!
|
||||
if (BarHeight == 0)
|
||||
BarHeight = 1;
|
||||
fprintf (Gbl.F.Out,"<img src=\"%s/c8x1.gif\""
|
||||
" alt=\"\" title=\"\""
|
||||
" style=\"width:8px; height:%upx;\" />",
|
||||
Gbl.Prefs.IconsURL,AltoBarra);
|
||||
" style=\"width:12px; height:%upx;\" />", // Changed!
|
||||
Gbl.Prefs.IconsURL,BarHeight);
|
||||
}
|
||||
else
|
||||
fprintf (Gbl.F.Out,"0%%<br />0");
|
||||
|
@ -2728,7 +2729,7 @@ static void Sta_WriteAccessHour (unsigned Hour,float NumPagesGenerated,float Max
|
|||
/*****************************************************************************/
|
||||
|
||||
#define NUM_MINUTES_PER_DAY (60*24) // 1440 minutes in a day
|
||||
#define WIDTH_SEMIDIVISION_GRAPHIC 24
|
||||
#define WIDTH_SEMIDIVISION_GRAPHIC 36 // Changed!
|
||||
#define NUM_DIVISIONS_X 10
|
||||
|
||||
static void Sta_ShowAverageAccessesPerMinute (unsigned long NumRows,MYSQL_RES *mysql_res)
|
||||
|
@ -2804,10 +2805,10 @@ static void Sta_ShowAverageAccessesPerMinute (unsigned long NumRows,MYSQL_RES *m
|
|||
/***** X axis *****/
|
||||
/* First division (left) */
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">"
|
||||
"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">" // Changed!
|
||||
"<img src=\"%s/ejexizq24x1.gif\""
|
||||
" alt=\"\" title=\"\""
|
||||
" style=\"display:block; width:%upx; height:1px;\" />"
|
||||
" style=\"display:block; width:%upx; height:1px;\" />" // Changed!
|
||||
"</td>",
|
||||
WIDTH_SEMIDIVISION_GRAPHIC,Gbl.Prefs.IconsURL,
|
||||
WIDTH_SEMIDIVISION_GRAPHIC);
|
||||
|
@ -2815,19 +2816,19 @@ static void Sta_ShowAverageAccessesPerMinute (unsigned long NumRows,MYSQL_RES *m
|
|||
for (i = 0;
|
||||
i < NUM_DIVISIONS_X*2;
|
||||
i++)
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">" // Changed!
|
||||
"<img src=\"%s/ejex24x1.gif\""
|
||||
" alt=\"\" title=\"\""
|
||||
" style=\"display:block;"
|
||||
" width:%upx; height:1px;\" />"
|
||||
" width:%upx; height:1px;\" />" // Changed!
|
||||
"</td>",
|
||||
WIDTH_SEMIDIVISION_GRAPHIC,Gbl.Prefs.IconsURL,
|
||||
WIDTH_SEMIDIVISION_GRAPHIC);
|
||||
/* Last division (right) */
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">" // Changed!
|
||||
"<img src=\"%s/tr24x1.gif\""
|
||||
" alt=\"\" title=\"\""
|
||||
" style=\"display:block; width:%upx; height:1px;\" />"
|
||||
" style=\"display:block; width:%upx; height:1px;\" />" // Changed!
|
||||
"</td>"
|
||||
"</tr>",
|
||||
WIDTH_SEMIDIVISION_GRAPHIC,Gbl.Prefs.IconsURL,
|
||||
|
@ -2842,7 +2843,7 @@ static void Sta_ShowAverageAccessesPerMinute (unsigned long NumRows,MYSQL_RES *m
|
|||
/****** Write labels of the X axis in the graphic of clicks per minute *******/
|
||||
/*****************************************************************************/
|
||||
|
||||
#define WIDTH_DIVISION_GRAPHIC (WIDTH_SEMIDIVISION_GRAPHIC*2) // 48
|
||||
#define WIDTH_DIVISION_GRAPHIC (WIDTH_SEMIDIVISION_GRAPHIC*2) // 72 // Changed!
|
||||
|
||||
static void Sta_WriteLabelsXAxisAccMin (float IncX,const char *Format)
|
||||
{
|
||||
|
@ -2855,7 +2856,7 @@ static void Sta_WriteLabelsXAxisAccMin (float IncX,const char *Format)
|
|||
i++, NumX += IncX)
|
||||
{
|
||||
fprintf (Gbl.F.Out,"<td colspan=\"2\" class=\"LOG CENTER_BOTTOM\""
|
||||
" style=\"width:%upx;\">",
|
||||
" style=\"width:%upx;\">", // Changed!
|
||||
WIDTH_DIVISION_GRAPHIC);
|
||||
fprintf (Gbl.F.Out,Format,NumX);
|
||||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
@ -2867,7 +2868,7 @@ static void Sta_WriteLabelsXAxisAccMin (float IncX,const char *Format)
|
|||
/***** Write a row of the graphic with number of clicks in every minute ******/
|
||||
/*****************************************************************************/
|
||||
|
||||
#define WIDTH_GRAPHIC (WIDTH_DIVISION_GRAPHIC*NUM_DIVISIONS_X) // 48*10=480
|
||||
#define WIDTH_GRAPHIC (WIDTH_DIVISION_GRAPHIC*NUM_DIVISIONS_X) // 72*10=720 // Changed!
|
||||
|
||||
static void Sta_WriteAccessMinute (unsigned Minute,float NumPagesGenerated,float MaxX)
|
||||
{
|
||||
|
@ -2880,7 +2881,7 @@ static void Sta_WriteAccessMinute (unsigned Minute,float NumPagesGenerated,float
|
|||
if (!Minute)
|
||||
// If minute 0
|
||||
fprintf (Gbl.F.Out,"<td rowspan=\"30\" class=\"LOG LEFT_TOP\""
|
||||
" style=\"width:%upx;"
|
||||
" style=\"width:%upx;" // Changed!
|
||||
" background-image:url('%s/ejey24x30.gif');"
|
||||
" background-repeat:repeat;\">"
|
||||
"00h"
|
||||
|
@ -2889,7 +2890,7 @@ static void Sta_WriteAccessMinute (unsigned Minute,float NumPagesGenerated,float
|
|||
else if (Minute == (NUM_MINUTES_PER_DAY - 30))
|
||||
// If 23:30
|
||||
fprintf (Gbl.F.Out,"<td rowspan=\"30\" class=\"LOG LEFT_BOTTOM\""
|
||||
" style=\"width:%upx;"
|
||||
" style=\"width:%upx;" // Changed!
|
||||
" background-image:url('%s/ejey24x30.gif');"
|
||||
" background-repeat:repeat;\">"
|
||||
"24h"
|
||||
|
@ -2898,7 +2899,7 @@ static void Sta_WriteAccessMinute (unsigned Minute,float NumPagesGenerated,float
|
|||
else if (!(Minute % 30) && (Minute % 60))
|
||||
// If minute is multiple of 30 but not of 60 (i.e.: 30, 90, 150...)
|
||||
fprintf (Gbl.F.Out,"<td rowspan=\"60\" class=\"LOG LEFT_MIDDLE\""
|
||||
" style=\"width:%upx;"
|
||||
" style=\"width:%upx;" // Changed!
|
||||
" background-image:url('%s/ejey24x60.gif');"
|
||||
" background-repeat:repeat;\">"
|
||||
"%02uh"
|
||||
|
@ -2907,7 +2908,7 @@ static void Sta_WriteAccessMinute (unsigned Minute,float NumPagesGenerated,float
|
|||
|
||||
/***** Start of cell for the graphic *****/
|
||||
fprintf (Gbl.F.Out,"<td colspan=\"%u\" class=\"LEFT_BOTTOM\""
|
||||
" style=\"width:%upx; height:1px;"
|
||||
" style=\"width:%upx; height:1px;" // Changed!
|
||||
" background-image:url('%s/malla%c48x1.gif');"
|
||||
" background-repeat:repeat;\">",
|
||||
NUM_DIVISIONS_X*2,WIDTH_GRAPHIC,Gbl.Prefs.IconsURL,
|
||||
|
@ -2916,11 +2917,11 @@ static void Sta_WriteAccessMinute (unsigned Minute,float NumPagesGenerated,float
|
|||
|
||||
/***** Draw bar with anchura proporcional al number of clicks *****/
|
||||
if (NumPagesGenerated != 0.0)
|
||||
if ((BarWidth = (unsigned) (((NumPagesGenerated * (float) WIDTH_GRAPHIC / MaxX)) + 0.5)) != 0)
|
||||
if ((BarWidth = (unsigned) (((NumPagesGenerated * (float) WIDTH_GRAPHIC / MaxX)) + 0.5)) != 0) // Changed!
|
||||
fprintf (Gbl.F.Out,"<img src=\"%s/b%c1x1.gif\""
|
||||
" alt=\"\" title=\"\""
|
||||
" style=\"display:block;"
|
||||
" width:%upx; height:1px;\" />",
|
||||
" width:%upx; height:1px;\" />", // Changed!
|
||||
Gbl.Prefs.IconsURL,
|
||||
(Minute % 60) == 0 ? 'g' :
|
||||
'b',
|
||||
|
@ -2998,7 +2999,7 @@ static void Sta_ShowNumAccessesPerAction (unsigned long NumRows,MYSQL_RES *mysql
|
|||
|
||||
/* Draw bar proportional to number of pages generated */
|
||||
NumPagesGenerated = Str_GetFloatNumFromStr (row[1]);
|
||||
Sta_DrawBarNumClicks ('c',NumPagesGenerated,MaxPagesGenerated,TotalPagesGenerated,400);
|
||||
Sta_DrawBarNumClicks ('c',NumPagesGenerated,MaxPagesGenerated,TotalPagesGenerated,600); // Changed!
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3064,7 +3065,7 @@ static void Sta_ShowNumAccessesPerPlugin (unsigned long NumRows,MYSQL_RES *mysql
|
|||
|
||||
/* Draw bar proportional to number of pages generated */
|
||||
NumPagesGenerated = Str_GetFloatNumFromStr (row[1]);
|
||||
Sta_DrawBarNumClicks ('c',NumPagesGenerated,MaxPagesGenerated,TotalPagesGenerated,400);
|
||||
Sta_DrawBarNumClicks ('c',NumPagesGenerated,MaxPagesGenerated,TotalPagesGenerated,600); // Changed!
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3128,7 +3129,7 @@ static void Sta_ShowNumAccessesPerWSFunction (unsigned long NumRows,MYSQL_RES *m
|
|||
|
||||
/* Draw bar proportional to number of pages generated */
|
||||
NumPagesGenerated = Str_GetFloatNumFromStr (row[1]);
|
||||
Sta_DrawBarNumClicks ('c',NumPagesGenerated,MaxPagesGenerated,TotalPagesGenerated,400);
|
||||
Sta_DrawBarNumClicks ('c',NumPagesGenerated,MaxPagesGenerated,TotalPagesGenerated,600); // Changed!
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3191,7 +3192,7 @@ static void Sta_ShowNumAccessesPerBanner (unsigned long NumRows,MYSQL_RES *mysql
|
|||
"<img src=\"%s/%s/%s\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
" class=\"BANNER_SMALL\""
|
||||
" style=\"margin:0 8px 4px 0;\" />"
|
||||
" style=\"margin:0 12px 6px 0;\" />" // Changed!
|
||||
"</a>",
|
||||
Ban.WWW,
|
||||
Ban.FullName,
|
||||
|
@ -3202,7 +3203,7 @@ static void Sta_ShowNumAccessesPerBanner (unsigned long NumRows,MYSQL_RES *mysql
|
|||
|
||||
/* Draw bar proportional to number of clicks */
|
||||
NumClicks = Str_GetFloatNumFromStr (row[1]);
|
||||
Sta_DrawBarNumClicks ('c',NumClicks,MaxClicks,TotalClicks,400);
|
||||
Sta_DrawBarNumClicks ('c',NumClicks,MaxClicks,TotalClicks,600); // Changed!
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3278,7 +3279,7 @@ static void Sta_ShowNumAccessesPerDegree (unsigned long NumRows,MYSQL_RES *mysql
|
|||
|
||||
/* Draw bar proportional to number of pages generated */
|
||||
NumPagesGenerated = Str_GetFloatNumFromStr (row[1]);
|
||||
Sta_DrawBarNumClicks ('c',NumPagesGenerated,MaxPagesGenerated,TotalPagesGenerated,300);
|
||||
Sta_DrawBarNumClicks ('c',NumPagesGenerated,MaxPagesGenerated,TotalPagesGenerated,450); // Changed!
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3394,7 +3395,7 @@ static void Sta_ShowNumAccessesPerCourse (unsigned long NumRows,MYSQL_RES *mysql
|
|||
|
||||
/* Draw bar proportional to number of pages generated */
|
||||
NumPagesGenerated = Str_GetFloatNumFromStr (row[1]);
|
||||
Sta_DrawBarNumClicks ('c',NumPagesGenerated,MaxPagesGenerated,TotalPagesGenerated,300);
|
||||
Sta_DrawBarNumClicks ('c',NumPagesGenerated,MaxPagesGenerated,TotalPagesGenerated,450); // Changed!
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3446,7 +3447,7 @@ static void Sta_DrawBarNumClicks (char Color,float NumPagesGenerated,float MaxPa
|
|||
fprintf (Gbl.F.Out,"<img src=\"%s/%c1x14.gif\""
|
||||
" alt=\"\" title=\"\""
|
||||
" class=\"LEFT_TOP\""
|
||||
" style=\"width:%upx; height:14px;\" />"
|
||||
" style=\"width:%upx; height:21px;\" />" // Changed!
|
||||
" ",
|
||||
Gbl.Prefs.IconsURL,Color,BarWidth);
|
||||
|
||||
|
@ -3523,7 +3524,7 @@ void Sta_ReqUseOfPlatform (void)
|
|||
|
||||
/***** Start form *****/
|
||||
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\""
|
||||
" style=\"padding-bottom:10px;\">");
|
||||
" style=\"padding-bottom:15px;\">"); // Changed!
|
||||
Act_FormStart (ActSeeUseGbl);
|
||||
|
||||
/***** Compute stats for anywhere, degree or course? *****/
|
||||
|
@ -6712,7 +6713,7 @@ static void Sta_GetAndShowForumStats (void)
|
|||
|
||||
/***** Write table heading *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<th class=\"LEFT_TOP\" style=\"width:16px;\">"
|
||||
"<th class=\"LEFT_TOP\" style=\"width:24px;\">" // Changed!
|
||||
"<img src=\"%s/forum16x16.gif\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
" class=\"ICON16x16\" />"
|
||||
|
@ -6938,7 +6939,7 @@ static void Sta_WriteForumTitleAndStats (For_ForumType_t ForumType,
|
|||
|
||||
/***** Write forum name and stats *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"LEFT_TOP\" style=\"width:16px;\">"
|
||||
"<td class=\"LEFT_TOP\" style=\"width:24px;\">" // Changed!
|
||||
"<img src=\"%s/%s\""
|
||||
" alt=\"%s%s\" title=\"%s%s\""
|
||||
" class=\"ICON16x16\" />"
|
||||
|
@ -6997,7 +6998,7 @@ static void Sta_WriteForumTotalStats (struct Sta_StatsForum *StatsForum)
|
|||
|
||||
/***** Write forum name and stats *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"DAT_N_LINE_TOP\" style=\"width:16px;\">"
|
||||
"<td class=\"DAT_N_LINE_TOP\" style=\"width:24px;\">" // Changed!
|
||||
"</td>"
|
||||
"<td class=\"DAT_N_LINE_TOP LEFT_MIDDLE\">"
|
||||
"%s"
|
||||
|
@ -7662,7 +7663,7 @@ static void Sta_GetAndShowNumUsrsPerTheme (void)
|
|||
"<td class=\"CENTER_MIDDLE\">"
|
||||
"<img src=\"%s/%s/%s/theme_32x20.gif\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
" style=\"width:32px; height:20px;\" />"
|
||||
" style=\"width:48px; height:30px;\" />" // Changed!
|
||||
"</td>"
|
||||
"<td class=\"DAT RIGHT_MIDDLE\">"
|
||||
"%u"
|
||||
|
@ -8070,7 +8071,7 @@ static void Sta_GetAndShowNumUsrsPerSideColumns (void)
|
|||
"<td class=\"CENTER_MIDDLE\">"
|
||||
"<img src=\"%s/layout%u%u_32x20.gif\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
" style=\"width:32px; height:20px;\" />"
|
||||
" style=\"width:48px; height:30px;\" />" // Changed!
|
||||
"</td>"
|
||||
"<td class=\"DAT RIGHT_MIDDLE\">"
|
||||
"%u"
|
||||
|
|
|
@ -3164,7 +3164,7 @@ static void Svy_WriteAnswersOfAQst (struct Survey *Svy,struct SurveyQuestion *Sv
|
|||
}
|
||||
|
||||
/* Write the number of option */
|
||||
fprintf (Gbl.F.Out,"<td class=\"DAT LEFT_TOP\" style=\"width:40px;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"DAT LEFT_TOP\" style=\"width:60px;\">" // Changed!
|
||||
"%u)"
|
||||
"</td>",
|
||||
NumAns + 1);
|
||||
|
@ -3194,7 +3194,7 @@ static void Svy_WriteAnswersOfAQst (struct Survey *Svy,struct SurveyQuestion *Sv
|
|||
/***************** Draw a bar with the percentage of answers *****************/
|
||||
/*****************************************************************************/
|
||||
|
||||
#define Svy_MAX_BAR_WIDTH 100
|
||||
#define Svy_MAX_BAR_WIDTH 150 // Changed!
|
||||
|
||||
static void Svy_DrawBarNumUsrs (unsigned NumUsrs,unsigned MaxUsrs)
|
||||
{
|
||||
|
@ -3212,8 +3212,8 @@ static void Svy_DrawBarNumUsrs (unsigned NumUsrs,unsigned MaxUsrs)
|
|||
Txt_of_PART_OF_A_TOTAL,MaxUsrs);
|
||||
|
||||
/***** Draw bar with a with proportional to the number of clicks *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"DAT LEFT_TOP\" style=\"width:%upx;\">",
|
||||
Svy_MAX_BAR_WIDTH + 100);
|
||||
fprintf (Gbl.F.Out,"<td class=\"DAT LEFT_TOP\" style=\"width:%upx;\">", // Changed!
|
||||
Svy_MAX_BAR_WIDTH + 150);
|
||||
if (NumUsrs && MaxUsrs)
|
||||
BarWidth = (unsigned) ((((float) NumUsrs * (float) Svy_MAX_BAR_WIDTH) /
|
||||
(float) MaxUsrs) + 0.5);
|
||||
|
@ -3222,7 +3222,7 @@ static void Svy_DrawBarNumUsrs (unsigned NumUsrs,unsigned MaxUsrs)
|
|||
fprintf (Gbl.F.Out,"<img src=\"%s/c1x16.gif\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
" class=\"LEFT_TOP\""
|
||||
" style=\"width:%upx; height:16px;\" />"
|
||||
" style=\"width:%upx; height:24px;\" />" // Changed!
|
||||
" ",
|
||||
Gbl.Prefs.IconsURL,
|
||||
Gbl.Title,
|
||||
|
|
|
@ -55,7 +55,7 @@ extern struct Globals Gbl;
|
|||
#define Syl_MAX_LENGTH_TEXT_ITEM 1024
|
||||
#define Syl_MAX_BYTES_TEXT_ITEM (Syl_MAX_LENGTH_TEXT_ITEM*Str_MAX_CHARACTER)
|
||||
|
||||
#define Syl_WIDTH_NUM_SYLLABUS 16
|
||||
#define Syl_WIDTH_NUM_SYLLABUS 24 // Changed!
|
||||
|
||||
static const char *StyleSyllabus[1+Syl_MAX_LEVELS_SYLLABUS] =
|
||||
{
|
||||
|
@ -136,7 +136,7 @@ void Syl_PutFormWhichSyllabus (void)
|
|||
/***** Form to select which forums I want to see
|
||||
(all my forums or only the forums of current institution/degree/course) *****/
|
||||
Act_FormStart (ActSeeSyl);
|
||||
fprintf (Gbl.F.Out,"<div style=\"margin:10px 0;\">"
|
||||
fprintf (Gbl.F.Out,"<div style=\"margin:15px 0;\">" // Changed!
|
||||
"<ul class=\"LIST_CENTER\">");
|
||||
|
||||
for (WhichSyllabus = (Syl_WhichSyllabus_t) 0;
|
||||
|
@ -696,7 +696,7 @@ static void Syl_ShowRowSyllabus (Inf_InfoType_t InfoType,unsigned NumItem,int Le
|
|||
|
||||
/***** Code of the item *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"%s RIGHT_TOP COLOR%u\""
|
||||
" style=\"width:%dpx;\">",
|
||||
" style=\"width:%dpx;\">", // Changed!
|
||||
StyleSyllabus[Level],Gbl.RowEvenOdd,
|
||||
Level * Syl_WIDTH_NUM_SYLLABUS);
|
||||
if (Level == 1)
|
||||
|
@ -840,7 +840,7 @@ static void Syl_WriteSyllabusIntoHTMLTmpFile (Inf_InfoType_t InfoType,FILE *File
|
|||
LstItemsSyllabus.Lst[NumItem].Level - 1);
|
||||
|
||||
/***** Code of the item *****/
|
||||
fprintf (FileHTMLTmp,"<td class=\"%s RIGHT_TOP\" style=\"width:%dpx;\">",
|
||||
fprintf (FileHTMLTmp,"<td class=\"%s RIGHT_TOP\" style=\"width:%dpx;\">", // Changed!
|
||||
StyleSyllabus[LstItemsSyllabus.Lst[NumItem].Level],
|
||||
LstItemsSyllabus.Lst[NumItem].Level * Syl_WIDTH_NUM_SYLLABUS);
|
||||
if (LstItemsSyllabus.Lst[NumItem].Level == 1)
|
||||
|
@ -886,13 +886,13 @@ static void Syl_PutFormItemSyllabus (Inf_InfoType_t InfoType,bool NewItem,unsign
|
|||
|
||||
/***** Write the code of the item *****/
|
||||
if (NewItem) // If the item is new (not stored in the file) ==> it has not a number
|
||||
fprintf (Gbl.F.Out,"<td class=\"COLOR%u\" style=\"width:%dpx;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"COLOR%u\" style=\"width:%dpx;\">" // Changed!
|
||||
"</td>",
|
||||
Gbl.RowEvenOdd,Level * Syl_WIDTH_NUM_SYLLABUS);
|
||||
else
|
||||
{
|
||||
fprintf (Gbl.F.Out,"<td class=\"%s LEFT_MIDDLE COLOR%u\""
|
||||
" style=\"width:%dpx;\">",
|
||||
" style=\"width:%dpx;\">", // Changed!
|
||||
StyleSyllabus[Level],Gbl.RowEvenOdd,
|
||||
Level * Syl_WIDTH_NUM_SYLLABUS);
|
||||
if (Level == 1)
|
||||
|
|
10
swad_tab.c
10
swad_tab.c
|
@ -91,7 +91,7 @@ void Tab_DrawTabs (void)
|
|||
ColspanCentralPart = 2;
|
||||
}
|
||||
fprintf (Gbl.F.Out,"<td colspan=\"%u\" class=\"CENTER_TOP\""
|
||||
" style=\"height:56px;"
|
||||
" style=\"height:84px;" // Changed!
|
||||
" background-image:url('%s/head_base_background_1x56.gif');"
|
||||
" background-repeat:repeat-x;\">"
|
||||
"<div id=\"tabs_container\">",
|
||||
|
@ -164,7 +164,7 @@ static void Tab_DrawTabsDeskTop (void)
|
|||
The_ClassTabOff[Gbl.Prefs.Theme]);
|
||||
fprintf (Gbl.F.Out,"<img src=\"%s/%s/%s64x64.gif\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
" class=\"ICON32x32\" style=\"margin:4px;\" />"
|
||||
" class=\"ICON32x32\" style=\"margin:6px;\" />" // Changed!
|
||||
"<div>%s</div>"
|
||||
"</a>",
|
||||
Gbl.Prefs.PathIconSet,Cfg_ICON_ACTION,
|
||||
|
@ -178,7 +178,7 @@ static void Tab_DrawTabsDeskTop (void)
|
|||
fprintf (Gbl.F.Out,"<div class=\"ICON_HIDDEN\">"
|
||||
"<img src=\"%s/%s/%s64x64.gif\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
" class=\"ICON32x32\" style=\"margin:4px;\" />"
|
||||
" class=\"ICON32x32\" style=\"margin:6px;\" />" // Changed!
|
||||
"<div class=\"%s\">%s</div>",
|
||||
Gbl.Prefs.PathIconSet,Cfg_ICON_ACTION,
|
||||
Tab_TabIcons[NumTab],
|
||||
|
@ -233,7 +233,7 @@ void Tab_DrawTabsMobile (void)
|
|||
Act_LinkFormSubmit (Txt_TABS_FULL_TXT[NumTab],The_ClassMenuOff[Gbl.Prefs.Theme]);
|
||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/%s/%s64x64.gif\""
|
||||
" alt=\"%s\" title=\"%s\" class=\"ICON64x64\""
|
||||
" style=\"margin:4px;\" />"
|
||||
" style=\"margin:6px;\" />" // Changed!
|
||||
"<div>%s</div>"
|
||||
"</a>",
|
||||
Gbl.Prefs.PathIconSet,Cfg_ICON_ACTION,
|
||||
|
@ -248,7 +248,7 @@ void Tab_DrawTabsMobile (void)
|
|||
fprintf (Gbl.F.Out,"<div class=\"ICON_HIDDEN\">"
|
||||
"<img src=\"%s/%s/%s64x64.gif\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
" class=\"ICON64x64\" style=\"margin:4px;\" />"
|
||||
" class=\"ICON64x64\" style=\"margin:6px;\" />" // Changed!
|
||||
"<div class=\"%s\">%s</div>"
|
||||
"</div>",
|
||||
Gbl.Prefs.PathIconSet,
|
||||
|
|
|
@ -1614,7 +1614,7 @@ static void Tst_ShowFormConfigTst (void)
|
|||
"%s:"
|
||||
"</td>"
|
||||
"<td class=\"LEFT_TOP\">"
|
||||
"<table style=\"border-spacing:2px;\">",
|
||||
"<table style=\"border-spacing:3px;\">", // Changed!
|
||||
The_ClassForm[Gbl.Prefs.Theme],
|
||||
Txt_No_of_questions);
|
||||
|
||||
|
@ -4204,7 +4204,7 @@ static void Tst_PutFormEditOneQst (char *Stem,char *Feedback)
|
|||
/***** Write the tags already existing in a selector *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\">"
|
||||
"<select id=\"SelDesc%u\" name=\"SelDesc%u\""
|
||||
" style=\"width:230px;\" onchange=\"changeTxtTag('%u')\">",
|
||||
" style=\"width:345px;\" onchange=\"changeTxtTag('%u')\">", // Changed!
|
||||
NumTag,NumTag,NumTag);
|
||||
fprintf (Gbl.F.Out,"<option value=\"\"> </option>");
|
||||
mysql_data_seek (mysql_res, 0);
|
||||
|
@ -5914,7 +5914,7 @@ void Tst_SelUsrsToSeeUsrsTstExams (void)
|
|||
Act_FormStart (ActSeeUsrTstExa);
|
||||
Grp_PutParamsCodGrps ();
|
||||
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\">"
|
||||
"<table style=\"margin:0 auto; border-spacing:4px;\">"
|
||||
"<table style=\"margin:0 auto; border-spacing:6px;\">" // Changed!
|
||||
"<tr>"
|
||||
"<td colspan=\"2\" class=\"LEFT_MIDDLE\">");
|
||||
|
||||
|
|
|
@ -247,7 +247,7 @@ void The_PutIconsToSelectTheme (void)
|
|||
fprintf (Gbl.F.Out,"<input type=\"image\""
|
||||
" src=\"%s/%s/%s/theme_32x20.gif\" alt=\"%s\""
|
||||
" title=\"%s\" style=\"display:block;"
|
||||
" width:32px; height:20px; margin:0 auto;\" />",
|
||||
" width:48px; height:30px; margin:0 auto;\" />", // Changed!
|
||||
Gbl.Prefs.IconsURL,
|
||||
Cfg_ICON_FOLDER_THEMES,
|
||||
The_ThemeId[Theme],
|
||||
|
|
|
@ -749,7 +749,7 @@ static void TT_DrawTimeTable (void)
|
|||
}
|
||||
|
||||
/***** Table start *****/
|
||||
fprintf (Gbl.F.Out,"<table style=\"min-width:560px; margin:0 auto;\">");
|
||||
fprintf (Gbl.F.Out,"<table style=\"min-width:840px; margin:0 auto;\">"); // Changed!
|
||||
|
||||
/***** Top row used for column adjustement *****/
|
||||
TT_TimeTableDrawAdjustRow ();
|
||||
|
@ -1096,7 +1096,7 @@ static void TT_TimeTableDrawCell (unsigned Day,unsigned Hour,unsigned Column,uns
|
|||
if (HourType == TT_FREE_HOUR) // If cell is empty...
|
||||
fprintf (Gbl.F.Out,"<img src=\"%s/tr1x16.gif\""
|
||||
" alt=\"\" title=\"\""
|
||||
" style=\"width:1px; height:16px;\" />",
|
||||
" style=\"width:1px; height:24px;\" />", // Changed!
|
||||
Gbl.Prefs.IconsURL);
|
||||
else
|
||||
{
|
||||
|
@ -1149,7 +1149,7 @@ static void TT_TimeTableDrawCell (unsigned Day,unsigned Hour,unsigned Column,uns
|
|||
fprintf (Gbl.F.Out,"<span class=\"DAT_SMALL\">");
|
||||
|
||||
/***** Class type *****/
|
||||
fprintf (Gbl.F.Out,"<select name=\"ModTTCellType\" style=\"width:54px;\""
|
||||
fprintf (Gbl.F.Out,"<select name=\"ModTTCellType\" style=\"width:81px;\"" // Changed!
|
||||
" onchange=\"javascript:document.getElementById('%s').submit();\">",
|
||||
Gbl.FormId);
|
||||
for (CT = (TT_ClassType_t) 0;
|
||||
|
@ -1187,7 +1187,7 @@ static void TT_TimeTableDrawCell (unsigned Day,unsigned Hour,unsigned Column,uns
|
|||
else
|
||||
{
|
||||
/***** Class duration *****/
|
||||
fprintf (Gbl.F.Out,"<select name=\"ModTTDur\" style=\"width:46px;\""
|
||||
fprintf (Gbl.F.Out,"<select name=\"ModTTDur\" style=\"width:69px;\"" // Changed!
|
||||
" onchange=\"javascript:document.getElementById('%s').submit();\">",
|
||||
Gbl.FormId);
|
||||
for (H = Hour + TimeTable[Day][Hour].Columns[Column].Duration;
|
||||
|
@ -1217,7 +1217,7 @@ static void TT_TimeTableDrawCell (unsigned Day,unsigned Hour,unsigned Column,uns
|
|||
/***** Group *****/
|
||||
fprintf (Gbl.F.Out,"<br />%s"
|
||||
"<select name=\"ModTTGrpCod\""
|
||||
" style=\"width:88px;\""
|
||||
" style=\"width:132px;\"" // Changed!
|
||||
" onchange=\"javascript:document.getElementById('%s').submit();\">",
|
||||
Txt_Group,Gbl.FormId);
|
||||
fprintf (Gbl.F.Out,"<option value=\"-1\"");
|
||||
|
|
|
@ -1512,7 +1512,7 @@ void Usr_WelcomeUsr (void)
|
|||
if (Gbl.Usrs.Me.UsrDat.Prefs.Language == Txt_Current_CGI_SWAD_Language)
|
||||
{
|
||||
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\""
|
||||
" style=\"margin:10px;\">");
|
||||
" style=\"margin:15px;\">"); // Changed!
|
||||
|
||||
/***** User's first name *****/
|
||||
if (Gbl.Usrs.Me.UsrDat.FirstName[0])
|
||||
|
|
Loading…
Reference in New Issue