* sanitize the_mgts templates as webcit tells us; not functional yet.
[citadel.git] / webcit / static / t / room / edit / tab_expire.html
1 <div class="tabcontent">
2         <br />
3         <form method="post" action="set_room_policy">
4                 <input type="hidden" name="nonce" value="<?NONCE>" />
5                 <table border="0" cellspacing="5">
6                         <tr>
7                                 <td>
8                                         <?_("Message expire policy for this room")>
9                                         <br />
10                                         <?ROOMNAME("X")>
11                                 </td>
12                                 <td>
13                                         <input type="radio" name="roompolicy" value="0" %s />&nbsp;
14                                                 ((roompolicy == 0) ? "CHECKED" : "") );
15                                         <?_("Use the default policy for this floor")>&nbsp;
16                                         <br />
17                                         <input type="radio" name="roompolicy" value="1" <?%("COND:EXPIRE:MODE", 1, #"mailboxespolicy", #"EXPIRE_MANUAL", 'checked="checked"',"")> />&nbsp;
18                                         <?_("Never automatically expire messages")>
19                                         <br />
20                                         <input type="radio" name="roompolicy" value="2" <?%("COND:EXPIRE:MODE", 2, #"mailboxespolicy", #"EXPIRE_NUMMSG", 'checked="checked"', "")> />&nbsp;
21                                         <?_("Expire by message count")>
22                                         <br />
23                                         <input type="radio" name="roompolicy" value="3" <?%("COND:EXPIRE:MODE", 1, #"mailboxespolicy", #"EXPIRE_AGE", 'checked="checked"', "")> />&nbsp;
24                                         <?_("Expire by message age")>
25                                         <br />
26                                         <?_("Number of messages or days: ")>
27                                         <input type="text" name="roomvalue" maxlength="5" value="<?SERV:CFG("sitevalue")>" />
28                                 </td>
29                         </tr>
30         
31                         <??("COND:AIDE", 2 ...)>        if (WC->axlevel >= 6) {
32                         <tr>
33                                 <td colspan="2"><hr /></td>
34                         </tr>
35                         <tr>
36                                 <td>
37                                         <?_("Message expire policy for this floor")>
38                                         <br />(
39                                                 escputs(floorlist[WC->CurRoom.floorid]);
40                                 </td>
41                                 <td>
42                                         <input type="radio" name="floorpolicy" value="0" %s>",
43                                                 ((floorpolicy == 0) ? "CHECKED" : "") );
44                                         <?_("Use the system default")>
45                                         <br />
46                                         <input type="radio" name="floorpolicy" value="1" %s>",
47                                                 ((floorpolicy == 1) ? "CHECKED" : "") );
48                                         <?_("Never automatically expire messages")>
49                                         <br />
50                                         <input type="radio" name="floorpolicy" value="2" %s>",
51                                                 ((floorpolicy == 2) ? "CHECKED" : "") );
52                                         <?_("Expire by message count")>
53                                         <br />
54                                         <input type="radio" name="floorpolicy" value="3" %s>",
55                                                 ((floorpolicy == 3) ? "CHECKED" : "") );
56                                         <?_("Expire by message age")>
57                                         <br />
58                                         <?_("Number of messages or days: ")>
59                                         <input type="text" name="floorvalue" MAXLENGTH="5" value="%d">",
60                                                 floorvalue);
61                         <("X", 2)>      
62                         <tr>
63                                 <td colspan="2">
64                                         <hr />
65                                         <center>
66                                                 <input type="submit" name="ok_button" value="<?_("Save changes")>" />
67                                                 &nbsp;
68                                                 <input type="submit" name="cancel_button" value="<?_("Cancel")>" />
69                                         </center>
70                                 </td>
71                         <tr>
72                 </table>
73                 <input type="hidden" name="tab" value="expire" />
74         </form>
75 </div>