PageRenderTime 28ms CodeModel.GetById 1ms RepoModel.GetById 0ms app.codeStats 0ms

/SugarCRM/cache/smarty/templates_c/%%7A^7A5^7A5A7923%%Popup.tpl.php

https://github.com/guolong/ggxw
PHP | 446 lines | 396 code | 50 blank | 0 comment | 69 complexity | d251701f52df68c0d01775af44622084 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-27 21:49:21
  2. compiled from cache/modules/Users/Popup.tpl */ ?>
  3. <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
  4. smarty_core_load_plugins(array('plugins' => array(array('function', 'sugar_getjspath', 'cache/modules/Users/Popup.tpl', 8, false),array('function', 'sugar_getimage', 'cache/modules/Users/Popup.tpl', 72, false),array('function', 'sugar_action_menu', 'cache/modules/Users/Popup.tpl', 125, false),array('function', 'counter', 'cache/modules/Users/Popup.tpl', 130, false),array('function', 'sugar_translate', 'cache/modules/Users/Popup.tpl', 135, false),array('function', 'sugar_evalcolumn_old', 'cache/modules/Users/Popup.tpl', 186, false),array('function', 'sugar_currency_format', 'cache/modules/Users/Popup.tpl', 188, false),array('function', 'multienum_to_array', 'cache/modules/Users/Popup.tpl', 203, false),array('function', 'sugar_field', 'cache/modules/Users/Popup.tpl', 209, false),array('modifier', 'default', 'cache/modules/Users/Popup.tpl', 133, false),array('modifier', 'lower', 'cache/modules/Users/Popup.tpl', 135, false),)), $this); ?>
  5. <?php $this->assign('alt_start', $this->_tpl_vars['navStrings']['start']); $this->assign('alt_next', $this->_tpl_vars['navStrings']['next']); $this->assign('alt_prev', $this->_tpl_vars['navStrings']['previous']); $this->assign('alt_end', $this->_tpl_vars['navStrings']['end']); ?>
  6. <script type="text/javascript" src="<?php echo smarty_function_sugar_getjspath(array('file' => 'include/javascript/sugar_3.js'), $this);?>
  7. "></script>
  8. <script type="text/javascript" src="<?php echo smarty_function_sugar_getjspath(array('file' => 'include/javascript/popup_helper.js'), $this);?>
  9. "></script>
  10. <script type="text/javascript">
  11. <?php echo $this->_tpl_vars['ASSOCIATED_JAVASCRIPT_DATA']; ?>
  12. <?php echo '
  13. function clearAll() {
  14. for(i=0; i < document.popup_query_form.length; i++) {
  15. if(/select/i.test(document.popup_query_form.elements[i].type)) {
  16. for(x=0; x < document.popup_query_form.elements[i].options.length; x++) {
  17. document.popup_query_form.elements[i].options[x].removeAttribute(\'selected\');
  18. }
  19. }
  20. }
  21. }
  22. '; ?>
  23. </script>
  24. <?php echo $this->_tpl_vars['SEARCH_FORM_HEADER']; ?>
  25. <table cellpadding="0" cellspacing="0" border="0" width="100%" class="edit view">
  26. <tr>
  27. <td>
  28. <form action="index.php" method="post" name="popup_query_form" id="popup_query_form">
  29. <table width="100%" cellpadding="0" cellspacing="0" border="0">
  30. <tr><td>
  31. <?php echo $this->_tpl_vars['searchForm']; ?>
  32. </td></tr>
  33. <tr>
  34. <td>
  35. <input type="hidden" name="module" value="<?php echo $this->_tpl_vars['module']; ?>
  36. " />
  37. <input type="hidden" name="action" value="Popup" />
  38. <input type="hidden" name="query" value="true" />
  39. <input type="hidden" name="func_name" value="" />
  40. <input type="hidden" name="request_data" value="<?php echo $this->_tpl_vars['request_data']; ?>
  41. " />
  42. <input type="hidden" name="populate_parent" value="false" />
  43. <input type="hidden" name="hide_clear_button" value="true" />
  44. <input type="hidden" name="record_id" value="" />
  45. <?php echo $this->_tpl_vars['MODE']; ?>
  46. <input type="submit" name="button" class="button" id="search_form_submit"
  47. title="<?php echo $this->_tpl_vars['APP']['LBL_SEARCH_BUTTON_TITLE']; ?>
  48. "
  49. value="<?php echo $this->_tpl_vars['APP']['LBL_SEARCH_BUTTON_LABEL']; ?>
  50. " />
  51. <input type="reset" onclick="SUGAR.searchForm.clear_form(this.form); return false;" class="button" id="search_form_clear"
  52. title="<?php echo $this->_tpl_vars['APP']['LBL_CLEAR_BUTTON_TITLE']; ?>
  53. "
  54. value="<?php echo $this->_tpl_vars['APP']['LBL_CLEAR_BUTTON_LABEL']; ?>
  55. "/>
  56. </td>
  57. <td align='right'></td>
  58. </tr>
  59. </table>
  60. </form>
  61. </td>
  62. </tr>
  63. </table>
  64. <?php echo $this->_tpl_vars['jsLang']; ?>
  65. <?php echo $this->_tpl_vars['LIST_HEADER']; ?>
  66. <?php if ($this->_tpl_vars['should_process']): ?>
  67. <table cellpadding='0' cellspacing='0' width='100%' border='0' class='list view'>
  68. <tr class='pagination' role='presentation'>
  69. <td colspan='<?php echo $this->_tpl_vars['colCount']+1; ?>
  70. ' align='right'>
  71. <table border='0' cellpadding='0' cellspacing='0' width='100%'>
  72. <tr>
  73. <td align='left' >
  74. &nbsp;</td>
  75. <td align='right' nowrap='nowrap'>
  76. <?php if ($this->_tpl_vars['pageData']['urls']['startPage']): ?>
  77. <button type='button' id='popupViewStartButton' title='<?php echo $this->_tpl_vars['navStrings']['start']; ?>
  78. ' class='button' <?php if ($this->_tpl_vars['prerow']): ?>onclick='return sListView.save_checks(0, "<?php echo $this->_tpl_vars['moduleString']; ?>
  79. ");'<?php else: ?> onClick='location.href="<?php echo $this->_tpl_vars['pageData']['urls']['startPage']; ?>
  80. "' <?php endif; ?>>
  81. <?php echo smarty_function_sugar_getimage(array('name' => 'start','ext' => ".png",'other_attributes' => 'align="absmiddle" border="0" ','alt' => ($this->_tpl_vars['alt_start'])), $this);?>
  82. </button>
  83. <!--<a href='<?php echo $this->_tpl_vars['pageData']['urls']['startPage']; ?>
  84. ' <?php if ($this->_tpl_vars['prerow']): ?>onclick="return sListView.save_checks(0, '<?php echo $this->_tpl_vars['moduleString']; ?>
  85. ')"<?php endif; ?> ><?php echo smarty_function_sugar_getimage(array('name' => 'start','ext' => ".png",'alt' => $this->_tpl_vars['navStrings']['start'],'other_attributes' => 'align="absmiddle" border="0" '), $this);?>
  86. &nbsp;<?php echo $this->_tpl_vars['navStrings']['start']; ?>
  87. </a>&nbsp;-->
  88. <?php else: ?>
  89. <button type='button' id='popupViewStartButton' title='<?php echo $this->_tpl_vars['navStrings']['start']; ?>
  90. ' class='button' disabled>
  91. <?php echo smarty_function_sugar_getimage(array('name' => 'start_off','ext' => ".png",'alt' => $this->_tpl_vars['navStrings']['start'],'other_attributes' => 'align="absmiddle" border="0" '), $this);?>
  92. </button>
  93. <!--<?php echo smarty_function_sugar_getimage(array('name' => 'start_off','ext' => ".png",'alt' => $this->_tpl_vars['navStrings']['start'],'other_attributes' => 'align="absmiddle" border="0" '), $this);?>
  94. &nbsp;<?php echo $this->_tpl_vars['navStrings']['start']; ?>
  95. &nbsp;&nbsp;-->
  96. <?php endif; ?>
  97. <?php if ($this->_tpl_vars['pageData']['urls']['prevPage']): ?>
  98. <button type='button' id='popupViewPrevButton' title='<?php echo $this->_tpl_vars['navStrings']['previous']; ?>
  99. ' class='button' <?php if ($this->_tpl_vars['prerow']): ?>onclick='return sListView.save_checks(<?php echo $this->_tpl_vars['pageData']['offsets']['prev']; ?>
  100. , "<?php echo $this->_tpl_vars['moduleString']; ?>
  101. ")' <?php else: ?> onClick='location.href="<?php echo $this->_tpl_vars['pageData']['urls']['prevPage']; ?>
  102. "'<?php endif; ?>>
  103. <?php echo smarty_function_sugar_getimage(array('name' => 'previous','ext' => ".png",'other_attributes' => 'align="absmiddle" border="0" ','alt' => ($this->_tpl_vars['alt_prev'])), $this);?>
  104. </button>
  105. <!--<a href='<?php echo $this->_tpl_vars['pageData']['urls']['prevPage']; ?>
  106. ' <?php if ($this->_tpl_vars['prerow']): ?>onclick="return sListView.save_checks(<?php echo $this->_tpl_vars['pageData']['offsets']['prev']; ?>
  107. , '<?php echo $this->_tpl_vars['moduleString']; ?>
  108. ')"<?php endif; ?> ><?php echo smarty_function_sugar_getimage(array('name' => 'previous','ext' => ".png",'alt' => $this->_tpl_vars['navStrings']['previous'],'other_attributes' => 'align="absmiddle" border="0" '), $this);?>
  109. &nbsp;<?php echo $this->_tpl_vars['navStrings']['previous']; ?>
  110. </a>&nbsp;-->
  111. <?php else: ?>
  112. <button type='button' id='popupViewPrevButton' class='button' disabled title='<?php echo $this->_tpl_vars['navStrings']['previous']; ?>
  113. '>
  114. <?php echo smarty_function_sugar_getimage(array('name' => 'previous_off','ext' => ".png",'alt' => $this->_tpl_vars['navStrings']['previous'],'other_attributes' => 'align="absmiddle" border="0" '), $this);?>
  115. </button>
  116. <!--<?php echo smarty_function_sugar_getimage(array('name' => 'previous_off','ext' => ".png",'alt' => $this->_tpl_vars['navStrings']['previous'],'other_attributes' => 'align="absmiddle" border="0" '), $this);?>
  117. &nbsp;<?php echo $this->_tpl_vars['navStrings']['previous']; ?>
  118. &nbsp;-->
  119. <?php endif; ?>
  120. <span class='pageNumbers'>(<?php if ($this->_tpl_vars['pageData']['offsets']['lastOffsetOnPage'] == 0): ?>0<?php else: echo $this->_tpl_vars['pageData']['offsets']['current']+1; endif; ?> - <?php echo $this->_tpl_vars['pageData']['offsets']['lastOffsetOnPage']; ?>
  121. <?php echo $this->_tpl_vars['navStrings']['of']; ?>
  122. <?php if ($this->_tpl_vars['pageData']['offsets']['totalCounted']): echo $this->_tpl_vars['pageData']['offsets']['total']; else: echo $this->_tpl_vars['pageData']['offsets']['total']; if ($this->_tpl_vars['pageData']['offsets']['lastOffsetOnPage'] != $this->_tpl_vars['pageData']['offsets']['total']): ?>+<?php endif; endif; ?>)</span>
  123. <?php if ($this->_tpl_vars['pageData']['urls']['nextPage']): ?>
  124. <button type='button' id='popupViewNextButton' title='<?php echo $this->_tpl_vars['navStrings']['next']; ?>
  125. ' class='button' <?php if ($this->_tpl_vars['prerow']): ?>onclick='return sListView.save_checks(<?php echo $this->_tpl_vars['pageData']['offsets']['next']; ?>
  126. , "<?php echo $this->_tpl_vars['moduleString']; ?>
  127. ")' <?php else: ?> onClick='location.href="<?php echo $this->_tpl_vars['pageData']['urls']['nextPage']; ?>
  128. "'<?php endif; ?>>
  129. <?php echo smarty_function_sugar_getimage(array('name' => 'next','ext' => ".png",'other_attributes' => 'align="absmiddle" border="0" ','alt' => ($this->_tpl_vars['alt_next'])), $this);?>
  130. </button>
  131. <!--&nbsp;<a href='<?php echo $this->_tpl_vars['pageData']['urls']['nextPage']; ?>
  132. ' <?php if ($this->_tpl_vars['prerow']): ?>onclick="return sListView.save_checks(<?php echo $this->_tpl_vars['pageData']['offsets']['next']; ?>
  133. , '<?php echo $this->_tpl_vars['moduleString']; ?>
  134. ')"<?php endif; ?> ><?php echo $this->_tpl_vars['navStrings']['next']; ?>
  135. &nbsp;<?php echo smarty_function_sugar_getimage(array('name' => 'next','ext' => ".png",'alt' => $this->_tpl_vars['navStrings']['next'],'other_attributes' => 'align="absmiddle" border="0" '), $this);?>
  136. </a>&nbsp;-->
  137. <?php else: ?>
  138. <button type='button' id='popupViewNextButton' class='button' title='<?php echo $this->_tpl_vars['navStrings']['next']; ?>
  139. ' disabled>
  140. <?php echo smarty_function_sugar_getimage(array('name' => 'next_off','ext' => ".png",'alt' => $this->_tpl_vars['navStrings']['next'],'other_attributes' => 'align="absmiddle" border="0" '), $this);?>
  141. </button>
  142. <!--&nbsp;<?php echo $this->_tpl_vars['navStrings']['next']; ?>
  143. &nbsp;<?php echo smarty_function_sugar_getimage(array('name' => 'next_off','ext' => ".png",'alt' => $this->_tpl_vars['navStrings']['next'],'other_attributes' => 'align="absmiddle" border="0" '), $this);?>
  144. -->
  145. <?php endif; ?>
  146. <?php if ($this->_tpl_vars['pageData']['urls']['endPage'] && $this->_tpl_vars['pageData']['offsets']['total'] != $this->_tpl_vars['pageData']['offsets']['lastOffsetOnPage']): ?>
  147. <button type='button' id='popupViewEndButton' title='<?php echo $this->_tpl_vars['navStrings']['end']; ?>
  148. ' class='button' <?php if ($this->_tpl_vars['prerow']): ?>onclick='return sListView.save_checks(<?php echo $this->_tpl_vars['pageData']['offsets']['end']; ?>
  149. , "<?php echo $this->_tpl_vars['moduleString']; ?>
  150. ")' <?php else: ?> onClick='location.href="<?php echo $this->_tpl_vars['pageData']['urls']['endPage']; ?>
  151. "'<?php endif; ?>>
  152. <?php echo smarty_function_sugar_getimage(array('name' => 'end','ext' => ".png",'other_attributes' => 'align="absmiddle" border="0" ','alt' => ($this->_tpl_vars['alt_end'])), $this);?>
  153. </button>
  154. <!--<a href='<?php echo $this->_tpl_vars['pageData']['urls']['endPage']; ?>
  155. ' <?php if ($this->_tpl_vars['prerow']): ?>onclick="return sListView.save_checks(<?php echo $this->_tpl_vars['pageData']['offsets']['end']; ?>
  156. , '<?php echo $this->_tpl_vars['moduleString']; ?>
  157. ')"<?php endif; ?> ><?php echo $this->_tpl_vars['navStrings']['end']; ?>
  158. &nbsp;<?php echo smarty_function_sugar_getimage(array('name' => 'end','ext' => ".png",'alt' => $this->_tpl_vars['navStrings']['end'],'other_attributes' => 'align="absmiddle" border="0" '), $this);?>
  159. </a></td>-->
  160. <?php elseif (! $this->_tpl_vars['pageData']['offsets']['totalCounted'] || $this->_tpl_vars['pageData']['offsets']['total'] == $this->_tpl_vars['pageData']['offsets']['lastOffsetOnPage']): ?>
  161. <button type='button' id='popupViewEndButton' class='button' disabled title='<?php echo $this->_tpl_vars['navStrings']['end']; ?>
  162. '>
  163. <?php echo smarty_function_sugar_getimage(array('name' => 'end_off','ext' => ".png",'alt' => $this->_tpl_vars['navStrings']['end'],'other_attributes' => 'align="absmiddle" border="0" '), $this);?>
  164. </button>
  165. <!--&nbsp;<?php echo $this->_tpl_vars['navStrings']['end']; ?>
  166. &nbsp;<?php echo smarty_function_sugar_getimage(array('name' => 'end_off','ext' => ".png",'alt' => $this->_tpl_vars['navStrings']['end'],'other_attributes' => 'align="absmiddle" border="0" '), $this);?>
  167. -->
  168. <?php endif; ?>
  169. </td>
  170. </tr>
  171. </table>
  172. </td>
  173. </tr>
  174. <tr height='20'>
  175. <?php if ($this->_tpl_vars['prerow']): ?>
  176. <td nowrap="nowrap" width="43px" class="selectCol td_alt">
  177. <div style="width:43px">
  178. <?php echo smarty_function_sugar_action_menu(array('id' => $this->_tpl_vars['link_select_id'],'params' => $this->_tpl_vars['selectLink']), $this);?>
  179. </div>
  180. </td>
  181. <td class='td_alt' nowrap="nowrap" width='1%'>&nbsp;</td>
  182. <?php endif; ?>
  183. <?php echo smarty_function_counter(array('start' => 0,'name' => 'colCounter','print' => false,'assign' => 'colCounter'), $this);?>
  184. <?php $_from = $this->_tpl_vars['displayColumns']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  185. foreach ($_from as $this->_tpl_vars['colHeader'] => $this->_tpl_vars['params']):
  186. ?>
  187. <th scope='col' width='<?php echo $this->_tpl_vars['params']['width']; ?>
  188. %' nowrap="nowrap">
  189. <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')); ?>
  190. '>
  191. <?php if (((is_array($_tmp=@$this->_tpl_vars['params']['sortable'])) ? $this->_run_mod_handler('default', true, $_tmp, true) : smarty_modifier_default($_tmp, true))): ?>
  192. <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)); ?>
  193. " onclick='sListView.save_checks(0, "<?php echo $this->_tpl_vars['moduleString']; ?>
  194. ");' class='listViewThLinkS1'><?php echo smarty_function_sugar_translate(array('label' => $this->_tpl_vars['params']['label'],'module' => $this->_tpl_vars['pageData']['bean']['moduleDir']), $this);?>
  195. &nbsp;&nbsp;
  196. <?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']): ?>
  197. <?php if ($this->_tpl_vars['pageData']['ordering']['sortOrder'] == 'ASC'): ?>
  198. <?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('arrowAlt', ob_get_contents());ob_end_clean(); ?>
  199. <?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(); ?>
  200. <?php echo smarty_function_sugar_getimage(array('name' => ($this->_tpl_vars['imageName']),'ext' => 'gif','width' => ($this->_tpl_vars['arrowWidth']),'height' => ($this->_tpl_vars['arrowHeight']),'alt' => ($this->_tpl_vars['arrowAlt']),'other_attributes' => 'align="absmiddle" border="0"'), $this);?>
  201. <?php else: ?>
  202. <?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('arrowAlt', ob_get_contents());ob_end_clean(); ?>
  203. <?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(); ?>
  204. <?php echo smarty_function_sugar_getimage(array('name' => ($this->_tpl_vars['imageName']),'ext' => 'gif','width' => ($this->_tpl_vars['arrowWidth']),'height' => ($this->_tpl_vars['arrowHeight']),'alt' => ($this->_tpl_vars['arrowAlt']),'other_attributes' => 'align="absmiddle" border="0"'), $this);?>
  205. <?php endif; ?>
  206. <?php else: ?>
  207. <?php ob_start(); echo smarty_function_sugar_translate(array('label' => 'LBL_ALT_SORT'), $this); $this->_smarty_vars['capture']['default'] = ob_get_contents(); $this->assign('arrowAlt', ob_get_contents());ob_end_clean(); ?>
  208. <?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(); ?>
  209. <?php echo smarty_function_sugar_getimage(array('name' => ($this->_tpl_vars['imageName']),'ext' => 'gif','width' => ($this->_tpl_vars['arrowWidth']),'height' => ($this->_tpl_vars['arrowHeight']),'alt' => ($this->_tpl_vars['arrowAlt']),'other_attributes' => 'align="absmiddle" border="0"'), $this);?>
  210. <?php endif; ?>
  211. <?php else: ?>
  212. <?php echo smarty_function_sugar_translate(array('label' => $this->_tpl_vars['params']['label'],'module' => $this->_tpl_vars['pageData']['bean']['moduleDir']), $this);?>
  213. <?php endif; ?>
  214. </div>
  215. </th>
  216. <?php echo smarty_function_counter(array('name' => 'colCounter'), $this);?>
  217. <?php endforeach; endif; unset($_from); ?>
  218. <?php if (! empty ( $this->_tpl_vars['quickViewLinks'] )): ?>
  219. <td class='td_alt' nowrap="nowrap" width='1%'>&nbsp;</td>
  220. <?php endif; ?>
  221. </tr>
  222. <?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);
  223. if ($this->_foreach['rowIteration']['total'] > 0):
  224. foreach ($_from as $this->_tpl_vars['id'] => $this->_tpl_vars['rowData']):
  225. $this->_foreach['rowIteration']['iteration']++;
  226. ?>
  227. <?php if ((1 & $this->_foreach['rowIteration']['iteration'])): ?>
  228. <?php $this->assign('_rowColor', $this->_tpl_vars['rowColor'][0]); ?>
  229. <?php else: ?>
  230. <?php $this->assign('_rowColor', $this->_tpl_vars['rowColor'][1]); ?>
  231. <?php endif; ?>
  232. <tr height='20' class='<?php echo $this->_tpl_vars['_rowColor']; ?>
  233. S1'>
  234. <?php if ($this->_tpl_vars['prerow']): ?>
  235. <td width='1%' nowrap='nowrap'>
  236. <input onclick='sListView.check_item(this, document.MassUpdate)' type='checkbox' class='checkbox' name='mass[]' value='<?php echo $this->_tpl_vars['rowData']['ID']; ?>
  237. '>
  238. </td>
  239. <td width='1%' nowrap='nowrap'>
  240. <?php echo $this->_tpl_vars['pageData']['additionalDetails'][$this->_tpl_vars['id']]; ?>
  241. </td>
  242. <?php endif; ?>
  243. <?php echo smarty_function_counter(array('start' => 0,'name' => 'colCounter','print' => false,'assign' => 'colCounter'), $this);?>
  244. <?php $_from = $this->_tpl_vars['displayColumns']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  245. foreach ($_from as $this->_tpl_vars['col'] => $this->_tpl_vars['params']):
  246. ?>
  247. <td scope='row' align='<?php echo ((is_array($_tmp=@$this->_tpl_vars['params']['align'])) ? $this->_run_mod_handler('default', true, $_tmp, 'left') : smarty_modifier_default($_tmp, 'left')); ?>
  248. ' valign=top class='<?php echo $this->_tpl_vars['_rowColor']; ?>
  249. S1' bgcolor='<?php echo $this->_tpl_vars['_bgColor']; ?>
  250. '>
  251. <?php if ($this->_tpl_vars['params']['link'] && ! $this->_tpl_vars['params']['customCode']): ?>
  252. <<?php 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'])); ?>
  253. href='javascript:void(0)' onclick="send_back('<?php if ($this->_tpl_vars['params']['dynamic_module']): echo $this->_tpl_vars['rowData'][$this->_tpl_vars['params']['dynamic_module']]; else: 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'])); endif; ?>','<?php 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'])); ?>
  254. ');"><?php echo $this->_tpl_vars['rowData'][$this->_tpl_vars['col']]; ?>
  255. </<?php 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'])); ?>
  256. >
  257. <?php elseif ($this->_tpl_vars['params']['customCode']): ?>
  258. <?php echo smarty_function_sugar_evalcolumn_old(array('var' => $this->_tpl_vars['params']['customCode'],'rowData' => $this->_tpl_vars['rowData']), $this);?>
  259. <?php elseif ($this->_tpl_vars['params']['currency_format']): ?>
  260. <?php echo smarty_function_sugar_currency_format(array('var' => $this->_tpl_vars['rowData'][$this->_tpl_vars['col']],'round' => $this->_tpl_vars['params']['currency_format']['round'],'decimals' => $this->_tpl_vars['params']['currency_format']['decimals'],'symbol' => $this->_tpl_vars['params']['currency_format']['symbol'],'convert' => $this->_tpl_vars['params']['currency_format']['convert'],'currency_symbol' => $this->_tpl_vars['params']['currency_format']['currency_symbol']), $this);?>
  261. <?php elseif ($this->_tpl_vars['params']['type'] == 'bool'): ?>
  262. <input type='checkbox' disabled=disabled class='checkbox'
  263. <?php if (! empty ( $this->_tpl_vars['rowData'][$this->_tpl_vars['col']] )): ?>
  264. checked=checked
  265. <?php endif; ?>
  266. />
  267. <?php elseif ($this->_tpl_vars['params']['type'] == 'multienum'): ?>
  268. <?php echo smarty_function_counter(array('name' => 'oCount','assign' => 'oCount','start' => 0), $this);?>
  269. <?php echo smarty_function_multienum_to_array(array('string' => $this->_tpl_vars['rowData'][$this->_tpl_vars['col']],'assign' => 'vals'), $this);?>
  270. <?php $_from = $this->_tpl_vars['vals']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  271. foreach ($_from as $this->_tpl_vars['item']):
  272. ?>
  273. <?php echo smarty_function_counter(array('name' => 'oCount'), $this);?>
  274. <?php echo smarty_function_sugar_translate(array('label' => $this->_tpl_vars['params']['options'],'select' => $this->_tpl_vars['item']), $this); if ($this->_tpl_vars['oCount'] != count ( $this->_tpl_vars['vals'] )): ?>,<?php endif; ?>
  275. <?php endforeach; endif; unset($_from); ?>
  276. <?php else: ?>
  277. <?php echo smarty_function_sugar_field(array('parentFieldArray' => $this->_tpl_vars['rowData'],'vardef' => $this->_tpl_vars['params'],'displayType' => 'ListView','field' => $this->_tpl_vars['col']), $this);?>
  278. <?php endif; ?>
  279. </td>
  280. <?php echo smarty_function_counter(array('name' => 'colCounter'), $this);?>
  281. <?php endforeach; endif; unset($_from); ?>
  282. <?php endforeach; endif; unset($_from); ?>
  283. <tr class='pagination' role='presentation'>
  284. <td colspan='<?php echo $this->_tpl_vars['colCount']+1; ?>
  285. ' align='right'>
  286. <table border='0' cellpadding='0' cellspacing='0' width='100%'>
  287. <tr>
  288. <td align='left' >
  289. &nbsp;</td>
  290. <td align='right' nowrap='nowrap'>
  291. <?php if ($this->_tpl_vars['pageData']['urls']['startPage']): ?>
  292. <button type='button' title='<?php echo $this->_tpl_vars['navStrings']['start']; ?>
  293. ' class='button' <?php if ($this->_tpl_vars['prerow']): ?>onclick='return sListView.save_checks(0, "<?php echo $this->_tpl_vars['moduleString']; ?>
  294. ");'<?php else: ?> onClick='location.href="<?php echo $this->_tpl_vars['pageData']['urls']['startPage']; ?>
  295. "' <?php endif; ?>>
  296. <?php echo smarty_function_sugar_getimage(array('name' => 'start','ext' => ".png",'other_attributes' => 'align="absmiddle" border="0" ','alt' => ($this->_tpl_vars['alt_start'])), $this);?>
  297. </button>
  298. <!--<a href='<?php echo $this->_tpl_vars['pageData']['urls']['startPage']; ?>
  299. ' <?php if ($this->_tpl_vars['prerow']): ?>onclick="return sListView.save_checks(0, '<?php echo $this->_tpl_vars['moduleString']; ?>
  300. ')"<?php endif; ?> ><?php echo smarty_function_sugar_getimage(array('name' => 'start','ext' => ".png",'alt' => $this->_tpl_vars['navStrings']['start'],'other_attributes' => 'align="absmiddle" border="0" '), $this);?>
  301. &nbsp;<?php echo $this->_tpl_vars['navStrings']['start']; ?>
  302. </a>&nbsp;-->
  303. <?php else: ?>
  304. <button type='button' title='<?php echo $this->_tpl_vars['navStrings']['start']; ?>
  305. ' class='button' disabled>
  306. <?php echo smarty_function_sugar_getimage(array('name' => 'start_off','ext' => ".png",'alt' => $this->_tpl_vars['navStrings']['start'],'other_attributes' => 'align="absmiddle" border="0" '), $this);?>
  307. </button>
  308. <!--<?php echo smarty_function_sugar_getimage(array('name' => 'start_off','ext' => ".png",'alt' => $this->_tpl_vars['navStrings']['start'],'other_attributes' => 'align="absmiddle" border="0" '), $this);?>
  309. &nbsp;<?php echo $this->_tpl_vars['navStrings']['start']; ?>
  310. &nbsp;&nbsp;-->
  311. <?php endif; ?>
  312. <?php if ($this->_tpl_vars['pageData']['urls']['prevPage']): ?>
  313. <button type='button' title='<?php echo $this->_tpl_vars['navStrings']['previous']; ?>
  314. ' class='button' <?php if ($this->_tpl_vars['prerow']): ?>onclick='return sListView.save_checks(<?php echo $this->_tpl_vars['pageData']['offsets']['prev']; ?>
  315. , "<?php echo $this->_tpl_vars['moduleString']; ?>
  316. ")' <?php else: ?> onClick='location.href="<?php echo $this->_tpl_vars['pageData']['urls']['prevPage']; ?>
  317. "'<?php endif; ?>>
  318. <?php echo smarty_function_sugar_getimage(array('name' => 'previous','ext' => ".png",'other_attributes' => 'align="absmiddle" border="0" ','alt' => ($this->_tpl_vars['alt_prev'])), $this);?>
  319. </button>
  320. <!--<a href='<?php echo $this->_tpl_vars['pageData']['urls']['prevPage']; ?>
  321. ' <?php if ($this->_tpl_vars['prerow']): ?>onclick="return sListView.save_checks(<?php echo $this->_tpl_vars['pageData']['offsets']['prev']; ?>
  322. , '<?php echo $this->_tpl_vars['moduleString']; ?>
  323. ')"<?php endif; ?> ><?php echo smarty_function_sugar_getimage(array('name' => 'previous','ext' => ".png",'alt' => $this->_tpl_vars['navStrings']['previous'],'other_attributes' => 'align="absmiddle" border="0" '), $this);?>
  324. &nbsp;<?php echo $this->_tpl_vars['navStrings']['previous']; ?>
  325. </a>&nbsp;-->
  326. <?php else: ?>
  327. <button type='button' class='button' disabled title='<?php echo $this->_tpl_vars['navStrings']['previous']; ?>
  328. '>
  329. <?php echo smarty_function_sugar_getimage(array('name' => 'previous_off','ext' => ".png",'alt' => $this->_tpl_vars['navStrings']['previous'],'other_attributes' => 'align="absmiddle" border="0" '), $this);?>
  330. </button>
  331. <!--<?php echo smarty_function_sugar_getimage(array('name' => 'previous_off','ext' => ".png",'alt' => $this->_tpl_vars['navStrings']['previous'],'other_attributes' => 'align="absmiddle" border="0" '), $this);?>
  332. &nbsp;<?php echo $this->_tpl_vars['navStrings']['previous']; ?>
  333. &nbsp;-->
  334. <?php endif; ?>
  335. <span class='pageNumbers'>(<?php if ($this->_tpl_vars['pageData']['offsets']['lastOffsetOnPage'] == 0): ?>0<?php else: echo $this->_tpl_vars['pageData']['offsets']['current']+1; endif; ?> - <?php echo $this->_tpl_vars['pageData']['offsets']['lastOffsetOnPage']; ?>
  336. <?php echo $this->_tpl_vars['navStrings']['of']; ?>
  337. <?php if ($this->_tpl_vars['pageData']['offsets']['totalCounted']): echo $this->_tpl_vars['pageData']['offsets']['total']; else: echo $this->_tpl_vars['pageData']['offsets']['total']; if ($this->_tpl_vars['pageData']['offsets']['lastOffsetOnPage'] != $this->_tpl_vars['pageData']['offsets']['total']): ?>+<?php endif; endif; ?>)</span>
  338. <?php if ($this->_tpl_vars['pageData']['urls']['nextPage']): ?>
  339. <button type='button' title='<?php echo $this->_tpl_vars['navStrings']['next']; ?>
  340. ' class='button' <?php if ($this->_tpl_vars['prerow']): ?>onclick='return sListView.save_checks(<?php echo $this->_tpl_vars['pageData']['offsets']['next']; ?>
  341. , "<?php echo $this->_tpl_vars['moduleString']; ?>
  342. ")' <?php else: ?> onClick='location.href="<?php echo $this->_tpl_vars['pageData']['urls']['nextPage']; ?>
  343. "'<?php endif; ?>>
  344. <?php echo smarty_function_sugar_getimage(array('name' => 'next','ext' => ".png",'other_attributes' => 'align="absmiddle" border="0" ','alt' => ($this->_tpl_vars['alt_next'])), $this);?>
  345. </button>
  346. <!--&nbsp;<a href='<?php echo $this->_tpl_vars['pageData']['urls']['nextPage']; ?>
  347. ' <?php if ($this->_tpl_vars['prerow']): ?>onclick="return sListView.save_checks(<?php echo $this->_tpl_vars['pageData']['offsets']['next']; ?>
  348. , '<?php echo $this->_tpl_vars['moduleString']; ?>
  349. ')"<?php endif; ?> ><?php echo $this->_tpl_vars['navStrings']['next']; ?>
  350. &nbsp;<?php echo smarty_function_sugar_getimage(array('name' => 'next','ext' => ".png",'alt' => $this->_tpl_vars['navStrings']['next'],'other_attributes' => 'align="absmiddle" border="0" '), $this);?>
  351. </a>&nbsp;-->
  352. <?php else: ?>
  353. <button type='button' class='button' title='<?php echo $this->_tpl_vars['navStrings']['next']; ?>
  354. ' disabled>
  355. <?php echo smarty_function_sugar_getimage(array('name' => 'next_off','ext' => ".png",'alt' => $this->_tpl_vars['navStrings']['next'],'other_attributes' => 'align="absmiddle" border="0" '), $this);?>
  356. </button>
  357. <!--&nbsp;<?php echo $this->_tpl_vars['navStrings']['next']; ?>
  358. &nbsp;<?php echo smarty_function_sugar_getimage(array('name' => 'next_off','ext' => ".png",'alt' => $this->_tpl_vars['navStrings']['next'],'other_attributes' => 'align="absmiddle" border="0" '), $this);?>
  359. -->
  360. <?php endif; ?>
  361. <?php if ($this->_tpl_vars['pageData']['urls']['endPage'] && $this->_tpl_vars['pageData']['offsets']['total'] != $this->_tpl_vars['pageData']['offsets']['lastOffsetOnPage']): ?>
  362. <button type='button' title='<?php echo $this->_tpl_vars['navStrings']['end']; ?>
  363. ' class='button' <?php if ($this->_tpl_vars['prerow']): ?>onclick='return sListView.save_checks(<?php echo $this->_tpl_vars['pageData']['offsets']['end']; ?>
  364. , "<?php echo $this->_tpl_vars['moduleString']; ?>
  365. ")' <?php else: ?> onClick='location.href="<?php echo $this->_tpl_vars['pageData']['urls']['endPage']; ?>
  366. "'<?php endif; ?>>
  367. <?php echo smarty_function_sugar_getimage(array('name' => 'end','ext' => ".png",'other_attributes' => 'align="absmiddle" border="0" ','alt' => ($this->_tpl_vars['alt_end'])), $this);?>
  368. </button>
  369. <!--<a href='<?php echo $this->_tpl_vars['pageData']['urls']['endPage']; ?>
  370. ' <?php if ($this->_tpl_vars['prerow']): ?>onclick="return sListView.save_checks(<?php echo $this->_tpl_vars['pageData']['offsets']['end']; ?>
  371. , '<?php echo $this->_tpl_vars['moduleString']; ?>
  372. ')"<?php endif; ?> ><?php echo $this->_tpl_vars['navStrings']['end']; ?>
  373. &nbsp;<?php echo smarty_function_sugar_getimage(array('name' => 'end','ext' => ".png",'alt' => $this->_tpl_vars['navStrings']['end'],'other_attributes' => 'align="absmiddle" border="0" '), $this);?>
  374. </a></td>-->
  375. <?php elseif (! $this->_tpl_vars['pageData']['offsets']['totalCounted'] || $this->_tpl_vars['pageData']['offsets']['total'] == $this->_tpl_vars['pageData']['offsets']['lastOffsetOnPage']): ?>
  376. <button type='button' class='button' disabled title='<?php echo $this->_tpl_vars['navStrings']['end']; ?>
  377. '>
  378. <?php echo smarty_function_sugar_getimage(array('name' => 'end_off','ext' => ".png",'alt' => $this->_tpl_vars['navStrings']['end'],'other_attributes' => 'align="absmiddle" border="0" '), $this);?>
  379. </button>
  380. <!--&nbsp;<?php echo $this->_tpl_vars['navStrings']['end']; ?>
  381. &nbsp;<?php echo smarty_function_sugar_getimage(array('name' => 'end_off','ext' => ".png",'alt' => $this->_tpl_vars['navStrings']['end'],'other_attributes' => 'align="absmiddle" border="0" '), $this);?>
  382. -->
  383. <?php endif; ?>
  384. </td>
  385. </tr>
  386. </table>
  387. </td>
  388. </tr>
  389. </table>
  390. <?php if ($this->_tpl_vars['prerow']): ?>
  391. <script>
  392. <?php echo 'function lvg_dtails(id){return SUGAR.util.getAdditionalDetails( \''; echo $this->_tpl_vars['module']; echo '\',id, \'adspan_\'+id);}'; ?>
  393. </script>
  394. <?php endif; else: ?>
  395. <?php echo $this->_tpl_vars['APP']['LBL_SEARCH_POPULATE_ONLY']; ?>
  396. <?php endif; ?>