File: /home/nexper/www/67.225.167.226/public_html/crm/cache/modules/Opportunities/SearchForm_advanced.tpl
<table width="100%" cellspacing="0" cellpadding="0" border="0" style="border-top: 0px none; margin-bottom: 4px" class="tabForm">
<tr>
{counter assign=index}
{math equation="left % right"
left=$index
right=$templateMeta.maxColumns
assign=modVal
}
{if ($index % $templateMeta.maxColumns == 1 && $index != 1)}
</tr><tr>
{/if}
<td class="dataLabel" nowrap="nowrap" width='10%' >
{sugar_translate label='LBL_OPPORTUNITY_NAME' module='Opportunities'}
</td>
<td class="dataField" nowrap="nowrap" width='30%'>
{if strlen($fields.name_advanced.value) <= 0}
{assign var="value" value=$fields.name_advanced.default_value }
{else}
{assign var="value" value=$fields.name_advanced.value }
{/if}
<input type='text' name='{$fields.name_advanced.name}' id='{$fields.name_advanced.name}' size='30' maxlength='50' value='{$value}' title='' tabindex='' >
</td>
{counter assign=index}
{math equation="left % right"
left=$index
right=$templateMeta.maxColumns
assign=modVal
}
{if ($index % $templateMeta.maxColumns == 1 && $index != 1)}
</tr><tr>
{/if}
<td class="dataLabel" nowrap="nowrap" width='10%' >
{sugar_translate label='LBL_AMOUNT' module='Opportunities'}
</td>
<td class="dataField" nowrap="nowrap" width='30%'>
{if strlen($fields.amount_advanced.value) <= 0}
{assign var="value" value=$fields.amount_advanced.default_value }
{else}
{assign var="value" value=$fields.amount_advanced.value }
{/if}
<input type='text' name='{$fields.amount_advanced.name}' id='{$fields.amount_advanced.name}' size='30' value='{$value}' title='' tabindex='' >
</td>
{counter assign=index}
{math equation="left % right"
left=$index
right=$templateMeta.maxColumns
assign=modVal
}
{if ($index % $templateMeta.maxColumns == 1 && $index != 1)}
</tr><tr>
{/if}
<td class="dataLabel" nowrap="nowrap" width='10%' >
{sugar_translate label='LBL_DATE_CLOSED' module='Opportunities'}
</td>
<td class="dataField" nowrap="nowrap" width='30%'>
{assign var=date_value value=$fields.date_closed_advanced.value }
<input autocomplete="off" type="text" name="{$fields.date_closed_advanced.name}" id="{$fields.date_closed_advanced.name}" value="{$date_value}" title='' tabindex='' size="11" maxlength="10">
<img border="0" src="themes/default/images/jscalendar.gif" alt="{$APP.LBL_ENTER_DATE}" id="{$fields.date_closed_advanced.name}_trigger" align="absmiddle" />
<script type="text/javascript">
Calendar.setup ({ldelim}
inputField : "{$fields.date_closed_advanced.name}",
daFormat : "{$CALENDAR_FORMAT}",
button : "{$fields.date_closed_advanced.name}_trigger",
singleClick : true,
dateStr : "{$date_value}",
step : 1
{rdelim}
);
</script>
</td>
{counter assign=index}
{math equation="left % right"
left=$index
right=$templateMeta.maxColumns
assign=modVal
}
{if ($index % $templateMeta.maxColumns == 1 && $index != 1)}
</tr><tr>
{/if}
<td class="dataLabel" nowrap="nowrap" width='10%' >
{sugar_translate label='LBL_PROBABILITY' module='Opportunities'}
</td>
<td class="dataField" nowrap="nowrap" width='30%'>
{if strlen($fields.probability_advanced.value) <= 0}
{assign var="value" value=$fields.probability_advanced.default_value }
{else}
{assign var="value" value=$fields.probability_advanced.value }
{/if}
<input type='text' name='{$fields.probability_advanced.name}' id='{$fields.probability_advanced.name}' size='30' value='{$value}' title='' tabindex='' >
</td>
{counter assign=index}
{math equation="left % right"
left=$index
right=$templateMeta.maxColumns
assign=modVal
}
{if ($index % $templateMeta.maxColumns == 1 && $index != 1)}
</tr><tr>
{/if}
<td class="dataLabel" nowrap="nowrap" width='10%' >
{sugar_translate label='LBL_NEXT_STEP' module='Opportunities'}
</td>
<td class="dataField" nowrap="nowrap" width='30%'>
{if strlen($fields.next_step_advanced.value) <= 0}
{assign var="value" value=$fields.next_step_advanced.default_value }
{else}
{assign var="value" value=$fields.next_step_advanced.value }
{/if}
<input type='text' name='{$fields.next_step_advanced.name}' id='{$fields.next_step_advanced.name}' size='30' maxlength='100' value='{$value}' title='' tabindex='' >
</td>
{counter assign=index}
{math equation="left % right"
left=$index
right=$templateMeta.maxColumns
assign=modVal
}
{if ($index % $templateMeta.maxColumns == 1 && $index != 1)}
</tr><tr>
{/if}
<td class="dataLabel" nowrap="nowrap" width='10%' >
{sugar_translate label='LBL_LEAD_SOURCE' module='Opportunities'}
</td>
<td class="dataField" nowrap="nowrap" width='30%'>
{html_options name='lead_source_advanced[]' options=$fields.lead_source_advanced.options size="6" style='width:150' multiple="1" selected=$fields.lead_source_advanced.value}
</td>
{counter assign=index}
{math equation="left % right"
left=$index
right=$templateMeta.maxColumns
assign=modVal
}
{if ($index % $templateMeta.maxColumns == 1 && $index != 1)}
</tr><tr>
{/if}
<td class="dataLabel" nowrap="nowrap" width='10%' >
{sugar_translate label='LBL_SALES_STAGE' module='Opportunities'}
</td>
<td class="dataField" nowrap="nowrap" width='30%'>
{html_options name='sales_stage_advanced[]' options=$fields.sales_stage_advanced.options size="6" style='width:150' multiple="1" selected=$fields.sales_stage_advanced.value}
</td>
{counter assign=index}
{math equation="left % right"
left=$index
right=$templateMeta.maxColumns
assign=modVal
}
{if ($index % $templateMeta.maxColumns == 1 && $index != 1)}
</tr><tr>
{/if}
<td class="dataLabel" nowrap="nowrap" width='10%' >
{sugar_translate label='LBL_ASSIGNED_TO' module='Opportunities'}
</td>
<td class="dataField" nowrap="nowrap" width='30%'>
{html_options name='assigned_user_id_advanced[]' options=$fields.assigned_user_id_advanced.options size="6" style='width:150' multiple="1" selected=$fields.assigned_user_id_advanced.value}
</td>
{counter assign=index}
{math equation="left % right"
left=$index
right=$templateMeta.maxColumns
assign=modVal
}
{if ($index % $templateMeta.maxColumns == 1 && $index != 1)}
</tr><tr>
{/if}
<td class="dataLabel" nowrap="nowrap" width='10%' >
{sugar_translate label='LBL_ACCOUNT_NAME' module='Opportunities'}
</td>
<td class="dataField" nowrap="nowrap" width='30%'>
<input type="text" name="{$fields.account_name_advanced.name}" class="sqsEnabled" tabindex="" id="{$fields.account_name_advanced.name}" size="" value="{$fields.account_name_advanced.value}" title='' autocomplete="off" >
<input type="hidden" id="{$fields.account_id_advanced.name}" value="{$fields.account_id_advanced.value}">
<input type="button" name="btn_{$fields.account_name_advanced.name}" tabindex="" title="{$APP.LBL_SELECT_BUTTON_TITLE}" accessKey="{$APP.LBL_SELECT_BUTTON_KEY}" class="button" value="{$APP.LBL_SELECT_BUTTON_LABEL}" onclick='open_popup("{$fields.account_name_advanced.module}", 600, 400, "", true, false, {literal}{"call_back_function":"set_return","form_name":"search_form","field_to_name_array":{"id":"account_id_advanced","name":"account_name_advanced"}}{/literal}, "single", true);'>
<input type="button" name="btn_clr_{$fields.account_name_advanced.name}" tabindex="" title="{$APP.LBL_CLEAR_BUTTON_TITLE}" accessKey="{$APP.LBL_CLEAR_BUTTON_KEY}" class="button" onclick="this.form.{$fields.account_name_advanced.name}.value = ''; this.form.{$fields.account_id_advanced.name}.value = '';" value="{$APP.LBL_CLEAR_BUTTON_LABEL}">
</td>
</tr>
<tr>
<td colspan='20'>
</td>
</tr>
{if $DISPLAY_SAVED_SEARCH}
<tr>
<td colspan='6'>
<a class='listViewTdLinkS1' onhover href='javascript:toggleInlineSearch()'><img src='{$IMG_PATH}advanced_search.gif' id='up_down_img' border=0>{$APP.LNK_SAVED_VIEWS}</a><br>
<input type='hidden' id='showSSDIV' name='showSSDIV' value='{$SHOWSSDIV}'><p>
<div style='{$DISPLAYSS}' id='inlineSavedSearch' >
{$SAVED_SEARCH}
</div>
</td>
</tr>
{/if}
{if $DISPLAY_SEARCH_HELP}
<tr>
<td colspan='5'> </td>
<td align=right><img border='0' src='{$IMG_PATH}help.gif' onmouseover="return overlib(SUGAR.language.get('app_strings', 'LBL_SEARCH_HELP_TEXT'), STICKY, MOUSEOFF,1000,WIDTH, 700, LEFT,CAPTION,'<div style=\'float:left\'>'+SUGAR.language.get('app_strings', 'LBL_SEARCH_HELP_TITLE')+'</div>', CLOSETEXT, '<div style=\'float: right\'><img border=0 style=\'margin-left:2px; margin-right: 2px;\' src={$IMG_PATH}close.gif></div>',CLOSETITLE, SUGAR.language.get('app_strings', 'LBL_SEARCH_HELP_CLOSE_TOOLTIP'), CLOSECLICK,FGCLASS, 'olFgClass', CGCLASS, 'olCgClass', BGCLASS, 'olBgClass', TEXTFONTCLASS, 'olFontClass', CAPTIONFONTCLASS, 'olCapFontClass');" ></td>
</tr>
{/if}
</table>
<script>
{literal}
if(typeof(loadSSL_Scripts)=='function'){
loadSSL_Scripts();
}
{/literal}
</script>{literal}<script language="javascript">if(typeof sqs_objects == 'undefined'){var sqs_objects = new Array;}sqs_objects['modified_by_name_advanced']={"method":"get_user_array","field_list":["user_name","id"],"populate_list":["assigned_user_name_advanced","assigned_user_id_advanced"],"required_list":["assigned_user_id"],"conditions":[{"name":"user_name","op":"like_custom","end":"%","value":""}],"limit":"30","no_match_text":"Sin coincidencias"};sqs_objects['created_by_name_advanced']={"method":"get_user_array","field_list":["user_name","id"],"populate_list":["assigned_user_name_advanced","assigned_user_id_advanced"],"required_list":["assigned_user_id"],"conditions":[{"name":"user_name","op":"like_custom","end":"%","value":""}],"limit":"30","no_match_text":"Sin coincidencias"};sqs_objects['assigned_user_name_advanced']={"method":"get_user_array","field_list":["user_name","id"],"populate_list":["assigned_user_name_advanced","assigned_user_id_advanced"],"required_list":["assigned_user_id"],"conditions":[{"name":"user_name","op":"like_custom","end":"%","value":""}],"limit":"30","no_match_text":"Sin coincidencias"};sqs_objects['account_name_advanced']={"method":"query","modules":["Accounts"],"group":"or","field_list":["name","id"],"populate_list":["account_name_advanced","account_id_advanced"],"conditions":[{"name":"name","op":"like_custom","end":"%","value":""}],"required_list":["account_id"],"order":"name","limit":"30","no_match_text":"Sin coincidencias"};sqs_objects['campaign_name_advanced']={"method":"query","modules":["Campaigns"],"group":"or","field_list":["name","id"],"populate_list":["campaign_name_advanced","campaign_id_advanced"],"conditions":[{"name":"name","op":"like_custom","end":"%","value":""}],"required_list":["campaign_id"],"order":"name","limit":"30","no_match_text":"Sin coincidencias"};sqs_objects['currency_name_advanced']={"method":"query","modules":["Currencies"],"group":"or","field_list":["name","id"],"populate_list":["currency_name_advanced","currency_id_advanced"],"required_list":["parent_id"],"conditions":[{"name":"name","op":"like_custom","end":"%","value":""}],"order":"name","limit":"30","no_match_text":"Sin coincidencias"};</script>{/literal}