2 /*********************************************************************************
3 * SugarCRM Community Edition is a customer relationship management program developed by
4 * SugarCRM, Inc. Copyright (C) 2004-2011 SugarCRM Inc.
6 * This program is free software; you can redistribute it and/or modify it under
7 * the terms of the GNU Affero General Public License version 3 as published by the
8 * Free Software Foundation with the addition of the following permission added
9 * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
10 * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
11 * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
13 * This program is distributed in the hope that it will be useful, but WITHOUT
14 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15 * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
18 * You should have received a copy of the GNU Affero General Public License along with
19 * this program; if not, see http://www.gnu.org/licenses or write to the Free
20 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
23 * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
24 * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
26 * The interactive user interfaces in modified source and object code versions
27 * of this program must display Appropriate Legal Notices, as required under
28 * Section 5 of the GNU Affero General Public License version 3.
30 * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
31 * these Appropriate Legal Notices must retain the display of the "Powered by
32 * SugarCRM" logo. If the display of the logo is not reasonably feasible for
33 * technical reasons, the Appropriate Legal Notices must display the words
34 * "Powered by SugarCRM".
35 ********************************************************************************/
37 /*********************************************************************************
38 * {APP.LBL_CURRENCY_SYM}Header: /cvsroot/sugarcrm/sugarcrm/modules/Activities/OpenListView.html,v 1.1 2004/07/02 07:32:20 sugarclint Exp {APP.LBL_CURRENCY_SYM}
39 ********************************************************************************/
41 <!-- BEGIN: open_activity -->
42 <script type="text/javascript" src="include/JSON.js"></script>
43 <script type="text/javascript" src="include/jsolait/init.js"></script>
44 <script type="text/javascript">{JSON_CONFIG_JAVASCRIPT}</script>
45 <script type="text/javascript" src="include/javascript/jsclass_base.js"></script>
46 <script type="text/javascript" src="include/javascript/jsclass_async.js"></script>
50 //var global_request_registry = new Object();
52 function ResponseObj()
56 ResponseObj.prototype.response = function (result) {
57 if ( result.status == 'success')
60 if ( result.accept_status == 'decline')
62 //alert("The invitation has been declined");
63 var elem = document.getElementById('accept'+result.record);
64 elem.innerHTML= "Declined";
65 } else if ( result.accept_status == 'tentative') {
66 //alert("The invitation has been tentatively accepted");
67 var elem = document.getElementById('accept'+result.record);
68 elem.innerHTML= "Tentative";
70 //alert("The invitation has been accepted");
71 var elem = document.getElementById('accept'+result.record);
72 elem.innerHTML= "Accepted";
77 alert("There was an internal error: ");
81 function setAcceptStatus(module,id,status)
84 query = {"module":module,"record":id,"accept_status":status};
85 //rpcClient.call_method('query',request);
86 req_id = global_rpcClient.call_method('set_accept_status',query);
87 var res = new ResponseObj();
88 global_request_registry[req_id] = [ res,'response'];
94 <table cellpadding="0" cellspacing="0" width="100%" border="0" class="list view">
97 <td width="2%" ><img src="include/images/blank.gif" widht="1" height="1" alt=""></td>
98 <td scope="col" width="1%" >{MOD.LBL_LIST_CLOSE}</td>
99 <td scope="col" width="34%" >{MOD.LBL_LIST_SUBJECT}</td>
100 <td scope="col" width="10%" >{MOD.LBL_LIST_DATE}</td>
101 <td scope="col" width="10%" >{MOD.LBL_ACCEPT_THIS}</td>
106 <tr height="20" class="{ROW_COLOR}S1">
107 <td nowrap="nowrap" valign="top">{ACTIVITY_MODULE_PNG}</td>
108 <td nowrap="nowrap" valign="top" align='center'>{ACTIVITY.SET_COMPLETE}</td>
109 <td scope='row' nowrap="nowrap" valign="top"><{ACTIVITY.TAG} title="{ACTIVITY.TITLE}" href="{URL_PREFIX}index.php?action=DetailView&module={ACTIVITY.MODULE}&record={ACTIVITY.ID}{RETURN_URL}" >{ACTIVITY.NAME}</{TAG.MAIN}></td>
110 <td nowrap="nowrap" valign="top">{ACTIVITY.TIME}</td>
111 <td nowrap="nowrap" valign="top">{ACTIVITY.SET_ACCEPT_LINKS}</td>
117 <!-- END: open_activity -->