From a8d0d623ed21a0d68fb4f34a99a04f1b36cacbac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Mon, 19 Jan 2015 14:04:06 +0100 Subject: [PATCH] Version 14.59 --- swad_action.c | 309 ++++++++++++++++++++++- swad_action.h | 590 +++++++++++++++++++++++++------------------- swad_changelog.h | 3 +- swad_file_browser.c | 115 ++++++--- 4 files changed, 715 insertions(+), 302 deletions(-) diff --git a/swad_action.c b/swad_action.c index 75a3251bc..8ff78537f 100644 --- a/swad_action.c +++ b/swad_action.c @@ -209,6 +209,40 @@ Institution: 111. ActChgHldStrDat Change start date of a holiday 112. ActChgHldEndDat Change end date of a holiday 113. ActRenHld Change name of a holiday + + ---. ActChgToSeeDocIns Change to see institution documents + + ---. ActSeeDocIns See the files of the documents zone of the institution + ---. ActExpSeeDocIns Expand a folder in institution documents + ---. ActConSeeDocIns Contract a folder in institution documents + ---. ActZIPSeeDocIns Compress a folder in institution documents + ---. ActReqDatSeeDocIns Ask for metadata of a file of the documents zone of the institution + ---. ActDowSeeDocIns Download a file in documents zone of the institution + + ---. ActChgToAdmDocIns Change to administrate institution documents + + ---. ActAdmDocIns Admin the files of the documents zone of the institution + ---. ActReqRemFilDocIns Request removal of a file in the documents zone of the institution + ---. ActRemFilDocIns Remove a file in the documents zone of the institution + ---. ActRemFolDocIns Remove a folder empty the documents zone of the institution + ---. ActCopDocIns Set source of copy in the documents zone of the institution + ---. ActPasDocIns Paste a folder or file in the documents zone of the institution + ---. ActRemTreDocIns Remove a folder no empty in the documents zone of the institution + ---. ActFrmCreDocIns Form to crear a folder or file in the documents zone of the institution + ---. ActCreFolDocIns Create a new folder in the documents zone of the institution + ---. ActCreLnkDocIns Create a new link in the documents zone of the institution + ---. ActRenFolDocIns Rename a folder in the documents zone of the institution + ---. ActRcvFilDocInsDZ Receive a file in the documents zone of the institution using Dropzone.js + ---. ActRcvFilDocInsCla Receive a file in the documents zone of the institution using the classic way + ---. ActExpAdmDocIns Expand a folder when administrating the documents zone of the institution + ---. ActConAdmDocIns Contract a folder when administrating the documents zone of the institution + ---. ActZIPAdmDocIns Compress a folder when administrating the documents zone of the institution + ---. ActShoDocIns Show hidden folder or file of the documents zone of the institution + ---. ActHidDocIns Hide folder or file of the documents zone of the institution + ---. ActReqDatAdmDocIns Ask for metadata of a file of the documents zone of the institution + ---. ActChgDatAdmDocIns Change metadata of a file of the documents zone of the institution + ---. ActDowAdmDocIns Download a file of the documents zone of the institution + Centre: 114. ActCtrReqSch Request search in centre tab @@ -238,6 +272,40 @@ Centre: 134. ActChgDegOptYea Request change of the year of optativas of a degree 135. ActChgDegWWW Request change of the web of a degree 136. ActChgDegSta Request change of status of a degree + + ---. ActChgToSeeDocCtr Change to see centre documents + + ---. ActSeeDocCtr See the files of the documents zone of the centre + ---. ActExpSeeDocCtr Expand a folder in centre documents + ---. ActConSeeDocCtr Contract a folder in centre documents + ---. ActZIPSeeDocCtr Compress a folder in centre documents + ---. ActReqDatSeeDocCtr Ask for metadata of a file of the documents zone of the centre + ---. ActDowSeeDocCtr Download a file in documents zone of the centre + + ---. ActChgToAdmDocCtr Change to administrate centre documents + + ---. ActAdmDocCtr Admin the files of the documents zone of the centre + ---. ActReqRemFilDocCtr Request removal of a file in the documents zone of the centre + ---. ActRemFilDocCtr Remove a file in the documents zone of the centre + ---. ActRemFolDocCtr Remove a folder empty the documents zone of the centre + ---. ActCopDocCtr Set source of copy in the documents zone of the centre + ---. ActPasDocCtr Paste a folder or file in the documents zone of the centre + ---. ActRemTreDocCtr Remove a folder no empty in the documents zone of the centre + ---. ActFrmCreDocCtr Form to crear a folder or file in the documents zone of the centre + ---. ActCreFolDocCtr Create a new folder in the documents zone of the centre + ---. ActCreLnkDocCtr Create a new link in the documents zone of the centre + ---. ActRenFolDocCtr Rename a folder in the documents zone of the centre + ---. ActRcvFilDocCtrDZ Receive a file in the documents zone of the centre using Dropzone.js + ---. ActRcvFilDocCtrCla Receive a file in the documents zone of the centre using the classic way + ---. ActExpAdmDocCtr Expand a folder when administrating the documents zone of the centre + ---. ActConAdmDocCtr Contract a folder when administrating the documents zone of the centre + ---. ActZIPAdmDocCtr Compress a folder when administrating the documents zone of the centre + ---. ActShoDocCtr Show hidden folder or file of the documents zone of the centre + ---. ActHidDocCtr Hide folder or file of the documents zone of the centre + ---. ActReqDatAdmDocCtr Ask for metadata of a file of the documents zone of the centre + ---. ActChgDatAdmDocCtr Change metadata of a file of the documents zone of the centre + ---. ActDowAdmDocCtr Download a file of the documents zone of the centre + Degree: 137. ActDegReqSch Request search in degree tab @@ -262,6 +330,40 @@ Degree: 152. ActRenCrsSho Request change of short name of a course 153. ActRenCrsFul Request change of full name of a course 154. ActChgCrsSta Request change of status of a course + + ---. ActChgToSeeDocDeg Change to see degree documents + + ---. ActSeeDocDeg See the files of the documents zone of the degree + ---. ActExpSeeDocDeg Expand a folder in degree documents + ---. ActConSeeDocDeg Contract a folder in degree documents + ---. ActZIPSeeDocDeg Compress a folder in degree documents + ---. ActReqDatSeeDocDeg Ask for metadata of a file of the documents zone of the degree + ---. ActDowSeeDocDeg Download a file in documents zone of the degree + + ---. ActChgToAdmDocDeg Change to administrate degree documents + + ---. ActAdmDocDeg Admin the files of the documents zone of the degree + ---. ActReqRemFilDocDeg Request removal of a file in the documents zone of the degree + ---. ActRemFilDocDeg Remove a file in the documents zone of the degree + ---. ActRemFolDocDeg Remove a folder empty the documents zone of the degree + ---. ActCopDocDeg Set source of copy in the documents zone of the degree + ---. ActPasDocDeg Paste a folder or file in the documents zone of the degree + ---. ActRemTreDocDeg Remove a folder no empty in the documents zone of the degree + ---. ActFrmCreDocDeg Form to crear a folder or file in the documents zone of the degree + ---. ActCreFolDocDeg Create a new folder in the documents zone of the degree + ---. ActCreLnkDocDeg Create a new link in the documents zone of the degree + ---. ActRenFolDocDeg Rename a folder in the documents zone of the degree + ---. ActRcvFilDocDegDZ Receive a file in the documents zone of the degree using Dropzone.js + ---. ActRcvFilDocDegCla Receive a file in the documents zone of the degree using the classic way + ---. ActExpAdmDocDeg Expand a folder when administrating the documents zone of the degree + ---. ActConAdmDocDeg Contract a folder when administrating the documents zone of the degree + ---. ActZIPAdmDocDeg Compress a folder when administrating the documents zone of the degree + ---. ActShoDocDeg Show hidden folder or file of the documents zone of the degree + ---. ActHidDocDeg Hide folder or file of the documents zone of the degree + ---. ActReqDatAdmDocDeg Ask for metadata of a file of the documents zone of the degree + ---. ActChgDatAdmDocDeg Change metadata of a file of the documents zone of the degree + ---. ActDowAdmDocDeg Download a file of the documents zone of the degree + Course: 155. ActCrsReqSch Request search in course tab @@ -303,7 +405,7 @@ Course: 189. ActModIteSylLec Modify a item of the syllabus of lectures 190. ActModIteSylPra Modify a item of the syllabus of practicals - 191. ActChgToSeeDoc Change to see course/group documents + 191. ActChgToSeeDocCrs Change to see course/group documents 192. ActSeeDocCrs See the files of the documents zone of the course 193. ActExpSeeDocCrs Expand a folder in course documents @@ -319,7 +421,7 @@ Course: 202. ActReqDatSeeDocGrp Ask for metadata of a file of the documents zone of a group 203. ActDowSeeDocGrp Download a file of the documents zone of a group - 204. ActChgToAdmDoc Change to administrate course/group documents + 204. ActChgToAdmDocCrs Change to administrate course/group documents 205. ActAdmDocCrs Admin the files of the documents zone of the course 206. ActReqRemFilDocCrs Request removal of a file in the documents zone of the course @@ -1318,7 +1420,7 @@ struct Act_Actions Act_Actions[Act_NUM_ACTIONS] = /* ActSeeDpt */{ 675, 3,TabIns,ActSeeDpt ,0x1FF,0x1FF,0x1FF,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Dpt_SeeDepts ,"houseteachers" }, /* ActSeePlc */{ 703, 4,TabIns,ActSeePlc ,0x1FF,0x1FF,0x1FF,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Plc_SeePlaces ,"earth" }, /* ActSeeHld */{ 707, 5,TabIns,ActSeeHld ,0x1FF,0x1FF,0x1FF,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Hld_SeeHolidays ,"date" }, - /* ActSeeAdmDocIns */{1249, 6,TabIns,ActSeeAdmDocIns ,0x1FF,0x1FF,0x1FF,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_ShowFileBrowserOrWorks ,"folder" }, + /* ActSeeAdmDocIns */{1249, 6,TabIns,ActSeeAdmDocIns ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_ShowFileBrowserOrWorks ,"folder" }, // Actions not in menu: /* ActInsSch */{1182,-1,TabIns,ActInsReqSch ,0x1FF,0x1FF,0x1FF,Act_CONTENT_NORM,Act_MAIN_WINDOW,Sch_GetParamsSearch ,Sch_InsSearch ,NULL}, @@ -1361,13 +1463,46 @@ struct Act_Actions Act_Actions[Act_NUM_ACTIONS] = /* ActChgHldEndDat */{ 718,-1,TabIns,ActSeeHld ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Hld_ChangeEndDate ,NULL}, /* ActRenHld */{ 766,-1,TabIns,ActSeeHld ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Hld_RenameHoliday ,NULL}, + /* ActChgToSeeDocIns */{1308,-1,TabIns,ActSeeAdmDocIns ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_ShowFileBrowserOrWorks ,NULL}, + + /* ActSeeDocIns */{1309,-1,TabIns,ActSeeAdmDocIns ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_ShowFileBrowserOrWorks ,NULL}, + /* ActExpSeeDocIns */{1310,-1,TabIns,ActSeeAdmDocIns ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_ExpandFileTree ,NULL}, + /* ActConSeeDocIns */{1311,-1,TabIns,ActSeeAdmDocIns ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_ContractFileTree ,NULL}, + /* ActZIPSeeDocIns */{1312,-1,TabIns,ActSeeAdmDocIns ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,ZIP_CompressFileTree ,NULL}, + /* ActReqDatSeeDocIns*/{1313,-1,TabIns,ActSeeAdmDocIns ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_ShowFileMetadata ,NULL}, + /* ActDowSeeDocIns */{1314,-1,TabIns,ActSeeAdmDocIns ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_DOWNLD_FILE,Brw_DownloadFile ,NULL ,NULL}, + + /* ActChgToAdmDocIns */{1315,-1,TabIns,ActSeeAdmDocIns ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_ShowFileBrowserOrWorks ,NULL}, + + /* ActAdmDocIns */{1316,-1,TabIns,ActSeeAdmDocIns ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_ShowFileBrowserOrWorks ,NULL}, + /* ActReqRemFilDocIns*/{1317,-1,TabIns,ActSeeAdmDocIns ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_AskRemFileFromTree ,NULL}, + /* ActRemFilDocIns */{1318,-1,TabIns,ActSeeAdmDocIns ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_RemFileFromTree ,NULL}, + /* ActRemFolDocIns */{1319,-1,TabIns,ActSeeAdmDocIns ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_RemFolderFromTree ,NULL}, + /* ActCopDocIns */{1320,-1,TabIns,ActSeeAdmDocIns ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_CopyFromFileBrowser ,NULL}, + /* ActPasDocIns */{1321,-1,TabIns,ActSeeAdmDocIns ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_PasteIntoFileBrowser ,NULL}, + /* ActRemTreDocIns */{1322,-1,TabIns,ActSeeAdmDocIns ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_RemSubtreeInFileBrowser ,NULL}, + /* ActFrmCreDocIns */{1323,-1,TabIns,ActSeeAdmDocIns ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_ShowFormFileBrowser ,NULL}, + /* ActCreFolDocIns */{1324,-1,TabIns,ActSeeAdmDocIns ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_RecFolderFileBrowser ,NULL}, + /* ActCreLnkDocIns */{1325,-1,TabIns,ActSeeAdmDocIns ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_RecLinkFileBrowser ,NULL}, + /* ActRenFolDocIns */{1326,-1,TabIns,ActSeeAdmDocIns ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_RenFolderFileBrowser ,NULL}, + /* ActRcvFilDocInsDZ */{1327,-1,TabIns,ActSeeAdmDocIns ,0x100,0x100,0x100,Act_CONTENT_DATA,Act_UPLOAD_FILE,Brw_RcvFileInFileBrwDropzone,NULL ,NULL}, + /* ActRcvFilDocInsCla*/{1328,-1,TabIns,ActSeeAdmDocIns ,0x100,0x100,0x100,Act_CONTENT_DATA,Act_MAIN_WINDOW,NULL ,Brw_RcvFileInFileBrwClassic ,NULL}, + /* ActExpAdmDocIns */{1329,-1,TabIns,ActSeeAdmDocIns ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_ExpandFileTree ,NULL}, + /* ActConAdmDocIns */{1330,-1,TabIns,ActSeeAdmDocIns ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_ContractFileTree ,NULL}, + /* ActZIPAdmDocIns */{1331,-1,TabIns,ActSeeAdmDocIns ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,ZIP_CompressFileTree ,NULL}, + /* ActShoDocIns */{1332,-1,TabIns,ActSeeAdmDocIns ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_SetDocumentAsVisible ,NULL}, + /* ActHidDocIns */{1333,-1,TabIns,ActSeeAdmDocIns ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_SetDocumentAsHidden ,NULL}, + /* ActReqDatAdmDocIns*/{1334,-1,TabIns,ActSeeAdmDocIns ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_ShowFileMetadata ,NULL}, + /* ActChgDatAdmDocIns*/{1335,-1,TabIns,ActSeeAdmDocIns ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_ChgFileMetadata ,NULL}, + /* ActDowAdmDocIns */{1336,-1,TabIns,ActSeeAdmDocIns ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_DOWNLD_FILE,Brw_DownloadFile ,NULL ,NULL}, + // TabCtr ****************************************************************** // Actions in menu: /* ActCtrReqSch */{1178, 0,TabCtr,ActCtrReqSch ,0x1FF,0x1FF,0x1FF,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Sch_ReqCtrSearch ,"search" }, /* ActSeeCtrInf */{1151, 1,TabCtr,ActSeeCtrInf ,0x1FF,0x1FF,0x1FF,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Ctr_ShowConfiguration ,"ctr" }, /* ActSeeDeg */{1011, 2,TabCtr,ActSeeDeg ,0x1FF,0x1FF,0x1FF,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Deg_ShowDegsOfCurrentCtr ,"deg" }, - /* ActSeeAdmDocCtr */{1248, 3,TabCtr,ActSeeAdmDocCtr ,0x1FF,0x1FF,0x1FF,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_ShowFileBrowserOrWorks ,"folder" }, + /* ActSeeAdmDocCtr */{1248, 3,TabCtr,ActSeeAdmDocCtr ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_ShowFileBrowserOrWorks ,"folder" }, // Actions not in menu: /* ActCtrSch */{1183,-1,TabCtr,ActCtrReqSch ,0x1FF,0x1FF,0x1FF,Act_CONTENT_NORM,Act_MAIN_WINDOW,Sch_GetParamsSearch ,Sch_CtrSearch ,NULL}, @@ -1393,13 +1528,46 @@ struct Act_Actions Act_Actions[Act_NUM_ACTIONS] = /* ActChgDegWWW */{ 554,-1,TabCtr,ActSeeDeg ,0x1FE,0x1FE,0x1FE,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Deg_ChangeDegWWW ,NULL}, /* ActChgDegSta */{1207,-1,TabCtr,ActSeeDeg ,0x1C0,0x1C0,0x1C0,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Deg_ChangeDegStatus ,NULL}, + /* ActChgToSeeDocCtr */{1279,-1,TabCtr,ActSeeAdmDocCtr ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_ShowFileBrowserOrWorks ,NULL}, + + /* ActSeeDocCtr */{1280,-1,TabCtr,ActSeeAdmDocCtr ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_ShowFileBrowserOrWorks ,NULL}, + /* ActExpSeeDocCtr */{1281,-1,TabCtr,ActSeeAdmDocCtr ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_ExpandFileTree ,NULL}, + /* ActConSeeDocCtr */{1282,-1,TabCtr,ActSeeAdmDocCtr ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_ContractFileTree ,NULL}, + /* ActZIPSeeDocCtr */{1283,-1,TabCtr,ActSeeAdmDocCtr ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,ZIP_CompressFileTree ,NULL}, + /* ActReqDatSeeDocCtr*/{1284,-1,TabCtr,ActSeeAdmDocCtr ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_ShowFileMetadata ,NULL}, + /* ActDowSeeDocCtr */{1285,-1,TabCtr,ActSeeAdmDocCtr ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_DOWNLD_FILE,Brw_DownloadFile ,NULL ,NULL}, + + /* ActChgToAdmDocCtr */{1286,-1,TabCtr,ActSeeAdmDocCtr ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_ShowFileBrowserOrWorks ,NULL}, + + /* ActAdmDocCtr */{1287,-1,TabCtr,ActSeeAdmDocCtr ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_ShowFileBrowserOrWorks ,NULL}, + /* ActReqRemFilDocCtr*/{1288,-1,TabCtr,ActSeeAdmDocCtr ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_AskRemFileFromTree ,NULL}, + /* ActRemFilDocCtr */{1289,-1,TabCtr,ActSeeAdmDocCtr ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_RemFileFromTree ,NULL}, + /* ActRemFolDocCtr */{1290,-1,TabCtr,ActSeeAdmDocCtr ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_RemFolderFromTree ,NULL}, + /* ActCopDocCtr */{1291,-1,TabCtr,ActSeeAdmDocCtr ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_CopyFromFileBrowser ,NULL}, + /* ActPasDocCtr */{1292,-1,TabCtr,ActSeeAdmDocCtr ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_PasteIntoFileBrowser ,NULL}, + /* ActRemTreDocCtr */{1293,-1,TabCtr,ActSeeAdmDocCtr ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_RemSubtreeInFileBrowser ,NULL}, + /* ActFrmCreDocCtr */{1294,-1,TabCtr,ActSeeAdmDocCtr ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_ShowFormFileBrowser ,NULL}, + /* ActCreFolDocCtr */{1295,-1,TabCtr,ActSeeAdmDocCtr ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_RecFolderFileBrowser ,NULL}, + /* ActCreLnkDocCtr */{1296,-1,TabCtr,ActSeeAdmDocCtr ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_RecLinkFileBrowser ,NULL}, + /* ActRenFolDocCtr */{1297,-1,TabCtr,ActSeeAdmDocCtr ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_RenFolderFileBrowser ,NULL}, + /* ActRcvFilDocCtrDZ */{1298,-1,TabCtr,ActSeeAdmDocCtr ,0x100,0x100,0x100,Act_CONTENT_DATA,Act_UPLOAD_FILE,Brw_RcvFileInFileBrwDropzone,NULL ,NULL}, + /* ActRcvFilDocCtrCla*/{1299,-1,TabCtr,ActSeeAdmDocCtr ,0x100,0x100,0x100,Act_CONTENT_DATA,Act_MAIN_WINDOW,NULL ,Brw_RcvFileInFileBrwClassic ,NULL}, + /* ActExpAdmDocCtr */{1300,-1,TabCtr,ActSeeAdmDocCtr ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_ExpandFileTree ,NULL}, + /* ActConAdmDocCtr */{1301,-1,TabCtr,ActSeeAdmDocCtr ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_ContractFileTree ,NULL}, + /* ActZIPAdmDocCtr */{1302,-1,TabCtr,ActSeeAdmDocCtr ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,ZIP_CompressFileTree ,NULL}, + /* ActShoDocCtr */{1303,-1,TabCtr,ActSeeAdmDocCtr ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_SetDocumentAsVisible ,NULL}, + /* ActHidDocCtr */{1304,-1,TabCtr,ActSeeAdmDocCtr ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_SetDocumentAsHidden ,NULL}, + /* ActReqDatAdmDocCtr*/{1305,-1,TabCtr,ActSeeAdmDocCtr ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_ShowFileMetadata ,NULL}, + /* ActChgDatAdmDocCtr*/{1306,-1,TabCtr,ActSeeAdmDocCtr ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_ChgFileMetadata ,NULL}, + /* ActDowAdmDocCtr */{1307,-1,TabCtr,ActSeeAdmDocCtr ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_DOWNLD_FILE,Brw_DownloadFile ,NULL ,NULL}, + // TabDeg ****************************************************************** // Actions in menu: /* ActDegReqSch */{1179, 0,TabDeg,ActDegReqSch ,0x1FF,0x1FF,0x1FF,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Sch_ReqDegSearch ,"search" }, /* ActSeeDegInf */{1149, 1,TabDeg,ActSeeDegInf ,0x1FF,0x1FF,0x1FF,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Deg_ShowConfiguration ,"deg" }, /* ActSeeCrs */{1009, 2,TabDeg,ActSeeCrs ,0x1FF,0x1FF,0x1FF,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Crs_ShowCrssOfCurrentDeg ,"coursesdegree" }, - /* ActSeeAdmDocDeg */{1247, 3,TabDeg,ActSeeAdmDocDeg ,0x1FF,0x1FF,0x1FF,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_ShowFileBrowserOrWorks ,"folder" }, + /* ActSeeAdmDocDeg */{1247, 3,TabDeg,ActSeeAdmDocDeg ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_ShowFileBrowserOrWorks ,"folder" }, // Actions not in menu: /* ActDegSch */{1184,-1,TabDeg,ActDegReqSch ,0x1FF,0x1FF,0x1FF,Act_CONTENT_NORM,Act_MAIN_WINDOW,Sch_GetParamsSearch ,Sch_DegSearch ,NULL}, @@ -1420,6 +1588,39 @@ struct Act_Actions Act_Actions[Act_NUM_ACTIONS] = /* ActRenCrsFul */{ 564,-1,TabDeg,ActSeeCrs ,0x1FE,0x1FE,0x1FE,Act_CONTENT_NORM,Act_MAIN_WINDOW,Crs_RenameCourseFull ,Crs_ContEditAfterChgCrs ,NULL}, /* ActChgCrsSta */{1055,-1,TabDeg,ActSeeCrs ,0x1E0,0x1E0,0x1E0,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Crs_ChangeCrsStatus ,NULL}, + /* ActChgToSeeDocDeg */{1250,-1,TabDeg,ActSeeAdmDocDeg ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_ShowFileBrowserOrWorks ,NULL}, + + /* ActSeeDocDeg */{1251,-1,TabDeg,ActSeeAdmDocDeg ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_ShowFileBrowserOrWorks ,NULL}, + /* ActExpSeeDocDeg */{1252,-1,TabDeg,ActSeeAdmDocDeg ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_ExpandFileTree ,NULL}, + /* ActConSeeDocDeg */{1253,-1,TabDeg,ActSeeAdmDocDeg ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_ContractFileTree ,NULL}, + /* ActZIPSeeDocDeg */{1254,-1,TabDeg,ActSeeAdmDocDeg ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,ZIP_CompressFileTree ,NULL}, + /* ActReqDatSeeDocDeg*/{1255,-1,TabDeg,ActSeeAdmDocDeg ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_ShowFileMetadata ,NULL}, + /* ActDowSeeDocDeg */{1256,-1,TabDeg,ActSeeAdmDocDeg ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_DOWNLD_FILE,Brw_DownloadFile ,NULL ,NULL}, + + /* ActChgToAdmDocDeg */{1257,-1,TabDeg,ActSeeAdmDocDeg ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_ShowFileBrowserOrWorks ,NULL}, + + /* ActAdmDocDeg */{1258,-1,TabDeg,ActSeeAdmDocDeg ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_ShowFileBrowserOrWorks ,NULL}, + /* ActReqRemFilDocDeg*/{1259,-1,TabDeg,ActSeeAdmDocDeg ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_AskRemFileFromTree ,NULL}, + /* ActRemFilDocDeg */{1260,-1,TabDeg,ActSeeAdmDocDeg ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_RemFileFromTree ,NULL}, + /* ActRemFolDocDeg */{1261,-1,TabDeg,ActSeeAdmDocDeg ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_RemFolderFromTree ,NULL}, + /* ActCopDocDeg */{1262,-1,TabDeg,ActSeeAdmDocDeg ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_CopyFromFileBrowser ,NULL}, + /* ActPasDocDeg */{1263,-1,TabDeg,ActSeeAdmDocDeg ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_PasteIntoFileBrowser ,NULL}, + /* ActRemTreDocDeg */{1264,-1,TabDeg,ActSeeAdmDocDeg ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_RemSubtreeInFileBrowser ,NULL}, + /* ActFrmCreDocDeg */{1265,-1,TabDeg,ActSeeAdmDocDeg ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_ShowFormFileBrowser ,NULL}, + /* ActCreFolDocDeg */{1266,-1,TabDeg,ActSeeAdmDocDeg ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_RecFolderFileBrowser ,NULL}, + /* ActCreLnkDocDeg */{1267,-1,TabDeg,ActSeeAdmDocDeg ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_RecLinkFileBrowser ,NULL}, + /* ActRenFolDocDeg */{1268,-1,TabDeg,ActSeeAdmDocDeg ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_RenFolderFileBrowser ,NULL}, + /* ActRcvFilDocDegDZ */{1269,-1,TabDeg,ActSeeAdmDocDeg ,0x100,0x100,0x100,Act_CONTENT_DATA,Act_UPLOAD_FILE,Brw_RcvFileInFileBrwDropzone,NULL ,NULL}, + /* ActRcvFilDocDegCla*/{1270,-1,TabDeg,ActSeeAdmDocDeg ,0x100,0x100,0x100,Act_CONTENT_DATA,Act_MAIN_WINDOW,NULL ,Brw_RcvFileInFileBrwClassic ,NULL}, + /* ActExpAdmDocDeg */{1271,-1,TabDeg,ActSeeAdmDocDeg ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_ExpandFileTree ,NULL}, + /* ActConAdmDocDeg */{1272,-1,TabDeg,ActSeeAdmDocDeg ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_ContractFileTree ,NULL}, + /* ActZIPAdmDocDeg */{1273,-1,TabDeg,ActSeeAdmDocDeg ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,ZIP_CompressFileTree ,NULL}, + /* ActShoDocDeg */{1274,-1,TabDeg,ActSeeAdmDocDeg ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_SetDocumentAsVisible ,NULL}, + /* ActHidDocDeg */{1275,-1,TabDeg,ActSeeAdmDocDeg ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_SetDocumentAsHidden ,NULL}, + /* ActReqDatAdmDocDeg*/{1276,-1,TabDeg,ActSeeAdmDocDeg ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_ShowFileMetadata ,NULL}, + /* ActChgDatAdmDocDeg*/{1277,-1,TabDeg,ActSeeAdmDocDeg ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_ChgFileMetadata ,NULL}, + /* ActDowAdmDocDeg */{1278,-1,TabDeg,ActSeeAdmDocDeg ,0x100,0x100,0x100,Act_CONTENT_NORM,Act_DOWNLD_FILE,Brw_DownloadFile ,NULL ,NULL}, + // TabCrs ****************************************************************** // Actions in menu: /* ActCrsReqSch */{1180, 0,TabCrs,ActCrsReqSch ,0x1FF,0x1FF,0x000,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Sch_ReqCrsSearch ,"search" }, @@ -1463,7 +1664,7 @@ struct Act_Actions Act_Actions[Act_NUM_ACTIONS] = /* ActModIteSylLec */{ 211,-1,TabCrs,ActSeeSyl ,0x110,0x100,0x000,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Syl_ModifyItemSyllabus ,NULL}, /* ActModIteSylPra */{ 216,-1,TabCrs,ActSeeSyl ,0x110,0x100,0x000,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Syl_ModifyItemSyllabus ,NULL}, - /* ActChgToSeeDoc */{1195,-1,TabCrs,ActSeeAdmDocCrs ,0x1FF,0x1FF,0x000,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_ShowFileBrowserOrWorks ,NULL}, + /* ActChgToSeeDocCrs */{1195,-1,TabCrs,ActSeeAdmDocCrs ,0x1FF,0x1FF,0x000,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_ShowFileBrowserOrWorks ,NULL}, /* ActSeeDocCrs */{1078,-1,TabCrs,ActSeeAdmDocCrs ,0x1FF,0x1FF,0x000,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_ShowFileBrowserOrWorks ,NULL}, /* ActExpSeeDocCrs */{ 462,-1,TabCrs,ActSeeAdmDocCrs ,0x118,0x100,0x000,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_ExpandFileTree ,NULL}, @@ -1479,7 +1680,7 @@ struct Act_Actions Act_Actions[Act_NUM_ACTIONS] = /* ActReqDatSeeDocGrp*/{1034,-1,TabCrs,ActSeeAdmDocCrs ,0x1FF,0x1FF,0x000,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_ShowFileMetadata ,NULL}, /* ActDowSeeDocGrp */{1112,-1,TabCrs,ActSeeAdmDocCrs ,0x1FF,0x1FF,0x000,Act_CONTENT_NORM,Act_DOWNLD_FILE,Brw_DownloadFile ,NULL ,NULL}, - /* ActChgToAdmDoc */{1196,-1,TabCrs,ActSeeAdmDocCrs ,0x110,0x100,0x000,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_ShowFileBrowserOrWorks ,NULL}, + /* ActChgToAdmDocCrs */{1196,-1,TabCrs,ActSeeAdmDocCrs ,0x110,0x100,0x000,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_ShowFileBrowserOrWorks ,NULL}, /* ActAdmDocCrs */{ 12,-1,TabCrs,ActSeeAdmDocCrs ,0x110,0x100,0x000,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_ShowFileBrowserOrWorks ,NULL}, /* ActReqRemFilDocCrs*/{ 479,-1,TabCrs,ActSeeAdmDocCrs ,0x110,0x100,0x000,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Brw_AskRemFileFromTree ,NULL}, @@ -3492,8 +3693,8 @@ Act_Action_t Act_FromActCodToAction[1+Act_MAX_ACTION_COD] = // Do not reuse uniq ActHidMrkCrs, // #1192 ActShoMrkGrp, // #1193 ActHidMrkGrp, // #1194 - ActChgToSeeDoc, // #1195 - ActChgToAdmDoc, // #1196 + ActChgToSeeDocCrs, // #1195 + ActChgToAdmDocCrs, // #1196 ActChgToAdmCom, // #1197 ActChgToSeeMrk, // #1198 ActChgToAdmMrk, // #1199 @@ -3547,6 +3748,96 @@ Act_Action_t Act_FromActCodToAction[1+Act_MAX_ACTION_COD] = // Do not reuse uniq ActSeeAdmDocDeg, // #1247 ActSeeAdmDocCtr, // #1248 ActSeeAdmDocIns, // #1249 + + ActChgToSeeDocDeg, // #1250 + ActSeeDocDeg, // #1251 + ActExpSeeDocDeg, // #1252 + ActConSeeDocDeg, // #1253 + ActZIPSeeDocDeg, // #1254 + ActReqDatSeeDocDeg, // #1255 + ActDowSeeDocDeg, // #1256 + ActChgToAdmDocDeg, // #1257 + ActAdmDocDeg, // #1258 + ActReqRemFilDocDeg, // #1259 + ActRemFilDocDeg, // #1260 + ActRemFolDocDeg, // #1261 + ActCopDocDeg, // #1262 + ActPasDocDeg, // #1263 + ActRemTreDocDeg, // #1264 + ActFrmCreDocDeg, // #1265 + ActCreFolDocDeg, // #1266 + ActCreLnkDocDeg, // #1267 + ActRenFolDocDeg, // #1268 + ActRcvFilDocDegDZ, // #1269 + ActRcvFilDocDegCla, // #1270 + ActExpAdmDocDeg, // #1271 + ActConAdmDocDeg, // #1272 + ActZIPAdmDocDeg, // #1273 + ActShoDocDeg, // #1274 + ActHidDocDeg, // #1275 + ActReqDatAdmDocDeg, // #1276 + ActChgDatAdmDocDeg, // #1277 + ActDowAdmDocDeg, // #1278 + + ActChgToSeeDocCtr, // #1279 + ActSeeDocCtr, // #1280 + ActExpSeeDocCtr, // #1281 + ActConSeeDocCtr, // #1282 + ActZIPSeeDocCtr, // #1283 + ActReqDatSeeDocCtr, // #1284 + ActDowSeeDocCtr, // #1285 + ActChgToAdmDocCtr, // #1286 + ActAdmDocCtr, // #1287 + ActReqRemFilDocCtr, // #1288 + ActRemFilDocCtr, // #1289 + ActRemFolDocCtr, // #1290 + ActCopDocCtr, // #1291 + ActPasDocCtr, // #1292 + ActRemTreDocCtr, // #1293 + ActFrmCreDocCtr, // #1294 + ActCreFolDocCtr, // #1295 + ActCreLnkDocCtr, // #1296 + ActRenFolDocCtr, // #1297 + ActRcvFilDocCtrDZ, // #1298 + ActRcvFilDocCtrCla, // #1299 + ActExpAdmDocCtr, // #1300 + ActConAdmDocCtr, // #1301 + ActZIPAdmDocCtr, // #1302 + ActShoDocCtr, // #1303 + ActHidDocCtr, // #1304 + ActReqDatAdmDocCtr, // #1305 + ActChgDatAdmDocCtr, // #1306 + ActDowAdmDocCtr, // #1307 + + ActChgToSeeDocIns, // #1308 + ActSeeDocIns, // #1309 + ActExpSeeDocIns, // #1310 + ActConSeeDocIns, // #1311 + ActZIPSeeDocIns, // #1312 + ActReqDatSeeDocIns, // #1313 + ActDowSeeDocIns, // #1314 + ActChgToAdmDocIns, // #1315 + ActAdmDocIns, // #1316 + ActReqRemFilDocIns, // #1317 + ActRemFilDocIns, // #1318 + ActRemFolDocIns, // #1319 + ActCopDocIns, // #1320 + ActPasDocIns, // #1321 + ActRemTreDocIns, // #1322 + ActFrmCreDocIns, // #1323 + ActCreFolDocIns, // #1324 + ActCreLnkDocIns, // #1325 + ActRenFolDocIns, // #1326 + ActRcvFilDocInsDZ, // #1327 + ActRcvFilDocInsCla, // #1328 + ActExpAdmDocIns, // #1329 + ActConAdmDocIns, // #1330 + ActZIPAdmDocIns, // #1331 + ActShoDocIns, // #1332 + ActHidDocIns, // #1333 + ActReqDatAdmDocIns, // #1334 + ActChgDatAdmDocIns, // #1335 + ActDowAdmDocIns, // #1336 }; /*****************************************************************************/ diff --git a/swad_action.h b/swad_action.h index ab1de6bdf..800b0e79f 100644 --- a/swad_action.h +++ b/swad_action.h @@ -69,9 +69,9 @@ typedef enum typedef int Act_Action_t; // Must be a signed type, because -1 is used to indicate obsolete action -#define Act_NUM_ACTIONS (7+52+15+41+24+19+204+184+94+168+28+75) +#define Act_NUM_ACTIONS (7+52+15+70+53+48+204+184+94+168+28+75) -#define Act_MAX_ACTION_COD 1249 +#define Act_MAX_ACTION_COD 1336 #define Act_MAX_OPTIONS_IN_MENU_PER_TAB 20 @@ -224,287 +224,375 @@ typedef int Act_Action_t; // Must be a signed type, because -1 is used to indica #define ActChgHldEndDat (ActChgInsSta+ 40) #define ActRenHld (ActChgInsSta+ 41) +#define ActChgToSeeDocIns (ActChgInsSta+ 42) +#define ActSeeDocIns (ActChgInsSta+ 43) +#define ActExpSeeDocIns (ActChgInsSta+ 44) +#define ActConSeeDocIns (ActChgInsSta+ 45) +#define ActZIPSeeDocIns (ActChgInsSta+ 46) +#define ActReqDatSeeDocIns (ActChgInsSta+ 47) +#define ActDowSeeDocIns (ActChgInsSta+ 48) +#define ActChgToAdmDocIns (ActChgInsSta+ 49) +#define ActAdmDocIns (ActChgInsSta+ 50) +#define ActReqRemFilDocIns (ActChgInsSta+ 51) +#define ActRemFilDocIns (ActChgInsSta+ 52) +#define ActRemFolDocIns (ActChgInsSta+ 53) +#define ActCopDocIns (ActChgInsSta+ 54) +#define ActPasDocIns (ActChgInsSta+ 55) +#define ActRemTreDocIns (ActChgInsSta+ 56) +#define ActFrmCreDocIns (ActChgInsSta+ 57) +#define ActCreFolDocIns (ActChgInsSta+ 58) +#define ActCreLnkDocIns (ActChgInsSta+ 59) +#define ActRenFolDocIns (ActChgInsSta+ 60) +#define ActRcvFilDocInsDZ (ActChgInsSta+ 61) +#define ActRcvFilDocInsCla (ActChgInsSta+ 62) +#define ActExpAdmDocIns (ActChgInsSta+ 63) +#define ActConAdmDocIns (ActChgInsSta+ 64) +#define ActZIPAdmDocIns (ActChgInsSta+ 65) +#define ActShoDocIns (ActChgInsSta+ 66) +#define ActHidDocIns (ActChgInsSta+ 67) +#define ActReqDatAdmDocIns (ActChgInsSta+ 68) +#define ActChgDatAdmDocIns (ActChgInsSta+ 69) +#define ActDowAdmDocIns (ActChgInsSta+ 70) + /*****************************************************************************/ /********************************* Centre tab ********************************/ /*****************************************************************************/ // Actions in menu -#define ActCtrReqSch (ActRenHld+ 1) -#define ActSeeCtrInf (ActRenHld+ 2) -#define ActSeeDeg (ActRenHld+ 3) -#define ActSeeAdmDocCtr (ActRenHld+ 4) +#define ActCtrReqSch (ActDowAdmDocIns+ 1) +#define ActSeeCtrInf (ActDowAdmDocIns+ 2) +#define ActSeeDeg (ActDowAdmDocIns+ 3) +#define ActSeeAdmDocCtr (ActDowAdmDocIns+ 4) // Secondary actions -#define ActCtrSch (ActRenHld+ 5) -#define ActPrnCtrInf (ActRenHld+ 6) -#define ActReqCtrLog (ActRenHld+ 7) -#define ActRecCtrLog (ActRenHld+ 8) -#define ActReqCtrPho (ActRenHld+ 9) -#define ActRecCtrPho (ActRenHld+ 10) -#define ActChgCtrPhoAtt (ActRenHld+ 11) +#define ActCtrSch (ActDowAdmDocIns+ 5) +#define ActPrnCtrInf (ActDowAdmDocIns+ 6) +#define ActReqCtrLog (ActDowAdmDocIns+ 7) +#define ActRecCtrLog (ActDowAdmDocIns+ 8) +#define ActReqCtrPho (ActDowAdmDocIns+ 9) +#define ActRecCtrPho (ActDowAdmDocIns+ 10) +#define ActChgCtrPhoAtt (ActDowAdmDocIns+ 11) -#define ActEdiDeg (ActRenHld+ 12) -#define ActReqDeg (ActRenHld+ 13) -#define ActNewDeg (ActRenHld+ 14) -#define ActRemDeg (ActRenHld+ 15) -#define ActRenDegSho (ActRenHld+ 16) -#define ActRenDegFul (ActRenHld+ 17) -#define ActChgDegTyp (ActRenHld+ 18) -#define ActChgDegCtr (ActRenHld+ 19) -#define ActChgDegFstYea (ActRenHld+ 20) -#define ActChgDegLstYea (ActRenHld+ 21) -#define ActChgDegOptYea (ActRenHld+ 22) -#define ActChgDegWWW (ActRenHld+ 23) -#define ActChgDegSta (ActRenHld+ 24) +#define ActEdiDeg (ActDowAdmDocIns+ 12) +#define ActReqDeg (ActDowAdmDocIns+ 13) +#define ActNewDeg (ActDowAdmDocIns+ 14) +#define ActRemDeg (ActDowAdmDocIns+ 15) +#define ActRenDegSho (ActDowAdmDocIns+ 16) +#define ActRenDegFul (ActDowAdmDocIns+ 17) +#define ActChgDegTyp (ActDowAdmDocIns+ 18) +#define ActChgDegCtr (ActDowAdmDocIns+ 19) +#define ActChgDegFstYea (ActDowAdmDocIns+ 20) +#define ActChgDegLstYea (ActDowAdmDocIns+ 21) +#define ActChgDegOptYea (ActDowAdmDocIns+ 22) +#define ActChgDegWWW (ActDowAdmDocIns+ 23) +#define ActChgDegSta (ActDowAdmDocIns+ 24) + +#define ActChgToSeeDocCtr (ActDowAdmDocIns+ 25) +#define ActSeeDocCtr (ActDowAdmDocIns+ 26) +#define ActExpSeeDocCtr (ActDowAdmDocIns+ 27) +#define ActConSeeDocCtr (ActDowAdmDocIns+ 28) +#define ActZIPSeeDocCtr (ActDowAdmDocIns+ 29) +#define ActReqDatSeeDocCtr (ActDowAdmDocIns+ 30) +#define ActDowSeeDocCtr (ActDowAdmDocIns+ 31) +#define ActChgToAdmDocCtr (ActDowAdmDocIns+ 32) +#define ActAdmDocCtr (ActDowAdmDocIns+ 33) +#define ActReqRemFilDocCtr (ActDowAdmDocIns+ 34) +#define ActRemFilDocCtr (ActDowAdmDocIns+ 35) +#define ActRemFolDocCtr (ActDowAdmDocIns+ 36) +#define ActCopDocCtr (ActDowAdmDocIns+ 37) +#define ActPasDocCtr (ActDowAdmDocIns+ 38) +#define ActRemTreDocCtr (ActDowAdmDocIns+ 39) +#define ActFrmCreDocCtr (ActDowAdmDocIns+ 40) +#define ActCreFolDocCtr (ActDowAdmDocIns+ 41) +#define ActCreLnkDocCtr (ActDowAdmDocIns+ 42) +#define ActRenFolDocCtr (ActDowAdmDocIns+ 43) +#define ActRcvFilDocCtrDZ (ActDowAdmDocIns+ 44) +#define ActRcvFilDocCtrCla (ActDowAdmDocIns+ 45) +#define ActExpAdmDocCtr (ActDowAdmDocIns+ 46) +#define ActConAdmDocCtr (ActDowAdmDocIns+ 47) +#define ActZIPAdmDocCtr (ActDowAdmDocIns+ 48) +#define ActShoDocCtr (ActDowAdmDocIns+ 49) +#define ActHidDocCtr (ActDowAdmDocIns+ 50) +#define ActReqDatAdmDocCtr (ActDowAdmDocIns+ 51) +#define ActChgDatAdmDocCtr (ActDowAdmDocIns+ 52) +#define ActDowAdmDocCtr (ActDowAdmDocIns+ 53) /*****************************************************************************/ /********************************* Degree tab ********************************/ /*****************************************************************************/ // Actions in menu -#define ActDegReqSch (ActChgDegSta+ 1) -#define ActSeeDegInf (ActChgDegSta+ 2) -#define ActSeeCrs (ActChgDegSta+ 3) -#define ActSeeAdmDocDeg (ActChgDegSta+ 4) +#define ActDegReqSch (ActDowAdmDocCtr+ 1) +#define ActSeeDegInf (ActDowAdmDocCtr+ 2) +#define ActSeeCrs (ActDowAdmDocCtr+ 3) +#define ActSeeAdmDocDeg (ActDowAdmDocCtr+ 4) // Secondary actions -#define ActDegSch (ActChgDegSta+ 5) -#define ActPrnDegInf (ActChgDegSta+ 6) -#define ActReqDegLog (ActChgDegSta+ 7) -#define ActRecDegLog (ActChgDegSta+ 8) +#define ActDegSch (ActDowAdmDocCtr+ 5) +#define ActPrnDegInf (ActDowAdmDocCtr+ 6) +#define ActReqDegLog (ActDowAdmDocCtr+ 7) +#define ActRecDegLog (ActDowAdmDocCtr+ 8) -#define ActEdiCrs (ActChgDegSta+ 9) -#define ActReqCrs (ActChgDegSta+ 10) -#define ActNewCrs (ActChgDegSta+ 11) -#define ActRemCrs (ActChgDegSta+ 12) -#define ActChgInsCrsCod (ActChgDegSta+ 13) -#define ActChgCrsDeg (ActChgDegSta+ 14) -#define ActChgCrsYea (ActChgDegSta+ 15) -#define ActChgCrsSem (ActChgDegSta+ 16) -#define ActRenCrsSho (ActChgDegSta+ 17) -#define ActRenCrsFul (ActChgDegSta+ 18) -#define ActChgCrsSta (ActChgDegSta+ 19) +#define ActEdiCrs (ActDowAdmDocCtr+ 9) +#define ActReqCrs (ActDowAdmDocCtr+ 10) +#define ActNewCrs (ActDowAdmDocCtr+ 11) +#define ActRemCrs (ActDowAdmDocCtr+ 12) +#define ActChgInsCrsCod (ActDowAdmDocCtr+ 13) +#define ActChgCrsDeg (ActDowAdmDocCtr+ 14) +#define ActChgCrsYea (ActDowAdmDocCtr+ 15) +#define ActChgCrsSem (ActDowAdmDocCtr+ 16) +#define ActRenCrsSho (ActDowAdmDocCtr+ 17) +#define ActRenCrsFul (ActDowAdmDocCtr+ 18) +#define ActChgCrsSta (ActDowAdmDocCtr+ 19) + +#define ActChgToSeeDocDeg (ActDowAdmDocCtr+ 20) +#define ActSeeDocDeg (ActDowAdmDocCtr+ 21) +#define ActExpSeeDocDeg (ActDowAdmDocCtr+ 22) +#define ActConSeeDocDeg (ActDowAdmDocCtr+ 23) +#define ActZIPSeeDocDeg (ActDowAdmDocCtr+ 24) +#define ActReqDatSeeDocDeg (ActDowAdmDocCtr+ 25) +#define ActDowSeeDocDeg (ActDowAdmDocCtr+ 26) +#define ActChgToAdmDocDeg (ActDowAdmDocCtr+ 27) +#define ActAdmDocDeg (ActDowAdmDocCtr+ 28) +#define ActReqRemFilDocDeg (ActDowAdmDocCtr+ 29) +#define ActRemFilDocDeg (ActDowAdmDocCtr+ 30) +#define ActRemFolDocDeg (ActDowAdmDocCtr+ 31) +#define ActCopDocDeg (ActDowAdmDocCtr+ 32) +#define ActPasDocDeg (ActDowAdmDocCtr+ 33) +#define ActRemTreDocDeg (ActDowAdmDocCtr+ 34) +#define ActFrmCreDocDeg (ActDowAdmDocCtr+ 35) +#define ActCreFolDocDeg (ActDowAdmDocCtr+ 36) +#define ActCreLnkDocDeg (ActDowAdmDocCtr+ 37) +#define ActRenFolDocDeg (ActDowAdmDocCtr+ 38) +#define ActRcvFilDocDegDZ (ActDowAdmDocCtr+ 39) +#define ActRcvFilDocDegCla (ActDowAdmDocCtr+ 40) +#define ActExpAdmDocDeg (ActDowAdmDocCtr+ 41) +#define ActConAdmDocDeg (ActDowAdmDocCtr+ 42) +#define ActZIPAdmDocDeg (ActDowAdmDocCtr+ 43) +#define ActShoDocDeg (ActDowAdmDocCtr+ 44) +#define ActHidDocDeg (ActDowAdmDocCtr+ 45) +#define ActReqDatAdmDocDeg (ActDowAdmDocCtr+ 46) +#define ActChgDatAdmDocDeg (ActDowAdmDocCtr+ 47) +#define ActDowAdmDocDeg (ActDowAdmDocCtr+ 48) /*****************************************************************************/ /******************************** Course tab *********************************/ /*****************************************************************************/ // Actions in menu -#define ActCrsReqSch (ActChgCrsSta+ 1) -#define ActSeeCrsInf (ActChgCrsSta+ 2) -#define ActSeeTchGui (ActChgCrsSta+ 3) -#define ActSeeSyl (ActChgCrsSta+ 4) -#define ActSeeAdmDocCrs (ActChgCrsSta+ 5) -#define ActAdmCom (ActChgCrsSta+ 6) -#define ActSeeCrsTimTbl (ActChgCrsSta+ 7) -#define ActSeeBib (ActChgCrsSta+ 8) -#define ActSeeFAQ (ActChgCrsSta+ 9) -#define ActSeeCrsLnk (ActChgCrsSta+ 10) +#define ActCrsReqSch (ActDowAdmDocDeg+ 1) +#define ActSeeCrsInf (ActDowAdmDocDeg+ 2) +#define ActSeeTchGui (ActDowAdmDocDeg+ 3) +#define ActSeeSyl (ActDowAdmDocDeg+ 4) +#define ActSeeAdmDocCrs (ActDowAdmDocDeg+ 5) +#define ActAdmCom (ActDowAdmDocDeg+ 6) +#define ActSeeCrsTimTbl (ActDowAdmDocDeg+ 7) +#define ActSeeBib (ActDowAdmDocDeg+ 8) +#define ActSeeFAQ (ActDowAdmDocDeg+ 9) +#define ActSeeCrsLnk (ActDowAdmDocDeg+ 10) // Secondary actions -#define ActCrsSch (ActChgCrsSta+ 11) -#define ActPrnCrsInf (ActChgCrsSta+ 12) -#define ActChgCrsLog (ActChgCrsSta+ 13) -#define ActEdiCrsInf (ActChgCrsSta+ 14) -#define ActEdiTchGui (ActChgCrsSta+ 15) -#define ActPrnCrsTimTbl (ActChgCrsSta+ 16) -#define ActEdiCrsTimTbl (ActChgCrsSta+ 17) -#define ActChgCrsTimTbl (ActChgCrsSta+ 18) -#define ActSeeSylLec (ActChgCrsSta+ 19) -#define ActSeeSylPra (ActChgCrsSta+ 20) -#define ActEdiSylLec (ActChgCrsSta+ 21) -#define ActEdiSylPra (ActChgCrsSta+ 22) -#define ActDelItmSylLec (ActChgCrsSta+ 23) -#define ActDelItmSylPra (ActChgCrsSta+ 24) -#define ActUp_IteSylLec (ActChgCrsSta+ 25) -#define ActUp_IteSylPra (ActChgCrsSta+ 26) -#define ActDwnIteSylLec (ActChgCrsSta+ 27) -#define ActDwnIteSylPra (ActChgCrsSta+ 28) -#define ActRgtIteSylLec (ActChgCrsSta+ 29) -#define ActRgtIteSylPra (ActChgCrsSta+ 30) -#define ActLftIteSylLec (ActChgCrsSta+ 31) -#define ActLftIteSylPra (ActChgCrsSta+ 32) -#define ActInsIteSylLec (ActChgCrsSta+ 33) -#define ActInsIteSylPra (ActChgCrsSta+ 34) -#define ActModIteSylLec (ActChgCrsSta+ 35) -#define ActModIteSylPra (ActChgCrsSta+ 36) +#define ActCrsSch (ActDowAdmDocDeg+ 11) +#define ActPrnCrsInf (ActDowAdmDocDeg+ 12) +#define ActChgCrsLog (ActDowAdmDocDeg+ 13) +#define ActEdiCrsInf (ActDowAdmDocDeg+ 14) +#define ActEdiTchGui (ActDowAdmDocDeg+ 15) +#define ActPrnCrsTimTbl (ActDowAdmDocDeg+ 16) +#define ActEdiCrsTimTbl (ActDowAdmDocDeg+ 17) +#define ActChgCrsTimTbl (ActDowAdmDocDeg+ 18) +#define ActSeeSylLec (ActDowAdmDocDeg+ 19) +#define ActSeeSylPra (ActDowAdmDocDeg+ 20) +#define ActEdiSylLec (ActDowAdmDocDeg+ 21) +#define ActEdiSylPra (ActDowAdmDocDeg+ 22) +#define ActDelItmSylLec (ActDowAdmDocDeg+ 23) +#define ActDelItmSylPra (ActDowAdmDocDeg+ 24) +#define ActUp_IteSylLec (ActDowAdmDocDeg+ 25) +#define ActUp_IteSylPra (ActDowAdmDocDeg+ 26) +#define ActDwnIteSylLec (ActDowAdmDocDeg+ 27) +#define ActDwnIteSylPra (ActDowAdmDocDeg+ 28) +#define ActRgtIteSylLec (ActDowAdmDocDeg+ 29) +#define ActRgtIteSylPra (ActDowAdmDocDeg+ 30) +#define ActLftIteSylLec (ActDowAdmDocDeg+ 31) +#define ActLftIteSylPra (ActDowAdmDocDeg+ 32) +#define ActInsIteSylLec (ActDowAdmDocDeg+ 33) +#define ActInsIteSylPra (ActDowAdmDocDeg+ 34) +#define ActModIteSylLec (ActDowAdmDocDeg+ 35) +#define ActModIteSylPra (ActDowAdmDocDeg+ 36) -#define ActChgToSeeDoc (ActChgCrsSta+ 37) +#define ActChgToSeeDocCrs (ActDowAdmDocDeg+ 37) +#define ActSeeDocCrs (ActDowAdmDocDeg+ 38) +#define ActExpSeeDocCrs (ActDowAdmDocDeg+ 39) +#define ActConSeeDocCrs (ActDowAdmDocDeg+ 40) +#define ActZIPSeeDocCrs (ActDowAdmDocDeg+ 41) +#define ActReqDatSeeDocCrs (ActDowAdmDocDeg+ 42) +#define ActDowSeeDocCrs (ActDowAdmDocDeg+ 43) -#define ActSeeDocCrs (ActChgCrsSta+ 38) -#define ActExpSeeDocCrs (ActChgCrsSta+ 39) -#define ActConSeeDocCrs (ActChgCrsSta+ 40) -#define ActZIPSeeDocCrs (ActChgCrsSta+ 41) -#define ActReqDatSeeDocCrs (ActChgCrsSta+ 42) -#define ActDowSeeDocCrs (ActChgCrsSta+ 43) +#define ActSeeDocGrp (ActDowAdmDocDeg+ 44) +#define ActExpSeeDocGrp (ActDowAdmDocDeg+ 45) +#define ActConSeeDocGrp (ActDowAdmDocDeg+ 46) +#define ActZIPSeeDocGrp (ActDowAdmDocDeg+ 47) +#define ActReqDatSeeDocGrp (ActDowAdmDocDeg+ 48) +#define ActDowSeeDocGrp (ActDowAdmDocDeg+ 49) -#define ActSeeDocGrp (ActChgCrsSta+ 44) -#define ActExpSeeDocGrp (ActChgCrsSta+ 45) -#define ActConSeeDocGrp (ActChgCrsSta+ 46) -#define ActZIPSeeDocGrp (ActChgCrsSta+ 47) -#define ActReqDatSeeDocGrp (ActChgCrsSta+ 48) -#define ActDowSeeDocGrp (ActChgCrsSta+ 49) +#define ActChgToAdmDocCrs (ActDowAdmDocDeg+ 50) +#define ActAdmDocCrs (ActDowAdmDocDeg+ 51) +#define ActReqRemFilDocCrs (ActDowAdmDocDeg+ 52) +#define ActRemFilDocCrs (ActDowAdmDocDeg+ 53) +#define ActRemFolDocCrs (ActDowAdmDocDeg+ 54) +#define ActCopDocCrs (ActDowAdmDocDeg+ 55) +#define ActPasDocCrs (ActDowAdmDocDeg+ 56) +#define ActRemTreDocCrs (ActDowAdmDocDeg+ 57) +#define ActFrmCreDocCrs (ActDowAdmDocDeg+ 58) +#define ActCreFolDocCrs (ActDowAdmDocDeg+ 59) +#define ActCreLnkDocCrs (ActDowAdmDocDeg+ 60) +#define ActRenFolDocCrs (ActDowAdmDocDeg+ 61) +#define ActRcvFilDocCrsDZ (ActDowAdmDocDeg+ 62) +#define ActRcvFilDocCrsCla (ActDowAdmDocDeg+ 63) +#define ActExpAdmDocCrs (ActDowAdmDocDeg+ 64) +#define ActConAdmDocCrs (ActDowAdmDocDeg+ 65) +#define ActZIPAdmDocCrs (ActDowAdmDocDeg+ 66) +#define ActShoDocCrs (ActDowAdmDocDeg+ 67) +#define ActHidDocCrs (ActDowAdmDocDeg+ 68) +#define ActReqDatAdmDocCrs (ActDowAdmDocDeg+ 69) +#define ActChgDatAdmDocCrs (ActDowAdmDocDeg+ 70) +#define ActDowAdmDocCrs (ActDowAdmDocDeg+ 71) -#define ActChgToAdmDoc (ActChgCrsSta+ 50) +#define ActAdmDocGrp (ActDowAdmDocDeg+ 72) +#define ActReqRemFilDocGrp (ActDowAdmDocDeg+ 73) +#define ActRemFilDocGrp (ActDowAdmDocDeg+ 74) +#define ActRemFolDocGrp (ActDowAdmDocDeg+ 75) +#define ActCopDocGrp (ActDowAdmDocDeg+ 76) +#define ActPasDocGrp (ActDowAdmDocDeg+ 77) +#define ActRemTreDocGrp (ActDowAdmDocDeg+ 78) +#define ActFrmCreDocGrp (ActDowAdmDocDeg+ 79) +#define ActCreFolDocGrp (ActDowAdmDocDeg+ 80) +#define ActCreLnkDocGrp (ActDowAdmDocDeg+ 81) +#define ActRenFolDocGrp (ActDowAdmDocDeg+ 82) +#define ActRcvFilDocGrpDZ (ActDowAdmDocDeg+ 83) +#define ActRcvFilDocGrpCla (ActDowAdmDocDeg+ 84) +#define ActExpAdmDocGrp (ActDowAdmDocDeg+ 85) +#define ActConAdmDocGrp (ActDowAdmDocDeg+ 86) +#define ActZIPAdmDocGrp (ActDowAdmDocDeg+ 87) +#define ActShoDocGrp (ActDowAdmDocDeg+ 88) +#define ActHidDocGrp (ActDowAdmDocDeg+ 89) +#define ActReqDatAdmDocGrp (ActDowAdmDocDeg+ 90) +#define ActChgDatAdmDocGrp (ActDowAdmDocDeg+ 91) +#define ActDowAdmDocGrp (ActDowAdmDocDeg+ 92) -#define ActAdmDocCrs (ActChgCrsSta+ 51) -#define ActReqRemFilDocCrs (ActChgCrsSta+ 52) -#define ActRemFilDocCrs (ActChgCrsSta+ 53) -#define ActRemFolDocCrs (ActChgCrsSta+ 54) -#define ActCopDocCrs (ActChgCrsSta+ 55) -#define ActPasDocCrs (ActChgCrsSta+ 56) -#define ActRemTreDocCrs (ActChgCrsSta+ 57) -#define ActFrmCreDocCrs (ActChgCrsSta+ 58) -#define ActCreFolDocCrs (ActChgCrsSta+ 59) -#define ActCreLnkDocCrs (ActChgCrsSta+ 60) -#define ActRenFolDocCrs (ActChgCrsSta+ 61) -#define ActRcvFilDocCrsDZ (ActChgCrsSta+ 62) -#define ActRcvFilDocCrsCla (ActChgCrsSta+ 63) -#define ActExpAdmDocCrs (ActChgCrsSta+ 64) -#define ActConAdmDocCrs (ActChgCrsSta+ 65) -#define ActZIPAdmDocCrs (ActChgCrsSta+ 66) -#define ActShoDocCrs (ActChgCrsSta+ 67) -#define ActHidDocCrs (ActChgCrsSta+ 68) -#define ActReqDatAdmDocCrs (ActChgCrsSta+ 69) -#define ActChgDatAdmDocCrs (ActChgCrsSta+ 70) -#define ActDowAdmDocCrs (ActChgCrsSta+ 71) +#define ActChgToAdmCom (ActDowAdmDocDeg+ 93) -#define ActAdmDocGrp (ActChgCrsSta+ 72) -#define ActReqRemFilDocGrp (ActChgCrsSta+ 73) -#define ActRemFilDocGrp (ActChgCrsSta+ 74) -#define ActRemFolDocGrp (ActChgCrsSta+ 75) -#define ActCopDocGrp (ActChgCrsSta+ 76) -#define ActPasDocGrp (ActChgCrsSta+ 77) -#define ActRemTreDocGrp (ActChgCrsSta+ 78) -#define ActFrmCreDocGrp (ActChgCrsSta+ 79) -#define ActCreFolDocGrp (ActChgCrsSta+ 80) -#define ActCreLnkDocGrp (ActChgCrsSta+ 81) -#define ActRenFolDocGrp (ActChgCrsSta+ 82) -#define ActRcvFilDocGrpDZ (ActChgCrsSta+ 83) -#define ActRcvFilDocGrpCla (ActChgCrsSta+ 84) -#define ActExpAdmDocGrp (ActChgCrsSta+ 85) -#define ActConAdmDocGrp (ActChgCrsSta+ 86) -#define ActZIPAdmDocGrp (ActChgCrsSta+ 87) -#define ActShoDocGrp (ActChgCrsSta+ 88) -#define ActHidDocGrp (ActChgCrsSta+ 89) -#define ActReqDatAdmDocGrp (ActChgCrsSta+ 90) -#define ActChgDatAdmDocGrp (ActChgCrsSta+ 91) -#define ActDowAdmDocGrp (ActChgCrsSta+ 92) +#define ActAdmComCrs (ActDowAdmDocDeg+ 94) +#define ActReqRemFilComCrs (ActDowAdmDocDeg+ 95) +#define ActRemFilComCrs (ActDowAdmDocDeg+ 96) +#define ActRemFolComCrs (ActDowAdmDocDeg+ 97) +#define ActCopComCrs (ActDowAdmDocDeg+ 98) +#define ActPasComCrs (ActDowAdmDocDeg+ 99) +#define ActRemTreComCrs (ActDowAdmDocDeg+100) +#define ActFrmCreComCrs (ActDowAdmDocDeg+101) +#define ActCreFolComCrs (ActDowAdmDocDeg+102) +#define ActCreLnkComCrs (ActDowAdmDocDeg+103) +#define ActRenFolComCrs (ActDowAdmDocDeg+104) +#define ActRcvFilComCrsDZ (ActDowAdmDocDeg+105) +#define ActRcvFilComCrsCla (ActDowAdmDocDeg+106) +#define ActExpComCrs (ActDowAdmDocDeg+107) +#define ActConComCrs (ActDowAdmDocDeg+108) +#define ActZIPComCrs (ActDowAdmDocDeg+109) +#define ActReqDatComCrs (ActDowAdmDocDeg+110) +#define ActChgDatComCrs (ActDowAdmDocDeg+111) +#define ActDowComCrs (ActDowAdmDocDeg+112) -#define ActChgToAdmCom (ActChgCrsSta+ 93) +#define ActAdmComGrp (ActDowAdmDocDeg+113) +#define ActReqRemFilComGrp (ActDowAdmDocDeg+114) +#define ActRemFilComGrp (ActDowAdmDocDeg+115) +#define ActRemFolComGrp (ActDowAdmDocDeg+116) +#define ActCopComGrp (ActDowAdmDocDeg+117) +#define ActPasComGrp (ActDowAdmDocDeg+118) +#define ActRemTreComGrp (ActDowAdmDocDeg+119) +#define ActFrmCreComGrp (ActDowAdmDocDeg+120) +#define ActCreFolComGrp (ActDowAdmDocDeg+121) +#define ActCreLnkComGrp (ActDowAdmDocDeg+122) +#define ActRenFolComGrp (ActDowAdmDocDeg+123) +#define ActRcvFilComGrpDZ (ActDowAdmDocDeg+124) +#define ActRcvFilComGrpCla (ActDowAdmDocDeg+125) +#define ActExpComGrp (ActDowAdmDocDeg+126) +#define ActConComGrp (ActDowAdmDocDeg+127) +#define ActZIPComGrp (ActDowAdmDocDeg+128) +#define ActReqDatComGrp (ActDowAdmDocDeg+129) +#define ActChgDatComGrp (ActDowAdmDocDeg+130) +#define ActDowComGrp (ActDowAdmDocDeg+131) -#define ActAdmComCrs (ActChgCrsSta+ 94) -#define ActReqRemFilComCrs (ActChgCrsSta+ 95) -#define ActRemFilComCrs (ActChgCrsSta+ 96) -#define ActRemFolComCrs (ActChgCrsSta+ 97) -#define ActCopComCrs (ActChgCrsSta+ 98) -#define ActPasComCrs (ActChgCrsSta+ 99) -#define ActRemTreComCrs (ActChgCrsSta+100) -#define ActFrmCreComCrs (ActChgCrsSta+101) -#define ActCreFolComCrs (ActChgCrsSta+102) -#define ActCreLnkComCrs (ActChgCrsSta+103) -#define ActRenFolComCrs (ActChgCrsSta+104) -#define ActRcvFilComCrsDZ (ActChgCrsSta+105) -#define ActRcvFilComCrsCla (ActChgCrsSta+106) -#define ActExpComCrs (ActChgCrsSta+107) -#define ActConComCrs (ActChgCrsSta+108) -#define ActZIPComCrs (ActChgCrsSta+109) -#define ActReqDatComCrs (ActChgCrsSta+110) -#define ActChgDatComCrs (ActChgCrsSta+111) -#define ActDowComCrs (ActChgCrsSta+112) +#define ActEdiBib (ActDowAdmDocDeg+132) +#define ActEdiFAQ (ActDowAdmDocDeg+133) +#define ActEdiCrsLnk (ActDowAdmDocDeg+134) -#define ActAdmComGrp (ActChgCrsSta+113) -#define ActReqRemFilComGrp (ActChgCrsSta+114) -#define ActRemFilComGrp (ActChgCrsSta+115) -#define ActRemFolComGrp (ActChgCrsSta+116) -#define ActCopComGrp (ActChgCrsSta+117) -#define ActPasComGrp (ActChgCrsSta+118) -#define ActRemTreComGrp (ActChgCrsSta+119) -#define ActFrmCreComGrp (ActChgCrsSta+120) -#define ActCreFolComGrp (ActChgCrsSta+121) -#define ActCreLnkComGrp (ActChgCrsSta+122) -#define ActRenFolComGrp (ActChgCrsSta+123) -#define ActRcvFilComGrpDZ (ActChgCrsSta+124) -#define ActRcvFilComGrpCla (ActChgCrsSta+125) -#define ActExpComGrp (ActChgCrsSta+126) -#define ActConComGrp (ActChgCrsSta+127) -#define ActZIPComGrp (ActChgCrsSta+128) -#define ActReqDatComGrp (ActChgCrsSta+129) -#define ActChgDatComGrp (ActChgCrsSta+130) -#define ActDowComGrp (ActChgCrsSta+131) +#define ActChgFrcReaCrsInf (ActDowAdmDocDeg+135) +#define ActChgFrcReaTchGui (ActDowAdmDocDeg+136) +#define ActChgFrcReaSylLec (ActDowAdmDocDeg+137) +#define ActChgFrcReaSylPra (ActDowAdmDocDeg+138) +#define ActChgFrcReaBib (ActDowAdmDocDeg+139) +#define ActChgFrcReaFAQ (ActDowAdmDocDeg+140) +#define ActChgFrcReaCrsLnk (ActDowAdmDocDeg+141) -#define ActEdiBib (ActChgCrsSta+132) -#define ActEdiFAQ (ActChgCrsSta+133) -#define ActEdiCrsLnk (ActChgCrsSta+134) +#define ActChgHavReaCrsInf (ActDowAdmDocDeg+142) +#define ActChgHavReaTchGui (ActDowAdmDocDeg+143) +#define ActChgHavReaSylLec (ActDowAdmDocDeg+144) +#define ActChgHavReaSylPra (ActDowAdmDocDeg+145) +#define ActChgHavReaBib (ActDowAdmDocDeg+146) +#define ActChgHavReaFAQ (ActDowAdmDocDeg+147) +#define ActChgHavReaCrsLnk (ActDowAdmDocDeg+148) -#define ActChgFrcReaCrsInf (ActChgCrsSta+135) -#define ActChgFrcReaTchGui (ActChgCrsSta+136) -#define ActChgFrcReaSylLec (ActChgCrsSta+137) -#define ActChgFrcReaSylPra (ActChgCrsSta+138) -#define ActChgFrcReaBib (ActChgCrsSta+139) -#define ActChgFrcReaFAQ (ActChgCrsSta+140) -#define ActChgFrcReaCrsLnk (ActChgCrsSta+141) - -#define ActChgHavReaCrsInf (ActChgCrsSta+142) -#define ActChgHavReaTchGui (ActChgCrsSta+143) -#define ActChgHavReaSylLec (ActChgCrsSta+144) -#define ActChgHavReaSylPra (ActChgCrsSta+145) -#define ActChgHavReaBib (ActChgCrsSta+146) -#define ActChgHavReaFAQ (ActChgCrsSta+147) -#define ActChgHavReaCrsLnk (ActChgCrsSta+148) - -#define ActSelInfSrcCrsInf (ActChgCrsSta+149) -#define ActSelInfSrcTchGui (ActChgCrsSta+150) -#define ActSelInfSrcSylLec (ActChgCrsSta+151) -#define ActSelInfSrcSylPra (ActChgCrsSta+152) -#define ActSelInfSrcBib (ActChgCrsSta+153) -#define ActSelInfSrcFAQ (ActChgCrsSta+154) -#define ActSelInfSrcCrsLnk (ActChgCrsSta+155) -#define ActRcvURLCrsInf (ActChgCrsSta+156) -#define ActRcvURLTchGui (ActChgCrsSta+157) -#define ActRcvURLSylLec (ActChgCrsSta+158) -#define ActRcvURLSylPra (ActChgCrsSta+159) -#define ActRcvURLBib (ActChgCrsSta+160) -#define ActRcvURLFAQ (ActChgCrsSta+161) -#define ActRcvURLCrsLnk (ActChgCrsSta+162) -#define ActRcvPagCrsInf (ActChgCrsSta+163) -#define ActRcvPagTchGui (ActChgCrsSta+164) -#define ActRcvPagSylLec (ActChgCrsSta+165) -#define ActRcvPagSylPra (ActChgCrsSta+166) -#define ActRcvPagBib (ActChgCrsSta+167) -#define ActRcvPagFAQ (ActChgCrsSta+168) -#define ActRcvPagCrsLnk (ActChgCrsSta+169) -#define ActEditorCrsInf (ActChgCrsSta+170) -#define ActEditorTchGui (ActChgCrsSta+171) -#define ActEditorSylLec (ActChgCrsSta+172) -#define ActEditorSylPra (ActChgCrsSta+173) -#define ActEditorBib (ActChgCrsSta+174) -#define ActEditorFAQ (ActChgCrsSta+175) -#define ActEditorCrsLnk (ActChgCrsSta+176) -#define ActPlaTxtEdiCrsInf (ActChgCrsSta+177) -#define ActPlaTxtEdiTchGui (ActChgCrsSta+178) -#define ActPlaTxtEdiSylLec (ActChgCrsSta+179) -#define ActPlaTxtEdiSylPra (ActChgCrsSta+180) -#define ActPlaTxtEdiBib (ActChgCrsSta+181) -#define ActPlaTxtEdiFAQ (ActChgCrsSta+182) -#define ActPlaTxtEdiCrsLnk (ActChgCrsSta+183) -#define ActRchTxtEdiCrsInf (ActChgCrsSta+184) -#define ActRchTxtEdiTchGui (ActChgCrsSta+185) -#define ActRchTxtEdiSylLec (ActChgCrsSta+186) -#define ActRchTxtEdiSylPra (ActChgCrsSta+187) -#define ActRchTxtEdiBib (ActChgCrsSta+188) -#define ActRchTxtEdiFAQ (ActChgCrsSta+189) -#define ActRchTxtEdiCrsLnk (ActChgCrsSta+190) -#define ActRcvPlaTxtCrsInf (ActChgCrsSta+191) -#define ActRcvPlaTxtTchGui (ActChgCrsSta+192) -#define ActRcvPlaTxtSylLec (ActChgCrsSta+193) -#define ActRcvPlaTxtSylPra (ActChgCrsSta+194) -#define ActRcvPlaTxtBib (ActChgCrsSta+195) -#define ActRcvPlaTxtFAQ (ActChgCrsSta+196) -#define ActRcvPlaTxtCrsLnk (ActChgCrsSta+197) -#define ActRcvRchTxtCrsInf (ActChgCrsSta+198) -#define ActRcvRchTxtTchGui (ActChgCrsSta+199) -#define ActRcvRchTxtSylLec (ActChgCrsSta+200) -#define ActRcvRchTxtSylPra (ActChgCrsSta+201) -#define ActRcvRchTxtBib (ActChgCrsSta+202) -#define ActRcvRchTxtFAQ (ActChgCrsSta+203) -#define ActRcvRchTxtCrsLnk (ActChgCrsSta+204) +#define ActSelInfSrcCrsInf (ActDowAdmDocDeg+149) +#define ActSelInfSrcTchGui (ActDowAdmDocDeg+150) +#define ActSelInfSrcSylLec (ActDowAdmDocDeg+151) +#define ActSelInfSrcSylPra (ActDowAdmDocDeg+152) +#define ActSelInfSrcBib (ActDowAdmDocDeg+153) +#define ActSelInfSrcFAQ (ActDowAdmDocDeg+154) +#define ActSelInfSrcCrsLnk (ActDowAdmDocDeg+155) +#define ActRcvURLCrsInf (ActDowAdmDocDeg+156) +#define ActRcvURLTchGui (ActDowAdmDocDeg+157) +#define ActRcvURLSylLec (ActDowAdmDocDeg+158) +#define ActRcvURLSylPra (ActDowAdmDocDeg+159) +#define ActRcvURLBib (ActDowAdmDocDeg+160) +#define ActRcvURLFAQ (ActDowAdmDocDeg+161) +#define ActRcvURLCrsLnk (ActDowAdmDocDeg+162) +#define ActRcvPagCrsInf (ActDowAdmDocDeg+163) +#define ActRcvPagTchGui (ActDowAdmDocDeg+164) +#define ActRcvPagSylLec (ActDowAdmDocDeg+165) +#define ActRcvPagSylPra (ActDowAdmDocDeg+166) +#define ActRcvPagBib (ActDowAdmDocDeg+167) +#define ActRcvPagFAQ (ActDowAdmDocDeg+168) +#define ActRcvPagCrsLnk (ActDowAdmDocDeg+169) +#define ActEditorCrsInf (ActDowAdmDocDeg+170) +#define ActEditorTchGui (ActDowAdmDocDeg+171) +#define ActEditorSylLec (ActDowAdmDocDeg+172) +#define ActEditorSylPra (ActDowAdmDocDeg+173) +#define ActEditorBib (ActDowAdmDocDeg+174) +#define ActEditorFAQ (ActDowAdmDocDeg+175) +#define ActEditorCrsLnk (ActDowAdmDocDeg+176) +#define ActPlaTxtEdiCrsInf (ActDowAdmDocDeg+177) +#define ActPlaTxtEdiTchGui (ActDowAdmDocDeg+178) +#define ActPlaTxtEdiSylLec (ActDowAdmDocDeg+179) +#define ActPlaTxtEdiSylPra (ActDowAdmDocDeg+180) +#define ActPlaTxtEdiBib (ActDowAdmDocDeg+181) +#define ActPlaTxtEdiFAQ (ActDowAdmDocDeg+182) +#define ActPlaTxtEdiCrsLnk (ActDowAdmDocDeg+183) +#define ActRchTxtEdiCrsInf (ActDowAdmDocDeg+184) +#define ActRchTxtEdiTchGui (ActDowAdmDocDeg+185) +#define ActRchTxtEdiSylLec (ActDowAdmDocDeg+186) +#define ActRchTxtEdiSylPra (ActDowAdmDocDeg+187) +#define ActRchTxtEdiBib (ActDowAdmDocDeg+188) +#define ActRchTxtEdiFAQ (ActDowAdmDocDeg+189) +#define ActRchTxtEdiCrsLnk (ActDowAdmDocDeg+190) +#define ActRcvPlaTxtCrsInf (ActDowAdmDocDeg+191) +#define ActRcvPlaTxtTchGui (ActDowAdmDocDeg+192) +#define ActRcvPlaTxtSylLec (ActDowAdmDocDeg+193) +#define ActRcvPlaTxtSylPra (ActDowAdmDocDeg+194) +#define ActRcvPlaTxtBib (ActDowAdmDocDeg+195) +#define ActRcvPlaTxtFAQ (ActDowAdmDocDeg+196) +#define ActRcvPlaTxtCrsLnk (ActDowAdmDocDeg+197) +#define ActRcvRchTxtCrsInf (ActDowAdmDocDeg+198) +#define ActRcvRchTxtTchGui (ActDowAdmDocDeg+199) +#define ActRcvRchTxtSylLec (ActDowAdmDocDeg+200) +#define ActRcvRchTxtSylPra (ActDowAdmDocDeg+201) +#define ActRcvRchTxtBib (ActDowAdmDocDeg+202) +#define ActRcvRchTxtFAQ (ActDowAdmDocDeg+203) +#define ActRcvRchTxtCrsLnk (ActDowAdmDocDeg+204) /*****************************************************************************/ /***************************** Assessment tab ********************************/ diff --git a/swad_changelog.h b/swad_changelog.h index bef6ce161..5389b33bb 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -39,11 +39,12 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 14.58.1 (2015/01/18)" +#define Log_PLATFORM_VERSION "SWAD 14.59 (2015/01/19)" // 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 | tail -1 /* + Version 14.59: Jan 19, 2015 See/admin documents of degree, centre and institution (not finished). (174559 lines) Version 14.58.1: Jan 18, 2015 Fixed minor bugs in layout. (174178 lines) Version 14.58: Jan 18, 2015 New options to see/admin documents of degree, centre and institution (not finished). (174174 lines) Version 14.57.3: Jan 18, 2015 Fixed bug in statistics. (173694 lines) diff --git a/swad_file_browser.c b/swad_file_browser.c index 95a613e9b..a857b2e5e 100644 --- a/swad_file_browser.c +++ b/swad_file_browser.c @@ -1191,7 +1191,7 @@ void Brw_GetParAndInitFileBrowser (void) break; } break; - case ActChgToSeeDoc: // Access to see a documents zone + case ActChgToSeeDocCrs: // Access to see a documents zone /* Set file browser type acording to last group accessed */ Gbl.FileBrowser.Type = (Gbl.CurrentCrs.Grps.GrpCod > 0) ? Brw_FILE_BRW_SEE_DOCUMENTS_GRP : Brw_FILE_BRW_SEE_DOCUMENTS_CRS; @@ -1212,7 +1212,7 @@ void Brw_GetParAndInitFileBrowser (void) case ActDowSeeDocGrp: Gbl.FileBrowser.Type = Brw_FILE_BRW_SEE_DOCUMENTS_GRP; break; - case ActChgToAdmDoc: // Access to admin a documents zone + case ActChgToAdmDocCrs: // Access to admin a documents zone /* Set file browser type acording to last group accessed */ Gbl.FileBrowser.Type = (Gbl.CurrentCrs.Grps.GrpCod > 0) ? Brw_FILE_BRW_ADMIN_DOCUMENTS_GRP : Brw_FILE_BRW_ADMIN_DOCUMENTS_CRS; @@ -1605,10 +1605,10 @@ static void Brw_GetDataCurrentGrp (void) switch (Gbl.CurrentAct) { case ActSeeAdmDocCrs: // Access to see/admin a documents zone from menu - case ActChgToSeeDoc: // Access to see a documents zone + case ActChgToSeeDocCrs: // Access to see a documents zone case ActSeeDocGrp: // Access to see a documents zone - case ActChgToAdmDoc: // Access to admin a documents zone + case ActChgToAdmDocCrs: // Access to admin a documents zone case ActAdmDocGrp: // Access to admin a documents zone case ActChgToAdmCom: // Access to admin a common zone @@ -2444,11 +2444,11 @@ static void Brw_FormToChangeZone (void) { case Brw_FILE_BRW_SEE_DOCUMENTS_CRS: case Brw_FILE_BRW_SEE_DOCUMENTS_GRP: - Act_FormStart (ActChgToSeeDoc); + Act_FormStart (ActChgToSeeDocCrs); break; case Brw_FILE_BRW_ADMIN_DOCUMENTS_CRS: case Brw_FILE_BRW_ADMIN_DOCUMENTS_GRP: - Act_FormStart (ActChgToAdmDoc); + Act_FormStart (ActChgToAdmDocCrs); break; case Brw_FILE_BRW_COMMON_CRS: case Brw_FILE_BRW_COMMON_GRP: @@ -2747,41 +2747,74 @@ static void Brw_ShowFileBrowser (void) static void Brw_WriteTopBeforeShowingFileBrowser (void) { + bool IAmTeacher = (Gbl.Usrs.Me.LoggedRole == Rol_ROLE_TEACHER ); + bool IAmSuperuser = (Gbl.Usrs.Me.LoggedRole == Rol_ROLE_SUPERUSER); + /***** Update last access to this file browser *****/ Brw_UpdateLastAccess (); /***** Write form to edit documents *****/ - if (Gbl.Usrs.Me.LoggedRole == Rol_ROLE_TEACHER || - Gbl.Usrs.Me.LoggedRole == Rol_ROLE_SUPERUSER) - switch (Gbl.FileBrowser.Type) - { - case Brw_FILE_BRW_SEE_DOCUMENTS_CRS: - Brw_PutFormToShowOrAdmin (Brw_ADMIN,ActAdmDocCrs); - break; - case Brw_FILE_BRW_SEE_DOCUMENTS_GRP: - Brw_PutFormToShowOrAdmin (Brw_ADMIN,ActAdmDocGrp); - break; - case Brw_FILE_BRW_ADMIN_DOCUMENTS_CRS: - Brw_PutFormToShowOrAdmin (Brw_SHOW,ActSeeDocCrs); - break; - case Brw_FILE_BRW_ADMIN_DOCUMENTS_GRP: - Brw_PutFormToShowOrAdmin (Brw_SHOW,ActSeeDocGrp); - break; - case Brw_FILE_BRW_SEE_MARKS_CRS: - Brw_PutFormToShowOrAdmin (Brw_ADMIN,ActAdmMrkCrs); - break; - case Brw_FILE_BRW_SEE_MARKS_GRP: - Brw_PutFormToShowOrAdmin (Brw_ADMIN,ActAdmMrkGrp); - break; - case Brw_FILE_BRW_ADMIN_MARKS_CRS: - Brw_PutFormToShowOrAdmin (Brw_SHOW,ActSeeMrkCrs); - break; - case Brw_FILE_BRW_ADMIN_MARKS_GRP: - Brw_PutFormToShowOrAdmin (Brw_SHOW,ActSeeMrkGrp); - break; - default: - break; - } + switch (Gbl.FileBrowser.Type) + { + case Brw_FILE_BRW_SEE_DOCUMENTS_INS: + if (Gbl.Usrs.Me.LoggedRole >= Rol_ROLE_INS_ADMIN) + Brw_PutFormToShowOrAdmin (Brw_ADMIN,ActAdmDocIns); + break; + case Brw_FILE_BRW_ADMIN_DOCUMENTS_INS: + if (Gbl.Usrs.Me.LoggedRole >= Rol_ROLE_INS_ADMIN) + Brw_PutFormToShowOrAdmin (Brw_SHOW,ActSeeDocIns); + break; + case Brw_FILE_BRW_SEE_DOCUMENTS_CTR: + if (Gbl.Usrs.Me.LoggedRole >= Rol_ROLE_CTR_ADMIN) + Brw_PutFormToShowOrAdmin (Brw_ADMIN,ActAdmDocCtr); + break; + case Brw_FILE_BRW_ADMIN_DOCUMENTS_CTR: + if (Gbl.Usrs.Me.LoggedRole >= Rol_ROLE_CTR_ADMIN) + Brw_PutFormToShowOrAdmin (Brw_SHOW,ActSeeDocCtr); + break; + case Brw_FILE_BRW_SEE_DOCUMENTS_DEG: + if (Gbl.Usrs.Me.LoggedRole >= Rol_ROLE_DEG_ADMIN) + Brw_PutFormToShowOrAdmin (Brw_ADMIN,ActAdmDocDeg); + break; + case Brw_FILE_BRW_ADMIN_DOCUMENTS_DEG: + if (Gbl.Usrs.Me.LoggedRole >= Rol_ROLE_DEG_ADMIN) + Brw_PutFormToShowOrAdmin (Brw_SHOW,ActSeeDocDeg); + break; + case Brw_FILE_BRW_SEE_DOCUMENTS_CRS: + if (IAmTeacher || IAmSuperuser) + Brw_PutFormToShowOrAdmin (Brw_ADMIN,ActAdmDocCrs); + break; + case Brw_FILE_BRW_ADMIN_DOCUMENTS_CRS: + if (IAmTeacher || IAmSuperuser) + Brw_PutFormToShowOrAdmin (Brw_SHOW,ActSeeDocCrs); + break; + case Brw_FILE_BRW_SEE_DOCUMENTS_GRP: + if (IAmTeacher || IAmSuperuser) + Brw_PutFormToShowOrAdmin (Brw_ADMIN,ActAdmDocGrp); + break; + case Brw_FILE_BRW_ADMIN_DOCUMENTS_GRP: + if (IAmTeacher || IAmSuperuser) + Brw_PutFormToShowOrAdmin (Brw_SHOW,ActSeeDocGrp); + break; + case Brw_FILE_BRW_SEE_MARKS_CRS: + if (IAmTeacher || IAmSuperuser) + Brw_PutFormToShowOrAdmin (Brw_ADMIN,ActAdmMrkCrs); + break; + case Brw_FILE_BRW_ADMIN_MARKS_CRS: + if (IAmTeacher || IAmSuperuser) + Brw_PutFormToShowOrAdmin (Brw_SHOW,ActSeeMrkCrs); + break; + case Brw_FILE_BRW_SEE_MARKS_GRP: + if (IAmTeacher || IAmSuperuser) + Brw_PutFormToShowOrAdmin (Brw_ADMIN,ActAdmMrkGrp); + break; + case Brw_FILE_BRW_ADMIN_MARKS_GRP: + if (IAmTeacher || IAmSuperuser) + Brw_PutFormToShowOrAdmin (Brw_SHOW,ActSeeMrkGrp); + break; + default: + break; + } /***** Initialize hidden levels *****/ switch (Gbl.FileBrowser.Type) @@ -2820,15 +2853,15 @@ static void Brw_UpdateLastAccess (void) case Brw_FILE_BRW_SEE_DOCUMENTS_CRS: case Brw_FILE_BRW_ADMIN_DOCUMENTS_CRS: Brw_GetAndUpdateDateLastAccFileBrowser ("LastAccDownloadCrs"); - if (Gbl.CurrentAct == ActChgToSeeDoc || - Gbl.CurrentAct == ActChgToAdmDoc)// Update group of last access to a documents zone only when user changes zone + if (Gbl.CurrentAct == ActChgToSeeDocCrs || + Gbl.CurrentAct == ActChgToAdmDocCrs)// Update group of last access to a documents zone only when user changes zone Brw_UpdateGrpLastAccZone ("LastDowGrpCod",-1L); break; case Brw_FILE_BRW_SEE_DOCUMENTS_GRP: case Brw_FILE_BRW_ADMIN_DOCUMENTS_GRP: Brw_GetAndUpdateDateLastAccFileBrowser ("LastAccDownloadGrp"); - if (Gbl.CurrentAct == ActChgToSeeDoc || - Gbl.CurrentAct == ActChgToAdmDoc)// Update group of last access to a documents zone only when user changes zone + if (Gbl.CurrentAct == ActChgToSeeDocCrs || + Gbl.CurrentAct == ActChgToAdmDocCrs)// Update group of last access to a documents zone only when user changes zone Brw_UpdateGrpLastAccZone ("LastDowGrpCod",Gbl.CurrentCrs.Grps.GrpCod); break; case Brw_FILE_BRW_COMMON_CRS: