<?php
/*
Generated by OutputBooks Team
*/

defined("\102\101\123\x45\120\101\124\110") or exit("\x4e\x6f\40\144\151\x72\145\143\x74\x20\x73\x63\162\151\160\164\40\141\x63\x63\x65\x73\x73\x20\x61\154\154\x6f\167\145\144");
class Script extends MY_Controller
{
    public function __construct()
    {
        parent::__construct();
        $this->load->model("\163\143\162\x69\160\164\x4d\x6f\144\145\x6c");
    }
    public function listing()
    {
        goto XHSFv;
        YDFXw:
        $result = $this->scriptModel->listing($data);
        goto jrHQu;
        uiyRJ:
        return true;
        goto G9_se;
        jrHQu:
        if (!empty($result["\151\164\145\155\163"])) {
            $this->response->set_data("\x69\x74\x65\x6d\163", $result["\x69\164\x65\155\x73"], true);
        }
        goto aWGf7;
        pn_6D:
        $this->response->write();
        goto uiyRJ;
        XHSFv:
        $data = $this->request->post();
        goto YDFXw;
        aWGf7:
        if (!empty($result["\141\x74\x74\x72\x69\142\165\x74\x65\163"])) {
            $this->response->set_data("\x61\164\164\162\x69\x62\165\164\x65\x73", $result["\141\164\164\x72\x69\x62\x75\x74\145\163"]);
        }
        goto pn_6D;
        G9_se:
    }
    public function edit($id = 0)
    {
        goto kvXk8;
        jHTIg:
        $result = $this->scriptModel->edit($id);
        goto WEVSy;
        WEVSy:
        $this->response->set_data($result);
        goto Mt6ja;
        Mt6ja:
        $this->response->success();
        goto wYVVf;
        kvXk8:
        $result = array();
        goto jHTIg;
        WobiF:
        return true;
        goto MAkWM;
        wYVVf:
        $this->response->write();
        goto WobiF;
        MAkWM:
    }
    public function edit_trans($tType = '', $id = 0)
    {
        goto lBtXE;
        dKfUZ:
        $this->response->set_data($result);
        goto D_7ip;
        fv85h:
        return true;
        goto Vs6Ij;
        HsFkR:
        $this->response->write();
        goto fv85h;
        lBtXE:
        $result = array();
        goto VLHkR;
        hN7jf:
        $result = $this->scriptModel->edit_trans($tType, $id);
        goto dKfUZ;
        D_7ip:
        $this->response->success();
        goto HsFkR;
        VLHkR:
        $this->cId = get_company("\151\144");
        goto hN7jf;
        Vs6Ij:
    }
    public function contact_tranactions($conId = 0)
    {
        goto s1LvP;
        E5QMM:
        $this->response->set_data($result);
        goto rFjG_;
        ZFJRB:
        $result = $this->scriptModel->contact_tranactions($conId);
        goto E5QMM;
        s1LvP:
        $result = array();
        goto ZFJRB;
        KRmGp:
        $this->response->write();
        goto s6o1G;
        s6o1G:
        return true;
        goto nP5LY;
        rFjG_:
        $this->response->success();
        goto KRmGp;
        nP5LY:
    }
    public function delete($type = '', $transId = '')
    {
        goto NW7tp;
        NW7tp:
        $result = $this->scriptModel->delete($type, $transId);
        goto wipYO;
        ovyqb:
        $this->response->write();
        goto eDwDe;
        eDwDe:
        return true;
        goto IPiGj;
        wipYO:
        $this->response->success();
        goto ovyqb;
        IPiGj:
    }
    public function save()
    {
        goto xBHhf;
        hb6cF:
        if ($result) {
            $this->response->success("\x53\125\103\x43\x45\123\123\137\123\101\126\x45");
            $this->response->set_data($result);
        } else {
            $this->response->error($this->scriptModel->message ? $this->scriptModel->message : "\106\x41\111\114\137\123\x41\x56\105");
        }
        goto Utfyv;
        xBHhf:
        $data = $this->request->post();
        goto Hjbrf;
        j5u1e:
        return true;
        goto il5Bc;
        Hjbrf:
        $result = $this->scriptModel->save($data);
        goto hb6cF;
        Utfyv:
        $this->response->write();
        goto j5u1e;
        il5Bc:
    }
    public function trans($itemId = '')
    {
        goto AROPs;
        srtOe:
        $this->response->set_data($result, true);
        goto unJ4d;
        AROPs:
        $result = $this->scriptModel->trans($itemId);
        goto srtOe;
        unJ4d:
        $this->response->success();
        goto sTakK;
        sTakK:
        $this->response->write();
        goto uE3Ul;
        uE3Ul:
    }
    public function transaction()
    {
        goto qrfTQ;
        Cf257:
        $this->response->set_data($result, true);
        goto Jg69v;
        qrfTQ:
        $data = $this->request->post();
        goto gq6R5;
        UjBZH:
        return true;
        goto d0CD8;
        Jg69v:
        $this->response->write();
        goto UjBZH;
        gq6R5:
        $result = $this->scriptModel->transaction($data);
        goto Cf257;
        d0CD8:
    }
    public function pending($id = 0)
    {
        goto SQzw8;
        B9N9R:
        return true;
        goto y1lE7;
        mIlsY:
        $this->response->write();
        goto B9N9R;
        SQzw8:
        $result = $this->scriptModel->pending($id);
        goto P4kb0;
        P4kb0:
        $this->response->set_data("\x69\x74\145\x6d\163", $result, true);
        goto mIlsY;
        y1lE7:
    }
    public function active($sId = 0)
    {
        goto TfRAI;
        TfRAI:
        $result = $this->scriptModel->active($sId);
        goto ZfaKp;
        GVNT5:
        $this->response->write();
        goto xK1Nw;
        ZfaKp:
        $this->response->set_data("\151\x74\145\155\163", $result, true);
        goto GVNT5;
        xK1Nw:
        return true;
        goto x1n_8;
        x1n_8:
    }
}
