[ Index ]

PHP Cross Reference of vtigercrm-6.1.0

title

Body

[close]

/layouts/vlayout/modules/Vtiger/ -> FindDuplicateContents.tpl (source)

   1  {*<!--
   2  /*********************************************************************************

   3    ** The contents of this file are subject to the vtiger CRM Public License Version 1.0

   4     * ("License"); You may not use this file except in compliance with the License

   5     * The Original Code is:  vtiger CRM Open Source

   6     * The Initial Developer of the Original Code is vtiger.

   7     * Portions created by vtiger are Copyright (C) vtiger.

   8     * All Rights Reserved.

   9    *

  10   ********************************************************************************/
  11  -->*}
  12  <input type="hidden" id="listViewEntriesCount" value="{$LISTVIEW_ENTRIES_COUNT}" />
  13  <input type="hidden" id="pageStartRange" value="{$PAGING_MODEL->getRecordStartRange()}" />
  14  <input type="hidden" id="pageEndRange" value="{$PAGING_MODEL->getRecordEndRange()}" />
  15  <input type="hidden" id="previousPageExist" value="{$PAGING_MODEL->isPrevPageExists()}" />
  16  <input type="hidden" id="nextPageExist" value="{$PAGING_MODEL->isNextPageExists()}" />
  17  <input type="hidden" id="pageNumber" value= "{$PAGE_NUMBER}"/>
  18  <input type="hidden" id="pageLimit" value= "{$PAGING_MODEL->getPageLimit()}" />
  19  <input type="hidden" id="noOfEntries" value= "{$LISTVIEW_ENTRIES_COUNT}" />
  20  <input type="hidden" id="duplicateSearchFields" value={Zend_Json::encode($DUPLICATE_SEARCH_FIELDS)} />
  21  <input type="hidden" id="viewName" value="{$VIEW_NAME}" />
  22  <input type="hidden" id="totalCount" value="{$TOTAL_COUNT}" />
  23  <input type='hidden' id='ignoreEmpty' value="{$IGNORE_EMPTY}" />
  24  
  25  <div id="selectAllMsgDiv" class="alert-block msgDiv">
  26      <strong><a id="selectAllMsg">{vtranslate('LBL_SELECT_ALL',$MODULE)}&nbsp;{vtranslate($MODULE ,$MODULE)}&nbsp;(<span id="totalRecordsCount"></span>)</a></strong>
  27  </div>
  28  <div id="deSelectAllMsgDiv" class="alert-block msgDiv">
  29      <strong><a id="deSelectAllMsg">{vtranslate('LBL_DESELECT_ALL_RECORDS',$MODULE)}</a></strong>
  30  </div>
  31  <div class="contents-topscroll">
  32      <div class="topscroll-div">
  33          &nbsp;
  34       </div>
  35  </div>
  36  <div class="listViewEntriesDiv contents-bottomscroll">
  37      <table class="table-bordered row-fluid textAlignCenter">
  38          <thead>
  39              <tr class="listViewHeaders">
  40                  <th width="5%">
  41                      <input type="checkbox" id="listViewEntriesMainCheckBox" />
  42                  </th>
  43                  {foreach item=LISTVIEW_HEADER from=$LISTVIEW_HEADERS}
  44                  <th nowrap {*if $LISTVIEW_HEADER@last} colspan="2" {/if*}>
  45                      <a class="listViewHeaderValues">{vtranslate($LISTVIEW_HEADER->get('label'), $MODULE)}</a>
  46                  </th>
  47                  {/foreach}
  48                  <th>{vtranslate('LBL_MERGE_SELECT', $MODULE)}</th>
  49                  <th>{vtranslate('LBL_ACTION', $MODULE)}</th>
  50              </tr>
  51          </thead>
  52          {assign var=mergeRecordCount value=0}
  53          {foreach item=LISTVIEW_ENTRY key=GROUP_NAME from=$LISTVIEW_ENTRIES}
  54              {assign var=groupCount value=$LISTVIEW_ENTRY|@sizeof}
  55              {assign var=recordCount value=0}
  56              {foreach item=RECORD from=$LISTVIEW_ENTRY name=listview}
  57                  <tr class="listViewEntries" data-id='{$RECORD.recordid}' id="{$MODULE}_listView_row_{$smarty.foreach.listview.index+1}">
  58                      <td width="5%" style='border-bottom:1px solid #DDD;'>
  59                          <input type="checkbox" value="{$RECORD.recordid}" class="listViewEntriesCheckBox"/>
  60                      </td>
  61                      {assign var=sameRowValues value=true}
  62                      {foreach item=LISTVIEW_HEADER from=$LISTVIEW_HEADERS}
  63                      {if $LISTVIEW_HEADER->get('name') eq 'recordid'}
  64                          <td nowrap style='border-bottom:1px solid #DDD;'>
  65                              <a href="{$MODULE_MODEL->getDetailViewUrl($RECORD.recordid)}">{$RECORD[$LISTVIEW_HEADER->get('name')]}</a>
  66                          </td>
  67                      {else}
  68                          <td nowrap style='border-bottom:1px solid #DDD;'>
  69                              {$LISTVIEW_HEADER->getDisplayValue($RECORD[$LISTVIEW_HEADER->get('column')], $RECORD.recordid)}
  70                          </td>
  71                      {/if}
  72                      {/foreach}
  73                      <td style='border-bottom:1px solid #DDD;'>
  74                          <input type="checkbox" data-id='{$RECORD.recordid}' name="mergeRecord" data-group="{$GROUP_NAME}"/>
  75                      </td>
  76                      {if $recordCount eq 0}
  77                      <td align='center' rowspan="{$groupCount}" style="border-left:1px solid #DDD;border-bottom:1px solid #DDD;vertical-align: middle;text-align: center">
  78                          <input type="button" value="{vtranslate("LBL_MERGE",'Vtiger')}" name="merge" class="btn btn-success" data-group="{$GROUP_NAME}">
  79                      </td>
  80                      {/if}
  81                      {assign var=recordCount value=$recordCount+1}
  82                  </tr>
  83              {/foreach}
  84          {/foreach}
  85      </table>
  86      {if $LISTVIEW_ENTRIES_COUNT eq '0'}
  87      <table class="emptyRecordsDiv">
  88          <tbody>
  89              <tr>
  90                  <td>
  91                      {assign var=SINGLE_MODULE value="SINGLE_$MODULE"}
  92                      {vtranslate('LBL_NO_DUPLICATED_FOUND', $MODULE)}
  93                  </td>
  94              </tr>
  95          </tbody>
  96      </table>
  97      {/if}
  98      </div>


Generated: Fri Nov 28 20:08:37 2014 Cross-referenced by PHPXref 0.7.1