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

Diff for Metafox/lib/phpMyEdit/phpMyEdit.class.php between version 1.2 and 1.3

version 1.2, 2006/03/29 09:24:58 version 1.3, 2006/06/21 18:14:04
Line 231  class phpMyEdit
Line 231  class phpMyEdit
         function prev_operation()       { return ($this->navop == $this->labels['Prev']) || ($this->navop == '<'); }          function prev_operation()       { return ($this->navop == $this->labels['Prev']) || ($this->navop == '<'); }
         function first_operation()      { return ($this->navop == $this->labels['First']) || ($this->navop == '<<'); }          function first_operation()      { return ($this->navop == $this->labels['First']) || ($this->navop == '<<'); }
         function last_operation()       { return ($this->navop == $this->labels['Last']) || ($this->navop == '>>'); }          function last_operation()       { return ($this->navop == $this->labels['Last']) || ($this->navop == '>>'); }
         function goto_operation()       { return $this->navop == $this->labels['Go to']; }  
         function clear_operation()      { return $this->sw == $this->labels['Clear'];  }          function clear_operation()      { return $this->sw == $this->labels['Clear'];  }
   
         function add_canceled()    { return $this->canceladd    == $this->labels['Cancel']; }          function add_canceled()    { return $this->canceladd    == $this->labels['Cancel']; }
Line 296  class phpMyEdit
Line 295  class phpMyEdit
                         echo "</pre>\n";                          echo "</pre>\n";
                 } else {                  } else {
                         echo 'debug_var()::<i>',htmlspecialchars($name),'</i>';                          echo 'debug_var()::<i>',htmlspecialchars($name),'</i>';
                         echo '::<b>',htmlspecialchars($val),'</b>::',"<br />\n";                          echo '::<b>',htmlspecialchars($val),'</b>::',"<br />\n";
                 }                  }
         } /* }}} */          } /* }}} */
   
Line 305  class phpMyEdit
Line 304  class phpMyEdit
                 global $debug_query;                  global $debug_query;
                 if ($debug_query || $debug) {                  if ($debug_query || $debug) {
                         $line = intval($line);                          $line = intval($line);
                         echo '<h4>MySQL query at line ',$line,'</h4>',htmlspecialchars($qry),'<hr />',"\n";                          echo '<h4>MySQL query at line ',$line,'</h4>',htmlspecialchars($qry),'<hr />',"\n";
                 }                  }
                 if (isset($this->db)) {                  if (isset($this->db)) {
                         $ret = @mysql_db_query($this->db, $qry, $this->dbh);                          $ret = @mysql_db_query($this->db, $qry, $this->dbh);
Line 314  class phpMyEdit
Line 313  class phpMyEdit
                 }                  }
                 if (! $ret) {                  if (! $ret) {
                         echo '<h4>MySQL error ',mysql_errno($this->dbh),'</h4>';                          echo '<h4>MySQL error ',mysql_errno($this->dbh),'</h4>';
                         echo htmlspecialchars(mysql_error($this->dbh)),'<hr />',"\n";                          echo htmlspecialchars(mysql_error($this->dbh)),'<hr />',"\n";
                 }                  }
                 return $ret;                  return $ret;
         } /* }}} */          } /* }}} */
Line 382  class phpMyEdit
Line 381  class phpMyEdit
                                 }                                  }
                                 foreach ($desc['columns'] as $key => $val) {                                  foreach ($desc['columns'] as $key => $val) {
                                         if ($val) {                                          if ($val) {
                                                 $qparts['select'] .= $val;                                                  $qparts['select'] .= 'IFNULL('.$val.',"")';
                                                 if ($desc['divs'][$key]) {                                                  if ($desc['divs'][$key]) {
                                                         $qparts['select'] .= ',"'.addslashes($desc['divs'][$key]).'"';                                                          $qparts['select'] .= ',"'.addslashes($desc['divs'][$key]).'"';
                                                 }                                                  }
Line 391  class phpMyEdit
Line 390  class phpMyEdit
                                 }                                  }
                                 $qparts['select']{strlen($qparts['select']) - 1} = ')';                                  $qparts['select']{strlen($qparts['select']) - 1} = ')';
                                 $qparts['select'] .= ' AS PMEalias'.$field_num;                                  $qparts['select'] .= ' AS PMEalias'.$field_num;
                                 $qparts['orderby'] = empty($desc['orderby'])                                  $qparts['orderby'] = 'PMEalias'.$field_num;
                                         ? 'PMEalias'.$field_num : $desc['orderby'];  
                         } else if ($desc && is_array($desc)) {                          } else if ($desc && is_array($desc)) {
                                 // TODO                                  // TODO
                         } else if ($desc) {                          } else if ($desc) {
Line 408  class phpMyEdit
Line 406  class phpMyEdit
                                         'description' => $desc);                                          'description' => $desc);
                         $qparts['where'] = $this->substituteVars($this->fdd[$field_num]['values']['filters'], $ar);                          $qparts['where'] = $this->substituteVars($this->fdd[$field_num]['values']['filters'], $ar);
                         if ($this->fdd[$field_num]['values']['orderby']) {                          if ($this->fdd[$field_num]['values']['orderby']) {
                                 $qparts['orderby'] = substituteVars($this->fdd[$field_num]['values']['orderby'], $ar);                                  $qparts['orderby'] = $this->substituteVars($this->fdd[$field_num]['values']['orderby'], $ar);
                         }                          }
                 } else { /* simple value extraction */                  } else { /* simple value extraction */
                         $key = &$this->fds[$field_num];                          $key = &$this->fds[$field_num];
Line 896  function '.$this->js['prefix'].'filter_h
Line 894  function '.$this->js['prefix'].'filter_h
                 }                  }
   
                 if ($this->display['form']) {                  if ($this->display['form']) {
                         echo '<form class="',$this->getCSSclass('form'),'" method="post"';                          echo '<form class="',$this->getCSSclass('form'),'" method="post"';
                         echo ' action="',$page_name,'" name="'.$this->cgi['prefix']['sys'].'form">',"\n";                          echo ' action="',$page_name,'" name="'.$this->cgi['prefix']['sys'].'form">',"\n";
                 }                  }
                 return true;                  return true;
Line 914  function '.$this->js['prefix'].'filter_h
Line 912  function '.$this->js['prefix'].'filter_h
                 if (! is_array($this->tabs)) {                  if (! is_array($this->tabs)) {
                         return false;                          return false;
                 }                  }
                 echo '<table summary="labels" class="',$this->getCSSclass('tab', $position),'">',"\n";                  echo '<table summary="labels" class="',$this->getCSSclass('tab', $position),'">',"\n";
                 echo '<tr class="',$this->getCSSclass('tab', $position),'">',"\n";                  echo '<tr class="',$this->getCSSclass('tab', $position),'">',"\n";
                 for ($i = ($this->tabs[0] == 'PMEtab0' ? 1 : 0); $i < count($this->tabs); $i++) {                  for ($i = ($this->tabs[0] == 'PMEtab0' ? 1 : 0); $i < count($this->tabs); $i++) {
                         $css_class_name = $this->getCSSclass($i != $this->cur_tab ? 'tab' : 'tab-selected', $position);                          $css_class_name = $this->getCSSclass($i != $this->cur_tab ? 'tab' : 'tab-selected', $position);
Line 992  function '.$this->js['prefix'].'filter_h
Line 990  function '.$this->js['prefix'].'filter_h
                                 echo ($this->readonly($k) ? ' disabled' : '');                                  echo ($this->readonly($k) ? ' disabled' : '');
                                 echo ' name="',$this->cgi['prefix']['data'].$this->fds[$k],'"';                                  echo ' name="',$this->cgi['prefix']['data'].$this->fds[$k],'"';
                                 echo $size_ml_props,' value="';                                  echo $size_ml_props,' value="';
                                 echo htmlspecialchars($this->fdd[$k]['default']),'" />';                                  echo htmlspecialchars($this->fdd[$k]['default']),'" />';
                         }                          }
                         echo '</td>',"\n";                          echo '</td>',"\n";
                         if ($this->guidance) {                          if ($this->guidance) {
Line 1118  function '.$this->js['prefix'].'filter_h
Line 1116  function '.$this->js['prefix'].'filter_h
                         echo '<input class="',$css_class_name,'" type="text" ';                          echo '<input class="',$css_class_name,'" type="text" ';
                         echo ($this->readonly($k) ? 'disabled ' : '');                          echo ($this->readonly($k) ? 'disabled ' : '');
                         echo 'name="',$this->cgi['prefix']['data'].$this->fds[$k],'" value="';                          echo 'name="',$this->cgi['prefix']['data'].$this->fds[$k],'" value="';
                         echo htmlspecialchars($row["qf$k"]),'" ',$size_ml_props,' />',"\n";                          echo htmlspecialchars($row["qf$k"]),'" ',$size_ml_props,' />',"\n";
                 }                  }
                 echo '</td>',"\n";                  echo '</td>',"\n";
         } /* }}} */          } /* }}} */
Line 1136  function '.$this->js['prefix'].'filter_h
Line 1134  function '.$this->js['prefix'].'filter_h
                 echo '<input class="',$this->getCSSclass('value', null, true, $css_postfix),'" type="password" ';                  echo '<input class="',$this->getCSSclass('value', null, true, $css_postfix),'" type="password" ';
                 echo ($this->readonly($k) ? 'disabled ' : '');                  echo ($this->readonly($k) ? 'disabled ' : '');
                 echo 'name="',$this->cgi['prefix']['data'].$this->fds[$k],'" value="';                  echo 'name="',$this->cgi['prefix']['data'].$this->fds[$k],'" value="';
                 echo htmlspecialchars($row["qf$k"]),'" ',$size_ml_props,' />',"\n";                  echo htmlspecialchars($row["qf$k"]),'" ',$size_ml_props,' />',"\n";
                 echo '</td>',"\n";                  echo '</td>',"\n";
         } /* }}} */          } /* }}} */
   
Line 1354  function '.$this->js['prefix'].'filter_h
Line 1352  function '.$this->js['prefix'].'filter_h
         function htmlSubmit($name, $label, $css_class_name, $js_validation = true, $disabled = false, $js = NULL) /* {{{ */          function htmlSubmit($name, $label, $css_class_name, $js_validation = true, $disabled = false, $js = NULL) /* {{{ */
         {          {
                 // Note that <input disabled> isn't valid HTML, but most browsers support it                  // Note that <input disabled> isn't valid HTML, but most browsers support it
                   if($disabled == -1) return;
                 $markdisabled = $disabled ? ' disabled' : '';                  $markdisabled = $disabled ? ' disabled' : '';
                 $ret = '<input'.$markdisabled.' type="submit" class="'.$css_class_name                  $ret = '<input'.$markdisabled.' type="submit" class="'.$css_class_name
                         .'" name="'.$this->cgi['prefix']['sys'].ltrim($markdisabled).$name                          .'" name="'.$this->cgi['prefix']['sys'].ltrim($markdisabled).$name
Line 1363  function '.$this->js['prefix'].'filter_h
Line 1362  function '.$this->js['prefix'].'filter_h
                 }                  }
                 $ret .='"';                  $ret .='"';
                 if(isset($js)) $ret .= ' '.$js;                  if(isset($js)) $ret .= ' '.$js;
                 $ret .= ' />';                  $ret .= ' />';
                 return $ret;                  return $ret;
         } /* }}} */          } /* }}} */
   
Line 1387  function '.$this->js['prefix'].'filter_h
Line 1386  function '.$this->js['prefix'].'filter_h
         function htmlHidden($name, $value) /* {{{ */          function htmlHidden($name, $value) /* {{{ */
         {          {
                 return '<input type="hidden" name="'.htmlspecialchars($name)                  return '<input type="hidden" name="'.htmlspecialchars($name)
                         .'" value="'.htmlspecialchars($value).'" />'."\n";                          .'" value="'.htmlspecialchars($value).'" />'."\n";
         } /* }}} */          } /* }}} */
   
         /**          /**
Line 1402  function '.$this->js['prefix'].'filter_h
Line 1401  function '.$this->js['prefix'].'filter_h
          * @param       readonly        bool for readonly/disabled selection           * @param       readonly        bool for readonly/disabled selection
          * @param       strip_tags      bool for stripping tags from values           * @param       strip_tags      bool for stripping tags from values
          * @param       escape          bool for HTML escaping values           * @param       escape          bool for HTML escaping values
            * @param       js              string to be in the <select >, ususally onChange='..';
          */           */
         function htmlSelect($name, $css, $kv_array, $selected = null, /* ...) {{{ */          function htmlSelect($name, $css, $kv_array, $selected = null, /* ...) {{{ */
                         /* booleans: */ $multiple = false, $readonly = false, $strip_tags = false, $escape = true)                          /* booleans: */ $multiple = false, $readonly = false, $strip_tags = false, $escape = true, $js = NULL)
         {          {
                 $ret = '<select class="'.htmlspecialchars($css).'" name="'.htmlspecialchars($name);                  $ret = '<select class="'.htmlspecialchars($css).'" name="'.htmlspecialchars($name);
                 if ($multiple) {                  if ($multiple) {
Line 1413  function '.$this->js['prefix'].'filter_h
Line 1413  function '.$this->js['prefix'].'filter_h
                                 $selected = explode(',', $selected);                                  $selected = explode(',', $selected);
                         }                          }
                 }                  }
                 $ret .= '"'.($readonly ? ' disabled' : '').'>'."\n";                  $ret .= '"'.($readonly ? ' disabled' : '').$js.'>'."\n";
                 if (! is_array($selected)) {                  if (! is_array($selected)) {
                         $selected = $selected === null ? array() : array($selected);                          $selected = $selected === null ? array() : array($selected);
                 }                  }
Line 1442  function '.$this->js['prefix'].'filter_h
Line 1442  function '.$this->js['prefix'].'filter_h
      *                                  if null, empty values will be skipped       *                                  if null, empty values will be skipped
      * @return                          get HTML code of original varaibles       * @return                          get HTML code of original varaibles
      */       */
     function get_origvars_html($origvars, $method = 'post', $default_value = '') /* {{{ */      function get_origvars_html($origvars, $method = 'post', $default_value = '') /* {{{ */
     {      {
         $ret    = '';          $ret    = '';
         $method = strtoupper($method);          $method = strtoupper($method);
Line 1687  function '.$this->js['prefix'].'filter_h
Line 1687  function '.$this->js['prefix'].'filter_h
         {          {
                 if (($but_str = $this->display_buttons($position)) === null)                  if (($but_str = $this->display_buttons($position)) === null)
                         return;                          return;
                 if($position == 'down') echo '<hr class="'.$this->getCSSclass('hr', 'down').'" />'."\n";                  if($position == 'down') echo '<hr class="'.$this->getCSSclass('hr', 'down').'" />'."\n";
                 echo '<table summary="navigation" class="',$this->getCSSclass('navigation', $position),'">',"\n";                  echo '<table summary="navigation" class="',$this->getCSSclass('navigation', $position),'">',"\n";
                 echo '<tr class="',$this->getCSSclass('navigation', $position),'">',"\n";                  echo '<tr class="',$this->getCSSclass('navigation', $position),'">',"\n";
                 echo '<td class="',$this->getCSSclass('buttons', $position),'">',"\n";                  echo '<td class="',$this->getCSSclass('buttons', $position),'">',"\n";
                 echo $but_str,'</td>',"\n";                  echo $but_str,'</td>',"\n";
Line 1712  function '.$this->js['prefix'].'filter_h
Line 1712  function '.$this->js['prefix'].'filter_h
                         echo '&nbsp; ',$this->labels['Records'],':&nbsp;',$this->total_recs;                          echo '&nbsp; ',$this->labels['Records'],':&nbsp;',$this->total_recs;
                 if($this->display['num_pages'] || $this->display['num_records']) echo '</td>';                  if($this->display['num_pages'] || $this->display['num_records']) echo '</td>';
                 echo '</tr></table>',"\n";                  echo '</tr></table>',"\n";
                 if($position == 'up') echo '<hr class="'.$this->getCSSclass('hr', 'up').'" />'."\n";                  if($position == 'up') echo '<hr class="'.$this->getCSSclass('hr', 'up').'" />'."\n";
         } /* }}} */          } /* }}} */
   
         /*          /*
Line 1724  function '.$this->js['prefix'].'filter_h
Line 1724  function '.$this->js['prefix'].'filter_h
                         return;                          return;
                 if ($position == 'down') {                  if ($position == 'down') {
                         if ($this->tabs_enabled()) $this->display_tab_labels('down');                          if ($this->tabs_enabled()) $this->display_tab_labels('down');
                         echo '<hr class="',$this->getCSSclass('hr', 'down'),'" />',"\n";                          echo '<hr class="',$this->getCSSclass('hr', 'down'),'" />',"\n";
                 }                  }
                 echo '<table summary="navigation" class="',$this->getCSSclass('navigation', $position),'">',"\n";                  echo '<table summary="navigation" class="',$this->getCSSclass('navigation', $position),'">',"\n";
                 echo '<tr class="',$this->getCSSclass('navigation', $position),'">',"\n";                  echo '<tr class="',$this->getCSSclass('navigation', $position),'">',"\n";
                 echo '<td class="',$this->getCSSclass('buttons', $position),'">',"\n";                  echo '<td class="',$this->getCSSclass('buttons', $position),'">',"\n";
                 echo $but_str,'</td>',"\n";                  echo $but_str,'</td>',"\n";
                 // Message is now written here                  // Message is now written here
                 //echo '</td>',"\n";                  //echo '</td>',"\n";
                 if (strlen(@$this->message) > 0) {                  if (strlen(@$this->message) > 0) {
                         echo '<td class="',$this->getCSSclass('message', $position),'">',$this->message,'</td>',"\n";                          echo '<td class="',$this->getCSSclass('message', $position),'">',$this->message,'</td>',"\n";
                 }                  }
                 echo '</tr></table>',"\n";                  echo '</tr></table>',"\n";
                 if ($position == 'up') {                  if ($position == 'up') {
                         if ($this->tabs_enabled()) $this->display_tab_labels('up');                          if ($this->tabs_enabled()) $this->display_tab_labels('up');
                         echo '<hr class="',$this->getCSSclass('hr', 'up'),'" />',"\n";                          echo '<hr class="',$this->getCSSclass('hr', 'up'),'" />',"\n";
                 }                  }
         } /* }}} */          } /* }}} */
   
Line 1749  function '.$this->js['prefix'].'filter_h
Line 1749  function '.$this->js['prefix'].'filter_h
                         return;                          return;
                 $buttons = (is_array($this->buttons[$this->page_type][$position]))                  $buttons = (is_array($this->buttons[$this->page_type][$position]))
                         ? $this->buttons[$this->page_type][$position]                          ? $this->buttons[$this->page_type][$position]
                         : $buttons = $this->default_buttons[$this->page_type];                          : $this->default_buttons[$this->page_type];
                 foreach ($buttons as $name) {                  foreach ($buttons as $name) {
                         $ret .= $this->display_button($name, $position)."\n";                          $ret .= $this->display_button($name, $position)."\n";
                 }                  }
Line 1812  function '.$this->js['prefix'].'filter_h
Line 1812  function '.$this->js['prefix'].'filter_h
                 // now some goto buttons/dropdowns/inputs...                  // now some goto buttons/dropdowns/inputs...
                 if ($name == 'goto_text') {                  if ($name == 'goto_text') {
                         $ret = '<input type="text" class="'.$this->getCSSclass('gotopn', $position).'"';                          $ret = '<input type="text" class="'.$this->getCSSclass('gotopn', $position).'"';
                         $ret .= ' name="navpn'.$position.'" value="'.($current_page+1).'"';                          $ret .= ' name="'.$this->cgi['prefix']['sys'].'navpn'.$position.'" value="'.($current_page+1).'"';
                         $ret .= ' size="'.(strlen($total_pages)+1).'" maxlength="'.(strlen($total_pages)+1).'"';                          $ret .= ' size="'.(strlen($total_pages)+1).'" maxlength="'.(strlen($total_pages)+1).'"';
                         // TODO some js here.... on enter submit, on click erase ?...                          // TODO some js here.... on enter submit, on click erase ?...
                         $ret .=' />';                          $ret .=' onKeyPress="return PE_filter_handler(this.form, event);" />';
                         return $ret;                          return $ret;
                 }                  }
                 if ($name == 'goto_combo') {                  if ($name == 'goto_combo') {
Line 1825  function '.$this->js['prefix'].'filter_h
Line 1825  function '.$this->js['prefix'].'filter_h
                         for ($i = 0; $i < $total_pages; $i++) {                          for ($i = 0; $i < $total_pages; $i++) {
                                 $kv_array[$this->inc * $i] = $i + 1;                                  $kv_array[$this->inc * $i] = $i + 1;
                         }                          }
                         // TODO: add onChange="return this.form.submit();"                          // TODO: add onChange="return this.form.submit();" DONE ???
                         return $this->htmlSelect($this->cgi['prefix']['sys'].ltrim($disabledgoto).'navfm'.$position,                          return $this->htmlSelect($this->cgi['prefix']['sys'].ltrim($disabledgoto).'navfm'.$position,
                                         $this->getCSSclass('goto', $position), $kv_array, (string)$this->fm, false, $disabledgoto);                                          $this->getCSSclass('goto', $position), $kv_array, (string)$this->fm, false, $disabledgoto,
                                           false, true, 'onChange="return this.form.submit();"');
                 }                  }
                 if ($name == 'goto') {                  if ($name == 'goto') {
                         return $this->htmlSubmit('navop', 'Go to', $this->getCSSclass('goto', $position),                          return $this->htmlSubmit('navop', 'Go to', $this->getCSSclass('goto', $position),
Line 1835  function '.$this->js['prefix'].'filter_h
Line 1836  function '.$this->js['prefix'].'filter_h
                 }                  }
                 if (in_array($name, array('first','prev','next','last','<<','<','>','>>'))) {                  if (in_array($name, array('first','prev','next','last','<<','<','>','>>'))) {
                         $disabled_var = 'disabled'.$name;                          $disabled_var = 'disabled'.$name;
                           $name2 = $name;
                         if (strlen($name) <= 2) {                          if (strlen($name) <= 2) {
                                 $nav_values = array('<<' => 'first', '<' => 'prev', '>' => 'next', '>>' => 'last');                                  $nav_values = array('<<' => 'first', '<' => 'prev', '>' => 'next', '>>' => 'last');
                                 $disabled_var = 'disabled'.$nav_values[$name];                                  $disabled_var = 'disabled'.$nav_values[$name];
                                   $name2 = $nav_values[$name];
                         }                          }
                         return $this->htmlSubmit('navop', ucfirst($name),                          return $this->htmlSubmit('navop', ucfirst($name),
                                         $this->getCSSclass($name, $position), false, $$disabled_var ? $disabled : 0);                                          $this->getCSSclass($name2, $position), false, $$disabled_var ? $disabled : 0);
                 }                  }
                 if(isset($this->labels[$name])) return $this->labels[$name];                  if(isset($this->labels[$name])) return $this->labels[$name];
                 return $name;                  return $name;
Line 1866  function '.$this->js['prefix'].'filter_h
Line 1869  function '.$this->js['prefix'].'filter_h
                 if ($this->fm == '') {                  if ($this->fm == '') {
                         $this->fm = 0;                          $this->fm = 0;
                 }                  }
                   $this->fm = $this->navfm;
                 if ($this->prev_operation()) {                  if ($this->prev_operation()) {
                         $this->fm = $this->fm - $this->inc;                          $this->fm = $this->fm - $this->inc;
                         if ($this->fm < 0) {                          if ($this->fm < 0) {
Line 1878  function '.$this->js['prefix'].'filter_h
Line 1882  function '.$this->js['prefix'].'filter_h
                 if ($this->next_operation()) {                  if ($this->next_operation()) {
                         $this->fm += $this->inc;                          $this->fm += $this->inc;
                 }                  }
                 if ($this->goto_operation()) {  
                         $this->fm = $this->navfm;  
                 }  
                 $this->number_of_recs();                  $this->number_of_recs();
                 if ($this->last_operation() || $this->fm > $this->total_recs) { // if goto_text is badly set                  if ($this->last_operation() || $this->fm > $this->total_recs) { // if goto_text is badly set
                         $this->fm = (int)(($this->total_recs - 1)/$this->inc)*$this->inc;                          $this->fm = (int)(($this->total_recs - 1)/$this->inc)*$this->inc;
Line 1890  function '.$this->js['prefix'].'filter_h
Line 1891  function '.$this->js['prefix'].'filter_h
                 if (0) { // DEBUG                  if (0) { // DEBUG
                         echo 'qfn vs. prev_qfn comparsion ';                          echo 'qfn vs. prev_qfn comparsion ';
                         echo '[<b>',htmlspecialchars($this->qfn),'</b>]';                          echo '[<b>',htmlspecialchars($this->qfn),'</b>]';
                         echo '[<b>',htmlspecialchars($this->prev_qfn),'</b>]<br />';                          echo '[<b>',htmlspecialchars($this->prev_qfn),'</b>]<br />';
                         echo 'comparsion <u>',($this->qfn == $this->prev_qfn ? 'proved' : 'failed'),'</u>';                          echo 'comparsion <u>',($this->qfn == $this->prev_qfn ? 'proved' : 'failed'),'</u>';
                         echo '<hr />';                          echo '<hr />';
                 }                  }
                 /*                  /*
                  * If user is allowed to Change/Delete records, we need an extra column                   * If user is allowed to Change/Delete records, we need an extra column
Line 2114  function '.$this->js['prefix'].'filter_h
Line 2115  function '.$this->js['prefix'].'filter_h
                                                 }                                                  }
                                                 echo '<input class="',$css_class_name,'" value="',htmlspecialchars(@$m);                                                  echo '<input class="',$css_class_name,'" value="',htmlspecialchars(@$m);
                                                 echo '" type="text" name="'.$this->cgi['prefix']['sys'].'qf'.$k.'"',$size_ml_props;                                                  echo '" type="text" name="'.$this->cgi['prefix']['sys'].'qf'.$k.'"',$size_ml_props;
                                                 echo ' onKeyPress="return '.$this->js['prefix'].'filter_handler(this.form, event);" />';                                                  echo ' onKeyPress="return '.$this->js['prefix'].'filter_handler(this.form, event);" />';
                                         } else {                                          } else {
                                                 echo '&nbsp;';                                                  echo '&nbsp;';
                                         }                                          }
Line 2132  function '.$this->js['prefix'].'filter_h
Line 2133  function '.$this->js['prefix'].'filter_h
                         echo '<tr class="',$css_class_name,'">',"\n";                          echo '<tr class="',$css_class_name,'">',"\n";
                         echo '<td class="',$css_class_name,'" colspan="',$sys_cols,'">';                          echo '<td class="',$css_class_name,'" colspan="',$sys_cols,'">';
                         echo '<a class="',$css_class_name,'" href="';                          echo '<a class="',$css_class_name,'" href="';
                         echo htmlspecialchars($this->get_server_var('PHP_SELF')                          echo htmlspecialchars($this->page_name
                                         .'?'.$this->cgi['prefix']['sys'].'fl'.'='.$this->fl                                          .'?'.$this->cgi['prefix']['sys'].'fl'.'='.$this->fl
                                         .'&'.$this->cgi['prefix']['sys'].'fm'.'='.$this->fm                                          .'&'.$this->cgi['prefix']['sys'].'fm'.'='.$this->fm
                                         .'&'.$this->cgi['prefix']['sys'].'qfn'.'='.rawurlencode($this->qfn)                                          .'&'.$this->cgi['prefix']['sys'].'qfn'.'='.rawurlencode($this->qfn)
Line 2212  function '.$this->js['prefix'].'filter_h
Line 2213  function '.$this->js['prefix'].'filter_h
                                                         echo '<a class="',$css_class_name,'" href="',$viewQuery,'"><img class="';                                                          echo '<a class="',$css_class_name,'" href="',$viewQuery,'"><img class="';
                                                         echo $css_class_name,'" src="',$this->url['images'];                                                          echo $css_class_name,'" src="',$this->url['images'];
                                                         echo 'pme-view.png" height="15" width="16" border="0" ';                                                          echo 'pme-view.png" height="15" width="16" border="0" ';
                                                         echo 'alt="',$viewTitle,'" title="',$viewTitle,'" /></a>';                                                          echo 'alt="',$viewTitle,'" title="',$viewTitle,'" /></a>';
                                                 }                                                  }
                                                 if ($this->change_enabled()) {                                                  if ($this->change_enabled()) {
                                                         $printed_out && print('&nbsp;');                                                          $printed_out && print('&nbsp;');
Line 2220  function '.$this->js['prefix'].'filter_h
Line 2221  function '.$this->js['prefix'].'filter_h
                                                         echo '<a class="',$css_class_name,'" href="',$changeQuery,'"><img class="';                                                          echo '<a class="',$css_class_name,'" href="',$changeQuery,'"><img class="';
                                                         echo $css_class_name,'" src="',$this->url['images'];                                                          echo $css_class_name,'" src="',$this->url['images'];
                                                         echo 'pme-change.png" height="15" width="16" border="0" ';                                                          echo 'pme-change.png" height="15" width="16" border="0" ';
                                                         echo 'alt="',$changeTitle,'" title="',$changeTitle,'" /></a>';                                                          echo 'alt="',$changeTitle,'" title="',$changeTitle,'" /></a>';
                                                 }                                                  }
                                                 if ($this->copy_enabled()) {                                                  if ($this->copy_enabled()) {
                                                         $printed_out && print('&nbsp;');                                                          $printed_out && print('&nbsp;');
Line 2228  function '.$this->js['prefix'].'filter_h
Line 2229  function '.$this->js['prefix'].'filter_h
                                                         echo '<a class="',$css_class_name,'" href="',$copyQuery,'"><img class="';                                                          echo '<a class="',$css_class_name,'" href="',$copyQuery,'"><img class="';
                                                         echo $css_class_name,'" src="',$this->url['images'];                                                          echo $css_class_name,'" src="',$this->url['images'];
                                                         echo 'pme-copy.png" height="15" width="16" border="0" ';                                                          echo 'pme-copy.png" height="15" width="16" border="0" ';
                                                         echo 'alt="',$copyTitle,'" title="',$copyTitle,'" /></a>';                                                          echo 'alt="',$copyTitle,'" title="',$copyTitle,'" /></a>';
                                                 }                                                  }
                                                 if ($this->delete_enabled()) {                                                  if ($this->delete_enabled()) {
                                                         $printed_out && print('&nbsp;');                                                          $printed_out && print('&nbsp;');
Line 2236  function '.$this->js['prefix'].'filter_h
Line 2237  function '.$this->js['prefix'].'filter_h
                                                         echo '<a class="',$css_class_name,'" href="',$deleteQuery,'"><img class="';                                                          echo '<a class="',$css_class_name,'" href="',$deleteQuery,'"><img class="';
                                                         echo $css_class_name,'" src="',$this->url['images'];                                                          echo $css_class_name,'" src="',$this->url['images'];
                                                         echo 'pme-delete.png" height="15" width="16" border="0" ';                                                          echo 'pme-delete.png" height="15" width="16" border="0" ';
                                                         echo 'alt="',$deleteTitle,'" title="',$deleteTitle,'" /></a>';                                                          echo 'alt="',$deleteTitle,'" title="',$deleteTitle,'" /></a>';
                                                 }                                                  }
                                         }                                          }
                                         if ($this->nav_text_links()) {                                          if ($this->nav_text_links()) {
Line 2275  function '.$this->js['prefix'].'filter_h
Line 2276  function '.$this->js['prefix'].'filter_h
                                                         echo ' checked';                                                          echo ' checked';
                                                         $first = false;                                                          $first = false;
                                                 }                                                  }
                                                 echo ' /></td>',"\n";                                                  echo ' /></td>',"\n";
                                         }                                          }
                                 } elseif ($this->filter_enabled()) {                                  } elseif ($this->filter_enabled()) {
                                         echo '<td class="',$css_class_name,'" colspan=',$sys_cols,'>&nbsp;</td>',"\n";                                          echo '<td class="',$css_class_name,'" colspan=',$sys_cols,'>&nbsp;</td>',"\n";
Line 2396  function '.$this->js['prefix'].'filter_h
Line 2397  function '.$this->js['prefix'].'filter_h
                         $this->display_copy_change_delete_record();                          $this->display_copy_change_delete_record();
                 }                  }
                 echo '</table>',"\n";                  echo '</table>',"\n";
                 if ($this->tabs_enabled()) {                  if ($this->tabs_enabled()) {
                 echo '</div>',"\n";                  echo '</div>',"\n";
                 }                                }
                 $this->display_record_buttons('down');                  $this->display_record_buttons('down');
   
                 $this->form_end();                  $this->form_end();
Line 2880  function '.$this->js['prefix'].'filter_h
Line 2881  function '.$this->js['prefix'].'filter_h
         {          {
                 echo '<h1>phpMyEdit error: ',htmlspecialchars($message),'</h1>',"\n";                  echo '<h1>phpMyEdit error: ',htmlspecialchars($message),'</h1>',"\n";
                 if ($additional_info != '') {                  if ($additional_info != '') {
                         echo '<hr />',htmlspecialchars($additional_info);                          echo '<hr />',htmlspecialchars($additional_info);
                 }                  }
                 return false;                  return false;
         } /* }}} */          } /* }}} */
Line 3153  function '.$this->js['prefix'].'filter_h
Line 3154  function '.$this->js['prefix'].'filter_h
                 $this->sw    = $this->get_sys_cgi_var('sw');                  $this->sw    = $this->get_sys_cgi_var('sw');
                 $this->rec   = $this->get_sys_cgi_var('rec', '');                  $this->rec   = $this->get_sys_cgi_var('rec', '');
                 $this->navop = $this->get_sys_cgi_var('navop');                  $this->navop = $this->get_sys_cgi_var('navop');
                 $navfmup     = intval($this->get_sys_cgi_var('navfmup'));                  $navfmup     = $this->get_sys_cgi_var('navfmup');
                 $navfmdown   = intval($this->get_sys_cgi_var('navfmdown'));                  $navfmdown   = $this->get_sys_cgi_var('navfmdown');
                 $this->navfm = $navfmup != $this->fm ? $navfmup : $navfmdown;                  $navpnup     = $this->get_sys_cgi_var('navpnup');
                   $navpndown   = $this->get_sys_cgi_var('navpndown');
                   if($navfmdown!=NULL && $navfmdown != $this->fm) $this->navfm = $navfmdown;
                   elseif($navfmup!=NULL && $navfmup != $this->fm) $this->navfm = $navfmup;
                   elseif($navpndown!=NULL && ($navpndown-1)*$this->inc != $this->fm) $this->navfm = ($navpndown-1)*$this->inc;
                   elseif($navpnup!=NULL && ($navpnup-1)*$this->inc != $this->fm) $this->navfm = ($navpnup-1)*$this->inc;
                   else $this->navfm = $this->fm;
                 $this->operation = $this->get_sys_cgi_var('operation');                  $this->operation = $this->get_sys_cgi_var('operation');
                 $oper_prefix_len = strlen($this->cgi['prefix']['operation']);                  $oper_prefix_len = strlen($this->cgi['prefix']['operation']);
                 if (! strncmp($this->cgi['prefix']['operation'], $this->operation, $oper_prefix_len)) {                  if (! strncmp($this->cgi['prefix']['operation'], $this->operation, $oper_prefix_len)) {
Line 3216  function '.$this->js['prefix'].'filter_h
Line 3223  function '.$this->js['prefix'].'filter_h
  * }}} */   * }}} */
   
 ?>  ?>
   

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

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