mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-12 19:33:03 +00:00
Added warning if max. number of attachments reached
SVN revision: 504
This commit is contained in:
parent
6540a0aa96
commit
8c833b07ff
@ -269,3 +269,4 @@ Password recovery for ELOG %s = Kennwort-Wiederherstellung f
|
|||||||
Host = Computer
|
Host = Computer
|
||||||
Your ELOG account has been activated = Ihr ELOG Konto wurde aktiviert
|
Your ELOG account has been activated = Ihr ELOG Konto wurde aktiviert
|
||||||
Activate = Aktivieren
|
Activate = Aktivieren
|
||||||
|
Maximum number of attachments reached = Maximale Anzahl von Anhängen erreicht
|
||||||
19
src/elogd.c
19
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.89 2003/04/23 08:38:55 midas
|
||||||
|
Added warning if max. number of attachments reached
|
||||||
|
|
||||||
Revision 1.88 2003/04/22 09:57:23 midas
|
Revision 1.88 2003/04/22 09:57:23 midas
|
||||||
Fixed missing translation strings
|
Fixed missing translation strings
|
||||||
|
|
||||||
@ -5691,10 +5694,18 @@ time_t now;
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* field for add attachment */
|
/* field for add attachment */
|
||||||
rsprintf("<tr><td nowrap class=\"attribname\">%s %d:</td>\n", loc("Attachment"), i+1);
|
if (att[MAX_ATTACHMENTS-1][0])
|
||||||
rsprintf("<td class=\"attribvalue\"><input type=\"file\" size=\"60\" maxlength=\"200\" name=\"attfile\" accept=\"filetype/*\">\n");
|
{
|
||||||
rsprintf(" <input type=submit name=cmd value=\"%s\">\n", loc("Upload"));
|
rsprintf("<tr><td colspan=2 class=\"attribname\">%s</td>\n", loc("Maximum number of attachments reached"));
|
||||||
rsprintf("</td></tr>\n");
|
rsprintf("</td></tr>\n");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
rsprintf("<tr><td nowrap class=\"attribname\">%s %d:</td>\n", loc("Attachment"), i+1);
|
||||||
|
rsprintf("<td class=\"attribvalue\"><input type=\"file\" size=\"60\" maxlength=\"200\" name=\"attfile\" accept=\"filetype/*\">\n");
|
||||||
|
rsprintf(" <input type=submit name=cmd value=\"%s\">\n", loc("Upload"));
|
||||||
|
rsprintf("</td></tr>\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
rsprintf("</td></tr></table>\n");
|
rsprintf("</td></tr></table>\n");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user