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