%PDF- %PDF-
| Direktori : /var/www/crm/cache/modules/Project/ |
| Current File : /var/www/crm/cache/modules/Project/SearchForm_basic.tpl |
{if !isset($templateMeta.maxColumnsBasic)}
{assign var="basicMaxColumns" value=$templateMeta.maxColumns}
{else}
{assign var="basicMaxColumns" value=$templateMeta.maxColumnsBasic}
{/if}
<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_HELP'),
width: 700
});
$('#filterHelp').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=$basicMaxColumns
assign=modVal
}
{if ($index % $basicMaxColumns == 1 && $index != 1)}
</tr><tr>
{/if}
<td scope="row" nowrap="nowrap" width='1%' >
<label for='name_basic'> {sugar_translate label='LBL_NAME' module='Project'}
</td>
<td nowrap="nowrap" width='1%'>
{if strlen($fields.name_basic.value) <= 0}
{assign var="value" value=$fields.name_basic.default_value }
{else}
{assign var="value" value=$fields.name_basic.value }
{/if}
<input type='text' name='{$fields.name_basic.name}'
id='{$fields.name_basic.name}' size='30'
maxlength='50'
value='{$value}' title='' accesskey='9' >
</td>
{counter assign=index}
{math equation="left % right"
left=$index
right=$basicMaxColumns
assign=modVal
}
{if ($index % $basicMaxColumns == 1 && $index != 1)}
</tr><tr>
{/if}
<td scope="row" nowrap="nowrap" width='1%' >
<label for='account_name_basic' >{sugar_translate label='LBL_ACCOUNT_NAME' module='Project'}</label>
</td>
<td nowrap="nowrap" width='1%'>
<input type="text" name="{$fields.account_name_basic.name}" class="sqsEnabled" id="{$fields.account_name_basic.name}" size="" value="{$fields.account_name_basic.value}" title='' autocomplete="off" >
<input type="hidden" id="{$fields.account_id_basic.name}" value="{$fields.account_id_basic.value}">
<span class="id-ff multiple">
<button type="button" name="btn_{$fields.account_name_basic.name}" title="{$APP.LBL_SELECT_BUTTON_TITLE}" class="button firstChild" value="{$APP.LBL_SELECT_BUTTON_LABEL}" onclick='open_popup("{$fields.account_name_basic.module}", 600, 400, "", true, false, {literal}{"call_back_function":"set_return","form_name":"search_form","field_to_name_array":{"id":"account_id_basic","name":"account_name_basic"}}{/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_basic.name}" title="{$APP.LBL_CLEAR_BUTTON_TITLE}" class="button lastChild" onclick="this.form.{$fields.account_name_basic.name}.value = ''; this.form.{$fields.account_id_basic.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=$basicMaxColumns
assign=modVal
}
{if ($index % $basicMaxColumns == 1 && $index != 1)}
</tr><tr>
{/if}
<td scope="row" nowrap="nowrap" width='1%' >
<label for='status_basic' >{sugar_translate label='LBL_STATUS' module='Project'}</label>
</td>
<td nowrap="nowrap" width='1%'>
{html_options id='status_basic' name='status_basic[]' options=$fields.status_basic.options size="6" style="width: 150px" multiple="1" selected=$fields.status_basic.value}
</td>
{counter assign=index}
{math equation="left % right"
left=$index
right=$basicMaxColumns
assign=modVal
}
{if ($index % $basicMaxColumns == 1 && $index != 1)}
</tr><tr>
{/if}
<td scope="row" nowrap="nowrap" width='1%' >
<label for='settore_c_basic' >{sugar_translate label='LBL_SETTORE' module='Project'}</label>
</td>
<td nowrap="nowrap" width='1%'>
{html_options id='settore_c_basic' name='settore_c_basic[]' options=$fields.settore_c_basic.options size="6" style="width: 150px" multiple="1" selected=$fields.settore_c_basic.value}
</td>
{counter assign=index}
{math equation="left % right"
left=$index
right=$basicMaxColumns
assign=modVal
}
{if ($index % $basicMaxColumns == 1 && $index != 1)}
</tr><tr>
{/if}
<td scope="row" nowrap="nowrap" width='1%' >
<label for='current_user_only_basic' >{sugar_translate label='LBL_CURRENT_USER_FILTER' module='Project'}</label>
</td>
<td nowrap="nowrap" width='1%'>
{if strval($fields.current_user_only_basic.value) == "1" || strval($fields.current_user_only_basic.value) == "yes" || strval($fields.current_user_only_basic.value) == "on"}
{assign var="checked" value="CHECKED"}
{else}
{assign var="checked" value=""}
{/if}
<input type="hidden" name="{$fields.current_user_only_basic.name}" value="0">
<input type="checkbox" id="{$fields.current_user_only_basic.name}"
name="{$fields.current_user_only_basic.name}"
value="1" title='' tabindex="" {$checked} >
</td>
{if $formData|@count >= $basicMaxColumns+1}
</tr>
<tr>
<td colspan="{$searchTableColumnCount}">
{else}
<td class="sumbitButtons">
{/if}
<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"/>
<input tabindex='2' title='{$APP.LBL_CLEAR_BUTTON_TITLE}' onclick='SUGAR.searchForm.clear_form(this.form); return false;' class='button' type='button' name='clear' id='search_form_clear' value='{$APP.LBL_CLEAR_BUTTON_LABEL}'/>
{if $HAS_ADVANCED_SEARCH}
<a id="advanced_search_link" onclick="SUGAR.searchForm.searchFormSelect('{$module}|advanced_search','{$module}|basic_search')" href="javascript:void(0);" accesskey="{$APP.LBL_ADV_SEARCH_LNK_KEY}" >{$APP.LNK_ADVANCED_SEARCH}</a>
{/if}
</td>
<td class="helpIcon" width="*"><img alt="Help" border='0' id="filterHelp" src='{sugar_getimagepath file="help-dashlet.gif"}'></td>
</tr>
</table>{literal}<script language="javascript">if(typeof sqs_objects == 'undefined'){var sqs_objects = new Array;}sqs_objects['search_form_account_name_basic']={"form":"search_form","method":"query","modules":["Accounts"],"group":"or","field_list":["name","id"],"populate_list":["search_form_account_name_basic","account_id_basic"],"conditions":[{"name":"name","op":"like_custom","end":"%","value":""}],"required_list":["account_id"],"order":"name","limit":"30","no_match_text":"No Match"};sqs_objects['search_form_modified_by_name_basic']={"form":"search_form","method":"get_user_array","field_list":["user_name","id"],"populate_list":["modified_by_name_basic","modified_user_id_basic"],"required_list":["modified_user_id"],"conditions":[{"name":"user_name","op":"like_custom","end":"%","value":""}],"limit":"30","no_match_text":"No Match"};sqs_objects['search_form_created_by_name_basic']={"form":"search_form","method":"get_user_array","field_list":["user_name","id"],"populate_list":["created_by_name_basic","created_by_basic"],"required_list":["created_by"],"conditions":[{"name":"user_name","op":"like_custom","end":"%","value":""}],"limit":"30","no_match_text":"No Match"};sqs_objects['search_form_assigned_user_name_basic']={"form":"search_form","method":"get_user_array","field_list":["user_name","id"],"populate_list":["assigned_user_name_basic","assigned_user_id_basic"],"required_list":["assigned_user_id"],"conditions":[{"name":"user_name","op":"like_custom","end":"%","value":""}],"limit":"30","no_match_text":"No Match"};</script>{/literal}