]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - modules/Home/UnifiedSearchAdvancedResults.tpl
Release 6.1.4
[Github/sugarcrm.git] / modules / Home / UnifiedSearchAdvancedResults.tpl
1 {*
2
3 /*********************************************************************************
4  * SugarCRM is a customer relationship management program developed by
5  * SugarCRM, Inc. Copyright (C) 2004-2011 SugarCRM Inc.
6  * 
7  * This program is free software; you can redistribute it and/or modify it under
8  * the terms of the GNU Affero General Public License version 3 as published by the
9  * Free Software Foundation with the addition of the following permission added
10  * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
11  * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
12  * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
13  * 
14  * This program is distributed in the hope that it will be useful, but WITHOUT
15  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16  * FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public License for more
17  * details.
18  * 
19  * You should have received a copy of the GNU Affero General Public License along with
20  * this program; if not, see http://www.gnu.org/licenses or write to the Free
21  * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22  * 02110-1301 USA.
23  * 
24  * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
25  * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
26  * 
27  * The interactive user interfaces in modified source and object code versions
28  * of this program must display Appropriate Legal Notices, as required under
29  * Section 5 of the GNU Affero General Public License version 3.
30  * 
31  * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
32  * these Appropriate Legal Notices must retain the display of the "Powered by
33  * SugarCRM" logo. If the display of the logo is not reasonably feasible for
34  * technical reasons, the Appropriate Legal Notices must display the words
35  * "Powered by SugarCRM".
36  ********************************************************************************/
37
38
39
40
41 *}
42
43
44 {if $overlib}
45         <script type="text/javascript" src="include/javascript/sugar_grp_overlib.js"></script>
46         <div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div>
47 {/if}
48
49 <table cellpadding="0" cellspacing="0" width="100%" border="0" class="list view">
50         <tr class='pagination'>
51                 <td colspan="{$colCount}" align="right">
52                         <table border="0" cellpadding="0" cellspacing="0" width="100%">
53                                 <tr>
54                                         <td align="left">{$exportLink}{$mergeLink}{$selectedObjectsSpan}&nbsp;</td>
55                                         <td align="right" nowrap="nowrap">
56                                                 {if $pageData.urls.startPage}
57                                                         <a href="{$pageData.urls.startPage}" {if $prerow}onclick="javascript:return sListView.save_checks(0, '{$moduleString}')"{/if} ><img src="{sugar_getimagepath file="start.gif"}" alt="Start" align="absmiddle" border="0" height="10" width="11">&nbsp;Start</a>&nbsp;&nbsp;
58                                                 {else}
59                                                         <img src="{sugar_getimagepath file="start_off.gif"}" alt="Start" align="absmiddle" border="0" height="10" width="11">&nbsp;Start&nbsp;&nbsp;
60                                                 {/if}
61                                                 {if $pageData.urls.prevPage}
62                                                         <a href="{$pageData.urls.prevPage}" {if $prerow}onclick="javascript:return sListView.save_checks(0, '{$moduleString}')"{/if} ><img src="{sugar_getimagepath file="previous.gif"}" alt="Previous" align="absmiddle" border="0" height="10" width="6">&nbsp;Previous</a>&nbsp;&nbsp;
63                                                 {else}
64                                                         <img src="{sugar_getimagepath file="previous_off.gif"}" alt="Previous" align="absmiddle" border="0" height="10" width="6">&nbsp;Previous&nbsp;&nbsp;
65                                                 {/if}
66                                                         <span class="pageNumbers">({$pageData.offsets.current+1} - {$pageData.offsets.next} of {if $pageData.offsets.totalCounted}{$pageData.offsets.total}{else}{$rowCount+1}}+{/if})</span>&nbsp;&nbsp;
67                                                 {if $pageData.urls.nextPage}
68                                                         <a href="{$pageData.urls.nextPage}" {if $prerow}onclick="javascript:return sListView.save_checks(40, '{$moduleString}')"{/if} >Next&nbsp;<img src="{sugar_getimagepath file="next.gif"}" alt="Next" align="absmiddle" border="0" height="10" width="6"></a>&nbsp;&nbsp;
69                                                 {else}
70                                                         &nbsp;&nbsp;Next&nbsp;<img src="{sugar_getimagepath file="next_off.gif"}" alt="Next" align="absmiddle" border="0" height="10" width="6">
71                                                 {/if}
72                                                 {if $pageData.urls.endPage}
73                                                         <a href="{$pageData.urls.endPage}" {if $prerow}onclick="javascript:return sListView.save_checks(980, '{$moduleString}')"{/if} >End&nbsp;<img src="{sugar_getimagepath file="end.gif"}" alt="End" align="absmiddle" border="0" height="10" width="11"></a></td>
74                                                 {else}
75                                                         &nbsp;&nbsp;Next&nbsp;<img src="{sugar_getimagepath file="next_off.gif"}" alt="Next" align="absmiddle" border="0" height="10" width="6">
76                                                 {/if}
77                                         </td>
78                                 </tr>
79                         </table>
80                 </td>
81         </tr>
82         <tr height="20">
83                 {if $prerow}
84                         <td scope="col"  NOWRAP>{$checkall}</td>
85                 {/if}
86                 {foreach from=$displayColumns key=colHeader item=params}
87                         <td scope="col" width="{$params.width}" align="{$params.align}"  nowrap>
88                                 <slot><a href="{$pageData.urls.orderBy}{$params.orderBy}" class="listViewThLinkS1">{$params.label}&nbsp;<img src="{smarty_function_sugar_getimagepath file='arrow.gif'}" alt="Sort" align="absmiddle" border="0"></a></slot>
89                         </td>
90                 {/foreach}
91         </tr>
92                 
93         {counter start=0 name=rowCounter print=false}
94         {foreach from=$data key=id item=rowData}
95                 {if $rowCounter is even}
96                         {assign var="_rowColor" value=$rowColor[0]}
97                 {else}
98                         {assign var="_rowColor" value=$rowColor[1]}
99                 {/if}
100                 <tr height="20" class="{$_rowColor}S1">
101                         {if $prerow}
102                                 <td><input onclick='sListView.check_item(this, document.MassUpdate)' type='checkbox' class='checkbox' name='mass[]' value='{$id}'></td>
103                         {/if}
104                         {foreach from=$displayColumns key=col item=params}
105                                 <td scope='row' align="{$params.align|default:"left"}" valign="top"><slot>
106                                         {if $params.link}
107                                                 {if $params.customCode}
108                                                         {sugar_evalcolumn_old var=$params.customCode rowData=$rowData}
109                                                 {else}
110                                                         <{$pageData.tag.$id.MAIN} href="index.php?action={$params.action|default:"DetailView"}&module={$params.module|default:$pageData.bean.moduleDir}&record={$rowData[$params.id]|default:$id}&offset={$pageData.offsets.current}&stamp={$pageData.stamp}" >{$rowData.$col}</{$pageData.tag.$id.MAIN}>
111                                                 {/if}
112                                         {else}
113                                                 {$rowData.$col}
114                                         {/if}
115                                 </slot></td>
116                         {/foreach}
117                 </tr>
118                 
119                 {counter print=false}
120         {/foreach}
121         <tr class='pagination'>
122                 <td colspan="{$colCount}" align="right">
123                         <table border="0" cellpadding="0" cellspacing="0" width="100%">
124                                 <tr>
125                                         <td align="left">{$exportLink}{$mergeLink}{$selectedObjectsSpan}&nbsp;</td>
126                                         <td align="right" nowrap="nowrap">
127                                                 {if $pageData.urls.startPage}
128                                                         <a href="{$pageData.urls.startPage}" onclick="javascript:return sListView.save_checks(0, '{$moduleString}')" ><img src="{sugar_getimagepath file="start.gif"}" alt="Start" align="absmiddle" border="0" height="10" width="11">&nbsp;Start</a>&nbsp;&nbsp;
129                                                 {else}
130                                                         <img src="{sugar_getimagepath file="start_off.gif"}" alt="Start" align="absmiddle" border="0" height="10" width="11">&nbsp;Start&nbsp;&nbsp;
131                                                 {/if}
132                                                 {if $pageData.urls.prevPage}
133                                                         <a href="{$pageData.urls.prevPage}" onclick="javascript:return sListView.save_checks(0, '{$moduleString}')" ><img src="{sugar_getimagepath file="previous.gif"}" alt="Previous" align="absmiddle" border="0" height="10" width="6">&nbsp;Previous</a>&nbsp;&nbsp;
134                                                 {else}
135                                                         <img src="{sugar_getimagepath file="previous_off.gif"}" alt="Previous" align="absmiddle" border="0" height="10" width="6">&nbsp;Previous&nbsp;&nbsp;
136                                                 {/if}
137                                                         <span class="pageNumbers">({$pageData.offsets.current+1} - {$pageData.offsets.next} of {if $pageData.offsets.totalCounted}{$pageData.offsets.end}{else}{$rowCount+1}}+{/if})</span>&nbsp;&nbsp;
138                                                 {if $pageData.urls.nextPage}
139                                                         <a href="{$pageData.urls.nextPage}" onclick="javascript:return sListView.save_checks(40, '{$moduleString}')" >Next&nbsp;<img src="{sugar_getimagepath file="next.gif"}" alt="Next" align="absmiddle" border="0" height="10" width="6"></a>&nbsp;&nbsp;
140                                                 {else}
141                                                         &nbsp;&nbsp;Next&nbsp;<img src="{sugar_getimagepath file="next_off.gif"}" alt="Next" align="absmiddle" border="0" height="10" width="6">
142                                                 {/if}
143                                                 {if $pageData.urls.endPage}
144                                                         <a href="{$pageData.urls.endPage}" onclick="javascript:return sListView.save_checks(980, '{$moduleString}')" >End&nbsp;<img src="{sugar_getimagepath file="end.gif"}" alt="End" align="absmiddle" border="0" height="10" width="11"></a></td>
145                                                 {else}
146                                                         &nbsp;&nbsp;Next&nbsp;<img src="{sugar_getimagepath file="next_off.gif"}" alt="Next" align="absmiddle" border="0" height="10" width="6">
147                                                 {/if}
148                                         </td>
149                                 </tr>
150                         </table>
151                 </td>
152         </tr>
153 </table>