| version 1.117, 2004/01/20 10:26:58 |
version 1.118, 2004/01/20 10:37:55 |
|
|
| * http://platon.sk/projects/phpMyEdit/ |
* http://platon.sk/projects/phpMyEdit/ |
| */ |
*/ |
| |
|
| /* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.116 2004/01/16 19:46:32 nepto Exp $ */ |
/* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.117 2004/01/20 10:26:58 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 1604 function phpMyEdit_filter_handler(theFor |
|
| Line 1604 function phpMyEdit_filter_handler(theFor |
|
| $disabledgoto = !($listall || ($disablednext && $disabledprev)) ? '' : ' disabled'; |
$disabledgoto = !($listall || ($disablednext && $disabledprev)) ? '' : ' disabled'; |
| $current_page = intval($this->fm / $this->inc) + 1; |
$current_page = intval($this->fm / $this->inc) + 1; |
| $total_pages = max(1, ceil($total_recs / abs($this->inc))); |
$total_pages = max(1, ceil($total_recs / abs($this->inc))); |
| echo $this->htmlSubmit('navop', 'First', $this->getCSSclass('first', $position), false, $disabledprev), ' '; |
if (!$listall) { |
| echo $this->htmlSubmit('navop', 'Prev', $this->getCSSclass('prev', $position), false, $disabledprev), ' '; |
echo $this->htmlSubmit('navop', 'First', $this->getCSSclass('first', $position), false, $disabledprev), ' '; |
| |
echo $this->htmlSubmit('navop', 'Prev', $this->getCSSclass('prev', $position), false, $disabledprev), ' '; |
| |
} |
| if ($this->add_enabled()) { |
if ($this->add_enabled()) { |
| echo $this->htmlSubmit('operation', 'Add', $this->getCSSclass('add', $position), false, false), ' '; |
echo $this->htmlSubmit('operation', 'Add', $this->getCSSclass('add', $position), false, false), ' '; |
| } |
} |
| Line 1623 function phpMyEdit_filter_handler(theFor |
|
| Line 1625 function phpMyEdit_filter_handler(theFor |
|
| echo $this->htmlSubmit('operation', 'Delete', $this->getCSSclass('delete', $position), false, !$total_recs), ' '; |
echo $this->htmlSubmit('operation', 'Delete', $this->getCSSclass('delete', $position), false, !$total_recs), ' '; |
| } |
} |
| } |
} |
| echo $this->htmlSubmit('navop', 'Next', $this->getCSSclass('next', $position), false, $disablednext), ' '; |
if (!$listall) { //nav buttons are not displayed if explicit listall |
| echo $this->htmlSubmit('navop', 'Last', $this->getCSSclass('last', $position), false, $disablednext), ' '; |
echo $this->htmlSubmit('navop', 'Next', $this->getCSSclass('next', $position), false, $disablednext), ' '; |
| echo $this->htmlSubmit('navop', 'Go to', $this->getCSSclass('goto', $position), false, |
echo $this->htmlSubmit('navop', 'Last', $this->getCSSclass('last', $position), false, $disablednext), ' '; |
| |
echo $this->htmlSubmit('navop', 'Go to', $this->getCSSclass('goto', $position), false, |
| ($listall || ($disablednext && $disabledprev))); |
($listall || ($disablednext && $disabledprev))); |
| echo '<select',$disabledgoto,' class="',$this->getCSSclass('goto', $position); |
echo '<select',$disabledgoto,' class="',$this->getCSSclass('goto', $position); |
| echo '" name="',ltrim($disabledgoto),'navfm',$position,'" onChange="return this.form.submit();">',"\n"; |
echo '" name="',ltrim($disabledgoto),'navfm',$position,'" onChange="return this.form.submit();">',"\n"; |
| for ($i = 0; $i < $total_pages; $i++) { |
for ($i = 0; $i < $total_pages; $i++) { |
| echo '<option',($this->fm == $this->inc * $i) ? ' selected' : ''; |
echo '<option',($this->fm == $this->inc * $i) ? ' selected' : ''; |
| echo ' value="',$this->inc * $i,'">',$i + 1,'</option>',"\n"; |
echo ' value="',$this->inc * $i,'">',$i + 1,'</option>',"\n"; |
| |
} |
| |
echo '</select>'; |
| } |
} |
| echo '</select>'; |
|
| echo '</td>',"\n"; |
echo '</td>',"\n"; |
| // Message is now written here |
// Message is now written here |
| if (strlen(@$this->message) > 0) { |
if (strlen(@$this->message) > 0) { |