Changeset 5132 for trunk/calendar/templates/default/edit.tpl
- Timestamp:
- 11/03/11 13:21:19 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/calendar/templates/default/edit.tpl
r4473 r5132 10 10 </style> 11 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 12 self.name="first_Window"; 52 13 function accounts_popup() … … 54 15 Window1=window.open('{accounts_link}',"Search","width=800,height=600,toolbar=no,scrollbars=yes,resizable=yes"); 55 16 } 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 17 </script> 76 18 <center> 77 19 <font color="#000000" face="{font}"> 78 79 <form action="{action_url}" method="post" name="app_form" enctype="multipart/form-data"> 20 <form action="{action_url}" method="post" name="app_form" id="formEvent"> 80 21 {common_hidden} 81 22 <table id="editFormTable" border="0" width="90%" class="prefTable"> 23 <input id="set_participants" style="visibility: hidden;" value="{lang_set_participants}"></input> 82 24 <tr> 83 25 <td colspan="2"> … … 94 36 var alert_field = '{alert_msg}'; 95 37 </script> 96 <input id="submit_button" style="font-size:10px" type=" submit" value="{submit_button}" onClick="return submitValues(alert_field);"></div></form>38 <input id="submit_button" style="font-size:10px" type="button" value="{submit_button}" onclick="javascript:submitValues(this);" ></div></form> 97 39 </td> 98 40 <td>{cancel_button}</td>
Note: See TracChangeset
for help on using the changeset viewer.