1718cebc046b4d1524ba57c0aca0051b3ae5a7a3
[mir.git] / templates / admin / message.tmpl
1 <html>
2   <head>
3     <title>${config["Mir.Name"]} | ${lang("message.htmltitle")}</title>
4     <link rel="stylesheet" type="text/css" href="${config.docRoot}/style/admin.css">
5   <head>
6
7   <body marginwidth="0" marginheight="0" topmargin="0" leftmargin="0">
8     <include "FUNCTIONS.tmpl">
9     <include "head.tmpl">
10   
11       <if request.new && request.new=="1">
12         <assign action="messageSave.do">
13         <assign new=request.new>
14       <else>
15         <assign action="messageSave.do">
16         <assign new="0">
17       </if>
18       
19       
20       <call EditStart(action,["id", "offset", "new"], [request.id, request.offset, request.new])>
21          
22         <call EditReadonlyTextNormal(lang("message.id"), request.message.id)>
23         <call EditReadonlyTextNormal(lang("message.date"), request.message.webdbCreate.format(config["Mir.DefaultDateTimeFormat"]))>
24         <call EditTextNormal(lang("message.title"), 30, 30, "title", request.message.title)>
25         <call EditTextNormal(lang("message.creator"), 30, 30, "creator", request.message.creator)>
26
27         <call EditTextAreaNormal(lang("message.text"), "", "50", "5", "description", request.message.description)>
28       
29         <if request.new=="1">
30           <call EditSubmitButtonNormal(lang("insert"), "save")>
31         <else>
32           <call EditSubmitButtonNormal(lang("save"), "save")>
33         </if> 
34
35       <call EditEnd()>
36       
37       <if returnurl>
38         <call showBack(returnurl)>
39       <else>
40         <call showBack("module="+module+"&amp;do=list")>
41       </if>
42
43     <include "foot.template">
44   </body>
45 </html>