179a8384573e1307ed293d9f3ea94ec1094af820
[mir.git] / templates / admin / topic.tmpl
1 <html>
2   <head>
3     <title>${config["Mir.Name"]} | ${lang("topic.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="topicSave.do">
13         <assign new=request.new>
14       <else>
15         <assign action="topicSave.do">
16         <assign new="0">
17       </if>
18       
19       <call EditStart(
20          action,
21          ["id", "new"],
22          [request.topic.id, request.new])>
23          
24         <call EditReadonlyTextNormal(lang("topic.id"), request.topic.id)>
25         <call EditPullDown(lang("topic.parenttopic"), "parentTopic", request.topics, "id", "title", request.topic.parentTopic.id, "","","")>
26         <call EditTextNormal(lang("topic.title"), 40, 255, "title", request.topic.title)>
27         <call EditTextAreaNormal(lang("topic.description"), "", 40, 3, "description", request.topic.description)>
28         <call EditTextNormal(lang("topic.filename"), 20, 255, "filename", request.topic.filename)>
29         <call EditTextNormal(lang("topic.main_url"), 40, 255, "mainUrl", request.topic.mainUrl)>
30         <call EditTextNormal(lang("topic.archive_url"), 40, 255, "archivUrl", request.topic.archivUrl)>
31         
32         
33       
34         <if new=="1">
35           <call EditSubmitButtonNormal(lang("insert"), "save")>
36         <else>
37           <call EditSubmitButtonNormal(lang("save"), "save")>
38         </if> 
39
40       <call EditEnd()>
41       
42       <if returnurl>
43         <call showBack(returnurl)>
44       <else>
45         <call showBack("topicList.do")>
46       </if>
47
48     <include "foot.tmpl">
49   </body>
50 </html>