Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
{*+**********************************************************************************
* The contents of this file are subject to the vtiger CRM Public License Version 1.1
* ("License"); You may not use this file except in compliance with the License
* The Original Code is: vtiger CRM Open Source
* The Initial Developer of the Original Code is vtiger.
* Portions created by vtiger are Copyright (C) vtiger.
* All Rights Reserved.
************************************************************************************}
{* modules/Portal/views/List.php *}
{* START YOUR IMPLEMENTATION FROM BELOW. Use {debug} for information *}
{strip}
<input type="hidden" id="pageNumber" value="{$CURRENT_PAGE}">
<input type="hidden" id="totalCount" value="{$PAGING_INFO['recordCount']}" />
<input type="hidden" id="recordsCount" value="{$PAGING_INFO['recordCount']}"/>
<input type="hidden" id="selectedIds" name="selectedIds" />
<input type="hidden" id="excludedIds" name="excludedIds" />
<input type="hidden" id="alphabetValue" value="{$ALPHABET_VALUE}" />
<input type="hidden" id="pageStartRange" value="{$PAGING_INFO['startSequence']}" />
<input type="hidden" id="pageEndRange" value="{$PAGING_INFO['endSequence']}" />
<input type="hidden" id="previousPageExist" {if $CURRENT_PAGE neq 1}value="1"{/if} />
<input type="hidden" id="nextPageExist" value="{$PAGING_INFO['nextPageExists']}" />
<input type="hidden" id="pageLimit" value="{$PAGING_INFO['pageLimit']}" />
<input type="hidden" id="noOfEntries" value="{$NO_OF_ENTRIES}" />
<input type="hidden" value="{$COLUMN_NAME}" name="orderBy">
<input type="hidden" value="{$SORT_ORDER}" name="sortOrder">
{include file="modules/Portal/ListViewActions.tpl"}
<div id="selectAllMsgDiv" class="hide" style = "background:gold;height:20px">
<center><a href="#">{vtranslate('LBL_SELECT_ALL',$MODULE)} {vtranslate($MODULE ,$MODULE)} (<span id="totalRecordsCount" value=""></span>)</a></center>
</div>
<div id="deSelectAllMsgDiv" class="hide" style = "background:gold;height:20px">
<center><a href="#">{vtranslate('LBL_DESELECT_ALL_RECORDS',$MODULE)}</a></center>
</div>
<div class="contents-topscroll noprint">
<div class="topscroll-div">
</div>
</div>
<div class="col-md-12 col-sm-12 col-xs-12 col-lg-12 listViewContentDiv" id="listViewContents">
<div id="table-content" class="table-container">
{assign var=WIDTHTYPE value=$CURRENT_USER_MODEL->get('rowheight')}
<table id="listview-table" class="table listview-table portal-table">
<thead>
<tr class="listViewContentHeader">
<th>
<div class="table-actions" style="margin-left:0px !important;">
<span class="input">
<input class="listViewEntriesMainCheckBox" type="checkbox">
</span>
</div>
</th>
<th>
<a href="#" class="listViewContentHeaderValues" data-nextsortorderval="{if $COLUMN_NAME eq 'portalname'}{$NEXT_SORT_ORDER}{else}ASC{/if}" data-columnname="portalname">
{if $COLUMN_NAME eq 'portalname'}
<i class="fa fa-sort {$FASORT_IMAGE}"></i>
{else}
<i class="fa fa-sort customsort"></i>
{/if}
{vtranslate('LBL_BOOKMARK_NAME', $MODULE)}
</a>
{if $COLUMN_NAME eq 'portalname'}
<a href="#" class="removeSorting"><i class="fa fa-remove"></i></a>
{/if}
</th>
<th>
<a href="#" class="listViewContentHeaderValues"
data-nextsortorderval="{if $COLUMN_NAME eq 'portalurl'}{$NEXT_SORT_ORDER}{else}ASC{/if}" data-columnname="portalurl">
{if $COLUMN_NAME eq 'portalurl'}
<i class="fa fa-sort {$FASORT_IMAGE}"></i>
{else}
<i class="fa fa-sort customsort"></i>
{/if}
{vtranslate('LBL_BOOKMARK_URL', $MODULE)}
</a>
{if $COLUMN_NAME eq 'portalurl'}
<a href="#" class="removeSorting"><i class="fa fa-remove"></i></a>
{/if}
</th>
<th>
<a href="#" class="listViewContentHeaderValues"
data-nextsortorderval="{if $COLUMN_NAME eq 'createdtime'}{$NEXT_SORT_ORDER}{else}ASC{/if}" data-columnname="createdtime">
{if $COLUMN_NAME eq 'createdtime'}
<i class="fa fa-sort {$FASORT_IMAGE}"></i>
{else}
<i class="fa fa-sort customsort"></i>
{/if}
{vtranslate('LBL_CREATED_ON', $MODULE)}
</a>
{if $COLUMN_NAME eq 'createdtime'}
<a href="#" class="removeSorting"><i class="fa fa-remove"></i></a>
{/if}
</th>
</tr>
</thead>
<tbody class="overflow-y">
{foreach item=LISTVIEW_ENTRY key=RECORD_ID from=$LISTVIEW_ENTRIES}
<tr class="listViewEntries" data-id="{$RECORD_ID}" data-recordurl="index.php?module=Portal&view=Detail&record={$RECORD_ID}">
<td class="listViewRecordActions">
<div class="table-actions">
<span class="input" >
<input type="checkbox" value="{$LISTVIEW_ENTRY->getId()}" class="listViewEntriesCheckBox"/>
</span>
<span class="more dropdown action">
<span href="javascript:;" class="dropdown-toggle" data-toggle="dropdown">
<i class="fa fa-ellipsis-v icon"></i>
</span>
<ul class="dropdown-menu" style="top:auto;bottom:30%;" data-id="{$RECORD_ID}">
<li><a href="javascript:void(0);" class="editPortalRecord" >{vtranslate('LBL_EDIT', $MODULE)}</a></li>
<li><a href="javascript:void(0);" class="deleteRecordButton">{vtranslate('LBL_DELETE', $MODULE)}</a></li>
</ul>
</span>
</div>
</td>
<td class="listViewEntryValue {$WIDTHTYPE}" nowrap>
<a href="index.php?module=Portal&view=Detail&record={$RECORD_ID}" sl-processed="1">{$LISTVIEW_ENTRY->get('portalname')}</a>
</td>
<td class="listViewEntryValue {$WIDTHTYPE}" nowrap>
<a class="urlField cursorPointer" href="{if substr($LISTVIEW_ENTRY->get('portalurl'), 0, 4) neq 'http'}//{/if}{$LISTVIEW_ENTRY->get('portalurl')}" target="_blank" sl-processed="1">{$LISTVIEW_ENTRY->get('portalurl')}</a>
</td>
<td class="listViewEntryValue {$WIDTHTYPE}" nowrap>{$LISTVIEW_ENTRY->get('createdtime')}</td>
</tr>
{/foreach}
{if $PAGING_INFO['recordCount'] eq '0'}
<tr class="emptyRecordsDiv">
{assign var=COLSPAN_WIDTH value={count($LISTVIEW_HEADERS)}+1}
<td colspan="{$COLSPAN_WIDTH}">
<div class="emptyRecordsContent">
{assign var=SINGLE_MODULE value="SINGLE_$MODULE"}
{vtranslate('LBL_NO')} {vtranslate('LBL_BOOKMARKS', $MODULE)} {vtranslate('LBL_FOUND')}. {vtranslate('LBL_CREATE')}
<a class="addBookmark" style="color:blue;">{vtranslate('LBL_BOOKMARK', $MODULE)}</a>
</div>
</td>
</tr>
{/if}
</tbody>
</table>
</div>
</div>
{/strip}