3 /*********************************************************************************
4 * SugarCRM is a customer relationship management program developed by
5 * SugarCRM, Inc. Copyright (C) 2004-2011 SugarCRM Inc.
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.
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
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
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.
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.
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 ********************************************************************************/
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>
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%">
54 <td align="left">{$exportLink}{$mergeLink}{$selectedObjectsSpan} </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"> Start</a>
59 <img src="{sugar_getimagepath file="start_off.gif"}" alt="Start" align="absmiddle" border="0" height="10" width="11"> Start
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"> Previous</a>
64 <img src="{sugar_getimagepath file="previous_off.gif"}" alt="Previous" align="absmiddle" border="0" height="10" width="6"> Previous
66 <span class="pageNumbers">({$pageData.offsets.current+1} - {$pageData.offsets.next} of {if $pageData.offsets.totalCounted}{$pageData.offsets.total}{else}{$rowCount+1}}+{/if})</span>
67 {if $pageData.urls.nextPage}
68 <a href="{$pageData.urls.nextPage}" {if $prerow}onclick="javascript:return sListView.save_checks(40, '{$moduleString}')"{/if} >Next <img src="{sugar_getimagepath file="next.gif"}" alt="Next" align="absmiddle" border="0" height="10" width="6"></a>
70 Next <img src="{sugar_getimagepath file="next_off.gif"}" alt="Next" align="absmiddle" border="0" height="10" width="6">
72 {if $pageData.urls.endPage}
73 <a href="{$pageData.urls.endPage}" {if $prerow}onclick="javascript:return sListView.save_checks(980, '{$moduleString}')"{/if} >End <img src="{sugar_getimagepath file="end.gif"}" alt="End" align="absmiddle" border="0" height="10" width="11"></a></td>
75 Next <img src="{sugar_getimagepath file="next_off.gif"}" alt="Next" align="absmiddle" border="0" height="10" width="6">
84 <td scope="col" NOWRAP>{$checkall}</td>
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} <img src="{smarty_function_sugar_getimagepath file='arrow.gif'}" alt="Sort" align="absmiddle" border="0"></a></slot>
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]}
98 {assign var="_rowColor" value=$rowColor[1]}
100 <tr height="20" class="{$_rowColor}S1">
102 <td><input onclick='sListView.check_item(this, document.MassUpdate)' type='checkbox' class='checkbox' name='mass[]' value='{$id}'></td>
104 {foreach from=$displayColumns key=col item=params}
105 <td scope='row' align="{$params.align|default:"left"}" valign="top"><slot>
107 {if $params.customCode}
108 {sugar_evalcolumn_old var=$params.customCode rowData=$rowData}
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}>
119 {counter print=false}
121 <tr class='pagination'>
122 <td colspan="{$colCount}" align="right">
123 <table border="0" cellpadding="0" cellspacing="0" width="100%">
125 <td align="left">{$exportLink}{$mergeLink}{$selectedObjectsSpan} </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"> Start</a>
130 <img src="{sugar_getimagepath file="start_off.gif"}" alt="Start" align="absmiddle" border="0" height="10" width="11"> Start
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"> Previous</a>
135 <img src="{sugar_getimagepath file="previous_off.gif"}" alt="Previous" align="absmiddle" border="0" height="10" width="6"> Previous
137 <span class="pageNumbers">({$pageData.offsets.current+1} - {$pageData.offsets.next} of {if $pageData.offsets.totalCounted}{$pageData.offsets.end}{else}{$rowCount+1}}+{/if})</span>
138 {if $pageData.urls.nextPage}
139 <a href="{$pageData.urls.nextPage}" onclick="javascript:return sListView.save_checks(40, '{$moduleString}')" >Next <img src="{sugar_getimagepath file="next.gif"}" alt="Next" align="absmiddle" border="0" height="10" width="6"></a>
141 Next <img src="{sugar_getimagepath file="next_off.gif"}" alt="Next" align="absmiddle" border="0" height="10" width="6">
143 {if $pageData.urls.endPage}
144 <a href="{$pageData.urls.endPage}" onclick="javascript:return sListView.save_checks(980, '{$moduleString}')" >End <img src="{sugar_getimagepath file="end.gif"}" alt="End" align="absmiddle" border="0" height="10" width="11"></a></td>
146 Next <img src="{sugar_getimagepath file="next_off.gif"}" alt="Next" align="absmiddle" border="0" height="10" width="6">