Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Friday, October 16, 2026

Diff for phpMyEdit/phpMyEdit.class.php between version 1.100 and 1.101

version 1.100, 2003/12/15 14:33:04 version 1.101, 2003/12/18 21:13:32
Line 19 
Line 19 
  * http://platon.sk/projects/phpMyEdit/   * http://platon.sk/projects/phpMyEdit/
  */   */
   
 /* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.99 2003/12/11 12:27:42 nepto Exp $ */  /* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.100 2003/12/15 14:33:04 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 1150  function phpMyEdit_form_control(theForm)
Line 1150  function phpMyEdit_form_control(theForm)
         /**          /**
          * Print URL           * Print URL
          */           */
         function urlDisplay($k, $value, $css, $key) /* {{{ */          function urlDisplay($k, $link_val, $disp_val, $css, $key) /* {{{ */
         {          {
                 $ret  = '';                  $ret  = '';
                 $name = $this->fds[$k];                  $name = $this->fds[$k];
Line 1161  function phpMyEdit_form_control(theForm)
Line 1161  function phpMyEdit_form_control(theForm)
                 $ar   = array(                  $ar   = array(
                                 'key'   => $key,                                  'key'   => $key,
                                 'name'  => $name,                                  'name'  => $name,
                                 'value' => $value,                                  'value' => $link_val,
                                 'css'   => $css,                                  'css'   => $css,
                                 'page'  => $page,                                  'page'  => $page,
                                 'url'   => $url                                  'url'   => $url
                                 );                                  );
                 $urllink = isset($this->fdd[$k]['URL'])                  $urllink = isset($this->fdd[$k]['URL'])
                         ?  $this->substituteVars($this->fdd[$k]['URL'], $ar)                          ?  $this->substituteVars($this->fdd[$k]['URL'], $ar)
                         : $value;                          : $link_val;
                 $urldisp = isset($this->fdd[$k]['URLdisp'])                  $urldisp = isset($this->fdd[$k]['URLdisp'])
                         ?  $this->substituteVars($this->fdd[$k]['URLdisp'], $ar)                          ?  $this->substituteVars($this->fdd[$k]['URLdisp'], $ar)
                         : $value;                          : $disp_val;
                 $target = isset($this->fdd[$k]['URLtarget'])                  $target = isset($this->fdd[$k]['URLtarget'])
                         ? 'target="'.htmlspecialchars($this->fdd[$k]['URLtarget']).'" '                          ? 'target="'.htmlspecialchars($this->fdd[$k]['URLtarget']).'" '
                         : '';                          : '';
Line 1236  function phpMyEdit_form_control(theForm)
Line 1236  function phpMyEdit_form_control(theForm)
                 } else {                  } else {
                         $value = $row["qf$k"];                          $value = $row["qf$k"];
                 }                  }
                   $original_value = $value;
                 if (@$this->fdd[$k]['strip_tags']) {                  if (@$this->fdd[$k]['strip_tags']) {
                         $value = strip_tags($value);                          $value = strip_tags($value);
                 }                  }
Line 1247  function phpMyEdit_form_control(theForm)
Line 1248  function phpMyEdit_form_control(theForm)
                         $value = sprintf($this->fdd[$k]['mask'], $value);                          $value = sprintf($this->fdd[$k]['mask'], $value);
                 }                  }
                 if ($this->col_has_URL($k)) {                  if ($this->col_has_URL($k)) {
                         return $this->urlDisplay($k, $value, $css, $key_rec);                          return $this->urlDisplay($k, $original_value, $value, $css, $key_rec);
                 }                  }
                 if (strlen($value) <= 0) {                  if (strlen($value) <= 0) {
                         return '&nbsp;';                          return '&nbsp;';

Legend:
Removed from v.1.100  
changed lines
  Added in v.1.101

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top