src/Kinnngg/Swat4query/Server.php
function LinkImageSort($_by,$sby,$soby,$soby2,$stitle) {
   if($_by==$sby)
    return <<<EOF
  <a href="{$_SERVER['PHP_SELF']}?sort={$soby}&amp;by={$sby}" class="formfont" onmouseover="if(document.getElementById('so{$sby}')){ document.getElementById('so{$sby}').src='./swat4query/images/server_{$soby}.gif'; }" onmouseout="if(document.getElementById('so{$sby}')){ document.getElementById('so{$sby}').src='./swat4query/images/server_{$soby2}.gif'; }"><b>{$stitle}</b> <img src="./swat4query/images/server_{$soby2}.gif" width="11" height="9" border="0" alt="{$soby}" id="so{$sby}" />
EOF;
   else return '<a href="'.$_SERVER['PHP_SELF'].'?sort='.$soby.'&amp;by='.$sby.'" class="formfont"><b>'.$stitle.'</b>';
  }
function LinkImageSort($_by,$sby,$soby,$soby2,$stitle) {
   if($_by==$sby)
    return <<<EOF
  <a href="{$_SERVER['PHP_SELF']}?sort={$soby}&amp;by={$sby}" class="formfont" onmouseover="if(document.getElementById('so{$sby}')){ document.getElementById('so{$sby}').src='./swat4query/images/server_{$soby}.gif'; }" onmouseout="if(document.getElementById('so{$sby}')){ document.getElementById('so{$sby}').src='./swat4query/images/server_{$soby2}.gif'; }"><b>{$stitle}</b> <img src="./swat4query/images/server_{$soby2}.gif" width="11" height="9" border="0" alt="{$soby}" id="so{$sby}" />
EOF;
   else return '<a href="'.$_SERVER['PHP_SELF'].'?sort='.$soby.'&amp;by='.$sby.'" class="formfont"><b>'.$stitle.'</b>';
  }
function LinkImageSort ( $ _by , $ sby , $ soby , $ soby2 , $ stitle ) { if ( $ _by == $ sby ) return  <<<EOF
  <a href="{$_SERVER['PHP_SELF']}?sort={$soby}&amp;by={$sby}" class="formfont" onmouseover="if(document.getElementById('so{$sby}')){ document.getElementById('so{$sby}').src='./swat4query/images/server_{$soby}.gif'; }" onmouseout="if(document.getElementById('so{$sby}')){ document.getElementById('so{$sby}').src='./swat4query/images/server_{$soby2}.gif'; }"><b>{$stitle}</b> <img src="./swat4query/images/server_{$soby2}.gif" width="11" height="9" border="0" alt="{$soby}" id="so{$sby}" />
EOF ; else return '<a href="' . $ _SERVER [ 'PHP_SELF' ] . '?sort=' . $ soby . '&amp;by=' . $ sby . '" class="formfont"><b>' . $ stitle . '</b>' ; }
Helper Function
Can be used to created a link to sort data accordingly.
@param [type] $_by    [description]
@param [type] $sby    [description]
@param [type] $soby   [description]
@param [type] $soby2  [description]
@param [type] $stitle [description]
Helper Function Can be used to created a link to sort data accordingly .