| verzia 1.1, 2002/10/30 11:52:40 |
verzia 1.2, 2002/11/02 13:17:16 |
|
|
| $opts['ext']['next'] - next record primary key |
$opts['ext']['next'] - next record primary key |
| $opts['ext']['prev'] - previous 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 next button |
$opts['ext']['prev_disable'] - disable functionality of prev button |
| */ |
*/ |
| |
|
| require_once dirname(__FILE__).'/../phpMyEdit.class.php'; |
require_once dirname(__FILE__).'/../phpMyEdit.class.php'; |
| Riadok 94 class phpMyEdit_slide extends phpMyEdit |
|
| Riadok 94 class phpMyEdit_slide extends phpMyEdit |
|
| if (! $this->rec |
if (! $this->rec |
| || (! $this->ext['prev_disable'] && ! $this->ext['prev']) |
|| (! $this->ext['prev_disable'] && ! $this->ext['prev']) |
| || (! $this->ext['next_disable'] && ! $this->ext['next'])) { |
|| (! $this->ext['next_disable'] && ! $this->ext['next'])) { |
| $this->connect(); |
if ($this->connect() == false) { |
| |
return false; |
| |
} |
| $query_parts = array( |
$query_parts = array( |
| 'type' => 'select', |
'type' => 'select', |
| // XXX FIXME - simplify query |
// XXX FIXME - simplify query |
| Riadok 104 class phpMyEdit_slide extends phpMyEdit |
|
| Riadok 106 class phpMyEdit_slide extends phpMyEdit |
|
| // TODO: order by clausule according to default sort order options |
// TODO: order by clausule according to default sort order options |
| $res = $this->myquery($this->query_make($query_parts), __LINE__); |
$res = $this->myquery($this->query_make($query_parts), __LINE__); |
| $ids = array(); |
$ids = array(); |
| while (($row = @mysql_fetch_array($res, MYSQL_ASSOC)) !== false) { |
while (($row = @mysql_fetch_array($res, MYSQL_NUM)) !== false) { |
| $ids[] = $row['id']; |
$ids[] = $row[0]; |
| } |
} |
| @mysql_free_result($res); |
@mysql_free_result($res); |
| if ($this->rec) { |
if ($this->rec) { |