1 | <!-- BEGIN edit_entry --> |
---|
2 | <style type="text/css"> |
---|
3 | div#tipDiv { |
---|
4 | position:absolute; visibility:hidden; left:0; top:0; z-index:10000; |
---|
5 | background-color:#EFEFEF; border:1px solid #337; |
---|
6 | width:220px; padding:3px; |
---|
7 | color:#000; font-size:11px; line-height:1.2; |
---|
8 | cursor: default; |
---|
9 | } |
---|
10 | </style> |
---|
11 | <script language="JavaScript"> |
---|
12 | |
---|
13 | function addAttach(){ |
---|
14 | var divFiles = document.getElementById("divFiles"); |
---|
15 | if (! divFiles) |
---|
16 | return false; |
---|
17 | |
---|
18 | if (divFiles.lastChild) |
---|
19 | var countDivFiles = parseInt(divFiles.lastChild.id.split('_')[1]) + 1; |
---|
20 | |
---|
21 | if (! countDivFiles) |
---|
22 | var countDivFiles = 1; |
---|
23 | |
---|
24 | divFile = document.createElement('DIV'); |
---|
25 | |
---|
26 | |
---|
27 | divFile.innerHTML = "<input type='file' size='50' maxLength='255' id='"+"inputFile_"+countDivFiles+"' name='cal[attachment][]'>"; |
---|
28 | |
---|
29 | |
---|
30 | var linkFile = document.createElement("A"); |
---|
31 | linkFile.id = "linkFile_"+countDivFiles; |
---|
32 | linkFile.href='javascript:void(0)'; |
---|
33 | linkFile.onclick=function () {removeFile(this.id.replace("link","div")); return false;}; |
---|
34 | linkFile.innerHTML="Remove"; |
---|
35 | //divFile.innerHTML += " "; |
---|
36 | divFile.appendChild(linkFile); |
---|
37 | divFile.id = "divFile_"+countDivFiles; |
---|
38 | divFiles.appendChild(divFile); |
---|
39 | |
---|
40 | |
---|
41 | |
---|
42 | return document.getElementById("inputFile_"+countDivFiles); |
---|
43 | } |
---|
44 | |
---|
45 | function removeFile(id){ |
---|
46 | var border_id = id.substr(8,1); |
---|
47 | var el = Element(id); |
---|
48 | el.parentNode.removeChild(el); |
---|
49 | } |
---|
50 | |
---|
51 | self.name="first_Window"; |
---|
52 | function accounts_popup() |
---|
53 | { |
---|
54 | Window1=window.open('{accounts_link}',"Search","width=800,height=600,toolbar=no,scrollbars=yes,resizable=yes"); |
---|
55 | } |
---|
56 | |
---|
57 | function show_disponibility() { |
---|
58 | participants = ""; |
---|
59 | combo = document.getElementById('user_list'); |
---|
60 | if(combo.length==0) { |
---|
61 | alert('Selecione os participantes'); |
---|
62 | return; |
---|
63 | } |
---|
64 | |
---|
65 | for (i=0;i<combo.length;i++) { |
---|
66 | participants+=combo[i].value+","; |
---|
67 | } |
---|
68 | url = 'index.php?menuaction=calendar.uicalendar.disponibility&participants='+participants+'&date='+document.getElementById('start[str]').value; |
---|
69 | |
---|
70 | //alert(url); |
---|
71 | document.getElementById('frame_disponibility').src = url; |
---|
72 | document.getElementById('disponibility').style.display=''; |
---|
73 | //window.open(url); |
---|
74 | } |
---|
75 | </script> |
---|
76 | <center> |
---|
77 | <font color="#000000" face="{font}"> |
---|
78 | |
---|
79 | <form action="{action_url}" method="post" name="app_form" enctype="multipart/form-data"> |
---|
80 | {common_hidden} |
---|
81 | <table id="editFormTable" border="0" width="90%" class="prefTable"> |
---|
82 | <tr> |
---|
83 | <td colspan="2"> |
---|
84 | <center><font size="+1"><b id="formStatus">{errormsg}</b></font></center> |
---|
85 | </td> |
---|
86 | </tr> |
---|
87 | {row} |
---|
88 | <tr> |
---|
89 | <td> |
---|
90 | <table><tr valign="top"> |
---|
91 | <td> |
---|
92 | <div style="padding-top:15px; padding-right: 2px"> |
---|
93 | <script language="JavaScript"> |
---|
94 | var alert_field = '{alert_msg}'; |
---|
95 | </script> |
---|
96 | <input id="submit_button" style="font-size:10px" type="submit" value="{submit_button}" onClick="return submitValues(alert_field);"></div></form> |
---|
97 | </td> |
---|
98 | <td>{cancel_button}</td> |
---|
99 | </tr></table> |
---|
100 | </td> |
---|
101 | <td align="right">{delete_button}</td> |
---|
102 | </tr> |
---|
103 | </table> |
---|
104 | </font> |
---|
105 | </center> |
---|
106 | <!-- END edit_entry --> |
---|
107 | <!-- BEGIN list --> |
---|
108 | <tr bgcolor="{tr_color}"> |
---|
109 | <td valign="top" width="25%"> <b>{field}:</b></td> |
---|
110 | <td valign="top" width="75%">{data}</td> |
---|
111 | </tr> |
---|
112 | <!-- END list --> |
---|
113 | <!-- BEGIN hr --> |
---|
114 | <tr bgcolor="{tr_color}"> |
---|
115 | <td colspan="2"> |
---|
116 | {hr_text} |
---|
117 | </td> |
---|
118 | </tr> |
---|
119 | <!-- END hr --> |
---|