version 1.118, 2004/01/20 10:37:55 |
version 1.119, 2004/01/20 10:45:00 |
|
|
* http://platon.sk/projects/phpMyEdit/ |
* http://platon.sk/projects/phpMyEdit/ |
*/ |
*/ |
|
|
/* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.117 2004/01/20 10:26:58 nepto Exp $ */ |
/* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.118 2004/01/20 10:37:55 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 1154 function phpMyEdit_filter_handler(theFor |
|
Line 1154 function phpMyEdit_filter_handler(theFor |
|
if (isset($this->fdd[$k]['nowrap'])) { |
if (isset($this->fdd[$k]['nowrap'])) { |
$colattrs .= ' nowrap'; |
$colattrs .= ' nowrap'; |
} |
} |
if (isset($this->fdd[$k]['width'])) { |
|
$colattrs .= ' width="'.$this->fdd[$fd]['width'].'"'; |
|
} |
|
return $colattrs; |
return $colattrs; |
} /* }}} */ |
} /* }}} */ |
|
|
Line 1814 function phpMyEdit_filter_handler(theFor |
|
Line 1811 function phpMyEdit_filter_handler(theFor |
|
$css_postfix = @$this->fdd[$k]['css']['postfix']; |
$css_postfix = @$this->fdd[$k]['css']['postfix']; |
$css_class_name = $this->getCSSclass('header', null, null, $css_postfix); |
$css_class_name = $this->getCSSclass('header', null, null, $css_postfix); |
$fdn = $this->fdd[$fd]['name']; |
$fdn = $this->fdd[$fd]['name']; |
$w = isset($this->fdd[$fd]['width']) ? ' width="'.$this->fdd[$fd]['width'].'"' : ''; |
|
if (! $this->fdd[$fd]['sort'] || $this->password($fd)) { |
if (! $this->fdd[$fd]['sort'] || $this->password($fd)) { |
echo '<th',$w,' class="',$css_class_name,'">',$fdn,'</th>',"\n"; |
echo '<th class="',$css_class_name,'">',$fdn,'</th>',"\n"; |
} else { |
} else { |
// Clicking on the current sort field reverses the sort order |
// Clicking on the current sort field reverses the sort order |
$new_sfn = $this->sfn; |
$new_sfn = $this->sfn; |
array_unshift($new_sfn, in_array("$k", $new_sfn, 1) ? "-$k" : $k); |
array_unshift($new_sfn, in_array("$k", $new_sfn, 1) ? "-$k" : $k); |
echo '<th',$w,' class="',$css_class_name,'">'; |
echo '<th class="',$css_class_name,'">'; |
echo '<a class="',$css_class_name,'" href="'; |
echo '<a class="',$css_class_name,'" href="'; |
echo htmlspecialchars($this->page_name.'?fm=0&fl='.$this->fl |
echo htmlspecialchars($this->page_name.'?fm=0&fl='.$this->fl |
.'&qfn='.rawurlencode($this->qfn).$this->qfn |
.'&qfn='.rawurlencode($this->qfn).$this->qfn |
Line 1952 function phpMyEdit_filter_handler(theFor |
|
Line 1948 function phpMyEdit_filter_handler(theFor |
|
$mc = $this->get_cgi_var($lc); |
$mc = $this->get_cgi_var($lc); |
$mi = $this->get_cgi_var($li); |
$mi = $this->get_cgi_var($li); |
} |
} |
$widthStyle = isset($this->fdd[$fd]['width']) |
echo '<td class="',$css_class_name,'">'; |
? ' STYLE=\'width: "'.(6*$this->fdd[$fd]['width']).'px"\'' : ''; |
|
echo '<td',$widthStyle,' class="',$css_class_name,'">'; |
|
if ($this->password($k)) { |
if ($this->password($k)) { |
echo ' '; |
echo ' '; |
} else if ($this->fdd[$fd]['select'] == 'D' || $this->fdd[$fd]['select'] == 'M') { |
} else if ($this->fdd[$fd]['select'] == 'D' || $this->fdd[$fd]['select'] == 'M') { |