| version 1.143, 2004/04/22 16:15:14 |
version 1.144, 2004/06/30 17:54:09 |
|
|
| * http://platon.sk/projects/phpMyEdit/ |
* http://platon.sk/projects/phpMyEdit/ |
| */ |
*/ |
| |
|
| /* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.142 2004/04/22 16:12:27 nepto Exp $ */ |
/* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.143 2004/04/22 16:15:14 nepto Exp $ */ |
| |
|
| /* This is a generic table editing program. The table and fields to be |
/* This is a generic table editing program. The table and fields to be |
| edited are defined in the calling program. |
edited are defined in the calling program. |
| Line 1799 function phpMyEdit_filter_handler(theFor |
|
| Line 1799 function phpMyEdit_filter_handler(theFor |
|
| } |
} |
| for ($k = 0; $k < $this->num_fds; $k++) { |
for ($k = 0; $k < $this->num_fds; $k++) { |
| $fd = $this->fds[$k]; |
$fd = $this->fds[$k]; |
| if ($this->displayed[$k]) { |
if (! $this->displayed[$k]) { |
| $css_postfix = @$this->fdd[$k]['css']['postfix']; |
continue; |
| $css_class_name = $this->getCSSclass('header', null, null, $css_postfix); |
} |
| $fdn = $this->fdd[$fd]['name']; |
$css_postfix = @$this->fdd[$k]['css']['postfix']; |
| if (! $this->fdd[$fd]['sort'] || $this->password($fd)) { |
$css_class_name = $this->getCSSclass('header', null, null, $css_postfix); |
| echo '<th class="',$css_class_name,'">',$fdn,'</th>',"\n"; |
$fdn = $this->fdd[$fd]['name']; |
| } else { |
if (! $this->fdd[$fd]['sort'] || $this->password($fd)) { |
| // Clicking on the current sort field reverses the sort order |
echo '<th class="',$css_class_name,'">',$fdn,'</th>',"\n"; |
| $new_sfn = $this->sfn; |
} else { |
| array_unshift($new_sfn, in_array("$k", $new_sfn, 1) ? "-$k" : $k); |
// Clicking on the current sort field reverses the sort order |
| echo '<th class="',$css_class_name,'">'; |
$new_sfn = $this->sfn; |
| echo '<a class="',$css_class_name,'" href="'; |
array_unshift($new_sfn, in_array("$k", $new_sfn, 1) ? "-$k" : $k); |
| echo htmlspecialchars($this->page_name.'?fm=0&fl='.$this->fl |
echo '<th class="',$css_class_name,'">'; |
| .'&qfn='.rawurlencode($this->qfn).$this->qfn |
echo '<a class="',$css_class_name,'" href="'; |
| .'&'.$this->get_sfn_cgi_vars($new_sfn).$this->cgi['persist']); |
echo htmlspecialchars($this->page_name.'?fm=0&fl='.$this->fl |
| echo '">',$fdn,'</a></th>',"\n"; |
.'&qfn='.rawurlencode($this->qfn).$this->qfn |
| } |
.'&'.$this->get_sfn_cgi_vars($new_sfn).$this->cgi['persist']); |
| |
echo '">',$fdn,'</a></th>',"\n"; |
| } |
} |
| } |
} |
| echo '</tr>',"\n"; |
echo '</tr>',"\n"; |