%PDF- %PDF-
Direktori : /var/www/crm/cache/modules/TSI_Scadenziario/ |
Current File : /var/www/crm/cache/modules/TSI_Scadenziario/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='TSI_Scadenziario'} </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='255' 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='data_scadenza_basic' >{sugar_translate label='LBL_DATA_SCADENZA' module='TSI_Scadenziario'}</label> </td> <td nowrap="nowrap" width='1%'> {assign var="id" value=$fields.data_scadenza_basic.name } {if isset($smarty.request.data_scadenza_basic_range_choice)} {assign var="starting_choice" value=$smarty.request.data_scadenza_basic_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.data_scadenza_basic.options selected=$starting_choice} </select> </div> <div id="{$id}_range_div" style="{if preg_match('/^\[/', $smarty.request.range_data_scadenza_basic) || $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_data_scadenza_basic) && !empty($smarty.request.data_scadenza_basic)}{$smarty.request.data_scadenza_basic}{else}{$smarty.request.range_data_scadenza_basic}{/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.data_scadenza_basic.value } <input autocomplete="off" type="text" name="start_range_{$id}" id="start_range_{$id}" value='{$smarty.request.start_range_data_scadenza_basic }' 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.data_scadenza_basic.value } <input autocomplete="off" type="text" name="end_range_{$id}" id="end_range_{$id}" value='{$smarty.request.end_range_data_scadenza_basic }' 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=$basicMaxColumns assign=modVal } {if ($index % $basicMaxColumns == 1 && $index != 1)} </tr><tr> {/if} <td scope="row" nowrap="nowrap" width='1%' > <label for='tsi_scadenziario_accounts_name_basic' >{sugar_translate label='LBL_TSI_SCADENZIARIO_ACCOUNTS_FROM_ACCOUNTS_TITLE' module='TSI_Scadenziario'}</label> </td> <td nowrap="nowrap" width='1%'> <input type="text" name="{$fields.tsi_scadenziario_accounts_name_basic.name}" class="sqsEnabled" id="{$fields.tsi_scadenziario_accounts_name_basic.name}" size="" value="{$fields.tsi_scadenziario_accounts_name_basic.value}" title='' autocomplete="off" > <input type="hidden" id="{$fields.tsi_scadenziario_accountsaccounts_ida_basic.name}" value="{$fields.tsi_scadenziario_accountsaccounts_ida_basic.value}"> <span class="id-ff multiple"> <button type="button" name="btn_{$fields.tsi_scadenziario_accounts_name_basic.name}" title="{$APP.LBL_SELECT_BUTTON_TITLE}" class="button firstChild" value="{$APP.LBL_SELECT_BUTTON_LABEL}" onclick='open_popup("{$fields.tsi_scadenziario_accounts_name_basic.module}", 600, 400, "", true, false, {literal}{"call_back_function":"set_return","form_name":"search_form","field_to_name_array":{"id":"tsi_scadenziario_accountsaccounts_ida_basic","name":"tsi_scadenziario_accounts_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.tsi_scadenziario_accounts_name_basic.name}" title="{$APP.LBL_CLEAR_BUTTON_TITLE}" class="button lastChild" onclick="this.form.{$fields.tsi_scadenziario_accounts_name_basic.name}.value = ''; this.form.{$fields.tsi_scadenziario_accountsaccounts_ida_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='tsi_scadenziario_tsi_prescrizionilegali_name_basic' >{sugar_translate label='LBL_TSI_SCADENZIARIO_TSI_PRESCRIZIONILEGALI_FROM_TSI_PRESCRIZIONILEGALI_TITLE' module='TSI_Scadenziario'}</label> </td> <td nowrap="nowrap" width='1%'> <input type="text" name="{$fields.tsi_scadenziario_tsi_prescrizionilegali_name_basic.name}" class="sqsEnabled" id="{$fields.tsi_scadenziario_tsi_prescrizionilegali_name_basic.name}" size="" value="{$fields.tsi_scadenziario_tsi_prescrizionilegali_name_basic.value}" title='' autocomplete="off" > <input type="hidden" id="{$fields.tsi_scaden82bbilegali_ida_basic.name}" value="{$fields.tsi_scaden82bbilegali_ida_basic.value}"> <span class="id-ff multiple"> <button type="button" name="btn_{$fields.tsi_scadenziario_tsi_prescrizionilegali_name_basic.name}" title="{$APP.LBL_SELECT_BUTTON_TITLE}" class="button firstChild" value="{$APP.LBL_SELECT_BUTTON_LABEL}" onclick='open_popup("{$fields.tsi_scadenziario_tsi_prescrizionilegali_name_basic.module}", 600, 400, "", true, false, {literal}{"call_back_function":"set_return","form_name":"search_form","field_to_name_array":{"id":"tsi_scaden82bbilegali_ida_basic","name":"tsi_scadenziario_tsi_prescrizionilegali_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.tsi_scadenziario_tsi_prescrizionilegali_name_basic.name}" title="{$APP.LBL_CLEAR_BUTTON_TITLE}" class="button lastChild" onclick="this.form.{$fields.tsi_scadenziario_tsi_prescrizionilegali_name_basic.name}.value = ''; this.form.{$fields.tsi_scaden82bbilegali_ida_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='current_user_only_basic' >{sugar_translate label='LBL_CURRENT_USER_FILTER' module='TSI_Scadenziario'}</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> {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='conformita_c_basic' >{sugar_translate label='LBL_CONFORMITA' module='TSI_Scadenziario'}</label> </td> <td nowrap="nowrap" width='1%'> {html_options id='conformita_c_basic' name='conformita_c_basic[]' options=$fields.conformita_c_basic.options size="6" style="width: 150px" multiple="1" selected=$fields.conformita_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='statocliente_c_basic' >{sugar_translate label='LBL_STATOCLIENTE' module='TSI_Scadenziario'}</label> </td> <td nowrap="nowrap" width='1%'> {html_options id='statocliente_c_basic' name='statocliente_c_basic[]' options=$fields.statocliente_c_basic.options size="6" style="width: 150px" multiple="1" selected=$fields.statocliente_c_basic.value} </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_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":"Nessun riscontro"};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":"Nessun riscontro"};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":"Nessun riscontro"};sqs_objects['search_form_tsi_scadenziario_contacts_name_basic']={"form":"search_form","method":"get_contact_array","modules":["Contacts"],"field_list":["salutation","first_name","last_name","id"],"populate_list":["tsi_scadenziario_contacts_name_basic","tsi_scadenziario_contactscontacts_ida_basic","tsi_scadenziario_contactscontacts_ida_basic","tsi_scadenziario_contactscontacts_ida_basic"],"required_list":["tsi_scadenziario_contactscontacts_ida"],"group":"or","conditions":[{"name":"first_name","op":"like_custom","end":"%","value":""},{"name":"last_name","op":"like_custom","end":"%","value":""}],"order":"last_name","limit":"30","no_match_text":"Nessun riscontro"};sqs_objects['search_form_tsi_scadenziario_accounts_name_basic']={"form":"search_form","method":"query","modules":["Accounts"],"group":"or","field_list":["name","id"],"populate_list":["search_form_tsi_scadenziario_accounts_name_basic","tsi_scadenziario_accountsaccounts_ida_basic"],"conditions":[{"name":"name","op":"like_custom","end":"%","value":""}],"required_list":["tsi_scadenziario_accountsaccounts_ida"],"order":"name","limit":"30","no_match_text":"Nessun riscontro"};sqs_objects['search_form_tsi_scadenziario_tsi_prescrizionilegali_name_basic']={"form":"search_form","method":"query","modules":["TSI_prescrizioniLegali"],"group":"or","field_list":["name","id"],"populate_list":["tsi_scadenziario_tsi_prescrizionilegali_name_basic","tsi_scaden82bbilegali_ida_basic"],"required_list":["parent_id"],"conditions":[{"name":"name","op":"like_custom","end":"%","value":""}],"order":"name","limit":"30","no_match_text":"Nessun riscontro"};</script>{/literal}