Changeset 1009
- Timestamp:
- 09/16/06 22:18:34
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.css
r1007 r1009 564 564 } 565 565 #clock { 566 position: relative; 566 position: absolute; 567 top: 460px; 568 left: 320px; 567 569 } 568 570 .shown { … … 613 615 position: absolute; 614 616 top: -300px; 615 left: -100px;617 left: 150px; 616 618 width: 500px; 617 padding: 1 em;618 border: 2px solid # 666;619 padding: 18px; 620 border: 2px solid #ccc; 619 621 background: white; 620 622 color: black; … … 622 624 #recipientsAndAttendeesBox h4 { 623 625 padding: 4px; 624 margin: -1em -1em 1em -1em; 625 text-align: center; 626 color: black; 627 background: #ddd; 626 margin: -20px -20px 10px -20px; 627 text-align: center; 628 color: #eee; 629 background: #233979 url(../../resources/glassFill-02.gif) repeat-x bottom; 630 border: 2px solid #233979; 628 631 } 629 632 #recipientsAndAttendeesBox table { trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl
r1007 r1009 77 77 <xsl:variable name="event-selectCalForEvent" select="/bedework/urlPrefixes/event/selectCalForEvent/a/@href"/> 78 78 <xsl:variable name="event-attendeesForEvent" select="/bedework/urlPrefixes/event/attendeesForEvent/a/@href"/> 79 <xsl:variable name="event-showAttendeesForEvent" select="/bedework/urlPrefixes/event/showAttendeesForEvent/a/@href"/> 79 80 <xsl:variable name="editEvent" select="/bedework/urlPrefixes/editEvent"/> 80 81 <xsl:variable name="delEvent" select="/bedework/urlPrefixes/delEvent"/> … … 1585 1586 </div> 1586 1587 </div><br/> 1587 <div id="clock" class="invisible">1588 <xsl:call-template name="clock"/>1589 </div>1590 1588 <div class="dateFields"> 1591 1589 <xsl:choose> … … 1714 1712 </td> 1715 1713 <td class="fieldval posrelative"> 1716 <input type="button" value="Add recipients and attendees" onclick="changeClass('recipientsAndAttendees','shown')"/> 1717 <!-- the following is the recipients and attendees dialog box --> 1718 <div id="recipientsAndAttendees" class="invisible"> 1719 <div id="recipientsAndAttendeesBox"> 1720 <h4 id="dialogTitle"><!--onmousedown="bwDrag('recipientsAndAttendeesBox')" onmouseup="bwDrop('recipientsAndAttendeesBox')"--> 1721 Recipients and Attendees 1722 </h4> 1723 <table cellspacing="0"> 1724 <tr> 1725 <td> 1726 <input name="raHolder" width="40"/> 1727 <input type="button" value="add" onclick="postRecipientsAndAttendees('standardForm','{$event-attendeesForEvent}');"/> 1728 <br/> 1729 <input type="checkbox" name="recipient" value="true" checked="checked"/> recipient 1730 <input type="checkbox" name="attendee" value="true" checked="checked"/> attendee 1731 </td> 1732 <td> 1733 Role: 1734 <select name="role"> 1735 <option value="REQ-PARTICIPANT">required participant</option> 1736 <option value="OPT-PARTICIPANT">optional participant</option> 1737 <option value="CHAIR">chair</option> 1738 <option value="NON-PARTICIPANT">non-participant</option> 1739 </select><br/> 1740 Status: 1741 <select name="partstat"> 1742 <option value="NEEDS-ACTION">needs action</option> 1743 <option value="ACCEPTED">accepted</option> 1744 <option value="DECLINED">declined</option> 1745 <option value="TENTATIVE">tentative</option> 1746 <option value="DELEGATED">delegated</option> 1747 </select> 1748 </td> 1749 </tr> 1750 </table> 1751 <table cellspacing="0"> 1752 <tr> 1753 <th>Recipients</th> 1754 <th>Attendees</th> 1755 </tr> 1756 <tr> 1757 <td> 1758 <div id="recipientList"> 1759 </div> 1760 </td> 1761 <td> 1762 <div id="attendeeList"> 1763 </div> 1764 </td> 1765 </tr> 1766 </table> 1767 <input type="button" value="done" onclick="changeClass('recipientsAndAttendees','invisible');"/> 1768 </div> 1769 </div> 1714 <input type="button" value="Manage recipients and attendees" onclick="changeClass('recipientsAndAttendees','shown')"/> 1770 1715 </td> 1771 1716 </tr> … … 1799 1744 </tr> 1800 1745 </table> 1746 </form> 1747 1748 <!-- pop-up dialog boxes in use with the events page --> 1749 <!-- these should follow other items in the form and in some cases 1750 be in a different form --> 1751 1752 <div id="clock" class="invisible"> 1753 <xsl:call-template name="clock"/> 1754 </div> 1755 1756 <form name="raForm" id="recipientsAndAttendees" class="invisible"> 1757 <div id="recipientsAndAttendeesBox"> 1758 <h4 id="dialogTitle"><!--onmousedown="bwDrag('recipientsAndAttendeesBox')" onmouseup="bwDrop('recipientsAndAttendeesBox')"--> 1759 Recipients and Attendees 1760 </h4> 1761 <div id="raContent"> 1762 <table cellspacing="0"> 1763 <tr> 1764 <td> 1765 <input name="raHolder" width="40"/> 1766 <input type="button" value="add" onclick="postRecipientsAndAttendees('recipientsAndAttendees','{$event-attendeesForEvent}','{$event-showAttendeesForEvent}');"/> 1767 <br/> 1768 <input type="checkbox" name="recipient" value="true" checked="checked"/> recipient 1769 <input type="checkbox" name="attendee" value="true" checked="checked"/> attendee 1770 </td> 1771 <td> 1772 Role: 1773 <select name="role"> 1774 <option value="REQ-PARTICIPANT">required participant</option> 1775 <option value="OPT-PARTICIPANT">optional participant</option> 1776 <option value="CHAIR">chair</option> 1777 <option value="NON-PARTICIPANT">non-participant</option> 1778 </select><br/> 1779 Status: 1780 <select name="partstat"> 1781 <option value="NEEDS-ACTION">needs action</option> 1782 <option value="ACCEPTED">accepted</option> 1783 <option value="DECLINED">declined</option> 1784 <option value="TENTATIVE">tentative</option> 1785 <option value="DELEGATED">delegated</option> 1786 </select> 1787 </td> 1788 </tr> 1789 </table> 1790 <table cellspacing="0"> 1791 <tr> 1792 <th>Recipients</th> 1793 <th>Attendees</th> 1794 </tr> 1795 <tr> 1796 <td> 1797 <div id="recipientList"> 1798 </div> 1799 </td> 1800 <td> 1801 <div id="attendeeList"> 1802 </div> 1803 </td> 1804 </tr> 1805 </table> 1806 <input type="button" value="done" onclick="changeClass('recipientsAndAttendees','invisible');"/> 1807 </div> 1808 </div> 1801 1809 </form> 1802 1810 </xsl:template> trunk/deployment/webuser/webapp/resources/demoskins/resources/includes.js
r1007 r1009 163 163 /* AJAX-style asynchronous interactions */ 164 164 /****************************************/ 165 165 166 var req; 166 167 167 function postRecipientsAndAttendees(formId,url Prefix) {168 function postRecipientsAndAttendees(formId,urlActionPrefix,urlRenderPrefix) { 168 169 formObj = document.getElementById(formId); 169 170 … … 174 175 var status = formObj.partstat.value; 175 176 176 var url = urlPrefix;177 url += "&uri=" + val;177 var postUrl = urlActionPrefix; 178 postUrl += "&uri=" + val; 178 179 if (isRecipient) { 179 url += "&recipient=yes";180 postUrl += "&recipient=yes"; 180 181 } 181 182 if (isAttendee) { 182 url += "&attendee=yes&role=" + role + "&status=" + status;183 postUrl += "&attendee=yes&role=" + role + "&status=" + status; 183 184 } 184 185 … … 188 189 req = new ActiveXObject("Microsoft.XMLHTTP"); 189 190 } 190 req.open("GET", url, true);191 req.open("GET", postUrl, true); 191 192 req.onreadystatechange = callback(); 192 193 req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); 193 req.send(url); 194 195 /*updateRecipientAndAttendeesListing(req);*/ 194 req.send(postUrl); 195 196 /* return the data */ 197 var getUrl = urlRenderPrefix; 198 req.open("GET", getUrl, true); 199 req.onreadystatechange = callback(); 196 200 } 197 201 function callback() { 198 202 if (req.readyState == 4) { 199 203 if (req.status == 200) { 200 /*do nothing for now*/ 204 /*var recipients = req.responseXML.getElementsByTagName("recipients")[0]; 205 var attendees = req.responseXML.getElementsByTagName("attendees")[0]; 206 recipientList = document.getElementById("recipientList"); 207 attendeeList = document.getElementById("attendeeList"); 208 recipientList.innerHTML = recipients; 209 attendeeList.innerHTML = attendeeList;*/ 201 210 } 202 211 } 203 212 } 204 function updateRecipientAndAttendeesListing(req) {205 var recipients = req.responseXML.getElementsByTagName("recipients")[0];206 var attendees = req.responseXML.getElementsByTagName("attendees")[0];207 recipientList = document.getElementById("recipientList");208 attendeeList = document.getElementById("attendeeList");209 recipientList.innerHTML = recipients;210 attendeeList.innerHTML = attendeeList;211 }
