mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Use 'attachmentframe' style
SVN revision: 1207
This commit is contained in:
parent
c426e3f05f
commit
8c0c8eae12
12
src/elogd.c
12
src/elogd.c
@ -6,6 +6,9 @@
|
|||||||
Contents: Web server program for Electronic Logbook ELOG
|
Contents: Web server program for Electronic Logbook ELOG
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.561 2005/02/15 18:55:35 ritt
|
||||||
|
Use 'attachmentframe' style
|
||||||
|
|
||||||
Revision 1.560 2005/02/14 20:00:06 ritt
|
Revision 1.560 2005/02/14 20:00:06 ritt
|
||||||
Fixed HTML code to pass validator
|
Fixed HTML code to pass validator
|
||||||
|
|
||||||
@ -13750,10 +13753,9 @@ void display_line(LOGBOOK * lbs, int message_id, int number, char *mode,
|
|||||||
colspan, loc("Attachment"), index + 1, ref, attachment[index] + 14);
|
colspan, loc("Attachment"), index + 1, ref, attachment[index] + 14);
|
||||||
if (show_attachments) {
|
if (show_attachments) {
|
||||||
rsprintf("</td></tr><tr>");
|
rsprintf("</td></tr><tr>");
|
||||||
rsprintf("<td colspan=%d class=\"messagelist\">", colspan);
|
rsprintf("<td colspan=%d class=\"attachmentframe\">", colspan);
|
||||||
rsprintf("<img src=\"%s\" alt=\"%s\" style=\"width:100%%\"></td>",
|
rsprintf("<img src=\"%s\" alt=\"%s\">", ref, attachment[index] + 14);
|
||||||
ref, attachment[index] + 14);
|
rsprintf("</td></tr>\n");
|
||||||
rsprintf("</tr>\n");
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
rsprintf
|
rsprintf
|
||||||
@ -18154,7 +18156,7 @@ void show_elog_entry(LOGBOOK * lbs, char *dec_path, char *command)
|
|||||||
|| atoi(str) == 1) && !att_hide[index] && display_inline) {
|
|| atoi(str) == 1) && !att_hide[index] && display_inline) {
|
||||||
|
|
||||||
if (is_image(att)) {
|
if (is_image(att)) {
|
||||||
rsprintf("<tr><td class=\"messageframe\">\n");
|
rsprintf("<tr><td class=\"attachmentframe\">\n");
|
||||||
rsprintf("<a name=\"att%d\"></a>\n", index + 1);
|
rsprintf("<a name=\"att%d\"></a>\n", index + 1);
|
||||||
rsprintf("<img src=\"%s\" alt=\"%s\">\n", ref, attachment[index]+14);
|
rsprintf("<img src=\"%s\" alt=\"%s\">\n", ref, attachment[index]+14);
|
||||||
rsprintf("</td></tr>\n\n");
|
rsprintf("</td></tr>\n\n");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user