| version 1.125, 2004/03/20 11:47:19 |
version 1.126, 2004/03/20 21:00:12 |
|
|
| * http://platon.sk/projects/phpMyEdit/ |
* http://platon.sk/projects/phpMyEdit/ |
| */ |
*/ |
| |
|
| /* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.124 2004/03/08 09:45:34 nepto Exp $ */ |
/* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.125 2004/03/20 11:47:19 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 1167 function phpMyEdit_filter_handler(theFor |
|
| Line 1167 function phpMyEdit_filter_handler(theFor |
|
| */ |
*/ |
| function urlDisplay($k, $link_val, $disp_val, $css, $key) /* {{{ */ |
function urlDisplay($k, $link_val, $disp_val, $css, $key) /* {{{ */ |
| { |
{ |
| |
$escape = isset($this->fdd[$k]['escape']) ? $this->fdd[$k]['escape'] : true; |
| $ret = ''; |
$ret = ''; |
| $name = $this->fds[$k]; |
$name = $this->fds[$k]; |
| $page = $this->page_name; |
$page = $this->page_name; |
| Line 1214 function phpMyEdit_filter_handler(theFor |
|
| Line 1215 function phpMyEdit_filter_handler(theFor |
|
| if (strlen($urllink) <= 0 || strlen($urldisp) <= 0) { |
if (strlen($urllink) <= 0 || strlen($urldisp) <= 0) { |
| $ret = ' '; |
$ret = ' '; |
| } else { |
} else { |
| |
if ($escape) { |
| |
$urldisp = htmlspecialchars($urldisp); |
| |
} |
| $urllink = htmlspecialchars($urllink); |
$urllink = htmlspecialchars($urllink); |
| $urldisp = htmlspecialchars($urldisp); |
|
| $ret = '<a '.$target.'class="'.$css.'" href="'.$urllink.'">'.$urldisp.'</a>'; |
$ret = '<a '.$target.'class="'.$css.'" href="'.$urllink.'">'.$urldisp.'</a>'; |
| } |
} |
| return $ret; |
return $ret; |