| 1 |
{*<!-- |
|---|
| 2 |
/*+******************************************************************************** |
|---|
| 3 |
* The contents of this file are subject to the vtiger CRM Public License Version 1.0 |
|---|
| 4 |
* ("License"); You may not use this file except in compliance with the License |
|---|
| 5 |
* The Original Code is: vtiger CRM Open Source |
|---|
| 6 |
* The Initial Developer of the Original Code is vtiger. |
|---|
| 7 |
* Portions created by vtiger are Copyright (C) vtiger. |
|---|
| 8 |
* All Rights Reserved. |
|---|
| 9 |
*********************************************************************************/ |
|---|
| 10 |
-->*} |
|---|
| 11 |
<table border=0 cellspacing=0 cellpadding=0 width=100% class="small" |
|---|
| 12 |
style="border-bottom:1px solid #999999;padding:5px; background-color: #eeeeff;"> |
|---|
| 13 |
<tr> |
|---|
| 14 |
<td align="left"> |
|---|
| 15 |
{$RELATEDLISTDATA.navigation.0} |
|---|
| 16 |
{if $MODULE eq 'Campaigns' && ($RELATED_MODULE eq 'Contacts' || $RELATED_MODULE eq |
|---|
| 17 |
'Leads') && $RELATEDLISTDATA.entries|@count > 0} |
|---|
| 18 |
<br>{$APP.LBL_SELECT_BUTTON_LABEL}: <a href="javascript:void(0);" |
|---|
| 19 |
onclick="clear_checked_all('{$RELATED_MODULE}');">{$APP.LBL_NONE_NO_LINE}</a> |
|---|
| 20 |
{/if} |
|---|
| 21 |
</td> |
|---|
| 22 |
<td align="center">{$RELATEDLISTDATA.navigation.1} </td> |
|---|
| 23 |
<td align="right"> |
|---|
| 24 |
{$RELATEDLISTDATA.CUSTOM_BUTTON} |
|---|
| 25 |
|
|---|
| 26 |
{if $HEADER eq 'Contacts' && $MODULE neq 'Campaigns' && $MODULE neq 'Accounts' && $MODULE neq 'Potentials' && $MODULE neq 'Products' && $MODULE neq 'Vendors'} |
|---|
| 27 |
{if $MODULE eq 'Calendar'} |
|---|
| 28 |
<input alt="{$APP.LBL_SELECT_CONTACT_BUTTON_LABEL}" title="{$APP.LBL_SELECT_CONTACT_BUTTON_LABEL}" accessKey="" class="crmbutton small edit" value="{$APP.LBL_SELECT_BUTTON_LABEL} {$APP.Contacts}" LANGUAGE=javascript onclick='return window.open("index.php?module=Contacts&return_module={$MODULE}&action=Popup&popuptype=detailview&select=enable&form=EditView&form_submit=false&recordid={$ID}{$search_string}","test","width=640,height=602,resizable=0,scrollbars=0");' type="button" name="button"></td> |
|---|
| 29 |
{elseif $MODULE neq 'Services'} |
|---|
| 30 |
<input title="{$APP.LBL_ADD_NEW} {$APP.Contact}" accessyKey="F" class="crmbutton small create" onclick="this.form.action.value='EditView';this.form.module.value='Contacts'" type="submit" name="button" value="{$APP.LBL_ADD_NEW} {$APP.Contact}"></td> |
|---|
| 31 |
{/if} |
|---|
| 32 |
{elseif $HEADER eq 'Users' && $MODULE eq 'Calendar'} |
|---|
| 33 |
<input title="Change" accessKey="" tabindex="2" type="button" class="crmbutton small edit" value="{$APP.LBL_SELECT_USER_BUTTON_LABEL}" name="button" LANGUAGE=javascript onclick='return window.open("index.php?module=Users&return_module=Calendar&return_action={$return_modname}&activity_mode=Events&action=Popup&popuptype=detailview&form=EditView&form_submit=true&select=enable&return_id={$ID}&recordid={$ID}","test","width=640,height=525,resizable=0,scrollbars=0")';> |
|---|
| 34 |
{/if} |
|---|
| 35 |
|
|---|
| 36 |
</td> |
|---|
| 37 |
</tr> |
|---|
| 38 |
</table> |
|---|
| 39 |
|
|---|
| 40 |
<table border=0 cellspacing=1 cellpadding=3 width=100% style="background-color:#eaeaea;" class="small"> |
|---|
| 41 |
<tr style="height:25px" bgcolor=white> |
|---|
| 42 |
{if $MODULE eq 'Campaigns' && ($RELATED_MODULE eq 'Contacts' || $RELATED_MODULE eq 'Leads') |
|---|
| 43 |
&& $RELATEDLISTDATA.entries|@count > 0} |
|---|
| 44 |
<td class="lvtCol"> |
|---|
| 45 |
<input name ="{$RELATED_MODULE}_selectall" onclick="rel_toggleSelect(this.checked,'{$RELATED_MODULE}_selected_id','{$RELATED_MODULE}');" type="checkbox"> |
|---|
| 46 |
</td> |
|---|
| 47 |
{/if} |
|---|
| 48 |
{foreach key=index item=_HEADER_FIELD from=$RELATEDLISTDATA.header} |
|---|
| 49 |
<td class="lvtCol">{$_HEADER_FIELD}</td> |
|---|
| 50 |
{/foreach} |
|---|
| 51 |
</tr> |
|---|
| 52 |
{foreach key=_RECORD_ID item=_RECORD from=$RELATEDLISTDATA.entries} |
|---|
| 53 |
<tr bgcolor=white> |
|---|
| 54 |
{if $MODULE eq 'Campaigns' && ($RELATED_MODULE eq 'Contacts' || $RELATED_MODULE eq 'Leads')} |
|---|
| 55 |
<td><input name="{$RELATED_MODULE}_selected_id" id="{$_RECORD_ID}" value="{$_RECORD_ID}" onclick="rel_check_object(this,'{$RELATED_MODULE}');" type="checkbox" {$check_status.checked.$header}></td> |
|---|
| 56 |
{/if} |
|---|
| 57 |
{foreach key=index item=_RECORD_DATA from=$_RECORD} |
|---|
| 58 |
{* vtlib customization: Trigger events on listview cell *} |
|---|
| 59 |
<td onmouseover="vtlib_listview.trigger('cell.onmouseover', $(this))" onmouseout="vtlib_listview.trigger('cell.onmouseout', $(this))">{$_RECORD_DATA}</td> |
|---|
| 60 |
{* END *} |
|---|
| 61 |
{/foreach} |
|---|
| 62 |
</tr> |
|---|
| 63 |
{foreachelse} |
|---|
| 64 |
<tr style="height: 25px;" bgcolor="white"><td><i>{$APP.LBL_NONE_INCLUDED}</i></td></tr> |
|---|
| 65 |
{/foreach} |
|---|
| 66 |
</table> |
|---|