613
614
615
616
617
618
619
620
621
622
623
624
625
626
|
@ title AS 'Title',
@ wiki(substr(description,0,80)) AS 'Description'
@ FROM ticket
@ </pre></blockquote>
@
}
static void column_header(int rn,const char *zCol, int nCol, int nSorted,
const char *zDirection, const char *zExtra
){
int set = (nCol==nSorted);
int desc = !strcmp(zDirection,"DESC");
/*
|
>
|
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
|
@ title AS 'Title',
@ wiki(substr(description,0,80)) AS 'Description'
@ FROM ticket
@ </pre></blockquote>
@
}
#if 0 /* NOT USED */
static void column_header(int rn,const char *zCol, int nCol, int nSorted,
const char *zDirection, const char *zExtra
){
int set = (nCol==nSorted);
int desc = !strcmp(zDirection,"DESC");
/*
|
639
640
641
642
643
644
645
646
647
648
649
650
651
652
|
@ <th><a
}
@ href="rptview?rn=%d(rn)&order_by=%d(nCol)&\
@ order_dir=%s(desc?"ASC":"DESC")\
@ %s(zExtra)">%h(zCol)</a></th>
}
}
/*
** The state of the report generation.
*/
struct GenerateHTML {
int rn; /* Report number */
int nCount; /* Row number */
|
>
|
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
|
@ <th><a
}
@ href="rptview?rn=%d(rn)&order_by=%d(nCol)&\
@ order_dir=%s(desc?"ASC":"DESC")\
@ %s(zExtra)">%h(zCol)</a></th>
}
}
#endif
/*
** The state of the report generation.
*/
struct GenerateHTML {
int rn; /* Report number */
int nCount; /* Row number */
|