<?php
/*
Generated by OutputBooks Team
*/

defined("\102\x41\x53\x45\x50\101\x54\x48") or exit("\x4e\x6f\40\x64\151\x72\x65\x63\x74\40\163\143\x72\x69\x70\164\x20\x61\143\x63\145\163\x73\x20\x61\x6c\154\x6f\x77\x65\x64");
class Scroll extends MY_Controller
{
    public function __construct()
    {
        parent::__construct();
        $this->load->model("\x73\143\162\x6f\154\154\115\157\x64\x65\x6c");
    }
    public function listing()
    {
        goto PwdHp;
        UntNK:
        $this->response->write();
        goto XyDhA;
        XyDhA:
        return true;
        goto Zy_wW;
        h9HMZ:
        $this->response->set_data($result, true);
        goto UntNK;
        e01_9:
        $result = $this->scrollModel->listing($data);
        goto h9HMZ;
        PwdHp:
        $data = $this->request->post();
        goto e01_9;
        Zy_wW:
    }
    public function payment_listing()
    {
        goto hKHsj;
        o9RLq:
        $this->response->write();
        goto nQqz5;
        nQqz5:
        return true;
        goto smhkB;
        hKHsj:
        $data = $this->request->post();
        goto fB2fY;
        NKhQa:
        $this->response->set_data($result, true);
        goto o9RLq;
        fB2fY:
        $result = $this->scrollModel->payment_listing($data);
        goto NKhQa;
        smhkB:
    }
    public function edit($id = '')
    {
        goto K5wLM;
        rkxNC:
        $this->response->write();
        goto fc5xm;
        K5wLM:
        $result = array();
        goto Gi1xP;
        Hy0XL:
        $types = $this->scrollModel->types();
        goto y77H2;
        Gi1xP:
        if ($id) {
            $result = $this->scrollModel->edit($id);
            if (!empty($result["\x72\x65\154\163"])) {
                $this->response->set_data("\x72\x65\154\163", $result["\x72\x65\154\163"], true);
                unset($result["\162\145\154\163"]);
            }
        }
        goto Hy0XL;
        fc5xm:
        return true;
        goto wKcgT;
        Xla5k:
        $this->response->set_data($result);
        goto EHlc8;
        y77H2:
        $this->response->set_data("\x74\171\x70\x65\x73", $types, true);
        goto Xla5k;
        EHlc8:
        $this->response->success();
        goto rkxNC;
        wKcgT:
    }
    public function trans($itemId = '')
    {
        goto HwDiG;
        HwDiG:
        $result = $this->scrollModel->trans($itemId);
        goto TpDG_;
        TpDG_:
        $this->response->set_data($result, true);
        goto IUrEP;
        IUrEP:
        $this->response->success();
        goto Up5pg;
        Up5pg:
        $this->response->write();
        goto QvpRz;
        QvpRz:
    }
    public function delete($id)
    {
        goto qxpfq;
        khCXj:
        return true;
        goto H1ars;
        qxpfq:
        if (!($result = $this->scrollModel->delete($id))) {
            $this->response->error($this->scrollModel->message);
        } else {
            $this->response->success();
        }
        goto jkpzD;
        jkpzD:
        $this->response->write();
        goto khCXj;
        H1ars:
    }
    public function save()
    {
        goto oBKi7;
        XeAPz:
        $this->form_validation->set_rules("\x73\116\x6f", "\123\143\162\157\154\154\x20\x4e\157", "\164\162\151\155\x7c\x72\145\161\165\x69\x72\145\144");
        goto vkvl9;
        bXj9w:
        $id = $this->scrollModel->save($data);
        goto hiFf_;
        aWw9J:
        $this->response->write();
        goto rXVi0;
        oBKi7:
        $_POST = $data = $this->request->post();
        goto V1jRh;
        V1jRh:
        $this->load->library("\146\157\x72\x6d\x5f\x76\x61\154\151\144\141\x74\151\x6f\x6e");
        goto XeAPz;
        hiFf_:
        if ($id) {
            $this->response->success("\123\x55\103\x43\x45\x53\123\x5f\x53\x41\x56\x45");
            $this->response->set_data("\x69\x64", $id);
        } else {
            $this->response->error($this->scrollModel->message ? $this->scrollModel->message : "\x53\x41\126\105\137\105\x52\122\x4f\122");
        }
        goto aWw9J;
        vkvl9:
        if ($this->form_validation->run() == FALSE) {
            goto Kr3mz;
            jaZAb:
            return false;
            goto aAcR9;
            Kr3mz:
            $this->response->error(validation_errors());
            goto bF_Dy;
            bF_Dy:
            $this->response->write();
            goto jaZAb;
            aAcR9:
        }
        goto bXj9w;
        rXVi0:
        return true;
        goto tTLj9;
        tTLj9:
    }
    public function pending($id = 0)
    {
        goto LG1OU;
        xmbjY:
        $this->response->set_data("\x69\164\x65\x6d\x73", $result, true);
        goto hCPIb;
        LG1OU:
        $result = $this->scrollModel->pending($id);
        goto xmbjY;
        hCPIb:
        $this->response->write();
        goto ugZPG;
        ugZPG:
        return true;
        goto QMCXY;
        QMCXY:
    }
    public function payment()
    {
        goto wZkSK;
        ugF0L:
        return true;
        goto uJQTY;
        wZkSK:
        $data = $this->request->post();
        goto OvYYb;
        baIHb:
        if (!empty($id)) {
            $this->response->success("\123\x55\103\x43\105\123\x53\x5f\123\x41\x56\105");
            $this->response->set_data("\x69\x64", $id);
        } else {
            $this->response->error("\x53\x41\x56\x45\137\x45\x52\x52\x4f\x52");
        }
        goto ndXtx;
        ndXtx:
        $this->response->write();
        goto ugF0L;
        OvYYb:
        $id = $this->scrollModel->payment($data);
        goto baIHb;
        uJQTY:
    }
    public function payment_edit($id)
    {
        goto MBq6D;
        IDsN7:
        $this->response->set_data($result, true);
        goto CtjYT;
        CtjYT:
        $this->response->write();
        goto tc9Fl;
        tc9Fl:
        return true;
        goto AbPej;
        MBq6D:
        $result = $this->scrollModel->payment_edit($id);
        goto IDsN7;
        AbPej:
    }
    public function payment_delete($id)
    {
        goto TQNT7;
        dIMIR:
        return true;
        goto bhuDK;
        vuwZL:
        $this->response->write();
        goto dIMIR;
        TQNT7:
        $result = $this->scrollModel->payment_delete($id);
        goto j_kyP;
        j_kyP:
        $this->response->success();
        goto vuwZL;
        bhuDK:
    }
}
