function MoveItemUp($cat_id, $uid) { if (!$this->GetAllowed('EDIT')) { return; } $pid = $this->GetCatItemParent($cat_id, $uid); db_move_up($this->GetSupportTableByCatID($cat_id), $uid, "`pid`={$pid}", 'uid'); }
function Categories_Up($id) { if (!$this->GetAllowed('CONTEST.MANAGE')) { return; } $r = db_row_value('tester_categories', '`id`=' . $id); db_move_up('tester_categories', $id, '`contest_id`=' . $r['contest_id']); }
function Move($dir, $uid) { if (!$this->GetAllowed('EDIT')) { return; } $clause = ''; if ($this->IsDated()) { $clause = '`date`="' . $this->GetCurDate() . '"'; } if ($dir == 'down') { db_move_down($this->settings['content'], $uid, $clause, 'uid'); } else { if ($dir == 'up') { db_move_up($this->settings['content'], $uid, $clause, 'uid'); } } $this->ReceiveContent(); }
function Up() { $dataset = db_field_value('dataset_assoc', 'dataset', '`id`=' . $this->id); db_move_up('dataset_assoc', $this->id, '`dataset`=' . $dataset); }