| verzia 1.4, 2003/01/03 14:33:37 |
verzia 1.5, 2003/03/31 00:16:25 |
|
|
| "Extensions". Main extension configuration is done via $opts['ext'] array. |
"Extensions". Main extension configuration is done via $opts['ext'] array. |
| All options are optional. |
All options are optional. |
| |
|
| $opts['ext']['rec'] - initial primary key (ie. ID) of record to display |
$opts['ext']['rec'] - primary key value of record to display initially |
| $opts['ext']['next'] - next record primary key |
|
| $opts['ext']['prev'] - previous record primary key |
|
| $opts['ext']['next_disable'] - disable functionality of next button |
$opts['ext']['next_disable'] - disable functionality of next button |
| $opts['ext']['prev_disable'] - disable functionality of prev button |
$opts['ext']['prev_disable'] - disable functionality of prev button |
| |
|
| |
Extension internal variables follows. |
| |
|
| |
$opts['ext']['next'] - primary key value of next record |
| |
$opts['ext']['prev'] - primary key value of previous record |
| */ |
*/ |
| |
|
| /* $Platon: phpMyEdit/extensions/phpMyEdit-slide.class.php,v 1.3 2002/11/02 19:16:45 nepto Exp $ */ |
/* $Platon: phpMyEdit/extensions/phpMyEdit-slide.class.php,v 1.4 2003/01/03 14:33:37 nepto Exp $ */ |
| |
|
| require_once dirname(__FILE__).'/../phpMyEdit.class.php'; |
require_once dirname(__FILE__).'/../phpMyEdit.class.php'; |
| |
|
| Riadok 48 class phpMyEdit_slide extends phpMyEdit |
|
| Riadok 51 class phpMyEdit_slide extends phpMyEdit |
|
| echo '<tr><td align=left style="text-align:left;border:0;padding:0;" nowrap>' . "\n"; |
echo '<tr><td align=left style="text-align:left;border:0;padding:0;" nowrap>' . "\n"; |
| if ($this->change_operation()) { |
if ($this->change_operation()) { |
| echo '<input type="submit" name="savechange" value="'.$this->labels['Save'].'" />'."\n"; |
echo '<input type="submit" name="savechange" value="'.$this->labels['Save'].'" />'."\n"; |
| |
echo '<input type="submit" name="morechange" value="'.$this->labels['Apply'].'" />'."\n"; |
| echo '<input type="button" name="cancel" value="'.$this->labels['Cancel'].'" onClick="form.submit();" />'."\n"; |
echo '<input type="button" name="cancel" value="'.$this->labels['Cancel'].'" onClick="form.submit();" />'."\n"; |
| echo '<input type="hidden" name="rec_change" value="1">'; |
echo '<input type="hidden" name="rec_change" value="1">'; |
| } elseif ($this->view_operation()) { |
} elseif ($this->view_operation()) { |
| Riadok 102 class phpMyEdit_slide extends phpMyEdit |
|
| Riadok 106 class phpMyEdit_slide extends phpMyEdit |
|
| $query_parts = array( |
$query_parts = array( |
| 'type' => 'select', |
'type' => 'select', |
| // XXX FIXME - simplify query |
// XXX FIXME - simplify query |
| 'select' => 'Table0.'.$this->key, |
'select' => 'PMEtable0.'.$this->key, |
| 'from' => $this->create_join_clause(), |
'from' => $this->create_join_clause(), |
| 'where' => $this->make_where_from_query_opts()); |
'where' => $this->make_where_from_query_opts()); |
| // TODO: order by clausule according to default sort order options |
// TODO: order by clausule according to default sort order options |