+++ /dev/null
-<?xml version='1.0' standalone='yes'?>
-<span
- xmlns="http://www.w3.org/1999/xhtml"
- xmlns:var="http://www.skyrix.com/od/binding"
- xmlns:const="http://www.skyrix.com/od/constant"
- xmlns:rsrc="OGo:url"
- xmlns:label="OGo:label"
- class="aptview_text"
->
- <script language="JavaScript">
- <var:string value="jsCode" const:escapeHTML="NO" />
- </script>
- <var:component className="AnaisSelector"
- label:title="Search in Anais"
- var:windowId="windowId"
- var:division="division"
- var:callback="callbackName"
- const:extraAttributes="cn,dn"/>
- <var:if condition="withAddressBook">
- <var:component className="UIxContactSelector"
- label:title="Search in Addressbook"
- var:windowId="windowId"
- var:callback="callbackName" />
- </var:if>
- <hr />
- <table var:id="tableId">
- <var:if condition="showDefaultAttendees">
- <tr>
- <td><input type="checkbox"
- checked="YES"
- var:value="combinedInfoForUser"
- var:id="emailForUser"
- var:name="checkboxId"
- /></td>
- <td><var:string value="cnForUser" /></td>
- </tr>
- </var:if>
-
- <var:foreach list="attendees" item="attendee">
- <tr>
- <var:if condition="withCN">
- <td><input type="checkbox"
- checked="YES"
- var:value="combinedInfo"
- var:id="attendee.rfc822Email"
- var:name="checkboxId"
- /></td>
- </var:if>
-
- <var:if condition="withCN" const:negate="YES">
- <td><input type="checkbox"
- checked="YES"
- var:value="attendee.rfc822Email"
- var:id="attendee.rfc822Email"
- var:name="checkboxId"
- /></td>
- </var:if>
-
- <td><var:string value="attendee.cnForDisplay" /></td>
- </tr>
- </var:foreach>
- </table>
-</span>
+++ /dev/null
-<?xml version='1.0' standalone='yes'?>
-
-<span xmlns="http://www.w3.org/1999/xhtml"
- xmlns:var="http://www.skyrix.com/od/binding"
- xmlns:const="http://www.skyrix.com/od/constant"
- xmlns:rsrc="OGo:url"
- xmlns:label="OGo:label"
- >
- <script language="JavaScript">
- function clearElementWithId(elemId) {
- var o = document.getElementById(elemId);
- var dst = o.parentNode;
- var n = document.createElement('td');
- n.setAttribute('id', elemId);
- n.setAttribute('align', 'left');
- n.setAttribute('class', 'anais_uids');
- dst.replaceChild(n, o);
- }
- function clearUidList() {
- clearElementWithId('userCNs');
- var e = document.getElementById('userUIDString');
- e.setAttribute('value', '');
- var td = document.getElementById('addMeToo');
- td.setAttribute('style', 'visibility:visible');
- td = document.getElementById('clearUidList');
- td.setAttribute('style', 'visibility:hidden');
- td = document.getElementById('showUidList');
- td.setAttribute('style', 'visibility:hidden');
- }
- function addMeToo() {
- addUid('', '', '<var:string value="context.activeUser.login" />', '', '<var:string value="context.activeUser.cn" />', '');
- var td = document.getElementById('addMeToo');
- td.setAttribute('style', 'visibility:hidden');
- }
- function clearAllAndAddMe() {
- clearUidList();
- addMeToo();
- }
- function addUidFromAnais(type, email, uid, sn, cn, dn) {
- addUid(type, email, uid, sn, cn, dn);
- }
- function addUid(type, email, uid, sn, cn, dn) {
- if(!uid)
- return;
- var e = document.getElementById(uid);
- if (e)
- return;
- e = document.getElementById('userUIDString');
- var s = e.getAttribute('value');
- if(s)
- s = s + ',' + uid;
- else
- s = uid;
- e.setAttribute('value', s);
-
- // add CN
- var td = document.getElementById('userCNs');
- var text;
- if(td.hasChildNodes()) {
- text = document.createTextNode(', ');
- td.appendChild(text);
- }
- text = document.createTextNode(cn);
- var span = document.createElement('span');
- span.setAttribute('id', uid);
- if(uid == '<var:string value="context.activeUser.login" />')
- span.setAttribute('class', 'anais_me');
- span.appendChild(text);
- td.appendChild(span);
-
- td = document.getElementById('clearUidList');
- td.setAttribute('style', 'visibility:visible');
- td = document.getElementById('showUidList');
- td.setAttribute('style', 'visibility:visible');
- }
- </script>
- <table cellspacing="2" cellpadding="0" width="100%" border="0">
- <var:if condition="isAccessRestricted" const:negate="YES">
- <tr valign="middle">
- <td>
- <var:component className="AnaisSelector"
- label:title="Search in Anais"
- const:windowId="UidSelector"
- const:callback="addUidFromAnais"
- const:extraAttributes="cn,dn"
- />
- <var:component className="UIxContactSelector"
- label:title="Search in Addressbook"
- const:windowId="UidSelector"
- const:callback="addUid"
- />
- <span id="addMeToo" class="button_submit_env" var:style="meTooStyle">
- <a href="javascript:addMeToo()"
- class="button_submit"
- ><var:string label:value="me too" /></a>
- </span>
- <span id="clearAllAndAddMe" class="button_submit_env">
- <a href="javascript:clearAllAndAddMe()"
- class="button_submit"
- ><var:string label:value="me alone" /></a>
- </span>
- </td>
- <td align="right" valign="middle" rowspan="2">
- <div style="clear: both; text-align: center;">
- <div style="margin-bottom: 4px;">
- <span id="clearUidList" class="button_submit_env">
- <a href="javascript:clearUidList()"
- class="button_submit"
- ><var:string label:value="clear" /></a>
- </span>
- </div>
- <div style="margin-top: 4px;">
- <span id="showUidList" class="button_submit_env">
- <form var:href="showHref">
- <input type="hidden"
- name="userUIDString"
- id="userUIDString"
- var:value="userUIDString"
- />
- <input type="hidden"
- name="previousMethod"
- var:value="ownMethodName"
- />
- <input type="submit" label:value="show" class="button_auto" />
- </form>
- </span>
- </div>
- </div>
- </td>
- </tr>
- </var:if>
- <tr valign="top">
- <td id="userCNs"
- align="left"
- class="anais_uids"
- ><var:foreach list="userUIDs"
- item="userUID"
- index="userUIDIdx"
- ><var:if condition="needsComma">, </var:if>
- <var:string value="prettyCN"
- const:escapeHTML="NO"
- /></var:foreach>
- </td>
- </tr>
- </table>
-</span>