mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-27 02:57:22 +00:00
Added 'date on reply' flag
SVN revision: 636
This commit is contained in:
parent
b173a43505
commit
12273aa824
@ -1301,7 +1301,7 @@ The default is <b>1</b>.
|
|||||||
<p>
|
<p>
|
||||||
|
|
||||||
<li><b><code>Hidden = 0|1</code></b>
|
<li><b><code>Hidden = 0|1</code></b>
|
||||||
</br>
|
<br>
|
||||||
If this flag is <b>1</b>, the logbook is not displayed in the initial logbook selection
|
If this flag is <b>1</b>, the logbook is not displayed in the initial logbook selection
|
||||||
page and in the logbook tabs. This can be useful for logbooks which are only accessed
|
page and in the logbook tabs. This can be useful for logbooks which are only accessed
|
||||||
for backup or archiving and would clutter up the logbook list for the normal user. To
|
for backup or archiving and would clutter up the logbook list for the normal user. To
|
||||||
@ -1310,7 +1310,7 @@ Default is <b>0</b>.
|
|||||||
<p>
|
<p>
|
||||||
|
|
||||||
<li><b><code>Use Lock = 0|1</code></b>
|
<li><b><code>Use Lock = 0|1</code></b>
|
||||||
</br>
|
<br>
|
||||||
If this flag is <b>1</b>, a logbook entry is <i>locked</i> when someone edits it (clicking
|
If this flag is <b>1</b>, a logbook entry is <i>locked</i> when someone edits it (clicking
|
||||||
the <i>Edit</i> command). A locked message gets displayed with a little red sign indicating
|
the <i>Edit</i> command). A locked message gets displayed with a little red sign indicating
|
||||||
that the message is currently edited by someone and should not be touched. This can be
|
that the message is currently edited by someone and should not be touched. This can be
|
||||||
@ -1330,6 +1330,13 @@ resulting in all messages being locked. In those cases locking has to be turned
|
|||||||
|
|
||||||
Default for "Use Lock" is <b>0</b>.<p>
|
Default for "Use Lock" is <b>0</b>.<p>
|
||||||
|
|
||||||
|
<li><b><code>Date on reply = 0|1</code></b>
|
||||||
|
</br>
|
||||||
|
If this flag is <b>1</b>, the current date is placed between the quoted original entry
|
||||||
|
and the new entry. This can be useful for email notifications, if one wants to see the
|
||||||
|
time history of all replies in the email messages. Default is <b>0</b>.
|
||||||
|
<p>
|
||||||
|
|
||||||
</ul><p>
|
</ul><p>
|
||||||
|
|
||||||
<a name="themes"><hr>
|
<a name="themes"><hr>
|
||||||
|
|||||||
18
src/elogd.c
18
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.165 2003/12/04 20:56:51 midas
|
||||||
|
Added 'date on reply' flag
|
||||||
|
|
||||||
Revision 1.164 2003/12/04 11:34:36 midas
|
Revision 1.164 2003/12/04 11:34:36 midas
|
||||||
Made 'preset xxx' work with boolean attributes
|
Made 'preset xxx' work with boolean attributes
|
||||||
|
|
||||||
@ -5199,6 +5202,7 @@ char date[80], attrib[MAX_N_ATTR][NAME_LENGTH], text[TEXT_SIZE],
|
|||||||
owner[256], locked_by[256], class_value[80], class_name[80];
|
owner[256], locked_by[256], class_value[80], class_name[80];
|
||||||
time_t now;
|
time_t now;
|
||||||
char fl[8][NAME_LENGTH];
|
char fl[8][NAME_LENGTH];
|
||||||
|
struct tm *ts;
|
||||||
|
|
||||||
for (i=0 ; i<MAX_ATTACHMENTS ; i++)
|
for (i=0 ; i<MAX_ATTACHMENTS ; i++)
|
||||||
att[i][0] = 0;
|
att[i][0] = 0;
|
||||||
@ -5808,6 +5812,20 @@ char fl[8][NAME_LENGTH];
|
|||||||
}
|
}
|
||||||
|
|
||||||
} while (TRUE);
|
} while (TRUE);
|
||||||
|
|
||||||
|
if (getcfg(lbs->name, "Date on reply", str) && atoi(str) > 0)
|
||||||
|
{
|
||||||
|
time(&now);
|
||||||
|
ts = localtime(&now);
|
||||||
|
if (getcfg(lbs->name, "Date format", format))
|
||||||
|
strftime(str, sizeof(str), format, ts);
|
||||||
|
else
|
||||||
|
{
|
||||||
|
strcpy(str, ctime(&now));
|
||||||
|
str[strlen(str)-1] = 0;
|
||||||
|
}
|
||||||
|
rsprintf("%s\n\n", str);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user