| 1 |
{*<!-- |
|---|
| 2 |
|
|---|
| 3 |
/********************************************************************************* |
|---|
| 4 |
** The contents of this file are subject to the vtiger CRM Public License Version 1.0 |
|---|
| 5 |
* ("License"); You may not use this file except in compliance with the License |
|---|
| 6 |
* The Original Code is: vtiger CRM Open Source |
|---|
| 7 |
* The Initial Developer of the Original Code is vtiger. |
|---|
| 8 |
* Portions created by vtiger are Copyright (C) vtiger. |
|---|
| 9 |
* All Rights Reserved. |
|---|
| 10 |
* |
|---|
| 11 |
********************************************************************************/ |
|---|
| 12 |
|
|---|
| 13 |
-->*} |
|---|
| 14 |
<script language="JavaScript" type="text/javascript" src="modules/PriceBooks/PriceBooks.js"></script> |
|---|
| 15 |
<script language="JavaScript" type="text/javascript" src="include/js/ListView.js"></script> |
|---|
| 16 |
{literal} |
|---|
| 17 |
<script> |
|---|
| 18 |
function editProductListPrice(id,pbid,price) |
|---|
| 19 |
{ |
|---|
| 20 |
$("status").style.display="inline"; |
|---|
| 21 |
new Ajax.Request( |
|---|
| 22 |
'index.php', |
|---|
| 23 |
{queue: {position: 'end', scope: 'command'}, |
|---|
| 24 |
method: 'post', |
|---|
| 25 |
postBody: 'action=ProductsAjax&file=EditListPrice&return_action=CallRelatedList&return_module=PriceBooks&module=Products&record='+id+'&pricebook_id='+pbid+'&listprice='+price, |
|---|
| 26 |
onComplete: function(response) { |
|---|
| 27 |
$("status").style.display="none"; |
|---|
| 28 |
$("editlistprice").innerHTML= response.responseText; |
|---|
| 29 |
} |
|---|
| 30 |
} |
|---|
| 31 |
); |
|---|
| 32 |
} |
|---|
| 33 |
|
|---|
| 34 |
function gotoUpdateListPrice(id,pbid,proid) |
|---|
| 35 |
{ |
|---|
| 36 |
$("status").style.display="inline"; |
|---|
| 37 |
$("roleLay").style.display = "none"; |
|---|
| 38 |
var listprice=$("list_price").value; |
|---|
| 39 |
new Ajax.Request( |
|---|
| 40 |
'index.php', |
|---|
| 41 |
{queue: {position: 'end', scope: 'command'}, |
|---|
| 42 |
method: 'post', |
|---|
| 43 |
postBody: 'module=Products&action=ProductsAjax&file=UpdateListPrice&ajax=true&return_action=CallRelatedList&return_module=PriceBooks&record='+id+'&pricebook_id='+pbid+'&product_id='+proid+'&list_price='+listprice, |
|---|
| 44 |
onComplete: function(response) { |
|---|
| 45 |
$("status").style.display="none"; |
|---|
| 46 |
$("RLContents").update(response.responseText); |
|---|
| 47 |
} |
|---|
| 48 |
} |
|---|
| 49 |
); |
|---|
| 50 |
} |
|---|
| 51 |
{/literal} |
|---|
| 52 |
|
|---|
| 53 |
function loadCvList(type,id) |
|---|
| 54 |
{ldelim} |
|---|
| 55 |
if(type == 'Leads' && $("lead_cv_list").value != 'None') |
|---|
| 56 |
{ldelim} |
|---|
| 57 |
$("status").style.display="inline"; |
|---|
| 58 |
new Ajax.Request( |
|---|
| 59 |
'index.php', |
|---|
| 60 |
{ldelim}queue: {ldelim}position: 'end', scope: 'command'{rdelim}, |
|---|
| 61 |
method: 'post', |
|---|
| 62 |
postBody: 'module=Campaigns&action=CampaignsAjax&file=LoadList&ajax=true&return_action=DetailView&return_id='+id+'&list_type='+type+'&cvid='+$("lead_cv_list").value, |
|---|
| 63 |
onComplete: function(response) {ldelim} |
|---|
| 64 |
$("status").style.display="none"; |
|---|
| 65 |
$("RLContents").update(response.responseText); |
|---|
| 66 |
{rdelim} |
|---|
| 67 |
{rdelim} |
|---|
| 68 |
); |
|---|
| 69 |
{rdelim} |
|---|
| 70 |
|
|---|
| 71 |
if(type == 'Contacts' && $("cont_cv_list").value != 'None') |
|---|
| 72 |
{ldelim} |
|---|
| 73 |
$("status").style.display="inline"; |
|---|
| 74 |
new Ajax.Request( |
|---|
| 75 |
'index.php', |
|---|
| 76 |
{ldelim}queue: {ldelim}position: 'end', scope: 'command'{rdelim}, |
|---|
| 77 |
method: 'post', |
|---|
| 78 |
postBody: 'module=Campaigns&action=CampaignsAjax&file=LoadList&ajax=true&return_action=DetailView&return_id='+id+'&list_type='+type+'&cvid='+$("cont_cv_list").value, |
|---|
| 79 |
onComplete: function(response) {ldelim} |
|---|
| 80 |
$("status").style.display="none"; |
|---|
| 81 |
$("RLContents").update(response.responseText); |
|---|
| 82 |
{rdelim} |
|---|
| 83 |
{rdelim} |
|---|
| 84 |
); |
|---|
| 85 |
{rdelim} |
|---|
| 86 |
{rdelim} |
|---|
| 87 |
</script> |
|---|
| 88 |
{include file='Buttons_List1.tpl'} |
|---|
| 89 |
<!-- Contents --> |
|---|
| 90 |
<div id="editlistprice" style="position:absolute;width:300px;"></div> |
|---|
| 91 |
<table border=0 cellspacing=0 cellpadding=0 width=98% align=center> |
|---|
| 92 |
<tr> |
|---|
| 93 |
<td valign=top><img src="{'showPanelTopLeft.gif'|@vtiger_imageurl:$THEME}"></td> |
|---|
| 94 |
<td class="showPanelBg" valign=top width=100%> |
|---|
| 95 |
<!-- PUBLIC CONTENTS STARTS--> |
|---|
| 96 |
<div class="small" style="padding:20px"> |
|---|
| 97 |
{* Module Record numbering, used MOD_SEQ_ID instead of ID *} |
|---|
| 98 |
<span class="lvtHeaderText"><font color="purple">[ {$MOD_SEQ_ID} ] </font>{$NAME} - {$SINGLE_MOD} {$APP.LBL_MORE} {$APP.LBL_INFORMATION}</span> <br> |
|---|
| 99 |
{$UPDATEINFO} |
|---|
| 100 |
<hr noshade size=1> |
|---|
| 101 |
<br> |
|---|
| 102 |
|
|---|
| 103 |
<!-- Account details tabs --> |
|---|
| 104 |
<table border=0 cellspacing=0 cellpadding=0 width=95% align=center> |
|---|
| 105 |
<tr> |
|---|
| 106 |
<td> |
|---|
| 107 |
<table border=0 cellspacing=0 cellpadding=3 width=100% class="small"> |
|---|
| 108 |
<tr> |
|---|
| 109 |
{if $OP_MODE eq 'edit_view'} |
|---|
| 110 |
{assign var="action" value="EditView"} |
|---|
| 111 |
{else} |
|---|
| 112 |
{assign var="action" value="DetailView"} |
|---|
| 113 |
{/if} |
|---|
| 114 |
<td class="dvtTabCache" style="width:10px" nowrap> </td> |
|---|
| 115 |
{if $MODULE eq 'Calendar'} |
|---|
| 116 |
<td class="dvtUnSelectedCell" align=center nowrap><a href="index.php?action={$action}&module={$MODULE}&record={$ID}&activity_mode={$ACTIVITY_MODE}&parenttab={$CATEGORY}">{$SINGLE_MOD} {$APP.LBL_INFORMATION}</a></td> |
|---|
| 117 |
{else} |
|---|
| 118 |
<td class="dvtUnSelectedCell" align=center nowrap><a href="index.php?action={$action}&module={$MODULE}&record={$ID}&parenttab={$CATEGORY}">{$SINGLE_MOD} {$APP.LBL_INFORMATION}</a></td> |
|---|
| 119 |
{/if} |
|---|
| 120 |
<td class="dvtTabCache" style="width:10px"> </td> |
|---|
| 121 |
<td class="dvtSelectedCell" align=center nowrap>{$APP.LBL_MORE} {$APP.LBL_INFORMATION}</td> |
|---|
| 122 |
<td class="dvtTabCache" style="width:100%"> </td> |
|---|
| 123 |
</tr> |
|---|
| 124 |
</table> |
|---|
| 125 |
</td> |
|---|
| 126 |
</tr> |
|---|
| 127 |
<tr> |
|---|
| 128 |
<td valign=top align=left > |
|---|
| 129 |
<table border=0 cellspacing=0 cellpadding=3 width=100% class="dvtContentSpace" style="border-bottom:0;"> |
|---|
| 130 |
<tr> |
|---|
| 131 |
<td align=left> |
|---|
| 132 |
<!-- content cache --> |
|---|
| 133 |
<table border=0 cellspacing=0 cellpadding=0 width=100%> |
|---|
| 134 |
<tr> |
|---|
| 135 |
<td style="padding:10px"> |
|---|
| 136 |
<!-- General details --> |
|---|
| 137 |
{include file='RelatedListsHidden.tpl'} |
|---|
| 138 |
<div id="RLContents"> |
|---|
| 139 |
{include file='RelatedListContents.tpl'} |
|---|
| 140 |
</div> |
|---|
| 141 |
</form> |
|---|
| 142 |
{*-- End of Blocks--*} |
|---|
| 143 |
</td> |
|---|
| 144 |
</tr> |
|---|
| 145 |
</table> |
|---|
| 146 |
</td> |
|---|
| 147 |
</tr> |
|---|
| 148 |
</table> |
|---|
| 149 |
</td> |
|---|
| 150 |
</tr> |
|---|
| 151 |
<tr> |
|---|
| 152 |
<td> |
|---|
| 153 |
<table border=0 cellspacing=0 cellpadding=3 width=100% class="small"> |
|---|
| 154 |
<tr> |
|---|
| 155 |
{if $OP_MODE eq 'edit_view'} |
|---|
| 156 |
{assign var="action" value="EditView"} |
|---|
| 157 |
{else} |
|---|
| 158 |
{assign var="action" value="DetailView"} |
|---|
| 159 |
{/if} |
|---|
| 160 |
<td class="dvtTabCacheBottom" style="width:10px" nowrap> </td> |
|---|
| 161 |
{if $MODULE eq 'Calendar'} |
|---|
| 162 |
<td class="dvtUnSelectedCell" align=center nowrap><a href="index.php?action={$action}&module={$MODULE}&record={$ID}&activity_mode={$ACTIVITY_MODE}&parenttab={$CATEGORY}">{$SINGLE_MOD} {$APP.LBL_INFORMATION}</a></td> |
|---|
| 163 |
{else} |
|---|
| 164 |
<td class="dvtUnSelectedCell" align=center nowrap><a href="index.php?action={$action}&module={$MODULE}&record={$ID}&parenttab={$CATEGORY}">{$SINGLE_MOD} {$APP.LBL_INFORMATION}</a></td> |
|---|
| 165 |
{/if} |
|---|
| 166 |
<td class="dvtTabCacheBottom" style="width:10px"> </td> |
|---|
| 167 |
<td class="dvtSelectedCellBottom" align=center nowrap>{$APP.LBL_MORE} {$APP.LBL_INFORMATION}</td> |
|---|
| 168 |
<td class="dvtTabCacheBottom" style="width:100%"> </td> |
|---|
| 169 |
</tr> |
|---|
| 170 |
</table> |
|---|
| 171 |
</td> |
|---|
| 172 |
</tr> |
|---|
| 173 |
</table> |
|---|
| 174 |
</div> |
|---|
| 175 |
<!-- PUBLIC CONTENTS STOPS--> |
|---|
| 176 |
</td> |
|---|
| 177 |
<td align=right valign=top><img src="{'showPanelTopRight.gif'|@vtiger_imageurl:$THEME}"></td> |
|---|
| 178 |
</tr> |
|---|
| 179 |
</table> |
|---|
| 180 |
|
|---|
| 181 |
{if $MODULE eq 'Leads' or $MODULE eq 'Contacts' or $MODULE eq 'Accounts' or $MODULE eq 'Campaigns' or $MODULE eq 'Vendors'} |
|---|
| 182 |
<form name="SendMail" onsubmit="VtigerJS_DialogBox.block();"><div id="sendmail_cont" style="z-index:100001;position:absolute;width:300px;"></div></form> |
|---|
| 183 |
{/if} |
|---|
| 184 |
|
|---|
| 185 |
<script> |
|---|
| 186 |
function OpenWindow(url) |
|---|
| 187 |
{ldelim} |
|---|
| 188 |
openPopUp('xAttachFile',this,url,'attachfileWin',380,375,'menubar=no,toolbar=no,location=no,status=no,resizable=no'); |
|---|
| 189 |
{rdelim} |
|---|
| 190 |
</script> |
|---|