PageRenderTime 48ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/SugarCRM/cache/smarty/templates_c/%%78^786^7862BF8C%%ListViewGeneric.tpl.php

https://github.com/guolong/ggxw
PHP | 293 lines | 259 code | 34 blank | 0 comment | 58 complexity | 1d7862f8a1298218e5213f97439e21b1 MD5 | raw file
Possible License(s): AGPL-3.0, LGPL-2.1, MPL-2.0-no-copyleft-exception
  1. <?php /* Smarty version 2.6.11, created on 2012-10-26 16:40:55
  2. compiled from include/ListView/ListViewGeneric.tpl */ ?>
  3. <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
  4. smarty_core_load_plugins(array('plugins' => array(array('function', 'sugar_getjspath', 'include/ListView/ListViewGeneric.tpl', 43, false),array('function', 'counter', 'include/ListView/ListViewGeneric.tpl', 125, false),array('function', 'sugar_translate', 'include/ListView/ListViewGeneric.tpl', 139, false),array('function', 'sugar_getimage', 'include/ListView/ListViewGeneric.tpl', 145, false),array('function', 'sugar_ajax_url', 'include/ListView/ListViewGeneric.tpl', 213, false),array('function', 'sugar_evalcolumn_old', 'include/ListView/ListViewGeneric.tpl', 216, false),array('function', 'sugar_field', 'include/ListView/ListViewGeneric.tpl', 218, false),array('modifier', 'replace', 'include/ListView/ListViewGeneric.tpl', 78, false),array('modifier', 'default', 'include/ListView/ListViewGeneric.tpl', 128, false),array('modifier', 'lower', 'include/ListView/ListViewGeneric.tpl', 131, false),array('modifier', 'upper', 'include/ListView/ListViewGeneric.tpl', 134, false),)), $this); ?>
  5. <script type='text/javascript' src='<?php echo smarty_function_sugar_getjspath(array('file' => 'include/javascript/popup_helper.js'), $this);?>
  6. '></script>
  7. <script>
  8. <?php echo '
  9. $(document).ready(function(){
  10. $("ul.clickMenu").each(function(index, node){
  11. $(node).sugarActionMenu();
  12. });
  13. $(\'.selectActionsDisabled\').children().each(function(index) {
  14. $(this).attr(\'onclick\',\'\').unbind(\'click\');
  15. });
  16. var selectedTopValue = $("#selectCountTop").attr("value");
  17. if(typeof(selectedTopValue) != "undefined" && selectedTopValue != "0"){
  18. sugarListView.prototype.toggleSelected();
  19. }
  20. });
  21. '; ?>
  22. </script>
  23. <?php $this->assign('currentModule', $this->_tpl_vars['pageData']['bean']['moduleDir']); $this->assign('singularModule', $this->_tpl_vars['moduleListSingular'][$this->_tpl_vars['currentModule']]); $this->assign('moduleName', $this->_tpl_vars['moduleList'][$this->_tpl_vars['currentModule']]); $this->assign('hideTable', false); ?>
  24. <?php if (count ( $this->_tpl_vars['data'] ) == 0): ?>
  25. <?php $this->assign('hideTable', true); ?>
  26. <div class="list view listViewEmpty">
  27. <?php if ($this->_tpl_vars['displayEmptyDataMesssages']): ?>
  28. <?php if (strlen ( $this->_tpl_vars['query'] ) == 0): ?>
  29. <?php ob_start(); ?><a href="?module=<?php echo $this->_tpl_vars['pageData']['bean']['moduleDir']; ?>
  30. &action=EditView&return_module=<?php echo $this->_tpl_vars['pageData']['bean']['moduleDir']; ?>
  31. &return_action=DetailView"><?php echo $this->_tpl_vars['APP']['LBL_CREATE_BUTTON_LABEL']; ?>
  32. </a><?php $this->_smarty_vars['capture']['default'] = ob_get_contents(); $this->assign('createLink', ob_get_contents());ob_end_clean(); ?>
  33. <?php ob_start(); ?><a href="?module=Import&action=Step1&import_module=<?php echo $this->_tpl_vars['pageData']['bean']['moduleDir']; ?>
  34. &return_module=<?php echo $this->_tpl_vars['pageData']['bean']['moduleDir']; ?>
  35. &return_action=index"><?php echo $this->_tpl_vars['APP']['LBL_IMPORT']; ?>
  36. </a><?php $this->_smarty_vars['capture']['default'] = ob_get_contents(); $this->assign('importLink', ob_get_contents());ob_end_clean(); ?>
  37. <?php ob_start(); ?><a target="_blank" href='?module=Administration&action=SupportPortal&view=documentation&version=<?php echo $this->_tpl_vars['sugar_info']['sugar_version']; ?>
  38. &edition=<?php echo $this->_tpl_vars['sugar_info']['sugar_flavor']; ?>
  39. &lang=&help_module=<?php echo $this->_tpl_vars['currentModule']; ?>
  40. &help_action=&key='><?php echo $this->_tpl_vars['APP']['LBL_CLICK_HERE']; ?>
  41. </a><?php $this->_smarty_vars['capture']['default'] = ob_get_contents(); $this->assign('helpLink', ob_get_contents());ob_end_clean(); ?>
  42. <p class="msg">
  43. <?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['APP']['MSG_EMPTY_LIST_VIEW_NO_RESULTS'])) ? $this->_run_mod_handler('replace', true, $_tmp, "<item2>", $this->_tpl_vars['createLink']) : smarty_modifier_replace($_tmp, "<item2>", $this->_tpl_vars['createLink'])))) ? $this->_run_mod_handler('replace', true, $_tmp, "<item3>", $this->_tpl_vars['importLink']) : smarty_modifier_replace($_tmp, "<item3>", $this->_tpl_vars['importLink'])); ?>
  44. </p>
  45. <p class="submsg">
  46. <?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['APP']['MSG_EMPTY_LIST_VIEW_NO_RESULTS_SUBMSG'])) ? $this->_run_mod_handler('replace', true, $_tmp, "<item1>", $this->_tpl_vars['moduleName']) : smarty_modifier_replace($_tmp, "<item1>", $this->_tpl_vars['moduleName'])))) ? $this->_run_mod_handler('replace', true, $_tmp, "<item4>", $this->_tpl_vars['helpLink']) : smarty_modifier_replace($_tmp, "<item4>", $this->_tpl_vars['helpLink'])); ?>
  47. </p>
  48. <?php elseif ($this->_tpl_vars['query'] == "-advanced_search"): ?>
  49. <p class="msg">
  50. <?php echo $this->_tpl_vars['APP']['MSG_LIST_VIEW_NO_RESULTS_BASIC']; ?>
  51. </p>
  52. <?php else: ?>
  53. <p class="msg">
  54. <?php ob_start(); ?>"<?php echo $this->_tpl_vars['query']; ?>
  55. "<?php $this->_smarty_vars['capture']['default'] = ob_get_contents(); $this->assign('quotedQuery', ob_get_contents());ob_end_clean(); ?>
  56. <?php echo ((is_array($_tmp=$this->_tpl_vars['APP']['MSG_LIST_VIEW_NO_RESULTS'])) ? $this->_run_mod_handler('replace', true, $_tmp, "<item1>", $this->_tpl_vars['quotedQuery']) : smarty_modifier_replace($_tmp, "<item1>", $this->_tpl_vars['quotedQuery'])); ?>
  57. </p>
  58. <p class = "submsg">
  59. <a href="?module=<?php echo $this->_tpl_vars['pageData']['bean']['moduleDir']; ?>
  60. &action=EditView&return_module=<?php echo $this->_tpl_vars['pageData']['bean']['moduleDir']; ?>
  61. &return_action=DetailView">
  62. <?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['APP']['MSG_LIST_VIEW_NO_RESULTS_SUBMSG'])) ? $this->_run_mod_handler('replace', true, $_tmp, "<item1>", $this->_tpl_vars['quotedQuery']) : smarty_modifier_replace($_tmp, "<item1>", $this->_tpl_vars['quotedQuery'])))) ? $this->_run_mod_handler('replace', true, $_tmp, "<item2>", $this->_tpl_vars['singularModule']) : smarty_modifier_replace($_tmp, "<item2>", $this->_tpl_vars['singularModule'])); ?>
  63. </a>
  64. </p>
  65. <?php endif; ?>
  66. <?php else: ?>
  67. <p class="msg">
  68. <?php echo $this->_tpl_vars['APP']['LBL_NO_DATA']; ?>
  69. </p>
  70. <?php endif; ?>
  71. </div>
  72. <?php endif; echo $this->_tpl_vars['multiSelectData']; ?>
  73. <?php if ($this->_tpl_vars['hideTable'] == false): ?>
  74. <table cellpadding='0' cellspacing='0' width='100%' border='0' class='list view'>
  75. <?php $this->assign('link_select_id', 'selectLinkTop'); ?>
  76. <?php $this->assign('link_action_id', 'actionLinkTop'); ?>
  77. <?php $this->assign('actionsLink', $this->_tpl_vars['actionsLinkTop']); ?>
  78. <?php $this->assign('selectLink', $this->_tpl_vars['selectLinkTop']); ?>
  79. <?php $this->assign('action_menu_location', 'top'); ?>
  80. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  81. $this->_smarty_include(array('smarty_include_tpl_file' => 'include/ListView/ListViewPagination.tpl', 'smarty_include_vars' => array()));
  82. $this->_tpl_vars = $_smarty_tpl_vars;
  83. unset($_smarty_tpl_vars);
  84. ?>
  85. <tr height='20'>
  86. <?php if ($this->_tpl_vars['prerow']): ?>
  87. <td width='1%' class="td_alt">
  88. &nbsp;
  89. </td>
  90. <?php endif; ?>
  91. <?php if (! empty ( $this->_tpl_vars['quickViewLinks'] )): ?>
  92. <td class='td_alt' width='1%' style="padding: 0px;">&nbsp;</td>
  93. <?php endif; ?>
  94. <?php echo smarty_function_counter(array('start' => 0,'name' => 'colCounter','print' => false,'assign' => 'colCounter'), $this);?>
  95. <?php $_from = $this->_tpl_vars['displayColumns']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  96. foreach ($_from as $this->_tpl_vars['colHeader'] => $this->_tpl_vars['params']):
  97. ?>
  98. <th scope='col' width='<?php echo $this->_tpl_vars['params']['width']; ?>
  99. %'>
  100. <div style='white-space: normal;'width='100%' align='<?php echo ((is_array($_tmp=@$this->_tpl_vars['params']['align'])) ? $this->_run_mod_handler('default', true, $_tmp, 'left') : smarty_modifier_default($_tmp, 'left')); ?>
  101. '>
  102. <?php if (((is_array($_tmp=@$this->_tpl_vars['params']['sortable'])) ? $this->_run_mod_handler('default', true, $_tmp, true) : smarty_modifier_default($_tmp, true))): ?>
  103. <?php if ($this->_tpl_vars['params']['url_sort']): ?>
  104. <a href='<?php echo $this->_tpl_vars['pageData']['urls']['orderBy']; echo ((is_array($_tmp=((is_array($_tmp=@$this->_tpl_vars['params']['orderBy'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['colHeader']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['colHeader'])))) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
  105. ' class='listViewThLinkS1'>
  106. <?php else: ?>
  107. <?php if (((is_array($_tmp=((is_array($_tmp=@$this->_tpl_vars['params']['orderBy'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['colHeader']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['colHeader'])))) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)) == $this->_tpl_vars['pageData']['ordering']['orderBy']): ?>
  108. <a href='javascript:sListView.order_checks("<?php echo ((is_array($_tmp=@$this->_tpl_vars['pageData']['ordering']['sortOrder'])) ? $this->_run_mod_handler('default', true, $_tmp, 'ASCerror') : smarty_modifier_default($_tmp, 'ASCerror')); ?>
  109. ", "<?php echo ((is_array($_tmp=((is_array($_tmp=@$this->_tpl_vars['params']['orderBy'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['colHeader']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['colHeader'])))) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
  110. " , "<?php echo $this->_tpl_vars['pageData']['bean']['moduleDir']; echo '2_'; echo ((is_array($_tmp=$this->_tpl_vars['pageData']['bean']['objectName'])) ? $this->_run_mod_handler('upper', true, $_tmp) : smarty_modifier_upper($_tmp)); echo '_ORDER_BY'; ?>
  111. ")' class='listViewThLinkS1'>
  112. <?php else: ?>
  113. <a href='javascript:sListView.order_checks("ASC", "<?php echo ((is_array($_tmp=((is_array($_tmp=@$this->_tpl_vars['params']['orderBy'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['colHeader']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['colHeader'])))) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
  114. " , "<?php echo $this->_tpl_vars['pageData']['bean']['moduleDir']; echo '2_'; echo ((is_array($_tmp=$this->_tpl_vars['pageData']['bean']['objectName'])) ? $this->_run_mod_handler('upper', true, $_tmp) : smarty_modifier_upper($_tmp)); echo '_ORDER_BY'; ?>
  115. ")' class='listViewThLinkS1'>
  116. <?php endif; ?>
  117. <?php endif; ?>
  118. <?php echo smarty_function_sugar_translate(array('label' => $this->_tpl_vars['params']['label'],'module' => $this->_tpl_vars['pageData']['bean']['moduleDir']), $this);?>
  119. &nbsp;&nbsp;
  120. <?php if (((is_array($_tmp=((is_array($_tmp=@$this->_tpl_vars['params']['orderBy'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['colHeader']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['colHeader'])))) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)) == $this->_tpl_vars['pageData']['ordering']['orderBy']): ?>
  121. <?php if ($this->_tpl_vars['pageData']['ordering']['sortOrder'] == 'ASC'): ?>
  122. <?php ob_start(); ?>arrow_down.<?php echo $this->_tpl_vars['arrowExt']; $this->_smarty_vars['capture']['default'] = ob_get_contents(); $this->assign('imageName', ob_get_contents());ob_end_clean(); ?>
  123. <?php ob_start(); echo smarty_function_sugar_translate(array('label' => 'LBL_ALT_SORT_DESC'), $this); $this->_smarty_vars['capture']['default'] = ob_get_contents(); $this->assign('alt_sort', ob_get_contents());ob_end_clean(); ?>
  124. <?php echo smarty_function_sugar_getimage(array('name' => $this->_tpl_vars['imageName'],'attr' => 'align="absmiddle" border="0" ','alt' => ($this->_tpl_vars['alt_sort'])), $this);?>
  125. <?php else: ?>
  126. <?php ob_start(); ?>arrow_up.<?php echo $this->_tpl_vars['arrowExt']; $this->_smarty_vars['capture']['default'] = ob_get_contents(); $this->assign('imageName', ob_get_contents());ob_end_clean(); ?>
  127. <?php ob_start(); echo smarty_function_sugar_translate(array('label' => 'LBL_ALT_SORT_ASC'), $this); $this->_smarty_vars['capture']['default'] = ob_get_contents(); $this->assign('alt_sort', ob_get_contents());ob_end_clean(); ?>
  128. <?php echo smarty_function_sugar_getimage(array('name' => $this->_tpl_vars['imageName'],'attr' => 'align="absmiddle" border="0" ','alt' => ($this->_tpl_vars['alt_sort'])), $this);?>
  129. <?php endif; ?>
  130. <?php else: ?>
  131. <?php ob_start(); ?>arrow.<?php echo $this->_tpl_vars['arrowExt']; $this->_smarty_vars['capture']['default'] = ob_get_contents(); $this->assign('imageName', ob_get_contents());ob_end_clean(); ?>
  132. <?php ob_start(); echo smarty_function_sugar_translate(array('label' => 'LBL_ALT_SORT'), $this); $this->_smarty_vars['capture']['default'] = ob_get_contents(); $this->assign('alt_sort', ob_get_contents());ob_end_clean(); ?>
  133. <?php echo smarty_function_sugar_getimage(array('name' => $this->_tpl_vars['imageName'],'attr' => 'align="absmiddle" border="0" ','alt' => ($this->_tpl_vars['alt_sort'])), $this);?>
  134. <?php endif; ?>
  135. </a>
  136. <?php else: ?>
  137. <?php if (! isset ( $this->_tpl_vars['params']['noHeader'] ) || $this->_tpl_vars['params']['noHeader'] == false): ?>
  138. <?php echo smarty_function_sugar_translate(array('label' => $this->_tpl_vars['params']['label'],'module' => $this->_tpl_vars['pageData']['bean']['moduleDir']), $this);?>
  139. <?php endif; ?>
  140. <?php endif; ?>
  141. </div>
  142. </th>
  143. <?php echo smarty_function_counter(array('name' => 'colCounter'), $this);?>
  144. <?php endforeach; endif; unset($_from); ?>
  145. <td class='td_alt' nowrap="nowrap" width='1%'>&nbsp;</td>
  146. </tr>
  147. <?php echo smarty_function_counter(array('start' => $this->_tpl_vars['pageData']['offsets']['current'],'print' => false,'assign' => 'offset','name' => 'offset'), $this);?>
  148. <?php $_from = $this->_tpl_vars['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['rowIteration'] = array('total' => count($_from), 'iteration' => 0);
  149. if ($this->_foreach['rowIteration']['total'] > 0):
  150. foreach ($_from as $this->_tpl_vars['id'] => $this->_tpl_vars['rowData']):
  151. $this->_foreach['rowIteration']['iteration']++;
  152. ?>
  153. <?php echo smarty_function_counter(array('name' => 'offset','print' => false), $this);?>
  154. <?php $this->assign('scope_row', true); ?>
  155. <?php if ((1 & $this->_foreach['rowIteration']['iteration'])): ?>
  156. <?php $this->assign('_rowColor', $this->_tpl_vars['rowColor'][0]); ?>
  157. <?php else: ?>
  158. <?php $this->assign('_rowColor', $this->_tpl_vars['rowColor'][1]); ?>
  159. <?php endif; ?>
  160. <tr height='20' class='<?php echo $this->_tpl_vars['_rowColor']; ?>
  161. S1'>
  162. <?php if ($this->_tpl_vars['prerow']): ?>
  163. <td width='1%' class='nowrap'>
  164. <?php if (! $this->_tpl_vars['is_admin'] && is_admin_for_user && $this->_tpl_vars['rowData']['IS_ADMIN'] == 1): ?>
  165. <input type='checkbox' disabled="disabled" class='checkbox' value='<?php echo $this->_tpl_vars['rowData']['ID']; ?>
  166. '>
  167. <?php else: ?>
  168. <input title="<?php echo smarty_function_sugar_translate(array('label' => 'LBL_SELECT_THIS_ROW_TITLE'), $this);?>
  169. " onclick='sListView.check_item(this, document.MassUpdate)' type='checkbox' class='checkbox' name='mass[]' value='<?php echo $this->_tpl_vars['rowData']['ID']; ?>
  170. '>
  171. <?php endif; ?>
  172. </td>
  173. <?php endif; ?>
  174. <?php if (! empty ( $this->_tpl_vars['quickViewLinks'] )): ?>
  175. <?php ob_start(); if ($this->_tpl_vars['params']['dynamic_module']): echo $this->_tpl_vars['rowData'][$this->_tpl_vars['params']['dynamic_module']]; else: echo $this->_tpl_vars['pageData']['bean']['moduleDir']; endif; $this->_smarty_vars['capture']['default'] = ob_get_contents(); $this->assign('linkModule', ob_get_contents());ob_end_clean(); ?>
  176. <?php ob_start(); if ($this->_tpl_vars['act']): echo $this->_tpl_vars['act']; else: ?>EditView<?php endif; $this->_smarty_vars['capture']['default'] = ob_get_contents(); $this->assign('action', ob_get_contents());ob_end_clean(); ?>
  177. <td width='2%' nowrap>
  178. <?php if ($this->_tpl_vars['pageData']['rowAccess'][$this->_tpl_vars['id']]['edit']): ?>
  179. <a title='<?php echo $this->_tpl_vars['editLinkString']; ?>
  180. ' id="edit-<?php echo $this->_tpl_vars['rowData']['ID']; ?>
  181. "
  182. href="index.php?module=<?php echo $this->_tpl_vars['linkModule']; ?>
  183. &offset=<?php echo $this->_tpl_vars['offset']; ?>
  184. &stamp=<?php echo $this->_tpl_vars['pageData']['stamp']; ?>
  185. &return_module=<?php echo $this->_tpl_vars['linkModule']; ?>
  186. &action=<?php echo $this->_tpl_vars['action']; ?>
  187. &record=<?php echo $this->_tpl_vars['rowData']['ID']; ?>
  188. "
  189. >
  190. <?php ob_start(); echo smarty_function_sugar_translate(array('label' => 'LNK_EDIT'), $this); $this->_smarty_vars['capture']['tmp1'] = ob_get_contents(); $this->assign('alt_edit', ob_get_contents());ob_end_clean(); ?>
  191. <?php echo smarty_function_sugar_getimage(array('name' => "edit_inline.gif",'attr' => 'border="0" ','alt' => ($this->_tpl_vars['alt_edit'])), $this);?>
  192. </a>
  193. <?php endif; ?>
  194. </td>
  195. <?php endif; ?>
  196. <?php echo smarty_function_counter(array('start' => 0,'name' => 'colCounter','print' => false,'assign' => 'colCounter'), $this);?>
  197. <?php $_from = $this->_tpl_vars['displayColumns']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  198. foreach ($_from as $this->_tpl_vars['col'] => $this->_tpl_vars['params']):
  199. ?>
  200. <?php echo '<td '; if ($this->_tpl_vars['scope_row']): echo ' scope=\'row\' '; endif; echo ' align=\''; echo ((is_array($_tmp=@$this->_tpl_vars['params']['align'])) ? $this->_run_mod_handler('default', true, $_tmp, 'left') : smarty_modifier_default($_tmp, 'left')); echo '\' valign="top" class="'; if (( $this->_tpl_vars['params']['type'] == 'teamset' )): echo 'nowrap'; endif; echo ''; if (preg_match ( '/PHONE/' , $this->_tpl_vars['col'] )): echo ' phone'; endif; echo '">'; if ($this->_tpl_vars['col'] == 'NAME' || $this->_tpl_vars['params']['bold']): echo '<b>'; endif; echo ''; if ($this->_tpl_vars['params']['link'] && ! $this->_tpl_vars['params']['customCode']): echo ''; ob_start(); echo ''; if ($this->_tpl_vars['params']['dynamic_module']): echo ''; echo $this->_tpl_vars['rowData'][$this->_tpl_vars['params']['dynamic_module']]; echo ''; else: echo ''; echo ((is_array($_tmp=@$this->_tpl_vars['params']['module'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['pageData']['bean']['moduleDir']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['pageData']['bean']['moduleDir'])); echo ''; endif; echo ''; $this->_smarty_vars['capture']['default'] = ob_get_contents(); $this->assign('linkModule', ob_get_contents());ob_end_clean(); echo ''; ob_start(); echo ''; if ($this->_tpl_vars['act']): echo ''; echo $this->_tpl_vars['act']; echo ''; else: echo 'DetailView'; endif; echo ''; $this->_smarty_vars['capture']['default'] = ob_get_contents(); $this->assign('action', ob_get_contents());ob_end_clean(); echo ''; ob_start(); echo ''; echo ((is_array($_tmp=@$this->_tpl_vars['rowData'][$this->_tpl_vars['params']['id']])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['rowData']['ID']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['rowData']['ID'])); echo ''; $this->_smarty_vars['capture']['default'] = ob_get_contents(); $this->assign('record', ob_get_contents());ob_end_clean(); echo ''; ob_start(); echo 'index.php?module='; echo $this->_tpl_vars['linkModule']; echo '&offset='; echo $this->_tpl_vars['offset']; echo '&stamp='; echo $this->_tpl_vars['pageData']['stamp']; echo '&return_module='; echo $this->_tpl_vars['linkModule']; echo '&action='; echo $this->_tpl_vars['action']; echo '&record='; echo $this->_tpl_vars['record']; echo ''; $this->_smarty_vars['capture']['default'] = ob_get_contents(); $this->assign('url', ob_get_contents());ob_end_clean(); echo '<'; echo ((is_array($_tmp=@$this->_tpl_vars['pageData']['tag'][$this->_tpl_vars['id']][$this->_tpl_vars['params']['ACLTag']])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['pageData']['tag'][$this->_tpl_vars['id']]['MAIN']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['pageData']['tag'][$this->_tpl_vars['id']]['MAIN'])); echo ' href="'; echo smarty_function_sugar_ajax_url(array('url' => $this->_tpl_vars['url']), $this); echo '">'; endif; echo ''; if ($this->_tpl_vars['params']['customCode']): echo ''; echo smarty_function_sugar_evalcolumn_old(array('var' => $this->_tpl_vars['params']['customCode'],'rowData' => $this->_tpl_vars['rowData']), $this); echo ''; else: echo ''; echo smarty_function_sugar_field(array('parentFieldArray' => $this->_tpl_vars['rowData'],'vardef' => $this->_tpl_vars['params'],'displayType' => 'ListView','field' => $this->_tpl_vars['col']), $this); echo ''; endif; echo ''; if (empty ( $this->_tpl_vars['rowData'][$this->_tpl_vars['col']] ) && empty ( $this->_tpl_vars['params']['customCode'] )): echo '&nbsp;'; endif; echo ''; if ($this->_tpl_vars['params']['link'] && ! $this->_tpl_vars['params']['customCode']): echo '</'; echo ((is_array($_tmp=@$this->_tpl_vars['pageData']['tag'][$this->_tpl_vars['id']][$this->_tpl_vars['params']['ACLTag']])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['pageData']['tag'][$this->_tpl_vars['id']]['MAIN']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['pageData']['tag'][$this->_tpl_vars['id']]['MAIN'])); echo '>'; endif; echo ''; if ($this->_tpl_vars['col'] == 'NAME' || $this->_tpl_vars['params']['bold']): echo '</b>'; endif; echo '</td>'; ?>
  201. <?php $this->assign('scope_row', false); ?>
  202. <?php echo smarty_function_counter(array('name' => 'colCounter'), $this);?>
  203. <?php endforeach; endif; unset($_from); ?>
  204. <td align='right'><?php echo $this->_tpl_vars['pageData']['additionalDetails'][$this->_tpl_vars['id']]; ?>
  205. </td>
  206. </tr>
  207. <?php endforeach; else: ?>
  208. <tr height='20' class='<?php echo $this->_tpl_vars['rowColor'][0]; ?>
  209. S1'>
  210. <td colspan="<?php echo $this->_tpl_vars['colCount']; ?>
  211. ">
  212. <em><?php echo $this->_tpl_vars['APP']['LBL_NO_DATA']; ?>
  213. </em>
  214. </td>
  215. </tr>
  216. <?php endif; unset($_from); ?>
  217. <?php $this->assign('link_select_id', 'selectLinkBottom'); ?>
  218. <?php $this->assign('link_action_id', 'actionLinkBottom'); ?>
  219. <?php $this->assign('selectLink', $this->_tpl_vars['selectLinkBottom']); ?>
  220. <?php $this->assign('actionsLink', $this->_tpl_vars['actionsLinkBottom']); ?>
  221. <?php $this->assign('action_menu_location', 'bottom'); ?>
  222. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  223. $this->_smarty_include(array('smarty_include_tpl_file' => 'include/ListView/ListViewPagination.tpl', 'smarty_include_vars' => array()));
  224. $this->_tpl_vars = $_smarty_tpl_vars;
  225. unset($_smarty_tpl_vars);
  226. ?>
  227. </table>
  228. <?php endif; if ($this->_tpl_vars['contextMenus']): ?>
  229. <script type="text/javascript">
  230. <?php echo $this->_tpl_vars['contextMenuScript']; ?>
  231. <?php echo '
  232. function lvg_nav(m,id,act,offset,t){
  233. if(t.href.search(/#/) < 0){return;}
  234. else{
  235. if(act==\'pte\'){
  236. act=\'ProjectTemplatesEditView\';
  237. }
  238. else if(act==\'d\'){
  239. act=\'DetailView\';
  240. }else if( act ==\'ReportsWizard\'){
  241. act = \'ReportsWizard\';
  242. }else{
  243. act=\'EditView\';
  244. }
  245. '; ?>
  246. url = 'index.php?module='+m+'&offset=' + offset + '&stamp=<?php echo $this->_tpl_vars['pageData']['stamp']; ?>
  247. &return_module='+m+'&action='+act+'&record='+id;
  248. t.href=url;
  249. <?php echo '
  250. }
  251. }'; ?>
  252. <?php echo '
  253. function lvg_dtails(id){'; ?>
  254. return SUGAR.util.getAdditionalDetails( '<?php echo ((is_array($_tmp=@$this->_tpl_vars['pageData']['bean']['moduleDir'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['params']['module']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['params']['module'])); ?>
  255. ',id, 'adspan_'+id);<?php echo '}'; ?>
  256. </script>
  257. <?php endif; ?>