mirror of https://github.com/acanas/swad-core.git
Version 15.64.8
This commit is contained in:
parent
b5fb9525d7
commit
9a41f81273
|
@ -73,6 +73,7 @@ static void Asg_PutFormToCreateNewAsg (void);
|
||||||
static void Asg_PutFormToCreateNewAsgParams (void);
|
static void Asg_PutFormToCreateNewAsgParams (void);
|
||||||
|
|
||||||
static void Asg_PutFormsToRemEditOneAsg (long AsgCod,bool Hidden);
|
static void Asg_PutFormsToRemEditOneAsg (long AsgCod,bool Hidden);
|
||||||
|
static void Asg_PutParams (void);
|
||||||
static void Asg_GetDataOfAssignment (struct Assignment *Asg,const char *Query);
|
static void Asg_GetDataOfAssignment (struct Assignment *Asg,const char *Query);
|
||||||
static void Asg_GetAssignmentTxtFromDB (long AsgCod,char *Txt);
|
static void Asg_GetAssignmentTxtFromDB (long AsgCod,char *Txt);
|
||||||
static void Asg_PutParamAsgCod (long AsgCod);
|
static void Asg_PutParamAsgCod (long AsgCod);
|
||||||
|
@ -495,38 +496,41 @@ static void Asg_PutFormsToRemEditOneAsg (long AsgCod,bool Hidden)
|
||||||
|
|
||||||
fprintf (Gbl.F.Out,"<div>");
|
fprintf (Gbl.F.Out,"<div>");
|
||||||
|
|
||||||
|
Gbl.Asgs.AsgCod = AsgCod; // Used as parameters in contextual links
|
||||||
|
|
||||||
/***** Put form to remove assignment *****/
|
/***** Put form to remove assignment *****/
|
||||||
Act_FormStart (ActReqRemAsg);
|
Lay_PutContextualLink (ActReqRemAsg,Asg_PutParams,
|
||||||
Asg_PutParamAsgCod (AsgCod);
|
"remove-on64x64.png",
|
||||||
Asg_PutHiddenParamAsgOrderType ();
|
Txt_Remove,NULL);
|
||||||
Grp_PutParamWhichGrps ();
|
|
||||||
Pag_PutHiddenParamPagNum (Gbl.Pag.CurrentPage);
|
|
||||||
Lay_PutIconLink ("remove-on64x64.png",Txt_Remove,NULL,NULL);
|
|
||||||
Act_FormEnd ();
|
|
||||||
|
|
||||||
/***** Put form to hide/show assignment *****/
|
/***** Put form to hide/show assignment *****/
|
||||||
Act_FormStart (Hidden ? ActShoAsg :
|
|
||||||
ActHidAsg);
|
|
||||||
Asg_PutParamAsgCod (AsgCod);
|
|
||||||
Asg_PutHiddenParamAsgOrderType ();
|
|
||||||
Grp_PutParamWhichGrps ();
|
|
||||||
Pag_PutHiddenParamPagNum (Gbl.Pag.CurrentPage);
|
|
||||||
if (Hidden)
|
if (Hidden)
|
||||||
Lay_PutIconLink ("eye-slash-on64x64.png",Txt_Show,NULL,NULL);
|
Lay_PutContextualLink (ActShoAsg,Asg_PutParams,
|
||||||
|
"eye-slash-on64x64.png",
|
||||||
|
Txt_Show,NULL);
|
||||||
else
|
else
|
||||||
Lay_PutIconLink ("eye-on64x64.png",Txt_Hide,NULL,NULL);
|
Lay_PutContextualLink (ActHidAsg,Asg_PutParams,
|
||||||
Act_FormEnd ();
|
"eye-on64x64.png",
|
||||||
|
Txt_Hide,NULL);
|
||||||
|
|
||||||
/***** Put form to edit assignment *****/
|
/***** Put form to edit assignment *****/
|
||||||
Act_FormStart (ActEdiOneAsg);
|
Lay_PutContextualLink (ActEdiOneAsg,Asg_PutParams,
|
||||||
Asg_PutParamAsgCod (AsgCod);
|
"edit64x64.png",
|
||||||
|
Txt_Edit,NULL);
|
||||||
|
|
||||||
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
|
}
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
/********************** Params related to an assignment **********************/
|
||||||
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
static void Asg_PutParams (void)
|
||||||
|
{
|
||||||
|
Asg_PutParamAsgCod (Gbl.Asgs.AsgCod);
|
||||||
Asg_PutHiddenParamAsgOrderType ();
|
Asg_PutHiddenParamAsgOrderType ();
|
||||||
Grp_PutParamWhichGrps ();
|
Grp_PutParamWhichGrps ();
|
||||||
Pag_PutHiddenParamPagNum (Gbl.Pag.CurrentPage);
|
Pag_PutHiddenParamPagNum (Gbl.Pag.CurrentPage);
|
||||||
Lay_PutIconLink ("edit64x64.png",Txt_Edit,NULL,NULL);
|
|
||||||
Act_FormEnd ();
|
|
||||||
|
|
||||||
fprintf (Gbl.F.Out,"</div>");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
|
@ -117,12 +117,13 @@
|
||||||
/****************************** Public constants *****************************/
|
/****************************** Public constants *****************************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
#define Log_PLATFORM_VERSION "SWAD 15.64.7 (2015/12/13)"
|
#define Log_PLATFORM_VERSION "SWAD 15.64.8 (2015/12/13)"
|
||||||
#define CSS_FILE "swad15.64.5.css"
|
#define CSS_FILE "swad15.64.5.css"
|
||||||
|
|
||||||
// Number of lines (includes comments but not blank lines) has been got with the following command:
|
// Number of lines (includes comments but not blank lines) has been got with the following command:
|
||||||
// nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*.h sql/swad*.sql | tail -1
|
// nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*.h sql/swad*.sql | tail -1
|
||||||
/*
|
/*
|
||||||
|
Version 15.64.8: Dec 13, 2015 Code refactoring in contextual links. (187066 lines)
|
||||||
Version 15.64.7: Dec 13, 2015 Code refactoring in contextual links. (187063 lines)
|
Version 15.64.7: Dec 13, 2015 Code refactoring in contextual links. (187063 lines)
|
||||||
Version 15.64.6: Dec 13, 2015 Code refactoring in contextual links. (186974 lines)
|
Version 15.64.6: Dec 13, 2015 Code refactoring in contextual links. (186974 lines)
|
||||||
Version 15.64.5: Dec 13, 2015 Code refactoring in record card. (186944 lines)
|
Version 15.64.5: Dec 13, 2015 Code refactoring in record card. (186944 lines)
|
||||||
|
|
|
@ -540,6 +540,7 @@ struct Globals
|
||||||
unsigned Num; // Number of assignments
|
unsigned Num; // Number of assignments
|
||||||
long *LstAsgCods; // List of assigment codes
|
long *LstAsgCods; // List of assigment codes
|
||||||
tAsgsOrderType SelectedOrderType;
|
tAsgsOrderType SelectedOrderType;
|
||||||
|
long AsgCod; // Used as parameter in contextual links
|
||||||
} Asgs;
|
} Asgs;
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue