]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - include/SearchForm/tpls/SearchFormGenericAdvanced.tpl
Release 6.3.0
[Github/sugarcrm.git] / include / SearchForm / tpls / SearchFormGenericAdvanced.tpl
1 <table width="100%" cellspacing="0" cellpadding="0" border="0">
2 <tr>
3 {{foreach name=colIteration from=$formData key=col item=colData}}
4         
5         {counter assign=index}
6         {math equation="left % right"
7                   left=$index
8           right=$templateMeta.maxColumns
9           assign=modVal
10     }
11         {if ($index % $templateMeta.maxColumns == 1 && $index != 1)}
12         {if $isHelperShown==0}
13             {assign var="isHelperShown" value="1"}
14             <td class="helpIcon" width="*"><img  border='0' src='{sugar_getimagepath file="help-dashlet.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={sugar_getimagepath file='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');" class="help-search"></td>
15         {else}
16             <td>&nbsp;</td>
17         {/if}
18                 </tr><tr>
19         {/if}
20         
21         <td scope="row" nowrap="nowrap" width='{{$templateMeta.widths.label}}%' >
22         {{if isset($colData.field.label)}}      
23                 {sugar_translate label='{{$colData.field.label}}' module='{{$module}}'}
24     {{elseif isset($fields[$colData.field.name])}}
25                 {sugar_translate label='{{$fields[$colData.field.name].vname}}' module='{{$module}}'}
26         {{/if}}
27         </td>
28         <td  nowrap="nowrap" width='{{$templateMeta.widths.field}}%'>
29         {{if $fields[$colData.field.name]}}
30                 {{sugar_field parentFieldArray='fields' vardef=$fields[$colData.field.name] displayType=$displayType displayParams=$colData.field.displayParams typeOverride=$colData.field.type formName=$form_name}}
31         {{/if}}
32         </td>
33 {{/foreach}}
34         </tr>
35 <tr>
36         <td colspan='20'>
37                 &nbsp;
38         </td>
39 </tr>   
40 {if $DISPLAY_SAVED_SEARCH}
41 <tr>
42         <td colspan='2'>
43                 <a class='tabFormAdvLink' onhover href='javascript:toggleInlineSearch()'>
44                 <img src='{sugar_getimagepath file="advanced_search.gif"}' id='up_down_img' border=0>&nbsp;{$APP.LNK_SAVED_VIEWS}
45                 </a><br>
46                 <input type='hidden' id='showSSDIV' name='showSSDIV' value='{$SHOWSSDIV}'><p>
47         </td>
48         <td scope='row' width='10%' nowrap="nowrap">
49                 {sugar_translate label='LBL_SAVE_SEARCH_AS' module='SavedSearch'}:
50         </td>
51         <td width='30%' nowrap>
52                 <input type='text' name='saved_search_name'>
53                 <input type='hidden' name='search_module' value=''>
54                 <input type='hidden' name='saved_search_action' value=''>
55                 <input title='{$APP.LBL_SAVE_BUTTON_LABEL}' value='{$APP.LBL_SAVE_BUTTON_LABEL}' class='button' type='button' name='saved_search_submit' id='saved_search_submit' onclick='SUGAR.savedViews.setChooser(); return SUGAR.savedViews.saved_search_action("save");'>
56         </td>
57         <td scope='row' width='10%' nowrap="nowrap">
58             {sugar_translate label='LBL_MODIFY_CURRENT_SEARCH' module='SavedSearch'}:
59         </td>
60         <td width='30%' nowrap>
61                 <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' >
62                 <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'>
63                 <br><span id='curr_search_name'></span>
64         </td>
65 </tr>
66
67 <tr>
68 <td colspan='6'>
69 <div style='{$DISPLAYSS}' id='inlineSavedSearch' >
70         {$SAVED_SEARCH}
71 </div>
72 </td>
73 </tr>
74
75 {/if}
76 {if $displayType != 'popupView'}
77 <tr>
78         <td colspan='5'>
79         <input tabindex='2' title='{$APP.LBL_SEARCH_BUTTON_TITLE}' accessKey='{$APP.LBL_SEARCH_BUTTON_KEY}' onclick='SUGAR.savedViews.setChooser()' class='button' type='submit' name='button' value='{$APP.LBL_SEARCH_BUTTON_LABEL}' id='search_form_submit'/>&nbsp;
80         <input tabindex='2' title='{$APP.LBL_CLEAR_BUTTON_TITLE}' accessKey='{$APP.LBL_CLEAR_BUTTON_KEY}' 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' value='{$APP.LBL_CLEAR_BUTTON_LABEL}'/>
81         {if $DOCUMENTS_MODULE}
82         &nbsp;<input title="{$APP.LBL_BROWSE_DOCUMENTS_BUTTON_TITLE}" accessKey="{$APP.LBL_BROWSE_DOCUMENTS_BUTTON_KEY}" type="button" class="button" value="{$APP.LBL_BROWSE_DOCUMENTS_BUTTON_LABEL}" onclick='open_popup("Documents", 600, 400, "&caller=Documents", true, false, "");' />
83         {/if}
84         <a id="basic_search_link" onclick="SUGAR.searchForm.searchFormSelect('{$module}|basic_search','{$module}|advanced_search')" href="#">{$APP.LNK_BASIC_SEARCH}</a>
85         <span class='white-space'>
86             &nbsp;&nbsp;&nbsp;{if $SAVED_SEARCHES_OPTIONS}|&nbsp;&nbsp;&nbsp;<b>{$APP.LBL_SAVED_SEARCH_SHORTCUT}</b>&nbsp;
87             {$SAVED_SEARCHES_OPTIONS} {/if}
88             <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>     
89         </span>
90         </td>
91         <td class="help">
92             {if $DISPLAY_SEARCH_HELP}
93             <img  border='0' src='{sugar_getimagepath file="help-dashlet.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={sugar_getimagepath file='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');" class="help-search">
94             {/if}
95     </td>
96 </tr>
97 {/if}
98 </table>
99
100 <script>
101 {literal}
102         if(typeof(loadSSL_Scripts)=='function'){
103                 loadSSL_Scripts();
104         }
105 {/literal}      
106 </script>