Files
EasySoft-ZenTaoPMS/module/common/view/tablesorter.html.php
2010-07-04 02:20:01 +00:00

35 lines
1.1 KiB
PHP

<?php if($extView = $this->getExtViewFile(__FILE__)){include $extView; return helper::cd();}?>
<script src='<?php echo $jsRoot;?>jquery/tablesorter/min.js' type='text/javascript'></script>
<script src='<?php echo $jsRoot;?>jquery/tablesorter/metadata.js' type='text/javascript'></script>
<script language='javascript'>
$(function() {
$('.tablesorter').tablesorter(
{
widgets: ['zebra'],
widgetZebra: {css: ['odd', 'even'] }
}
);
$('.tablesorter tbody tr').hover(
function(){$(this).addClass('hoover')},
function(){$(this).removeClass('hoover')}
);
/* IE6下面click事件和colorbox冲突。暂时去除该功能。*/
if($.browser.msie && Math.floor(parseInt($.browser.version)) == 6) return;
$('.tablesorter tbody tr').click(
function()
{
if($(this).attr('class').indexOf('clicked') > 0)
{
$(this).removeClass('clicked');
}
else
{
$(this).addClass('clicked');
}
}
);
});
</script>