%PDF- %PDF-
Direktori : /var/www/crm/cache/modules/Opportunities/ |
Current File : /var/www/crm/cache/modules/Opportunities/SearchForm_advanced.tpl |
<script> {literal} $(function() { var $dialog = $('<div></div>') .html(SUGAR.language.get('app_strings', 'LBL_SEARCH_HELP_TEXT')) .dialog({ autoOpen: false, title: SUGAR.language.get('app_strings', 'LBL_SEARCH_HELP_TITLE'), width: 700 }); $('.help-search').click(function() { $dialog.dialog('open'); // prevent the default action, e.g., following a link }); }); {/literal} </script> <table width="100%" cellspacing="0" cellpadding="0" border="0"> <tr> {counter assign=index} {math equation="left % right" left=$index right=$templateMeta.maxColumns assign=modVal } {if ($index % $templateMeta.maxColumns == 1 && $index != 1)} {if $isHelperShown==0} {assign var="isHelperShown" value="1"} <td class="helpIcon" width="*"> <img alt="{$APP.LBL_SEARCH_HELP_TITLE}" id="helper_popup_image" border="0" src='{sugar_getimagepath file="help-dashlet.gif"}' class="help-search"> </td> {else} <td> </td> {/if} </tr><tr> {/if} <td scope="row" nowrap="nowrap" width='8.3333333333333%' > <label for='name_advanced'>{sugar_translate label='LBL_OPPORTUNITY_NAME' module='Opportunities'}</label> </td> <td nowrap="nowrap" width='25%'> {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='' accesskey='9' > </td> {counter assign=index} {math equation="left % right" left=$index right=$templateMeta.maxColumns assign=modVal } {if ($index % $templateMeta.maxColumns == 1 && $index != 1)} {if $isHelperShown==0} {assign var="isHelperShown" value="1"} <td class="helpIcon" width="*"> <img alt="{$APP.LBL_SEARCH_HELP_TITLE}" id="helper_popup_image" border="0" src='{sugar_getimagepath file="help-dashlet.gif"}' class="help-search"> </td> {else} <td> </td> {/if} </tr><tr> {/if} <td scope="row" nowrap="nowrap" width='8.3333333333333%' > <label for='account_name_advanced'>{sugar_translate label='LBL_ACCOUNT_NAME' module='Opportunities'}</label> </td> <td nowrap="nowrap" width='25%'> <input type="text" name="{$fields.account_name_advanced.name}" class="sqsEnabled" 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}"> <span class="id-ff multiple"> <button type="button" name="btn_{$fields.account_name_advanced.name}" title="{$APP.LBL_SELECT_BUTTON_TITLE}" class="button firstChild" 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);'>{sugar_getimage alt=$app_strings.LBL_ID_FF_SELECT name="id-ff-select" ext=".png" other_attributes=''}</button><button type="button" name="btn_clr_{$fields.account_name_advanced.name}" title="{$APP.LBL_CLEAR_BUTTON_TITLE}" class="button lastChild" onclick="this.form.{$fields.account_name_advanced.name}.value = ''; this.form.{$fields.account_id_advanced.name}.value = '';" value="{$APP.LBL_CLEAR_BUTTON_LABEL}">{sugar_getimage name="id-ff-clear" alt=$app_strings.LBL_ID_FF_CLEAR ext=".png" other_attributes=''}</button> </span> </td> {counter assign=index} {math equation="left % right" left=$index right=$templateMeta.maxColumns assign=modVal } {if ($index % $templateMeta.maxColumns == 1 && $index != 1)} {if $isHelperShown==0} {assign var="isHelperShown" value="1"} <td class="helpIcon" width="*"> <img alt="{$APP.LBL_SEARCH_HELP_TITLE}" id="helper_popup_image" border="0" src='{sugar_getimagepath file="help-dashlet.gif"}' class="help-search"> </td> {else} <td> </td> {/if} </tr><tr> {/if} <td scope="row" nowrap="nowrap" width='8.3333333333333%' > <label for='amount_advanced'>{sugar_translate label='LBL_AMOUNT' module='Opportunities'}</label> </td> <td nowrap="nowrap" width='25%'> {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} {assign var="id" value=$fields.amount_advanced.name } {if isset($smarty.request.amount_advanced_range_choice)} {assign var="starting_choice" value=$smarty.request.amount_advanced_range_choice} {else} {assign var="starting_choice" value="="} {/if} <script type='text/javascript'> function {$id}_range_change(val) {ldelim} calculate_between = (val == 'between'); //Clear the values depending on the operation if(calculate_between) {ldelim} document.getElementById("range_{$id}").value = ''; {rdelim} else {ldelim} document.getElementById("start_range_{$id}").value = ''; document.getElementById("end_range_{$id}").value = ''; {rdelim} document.getElementById("{$id}_range_div").style.display = calculate_between ? 'none' : ''; document.getElementById("{$id}_between_range_div").style.display = calculate_between ? '' : 'none'; {rdelim} var {$id}_range_reset = function() {ldelim} {$id}_range_change('='); {rdelim} YAHOO.util.Event.onDOMReady(function() {ldelim} if(document.getElementById('search_form_clear')) {ldelim} YAHOO.util.Event.addListener('search_form_clear', 'click', {$id}_range_reset); {rdelim} {rdelim}); YAHOO.util.Event.onDOMReady(function() {ldelim} if(document.getElementById('search_form_clear_advanced')) {ldelim} YAHOO.util.Event.addListener('search_form_clear_advanced', 'click', {$id}_range_reset); {rdelim} {rdelim}); </script> <span style="white-space:nowrap !important;"> <select id="{$id}_range_choice" name="{$id}_range_choice" style="width:190px !important;" onchange="{$id}_range_change(this.value);"> {html_options options=$fields.amount_advanced.options selected=$starting_choice} </select> <div id="{$id}_range_div" style="{if $starting_choice=='between'}display:none;{else}display:'';{/if}"> <input type='text' name='range_{$id}' id='range_{$id}' style='width:75px !important;' size='20' value='{if empty($smarty.request.range_amount_advanced) && !empty($smarty.request.amount_advanced)}{$smarty.request.amount_advanced}{else}{$smarty.request.range_amount_advanced}{/if}' tabindex='' > </div> <div id="{$id}_between_range_div" style="{if $starting_choice=='between'}display:'';{else}display:none;{/if}"> <input type='text' name='start_range_{$id}' id='start_range_{$id}' style='width:75px !important;' size='10' value='{$smarty.request.start_range_amount_advanced }' tabindex=''> {$APP.LBL_AND} <input type='text' name='end_range_{$id}' id='end_range_{$id}' style='width:75px !important;' size='10' value='{$smarty.request.end_range_amount_advanced }' tabindex=''> </div> </span> </td> {counter assign=index} {math equation="left % right" left=$index right=$templateMeta.maxColumns assign=modVal } {if ($index % $templateMeta.maxColumns == 1 && $index != 1)} {if $isHelperShown==0} {assign var="isHelperShown" value="1"} <td class="helpIcon" width="*"> <img alt="{$APP.LBL_SEARCH_HELP_TITLE}" id="helper_popup_image" border="0" src='{sugar_getimagepath file="help-dashlet.gif"}' class="help-search"> </td> {else} <td> </td> {/if} </tr><tr> {/if} <td scope="row" nowrap="nowrap" width='8.3333333333333%' > <label for='assigned_user_id_advanced'>{sugar_translate label='LBL_ASSIGNED_TO' module='Opportunities'}</label> </td> <td nowrap="nowrap" width='25%'> {html_options id='assigned_user_id_advanced' name='assigned_user_id_advanced[]' options=$fields.assigned_user_id_advanced.options size="6" style="width: 150px" 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)} {if $isHelperShown==0} {assign var="isHelperShown" value="1"} <td class="helpIcon" width="*"> <img alt="{$APP.LBL_SEARCH_HELP_TITLE}" id="helper_popup_image" border="0" src='{sugar_getimagepath file="help-dashlet.gif"}' class="help-search"> </td> {else} <td> </td> {/if} </tr><tr> {/if} <td scope="row" nowrap="nowrap" width='8.3333333333333%' > <label for='sales_stage_advanced'>{sugar_translate label='LBL_SALES_STAGE' module='Opportunities'}</label> </td> <td nowrap="nowrap" width='25%'> {html_options id='sales_stage_advanced' name='sales_stage_advanced[]' options=$fields.sales_stage_advanced.options size="6" style="width: 150px" 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)} {if $isHelperShown==0} {assign var="isHelperShown" value="1"} <td class="helpIcon" width="*"> <img alt="{$APP.LBL_SEARCH_HELP_TITLE}" id="helper_popup_image" border="0" src='{sugar_getimagepath file="help-dashlet.gif"}' class="help-search"> </td> {else} <td> </td> {/if} </tr><tr> {/if} <td scope="row" nowrap="nowrap" width='8.3333333333333%' > <label for='lead_source_advanced'>{sugar_translate label='LBL_LEAD_SOURCE' module='Opportunities'}</label> </td> <td nowrap="nowrap" width='25%'> {html_options id='lead_source_advanced' name='lead_source_advanced[]' options=$fields.lead_source_advanced.options size="6" style="width: 150px" 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)} {if $isHelperShown==0} {assign var="isHelperShown" value="1"} <td class="helpIcon" width="*"> <img alt="{$APP.LBL_SEARCH_HELP_TITLE}" id="helper_popup_image" border="0" src='{sugar_getimagepath file="help-dashlet.gif"}' class="help-search"> </td> {else} <td> </td> {/if} </tr><tr> {/if} <td scope="row" nowrap="nowrap" width='8.3333333333333%' > <label for='date_closed_advanced'>{sugar_translate label='LBL_DATE_CLOSED' module='Opportunities'}</label> </td> <td nowrap="nowrap" width='25%'> {assign var="id" value=$fields.date_closed_advanced.name } {if isset($smarty.request.date_closed_advanced_range_choice)} {assign var="starting_choice" value=$smarty.request.date_closed_advanced_range_choice} {else} {assign var="starting_choice" value="="} {/if} <div style="white-space:nowrap !important;"> <select id="{$id}_range_choice" name="{$id}_range_choice" style="width:125px !important;" onchange="{$id}_range_change(this.value);"> {html_options options=$fields.date_closed_advanced.options selected=$starting_choice} </select> </div> <div id="{$id}_range_div" style="{if preg_match('/^\[/', $smarty.request.range_date_closed_advanced) || $starting_choice == 'between'}display:none{else}display:''{/if};"> <input autocomplete="off" type="text" name="range_{$id}" id="range_{$id}" value='{if empty($smarty.request.range_date_closed_advanced) && !empty($smarty.request.date_closed_advanced)}{$smarty.request.date_closed_advanced}{else}{$smarty.request.range_date_closed_advanced}{/if}' title='' size="11" style="width:100px !important;"> {capture assign="other_attributes"}alt="{$APP.LBL_ENTER_DATE}" style="position:relative; top:6px" border="0" id="{$id}_trigger"{/capture} {sugar_getimage name="jscalendar" ext=".gif" other_attributes="$other_attributes"} <script type="text/javascript"> Calendar.setup ({ldelim} inputField : "range_{$id}", daFormat : "{$CALENDAR_FORMAT}", button : "{$id}_trigger", singleClick : true, dateStr : "{$date_value}", startWeekday: {$CALENDAR_FDOW|default:'0'}, step : 1, weekNumbers:false {rdelim} ); </script> </div> <div id="{$id}_between_range_div" style="{if $starting_choice=='between'}display:'';{else}display:none;{/if}"> {assign var=date_value value=$fields.date_closed_advanced.value } <input autocomplete="off" type="text" name="start_range_{$id}" id="start_range_{$id}" value='{$smarty.request.start_range_date_closed_advanced }' title='' tabindex='' size="11" style="width:100px !important;"> {capture assign="other_attributes"}align="absmiddle" border="0" id="start_range_{$id}_trigger"{/capture} {sugar_getimage name="jscalendar" ext=".gif" alt="$APP.LBL_ENTER_DATE other_attributes=$other_attributes"} <script type="text/javascript"> Calendar.setup ({ldelim} inputField : "start_range_{$id}", daFormat : "{$CALENDAR_FORMAT}", button : "start_range_{$id}_trigger", singleClick : true, dateStr : "{$date_value}", step : 1, weekNumbers:false {rdelim} ); </script> {$APP.LBL_AND} {assign var=date_value value=$fields.date_closed_advanced.value } <input autocomplete="off" type="text" name="end_range_{$id}" id="end_range_{$id}" value='{$smarty.request.end_range_date_closed_advanced }' title='' tabindex='' size="11" style="width:100px !important;" maxlength="10"> {capture assign="other_attributes"}align="absmiddle" border="0" id="end_range_{$id}_trigger"{/capture} {sugar_getimage name="jscalendar" ext=".gif" alt="$APP.LBL_ENTER_DATE other_attributes=$other_attributes"} <script type="text/javascript"> Calendar.setup ({ldelim} inputField : "end_range_{$id}", daFormat : "{$CALENDAR_FORMAT}", button : "end_range_{$id}_trigger", singleClick : true, dateStr : "{$date_value}", step : 1, weekNumbers:false {rdelim} ); </script> </div> <script type='text/javascript'> function {$id}_range_change(val) {ldelim} if(val == 'between') {ldelim} document.getElementById("range_{$id}").value = ''; document.getElementById("{$id}_range_div").style.display = 'none'; document.getElementById("{$id}_between_range_div").style.display = ''; {rdelim} else if (val == '=' || val == 'not_equal' || val == 'greater_than' || val == 'less_than') {ldelim} if((/^\[.*\]$/).test(document.getElementById("range_{$id}").value)) {ldelim} document.getElementById("range_{$id}").value = ''; {rdelim} document.getElementById("start_range_{$id}").value = ''; document.getElementById("end_range_{$id}").value = ''; document.getElementById("{$id}_range_div").style.display = ''; document.getElementById("{$id}_between_range_div").style.display = 'none'; {rdelim} else {ldelim} document.getElementById("range_{$id}").value = '[' + val + ']'; document.getElementById("start_range_{$id}").value = ''; document.getElementById("end_range_{$id}").value = ''; document.getElementById("{$id}_range_div").style.display = 'none'; document.getElementById("{$id}_between_range_div").style.display = 'none'; {rdelim} {rdelim} var {$id}_range_reset = function() {ldelim} {$id}_range_change('='); {rdelim} YAHOO.util.Event.onDOMReady(function() {ldelim} if(document.getElementById('search_form_clear')) {ldelim} YAHOO.util.Event.addListener('search_form_clear', 'click', {$id}_range_reset); {rdelim} {rdelim}); YAHOO.util.Event.onDOMReady(function() {ldelim} if(document.getElementById('search_form_clear_advanced')) {ldelim} YAHOO.util.Event.addListener('search_form_clear_advanced', 'click', {$id}_range_reset); {rdelim} {rdelim}); </script> </td> {counter assign=index} {math equation="left % right" left=$index right=$templateMeta.maxColumns assign=modVal } {if ($index % $templateMeta.maxColumns == 1 && $index != 1)} {if $isHelperShown==0} {assign var="isHelperShown" value="1"} <td class="helpIcon" width="*"> <img alt="{$APP.LBL_SEARCH_HELP_TITLE}" id="helper_popup_image" border="0" src='{sugar_getimagepath file="help-dashlet.gif"}' class="help-search"> </td> {else} <td> </td> {/if} </tr><tr> {/if} <td scope="row" nowrap="nowrap" width='8.3333333333333%' > <label for='next_step_advanced'>{sugar_translate label='LBL_NEXT_STEP' module='Opportunities'}</label> </td> <td nowrap="nowrap" width='25%'> {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='' > </td> </tr> <tr> <td colspan='20'> </td> </tr> {if $DISPLAY_SAVED_SEARCH} <tr> <td colspan='2'> <a class='tabFormAdvLink' onhover href='javascript:toggleInlineSearch()'> {capture assign="alt_show_hide"}{sugar_translate label='LBL_ALT_SHOW_OPTIONS'}{/capture} {sugar_getimage alt=$alt_show_hide name="advanced_search" ext=".gif" other_attributes='border="0" id="up_down_img" '} {$APP.LNK_SAVED_VIEWS} </a><br> <input type='hidden' id='showSSDIV' name='showSSDIV' value='{$SHOWSSDIV}'><p> </td> <td scope='row' width='10%' nowrap="nowrap"> {sugar_translate label='LBL_SAVE_SEARCH_AS' module='SavedSearch'}: </td> <td width='30%' nowrap> <input type='text' name='saved_search_name'> <input type='hidden' name='search_module' value=''> <input type='hidden' name='saved_search_action' value=''> <input title='{$APP.LBL_SAVE_BUTTON_LABEL}' value='{$APP.LBL_SAVE_BUTTON_LABEL}' class='button' type='button' name='saved_search_submit' onclick='SUGAR.savedViews.setChooser(); return SUGAR.savedViews.saved_search_action("save");'> </td> <td scope='row' width='10%' nowrap="nowrap"> {sugar_translate label='LBL_MODIFY_CURRENT_SEARCH' module='SavedSearch'}: </td> <td width='30%' nowrap> <input class='button' onclick='SUGAR.savedViews.setChooser(); return SUGAR.savedViews.saved_search_action("update")' value='{$APP.LBL_UPDATE}' title='{$APP.LBL_UPDATE}' name='ss_update' id='ss_update' type='button' > <input class='button' onclick='return SUGAR.savedViews.saved_search_action("delete", "{sugar_translate label='LBL_DELETE_CONFIRM' module='SavedSearch'}")' value='{$APP.LBL_DELETE}' title='{$APP.LBL_DELETE}' name='ss_delete' id='ss_delete' type='button'> <br><span id='curr_search_name'></span> </td> </tr> <tr> <td colspan='6'> <div style='{$DISPLAYSS}' id='inlineSavedSearch' > {$SAVED_SEARCH} </div> </td> </tr> {/if} {if $displayType != 'popupView'} <tr> <td colspan='5'> <input tabindex='2' title='{$APP.LBL_SEARCH_BUTTON_TITLE}' onclick='SUGAR.savedViews.setChooser()' class='button' type='submit' name='button' value='{$APP.LBL_SEARCH_BUTTON_LABEL}' id='search_form_submit_advanced'/> <input tabindex='2' title='{$APP.LBL_CLEAR_BUTTON_TITLE}' onclick='SUGAR.searchForm.clear_form(this.form); document.getElementById("saved_search_select").options[0].selected=true; return false;' class='button' type='button' name='clear' id='search_form_clear_advanced' value='{$APP.LBL_CLEAR_BUTTON_LABEL}'/> {if $DOCUMENTS_MODULE} <input title="{$APP.LBL_BROWSE_DOCUMENTS_BUTTON_TITLE}" type="button" class="button" value="{$APP.LBL_BROWSE_DOCUMENTS_BUTTON_LABEL}" onclick='open_popup("Documents", 600, 400, "&caller=Documents", true, false, "");' /> {/if} <a id="basic_search_link" onclick="SUGAR.searchForm.searchFormSelect('{$module}|basic_search','{$module}|advanced_search')" href="javascript:void(0)" accesskey="{$APP.LBL_ADV_SEARCH_LNK_KEY}" >{$APP.LNK_BASIC_SEARCH}</a> <span class='white-space'> {if $SAVED_SEARCHES_OPTIONS}| <b>{$APP.LBL_SAVED_SEARCH_SHORTCUT}</b> {$SAVED_SEARCHES_OPTIONS} {/if} <span id='go_btn_span' style='display:none'><input tabindex='2' title='go_select' id='go_select' onclick='SUGAR.searchForm.clear_form(this.form);' class='button' type='button' name='go_select' value=' {$APP.LBL_GO_BUTTON_LABEL} '/></span> </span> </td> <td class="help"> {if $DISPLAY_SEARCH_HELP} <img border='0' src='{sugar_getimagepath file="help-dashlet.gif"}' class="help-search"> {/if} </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['search_form_modified_by_name_advanced']={"form":"search_form","method":"get_user_array","field_list":["user_name","id"],"populate_list":["modified_by_name_advanced","modified_user_id_advanced"],"required_list":["modified_user_id"],"conditions":[{"name":"user_name","op":"like_custom","end":"%","value":""}],"limit":"30","no_match_text":"Nessun riscontro"};sqs_objects['search_form_created_by_name_advanced']={"form":"search_form","method":"get_user_array","field_list":["user_name","id"],"populate_list":["created_by_name_advanced","created_by_advanced"],"required_list":["created_by"],"conditions":[{"name":"user_name","op":"like_custom","end":"%","value":""}],"limit":"30","no_match_text":"Nessun riscontro"};sqs_objects['search_form_assigned_user_name_advanced']={"form":"search_form","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":"Nessun riscontro"};sqs_objects['search_form_account_name_advanced']={"form":"search_form","method":"query","modules":["Accounts"],"group":"or","field_list":["name","id"],"populate_list":["search_form_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":"Nessun riscontro"};sqs_objects['search_form_campaign_name_advanced']={"form":"search_form","method":"query","modules":["Campaigns"],"group":"or","field_list":["name","id"],"populate_list":["campaign_id_advanced","campaign_id_advanced"],"conditions":[{"name":"name","op":"like_custom","end":"%","value":""}],"required_list":["campaign_id"],"order":"name","limit":"30","no_match_text":"Nessun riscontro"};sqs_objects['search_form_currency_name_advanced']={"form":"search_form","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":"Nessun riscontro"};</script>{/literal}