%PDF- %PDF-
| Direktori : /var/www/crm/cache/smarty/templates_c/ |
| Current File : /var/www/crm/cache/smarty/templates_c/%%CD^CD7^CD77D0D3%%SearchFormGenericAdvanced.tpl.php |
<?php /* Smarty version 2.6.11, created on 2024-01-30 10:32:10
compiled from include/SearchForm/tpls/SearchFormGenericAdvanced.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'math', 'include/SearchForm/tpls/SearchFormGenericAdvanced.tpl', 25, false),array('function', 'sugar_field', 'include/SearchForm/tpls/SearchFormGenericAdvanced.tpl', 56, false),)), $this); ?>
<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>
<?php $this->assign('accesskeycount', 0); ?> <?php $this->assign('ACCKEY', ''); $_from = $this->_tpl_vars['formData']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['colIteration'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['colIteration']['total'] > 0):
foreach ($_from as $this->_tpl_vars['col'] => $this->_tpl_vars['colData']):
$this->_foreach['colIteration']['iteration']++;
?>
<?php echo smarty_function_math(array('assign' => 'accesskeycount','equation' => ($this->_tpl_vars['accesskeycount'])." + 1"), $this);?>
<?php if ($this->_tpl_vars['accesskeycount'] == 1): ?> <?php $this->assign('ACCKEY', $this->_tpl_vars['APP']['LBL_FIRST_INPUT_SEARCH_KEY']); ?> <?php else: ?> <?php $this->assign('ACCKEY', ''); ?> <?php endif; ?>
{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='<?php echo $this->_tpl_vars['templateMeta']['widths']['label']; ?>
%' >
<?php if (isset ( $this->_tpl_vars['colData']['field']['label'] )): ?>
<label for='<?php echo $this->_tpl_vars['colData']['field']['name']; ?>
'>{sugar_translate label='<?php echo $this->_tpl_vars['colData']['field']['label']; ?>
' module='<?php echo $this->_tpl_vars['module']; ?>
'}</label>
<?php elseif (isset ( $this->_tpl_vars['fields'][$this->_tpl_vars['colData']['field']['name']] )): ?>
<label for='<?php echo $this->_tpl_vars['fields'][$this->_tpl_vars['colData']['field']['name']]['name']; ?>
'>{sugar_translate label='<?php echo $this->_tpl_vars['fields'][$this->_tpl_vars['colData']['field']['name']]['vname']; ?>
' module='<?php echo $this->_tpl_vars['module']; ?>
'}</label>
<?php endif; ?>
</td>
<td nowrap="nowrap" width='<?php echo $this->_tpl_vars['templateMeta']['widths']['field']; ?>
%'>
<?php if ($this->_tpl_vars['fields'][$this->_tpl_vars['colData']['field']['name']]): ?>
<?php echo smarty_function_sugar_field(array('parentFieldArray' => 'fields','accesskey' => $this->_tpl_vars['ACCKEY'],'vardef' => $this->_tpl_vars['fields'][$this->_tpl_vars['colData']['field']['name']],'displayType' => $this->_tpl_vars['displayType'],'displayParams' => $this->_tpl_vars['colData']['field']['displayParams'],'typeOverride' => $this->_tpl_vars['colData']['field']['type'],'formName' => $this->_tpl_vars['form_name']), $this);?>
<?php endif; ?>
</td>
<?php endforeach; endif; unset($_from); ?>
</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>