Linux multi-monitor fullscreen support
[ryzomcore.git] / web / public_php / admin / templates / default / tool_notes.tpl
blobe0e04106d19626d0428fde0bfda2704bf4464a15
2 {include file="page_header.tpl"}
4 {literal}
6 <script language="Javascript" type="text/javascript">
7 <!--
9         function toggleLine(myline)
10         {
11                 if (document.all)
12                 {
13                         if (document.all.item(myline).style.display == "none")
14                         {
15                                 document.all.item(myline).style.display = "";
16                         }
17                         else
18                         {
19                                 document.all.item(myline).style.display = "none";
20                         }
21                 }
22                 else
23                 {
24                         if (document.getElementById(myline).style.display == "none")
25                         {
26                                 document.getElementById(myline).style.display = "";
27                         }
28                         else
29                         {
30                                 document.getElementById(myline).style.display = "none";
31                         }
32                 }
33         }
35 //-->
36 </script>
38 {/literal}
40 <table width="100%" cellpadding="2" cellspacing="0" border="0">
41         <tr>
42                 <td align="left" valign="center"><span class="alert">{$tool_alert_message}</span></td>
43         </tr>
44 </table>
46 <br>
48 <table width="100%" border="0" cellpadding="0">
49 <tr>
50         <td align="left" valign="top" width="50%">
51                 <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
52                 <tr>
53                         <th colspan="10">Notes</th>
54                 </tr>
55                 <tr>
56                         <td><b>ID</b></td>
57                         <td><b>Title</b></td>
58                         <td><b>Mode</b></td>
59                         <td><b>Last Update</b></td>
60                         <td><b>Active</b></td>
61 {if $restriction_tool_notes_global}
62                         <td><b>Global</b></td>
63 {/if}
64                 </tr>
65                 {section name=note loop=$tool_note_list}
66                 <tr class="{cycle values="row1,row0"}">
67                         <td>{$tool_note_list[note].note_id}</td>
68                         <td><a href="tool_notes.php?note_id={$tool_note_list[note].note_id}">{$tool_note_list[note].note_title}</a></td>
69                         <td>{if $tool_note_list[note].note_mode  == 0}Text{else}Popup{/if}</td>
70                         <td>{$tool_note_list[note].note_date|date_format:"%Y/%m/%d %H:%M:%S"}</td>
71                         <td>{if $tool_note_list[note].note_active  == 1}Yes{else}No{/if}</td>
72 {if $restriction_tool_notes_global}
73                         <td>{if $tool_note_list[note].note_global  == 1}Yes{else}No{/if}</td>
74 {/if}
75                 </tr>
76                 {/section}
77                 </table>
78         </td>
80         <td>&nbsp;</td>
82         <td align="right" valign="top" width="50%">
83                 <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
84                 <form action="tool_notes.php" method="post">
85                 <tr>
86                         <th colspan="10">Notes Details</th>
87                 </tr>
88 {if $tool_note_edit_data.note_id}
89                 <tr>
90                         <td align="right">Id :</td>
91                         <td><input type="text" name="tool_form_note_id" value="{$tool_note_edit_data.note_id}" size="10" readonly></td>
92                 </tr>
93 {/if}
94                 <tr>
95                         <td align="right">Title :</td>
96                         <td><input type="text" name="tool_form_note_title" value="{$tool_note_edit_data.note_title}" maxlength="64" size="100%"></td>
97                 </tr>
99                 <tr>
100                         <td align="right">Mode : </td>
101                         <td><select name="tool_form_note_mode" onchange="toggleLine('note_mode_text'); toggleLine('note_mode_popup_uri'); toggleLine('note_mode_popup_restriction');">
102                                 <option value="text" {if $tool_note_edit_data.note_mode == 0}selected{/if}>Text</option>
103                                 <option value="popup" {if $tool_note_edit_data.note_mode == 1}selected{/if}>Popup</option>
104                         </select></td>
105                 </tr>
107                 <tr id="note_mode_text" name="note_mode_text" {if $tool_note_edit_data.note_mode == 1}style="display: none;"{/if}>
108                         <td align="right">Text :</td>
109                         <td><textarea name="tool_form_note_data" rows="15">{$tool_note_edit_data.note_data}</textarea></td>
110                 </tr>
112                 <tr id="note_mode_popup_uri" name="note_mode_popup_uri" {if $tool_note_edit_data.note_mode == 0}style="display: none;"{/if}>
113                         <td align="right">URI :</td>
114                         <td><input type="text" name="tool_form_note_popup_uri" value="{$tool_note_edit_data.note_popup_uri}" maxlength="255" size="100%"></td>
115                 </tr>
117                 <tr id="note_mode_popup_restriction" name="note_mode_popup_restriction" {if $tool_note_edit_data.note_mode == 0}style="display: none;"{/if}>
118                         <td align="right">Restriction :</td>
119                         <td><input type="text" name="tool_form_note_popup_restriction" value="{$tool_note_edit_data.note_popup_restriction}" maxlength="64" size="100%"></td>
120                 </tr>
122                 <tr>
123                         <td align="right">Active :</td>
124                         <td>
125                                 <select name="tool_form_note_active">
126                                         <option value="1" {if $tool_note_edit_data.note_active == 1}selected{/if}>Yes</option>
127                                         <option value="0" {if $tool_note_edit_data.note_active == 0}selected{/if}>No</option>
128                                 </select>
129                         </td>
130                 </tr>
131 {if $restriction_tool_notes_global}
132                 <tr>
133                         <td align="right">Global :</td>
134                         <td>
135                                 <select name="tool_form_note_global">
136                                         <option value="1" {if $tool_note_edit_data.note_global == 1}selected{/if}>Yes</option>
137                                         <option value="0" {if $tool_note_edit_data.note_global == 0}selected{/if}>No</option>
138                                 </select>
139                         </td>
140                 </tr>
141 {/if}
142                 <tr>
143                         <td>&nbsp;</td>
144                         <td>
146 {if $tool_note_edit_data.note_id}
147                                 <input type="submit" name="toolaction" value="update">
148                                 <input type="submit" name="toolaction" value="delete" onclick="if (confirm('Are you sure you want to DELETE this note ?')) return true; return false;">
149 {else}
150                                 <input type="submit" name="toolaction" value="create">
152 {/if}
154                         </td>
155                 </tr>
156                 </form>
157                 </table>
158         </td>
160 </tr>
161 </table>
164 {include file="page_footer.tpl"}