| version 1.190, 2007/04/11 19:39:39 |
version 1.191, 2007/04/11 19:55:57 |
|
|
| if ($this->add_operation() |
if ($this->add_operation() |
| || $this->copy_operation() |
|| $this->copy_operation() |
| || $this->change_operation()) { |
|| $this->change_operation()) { |
| $ret = 'PMEtable0.'.$this->fds[$field]; |
$ret = 'PMEtable0.'.$this->sd.$this->fds[$field].$this->ed; |
| } else { |
} else { |
| if ($this->fdd[$this->fds[$field]]['values']['description'] && ! $dont_desc) { |
if ($this->fdd[$this->fds[$field]]['values']['description'] && ! $dont_desc) { |
| $desc = &$this->fdd[$this->fds[$field]]['values']['description']; |
$desc = &$this->fdd[$this->fds[$field]]['values']['description']; |
|
|
| } elseif (0 && $this->fdd[$this->fds[$field]]['values']['column'] && ! $dont_cols) { |
} elseif (0 && $this->fdd[$this->fds[$field]]['values']['column'] && ! $dont_cols) { |
| $ret = 'PMEjoin'.$field.'.'.$this->fdd[$this->fds[$field]]['values']['column']; |
$ret = 'PMEjoin'.$field.'.'.$this->fdd[$this->fds[$field]]['values']['column']; |
| } else { |
} else { |
| $ret = 'PMEtable0.'.$this->fds[$field]; |
$ret = 'PMEtable0.'.$this->sd.$this->fds[$field].$this->ed; |
| } |
} |
| // TODO: not neccessary, remove me! |
// TODO: not neccessary, remove me! |
| if (is_array($this->fdd[$this->fds[$field]]['values2'])) { |
if (is_array($this->fdd[$this->fds[$field]]['values2'])) { |
|
|
| if (! $this->displayed[$k] && $k != $this->key_num) { |
if (! $this->displayed[$k] && $k != $this->key_num) { |
| continue; |
continue; |
| } |
} |
| $fields[] = $this->fqn($k).' AS qf'.$k; |
$fields[] = $this->fqn($k).' AS qf'.$k; // no delimiters here |
| if ($this->col_has_values($k)) { |
if ($this->col_has_values($k)) { |
| $fields[] = $this->fqn($k, true, true).' AS qf'.$k.'_idx'; |
$fields[] = $this->fqn($k, true, true).' AS qf'.$k.'_idx'; |
| } |
} |
| Line 2611 function '.$this->js['prefix'].'filter_h |
|
| Line 2611 function '.$this->js['prefix'].'filter_h |
|
| $value = "'".addslashes($val)."'"; |
$value = "'".addslashes($val)."'"; |
| } |
} |
| if ($query == '') { |
if ($query == '') { |
| $query = 'INSERT INTO '.$this->tb.' ('.$fd.''; // ) |
$query = 'INSERT INTO '.$this->sd.$this->tb.$this->ed.' ('.$this->sd.$fd.$this->ed.''; // ) |
| $query2 = ') VALUES ('.$value.''; |
$query2 = ') VALUES ('.$value.''; |
| } else { |
} else { |
| $query .= ', '.$fd.''; |
$query .= ', '.$this->sd.$fd.$this->ed.''; |
| $query2 .= ', '.$value.''; |
$query2 .= ', '.$value.''; |
| } |
} |
| } |
} |
| Line 2661 function '.$this->js['prefix'].'filter_h |
|
| Line 2661 function '.$this->js['prefix'].'filter_h |
|
| $fn = $this->get_data_cgi_var($fd); |
$fn = $this->get_data_cgi_var($fd); |
| $newvals[$this->fds[$k]] = is_array($fn) ? join(',',$fn) : $fn; |
$newvals[$this->fds[$k]] = is_array($fn) ? join(',',$fn) : $fn; |
| if ($query_oldrec == '') { |
if ($query_oldrec == '') { |
| $query_oldrec = 'SELECT '.$fd; |
$query_oldrec = 'SELECT '.$this->sd.$fd.$this->ed; |
| } else { |
} else { |
| $query_oldrec .= ','.$fd; |
$query_oldrec .= ','.$this->sd.$fd.$this->ed; |
| } |
} |
| } |
} |
| } |
} |
| $where_part = " WHERE (".$this->key.'='.$this->key_delim.$this->rec.$this->key_delim.')'; |
$where_part = " WHERE (".$this->sd.$this->key.$this->ed.'='.$this->key_delim.$this->rec.$this->key_delim.')'; |
| $query_newrec = $query_oldrec.' FROM ' . $this->tb; |
$query_newrec = $query_oldrec.' FROM ' . $this->tb; |
| $query_oldrec .= ' FROM ' . $this->tb . $where_part; |
$query_oldrec .= ' FROM ' . $this->sd.$this->tb.$this->ed . $where_part; |
| // Additional query (must go before real query) |
// Additional query (must go before real query) |
| $res = $this->myquery($query_oldrec, __LINE__); |
$res = $this->myquery($query_oldrec, __LINE__); |
| $oldvals = $this->sql_fetch($res); |
$oldvals = $this->sql_fetch($res); |
| Line 2699 function '.$this->js['prefix'].'filter_h |
|
| Line 2699 function '.$this->js['prefix'].'filter_h |
|
| $value = "'".addslashes($val)."'"; |
$value = "'".addslashes($val)."'"; |
| } |
} |
| if ($query_real == '') { |
if ($query_real == '') { |
| $query_real = 'UPDATE '.$this->tb.' SET '.$fd.'='.$value; |
$query_real = 'UPDATE '.$this->sd.$this->tb.$this->ed.' SET '.$this->sd.$fd.$this->ed.'='.$value; |
| } else { |
} else { |
| $query_real .= ','.$fd.'='.$value; |
$query_real .= ','.$this->sd.$fd.$this->ed.'='.$value; |
| } |
} |
| } |
} |
| $query_real .= $where_part; |
$query_real .= $where_part; |
| Line 2754 function '.$this->js['prefix'].'filter_h |
|
| Line 2754 function '.$this->js['prefix'].'filter_h |
|
| function do_delete_record() /* {{{ */ |
function do_delete_record() /* {{{ */ |
| { |
{ |
| // Additional query |
// Additional query |
| $query = 'SELECT * FROM '.$this->tb.' WHERE ('.$this->key.' = ' |
$query = 'SELECT * FROM '.$this->sd.$this->tb.$this->ed.' WHERE ('.$this->sd.$this->key.$this->ed.' = ' |
| .$this->key_delim.$this->rec.$this->key_delim.')'; // ) |
.$this->key_delim.$this->rec.$this->key_delim.')'; // ) |
| $res = $this->myquery($query, __LINE__); |
$res = $this->myquery($query, __LINE__); |
| $oldvals = $this->sql_fetch($res); |
$oldvals = $this->sql_fetch($res); |
| Line 3100 function '.$this->js['prefix'].'filter_h |
|
| Line 3100 function '.$this->js['prefix'].'filter_h |
|
| if ($this->connect() == false) { |
if ($this->connect() == false) { |
| return false; |
return false; |
| } |
} |
| |
$this->sql_delimiter(); |
| |
|
| /* |
/* |
| * ====================================================================== |
* ====================================================================== |
| Line 3369 function '.$this->js['prefix'].'filter_h |
|
| Line 3370 function '.$this->js['prefix'].'filter_h |
|
| * vim600:fdm=marker fdl=0 fdc=0: |
* vim600:fdm=marker fdl=0 fdc=0: |
| * }}} */ |
* }}} */ |
| |
|
| ?> |
?> |
| |
|