mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-14 20:33:48 +00:00
Added 'HTML default = 3'
SVN revision: 78
This commit is contained in:
parent
ac088aeced
commit
b202952706
32
elogd.c
32
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 2.1 2002/06/07 09:37:02 midas
|
||||||
|
Added 'HTML default = 3'
|
||||||
|
|
||||||
Revision 2.0 2002/06/06 15:16:39 midas
|
Revision 2.0 2002/06/06 15:16:39 midas
|
||||||
First version with new database scheme
|
First version with new database scheme
|
||||||
|
|
||||||
@ -104,7 +107,7 @@
|
|||||||
\********************************************************************/
|
\********************************************************************/
|
||||||
|
|
||||||
/* Version of ELOG */
|
/* Version of ELOG */
|
||||||
#define VERSION "1.3.6"
|
#define VERSION "2.0.0"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
@ -3643,10 +3646,27 @@ time_t now;
|
|||||||
/* HTML check box */
|
/* HTML check box */
|
||||||
if (message_id)
|
if (message_id)
|
||||||
{
|
{
|
||||||
if (encoding[0] == 'H')
|
if (getcfg(lbs->name, "HTML default", str))
|
||||||
rsprintf("<input type=checkbox checked name=html value=1>%s\n", loc("Submit as HTML text"));
|
{
|
||||||
|
if (atoi(str) < 2)
|
||||||
|
{
|
||||||
|
if (encoding[0] == 'H')
|
||||||
|
rsprintf("<input type=checkbox checked name=html value=1>%s\n", loc("Submit as HTML text"));
|
||||||
|
else
|
||||||
|
rsprintf("<input type=checkbox name=html value=1>%s\n", loc("Submit as HTML text"));
|
||||||
|
}
|
||||||
|
else if (atoi(str) == 3)
|
||||||
|
{
|
||||||
|
rsprintf("<input type=hidden name=html value=1>\n");
|
||||||
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
rsprintf("<input type=checkbox name=html value=1>%s\n", loc("Submit as HTML text"));
|
{
|
||||||
|
if (encoding[0] == 'H')
|
||||||
|
rsprintf("<input type=checkbox checked name=html value=1>%s\n", loc("Submit as HTML text"));
|
||||||
|
else
|
||||||
|
rsprintf("<input type=checkbox name=html value=1>%s\n", loc("Submit as HTML text"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -3660,6 +3680,10 @@ time_t now;
|
|||||||
{
|
{
|
||||||
rsprintf("<input type=checkbox checked name=html value=1>%s\n", loc("Submit as HTML text"));
|
rsprintf("<input type=checkbox checked name=html value=1>%s\n", loc("Submit as HTML text"));
|
||||||
}
|
}
|
||||||
|
else if (atoi(str) == 3)
|
||||||
|
{
|
||||||
|
rsprintf("<input type=hidden name=html value=1>\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
rsprintf("<input type=checkbox name=html value=1>%s\n", loc("Submit as HTML text"));
|
rsprintf("<input type=checkbox name=html value=1>%s\n", loc("Submit as HTML text"));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user