(http://img831.imageshack.us/img831/7691/47634059.th.png) (http://img831.imageshack.us/i/47634059.png/) | (http://img339.imageshack.us/img339/8204/25980097.th.png) (http://img339.imageshack.us/i/25980097.png/) | (http://img411.imageshack.us/img411/9029/52414637.th.png) (http://img411.imageshack.us/i/52414637.png/) | (http://img185.imageshack.us/img185/2743/92570809.th.png) (http://img185.imageshack.us/i/92570809.png/) |
i think you should publish it as a diff tpl, or people will
- go crazy trying to stay up to date
- not update at all, maybe even without knowing it
:)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>{.!Notifications to the Server.}</title>
<link rel="stylesheet" href="/?mode=section&id=style.css" type="text/css">
<link rel="shortcut icon" href="/favicon.ico">
</head>
<body>
<br />
<div style="margin-top:1em; margin-left:2em; max-width:400px;">
{.if|{.#notifications#.}|{:
<br />
<font size=4>{.!Notifications to the Server.}</font>
<form method='post' id='notifications'>
:}.}
<fieldset>
{.if|{.#notifications#.}|{:
<br />
{.repeat|20| .}<i><b>{.!Notification title.}{.!:.}</b></i>
<br />
{.repeat|20| .}<input type='text' name='notifytitle'onMouseOver="this.focus();" style="background-color:#fff; border:2px solid #AB9F82; width:230px;">
<br />
<br />
{.repeat|20| .}<i><b>{.!Notification text.}{.!:.}</b></i>
<br />
{.repeat|20| .}<textarea name="notifytext" wrap="soft" onMouseOver="this.focus();" style="width:230px; height:120px; background-color:#fff; border:2px solid #AB9F82;"></textarea>
<br />
{.repeat|20| .}<b><SELECT name="type" style="background-color:#fff; border:2px solid #AB9F82; width:117px;">
<OPTION VALUE="none">{.!icon (none).}</OPTION>
<OPTION VALUE="error">{.!error.}</OPTION>
<OPTION VALUE="info">{.!info.}</OPTION>
<OPTION VALUE="warning">{.!warning.}</OPTION>
</b>
</SELECT>
<input type='text' name='timeout' value="{.! timeout.}" onclick="if(this.value=='{.! timeout.}')this.value=''" style="background-color:#fff; border:2px solid #AB9F82; width:109px;">
<br />
{.if|{.#playsounds#.}|{:
<br />
{.repeat|20| .}<i><b>{.!Playing a sound event.}{.!:.}</b></i>
<br />
{.repeat|20| .}<b><SELECT name="play" style="background-color:#fff; border:2px solid #AB9F82; width:234px;">
<OPTION VALUE="">{.!Sound event (none).}</OPTION>
<OPTION VALUE="CriticalBatteryAlarm">{.!Critical Battery Alarm.}</OPTION>
<OPTION VALUE="Close">{.!Close.}</OPTION>
<OPTION VALUE="DeviceConnect">{.!Device Connect.}</OPTION>
<OPTION VALUE="DeviceFail">{.!Device Fail.}</OPTION>
<OPTION VALUE="EmptyRecycleBin">{.!Empty Recycle Bin.}</OPTION>
<OPTION VALUE="InternetAlert">{.!Internet Alert.}</OPTION>
<OPTION VALUE="MailBeep">{.!Mail Beep.}</OPTION>
<OPTION VALUE="Open">{.!Open.}</OPTION>
<OPTION VALUE="SystemExclamation">{.!System Exclamation.}</OPTION>
<OPTION VALUE="SystemExit">{.!System Exit.}</OPTION>
<OPTION VALUE="SystemQuestion">{.!System Question.}</OPTION>
<OPTION VALUE="SystemStart">{.!System Start.}</OPTION>
</b>
</SELECT>
<br />
:}.}
<br />
{.repeat|20| .}<input type='submit' name='notify' value="{.!Notify.}">
<br />
<br />
</form>
</fieldset>
{.repeat|21| .}<a href=".."><img src="/~img14"> {.!Up.}</a>
</div>
</body>
:}.}
{.if not|{.#notifications#.}|{:
<font size=4><center><img src="/~img11"> {.!You are not authorized to access at this feature.}. <br />{.!Please, contact the site administrator.}.</center></font>
</fieldset>
{.repeat|30| .}<a href=".."><img src="/~img14"> {.!Up.}</a>
</div>
</body>
:}.}
</html>
[+special:begin]
{.$special:forms.}
[special:forms]
{.if|{.#notifications#.}|{:
{.if|{.filename|{.postvar|notify.}.}|{:{.notify|{.force ansi|%user%{.!:.}
{.postvar|notifytext.}.}|title={.force ansi|{.postvar|notifytitle.}.} [%time%]|type={.postvar|type.}|timeout={.postvar|timeout.}.}
{.add to log|.
{.force ansi|{.!*Begin Notification*.}.} [%time%]
{.force ansi|%user%.}{.!:.}
::. {.force ansi|{.postvar|notifytitle.}.} .::
{.force ansi|{.postvar|notifytext.}.}
{.force ansi|{.!*End Notification*.}.}.}
{.if|{.#playsounds#.}|
{.play|{.postvar|play.}.}.}
:}.}:}.}
[+special:alias|private]
#notifications#={.member of|#notifications#.}
#playsounds#={.member of|#playsounds#.}
[* Pour les utilisateurs Français : Veuillez remplacer le symbole - par le symbole + dans la section [-special:strings] ci-dessous, pour utiliser cette fonctionnalité en français *]
[-special:strings]
timeout= Durée
icon (none)=Aucune icône
Error=Erreur
warning=Alerte
info=Information
:= :
Critical Battery Alarm=Alarme critique
Close=Fermer
Device Connect=Connexion
Device Fail=Echec de la connexion
Empty Recycle Bin=Corbeille vidée
Internet Alert=Alarme internet
Mail Beep=Mail entrant
Open=Ouvrir
System Exclamation=Exclamation
System Exit=Quitter
System Question=Question
System Start=D&ecute;marrage système
Sound event (none)=Aucun évènement sonore
Notifications to the Server=Notifications vers le serveur
Playing a sound event=Jouer un évènement sonore
Sound event (none)=Aucun évènement sonore
Notification title=Titre de la notification
Notify=Envoyer la notification
Notification text=Texte de la notification
Up=Retour
You are not authorized to access at this feature=Vous n'êtes pas autorisé à accéder à cette fonctionnalité
Please, contact the site administrator=Veuillez contacter l'administrateur du site
*Begin Notification*=*Début de la Notification*
*End Notification*=*Fin de la Notification*
@ SilentPliz
I'm running HFS on older computer used as network attached storage.
{.notify.} doesn't seem to work here.
Could it be operating system?
1 question however..
If so where would it be located in case Im away from my server at the time of the message..
Then when I return I can see what has been sent via {.notify.}~
{.if|{.#notifications#.}|{:
{.if|{.filename|{.postvar|notify.}.}|{:
{.notify|{.force ansi|%user%{.!:.}
{.postvar|notifytext.}.}|title={.force ansi|{.postvar|notifytitle.}.} [%time%]|type={.postvar|type.}|timeout={.postvar|timeout.}.}
{.if|{.#playsounds#.}|
{.play|{.postvar|play.}.}.}
:}.}:}.}
{.if|{.#notifications#.}|{:
{.if|{.filename|{.postvar|notify.}.}|{:{.notify|{.force ansi|%user%{.!:.}
{.postvar|notifytext.}.}|title={.force ansi|{.postvar|notifytitle.}.} [%time%]|type={.postvar|type.}|timeout={.postvar|timeout.}.}
{.add to log|.
{.force ansi|{.!*Begin Notification*.}.} [%time%]
{.force ansi|%user%.}{.!:.}
::. {.force ansi|{.postvar|notifytitle.}.} .::
{.force ansi|{.postvar|notifytext.}.}
{.force ansi|{.!*End Notification*.}.}.}
{.if|{.#playsounds#.}|
{.play|{.postvar|play.}.}.}
:}.}:}.}
You guys truly are great!..
Thank you - the log works great