[ Index ]

PHP Cross Reference of vtigercrm-6.1.0

title

Body

[close]

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

   1  {************************************************************************************
   2   * The contents of this file are subject to the vtiger CRM Public License Version 1.0
   3   * ("License"); You may not use this file except in compliance with the License
   4   * The Original Code is:  vtiger CRM Open Source
   5   * The Initial Developer of the Original Code is vtiger.
   6   * Portions created by vtiger are Copyright (C) vtiger.
   7   * All Rights Reserved.
   8   *************************************************************************************}
   9  <div style='padding:4%;padding-top: 0;margin-bottom: 2%'>
  10  
  11      {* Comupte the nubmer of columns required *}
  12      {assign var="SPANSIZE" value=12}
  13      {if $MINILIST_WIDGET_MODEL->getHeaderCount()}
  14          {assign var="SPANSIZE" value=12/$MINILIST_WIDGET_MODEL->getHeaderCount()}
  15      {/if}
  16  
  17      <div class="row-fluid" style="padding:5px">
  18          {foreach item=FIELD from=$MINILIST_WIDGET_MODEL->getHeaders()}
  19          <div class="span{$SPANSIZE}"><strong>{vtranslate($FIELD->get('label'),$BASE_MODULE)}</strong></div>
  20          {/foreach}
  21      </div>
  22  
  23      {assign var="MINILIST_WIDGET_RECORDS" value=$MINILIST_WIDGET_MODEL->getRecords()}
  24  
  25      {foreach item=RECORD from=$MINILIST_WIDGET_RECORDS}
  26      <div class="row-fluid" style="padding:5px">
  27          {foreach item=FIELD from=$MINILIST_WIDGET_MODEL->getHeaders() name="minilistWidgetModelRowHeaders"}
  28              <div class="span{$SPANSIZE} textOverflowEllipsis" title="{strip_tags($RECORD->get($FIELD->get('name')))}">
  29                  {if $smarty.foreach.minilistWidgetModelRowHeaders.last}
  30                      <a href="{$RECORD->getDetailViewUrl()}" class="pull-right"><i title="{vtranslate('LBL_SHOW_COMPLETE_DETAILS',$MODULE_NAME)}" class="icon-th-list alignMiddle"></i></a>
  31                  {/if}
  32                  {$RECORD->get($FIELD->get('name'))}&nbsp;
  33              </div>
  34          {/foreach}
  35      </div>
  36      {/foreach}
  37  
  38      {if count($MINILIST_WIDGET_RECORDS) >= $MINILIST_WIDGET_MODEL->getRecordLimit()}
  39      <div class="row-fluid" style="padding:5px;padding-bottom:10px;">
  40          <a class="pull-right" href="index.php?module={$MINILIST_WIDGET_MODEL->getTargetModule()}&view=List&mode=showListViewRecords&viewname={$WIDGET->get('filterid')}">{vtranslate('LBL_MORE')}</a>
  41      </div>
  42      {/if}
  43  
  44  </div>


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