📄 %%78^786^7862bf8c%%listviewgeneric.tpl.php
字号:
<?php endif; ?>
<tr height='20' onmouseover="setPointer(this, '<?php echo $this->_tpl_vars['id']; ?>', 'over', '<?php echo $this->_tpl_vars['_bgColor']; ?>', '<?php echo $this->_tpl_vars['bgHilite']; ?>', '');" onmouseout="setPointer(this, '<?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'])); ?>', 'out', '<?php echo $this->_tpl_vars['_bgColor']; ?>', '<?php echo $this->_tpl_vars['bgHilite']; ?>', '');" onmousedown="setPointer(this, '<?php echo $this->_tpl_vars['id']; ?>', 'click', '<?php echo $this->_tpl_vars['_bgColor']; ?>', '<?php echo $this->_tpl_vars['bgHilite']; ?>', '');">
<?php if ($this->_tpl_vars['prerow']): ?>
<td width='1%' class='<?php echo $this->_tpl_vars['_rowColor']; ?>S1' bgcolor='<?php echo $this->_tpl_vars['_bgColor']; ?>' nowrap>
<input onclick='sListView.check_item(this, document.MassUpdate)' type='checkbox' class='checkbox' name='mass[]' value='<?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'])); ?>'>
</td>
<?php endif; ?>
<?php echo smarty_function_counter(array('start' => 0,'name' => 'colCounter','print' => false,'assign' => 'colCounter'), $this);?>
<?php $_from = $this->_tpl_vars['displayColumns']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)): foreach ($_from as $this->_tpl_vars['col'] => $this->_tpl_vars['params']):?>
<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')); ?>' valign=top class='<?php echo $this->_tpl_vars['_rowColor']; ?>S1' bgcolor='<?php echo $this->_tpl_vars['_bgColor']; ?>'><span sugar="sugar<?php echo $this->_tpl_vars['colCounter']; ?>b">
<?php if ($this->_tpl_vars['params']['link'] && ! $this->_tpl_vars['params']['customCode']): ?>
<<?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'])); ?> href='index.php?action=<?php echo ((is_array($_tmp=@$this->_tpl_vars['params']['action'])) ? $this->_run_mod_handler('default', true, $_tmp, 'DetailView') : smarty_modifier_default($_tmp, 'DetailView')); ?>&module=<?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; ?>&record=<?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'])); ?>&offset=<?php echo $this->_tpl_vars['pageData']['offsets']['current']+$this->_foreach['rowIteration']['iteration']; ?>&stamp=<?php echo $this->_tpl_vars['pageData']['stamp']; ?>' class='listViewTdLinkS1'><?php echo $this->_tpl_vars['rowData'][$this->_tpl_vars['col']]; ?></<?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'])); ?>>
<?php elseif ($this->_tpl_vars['params']['customCode']): ?>
<?php echo smarty_function_sugar_evalcolumn(array('var' => $this->_tpl_vars['params']['customCode'],'rowData' => $this->_tpl_vars['rowData']), $this);?>
<?php elseif ($this->_tpl_vars['params']['currency_format']): ?>
<?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']), $this);?>
<?php elseif ($this->_tpl_vars['params']['type'] == 'bool'): ?>
<input type='checkbox' disabled=disabled class='checkbox'
<?php if (! empty ( $this->_tpl_vars['rowData'][$this->_tpl_vars['col']] )): ?>
checked=checked
<?php endif; ?>
/>
<?php else: ?>
<?php echo $this->_tpl_vars['rowData'][$this->_tpl_vars['col']]; ?>
<?php endif; ?>
</span sugar='sugar<?php echo $this->_tpl_vars['colCounter']; ?>b'></td>
<?php echo smarty_function_counter(array('name' => 'colCounter'), $this);?>
<?php endforeach; endif; unset($_from); ?>
<?php if (! empty ( $this->_tpl_vars['quickViewLinks'] )): ?>
<td width='1%' class='<?php echo $this->_tpl_vars['_rowColor']; ?>S1' bgcolor='<?php echo $this->_tpl_vars['_bgColor']; ?>' nowrap>
<?php if ($this->_tpl_vars['pageData']['access']['edit']): ?>
<a title='<?php echo $this->_tpl_vars['editLinkString']; ?>' href='index.php?action=EditView&module=<?php 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'])); ?>&record=<?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'])); ?>&offset=<?php echo $this->_tpl_vars['pageData']['offsets']['current']+$this->_foreach['rowIteration']['iteration']; ?>&stamp=<?php echo $this->_tpl_vars['pageData']['stamp']; ?>&return_module=<?php 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'])); ?>'><img border=0 src=<?php echo $this->_tpl_vars['imagePath']; ?>edit_inline.gif></a>
<?php endif; ?>
<?php if ($this->_tpl_vars['pageData']['access']['view']): ?>
<a title='<?php echo $this->_tpl_vars['viewLinkString']; ?>' href='index.php?action=DetailView&module=<?php 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'])); ?>&record=<?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'])); ?>&offset=<?php echo $this->_tpl_vars['pageData']['offsets']['current']+$this->_foreach['rowIteration']['iteration']; ?>&stamp=<?php echo $this->_tpl_vars['pageData']['stamp']; ?>&return_module=<?php 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'])); ?>'><img border=0 src=<?php echo $this->_tpl_vars['imagePath']; ?>view_inline.gif></a>
<?php endif; ?>
</td>
<?php endif; ?>
</tr>
<tr><td colspan='20' class='listViewHRS1'></td></tr>
<?php endforeach; endif; unset($_from); ?>
<tr>
<td colspan='<?php echo $this->_tpl_vars['colCount']+1; ?>' align='right'>
<table border='0' cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td align='left' class='listViewPaginationTdS1'><?php echo $this->_tpl_vars['exportLink']; echo $this->_tpl_vars['mergeLink']; echo $this->_tpl_vars['mergedupLink']; echo $this->_tpl_vars['selectedObjectsSpan']; ?> </td>
<td class='listViewPaginationTdS1' align='right' nowrap='nowrap' id='listViewPaginationButtons'>
<?php if ($this->_tpl_vars['pageData']['urls']['startPage']): ?>
<a href='<?php echo $this->_tpl_vars['pageData']['urls']['startPage']; ?>' <?php if ($this->_tpl_vars['prerow']): ?>onclick="return sListView.save_checks(0, '<?php echo $this->_tpl_vars['moduleString']; ?>')"<?php endif; ?> class='listViewPaginationLinkS1'><img src='<?php echo $this->_tpl_vars['imagePath']; ?>start.gif' alt='<?php echo $this->_tpl_vars['navStrings']['start']; ?>' align='absmiddle' border='0' width='13' height='11'> <?php echo $this->_tpl_vars['navStrings']['start']; ?></a>
<?php else: ?>
<img src='<?php echo $this->_tpl_vars['imagePath']; ?>start_off.gif' alt='<?php echo $this->_tpl_vars['navStrings']['start']; ?>' align='absmiddle' border='0' width='13' height='11'> <?php echo $this->_tpl_vars['navStrings']['start']; ?>
<?php endif; ?>
<?php if ($this->_tpl_vars['pageData']['urls']['prevPage']): ?>
<a href='<?php echo $this->_tpl_vars['pageData']['urls']['prevPage']; ?>' <?php if ($this->_tpl_vars['prerow']): ?>onclick="return sListView.save_checks(<?php echo $this->_tpl_vars['pageData']['offsets']['prev']; ?>, '<?php echo $this->_tpl_vars['moduleString']; ?>')"<?php endif; ?> class='listViewPaginationLinkS1'><img src='<?php echo $this->_tpl_vars['imagePath']; ?>previous.gif' alt='<?php echo $this->_tpl_vars['navStrings']['previous']; ?>' align='absmiddle' border='0' width='8' height='11'> <?php echo $this->_tpl_vars['navStrings']['previous']; ?></a>
<?php else: ?>
<img src='<?php echo $this->_tpl_vars['imagePath']; ?>previous_off.gif' alt='<?php echo $this->_tpl_vars['navStrings']['previous']; ?>' align='absmiddle' border='0' width='8' height='11'> <?php echo $this->_tpl_vars['navStrings']['previous']; ?>
<?php endif; ?>
<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']; ?> <?php echo $this->_tpl_vars['navStrings']['of']; ?> <?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>
<?php if ($this->_tpl_vars['pageData']['urls']['nextPage']): ?>
<a href='<?php echo $this->_tpl_vars['pageData']['urls']['nextPage']; ?>' <?php if ($this->_tpl_vars['prerow']): ?>onclick="return sListView.save_checks(<?php echo $this->_tpl_vars['pageData']['offsets']['next']; ?>, '<?php echo $this->_tpl_vars['moduleString']; ?>')"<?php endif; ?> class='listViewPaginationLinkS1'><?php echo $this->_tpl_vars['navStrings']['next']; ?> <img src='<?php echo $this->_tpl_vars['imagePath']; ?>next.gif' alt='<?php echo $this->_tpl_vars['navStrings']['next']; ?>' align='absmiddle' border='0' width='8' height='11'></a>
<?php else: ?>
<?php echo $this->_tpl_vars['navStrings']['next']; ?> <img src='<?php echo $this->_tpl_vars['imagePath']; ?>next_off.gif' alt='<?php echo $this->_tpl_vars['navStrings']['next']; ?>' align='absmiddle' border='0' width='8' height='11'>
<?php endif; ?>
<?php if ($this->_tpl_vars['pageData']['urls']['endPage'] && $this->_tpl_vars['pageData']['offsets']['total'] != $this->_tpl_vars['pageData']['offsets']['lastOffsetOnPage']): ?>
<a href='<?php echo $this->_tpl_vars['pageData']['urls']['endPage']; ?>' <?php if ($this->_tpl_vars['prerow']): ?>onclick="return sListView.save_checks(<?php echo $this->_tpl_vars['pageData']['offsets']['end']; ?>, '<?php echo $this->_tpl_vars['moduleString']; ?>')"<?php endif; ?> class='listViewPaginationLinkS1'><?php echo $this->_tpl_vars['navStrings']['end']; ?> <img src='<?php echo $this->_tpl_vars['imagePath']; ?>end.gif' alt='<?php echo $this->_tpl_vars['navStrings']['end']; ?>' align='absmiddle' border='0' width='13' height='11'></a></td>
<?php elseif (! $this->_tpl_vars['pageData']['offsets']['totalCounted'] || $this->_tpl_vars['pageData']['offsets']['total'] == $this->_tpl_vars['pageData']['offsets']['lastOffsetOnPage']): ?>
<?php echo $this->_tpl_vars['navStrings']['end']; ?> <img src='<?php echo $this->_tpl_vars['imagePath']; ?>end_off.gif' alt='<?php echo $this->_tpl_vars['navStrings']['end']; ?>' align='absmiddle' border='0' width='13' height='11'>
<?php endif; ?>
</td>
</tr>
</table>
</td>
</tr>
</table>
<?php if ($this->_tpl_vars['prerow']): ?>
<a class='listViewCheckLink' href='javascript:sListView.check_all(document.MassUpdate, "mass[]", false);'><?php echo $this->_tpl_vars['clearAll']; ?></a>
<?php endif; ?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -