mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Added date/time button, but not fully working (time needs to be updated before insertion)
SVN revision: 1835
This commit is contained in:
parent
878f3ebda2
commit
d7e4be8b6e
@ -410,16 +410,11 @@ Anonymous = Anonimo
|
|||||||
Activation notice has been sent to %s = Notificacion de activacion enviada a %s
|
Activation notice has been sent to %s = Notificacion de activacion enviada a %s
|
||||||
Your request has been forwarded to the administrator = Su solicitud fue enviada al administrador
|
Your request has been forwarded to the administrator = Su solicitud fue enviada al administrador
|
||||||
You will be notified by email upon activation of your new account = Sera notificado por email cuando su cuenta sea activada
|
You will be notified by email upon activation of your new account = Sera notificado por email cuando su cuenta sea activada
|
||||||
|
Select period = Elija periodo
|
||||||
|
Last week = Ultima semana
|
||||||
#
|
Last month = Ultimo mes
|
||||||
#---- please translate following items and then remove this comment ----#
|
Last 3 Months = Ultimos 3 meses
|
||||||
#
|
Last 6 Months = Ultimos 6 meses
|
||||||
Select period =
|
Last Year = Ultimo año
|
||||||
Last week =
|
Enter %s = Ingrese %s
|
||||||
Last month =
|
Select %s = Elija %s
|
||||||
Last 3 Months =
|
|
||||||
Last 6 Months =
|
|
||||||
Last Year =
|
|
||||||
Enter %s =
|
|
||||||
Select %s =
|
|
||||||
|
|||||||
@ -110,6 +110,12 @@ function queryHeading(text)
|
|||||||
elcode1(text, tag, '', selection);
|
elcode1(text, tag, '', selection);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function insertTime(text)
|
||||||
|
{
|
||||||
|
selection = getSelection(text);
|
||||||
|
elcode1(text, '', datetime, selection);
|
||||||
|
}
|
||||||
|
|
||||||
function elKeyInit()
|
function elKeyInit()
|
||||||
{
|
{
|
||||||
document.onkeypress = elKeyPress;
|
document.onkeypress = elKeyPress;
|
||||||
@ -175,4 +181,4 @@ function elKeyPress(evt)
|
|||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
10
src/elogd.c
10
src/elogd.c
@ -9233,6 +9233,13 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
|
|||||||
else
|
else
|
||||||
rsprintf("browser = 'Other';\n");
|
rsprintf("browser = 'Other';\n");
|
||||||
|
|
||||||
|
if (!getcfg(lbs->name, "Time format", format, sizeof(format)))
|
||||||
|
strcpy(format, DEFAULT_TIME_FORMAT);
|
||||||
|
time(<ime);
|
||||||
|
pts = localtime(<ime);
|
||||||
|
my_strftime(str, sizeof(str), format, pts);
|
||||||
|
rsprintf("datetime = '%s';", str);
|
||||||
|
|
||||||
rsprintf("//-->\n");
|
rsprintf("//-->\n");
|
||||||
rsprintf("</script>\n");
|
rsprintf("</script>\n");
|
||||||
|
|
||||||
@ -9999,6 +10006,9 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
|
|||||||
rsprintf("<option value=\"chocolate\" style=\"color:chocolate\">chocolate</option>\n");
|
rsprintf("<option value=\"chocolate\" style=\"color:chocolate\">chocolate</option>\n");
|
||||||
rsprintf("</select>");
|
rsprintf("</select>");
|
||||||
|
|
||||||
|
rsprintf(" ");
|
||||||
|
ricon("clock", loc("Insert current time/date"), "insertTime(document.form1.Text)");
|
||||||
|
|
||||||
rsprintf("</td></tr>\n");
|
rsprintf("</td></tr>\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user