My reviews are not meant to stand as such forever. My opinions change with different viewings, sometimes dependent on mood, the environment/screening medium, timing, age etc. "The Happening, which I saw just a few months ago in the summer, was a fun cinematic experience. Despite horrible critical reviews, the good elements trumped the bad elements, and I gave it a decent ***.
"The Happening" is a simple story which literally jumps right into the story with haste. Some kind of epidemic or virus is sweeping the east coast of the U.S. Without warning large groups of people suddenly stop moving, become entranced zombies and then systematically commit suicide. Elliot (Mark Wahlberg) is a humble science teacher who desperately tries to bring his wife Alma (Zooey Deschanel) and a small group of people to safety while trying to figure what the hell is going on.
Just about the only thing happening for "The Happening" is the wonderful dough-eyed performance of Zooey Deschanel. It's hardly a star-performance, or anything close to a leading lady, but her soft-spoken innocence and gosh-darn wide-eyed stare is just too cute not to love. Unfortunately everyone else in the film is almost unwatchable. Other than the star names above, it's largely unknown actors saying the lines. But I lay blame on Shyamalan who directed these actors to their awful performances. They are given familiar disaster-movie lines, like "what the hell is going on?", Where are we" and "run!" The actors can't even say these lines right.
On the DVD special features a whole featurette is devoted to the gore in the film. Shyamalan was encouraged by the studio to go for an R-Rating for the first time. Shyamalan describes his enthusiasm in using violence to increase the intensity of the film. But Shyamalan, who is a master at off-camera tension, should have known better. None of the gore works in this film. Almost every squirt of blood or hacked limb jumps out of the screen like an exclamation mark where none was required.
The problem is Shyamalan filmed the story with the same tone, pace and visual style as his other films, the effect of which was a statement against the gratuitousness of arbitrary gore. The most glaringly excessive gore moment is the one seen from a woman's i-phone as the zoo-keeper gets mauled to death by the lion. Not only is the CG matting obvious it's a near carbon-copy of a scene from Shyamalan's "Signs" – a far superior film.
This time around, I just couldn't look past the atrocious logical holes and decision-making inconsistencies. Specifically Julian's (John Leguizamo) decision to leave his child with Elliot and Alma while he searches for his wife. No one in the world would do that. No one.
As well I could not look past the excessive use of expository television and radio coverage. The technique was used effectively and sparingly in "Signs", but in this film Shyamalan continually bombards us with a scene every 10mins of a television reporter telling us information we knew already. It's a mark of an inexperienced and lazy filmmaker, and so it's amplified even more knowing it comes from someone with talent.
The only other saving grace is James Newton Howard's fine minimalist score. In fact, I'd argue Howard as being the best music composer working in Hollywood today. With only a few notes he creates one of those effectively creepy scores we heard from John Carpenter in the 80's.
The themes and metaphors of the environment, post 9/11 social cohesion, and over-population are sometimes subtle and sometimes blockhead. The inconsistencies are frustrating. I wish could have bottled my first experience with this film, because now I can only see it's flaws. It's a well-intentioned sloppy mess.
You guys are being over-critical. I like his movies and they are, dare I say, pretty original. I thought Unbreakable was great and under-appreciated considering the glut of superhero movies nowadays.
One can never be over-critical. To NOT be over-critical is to be a sheep.
Almost everything he does with this movie is not effective and the script is very bad. Thats why overall this movie is a failure for M.Night Sh. I don't think he deserves to continue with directing. He might become the biggest opponent to Uwe Boll :).
TIFF Report #18: "LOOSE ENDS"


text:
Q: PHP PDO with dynamically created where statements I'm trying to convert mysqli_query to PDO.
I got stuck with my dynamically created WHERE clausule.
I read this post (PHP PDO dynamic WHERE clause), but there you lose the prepare function of PDO, and that is what I want to do.
This is (part of) my origional code
// this is the '$_POST' array
$_POST['org'][0] = 1;
$_POST['org'][1] = 2;
$_POST['org'][2] = 5;

/* Execute a prepared statement by passing an array of values */
$sql['select'] = "SELECT * FROM `table` ";

if(isset($_POST['org']) AND count($_POST['org']) > 0) {
  $sql['where'] .= "WHERE ( `org_id` = '".mysqli_real_escape_string($conn, $_POST['org'][0])."' ";

  foreach ($_POST['org'] as $key => $value) {
    if($key !== 0)
      $sql['where'] .= "OR `org_id` = '".mysqli_real_escape_string($conn, $value)."' ";
  }
}

$sql = $sql['select'] . $sql['where'];
$result = mysqli_query($conn, $sql) or die(mysqli_error($conn));

How can I use prepared statements in the foreach loop?

A: You should build your query and instead of using values inside the query you should use placeholders (? or :placeholder_name):
$query = 'SELECT * FROM table WHERE col IN (?,?,?)';
$stmt = $pdo->prepare($query);
$stmt->execute($_POST['org']);

Go and read https://www.php.net/manual/en/pdo.prepare.php#refsect1-pdo.prepare-examples for more examples

A: Ah!
This is what I did now, and it works. Thanks.
$sql['where'] .= "WHERE ( `org_id` = ? ";
$values[] = $_POST['org'][0];

foreach ($_POST['org'] as $key => $value) {
  if($key !== 0) {
    $sql['where'] .= "OR `org_id` = ? ";
    $values[] = $value;
  }
}

$sql['where'] .= ")";

$sql = $sql['select'] . $sql['where'];

$stmt = $pdo->prepare($sql);
$stmt->execute((array) $values);

Thank you!

redpajama_set_name: RedPajamaStackExchange


text:
Frontline Diary: 'Question De Honor'
Chris Williamson brings Boxing Monthly a fascinating Frontline Diary from Panama, including observations and insights on plastic surgery, the local boxing scene and the upcoming Luis Concepcion vs Khalid Yafai bout ...
Frontline Diary: 'Ye Buck Eejit'
Andrew Harrison on all the goings-on in and out of the ring in Belfast as Paddy Barnes makes his pro debut, Jamie Conlan edges towards a world title eliminator and Carl Frampton proves a class act at ringside ...
Frontline Diary: Blue and Green should be seen
Chris Williamson on all the goings-on ringside as Tony Bellew wins and talks about his nerves and love for Everton. Meanwhile, Z-Cars, The Greatest Boxing Ringwalk Songs two-CD set and the Gas Monkey Bar N' Grill in Dallas are also the subject of discussion on a heady night in Liverpool.
Frontline Diary: Slings in Harrow
Chris Williamson reflects on all the goings-on at the Harrow Leisure centre as Liam Walsh headlines, a ring card girl calls in sick and Boxnation celebrates 300 live shows and five years in operation ...
Frontline Diary: 'Let's go, Richard, let's go!'
In a Frontline Diary with a difference Luke G. Williams and Year 9 students Francis and Eroms report from ringside at York Hall, as nine pupils from Sacred Heart school in Camberwell experience live boxing for the first time.
Frontline Diary: Diamond life as Linares proves smooth operator
Chris Williamson reports and reflects on all the goings-on in the ring and ringside on a heady Manchester night last Saturday when Anthony Crolla met Jorge Linares ...
Frontline Diary: Troya sends startling message
Danny Wayne Armstrong
http://www.youtube.com/watch?v=aPPCLHBTzSQ
Big time boxing was back in Europe's biggest city in the form of Omsk slugger and 140lbs titleholder Eduard Troyanovsky defending his IBF and IBO belts against Japanese challenger Keita Obara at Krylia Sovetov, Moscow. Daniel Armstrong reports.
Frontline Diary: When Rigondeaux came to Cardiff
http://www.youtube.com/watch?v=V7Ox8PAJyIc
There's a long and proud history of Welshmen appreciating lighter weight boxers in their capital city. "Peerless" Jim Driscoll was the first ever British featherweight champion, claiming the inaugural title by stopping Jack Roberts in the seventh of a scheduled 15 rounds 110 years ago at the National Sporting Club in London. A Cardiff legend, Driscoll's name is immortalised in the International Boxing Hall of Fame and a statue was erected 20 years ago in the city centre, where Driscoll's likeness stands calm and proudly with his livelihood, his hands, linked behind his back and gently pressed against his boxing shorts.
Frontline Diary: I went to be a part of it...
http://www.youtube.com/watch?v=sqn7Mi2DLtA
The novelty of visiting New York during fight week will never wear off for me. Last week I ventured to the United States to see Vasyl Lomachenko take on Roman Martinez and Felix Verdejo face Juan Martin Martinez. Rather than spending all of my time eating, drinking, roaming around, and mixing with the regulars in Jimmy's Corner like usual, I decided to combine those staples with some actual work.
Frontline Diary: The Warrior Returns
One of the most endearing tropes of boxing is the hometown ticket-seller and, on Saturday, one of British boxing's biggest Josh Warrington made his return. The featherweight loiner (native of Leeds) doesn't seem a likely ticket-seller at first glance. At a smaller weight and without knockout power, with a style built around intelligent industry, he could have been one of the many enjoyable to watch boxers who get lost in the shuffle. However, an engaging and humble personality - alongside the opening of Leeds' first and long overdue arena - have catapulted him to the status of the 'next Ricky Hatton'. Like Hatton, his fan base is boisterous, intimidating and, in some parts, alcohol fuelled. It was fascinating to imagine what Japan's Hisashi Amagasa, Warrington's opponent, made of it all.
Frontline Diary: Rumble on the Wear
West Rainton's Tommy Ward impressed in Tyne & Wear this past weekend. Ward (17-0, 1 KO) comprehensively outboxed the ever-game Robbie Turley (16-6, 3 KOs) of Wales, Saturday, at Rainton Meadows Arena to clinch this 10-round final eliminator for the British super-bantamweight title via scores of 97-93, 98-92 and 96-94. The last of those cards (turned in by Graeme Williams) made absolutely no sense whatsoever – especially considering that Turley's strong-arm tactics had seen him lose a point in round 7 for holding and hitting (Boxing Monthly scored it 99-90 in Ward's favour).

redpajama_set_name: RedPajamaCommonCrawl


text:
<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Daftar extends CI_Controller
{
    public function __construct()
    {
        parent::__construct();
        $this->load->model('accounts_model');
        $this->load->helper('titlecase');
    }

    public function index()
    {
        $this->show_content('lomba');
    }

    public function cip ($param1 = '')
    {
        // Set the title and load the header
        $data['title'] = titlecase('Dashboard');
        $data['import_captcha'] = TRUE;
        $this->load->view('templates/header.php', $data);

        if($param1 == 'edit')
        {
            $this->load->model('cip_participants_model');
            if (array_key_exists('cip', $this->session->userdata('user_participations')) && $param1 == '')
            {
                redirect('akun/dashboard/cip');
                exit();
            }

            $this->form_validation->set_rules(
                'participant_type', 'Kategori Peserta',
                'required',
                array(
                    'required'      => 'Form ini harus diisi!',
                )
            );
            $this->form_validation->set_rules(
                'institution_name', 'Nama Institusi Pendidikan',
                'required',
                array(
                    'required'      => 'Form ini harus diisi!',
                )
            );
            $this->form_validation->set_rules(
                'fullname_member1', 'Nama Lengkap Ketua Tim',
                'required',
                array(
                    'required'      => 'Form ini harus diisi!',
                )
            );
            $this->form_validation->set_rules(
                'id_number_member1', 'Nomor Identitas Ketua Tim (KTP/Kartu Pelajar)',
                'required',
                array(
                    'required'      => 'Form ini harus diisi!',
                )
            );
            $this->form_validation->set_rules(
                'fullname_member2', 'Nama Lengkap Peserta 2',
                'required',
                array(
                    'required'      => 'Form ini harus diisi!',
                )
            );
            $this->form_validation->set_rules(
                'id_number_member2', 'Nama Lengkap Peserta 2 (KTP/Kartu Pelajar)',
                'required',
                array(
                    'required'      => 'Form ini harus diisi!',
                )
            );
             $this->form_validation->set_rules(
                'fullname_member3', 'Nama Lengkap Peserta 3',
                'required',
                array(
                    'required'      => 'Form ini harus diisi!',
                )
            );
            $this->form_validation->set_rules(
                'id_number_member3', 'Nama Lengkap Peserta 3 (KTP/Kartu Pelajar)',
                'required',
                array(
                    'required'      => 'Form ini harus diisi!',
                )
            );
            $this->form_validation->set_rules(
                'province_id', 'Asal Provinsi',
                'required',
                array(
                    'required'      => 'Form ini harus diisi!',
                )
            );

            $cip_data = $this->cip_participants_model->get_details($this->session->userdata('user_id'));
            $data['mode']                       = 'edit';
            $data['user_category']              = $cip_data->type;
            $data['user_institution_name']      = $cip_data->institution_name;
            $data['user_fullname_member1']      = $cip_data->fullname_member1;
            $data['user_id_number_member1']     = $cip_data->id_number_member1;
            $data['user_identity_member1_link'] = $cip_data->identity_member1_link;
            $data['user_passphoto_link1']       = $cip_data->passphoto_link1;
            $data['user_fullname_member2']      = $cip_data->fullname_member2;
            $data['user_id_number_member2']     = $cip_data->id_number_member2;
            $data['user_identity_member2_link'] = $cip_data->identity_member2_link;
            $data['user_passphoto_link2']       = $cip_data->passphoto_link2;
            $data['user_fullname_member3']      = $cip_data->fullname_member3;
            $data['user_id_number_member3']     = $cip_data->id_number_member3;
            $data['user_identity_member3_link'] = $cip_data->identity_member3_link;
            $data['user_passphoto_link3']       = $cip_data->passphoto_link3;
            $data['user_province_id']          = $cip_data->province_id;
            $data['user_lodging_days']          = $cip_data->lodging_days;
            $data['user_need_transport']        = $cip_data->need_transport;
            $data['user_teacher_name']          = $cip_data->teacher_name;
            $data['user_teacher_phone']         = $cip_data->teacher_phone;
            $data['user_teacher_email']         = $cip_data->teacher_email;

            // If the form is validated
            if ($this->form_validation->run() === TRUE)
            {
                // Change the account details in the DB
                $this->cip_participants_model->change_details($this->session->userdata('user_id'), 'type', $this->input->post('participant_type'));
                $this->cip_participants_model->change_details($this->session->userdata('user_id'), 'institution_name', $this->input->post('institution_name'));
                $this->cip_participants_model->change_details($this->session->userdata('user_id'), 'fullname_member1', $this->input->post('fullname_member1'));
                $this->cip_participants_model->change_details($this->session->userdata('user_id'), 'id_number_member1', $this->input->post('id_number_member1'));
                $this->cip_participants_model->change_details($this->session->userdata('user_id'), 'fullname_member2', $this->input->post('fullname_member2'));
                $this->cip_participants_model->change_details($this->session->userdata('user_id'), 'id_number_member2', $this->input->post('id_number_member2'));
                $this->cip_participants_model->change_details($this->session->userdata('user_id'), 'fullname_member3', $this->input->post('fullname_member3'));
                $this->cip_participants_model->change_details($this->session->userdata('user_id'), 'id_number_member3', $this->input->post('id_number_member3'));
                $this->cip_participants_model->change_details($this->session->userdata('user_id'), 'province_id', $this->input->post('province_id'));
                $this->cip_participants_model->change_details($this->session->userdata('user_id'), 'lodging_days', $this->input->post('lodging_days'));
                $this->cip_participants_model->change_details($this->session->userdata('user_id'), 'need_transport', $this->input->post('need_transport') == 'true' ? 1 : 0);
                $this->cip_participants_model->change_details($this->session->userdata('user_id'), 'teacher_name', $this->input->post('teacher_name'));
                $this->cip_participants_model->change_details($this->session->userdata('user_id'), 'teacher_phone', $this->input->post('teacher_phone'));
                $this->cip_participants_model->change_details($this->session->userdata('user_id'), 'teacher_email', $this->input->post('teacher_email'));

                // Do the file uploading if found
                if (!empty($_FILES))
                {
                    $config['upload_path']          = 'uploads/cip/' . $this->session->user_id;
                    $config['allowed_types']        = 'jpg';
                    $config['max_size']             = 1000;
                    $config['overwrite']            = TRUE;

                    $this->load->library('upload', $config);

                    $link = "uploads/cip/" . $this->session->user_id;

                    if (!file_exists ($link))
                    {
                        if(!mkdir($link, 0777, TRUE))
                        {
                            $this->session->set_flashdata('make_failed', 'Error Membuat Folder');
                        }
                    }

                    $error = array();

                    if(is_uploaded_file($_FILES['identity_member1_link']['tmp_name']))
                    {
                        $config['file_name']            = 'identity_member1_link.jpg';
                        $this->upload->initialize($config);

                        if (!$this->upload->do_upload('identity_member1_link'))
                        {
                            array_push($error, $config['file_name']  . ' : '  . $this->upload->display_errors());
                        }
                        else
                        {
                            $this->cip_participants_model->change_details($this->session->userdata('user_id'), 'identity_member1_link', $link . '/identity_member1_link' . '.jpg');
                        }
                    }

                    if(is_uploaded_file($_FILES['identity_member2_link']['tmp_name']))
                    {
                        $config['file_name']            = 'identity_member2_link.jpg';
                        $this->upload->initialize($config);

                        if (!$this->upload->do_upload('identity_member2_link'))
                        {
                            array_push($error, $config['file_name']  . ' : '  . $this->upload->display_errors());
                        }
                        else
                        {
                            $this->cip_participants_model->change_details($this->session->userdata('user_id'), 'identity_member2_link', $link . '/identity_member2_link' . '.jpg');
                        }
                    }

                    if(is_uploaded_file($_FILES['identity_member3_link']['tmp_name']))
                    {
                        $config['file_name']            = 'identity_member3_link.jpg';
                        $this->upload->initialize($config);

                        if (!$this->upload->do_upload('identity_member3_link'))
                        {
                            array_push($error, $config['file_name']  . ' : '  . $this->upload->display_errors());
                        }
                        else
                        {
                            $this->cip_participants_model->change_details($this->session->userdata('user_id'), 'identity_member3_link', $link . '/identity_member3_link' . '.jpg');
                        }
                    }

                    if(is_uploaded_file($_FILES['passphoto_link1']['tmp_name']))
                    {
                        $config['file_name']            = 'passphoto_link1.jpg';
                        $this->upload->initialize($config);

                        if (!$this->upload->do_upload('passphoto_link1'))
                        {
                            array_push($error, $config['file_name']  . ' : '  . $this->upload->display_errors());
                        }
                        else
                        {
                            $this->cip_participants_model->change_details($this->session->userdata('user_id'), 'passphoto_link1', $link . '/passphoto_link1' . '.jpg');
                        }
                    }

                    if(is_uploaded_file($_FILES['passphoto_link2']['tmp_name']))
                    {
                        $config['file_name']            = 'passphoto_link2.jpg';
                        $this->upload->initialize($config);

                        if (!$this->upload->do_upload('passphoto_link2'))
                        {
                            array_push($error, $config['file_name']  . ' : '  . $this->upload->display_errors());
                        }
                        else
                        {
                            $this->cip_participants_model->change_details($this->session->userdata('user_id'), 'passphoto_link2', $link . '/passphoto_link2' . '.jpg');
                        }
                    }

                    if(is_uploaded_file($_FILES['passphoto_link3']['tmp_name']))
                    {
                        $config['file_name']            = 'passphoto_link3.jpg';
                        $this->upload->initialize($config);

                        if (!$this->upload->do_upload('passphoto_link3'))
                        {
                            array_push($error, $config['file_name']  . ' : '  . $this->upload->display_errors());
                        }
                        else
                        {
                            $this->cip_participants_model->change_details($this->session->userdata('user_id'), 'passphoto_link3', $link . '/passphoto_link3' . '.jpg');
                        }
                    }
                    $this->session->set_flashdata('upload_failed', $error);
                }

                // Redirect to the dashboard
                redirect('akun/dashboard/cip');
            }

            // Else, show the form
            else
            {
                $this->load->view('accounts/form_cip.php', $data);
            }
        }else
        {

            $this->load->model('cip_participants_model');
                if (array_key_exists('cip', $this->session->userdata('user_participations')))
                {
                    redirect('akun/dashboard/cip');
                    exit();
                }

                $this->form_validation->set_rules(
                    'participant_type', 'Kategori Peserta',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );
                $this->form_validation->set_rules(
                    'institution_name', 'Nama Institusi Pendidikan',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );
                $this->form_validation->set_rules(
                    'fullname_member1', 'Nama Lengkap Ketua Tim',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );
                $this->form_validation->set_rules(
                    'id_number_member1', 'Nomor Identitas Ketua Tim (KTP/Kartu Pelajar)',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );
                $this->form_validation->set_rules(
                    'fullname_member2', 'Nama Lengkap Peserta 2',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );
                $this->form_validation->set_rules(
                    'id_number_member2', 'Nama Lengkap Peserta 2 (KTP/Kartu Pelajar)',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );
                 $this->form_validation->set_rules(
                    'fullname_member3', 'Nama Lengkap Peserta 3',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );
                $this->form_validation->set_rules(
                    'id_number_member3', 'Nama Lengkap Peserta 3 (KTP/Kartu Pelajar)',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );
                $this->form_validation->set_rules(
                    'province_id', 'Asal Provinsi',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );

                $data['mode']                       = '';
                $data['user_category']              = '';
                $data['user_institution_name']      = '';
                $data['user_fullname_member1']      = '';
                $data['user_id_number_member1']     = '';
                $data['user_identity_member1_link'] = '';
                $data['user_passphoto_link1']       = '';
                $data['user_fullname_member2']      = '';
                $data['user_id_number_member2']     = '';
                $data['user_identity_member2_link'] = '';
                $data['user_passphoto_link2']       = '';
                $data['user_fullname_member3']      = '';
                $data['user_id_number_member3']     = '';
                $data['user_identity_member3_link'] = '';
                $data['user_passphoto_link3']       = '';
                $data['user_province_id']           = '';
                $data['user_lodging_days']          = '';
                $data['user_need_transport']        = '';
                $data['user_teacher_name']          = '';
                $data['user_teacher_phone']         = '';
                $data['user_teacher_email']         = '';

                // If the form is validated
                if ($this->form_validation->run() === TRUE)
                {
                    // Register the user to the DB
                    $this->cip_participants_model->register_participant(
                        $this->session->userdata('user_id'),
                        $this->input->post('participant_type'),
                        $this->input->post('fullname_member1'),
                        $this->input->post('fullname_member2'),
                        $this->input->post('fullname_member3'),
                        $this->input->post('id_number_member1'),
                        $this->input->post('id_number_member2'),
                        $this->input->post('id_number_member3'),
                        $this->input->post('institution_name'),
                        $this->input->post('province_id'),
                        $this->input->post('lodging_days'),
                        $this->input->post('need_transport') == 'true' ? 1 : 0,
                        $this->input->post('teacher_name'),
                        $this->input->post('teacher_phone'),
                        $this->input->post('teacher_email')
                    );

                    $this->session->set_userdata('user_participations', $this->accounts_model->get_account_participation($this->session->user_id));

                    // Do the file uploading if found
                    if (!empty($_FILES))
                    {
                        $config['upload_path']          = 'uploads/cip/' . $this->session->user_id;
                        $config['allowed_types']        = 'jpg';
                        $config['max_size']             = 1000;
                        $config['overwrite']            = TRUE;

                        $this->load->library('upload', $config);

                        $link = "uploads/cip/" . $this->session->user_id;

                        if (!file_exists ($link))
                        {
                            if(!mkdir($link, 0777, TRUE))
                            {
                                $this->session->set_flashdata('make_failed', 'Error Membuat Folder');
                            }
                        }

                        $error = array();

                        if(is_uploaded_file($_FILES['identity_member1_link']['tmp_name']))
                        {
                            $config['file_name']            = 'identity_member1_link';
                            $this->upload->initialize($config);

                            if (!$this->upload->do_upload('identity_member1_link'))
                            {
                                array_push($error, $config['file_name']  . ' : '  . $this->upload->display_errors());
                            }
                            else
                            {
                                $this->cip_participants_model->change_details($this->session->userdata('user_id'), 'identity_member1_link', $link . '/identity_member1_link' . '.jpg');
                            }
                        }

                        if(is_uploaded_file($_FILES['identity_member2_link']['tmp_name']))
                        {
                            $config['file_name']            = 'identity_member2_link';
                            $this->upload->initialize($config);

                            if (!$this->upload->do_upload('identity_member2_link'))
                            {
                                array_push($error, $config['file_name']  . ' : '  . $this->upload->display_errors());
                            }
                            else
                            {
                                $this->cip_participants_model->change_details($this->session->userdata('user_id'), 'identity_member2_link', $link . '/identity_member2_link' . '.jpg');
                            }
                        }

                        if(is_uploaded_file($_FILES['identity_member3_link']['tmp_name']))
                        {
                            $config['file_name']            = 'identity_member3_link';
                            $this->upload->initialize($config);

                            if (!$this->upload->do_upload('identity_member3_link'))
                            {
                                array_push($error, $config['file_name']  . ' : '  . $this->upload->display_errors());
                            }
                            else
                            {
                                $this->cip_participants_model->change_details($this->session->userdata('user_id'), 'identity_member3_link', $link . '/identity_member3_link' . '.jpg');
                            }
                        }

                        if(is_uploaded_file($_FILES['passphoto_link1']['tmp_name']))
                        {
                            $config['file_name']            = 'passphoto_link1';
                            $this->upload->initialize($config);

                            if (!$this->upload->do_upload('passphoto_link1'))
                            {
                                array_push($error, $config['file_name']  . ' : '  . $this->upload->display_errors());
                            }
                            else
                            {
                                $this->cip_participants_model->change_details($this->session->userdata('user_id'), 'passphoto_link1', $link . '/passphoto_link1' . '.jpg');
                            }
                        }

                        if(is_uploaded_file($_FILES['passphoto_link2']['tmp_name']))
                        {
                            $config['file_name']            = 'passphoto_link2';
                            $this->upload->initialize($config);

                            if (!$this->upload->do_upload('passphoto_link2'))
                            {
                                array_push($error, $config['file_name']  . ' : '  . $this->upload->display_errors());
                            }
                            else
                            {
                                $this->cip_participants_model->change_details($this->session->userdata('user_id'), 'passphoto_link2', $link . '/passphoto_link2' . '.jpg');
                            }
                        }

                        if(is_uploaded_file($_FILES['passphoto_link3']['tmp_name']))
                        {
                            $config['file_name']            = 'passphoto_link3';
                            $this->upload->initialize($config);

                            if (!$this->upload->do_upload('passphoto_link3'))
                            {
                                array_push($error, $config['file_name']  . ' : '  . $this->upload->display_errors());
                            }
                            else
                            {
                                $this->cip_participants_model->change_details($this->session->userdata('user_id'), 'passphoto_link3', $link . '/passphoto_link3' . '.jpg');
                            }
                        }
                        $this->session->set_flashdata('upload_failed', $error);
                    }

                    // Redirect to the dashboard
                    redirect('akun/dashboard/cip');
                }

                // Else, show the form
                else
                {
                    $this->load->view('accounts/form_cip.php', $data);
                }
            }

        $this->load->view('templates/footer.php');

    }

    public function cp ($param1 = '')
    {
        $data['title'] = titlecase('Dashboard');
        $data['import_captcha'] = TRUE;
        $this->load->view('templates/header.php', $data);

        //Check if already Registered
        $this->load->model('cp_participants_model');
        if (array_key_exists('cp', $this->session->userdata('user_participations')) && $param1 == '')
        {
            redirect('akun/dashboard/cp');
           exit();
        }

        if($param1 == 'edit')
        {
           $this->form_validation->set_rules(
                    'institution_name', 'Nama Institusi Pendidikan',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );
                $this->form_validation->set_rules(
                    'fullname', 'Nama Lengkap',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );
                $this->form_validation->set_rules(
                    'id_number', 'Nomor Identitas (KTP/Kartu Pelajar)',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );
                $this->form_validation->set_rules(
                    'province_id', 'Asal Provinsi',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );
                $this->form_validation->set_rules(
                    'address', 'Alamat Lengkap',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );
                $this->form_validation->set_rules(
                    'phone', 'No Telpon',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );
                $this->form_validation->set_rules(
                    'email', 'E-Mail',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );

                $cp_data = $this->cp_participants_model->get_details($this->session->userdata('user_id'));
                $data['mode']                       = 'edit';
                $data['user_institution_name']      = $cp_data->institution_name;
                $data['user_fullname']              = $cp_data->fullname;
                $data['user_id_number']             = $cp_data->id_number;
                $data['user_identity_link']         = $cp_data->identity_link;
                $data['user_province_id']           = $cp_data->province_id;
                $data['address']                    = $cp_data->address;
                $data['email']                      = $cp_data->email;
                $data['phone']                      = $cp_data->phone;

                // If the form is validated
                if ($this->form_validation->run() === TRUE)
                {
                    // Register the user to the DB
                    $this->cp_participants_model->change_details($this->session->userdata('user_id'), 'fullname', $this->input->post('fullname'));
                    $this->cp_participants_model->change_details($this->session->userdata('user_id'), 'institution_name', $this->input->post('institution_name'));
                    $this->cp_participants_model->change_details($this->session->userdata('user_id'), 'id_number', $this->input->post('id_number'));
                    $this->cp_participants_model->change_details($this->session->userdata('user_id'), 'province_id', $this->input->post('province_id'));
                    $this->cp_participants_model->change_details($this->session->userdata('user_id'), 'address', $this->input->post('address'));
                    $this->cp_participants_model->change_details($this->session->userdata('user_id'), 'email', $this->input->post('email'));
                    $this->cp_participants_model->change_details($this->session->userdata('user_id'), 'phone', $this->input->post('phone'));

                    $this->session->set_userdata('user_participations', $this->accounts_model->get_account_participation($this->session->user_id));

                    // Do the file uploading if found
                    if (!empty($_FILES))
                    {
                        $config['upload_path']          = 'uploads/cp/' . $this->session->user_id;
                        $config['allowed_types']        = 'jpg';
                        $config['max_size']             = 1000;
                        $config['overwrite']            = TRUE;

                        $this->load->library('upload', $config);

                        $link = "uploads/cp/" . $this->session->user_id;

                        if (!file_exists ($link))
                        {
                            if(!mkdir($link, 0777, TRUE))
                            {
                                $this->session->set_flashdata('make_failed', 'Error Membuat Folder');
                            }
                        }

                        $error = array();

                        if(is_uploaded_file($_FILES['identity_link']['tmp_name']))
                        {
                            $config['file_name']            = 'identity_link';
                            $this->upload->initialize($config);

                            if (!$this->upload->do_upload('identity_link'))
                            {
                                array_push($error, $config['file_name']  . ' : '  . $this->upload->display_errors());
                            }
                            else
                            {
                                $this->cp_participants_model->change_details($this->session->userdata('user_id'), 'identity_link', $link . '/identity_link' . '.jpg');
                            }
                        }

                        $this->session->set_flashdata('upload_failed', $error);
                    }

                    // Redirect to the dashboard
                    redirect('akun/dashboard/cp');
                }

                // Else, show the form
                else
                {
                    $this->load->view('accounts/form_cp.php', $data);
                }
        }else
        {
            $this->form_validation->set_rules(
                    'institution_name', 'Nama Institusi Pendidikan',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );
                $this->form_validation->set_rules(
                    'fullname', 'Nama Lengkap',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );
                $this->form_validation->set_rules(
                    'id_number', 'Nomor Identitas (KTP/Kartu Pelajar)',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );
                $this->form_validation->set_rules(
                    'province_id', 'Asal Provinsi',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );
                $this->form_validation->set_rules(
                    'address', 'Alamat Lengkap',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );
                $this->form_validation->set_rules(
                    'phone', 'No Telpon',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );
                $this->form_validation->set_rules(
                    'email', 'E-Mail',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );

                $data['mode']                       = '';
                $data['user_institution_name']      = '';
                $data['user_fullname']              = '';
                $data['user_id_number']             = '';
                $data['user_identity_link']         = '';
                $data['user_province_id']           = '';
                $data['address']                    = '';
                $data['email']                      = '';
                $data['phone']                      = '';

                // If the form is validated
                if ($this->form_validation->run() === TRUE)
                {
                    // Do the file uploading if found
                    if (!empty($_FILES))
                    {
                        $config['upload_path']          = 'uploads/cp/' . $this->session->user_id;
                        $config['allowed_types']        = 'jpg';
                        $config['max_size']             = 1000;
                        $config['overwrite']            = TRUE;

                        $this->load->library('upload', $config);

                        $link = "uploads/cp/" . $this->session->user_id;

                        if (!file_exists ($link))
                        {
                            if(!mkdir($link, 0777, TRUE))
                            {
                                $this->session->set_flashdata('make_failed', 'Error Membuat Folder');
                            }
                        }

                        $error = array();

                        if(is_uploaded_file($_FILES['identity_link']['tmp_name']))
                        {
                            $config['file_name']            = 'identity_link.jpg';
                            $this->upload->initialize($config);

                            if (!$this->upload->do_upload('identity_link'))
                            {
                                array_push($error, $config['file_name']  . ' : '  . $this->upload->display_errors());
                            }
                            else
                            {
                                $this->cp_participants_model->change_details($this->session->userdata('user_id'), 'identity_link', $link . '/identity_link' . '.jpg');
                            }
                        }

                        $this->session->set_flashdata('upload_failed', $error);
                    }

                    // Register the user to the DB
                    $this->cp_participants_model->register_participant(
                        $this->session->userdata('user_id'),
                        $this->input->post('fullname'),
                        $this->input->post('id_number'),
                        $config['upload_path'] . '/' . $config['file_name'],
                        $this->input->post('institution_name'),
                        $this->input->post('province_id'),
                        $this->input->post('address'),
                        $this->input->post('phone'),
                        $this->input->post('email')
                    );

                    $this->session->set_userdata('user_participations', $this->accounts_model->get_account_participation($this->session->user_id));

                    // Redirect to the dashboard
                    redirect('akun/dashboard/cp');
                }

                // Else, show the form
                else
                {
                    $this->load->view('accounts/form_cp.php', $data);
                }

        }

        $this->load->view('templates/footer.php');
    }

    public function cmp ($param1 = '')
    {
        $data['title'] = titlecase('Dashboard');
        $data['import_captcha'] = TRUE;
        $this->load->view('templates/header.php', $data);

        //Check if already Registered
        $this->load->model('cmp_participants_model');
        if (array_key_exists('cmp', $this->session->userdata('user_participations')) && $param1 == '')
        {
            redirect('akun/dashboard/cmp');
           exit();
        }

        if($param1 == 'edit')
        {
           $this->form_validation->set_rules(
                    'institution_name', 'Nama Institusi Pendidikan',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );
                $this->form_validation->set_rules(
                    'fullname', 'Nama Lengkap - Ketua Tim',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );
                $this->form_validation->set_rules(
                    'id_number', 'Nomor Identitas (KTP/Kartu Pelajar)',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );
                $this->form_validation->set_rules(
                    'province_id', 'Asal Provinsi',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );
                $this->form_validation->set_rules(
                    'address', 'Alamat Lengkap',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );
                $this->form_validation->set_rules(
                    'phone', 'No Telpon',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );
                $this->form_validation->set_rules(
                    'email', 'E-Mail',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );

                $cmp_data = $this->cmp_participants_model->get_details($this->session->userdata('user_id'));
                $data['mode']                       = 'edit';
                $data['user_institution_name']      = $cmp_data->institution_name;
                $data['user_fullname']              = $cmp_data->fullname;
                $data['user_id_number']             = $cmp_data->id_number;
                $data['user_identity_link']         = $cmp_data->identity_link;
                $data['user_province_id']           = $cmp_data->province_id;
                $data['address']                    = $cmp_data->address;
                $data['phone']                      = $cmp_data->phone;

                // If the form is validated
                if ($this->form_validation->run() === TRUE)
                {
                    // Register the user to the DB
                    $this->cmp_participants_model->change_details($this->session->userdata('user_id'), 'fullname', $this->input->post('fullname'));
                    $this->cmp_participants_model->change_details($this->session->userdata('user_id'), 'institution_name', $this->input->post('institution_name'));
                    $this->cmp_participants_model->change_details($this->session->userdata('user_id'), 'id_number', $this->input->post('id_number'));
                    $this->cmp_participants_model->change_details($this->session->userdata('user_id'), 'province_id', $this->input->post('province_id'));
                    $this->cmp_participants_model->change_details($this->session->userdata('user_id'), 'address', $this->input->post('address'));
                    $this->cmp_participants_model->change_details($this->session->userdata('user_id'), 'email', $this->input->post('email'));
                    $this->cmp_participants_model->change_details($this->session->userdata('user_id'), 'phone', $this->input->post('phone'));

                    $this->session->set_userdata('user_participations', $this->accounts_model->get_account_participation($this->session->user_id));

                    // Do the file uploading if found
                    if (!empty($_FILES))
                    {
                        $config['upload_path']          = 'uploads/cmp/' . $this->session->user_id;
                        $config['allowed_types']        = 'jpg';
                        $config['max_size']             = 1000;
                        $config['overwrite']            = TRUE;

                        $this->load->library('upload', $config);

                        $link = "uploads/cmp/" . $this->session->user_id;

                        if (!file_exists ($link))
                        {
                            if(!mkdir($link, 0777, TRUE))
                            {
                                $this->session->set_flashdata('make_failed', 'Error Membuat Folder');
                            }
                        }

                        $error = array();

                        if(is_uploaded_file($_FILES['identity_link']['tmp_name']))
                        {
                            $config['file_name']            = 'identity_link.jpg';
                            $this->upload->initialize($config);

                            if (!$this->upload->do_upload('identity_link'))
                            {
                                array_push($error, $config['file_name']  . ' : '  . $this->upload->display_errors());
                            }
                            else
                            {
                                $this->cp_participants_model->change_details($this->session->userdata('user_id'), 'identity_link', $link . '/identity_link' . '.jpg');
                            }
                        }

                        $this->session->set_flashdata('upload_failed', $error);
                    }

                    // Redirect to the dashboard
                    redirect('akun/dashboard/cmp');
                }

                // Else, show the form
                else
                {
                    $this->load->view('accounts/form_cmp.php', $data);
                }
        }else
        {
            $this->form_validation->set_rules(
                    'institution_name', 'Nama Institusi Pendidikan',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );
                $this->form_validation->set_rules(
                    'fullname', 'Nama Lengkap',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );
                $this->form_validation->set_rules(
                    'id_number', 'Nomor Identitas (KTP/Kartu Pelajar)',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );
                $this->form_validation->set_rules(
                    'province_id', 'Asal Provinsi',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );
                $this->form_validation->set_rules(
                    'address', 'Alamat Lengkap',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );
                $this->form_validation->set_rules(
                    'phone', 'No Telpon',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );
                $this->form_validation->set_rules(
                    'email', 'E-Mail',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );

                $data['mode']                       = '';
                $data['user_institution_name']      = '';
                $data['user_fullname']              = '';
                $data['anggota_fullname']           = '';
                $data['user_id_number']             = '';
                $data['gender']                     = '';
                $data['user_identity_link']         = '';
                $data['user_province_id']           = '';
                $data['address']                    = '';
                $data['email']                      = '';
                $data['phone']                      = '';

                // If the form is validated
                if ($this->form_validation->run() === TRUE)
                {
                    // Do the file uploading if found
                    if (!empty($_FILES))
                    {
                        $config['upload_path']          = 'uploads/cmp/' . $this->session->user_id;
                        $config['allowed_types']        = 'jpg';
                        $config['max_size']             = 1000;
                        $config['overwrite']            = TRUE;

                        $this->load->library('upload', $config);

                        $link = "uploads/cmp/" . $this->session->user_id;

                        if (!file_exists ($link))
                        {
                            if(!mkdir($link, 0777, TRUE))
                            {
                                $this->session->set_flashdata('make_failed', 'Error Membuat Folder');
                            }
                        }

                        $error = array();

                        if(is_uploaded_file($_FILES['identity_link']['tmp_name']))
                        {
                            $config['file_name']            = 'identity_link.jpg';
                            $this->upload->initialize($config);

                            if (!$this->upload->do_upload('identity_link'))
                            {
                                array_push($error, $config['file_name']  . ' : '  . $this->upload->display_errors());
                            }
                            else
                            {
                                $this->cmp_participants_model->change_details($this->session->userdata('user_id'), 'identity_link', $link . '/identity_link' . '.jpg');
                            }
                        }

                        $this->session->set_flashdata('upload_failed', $error);
                    }

                    //Compile Anggota using Implode
                    $anggota = implode('#', $this->input->post('anggota'));

                    // Register the user to the DB
                    $this->cmp_participants_model->register_participant(
                        $this->session->userdata('user_id'),
                        $this->input->post('fullname'),
                        $anggota,
                        $this->input->post('address'),
                        $this->input->post('phone'),
                        $this->input->post('email'),
                        $this->input->post('gender'),
                        $this->input->post('id_number'),
                        $config['upload_path'] . '/' . $config['file_name'],
                        $this->input->post('institution_name'),
                        $this->input->post('province_id')
                    );

                    $this->session->set_userdata('user_participations', $this->accounts_model->get_account_participation($this->session->user_id));

                    // Redirect to the dashboard
                    redirect('akun/dashboard/cmp');
                }

                // Else, show the form
                else
                {
                    $this->load->view('accounts/form_cmp.php', $data);
                }

        }

        $this->load->view('templates/footer.php');
    }

    public function cc ($param1 = '')
    {
        $data['title'] = titlecase('Dashboard');
        $data['import_captcha'] = TRUE;
        $this->load->view('templates/header.php', $data);

        //Check if already Registered
        $this->load->model('cc_participants_model');
        if (array_key_exists('cc', $this->session->userdata('user_participations')) && $param1 == '')
        {
            redirect('akun/dashboard/cc');
           exit();
        }

        if($param1 == 'edit')
        {
                $this->form_validation->set_rules(
                    'institution_name', 'Nama Institusi Pendidikan',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );;

                $cmp_data = $this->cc_participants_model->get_details($this->session->userdata('user_id'));
                $data['mode']                       = 'edit';
                $data['institution_name']           = $cmp_data->institution_name;
                $data['user1_fullname']             = $cmp_data->fullname_member1;
                $data['user2_fullname']             = $cmp_data->fullname_member2;
                $data['user1_identity_link']        = $cmp_data->identity_member1_link;
                $data['user2_identity_link']        = $cmp_data->identity_member2_link;
                $data['user1_passphoto_link']       = $cmp_data->pas_photo_user1;
                $data['user2_passphoto_link']       = $cmp_data->pas_photo_user2;
                $data['user_province_id']           = $cmp_data->province_id;
                $data['address']                    = $cmp_data->address;
                $data['phone']                      = $cmp_data->phone;
                $data['email']                      = $cmp_data->email;
                $data['teacher_name']               = $cmp_data->teacher_name;
                $data['teacher_phone']              = $cmp_data->teacher_phone_number;
                $data['teacher_email']              = $cmp_data->teacher_email;

                // If the form is validated
                if ($this->form_validation->run() === TRUE)
                {
                    // Register the user to the DB
                    $this->cc_participants_model->change_details($this->session->userdata('user_id'), 'fullname_member1', $this->input->post('fullname_ketua'));
                    $this->cc_participants_model->change_details($this->session->userdata('user_id'), 'fullname_member2', $this->input->post('fullname_anggota'));
                    $this->cc_participants_model->change_details($this->session->userdata('user_id'), 'institution_name', $this->input->post('institution_name'));
                    $this->cc_participants_model->change_details($this->session->userdata('user_id'), 'province_id', $this->input->post('province_id'));
                    $this->cc_participants_model->change_details($this->session->userdata('user_id'), 'address', $this->input->post('address'));
                    $this->cc_participants_model->change_details($this->session->userdata('user_id'), 'email', $this->input->post('email'));
                    $this->cc_participants_model->change_details($this->session->userdata('user_id'), 'phone', $this->input->post('phone'));
                    $this->cc_participants_model->change_details($this->session->userdata('user_id'), 'teacher_name', $this->input->post('teacher_name'));
                    $this->cc_participants_model->change_details($this->session->userdata('user_id'), 'teacher_phone_number', $this->input->post('teacher_phone'));
                    $this->cc_participants_model->change_details($this->session->userdata('user_id'), 'teacher_email', $this->input->post('teacher_email'));

                    $this->session->set_userdata('user_participations', $this->accounts_model->get_account_participation($this->session->user_id));

                    // Do the file uploading if found
                    if (!empty($_FILES))
                    {
                        $config['upload_path']          = 'uploads/cc/' . $this->session->user_id;
                        $config['allowed_types']        = 'jpg';
                        $config['max_size']             = 1000;
                        $config['overwrite']            = TRUE;

                        $this->load->library('upload', $config);

                        $link = "uploads/cc/" . $this->session->user_id;

                        if (!file_exists ($link))
                        {
                            if(!mkdir($link, 0777, TRUE))
                            {
                                $this->session->set_flashdata('make_failed', 'Error Membuat Folder');
                            }
                        }

                        if(is_uploaded_file($_FILES['identity_link_ketua']['tmp_name']))
                        {
                            $config['file_name']            = 'identity_link_ketua.jpg';
                            $this->upload->initialize($config);

                            if (!$this->upload->do_upload('identity_link_ketua'))
                            {
                                array_push($error, $config['file_name']  . ' : '  . $this->upload->display_errors());
                            }
                            else
                            {
                                $this->cc_participants_model->change_details($this->session->userdata('user_id'), 'identity_member1_link', $link . '/identity_link_ketua' . '.jpg');
                            }
                        }

                        if(is_uploaded_file($_FILES['identity_link_anggota']['tmp_name']))
                        {
                            $config['file_name']            = 'identity_link_anggota.jpg';
                            $this->upload->initialize($config);

                            if (!$this->upload->do_upload('identity_link_anggota'))
                            {
                                array_push($error, $config['file_name']  . ' : '  . $this->upload->display_errors());
                            }
                            else
                            {
                                $this->cc_participants_model->change_details($this->session->userdata('user_id'), 'identity_member2_link', $link . '/identity_link_anggota' . '.jpg');
                            }
                        }

                        if(is_uploaded_file($_FILES['passphoto_link1']['tmp_name']))
                        {
                            $config['file_name']            = 'passphoto_link1.jpg';
                            $this->upload->initialize($config);

                            if (!$this->upload->do_upload('passphoto_link1'))
                            {
                                array_push($error, $config['file_name']  . ' : '  . $this->upload->display_errors());
                            }
                            else
                            {
                                $this->cc_participants_model->change_details($this->session->userdata('user_id'), 'pas_photo_user1', $link . '/passphoto_link1' . '.jpg');
                            }
                        }

                        if(is_uploaded_file($_FILES['passphoto_link2']['tmp_name']))
                        {
                            $config['file_name']            = 'passphoto_link2.jpg';
                            $this->upload->initialize($config);

                            if (!$this->upload->do_upload('passphoto_link2'))
                            {
                                array_push($error, $config['file_name']  . ' : '  . $this->upload->display_errors());
                            }
                            else
                            {
                                $this->cc_participants_model->change_details($this->session->userdata('user_id'), 'pas_photo_user2', $link . '/passphoto_link2' . '.jpg');
                            }
                        }
                    }

                    // Redirect to the dashboard
                    redirect('akun/dashboard/cc');
                }

                // Else, show the form
                else
                {
                    $this->load->view('accounts/form_cc.php', $data);
                }
        }else
        {
                $this->form_validation->set_rules(
                    'fullname_ketua', 'Nama Lengkap Ketua',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );

                $data['mode']                       = '';
                $data['user_institution_name']      = '';
                $data['user_fullname']              = '';
                $data['anggota_fullname']           = '';
                $data['user_id_number']             = '';
                $data['gender']                     = '';
                $data['user_identity_link']         = '';
                $data['user_province_id']           = '';
                $data['address']                    = '';
                $data['email']                      = '';
                $data['phone']                      = '';

                // If the form is validated
                if ($this->form_validation->run() === TRUE)
                {
                    // Register the user to the DB
                    $this->cc_participants_model->register_participant();

                    // Do the file uploading if found
                    if (!empty($_FILES))
                    {
                        $config['upload_path']          = 'uploads/cc/' . $this->session->user_id;
                        $config['allowed_types']        = 'jpg';
                        $config['max_size']             = 1000;
                        $config['overwrite']            = TRUE;

                        $this->load->library('upload', $config);

                        $link = "uploads/cc/" . $this->session->user_id;

                        if (!file_exists ($link))
                        {
                            if(!mkdir($link, 0777, TRUE))
                            {
                                $this->session->set_flashdata('make_failed', 'Error Membuat Folder');
                            }
                        }

                        if(is_uploaded_file($_FILES['identity_link_ketua']['tmp_name']))
                        {
                            $config['file_name']            = 'identity_link_ketua.jpg';
                            $this->upload->initialize($config);

                            if (!$this->upload->do_upload('identity_link_ketua'))
                            {
                                array_push($error, $config['file_name']  . ' : '  . $this->upload->display_errors());
                            }
                            else
                            {
                                $this->cc_participants_model->change_details($this->session->userdata('user_id'), 'identity_member1_link', $link . '/identity_link_ketua' . '.jpg');
                            }
                        }

                        if(is_uploaded_file($_FILES['identity_link_anggota']['tmp_name']))
                        {
                            $config['file_name']            = 'identity_link_anggota.jpg';
                            $this->upload->initialize($config);

                            if (!$this->upload->do_upload('identity_link_anggota'))
                            {
                                array_push($error, $config['file_name']  . ' : '  . $this->upload->display_errors());
                            }
                            else
                            {
                                $this->cc_participants_model->change_details($this->session->userdata('user_id'), 'identity_member2_link', $link . '/identity_link_anggota' . '.jpg');
                            }
                        }

                        if(is_uploaded_file($_FILES['passphoto_link1']['tmp_name']))
                        {
                            $config['file_name']            = 'passphoto_link1.jpg';
                            $this->upload->initialize($config);

                            if (!$this->upload->do_upload('passphoto_link1'))
                            {
                                array_push($error, $config['file_name']  . ' : '  . $this->upload->display_errors());
                            }
                            else
                            {
                                $this->cc_participants_model->change_details($this->session->userdata('user_id'), 'pas_photo_user1', $link . '/passphoto_link1' . '.jpg');
                            }
                        }

                        if(is_uploaded_file($_FILES['passphoto_link2']['tmp_name']))
                        {
                            $config['file_name']            = 'passphoto_link2.jpg';
                            $this->upload->initialize($config);

                            if (!$this->upload->do_upload('passphoto_link2'))
                            {
                                array_push($error, $config['file_name']  . ' : '  . $this->upload->display_errors());
                            }
                            else
                            {
                                $this->cc_participants_model->change_details($this->session->userdata('user_id'), 'pas_photo_user2', $link . '/passphoto_link2' . '.jpg');
                            }
                        }
                    }

                    //Set Participations to session
                    $this->session->set_userdata('user_participations', $this->accounts_model->get_account_participation($this->session->user_id));

                    // Redirect to the dashboard
                    redirect('akun/dashboard/cc');
                }

                // Else, show the form
                else
                {
                    $this->load->view('accounts/form_cc.php', $data);
                }

        }

        $this->load->view('templates/footer.php');
    }

    public function cfk ($param1 = '')
    {
        $data['title'] = titlecase('Daftar Chemistry Fair Kids');

        $this->load->view('templates/header.php', $data);

        //Check if already Registered
        $this->load->model('cfk_participants_model');
        if (array_key_exists('cfk', $this->session->userdata('user_participations')) && $param1 == '')
        {
            redirect('akun/dashboard/cfk');
           exit();
        }

        if($param1 == 'edit')
        {
           $this->form_validation->set_rules(
                    'institution_name', 'Nama Sekolah',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );
                $this->form_validation->set_rules(
                    'fullname', 'Nama Lengkap Peserta',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );
                $this->form_validation->set_rules(
                    'fullname_parent', 'Nama Orang Tua',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );
                $this->form_validation->set_rules(
                    'age', 'Usia Peserta',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );
                $this->form_validation->set_rules(
                    'phone', 'Nomor Telepon',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );

                $cfk_data = $this->cfk_participants_model->get_details($this->session->userdata('user_id'));
                $data['mode']                       = 'edit';
                $data['user_institution_name']      = $cfk_data->institution_name;
                $data['user_fullname']              = $cfk_data->fullname;
                $data['user_fullname_parent']       = $cfk_data->fullname_parent;
                $data['user_competition']           = $cfk_data->competition;
                $data['user_age']                   = $cfk_data->age;
                $data['user_phone']                 = $cfk_data->phone;

                // If the form is validated
                if ($this->form_validation->run() === TRUE)
                {
                    // Register the user to the DB
                    $this->cfk_participants_model->change_details($this->session->userdata('user_id'), 'fullname', $this->input->post('fullname'));
                    $this->cfk_participants_model->change_details($this->session->userdata('user_id'), 'institution_name', $this->input->post('institution_name'));
                    $this->cfk_participants_model->change_details($this->session->userdata('user_id'), 'fullname_parent', $this->input->post('fullname_parent'));
                    $this->cfk_participants_model->change_details($this->session->userdata('user_id'), 'age', $this->input->post('age'));
                    $this->cfk_participants_model->change_details($this->session->userdata('user_id'), 'is_tk', $this->input->post('is_tk'));
                    $this->cfk_participants_model->change_details($this->session->userdata('user_id'), 'phone', $this->input->post('phone'));
                    $this->cfk_participants_model->change_details($this->session->userdata('user_id'), 'competition', ($this->input->post('competition_draw') == 'true' ? 1 : 0) + ($this->input->post('competition_cake') == 'true' ? 2 : 0));

                    $this->session->set_userdata('user_participations', $this->accounts_model->get_account_participation($this->session->user_id));

                    // Redirect to the dashboard
                    redirect('akun/dashboard/cfk');
                }

                // Else, show the form
                else
                {
                    $this->load->view('accounts/form_cfk.php', $data);
                }
        }else
        {
            $this->form_validation->set_rules(
                    'institution_name', 'Nama Sekolah',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );
                $this->form_validation->set_rules(
                    'fullname', 'Nama Lengkap Peserta',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );
                $this->form_validation->set_rules(
                    'fullname_parent', 'Nama Orang Tua',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );
                $this->form_validation->set_rules(
                    'age', 'Usia Peserta',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );
                $this->form_validation->set_rules(
                    'phone', 'Nomor Telepon',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );

                $data['mode']                       = '';
                $data['user_institution_name']      = '';
                $data['user_fullname']              = '';
                $data['user_fullname_parent']             = '';
                $data['user_competition']           = '';
                $data['user_age']         = '';
                $data['user_phone']           = '';

                // If the form is validated
                if ($this->form_validation->run() === TRUE)
                {

                    // Register the user to the DB
                    $this->cfk_participants_model->register_participant(
                        $this->session->userdata('user_id'),
                        $this->input->post('institution_name'),
                        $this->input->post('fullname'),
                        $this->input->post('fullname_parent'),
                        $this->input->post('age'),
                        $this->input->post('phone'),
                        ($this->input->post('competition_draw') == 'true' ? 1 : 0) + ($this->input->post('competition_cake') == 'true' ? 2 : 0),
                        $this->input->post('is_tk')
                    );

                    $this->session->set_userdata('user_participations', $this->accounts_model->get_account_participation($this->session->user_id));

                    // Redirect to the dashboard
                    redirect('akun/dashboard/cfk');
                }

                // Else, show the form
                else
                {
                    $this->load->view('accounts/form_cfk.php', $data);
                }

        }

        $this->load->view('templates/footer.php');
    }

	public function seminar ($param1 = '')
    {
        $data['title'] = titlecase('Daftar Seminar Nasional');

        $this->load->view('templates/header.php', $data);

        //Check if already Registered
        $this->load->model('seminar_participants_model');
        if (array_key_exists('seminar', $this->session->userdata('user_participations')) && $param1 == '')
        {
            redirect('akun/dashboard/seminar');
            exit();
        }

        if($param1 == 'edit')
        {
           		$this->form_validation->set_rules(
                    'gender', 'Jenis Kelamin',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );

				$this->form_validation->set_rules(
                    'fullname', 'Nama Lengkap',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );

				$this->form_validation->set_rules(
                    'identity_type', 'Tipe Identitas',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );

				$this->form_validation->set_rules(
                    'identity_number', 'No. Identitas',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );

				$this->form_validation->set_rules(
                    'birth', 'Tempat/Tanggal Lahir',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );

				$this->form_validation->set_rules(
                    'address', 'Alamat',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );

                $seminar_data = $this->seminar_participants_model->get_details($this->session->userdata('user_id'));
                $data['mode']                       = 'edit';
				$data['user_type'] 					= $seminar_data->type;
				$data['user_gender'] 				= $seminar_data->gender;
				$data['user_fullname'] 				= $seminar_data->fullname;
				$data['user_identity_type'] 		= $seminar_data->identity_type;
				$data['user_identity_number'] 		= $seminar_data->identity_number;
				$data['user_identity_link'] 		= $seminar_data->identity_link;
				$data['user_passphoto_link'] 		= $seminar_data->passphoto_link;
				$data['user_birth'] 				= $seminar_data->birth;
				$data['user_address'] 				= $seminar_data->address;
				$data['user_facebook'] 				= $seminar_data->facebook;
				$data['user_twitter'] 				= $seminar_data->twitter;

                // If the form is validated
                if ($this->form_validation->run() === TRUE)
                {
                    // Register the user to the DB
                    $this->seminar_participants_model->change_details($this->session->userdata('user_id'), 'type', $this->input->post('type'));
					$this->seminar_participants_model->change_details($this->session->userdata('user_id'), 'fullname', $this->input->post('fullname'));
                    $this->seminar_participants_model->change_details($this->session->userdata('user_id'), 'gender', $this->input->post('gender'));
					$this->seminar_participants_model->change_details($this->session->userdata('user_id'), 'identity_type', $this->input->post('identity_type'));
					$this->seminar_participants_model->change_details($this->session->userdata('user_id'), 'identity_number', $this->input->post('identity_number'));
					$this->seminar_participants_model->change_details($this->session->userdata('user_id'), 'birth', $this->input->post('birth'));
					$this->seminar_participants_model->change_details($this->session->userdata('user_id'), 'address', $this->input->post('address'));
					$this->seminar_participants_model->change_details($this->session->userdata('user_id'), 'facebook', $this->input->post('facebook'));
					$this->seminar_participants_model->change_details($this->session->userdata('user_id'), 'twitter', $this->input->post('twitter'));

                    $this->session->set_userdata('user_participations', $this->accounts_model->get_account_participation($this->session->user_id));

					// Do the file uploading if found
					if (!empty($_FILES))
					{
						$config['upload_path']          = 'uploads/seminar/' . $this->session->user_id;
						$config['allowed_types']        = 'jpg';
						$config['max_size']             = 1000;
						$config['overwrite']            = TRUE;

						$this->load->library('upload', $config);

						$link = "uploads/seminar/" . $this->session->user_id;

						if (!file_exists ($link))
						{
							if(!mkdir($link, 0777, TRUE))
							{
								$this->session->set_flashdata('make_failed', 'Error Membuat Folder');
							}
						}

						$error = array();

						if(is_uploaded_file($_FILES['identity_link']['tmp_name']))
						{
							$config['file_name']            = 'identity_link.jpg';
							$this->upload->initialize($config);

							if (!$this->upload->do_upload('identity_link'))
							{
								array_push($error, $config['file_name']  . ' : '  . $this->upload->display_errors());
							}
							else
							{
								$this->seminar_participants_model->change_details($this->session->userdata('user_id'), 'identity_link', $link . '/identity_link' . '.jpg');
							}
						}

						if(is_uploaded_file($_FILES['passphoto_link']['tmp_name']))
						{
							$config['file_name']            = 'passphoto_link.jpg';
							$this->upload->initialize($config);

							if (!$this->upload->do_upload('passphoto_link'))
							{
								array_push($error, $config['file_name']  . ' : '  . $this->upload->display_errors());
							}
							else
							{
								$this->seminar_participants_model->change_details($this->session->userdata('user_id'), 'passphoto_link', $link . '/passphoto_link' . '.jpg');
							}
						}
					}

                    // Redirect to the dashboard
                    redirect('akun/dashboard/seminar');
                }

                // Else, show the form
                else
                {
                    $this->load->view('accounts/form_seminar.php', $data);
                }
        }else
        {
            	$this->form_validation->set_rules(
                    'gender', 'Jenis Kelamin',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );

				$this->form_validation->set_rules(
                    'fullname', 'Nama Lengkap',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );

				$this->form_validation->set_rules(
                    'identity_type', 'Tipe Identitas',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );

				$this->form_validation->set_rules(
                    'identity_number', 'No. Identitas',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );

				$this->form_validation->set_rules(
                    'birth', 'Tempat/Tanggal Lahir',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );

				$this->form_validation->set_rules(
                    'address', 'Alamat',
                    'required',
                    array(
                        'required'      => 'Form ini harus diisi!',
                    )
                );

                $data['mode']                       = '';
				$data['user_type'] 					= '';
				$data['user_gender'] 				= '';
				$data['user_fullname'] 				= '';
				$data['user_identity_type'] 		= '';
				$data['user_identity_number'] 		= '';
				$data['user_identity_link'] 		= '';
				$data['user_passphoto_link'] 		= '';
				$data['user_birth'] 				= '';
				$data['user_address'] 				= '';
				$data['user_facebook'] 				= '';
				$data['user_twitter'] 				= '';

                // If the form is validated
                if ($this->form_validation->run() === TRUE)
                {

                    // Register the user to the DB
                    $this->seminar_participants_model->register_participant(
						$this->session->userdata('user_id'),
                        $this->input->post('type'),
						$this->input->post('fullname'),
						$this->input->post('gender'),
						$this->input->post('identity_type'),
						$this->input->post('identity_number'),
						$this->input->post('birth'),
						$this->input->post('address'),
						$this->input->post('facebook'),
						$this->input->post('twitter')
                    );

                    $this->session->set_userdata('user_participations', $this->accounts_model->get_account_participation($this->session->user_id));

					// Do the file uploading if found
					if (!empty($_FILES))
					{
						$config['upload_path']          = 'uploads/seminar/' . $this->session->user_id;
						$config['allowed_types']        = 'jpg';
						$config['max_size']             = 1000;
						$config['overwrite']            = TRUE;

						$this->load->library('upload', $config);

						$link = "uploads/seminar/" . $this->session->user_id;

						if (!file_exists ($link))
						{
							if(!mkdir($link, 0777, TRUE))
							{
								$this->session->set_flashdata('make_failed', 'Error Membuat Folder');
							}
						}

						$error = array();

						if(is_uploaded_file($_FILES['identity_link']['tmp_name']))
						{
							$config['file_name']            = 'identity_link.jpg';
							$this->upload->initialize($config);

							if (!$this->upload->do_upload('identity_link'))
							{
								array_push($error, $config['file_name']  . ' : '  . $this->upload->display_errors());
							}
							else
							{
								$this->seminar_participants_model->change_details($this->session->userdata('user_id'), 'identity_link', $link . '/identity_link' . '.jpg');
							}
						}

						if(is_uploaded_file($_FILES['passphoto_link']['tmp_name']))
						{
							$config['file_name']            = 'passphoto_link.jpg';
							$this->upload->initialize($config);

							if (!$this->upload->do_upload('passphoto_link'))
							{
								array_push($error, $config['file_name']  . ' : '  . $this->upload->display_errors());
							}
							else
							{
								$this->seminar_participants_model->change_details($this->session->userdata('user_id'), 'passphoto_link', $link . '/passphoto_link' . '.jpg');
							}
						}
					}

                    // Redirect to the dashboard
                    redirect('akun/dashboard/seminar');
                }

                // Else, show the form
                else
                {
                    $this->load->view('accounts/form_seminar.php', $data);
                }

        }

        $this->load->view('templates/footer.php');
    }
}

redpajama_set_name: RedPajamaGithub


Medigap (Medicare Supplement) is offered by private insurance companies to help fill the "gaps" Medicare doesn't cover, such as copayments, coinsurance and deductibles. Generally, anyone with Medicare Parts A & B is eligible for Medigap.
Plans are assigned letters A through N, and are not to be confused with the "parts" of Medicare, such as Parts A & B. Each Medigap policy plan must offer the same basic benefits, no matter which insurance company sells it. For example Plan K from insurance company ABC must offer the same benefits as Plan K from insurance company XYZ.
The Medigap rate guide gives annual premium averages for the 11 plans offered in Missouri. It also lists the companies authorized to sell these policies in the state. Rates can vary for a number of reasons, including age, location, gender and insurance company.


text:
Filters: First Letter Of Keyword is E and Author is Barney, Kevin L. [Clear All Filters]
Barney, Kevin L.. "On the Etymology of Deseret." BCC Papers 1, no. 2 (2006).
Barney, Kevin L.. "Enallage in the Book of Mormon." Journal of Book of Mormon Studies 3, no. 1 (1994): 113-147.
Barney, Kevin L.. "Notes and Communications: Divine Discourse Directed at a Prophet's Posterity in the Plural: Further Light on Enallage." Journal of Book of Mormon Studies 6, no. 2 (1997): 229-234.
Barney, Kevin L.. "On Elkenah as Canaanite El." Journal of the Book of Mormon and Other Restoration Scripture 19, no. 1 (2010): 22-35.
Barney, Kevin L.. Mormon Scholars Testify: Kevin L. Barney. Mormon Scholars Testify, 2010.
Barney, Kevin L.. "A Seemingly Strange Story Illuminated." FARMS Review of Books 13, no. 1 (2001): 1-20.
Barney, Kevin L.. "An Elegant Presentation." The FARMS Review 16, no. 1 (2004): 1-10.
Barney, Kevin L.. "The Foundation of Our Religion." The FARMS Review 18, no. 2 (2006): 179-187.
Barney, Kevin L.. "The Facsimiles and Semitic Adaptation of Existing Sources." In Astronomy, Papyrus, and Covenant, edited by John Gee and Brian M. Hauglid, 107-130. Provo, UT: Foundation for Ancient Research and Mormon Studies, Brigham Young University, 2005.
Barney, Kevin L.. "The Sperry Symposium and the New Testament." The FARMS Review 19, no. 2 (2007): 177-191.
Barney, Kevin L.. "Finally!" The FARMS Review 19, no. 2 (2007): 193-207.


text:
Základní soubor neboli populace je pojem z matematické statistiky, který označuje kompletní sadu všech objektů (statistických jednotek), které nás zajímají při určitém statistickém zkoumání. Pokud nemáme možnost zkoumat všechny objekty (například protože nejsou všechny dosažitelné, jejich zkoumání má destruktivní povahu, nebo kvůli omezeným finančním prostředkům), musíme pracovat s určitým výběrem, a proto rozlišujeme pojmy výběrový soubor, jehož vlastnosti zkoumáme přímo, a základní soubor (populace), který označuje souhrn všech objektů zvolené třídy. Na získané údaje pohlížíme jako na výsledek určitého náhodného pokusu (který mohl dát i jiné výsledky). Tím se do zkoumání dostává určitý prvek náhodnosti, v důsledku čehož mají závěry pravděpodobnostní charakter.

Pokud máme možnost zkoumat všechny objekty, mluvíme prostě o (statistickém) souboru a vystačíme s metodami popisné statistiky.

Odkazy

Reference

Související články
 Statistický soubor
 Výběrový soubor
 Znak (statistika)

Literatura

Matematická statistika

redpajama_set_name: RedPajamaWikipedia


text:
Kelly Clarkson will be godmother to Norwegian Encore
September 11, 2019 By Ben & David
NCL President and CEO Andy Stuart with Kelly Clarkson (c)
Norwegian Cruise Line announced today on "The Kelly Clarkson Show" that GRAMMY Award-winning artist and superstar Kelly Clarkson will serve as the godmother to its newest ship, Norwegian Encore, debuting in Miami in November.
The cruise line's President and Chief Executive Officer Andy Stuart appeared on Clarkson's new daytime show, to invite her to join the Norwegian Cruise Line family as godmother to Norwegian Encore.
As godmother, she will perform at the christening ceremony in Miami on Thursday, Nov. 21, as well as fulfil the longstanding maritime tradition of blessing and officially naming the Norwegian Encore.
Encore float out (c)NCL
Clarkson said she is "honored to be named the godmother to Norwegian Encore, and to get to be a part of such a special ceremony to christen the new ship in Miami,"
To celebrate her new title as godmother to Norwegian Encore, Clarkson and Norwegian Cruise Line recognised and awarded 20 deserving music educators on "The Kelly Clarkson Show" with a seven-day cruise.
What's On Norwegian Encore
Norwegian Encore will feature the world's longest race track at sea at 1,100 feet with four high-speed curves extending up to 13 feet over the side of the ship; the largest outdoor laser tag arena at nearly 10,000 square feet with the addition of augmented reality elements; and new immersive escape room and interactive theatre experiences in the 10,000-square-foot Galaxy Pavilion.
In addition to featuring many of the highly rated restaurants and lounges that have made the Breakaway Plus class one of the most innovative and successful in the company's history, Norwegian Encore will debut a new elevated Italian dining experience, Onda by Scarpetta, in collaboration with LDV Hospitality. The Tony Award®-winning musical, "Kinky Boots" will headline the world-class entertainment on board, with returning guest favourites "The Choir of Man," "Happy Hour Prohibition: The Musical" and the rocking Beatles cover band of The Cavern Club.
Read More: Norwegian Encore, Nowegian Cruise Line
Vision Cruise Exclusive Partnership
Cruise News | January 16, 2020
We are excited to announce an exclusive partnership with Vision Cruise.
Could it be magic? P&O Cruises rule the world as they announce Gary Barlow as new brand ambassador
Further details on Gary Barlow's role to be announced at exclusive launch event in London this evening
Top Black Friday & Cyber Monday Cruise Deals 2019
Cruise News | November 27, 2019
Black Friday is here and its a great time to get some fantastic cruise deals. Our roundup of the top Black Friday and Cyber Monday deals will help you grab a bargain on your 2020 cruise.