@@ 632-638 (lines=7) @@ | ||
629 | } |
|
630 | } |
|
631 | ||
632 | public function update_positions() { |
|
633 | $positions = $this->input->post('positions'); |
|
634 | foreach ($positions as $key => $value) { |
|
635 | $this->db->where('id', (int) $value)->set('position', $key)->update('gallery_category'); |
|
636 | } |
|
637 | showMessage(lang('Positions updated', 'gallery')); |
|
638 | } |
|
639 | ||
640 | public function update_album_positions() { |
|
641 | $positions = $this->input->post('positions'); |
|
@@ 640-646 (lines=7) @@ | ||
637 | showMessage(lang('Positions updated', 'gallery')); |
|
638 | } |
|
639 | ||
640 | public function update_album_positions() { |
|
641 | $positions = $this->input->post('positions'); |
|
642 | foreach ($positions as $key => $value) { |
|
643 | $this->db->where('id', (int) $value)->set('position', $key)->update('gallery_albums'); |
|
644 | } |
|
645 | showMessage(lang('Positions updated', 'gallery')); |
|
646 | } |
|
647 | ||
648 | public function update_img_positions() { |
|
649 | $positions = $this->input->post('positions'); |
|
@@ 648-654 (lines=7) @@ | ||
645 | showMessage(lang('Positions updated', 'gallery')); |
|
646 | } |
|
647 | ||
648 | public function update_img_positions() { |
|
649 | $positions = $this->input->post('positions'); |
|
650 | foreach ($positions as $key => $value) { |
|
651 | $this->db->where('id', (int) $value)->set('position', $key)->update('gallery_images'); |
|
652 | } |
|
653 | showMessage(lang('Positions updated', 'gallery')); |
|
654 | } |
|
655 | ||
656 | /** |
|
657 | * Add uploaded image to album |