| version 1.128, 2004/03/31 15:35:40 |
version 1.129, 2004/03/31 15:46:26 |
|
|
| * http://platon.sk/projects/phpMyEdit/ |
* http://platon.sk/projects/phpMyEdit/ |
| */ |
*/ |
| |
|
| /* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.127 2004/03/31 15:00:39 nepto Exp $ */ |
/* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.128 2004/03/31 15:35:40 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 2034 function phpMyEdit_filter_handler(theFor |
|
| Line 2034 function phpMyEdit_filter_handler(theFor |
|
| $qpcopy[] = 'operation='.$this->labels['Copy']; |
$qpcopy[] = 'operation='.$this->labels['Copy']; |
| $qpchange[] = 'operation='.$this->labels['Change']; |
$qpchange[] = 'operation='.$this->labels['Change']; |
| $qpdelete[] = 'operation='.$this->labels['Delete']; |
$qpdelete[] = 'operation='.$this->labels['Delete']; |
| $qpviewStr = '?'.join('&',$qpview).$this->qfn; |
$qpviewStr = htmlspecialchars($this->page_name.'?'.join('&',$qpview).$this->qfn); |
| $qpcopyStr = '?'.join('&',$qpcopy).$this->qfn; |
$qpcopyStr = htmlspecialchars($this->page_name.'?'.join('&',$qpcopy).$this->qfn); |
| $qpchangeStr = '?'.join('&',$qpchange).$this->qfn; |
$qpchangeStr = htmlspecialchars($this->page_name.'?'.join('&',$qpchange).$this->qfn); |
| $qpdeleteStr = '?'.join('&',$qpdelete).$this->qfn; |
$qpdeleteStr = htmlspecialchars($this->page_name.'?'.join('&',$qpdelete).$this->qfn); |
| } |
} |
| |
|
| $fetched = true; |
$fetched = true; |
| Line 2048 function phpMyEdit_filter_handler(theFor |
|
| Line 2048 function phpMyEdit_filter_handler(theFor |
|
| $fetched = false; |
$fetched = false; |
| echo '<tr class="',$this->getCSSclass('row', null, 'next'),'">',"\n"; |
echo '<tr class="',$this->getCSSclass('row', null, 'next'),'">',"\n"; |
| if ($sys_cols) { /* {{{ */ |
if ($sys_cols) { /* {{{ */ |
| $key_rec = $row['qf'.$this->key_num]; |
$key_rec = $row['qf'.$this->key_num]; |
| $qviewStr = $qpviewStr . '&rec='.$key_rec; |
$viewQuery = $qpviewStr . htmlspecialchars('&rec='.$key_rec); |
| $qcopyStr = $qpcopyStr . '&rec='.$key_rec; |
$copyQuery = $qpcopyStr . htmlspecialchars('&rec='.$key_rec); |
| $qchangeStr = $qpchangeStr . '&rec='.$key_rec; |
$changeQuery = $qpchangeStr . htmlspecialchars('&rec='.$key_rec); |
| $qdeleteStr = $qpdeleteStr . '&rec='.$key_rec; |
$deleteQuery = $qpdeleteStr . htmlspecialchars('&rec='.$key_rec); |
| |
$viewTitle = htmlspecialchars($this->labels['View']); |
| |
$changeTitle = htmlspecialchars($this->labels['Change']); |
| |
$copyTitle = htmlspecialchars($this->labels['Copy']); |
| |
$deleteTitle = htmlspecialchars($this->labels['Delete']); |
| $css_class_name = $this->getCSSclass('navigation', null, true); |
$css_class_name = $this->getCSSclass('navigation', null, true); |
| if ($select_recs) { |
if ($select_recs) { |
| if (! $this->nav_buttons() || $sys_cols > 1) { |
if (! $this->nav_buttons() || $sys_cols > 1) { |
| Line 2062 function phpMyEdit_filter_handler(theFor |
|
| Line 2066 function phpMyEdit_filter_handler(theFor |
|
| $printed_out = false; |
$printed_out = false; |
| if ($this->view_enabled()) { |
if ($this->view_enabled()) { |
| $printed_out = true; |
$printed_out = true; |
| echo '<a class="',$css_class_name,'" href="'; |
echo '<a class="',$css_class_name,'" href="',$viewQuery,'"><img class="'; |
| echo htmlspecialchars($this->page_name.$qviewStr),'"><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" alt="'; |
echo 'pme-view.png" height="15" width="16" border="0" '; |
| echo htmlspecialchars($this->labels['View']),'" title="'; |
echo 'alt="',$viewTitle,'" title="',$viewTitle,'"></a>'; |
| echo htmlspecialchars($this->labels['View']),'"></a>'; |
|
| } |
} |
| if ($this->change_enabled()) { |
if ($this->change_enabled()) { |
| $printed_out && print(' '); |
$printed_out && print(' '); |
| $printed_out = true; |
$printed_out = true; |
| echo '<a class="',$css_class_name,'" href="'; |
echo '<a class="',$css_class_name,'" href="',$changeQuery,'"><img class="'; |
| echo htmlspecialchars($this->page_name.$qchangeStr),'"><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" alt="'; |
echo 'pme-change.png" height="15" width="16" border="0" '; |
| echo htmlspecialchars($this->labels['Change']),'" title="'; |
echo 'alt="',$changeTitle,'" title="',$changeTitle,'"></a>'; |
| echo htmlspecialchars($this->labels['Change']),'"></a>'; |
|
| } |
} |
| if ($this->copy_enabled()) { |
if ($this->copy_enabled()) { |
| $printed_out && print(' '); |
$printed_out && print(' '); |
| $printed_out = true; |
$printed_out = true; |
| echo '<a class="',$css_class_name,'" href="'; |
echo '<a class="',$css_class_name,'" href="',$copyQuery,'"><img class="'; |
| echo htmlspecialchars($this->page_name.$qcopyStr),'"><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" alt="'; |
echo 'pme-copy.png" height="15" width="16" border="0" '; |
| echo htmlspecialchars($this->labels['Copy']),'" title="'; |
echo 'alt="',$copyTitle,'" title="',$copyTitle,'"></a>'; |
| echo htmlspecialchars($this->labels['Copy']),'"></a>'; |
|
| } |
} |
| if ($this->delete_enabled()) { |
if ($this->delete_enabled()) { |
| $printed_out && print(' '); |
$printed_out && print(' '); |
| $printed_out = true; |
$printed_out = true; |
| echo '<a class="',$css_class_name,'" href="'; |
echo '<a class="',$css_class_name,'" href="',$deleteQuery,'"><img class="'; |
| echo htmlspecialchars($this->page_name.$qdeleteStr),'"><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" alt="'; |
echo 'pme-delete.png" height="15" width="16" border="0" '; |
| echo htmlspecialchars($this->labels['Delete']),'" title="'; |
echo 'alt="',$deleteTitle,'" title="',$deleteTitle,'"></a>'; |
| echo htmlspecialchars($this->labels['Delete']),'"></a>'; |
|
| } |
} |
| } |
} |
| if ($this->nav_text_links()) { |
if ($this->nav_text_links()) { |
| Line 2107 function phpMyEdit_filter_handler(theFor |
|
| Line 2103 function phpMyEdit_filter_handler(theFor |
|
| $printed_out = false; |
$printed_out = false; |
| if ($this->view_enabled()) { |
if ($this->view_enabled()) { |
| $printed_out = true; |
$printed_out = true; |
| echo '<a class="',$css_class_name,'" href="'; |
echo '<a href="',$viewQuery,'" title="',$viewTitle,'" class="',$css_class_name,'">V</a>'; |
| echo htmlspecialchars($this->page_name.$qviewStr),'">V</a> '; |
|
| } |
} |
| if ($this->change_enabled()) { |
if ($this->change_enabled()) { |
| $printed_out && print(' '); |
$printed_out && print(' '); |
| $printed_out = true; |
$printed_out = true; |
| echo '<a class="',$css_class_name,'" href="'; |
echo '<a href="',$changeQuery,'" title="',$changeTitle,'" class="',$css_class_name,'">C</a>'; |
| echo htmlspecialchars($this->page_name.$qchangeStr),'">C</a> '; |
|
| } |
} |
| if ($this->copy_enabled()) { |
if ($this->copy_enabled()) { |
| $printed_out && print(' '); |
$printed_out && print(' '); |
| $printed_out = true; |
$printed_out = true; |
| echo '<a class="',$css_class_name,'" href="'; |
echo '<a href="',$copyQuery,'" title="',$copyTitle,'" class="',$css_class_name,'">P</a>'; |
| echo htmlspecialchars($this->page_name.$qcopyStr),'">P</a> '; |
|
| } |
} |
| if ($this->delete_enabled()) { |
if ($this->delete_enabled()) { |
| $printed_out && print(' '); |
$printed_out && print(' '); |
| $printed_out = true; |
$printed_out = true; |
| echo '<a class="',$css_class_name,'" href="'; |
echo '<a href="',$deleteQuery,'" title="',$deleteTitle,'" class="',$css_class_name,'">D</a>'; |
| echo htmlspecialchars($this->page_name.$qdeleteStr),'">D</a>'; |
|
| } |
} |
| } |
} |
| if (! $this->nav_buttons() || $sys_cols > 1) { |
if (! $this->nav_buttons() || $sys_cols > 1) { |