You are here

function sortheader in Production check & Production monitor 7

Same name and namespace in other branches
  1. 6 includes/prod_check.apc.inc \sortheader()

File

includes/prod_check.apc.inc, line 468

Code

function sortheader($key, $name, $extra = '') {
  global $MYREQUEST, $MY_SELF_WO_SORT;
  if ($MYREQUEST['SORT1'] == $key) {
    $MYREQUEST['SORT2'] = $MYREQUEST['SORT2'] == 'A' ? 'D' : 'A';
  }
  return "<a class=sortable href=\"{$MY_SELF_WO_SORT}{$extra}&SORT1={$key}&SORT2=" . $MYREQUEST['SORT2'] . "\">{$name}</a>";
}