You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

199 lines
5.3 KiB

<!--
/*********************************************************************************
* The contents of this file are subject to the SugarCRM Public License Version 1.1.2
* ("License"); You may not use this file except in compliance with the
* License. You may obtain a copy of the License at http://www.sugarcrm.com/SPL
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
* the specific language governing rights and limitations under the License.
* The Original Code is: SugarCRM Open Source
* The Initial Developer of the Original Code is SugarCRM, Inc.
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.;
* All Rights Reserved.
* Contributor(s): ______________________________________.
********************************************************************************/
-->
<!-- BEGIN: main -->
<script language="javascript">
function showDefaultCustomView(selectView)
{
viewName = selectView.options[selectView.options.selectedIndex].value;
document.massdelete.viewname.value=viewName;
document.massdelete.action="index.php?module=Leads&action=index&return_module=Leads&return_action=index&viewname="+viewName;
document.massdelete.submit();
}
function massDelete()
{
x = document.massdelete.selected_id.length;
var viewid = document.massdelete.viewname.value;
idstring = "";
if ( x == undefined)
{
if (document.massdelete.selected_id.checked)
{
document.massdelete.idlist.value=document.massdelete.selected_id.value;
//alert(document.massdelete.idlist.value);
}
else
{
alert("Please select atleast one entity");
return false;
}
}
else
{
xx = 0;
for(i = 0; i < x ; i++)
{
if(document.massdelete.selected_id[i].checked)
{
idstring = document.massdelete.selected_id[i].value +";"+idstring
xx++
}
}
if (xx != 0)
{
document.massdelete.idlist.value=idstring;
//alert(document.massdelete.idlist.value);
}
else
{
alert("Please select atleast one entity");
return false;
}
}
document.massdelete.action="index.php?module=Users&action=massdelete&return_module=Leads&return_action=index&viewname="+viewid;
}
function massMail()
{
x = document.massdelete.selected_id.length;
var viewid = document.massdelete.viewname.value;
idstring = "";
if ( x == undefined)
{
if (document.massdelete.selected_id.checked)
{
document.massdelete.idlist.value=document.massdelete.selected_id.value;
}
else
{
alert("Please select atleast one entity");
return false;
}
}
else
{
xx = 0;
for(i = 0; i < x ; i++)
{
if(document.massdelete.selected_id[i].checked)
{
idstring = document.massdelete.selected_id[i].value +";"+idstring
xx++
}
}
if (xx != 0)
{
document.massdelete.idlist.value=idstring;
}
else
{
alert("Please select atleast one entity");
return false;
}
}
document.massdelete.action="index.php?module=CustomView&action=SendMailAction&return_module=Leads&return_action=index&viewname="+viewid;
}
function changeStatus()
{
x = document.massdelete.selected_id.length;
var viewid = document.massdelete.viewname.value;
idstring = "";
if ( x == undefined)
{
if (document.massdelete.selected_id.checked)
{
document.massdelete.idlist.value=document.massdelete.selected_id.value;
//alert(document.massdelete.idlist.value);
}
else
{
alert("Please select atleast one entity ");
return false;
}
}
else
{
xx = 0;
for(i = 0; i < x ; i++)
{
if(document.massdelete.selected_id[i].checked)
{
idstring = document.massdelete.selected_id[i].value +";"+idstring
xx++
}
}
if (xx != 0)
{
document.massdelete.idlist.value=idstring;
//alert(document.massdelete.idlist.value);
}
else
{
alert("Please select atleast one entity");
return false;
}
}
document.massdelete.action="index.php?module=Users&action=massChangeStatus&viewname="+viewid;
}
</script>
<table cellpadding="0" cellspacing="0" width="100%" border="0" class="FormBorder">
<tbody>
<tr height="20">
<td COLSPAN="30" class="listFormHeaderLinks">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>&nbsp;{RECORD_COUNTS}</td>
{NAVIGATION}
</tr>
</table>
</td>
</tr>
<tr><td colspan="30" height="1" class="blackLine"><IMG SRC="{IMAGE_PATH}blank.gif"></td></tr>
{LISTHEADER}
<tr><td colspan="30" height="1" class="blackLine"><IMG SRC="{IMAGE_PATH}blank.gif"></td></tr>
{LISTENTITY}
</form>
</table>
<br>
{SELECT_SCRIPT}
<!-- END: main -->
<!-- BEGIN: yahoo_id -->
<td align='center'><a href='http://edit.yahoo.com/config/send_webmesg?.target={LEAD.YAHOOID}'><img border=0 src='http://opi.yahoo.com/online?u={LEAD.YAHOOID}'&m=g&t=2'></a></td>
<!-- END: yahoo_id -->
<!-- BEGIN: no_yahoo_id -->
<td>&nbsp;</td>
<!-- END: no_yahoo_id -->
</table>