166 lines
7.8 KiB
HTML
166 lines
7.8 KiB
HTML
|
|
<!--
|
||
|
|
/*****************************************************************************
|
||
|
|
* The contents of this file are subject to the RECIPROCAL PUBLIC LICENSE
|
||
|
|
* Version 1.1 ("License"); You may not use this file except in compliance
|
||
|
|
* with the License. You may obtain a copy of the License at
|
||
|
|
* http://opensource.org/licenses/rpl.php. Software distributed under the
|
||
|
|
* License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND,
|
||
|
|
* either express or implied.
|
||
|
|
*
|
||
|
|
* You may:
|
||
|
|
* a) Use and distribute this code exactly as you received without payment or
|
||
|
|
* a royalty or other fee.
|
||
|
|
* b) Create extensions for this code, provided that you make the extensions
|
||
|
|
* publicly available and document your modifications clearly.
|
||
|
|
* c) Charge for a fee for warranty or support or for accepting liability
|
||
|
|
* obligations for your customers.
|
||
|
|
*
|
||
|
|
* You may NOT:
|
||
|
|
* a) Charge for the use of the original code or extensions, including in
|
||
|
|
* electronic distribution models, such as ASP (Application Service
|
||
|
|
* Provider).
|
||
|
|
* b) Charge for the original source code or your extensions other than a
|
||
|
|
* nominal fee to cover distribution costs where such distribution
|
||
|
|
* involves PHYSICAL media.
|
||
|
|
* c) Modify or delete any pre-existing copyright notices, change notices,
|
||
|
|
* or License text in the Licensed Software
|
||
|
|
* d) Assert any patent claims against the Licensor or Contributors, or
|
||
|
|
* which would in any way restrict the ability of any third party to use the
|
||
|
|
* Licensed Software.
|
||
|
|
*
|
||
|
|
* You must:
|
||
|
|
* a) Document any modifications you make to this code including the nature of
|
||
|
|
* the change, the authors of the change, and the date of the change.
|
||
|
|
* b) Make the source code for any extensions you deploy available via an
|
||
|
|
* Electronic Distribution Mechanism such as FTP or HTTP download.
|
||
|
|
* c) Notify the licensor of the availability of source code to your extensions
|
||
|
|
* and include instructions on how to acquire the source code and updates.
|
||
|
|
* d) Grant Licensor a world-wide, non-exclusive, royalty-free license to use,
|
||
|
|
* reproduce, perform, modify, sublicense, and distribute your extensions.
|
||
|
|
*
|
||
|
|
* The Original Code is: CommuniCore
|
||
|
|
* Olavo Farias
|
||
|
|
* 2006-04-7 olavo.farias@gmail.com
|
||
|
|
*
|
||
|
|
* The Initial Developer of the Original Code is CommuniCore.
|
||
|
|
* Portions created by CommuniCore are Copyright (C) 2005 CommuniCore Ltda
|
||
|
|
* All Rights Reserved.
|
||
|
|
********************************************************************************/
|
||
|
|
-->
|
||
|
|
|
||
|
|
<!-- BEGIN: main -->
|
||
|
|
<!-- BEGIN: SearchHeader -->
|
||
|
|
|
||
|
|
<script type="text/javascript" src="include/JSON.js?s={SUGAR_VERSION}&c={JS_CUSTOM_VERSION}"></script>
|
||
|
|
<script type="text/javascript" src="include/javascript/popup_helper.js?s={SUGAR_VERSION}&c={JS_CUSTOM_VERSION}"></script>
|
||
|
|
|
||
|
|
|
||
|
|
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="tabForm">
|
||
|
|
<tr>
|
||
|
|
<td>
|
||
|
|
<form action="index.php" method="post" name="popup_query_form" id="the_form">
|
||
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||
|
|
<tr>
|
||
|
|
<td width="1%" nowrap="nowrap" class="dataLabel">{MOD.LBL_NAME}
|
||
|
|
<input type="text" name="name" size="20" class="dataField" value="{NAME}" /></td>
|
||
|
|
|
||
|
|
<td width="20%" align="right">
|
||
|
|
<input type="hidden" name="module" value="{MODULE_NAME}" />
|
||
|
|
<input type="hidden" name="action" value="Popup" />
|
||
|
|
<input type="hidden" name="query" value="true" />
|
||
|
|
<input type="hidden" name="request_data" value="{request_data}" />
|
||
|
|
<input type="hidden" name="record_id" value="" />
|
||
|
|
<input type="hidden" name="pricebook_product_id" value="{PRICEBOOK_PRODUCT_ID}" />
|
||
|
|
<input type="hidden" name="exchange_rate_id" value="{EXCHANGE_RATE_ID}" />
|
||
|
|
<input type="submit" name="button" class="button"
|
||
|
|
title="{APP.LBL_SEARCH_BUTTON_TITLE}"
|
||
|
|
accessKey="{APP.LBL_SEARCH_BUTTON_KEY}"
|
||
|
|
value="{APP.LBL_SEARCH_BUTTON_LABEL}" />
|
||
|
|
<input type="hidden" name="mode" value="{MULTI_SELECT}" />
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
</form>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
|
||
|
|
|
||
|
|
<script type="text/javascript">
|
||
|
|
<!--
|
||
|
|
/* initialize the popup request from the parent */
|
||
|
|
|
||
|
|
if(window.document.forms['popup_query_form'].request_data.value == "")
|
||
|
|
{
|
||
|
|
window.document.forms['popup_query_form'].request_data.value
|
||
|
|
= JSON.stringify(window.opener.get_popup_request_data());
|
||
|
|
}
|
||
|
|
function send_back1(module,id)
|
||
|
|
{var associated_row_data=associated_javascript_data[id];eval("var temp_request_data = "+window.document.forms['popup_query_form'].request_data.value);if(temp_request_data.jsonObject){var request_data=temp_request_data.jsonObject;}else{var request_data=temp_request_data;}
|
||
|
|
var passthru_data=Object();if(typeof(request_data.passthru_data)!='undefined')
|
||
|
|
{passthru_data=request_data.passthru_data;}
|
||
|
|
var form_name=request_data.form_name;var field_to_name_array=request_data.field_to_name_array;var call_back_function=eval("window.opener."+request_data.call_back_function);var array_contents=Array();for(var the_key in field_to_name_array)
|
||
|
|
{if(the_key!='toJSON')
|
||
|
|
{var the_name=field_to_name_array[the_key];var the_value='';if(module!=''&&id!='')
|
||
|
|
{the_value=associated_row_data[the_key.toUpperCase()];}
|
||
|
|
if(typeof(the_value)=='string'){the_value=the_value.replace(/\r\n/g,'\\n');}
|
||
|
|
array_contents.push('"'+the_name+'":"'+the_value+'"');}}
|
||
|
|
eval("var name_to_value_array = {"+array_contents.join(",")+"}");var result_data={"form_name":form_name,"name_to_value_array":name_to_value_array,"passthru_data":passthru_data};var close_popup=window.opener.get_close_popup();call_back_function(result_data);
|
||
|
|
for(var i=0; i<parent.opener.N.rowCount(); i++)
|
||
|
|
{
|
||
|
|
parent.opener.N.row(i).calculateTotal();
|
||
|
|
|
||
|
|
};if(close_popup){window.close();}}
|
||
|
|
-->
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<!-- END: SearchHeader -->
|
||
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="listView">
|
||
|
|
<!-- BEGIN: list_nav_row -->
|
||
|
|
{PAGINATION}
|
||
|
|
<!-- END: list_nav_row -->
|
||
|
|
<tr height="20" class="listViewThS1">
|
||
|
|
<td scope="col" width="30%" class="listViewThS1" NOWRAP>
|
||
|
|
<slot>
|
||
|
|
<a href="{ORDER_BY}name" class="listViewThLinkS1">{MOD.LBL_NAME}{arrow_start}{name_arrow}{arrow_end}</a>
|
||
|
|
</slot>
|
||
|
|
</td>
|
||
|
|
<td scope="col" width="13%" class="listViewThS1" NOWRAP>Index</td>
|
||
|
|
<td scope="col" width="13%" class="listViewThS1" NOWRAP>
|
||
|
|
<slot>
|
||
|
|
<a href="{ORDER_BY}exchange_rate_id" class="listViewThLinkS1">{MOD.LBL_EXCHANGE_RATE_ID}{arrow_start}{exchange_rate_id_arrow}{arrow_end}</a>
|
||
|
|
</slot>
|
||
|
|
</td>
|
||
|
|
<td scope="col" width="30%" class="listViewThS1" NOWRAP>
|
||
|
|
<slot>
|
||
|
|
<a href="{ORDER_BY}account_name" class="listViewThLinkS1">{MOD.LBL_ACCOUNT_NAME}{arrow_start}{account_name_arrow}{arrow_end}</a>
|
||
|
|
</slot>
|
||
|
|
</td>
|
||
|
|
<td scope="col" width="13%" class="listViewThS1" NOWRAP>List Price</td>
|
||
|
|
</tr>
|
||
|
|
<!-- BEGIN: row -->
|
||
|
|
<tr height="20"
|
||
|
|
onmouseover="setPointer(this, '{ECMPRICEKOPIA.ID}', 'over', '{BG_COLOR}', '{BG_HILITE}', '{BG_CLICK}');"
|
||
|
|
onmouseout="setPointer(this, '{ECMPRICEKOPIA.ID}', 'out', '{BG_COLOR}', '{BG_HILITE}', '{BG_CLICK}');"
|
||
|
|
onmousedown="setPointer(this, '{ECMPRICEKOPIA.ID}', 'click', '{BG_COLOR}', '{BG_HILITE}', '{BG_CLICK}');">
|
||
|
|
|
||
|
|
<td scope="row" valign="top" class="{ROW_COLOR}S1" bgcolor="{BG_COLOR}">
|
||
|
|
<slot>
|
||
|
|
<{TAG.MAIN} href="#"
|
||
|
|
onclick="send_back1('EcmPriceKopia','{ECMPRICEKOPIA.ID}');"
|
||
|
|
class="listViewTdLinkS1">{ECMPRICEKOPIA.NAME}</{TAG.MAIN}>
|
||
|
|
</slot>
|
||
|
|
</td>
|
||
|
|
<td scope="row" valign="top" class="{ROW_COLOR}S1" bgcolor="{BG_COLOR}">{ECMPRICEKOPIA.INDEX}</td>
|
||
|
|
<td scope="row" valign="top" class="{ROW_COLOR}S1" bgcolor="{BG_COLOR}">{ECMPRICEKOPIA.EXCHANGE_RATE_NAME}</td>
|
||
|
|
<td scope="row" valign="top" class="{ROW_COLOR}S1" bgcolor="{BG_COLOR}">{ECMPRICEKOPIA.ACCOUNT_NAME}</td>
|
||
|
|
<td scope="row" valign="top" class="{ROW_COLOR}S1" bgcolor="{BG_COLOR}">{ECMPRICEKOPIA.PRICE}</td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<td colspan="24" class="listViewHRS1"></td>
|
||
|
|
</tr>
|
||
|
|
<!-- END: row -->
|
||
|
|
</table>
|
||
|
|
{ASSOCIATED_JAVASCRIPT_DATA}
|
||
|
|
<!-- END: main -->
|