"
""
"%s"
" | ",
Font,Txt_Page);
/***** Possible link to page 1 *****/
if (Pagination->StartPage > 1)
{
fprintf (Gbl.F.Out,"",
Font);
switch (WhatPaginate)
{
case Pag_ASSIGNMENTS:
Act_FormStart (ActSeeAsg);
Pag_PutHiddenParamPagNum (1);
Asg_PutHiddenParamAsgOrderType ();
Grp_PutParamWhichGrps ();
break;
case Pag_ATT_EVENTS:
Act_FormStart (ActSeeAtt);
Pag_PutHiddenParamPagNum (1);
Att_PutHiddenParamAttOrderType ();
Grp_PutParamWhichGrps ();
break;
case Pag_MESSAGES_RECEIVED:
Act_FormStart (ActSeeRcvMsg);
Pag_PutHiddenParamPagNum (1);
Msg_PutHiddenParamsMsgsFilters ();
break;
case Pag_MESSAGES_SENT:
Act_FormStart (ActSeeSntMsg);
Pag_PutHiddenParamPagNum (1);
Msg_PutHiddenParamsMsgsFilters ();
break;
case Pag_THREADS_FORUM:
Act_FormStart (For_ActionsSeeFor[Gbl.Forum.ForumType]);
Pag_PutHiddenParamPagNum (1);
For_PutAllHiddenParamsForum ();
break;
case Pag_POSTS_FORUM:
Act_FormStart (For_ActionsSeePstFor[Gbl.Forum.ForumType]);
Pag_PutHiddenParamPagNum (1);
For_PutHiddenParamThrCod (ThrCod);
For_PutAllHiddenParamsForum ();
break;
case Pag_SURVEYS:
Act_FormStart (ActSeeAllSvy);
Pag_PutHiddenParamPagNum (1);
Asg_PutHiddenParamAsgOrderType ();
Grp_PutParamWhichGrps ();
break;
}
sprintf (Gbl.Title,Txt_See_page_X_of_Y,
1,(unsigned) Pagination->NumPags);
Act_LinkFormSubmit (Gbl.Title,Font);
fprintf (Gbl.F.Out,"1");
Act_FormEnd ();
fprintf (Gbl.F.Out," | ");
if (Pagination->LeftPage > 2)
fprintf (Gbl.F.Out,""
"…"
" | ",
Font);
}
/***** Posible link to page left *****/
if (Pagination->LeftPage > 1 && Pagination->LeftPage < Pagination->StartPage)
{
fprintf (Gbl.F.Out,"",
Font);
switch (WhatPaginate)
{
case Pag_ASSIGNMENTS:
Act_FormStart (ActSeeAsg);
Pag_PutHiddenParamPagNum (Pagination->LeftPage);
Asg_PutHiddenParamAsgOrderType ();
Grp_PutParamWhichGrps ();
break;
case Pag_ATT_EVENTS:
Act_FormStart (ActSeeAtt);
Pag_PutHiddenParamPagNum (Pagination->LeftPage);
Att_PutHiddenParamAttOrderType ();
Grp_PutParamWhichGrps ();
break;
case Pag_MESSAGES_RECEIVED:
Act_FormStart (ActSeeRcvMsg);
Pag_PutHiddenParamPagNum (Pagination->LeftPage);
Msg_PutHiddenParamsMsgsFilters ();
break;
case Pag_MESSAGES_SENT:
Act_FormStart (ActSeeSntMsg);
Pag_PutHiddenParamPagNum (Pagination->LeftPage);
Msg_PutHiddenParamsMsgsFilters ();
break;
case Pag_THREADS_FORUM:
Act_FormStart (For_ActionsSeeFor[Gbl.Forum.ForumType]);
Pag_PutHiddenParamPagNum (Pagination->LeftPage);
For_PutAllHiddenParamsForum ();
break;
case Pag_POSTS_FORUM:
Act_FormStart (For_ActionsSeePstFor[Gbl.Forum.ForumType]);
Pag_PutHiddenParamPagNum (Pagination->LeftPage);
For_PutHiddenParamThrCod (ThrCod);
For_PutAllHiddenParamsForum ();
break;
case Pag_SURVEYS:
Act_FormStart (ActSeeAllSvy);
Pag_PutHiddenParamPagNum (Pagination->LeftPage);
Asg_PutHiddenParamAsgOrderType ();
Grp_PutParamWhichGrps ();
break;
}
sprintf (Gbl.Title,Txt_See_page_X_of_Y,
(unsigned) Pagination->LeftPage,(unsigned) Pagination->NumPags);
Act_LinkFormSubmit (Gbl.Title,Font);
fprintf (Gbl.F.Out,"%u",
(unsigned) Pagination->LeftPage);
Act_FormEnd ();
fprintf (Gbl.F.Out," | ");
if (Pagination->LeftPage < Pagination->StartPage-1)
fprintf (Gbl.F.Out,""
"…"
" | ",
Font);
}
/***** Loop to put links to the pages around the current one *****/
for (NumPage = Pagination->StartPage;
NumPage <= Pagination->EndPage;
NumPage++)
{
fprintf (Gbl.F.Out,"",
Font);
if (!LinkToPagCurrent && NumPage == Pagination->CurrentPage)
fprintf (Gbl.F.Out,"%u",(unsigned) NumPage);
else
{
switch (WhatPaginate)
{
case Pag_ASSIGNMENTS:
Act_FormStart (ActSeeAsg);
Pag_PutHiddenParamPagNum (NumPage);
Asg_PutHiddenParamAsgOrderType ();
Grp_PutParamWhichGrps ();
break;
case Pag_ATT_EVENTS:
Act_FormStart (ActSeeAtt);
Pag_PutHiddenParamPagNum (NumPage);
Att_PutHiddenParamAttOrderType ();
Grp_PutParamWhichGrps ();
break;
case Pag_MESSAGES_RECEIVED:
Act_FormStart (ActSeeRcvMsg);
Pag_PutHiddenParamPagNum (NumPage);
Msg_PutHiddenParamsMsgsFilters ();
break;
case Pag_MESSAGES_SENT:
Act_FormStart (ActSeeSntMsg);
Pag_PutHiddenParamPagNum (NumPage);
Msg_PutHiddenParamsMsgsFilters ();
break;
case Pag_THREADS_FORUM:
Act_FormStart (For_ActionsSeeFor[Gbl.Forum.ForumType]);
Pag_PutHiddenParamPagNum (NumPage);
For_PutAllHiddenParamsForum ();
break;
case Pag_POSTS_FORUM:
Act_FormStart (For_ActionsSeePstFor[Gbl.Forum.ForumType]);
Pag_PutHiddenParamPagNum (NumPage);
For_PutHiddenParamThrCod (ThrCod);
For_PutAllHiddenParamsForum ();
break;
case Pag_SURVEYS:
Act_FormStart (ActSeeAllSvy);
Pag_PutHiddenParamPagNum (NumPage);
Asg_PutHiddenParamAsgOrderType ();
Grp_PutParamWhichGrps ();
break;
}
sprintf (Gbl.Title,Txt_See_page_X_of_Y,
(unsigned) NumPage,(unsigned) Pagination->NumPags);
Act_LinkFormSubmit (Gbl.Title,Font);
fprintf (Gbl.F.Out,"%u",
(unsigned) NumPage);
Act_FormEnd ();
}
fprintf (Gbl.F.Out," | ");
}
/***** Posible link to page right *****/
if (Pagination->RightPage > Pagination->EndPage &&
Pagination->RightPage < Pagination->NumPags)
{
if (Pagination->RightPage > Pagination->EndPage+1)
fprintf (Gbl.F.Out,""
"…"
" | ",
Font);
fprintf (Gbl.F.Out,"",
Font);
switch (WhatPaginate)
{
case Pag_ASSIGNMENTS:
Act_FormStart (ActSeeAsg);
Pag_PutHiddenParamPagNum (Pagination->RightPage);
Asg_PutHiddenParamAsgOrderType ();
Grp_PutParamWhichGrps ();
break;
case Pag_ATT_EVENTS:
Act_FormStart (ActSeeAtt);
Pag_PutHiddenParamPagNum (Pagination->RightPage);
Att_PutHiddenParamAttOrderType ();
Grp_PutParamWhichGrps ();
break;
case Pag_MESSAGES_RECEIVED:
Act_FormStart (ActSeeRcvMsg);
Pag_PutHiddenParamPagNum (Pagination->RightPage);
Msg_PutHiddenParamsMsgsFilters ();
break;
case Pag_MESSAGES_SENT:
Act_FormStart (ActSeeSntMsg);
Pag_PutHiddenParamPagNum (Pagination->RightPage);
Msg_PutHiddenParamsMsgsFilters ();
break;
case Pag_THREADS_FORUM:
Act_FormStart (For_ActionsSeeFor[Gbl.Forum.ForumType]);
Pag_PutHiddenParamPagNum (Pagination->RightPage);
For_PutAllHiddenParamsForum ();
break;
case Pag_POSTS_FORUM:
Act_FormStart (For_ActionsSeePstFor[Gbl.Forum.ForumType]);
Pag_PutHiddenParamPagNum (Pagination->RightPage);
For_PutHiddenParamThrCod (ThrCod);
For_PutAllHiddenParamsForum ();
break;
case Pag_SURVEYS:
Act_FormStart (ActSeeAllSvy);
Pag_PutHiddenParamPagNum (Pagination->RightPage);
Asg_PutHiddenParamAsgOrderType ();
Grp_PutParamWhichGrps ();
break;
}
sprintf (Gbl.Title,Txt_See_page_X_of_Y,
(unsigned) Pagination->RightPage,(unsigned) Pagination->NumPags);
Act_LinkFormSubmit (Gbl.Title,Font);
fprintf (Gbl.F.Out,"%u",(unsigned) Pagination->RightPage);
Act_FormEnd ();
fprintf (Gbl.F.Out," | ");
}
/***** Possible link to last page *****/
if (Pagination->EndPage < Pagination->NumPags)
{
if (Pagination->NumPags > Pagination->RightPage+1)
fprintf (Gbl.F.Out,""
"…"
" | ",
Font);
fprintf (Gbl.F.Out,"",
Font);
switch (WhatPaginate)
{
case Pag_ASSIGNMENTS:
Act_FormStart (ActSeeAsg);
Pag_PutHiddenParamPagNum (Pagination->NumPags);
Asg_PutHiddenParamAsgOrderType ();
Grp_PutParamWhichGrps ();
break;
case Pag_ATT_EVENTS:
Act_FormStart (ActSeeAtt);
Pag_PutHiddenParamPagNum (Pagination->NumPags);
Att_PutHiddenParamAttOrderType ();
Grp_PutParamWhichGrps ();
break;
case Pag_MESSAGES_RECEIVED:
Act_FormStart (ActSeeRcvMsg);
Pag_PutHiddenParamPagNum (Pagination->NumPags);
Msg_PutHiddenParamsMsgsFilters ();
break;
case Pag_MESSAGES_SENT:
Act_FormStart (ActSeeSntMsg);
Pag_PutHiddenParamPagNum (Pagination->NumPags);
Msg_PutHiddenParamsMsgsFilters ();
break;
case Pag_THREADS_FORUM:
Act_FormStart (For_ActionsSeeFor[Gbl.Forum.ForumType]);
Pag_PutHiddenParamPagNum (Pagination->NumPags);
For_PutAllHiddenParamsForum ();
break;
case Pag_POSTS_FORUM:
Act_FormStart (For_ActionsSeePstFor[Gbl.Forum.ForumType]);
Pag_PutHiddenParamPagNum (Pagination->NumPags);
For_PutHiddenParamThrCod (ThrCod);
For_PutAllHiddenParamsForum ();
break;
case Pag_SURVEYS:
Act_FormStart (ActSeeAllSvy);
Pag_PutHiddenParamPagNum (Pagination->NumPags);
Asg_PutHiddenParamAsgOrderType ();
Grp_PutParamWhichGrps ();
break;
}
sprintf (Gbl.Title,Txt_See_page_X_of_Y,
(unsigned) Pagination->NumPags,(unsigned) Pagination->NumPags);
Act_LinkFormSubmit (Gbl.Title,Font);
fprintf (Gbl.F.Out,"%u",(unsigned) Pagination->NumPags);
Act_FormEnd ();
fprintf (Gbl.F.Out," | ");
}
fprintf (Gbl.F.Out,"
"
"