{*<!--
/*********************************************************************************
** The contents of this file are subject to the vtiger CRM Public License Version 1.0
 * ("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.
*
 ********************************************************************************/
-->*}
{strip}
        <input type="hidden" id="pageNumber" value="{$CURRENT_PAGE}">
        <input type="hidden" id="totalCount" value="{$PAGING_INFO['recordCount']}" />
        <input type="hidden" id="totalPageCount" value="{$PAGING_INFO['pageCount']}" />
        <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="{$PAGING_INFO['recordCount']}" />
        {assign var = ALPHABETS_LABEL value = vtranslate('LBL_ALPHABETS', 'Vtiger')}
        {assign var = ALPHABETS value = ','|explode:$ALPHABETS_LABEL}

        <div class="alphabetSorting noprint">
            <table width="100%" class="table-bordered" style="border: 1px solid #ddd;table-layout: fixed">
                <tbody>
                    <tr>
                    {foreach item=ALPHABET from=$ALPHABETS}
                        <td class="portalAlphabetSearch textAlignCenter cursorPointer {if $ALPHABET_VALUE eq $ALPHABET} highlightBackgroundColor {/if}" style="padding : 0px !important"><a id="{$ALPHABET}" href="#">{$ALPHABET}</a></td>
                    {/foreach}
                    </tr>
                </tbody>
            </table>
        </div>
        <div id="selectAllMsgDiv" class="alert-block msgDiv noprint">
            <strong><a id="selectAllMsg">{vtranslate('LBL_SELECT_ALL',$MODULE)}&nbsp;{vtranslate($MODULE ,$MODULE)}&nbsp;(<span id="totalRecordsCount"></span>)</a></strong>
        </div>
        <div id="deSelectAllMsgDiv" class="alert-block msgDiv noprint">
            <strong><a id="deSelectAllMsg">{vtranslate('LBL_DESELECT_ALL_RECORDS',$MODULE)}</a></strong>
        </div>
        <div class="contents-topscroll noprint">
            <div class="topscroll-div">
                &nbsp;
             </div>
        </div>
        <div class="listViewContentDiv" id="listViewContents">
            <div class="listViewEntriesDiv contents-bottomscroll">
                <div class="bottomscroll-div">
                    <input type="hidden" value="{$COLUMN_NAME}" id="orderBy">
                    <input type="hidden" value="{$SORT_ORDER}" id="sortOrder">
                    <span class="listViewLoadingImageBlock hide modal noprint" id="loadingListViewModal">
                        <img class="listViewLoadingImage" src="{vimage_path('loading.gif')}" alt="no-image" title="{vtranslate('LBL_LOADING', $MODULE)}"/>
                        <p class="listViewLoadingMsg">{vtranslate('LBL_LOADING_LISTVIEW_CONTENTS', $MODULE)}........</p>
                    </span>
                    {assign var=WIDTHTYPE value=$CURRENT_USER_MODEL->get('rowheight')}
                    <table class="table table-bordered listViewEntriesTable">
                        <thead>
                            <tr class="listViewHeaders">
                                <th width="5%">
                                    <input type="checkbox" id="listViewEntriesMainCheckBox" />
                                </th>
                                <th nowrap>
                                    <a href="javascript:void(0);" id="portalname" class="portalListViewHeader" 
                                       data-nextsortorderval="{if $COLUMN_NAME eq 'portalname'}{$NEXT_SORT_ORDER}{else}ASC{/if}">{vtranslate('LBL_BOOKMARK_NAME', $MODULE)}
                                        &nbsp;&nbsp;{if $COLUMN_NAME eq 'portalname'}<img class="{$SORT_IMAGE} icon-white">{/if}</a>
                                </th>
                                <th nowrap>
                                    <a href="javascript:void(0);" id="portalurl" class="portalListViewHeader"
                                       data-nextsortorderval="{if $COLUMN_NAME eq 'portalurl'}{$NEXT_SORT_ORDER}{else}ASC{/if}">{vtranslate('LBL_BOOKMARK_URL', $MODULE)}
                                        &nbsp;&nbsp;{if $COLUMN_NAME eq 'portalurl'}<img class="{$SORT_IMAGE} icon-white">{/if}</a></a>
                                </th>
                                <th nowrap>
                                    <a href="javascript:void(0);" id="createdtime" class="portalListViewHeader"
                                       data-nextsortorderval="{if $COLUMN_NAME eq 'createdtime'}{$NEXT_SORT_ORDER}{else}ASC{/if}">{vtranslate('LBL_CREATED_ON', $MODULE)}
                                        &nbsp;&nbsp;{if $COLUMN_NAME eq 'createdtime'}<img class="{$SORT_IMAGE} icon-white">{/if}</a></a>
                                </th>
                                <th nowrap class="{$WIDTHTYPE}"></th>
                            </tr>
                        </thead>
                        <tbody>
                            {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 width="5%" class="{$WIDTHTYPE}">
                                        <input type="checkbox" value="{$RECORD_ID}" class="listViewEntriesCheckBox" />
                                    </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>
                                    <td nowrap class="{$WIDTHTYPE}">
                                        <div class="actions pull-right">
                                            <span class="actionImages">
                                                <i title="{vtranslate('LBL_EDIT', $MODULE)}" class="icon-pencil alignMiddle editRecord"></i>&nbsp;
                                                <i title="{vtranslate('LBL_DELETE', $MODULE)}" class="icon-trash alignMiddle deleteRecord"></i>
                                            </span>
                                        </div>
                                    </td>
                                </tr>
                            {/foreach}
                        </tbody>
                    </table>
                    {if $PAGING_INFO['recordCount'] eq '0'}
                        <table class="emptyRecordsDiv">
                            <tbody>
                                <tr>
                                    <td>
                                        {vtranslate('LBL_EQ_ZERO')} {vtranslate('LBL_BOOKMARKS', $MODULE)} {vtranslate('LBL_FOUND')}. {vtranslate('LBL_CREATE')} <a class="addBookmark">{vtranslate('LBL_BOOKMARK', $MODULE)}</a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    {/if}
                </div>
            </div>
        </div>
    </div>
    </div>
{/strip}