Version 15.202.9

This commit is contained in:
Antonio Cañas Vargas 2016-04-23 14:18:09 +02:00
parent ab95af4dd9
commit 26c4a01fc1
2 changed files with 48 additions and 37 deletions

View File

@ -134,13 +134,14 @@
/****************************** Public constants *****************************/ /****************************** Public constants *****************************/
/*****************************************************************************/ /*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 15.202.8 (2016-04-23)" #define Log_PLATFORM_VERSION "SWAD 15.202.9 (2016-04-23)"
#define CSS_FILE "swad15.202.css" #define CSS_FILE "swad15.202.css"
#define JS_FILE "swad15.197.js" #define JS_FILE "swad15.197.js"
// Number of lines (includes comments but not blank lines) has been got with the following command: // Number of lines (includes comments but not blank lines) has been got with the following command:
// nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*.h sql/swad*.sql | tail -1 // nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*.h sql/swad*.sql | tail -1
/* /*
Version 15.202.9: Apr 23, 2016 Code refactoring in record card. (200987 lines)
Version 15.202.8: Apr 23, 2016 Code refactoring in record card. (200979 lines) Version 15.202.8: Apr 23, 2016 Code refactoring in record card. (200979 lines)
Version 15.202.7: Apr 23, 2016 Code refactoring in record card. (200964 lines) Version 15.202.7: Apr 23, 2016 Code refactoring in record card. (200964 lines)
Version 15.202.6: Apr 23, 2016 Code refactoring in record card. (200949 lines) Version 15.202.6: Apr 23, 2016 Code refactoring in record card. (200949 lines)

View File

@ -114,17 +114,17 @@ static void Rec_ShowCountry (struct UsrData *UsrDat,
Rec_RecordViewType_t TypeOfView, Rec_RecordViewType_t TypeOfView,
const char *ClassForm); const char *ClassForm);
static void Rec_ShowOriginPlace (struct UsrData *UsrDat, static void Rec_ShowOriginPlace (struct UsrData *UsrDat,
bool ShowData, bool ShowData,bool DataForm,
bool DataForm,
const char *ClassForm); const char *ClassForm);
static void Rec_ShowDateOfBirth (struct UsrData *UsrDat, static void Rec_ShowDateOfBirth (struct UsrData *UsrDat,
bool ShowData, bool ShowData,bool DataForm,
bool DataForm,
const char *ClassForm); const char *ClassForm);
static void Rec_ShowLocalAddress (struct UsrData *UsrDat, static void Rec_ShowLocalAddress (struct UsrData *UsrDat,
bool ShowData, bool ShowData,bool DataForm,
bool DataForm,
const char *ClassForm); const char *ClassForm);
static void Rec_ShowLocalPhone (struct UsrData *UsrDat,
bool ShowData,bool DataForm,
const char *ClassForm);
static void Rec_WriteLinkToDataProtectionClause (void); static void Rec_WriteLinkToDataProtectionClause (void);
@ -2146,30 +2146,8 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
/***** Local address *****/ /***** Local address *****/
Rec_ShowLocalAddress (UsrDat,ShowData,DataForm,ClassForm); Rec_ShowLocalAddress (UsrDat,ShowData,DataForm,ClassForm);
/* Local phone */ /***** Local phone *****/
fprintf (Gbl.F.Out,"<tr>" Rec_ShowLocalPhone (UsrDat,ShowData,DataForm,ClassForm);
"<td class=\"%s RIGHT_MIDDLE\""
" style=\"width:%upx;\">"
"%s:"
"</td>"
"<td class=\"REC_DAT_BOLD LEFT_MIDDLE\""
" style=\"width:%upx;\">",
ClassForm,Rec_C1_BOTTOM,Txt_Phone,
Rec_C2_BOTTOM);
if (ShowData)
{
if (DataForm)
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"LocalPhone\""
" maxlength=\"%u\" value=\"%s\""
" style=\"width:%upx;\" />",
Usr_MAX_LENGTH_PHONE,
UsrDat->LocalPhone,
Rec_C2_BOTTOM - 20);
else if (UsrDat->LocalPhone[0])
fprintf (Gbl.F.Out,"%s",UsrDat->LocalPhone);
}
fprintf (Gbl.F.Out,"</td>"
"</tr>");
/* Family address */ /* Family address */
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -3250,8 +3228,7 @@ static void Rec_ShowCountry (struct UsrData *UsrDat,
/*****************************************************************************/ /*****************************************************************************/
static void Rec_ShowOriginPlace (struct UsrData *UsrDat, static void Rec_ShowOriginPlace (struct UsrData *UsrDat,
bool ShowData, bool ShowData,bool DataForm,
bool DataForm,
const char *ClassForm) const char *ClassForm)
{ {
extern const char *Txt_Place_of_origin; extern const char *Txt_Place_of_origin;
@ -3286,8 +3263,7 @@ static void Rec_ShowOriginPlace (struct UsrData *UsrDat,
/*****************************************************************************/ /*****************************************************************************/
static void Rec_ShowDateOfBirth (struct UsrData *UsrDat, static void Rec_ShowDateOfBirth (struct UsrData *UsrDat,
bool ShowData, bool ShowData,bool DataForm,
bool DataForm,
const char *ClassForm) const char *ClassForm)
{ {
extern const char *Txt_Date_of_birth; extern const char *Txt_Date_of_birth;
@ -3321,8 +3297,7 @@ static void Rec_ShowDateOfBirth (struct UsrData *UsrDat,
/*****************************************************************************/ /*****************************************************************************/
static void Rec_ShowLocalAddress (struct UsrData *UsrDat, static void Rec_ShowLocalAddress (struct UsrData *UsrDat,
bool ShowData, bool ShowData,bool DataForm,
bool DataForm,
const char *ClassForm) const char *ClassForm)
{ {
extern const char *Txt_Local_address; extern const char *Txt_Local_address;
@ -3352,6 +3327,41 @@ static void Rec_ShowLocalAddress (struct UsrData *UsrDat,
"</tr>"); "</tr>");
} }
/*****************************************************************************/
/************************* Show user's local phone ***************************/
/*****************************************************************************/
static void Rec_ShowLocalPhone (struct UsrData *UsrDat,
bool ShowData,bool DataForm,
const char *ClassForm)
{
extern const char *Txt_Phone;
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"%s RIGHT_MIDDLE\""
" style=\"width:%upx;\">"
"%s:"
"</td>"
"<td class=\"REC_DAT_BOLD LEFT_MIDDLE\""
" style=\"width:%upx;\">",
ClassForm,Rec_C1_BOTTOM,Txt_Phone,
Rec_C2_BOTTOM);
if (ShowData)
{
if (DataForm)
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"LocalPhone\""
" maxlength=\"%u\" value=\"%s\""
" style=\"width:%upx;\" />",
Usr_MAX_LENGTH_PHONE,
UsrDat->LocalPhone,
Rec_C2_BOTTOM - 20);
else if (UsrDat->LocalPhone[0])
fprintf (Gbl.F.Out,"%s",UsrDat->LocalPhone);
}
fprintf (Gbl.F.Out,"</td>"
"</tr>");
}
/*****************************************************************************/ /*****************************************************************************/
/*********************** Write a link to netiquette rules ********************/ /*********************** Write a link to netiquette rules ********************/
/*****************************************************************************/ /*****************************************************************************/