153 lines
6.0 KiB
Smarty
153 lines
6.0 KiB
Smarty
|
{*<!--
|
||
|
/*+*******************************************************************************
|
||
|
* The contents of this file are subject to the vtiger CRM Public License Version 1.0
|
||
|
* ("License"); You may not use this file except in compliance with the License
|
||
|
* The Original Code is: vtiger CRM Open Source
|
||
|
* The Initial Developer of the Original Code is vtiger.
|
||
|
* Portions created by vtiger are Copyright (C) vtiger.
|
||
|
* All Rights Reserved.
|
||
|
******************************************************************************/
|
||
|
-->*}
|
||
|
|
||
|
<script src="modules/FieldFormulas/resources/jquery-1.2.6.js" type="text/javascript" charset="utf-8"></script>
|
||
|
<script src="modules/FieldFormulas/resources/functional.js" type="text/javascript" charset="utf-8"></script>
|
||
|
<script src="modules/FieldFormulas/resources/json2.js" type="text/javascript" charset="utf-8"></script>
|
||
|
<script type="text/javascript" charset="utf-8">
|
||
|
var strings = {$JS_STRINGS};
|
||
|
var meta_fieldnames = new Array({$VALIDATION_DATA_FIELDNAME})
|
||
|
var meta_fieldlabels = new Array({$VALIDATION_DATA_FIELDLABEL});
|
||
|
var meta_fielddatatypes = new Array({$VALIDATION_DATA_FIELDDATATYPE});
|
||
|
</script>
|
||
|
<script src="modules/FieldFormulas/resources/editexpressionscript.js" type="text/javascript" charset="utf-8"></script>
|
||
|
|
||
|
|
||
|
<table align="center" border="0" cellpadding="0" cellspacing="0" width="98%">
|
||
|
<tbody><tr>
|
||
|
<td valign="top"><img src="{'showPanelTopLeft.gif'|@vtiger_imageurl:$THEME}"></td>
|
||
|
<td class="showPanelBg" style="padding: 10px;" valign="top" width="100%">
|
||
|
<br>
|
||
|
<div align=center>
|
||
|
{include file='SetMenu.tpl'}
|
||
|
|
||
|
<!-- DISPLAY -->
|
||
|
<div id="view">
|
||
|
{include file='modules/FieldFormulas/ModuleTitle.tpl'}
|
||
|
<input type="hidden" id="pick_module" name="pick_module" value={$FORMODULE} />
|
||
|
<table class="tableHeading" width="100%" border="0" cellspacing="0" cellpadding="5" align="center">
|
||
|
<tr>
|
||
|
<td class="big" nowrap="nowrap">
|
||
|
<strong><span id="module_info">{$MOD.LBL_MODULE_INFO} "{$FORMODULE|@getTranslatedString:$MODULE}"</span></strong>
|
||
|
</td>
|
||
|
<td class="small" align="right">
|
||
|
<span id="new_field_expression_busyicon"><b>{$MOD.LBL_CHECKING}</b><img src="{'vtbusy.gif'|@vtiger_imageurl:$THEME}" border="0"></span>
|
||
|
<input type="button" class="crmButton create small"
|
||
|
value="{'LBL_NEW_FIELD_EXPRESSION_BUTTON'|@getTranslatedString:$MODULE}" id='new_field_expression' style="display: none;"/>
|
||
|
|
||
|
<span id="status_message" class="helpmessagebox" style='font-weight: bold; display: none;'></span>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<br>
|
||
|
<div id='editpopup' class='layerPopup' style='display:none;' >
|
||
|
<div id='editpopup_draghandle' style='cursor: move;'>
|
||
|
<table width="100%" cellspacing="0" cellpadding="5" border="0" class="layerHeadingULine">
|
||
|
<tr>
|
||
|
<td width="60%" align="left" class="layerPopupHeading">
|
||
|
{'LBL_EDIT_EXPRESSION'|@getTranslatedString:$MODULE}
|
||
|
</td>
|
||
|
<td width="40%" align="right">
|
||
|
<a href="javascript:void(0);" id="editpopup_close">
|
||
|
<img border="0" align="middle" src="{'close.gif'|@vtiger_imageurl:$THEME}"/>
|
||
|
</a>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<table width="100%" bgcolor="white" align="center" border="0" cellspacing="0" cellpadding="5">
|
||
|
<tr>
|
||
|
<td class='dvtCellLabel' align="right">
|
||
|
<b>{'LBL_TARGET_FIELD'|@getTranslatedString:$MODULE}</b>
|
||
|
</td>
|
||
|
<td class='dvtCellInfo'>
|
||
|
<select id='editpopup_field' class='small'><option></option></select>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr valign="top">
|
||
|
<td class='dvtCellLabel' align="right">
|
||
|
<b>{'LBL_EXPRESSION'|@getTranslatedString:$MODULE}</b>
|
||
|
</td>
|
||
|
<td class='dvtCellInfo' align="left">
|
||
|
<table width="100%" border="0" cellspacing="0" cellpadding="2" align="center">
|
||
|
<tr valign="top">
|
||
|
<td>
|
||
|
<select id='editpopup_fieldnames' class='small'></select>
|
||
|
|
||
|
<select id='editpopup_functions' class='small'>
|
||
|
<option value="">{$MOD.LBL_USE_FUNCTION_DASHDASH}</option>
|
||
|
</select>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr valign="top">
|
||
|
<td>
|
||
|
<textarea name="Name" rows="10" cols="50" id='editpopup_expression'></textarea>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<table width="100%" cellspacing="0" cellpadding="5" border="0" class="layerPopupTransport">
|
||
|
<tr><td align="center">
|
||
|
<input type="button" class="crmButton small save" value="{$APP.LBL_SAVE_BUTTON_LABEL}" name="save" id='editpopup_save'/>
|
||
|
<input type="button" class="crmButton small cancel" value="{$APP.LBL_CANCEL_BUTTON_LABEL}" name="cancel" id='editpopup_cancel'/>
|
||
|
</td></tr>
|
||
|
</table>
|
||
|
|
||
|
<table width="100%" cellspacing="1" cellpadding="5" border="0" class="helpmessagebox">
|
||
|
<tr valign="top">
|
||
|
<td><b>{$MOD.LBL_TARGET_FIELD}</b></td>
|
||
|
<td><b>{$MOD.LBL_EXPRESSION}</b></td>
|
||
|
</tr>
|
||
|
<tr valign="top">
|
||
|
<td>Custom Revenue</td>
|
||
|
<td><i>annual_revenue</i> / 12</td>
|
||
|
</tr>
|
||
|
<tr valign="top">
|
||
|
<td>Full Name</td>
|
||
|
<td>
|
||
|
<font color=blue>if</font> <i>mailingcountry</i> == "India" <font color=blue>then</font> <font color=blue>concat</font>(<i>firstname</i>," ",<i>lastname</i>) <font color=blue>else</font> <font color=blue>concat</font>(<i>lastname</i>," ",<i>firstname</i>) <font color=blue>end</font>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<table class="listTable" width="100%" border="0" cellspacing="0" cellpadding="5" id='expressionlist'>
|
||
|
<tr>
|
||
|
<td class="colHeader small" width="20%">
|
||
|
{'LBL_FIELD'|@getTranslatedString:$MODULE}
|
||
|
</td>
|
||
|
<td class="colHeader small" width="65">
|
||
|
{'LBL_EXPRESSION'|@getTranslatedString:$MODULE}
|
||
|
</td>
|
||
|
<td class="colHeader small" width="15%">
|
||
|
{'LBL_SETTINGS'|@getTranslatedString:$MODULE}
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<div align='right' style='padding-right: 5px;' id="expressionlist_busyicon"><b>{$MOD.LBL_CHECKING}</b><img src="{'vtbusy.gif'|@vtiger_imageurl:$THEME}" border="0"></div>
|
||
|
</div>
|
||
|
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
|
||
|
</td>
|
||
|
<td valign="top"><img src="{'showPanelTopRight.gif'|@vtiger_imageurl:$THEME}"></td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
<br>
|