]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - modules/Activities/OpenListView.html
Release 6.2.0
[Github/sugarcrm.git] / modules / Activities / OpenListView.html
1 admin   <!--
2 /*********************************************************************************
3  * SugarCRM Community Edition is a customer relationship management program developed by
4  * SugarCRM, Inc. Copyright (C) 2004-2011 SugarCRM Inc.
5  * 
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.
12  * 
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
16  * details.
17  * 
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
21  * 02110-1301 USA.
22  * 
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.
25  * 
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.
29  * 
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  ********************************************************************************/
36
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  ********************************************************************************/
40 -->
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>
47
48 <script>
49
50 //var global_request_registry = new Object();
51
52 function ResponseObj()
53 {
54 }
55
56 ResponseObj.prototype.response = function (result) {
57  if ( result.status == 'success')
58
59  {
60    if ( result.accept_status == 'decline')
61    {
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";
69    } else {
70     //alert("The invitation has been accepted");
71     var elem = document.getElementById('accept'+result.record);
72     elem.innerHTML= "Accepted";
73    }
74  }
75  else
76  {
77    alert("There was an internal error: ");
78  }
79 }
80
81 function setAcceptStatus(module,id,status)
82 {
83
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'];
89
90
91 }
92 </script>
93
94 <table cellpadding="0" cellspacing="0" width="100%" border="0" class="list view">
95         <tr height="20" >
96
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>
102           </tr>
103
104
105 <!-- BEGIN: row -->
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>
112 </tr>
113
114 <!-- END: row -->
115
116         </table>
117 <!-- END: open_activity -->