2 {include file="page_header.tpl"}
6 <script language="Javascript" type="text/javascript">
9 function toggleLine(myline)
13 if (document.all.item(myline).style.display == "none")
15 document.all.item(myline).style.display = "";
19 document.all.item(myline).style.display = "none";
24 if (document.getElementById(myline).style.display == "none")
26 document.getElementById(myline).style.display = "";
30 document.getElementById(myline).style.display = "none";
40 <table width="100%" cellpadding="2" cellspacing="0" border="0">
42 <td align="left" valign="center"><span class="alert">{$tool_alert_message}</span></td>
48 <table width="100%" border="0" cellpadding="0">
50 <td align="left" valign="top" width="50%">
51 <table width="100%" border="0" cellpadding="1" bgcolor="#cccccc" class="view">
53 <th colspan="10">Notes</th>
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>
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>
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">
86 <th colspan="10">Notes Details</th>
88 {if $tool_note_edit_data.note_id}
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>
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>
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>
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>
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>
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>
123 <td align="right">Active :</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>
131 {if $restriction_tool_notes_global}
133 <td align="right">Global :</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>
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;">
150 <input type="submit" name="toolaction" value="create">
164 {include file="page_footer.tpl"}