init
This commit is contained in:
116
modules/EcmReminders/OpenListView.html
Normal file
116
modules/EcmReminders/OpenListView.html
Normal file
@@ -0,0 +1,116 @@
|
||||
admin <!--
|
||||
/*********************************************************************************
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004 - 2007 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
********************************************************************************/
|
||||
/*********************************************************************************
|
||||
* {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}
|
||||
********************************************************************************/
|
||||
-->
|
||||
<!-- BEGIN: open_activity -->
|
||||
<script type="text/javascript" src="include/JSON.js"></script>
|
||||
<script type="text/javascript" src="include/jsolait/init.js"></script>
|
||||
<script type="text/javascript">{JSON_CONFIG_JAVASCRIPT}</script>
|
||||
<script type="text/javascript" src="include/javascript/jsclass_base.js"></script>
|
||||
<script type="text/javascript" src="include/javascript/jsclass_async.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
//var global_request_registry = new Object();
|
||||
|
||||
function ResponseObj()
|
||||
{
|
||||
}
|
||||
|
||||
ResponseObj.prototype.response = function (result) {
|
||||
if ( result.status == 'success')
|
||||
|
||||
{
|
||||
if ( result.accept_status == 'decline')
|
||||
{
|
||||
//alert("The invitation has been declined");
|
||||
var elem = document.getElementById('accept'+result.record);
|
||||
elem.innerHTML= "Declined";
|
||||
} else if ( result.accept_status == 'tentative') {
|
||||
//alert("The invitation has been tentatively accepted");
|
||||
var elem = document.getElementById('accept'+result.record);
|
||||
elem.innerHTML= "Tentative";
|
||||
} else {
|
||||
//alert("The invitation has been accepted");
|
||||
var elem = document.getElementById('accept'+result.record);
|
||||
elem.innerHTML= "Accepted";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
alert("There was an internal error: ");
|
||||
}
|
||||
}
|
||||
|
||||
function setAcceptStatus(module,id,status)
|
||||
{
|
||||
|
||||
query = {"module":module,"record":id,"accept_status":status};
|
||||
//rpcClient.call_method('query',request);
|
||||
req_id = global_rpcClient.call_method('set_accept_status',query);
|
||||
var res = new ResponseObj();
|
||||
global_request_registry[req_id] = [ res,'response'];
|
||||
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<table cellpadding="0" cellspacing="0" width="100%" border="0" class="listView">
|
||||
<tr height="20" class="listViewThS1">
|
||||
|
||||
<td width="2%" class="listViewThS1"><img src="include/images/blank.gif" widht="1" height="1" alt=""></td>
|
||||
<td scope="col" width="1%" class="listViewThS1">{MOD.LBL_LIST_CLOSE}</td>
|
||||
<td scope="col" width="34%" class="listViewThS1">{MOD.LBL_LIST_SUBJECT}</td>
|
||||
<td scope="col" width="10%" class="listViewThS1">{MOD.LBL_LIST_DATE}</td>
|
||||
<td scope="col" width="10%" class="listViewThS1">{MOD.LBL_LIST_STATUS}</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<!-- BEGIN: row -->
|
||||
<tr height="20" onmouseover="setPointer(this, '{ACTIVITY.ID}', 'over', '{BG_COLOR}', '{BG_HILITE}', '{BG_CLICK}');" onmouseout="setPointer(this, '{ACTIVITY.ID}', 'out', '{BG_COLOR}', '{BG_HILITE}', '{BG_CLICK}');" onmousedown="setPointer(this, '{ACTIVITY.ID}', 'click', '{BG_COLOR}', '{BG_HILITE}', '{BG_CLICK}');">
|
||||
<td nowrap valign=TOP bgcolor="{BG_COLOR}" class={ROW_COLOR}S1 >{ACTIVITY_MODULE_PNG}</td>
|
||||
<td nowrap valign=TOP bgcolor="{BG_COLOR}" align='center' class={ROW_COLOR}S1 >{ACTIVITY.SET_COMPLETE}</td>
|
||||
<td scope='row' valign=TOP bgcolor="{BG_COLOR}" class={ROW_COLOR}S1 ><{ACTIVITY.TAG} title="{ACTIVITY.TITLE}" href="{URL_PREFIX}index.php?action=DetailView&module={ACTIVITY.MODULE}&record={ACTIVITY.ID}{RETURN_URL}" class="listViewTdLinkS1">{ACTIVITY.NAME}</{TAG.MAIN}></td>
|
||||
<td nowrap valign=TOP bgcolor="{BG_COLOR}" class={ROW_COLOR}S1 >{ACTIVITY.TIME}</td>
|
||||
<td nowrap valign=TOP bgcolor="{BG_COLOR}" class={ROW_COLOR}S1 >{ACTIVITY.STATUS}</td>
|
||||
</tr>
|
||||
<tr><td colspan="20" class="listViewHRS1"></td></tr>
|
||||
<!-- END: row -->
|
||||
|
||||
</table>
|
||||
<!-- END: open_activity -->
|
||||
Reference in New Issue
Block a user