<?php
/*
Generated by OutputBooks Team
*/

defined("\102\101\x53\x45\120\101\124\x48") or exit("\116\x6f\x20\x64\151\x72\145\143\x74\x20\163\x63\x72\151\160\164\x20\x61\x63\x63\145\163\163\x20\141\154\x6c\x6f\x77\x65\x64");
class Banktrans extends MY_Controller
{
    public function __construct()
    {
        goto D4J67;
        pBMBp:
        $this->cId = get_company("\151\144");
        goto Qp1jU;
        D4J67:
        parent::__construct();
        goto pBMBp;
        Qp1jU:
        $this->load->model("\142\141\x6e\153\x74\x72\141\x6e\x73\x4d\157\144\145\154");
        goto jr_Hf;
        jr_Hf:
    }
    public function index()
    {
        $this->load->page("\x68\x6f\155\x65");
    }
    function parse($overwrite = false)
    {
        goto KScOf;
        mY4p_:
        if (!$result) {
            goto Jgbdk;
            VkJvT:
            return false;
            goto wm9Km;
            Jgbdk:
            if ($this->banktransModel->message == "\103\117\x4c\125\115\116\137\x4e\x4f\124\x5f\x46\x4f\125\x4e\104") {
                $this->response->error("\123\x6f\162\162\x79\x2e\x20\125\156\x61\142\x6c\145\40\164\157\x20\x70\162\157\143\145\x73\163\40\164\150\x69\x73\40\146\151\x6c\x65\56\x20\x50\154\145\x61\163\x65\40\x75\160\154\x6f\x61\x64\40\151\x6e\x20\146\x6f\162\155\x61\164\40\163\151\155\151\154\141\x72\40\164\157\x20" . $sampleFile);
            } else {
                $this->response->error(empty($this->banktransModel->message) ? lang("\111\x4d\120\x4f\122\124\137\x45\x52\122\117\x52") : $this->banktransModel->message);
            }
            goto Qs2MU;
            Qs2MU:
            $this->response->write();
            goto VkJvT;
            wm9Km:
        }
        goto fevXS;
        KScOf:
        $this->load->model("\141\164\x74\x61\143\x68\155\145\156\x74\115\157\144\x65\x6c");
        goto lADX0;
        fevXS:
        $this->response->success(lang("\x52\x65\143\x6f\162\144\163\x20\114\x6f\141\144\145\144\x20\x73\165\x63\143\145\163\x73\146\165\x6c\154\x79"));
        goto rCTC8;
        qVh6i:
        $result = $this->banktransModel->parse(!empty($file_data) ? $file_data : $data);
        goto mY4p_;
        HSKAR:
        if (!empty($file_data[0])) {
            $file_data = $file_data[0];
        }
        goto qVh6i;
        ijKVK:
        $file_data = $this->attachmentModel->upload_file("\151\155\160\x6f\x72\x74");
        goto m8OUR;
        lADX0:
        $_POST = $data = $this->request->post();
        goto ijKVK;
        rCTC8:
        $this->response->set_data($result);
        goto RqNW1;
        ZiwUE:
        return true;
        goto Ps4wH;
        m8OUR:
        $sampleFile = "\74\141\40\164\x61\162\x67\x65\x74\x3d\x22\137\x62\154\141\x6e\x6b\42\40\150\x72\145\x66\x3d\42" . base_url("\x75\160\154\157\x61\x64\163\57\123\x61\x6d\x70\x6c\x65\x46\151\154\145\56\170\154\x73") . "\x22\76\123\141\x6d\160\x6c\145\x46\151\154\145\x2e\170\x6c\x73\x3c\x2f\x61\76";
        goto vhmKB;
        RqNW1:
        $this->response->write();
        goto ZiwUE;
        vhmKB:
        if (empty($file_data)) {
            goto Pi4vi;
            Pi4vi:
            if (strpos($this->attachmentModel->message, "\124\x68\145\40\x66\151\154\x65\x74\171\160\x65\40\x79\x6f\x75\40\x61\162\145\x20\141\164\x74\x65\x6d\x70\164\x69\156\147\x20\x74\x6f\40\x75\x70\154\x6f\x61\144\40\x69\x73\x20\x6e\x6f\164\x20\x61\x6c\154\157\x77\x65\144") !== false) {
                $this->response->error("\x53\x6f\162\162\171\56\40\x54\150\x69\x73\40\x66\x69\x6c\145\40\x74\x79\160\x65\40\x69\163\x20\x6e\x6f\x74\x20\x73\165\160\160\x6f\162\164\145\x64\56\40\127\x65\40\163\165\160\160\x6f\162\x74\40\157\156\154\x79\40\170\154\x73\x2f\x78\154\x73\170\57\x63\163\166\57\157\x64\163\40\146\151\x6c\x65\163\56" . $sampleFile);
            } else {
                $this->response->error($this->attachmentModel->message);
            }
            goto A3Eao;
            SsewC:
            return false;
            goto lNjx2;
            A3Eao:
            $this->response->write();
            goto SsewC;
            lNjx2:
        }
        goto HSKAR;
        Ps4wH:
    }
    public function save()
    {
        goto dcVFn;
        vFbr0:
        if (!empty($result)) {
            goto GhlFG;
            GhlFG:
            $this->response->success("\123\125\103\103\x45\123\x53\137\123\101\x56\105");
            goto AFbnX;
            ZJn8f:
            return true;
            goto FocZM;
            AFbnX:
            $this->response->set_data("\144\141\x74\141", $result);
            goto I0xdO;
            I0xdO:
            $this->response->write();
            goto ZJn8f;
            FocZM:
        }
        goto Wp_bV;
        dcVFn:
        $data = $this->request->post();
        goto jR2NC;
        jR2NC:
        $result = $this->banktransModel->save($data);
        goto vFbr0;
        Wp_bV:
    }
    public function translist()
    {
        goto rrwWh;
        MJunm:
        $this->response->success();
        goto qfYry;
        qfYry:
        $this->response->set_data("\x69\x74\145\x6d\x73", $result, true);
        goto m5xTv;
        akO1T:
        $result = $this->banktransModel->trans_list($data);
        goto MJunm;
        m5xTv:
        $this->response->write();
        goto cYMkN;
        cYMkN:
        return true;
        goto U0bbN;
        rrwWh:
        $data = $this->request->post();
        goto akO1T;
        U0bbN:
    }
    public function listing()
    {
        goto W0m2s;
        hkH4D:
        return true;
        goto enqC5;
        gmkzr:
        $this->response->set_data($result);
        goto eZple;
        ll7DF:
        unset($result["\151\164\145\155\x73"]);
        goto gmkzr;
        Gfkoe:
        if (!empty($data["\146\137\x74\171\160\x65"])) {
            goto tyV8V;
            OVHuO:
            foreach ($_result["\151\164\x65\x6d\x73"] as $key => $val) {
                goto Za9I1;
                Za9I1:
                $val["\142\x74\x72\x44\x61\164\145"] = !empty($val["\142\x74\162\x44\141\x74\145"]) ? format_date($val["\142\164\x72\104\x61\x74\x65"]) : '';
                goto cZImb;
                yky8T:
                $_result["\x69\164\145\155\x73"][$key] = $val;
                goto PhO70;
                r6dEE:
                $val["\x63\x72\145\144\x69\x74"] = !empty($val["\x63\x72\145\x64\x69\x74"]) ? $val["\x63\162\x65\x64\151\x74"] : '';
                goto jSqlA;
                c6rta:
                $val["\164\116\157\x73"] = !empty($val["\x74\116\157\x73"]) ? $val["\x74\x4e\x6f\x73"] : '';
                goto yky8T;
                PhO70:
                xPaQo:
                goto Upb0r;
                jSqlA:
                $val["\x64\x65\142\151\x74"] = !empty($val["\144\145\142\151\x74"]) ? $val["\144\145\142\x69\164"] : '';
                goto c6rta;
                cZImb:
                $val["\x62\x74\x72\104\145\163\x63"] = !empty($val["\142\x74\x72\x44\145\x73\143"]) ? $val["\142\x74\x72\104\x65\163\x63"] : '';
                goto r6dEE;
                Upb0r:
            }
            goto Da4Ii;
            tyV8V:
            $this->load->model("\162\x65\160\x6f\162\164\57\x45\170\x70\157\x72\164\115\157\x64\x65\154", "\x65\170\x70\x6f\x72\164\x4d\x6f\x64\145\154");
            goto bOm5Z;
            OHzJh:
            $_result["\150\x65\x61\x64\151\x6e\x67"] = array("\x62\164\x72\104\141\x74\145" => array("\x6e\x61\155\x65" => "\x54\x72\x61\x6e\x2e\104\x61\164\145"), "\142\x74\x72\x44\x65\x73\143" => array("\x6e\x61\x6d\x65" => "\116\141\x72\x72\141\164\x69\157\x6e"), "\143\162\x65\x64\151\164" => array("\x6e\x61\155\x65" => "\127\151\164\x68\x64\162\141\x77"), "\144\145\142\x69\164" => array("\x6e\141\155\145" => "\x44\x65\160\157\163\x69\x74"), "\x74\x4e\157\x73" => array("\156\141\x6d\145" => "\x52\145\x63\157\156\x63\151\x6c\x69\x61\x74\x69\157\x6e\x3c\x62\x72\x3e\x4d\141\x70\160\x69\x6e\147"));
            goto Eye2K;
            Da4Ii:
            CZgtD:
            goto UD1eI;
            Eye2K:
            $_result["\x69\164\x65\155\163"] = $result["\x69\164\x65\155\x73"];
            goto OVHuO;
            QUl7i:
            $_result["\x66\x69\x6c\x65\x5f\x6e\141\x6d\145"] = "\102\x61\x6e\x6b\x20\114\x65\x64\x67\x65\162";
            goto YC7Wv;
            UD1eI:
            $file_name = $this->exportModel->export_file($_result, $data["\x66\x5f\x74\x79\x70\x65"]);
            goto wS8rR;
            bi69B:
            $_result["\x73\151\144\x65\110\x65\141\x64\x65\x72"] = "\x42\141\x6e\x6b\40\x4c\145\x64\147\x65\x72";
            goto QUl7i;
            YC7Wv:
            $_result["\146\162\x6f\x6d\x5f\x64\141\x74\145"] = $data["\146\x72\157\155\137\x64\x61\164\x65"];
            goto RDAni;
            RDAni:
            $_result["\164\x6f\x5f\x64\141\x74\145"] = $data["\x74\x6f\x5f\144\x61\x74\145"];
            goto OHzJh;
            wS8rR:
            $this->response->set_data("\x75\162\x6c", $file_name);
            goto W6nlb;
            EOjqX:
            $_result["\164\x79\x70\145"] = "\x42\141\156\153";
            goto bi69B;
            Am5Op:
            return true;
            goto Qn8s4;
            W6nlb:
            $this->response->write();
            goto Am5Op;
            bOm5Z:
            $_result = array();
            goto EOjqX;
            Qn8s4:
        }
        goto FXMgr;
        W0m2s:
        $data = $this->request->post();
        goto zqLae;
        FXMgr:
        if (!empty($result["\x69\164\x65\155\x73"])) {
            $this->response->set_data("\151\x74\x65\155\x73", $result["\151\x74\x65\155\163"], true);
        }
        goto ll7DF;
        eZple:
        $this->response->write();
        goto hkH4D;
        zqLae:
        $result = $this->banktransModel->get_list($data);
        goto Gfkoe;
        enqC5:
    }
    function import($overwrite = false)
    {
        goto doQOC;
        doQOC:
        $data = $this->request->post();
        goto C4L6l;
        PbzYa:
        if (!empty($result)) {
            goto STlZD;
            UXebl:
            $this->response->write($result);
            goto RPu8I;
            STlZD:
            $this->response->success($this->banktransModel->message);
            goto UXebl;
            RPu8I:
            return true;
            goto iUd0k;
            iUd0k:
        }
        goto P1wGV;
        C4L6l:
        $result = $this->banktransModel->import($data);
        goto PbzYa;
        P1wGV:
    }
    function link()
    {
        goto Ld5iP;
        Vcpz0:
        if (!empty($data)) {
            goto y3hUD;
            RmjrM:
            $this->response->write($result);
            goto TUB3X;
            bujJE:
            $this->response->success("\114\x69\x6e\x6b\x65\x64\x20\x53\165\143\x63\145\163\163\x66\165\154\x6c\x79\41\x21");
            goto RmjrM;
            y3hUD:
            $result = $this->banktransModel->link($data);
            goto bujJE;
            TUB3X:
        } else {
            $this->response->error($this->banktransModel->message);
        }
        goto QljkW;
        Ld5iP:
        $data = $this->request->post();
        goto Vcpz0;
        QljkW:
        return true;
        goto xwH5v;
        xwH5v:
    }
    function unlink()
    {
        goto edsP3;
        edsP3:
        $data = $this->request->post();
        goto P3Qw6;
        P3Qw6:
        if (!empty($data["\151\x74\145\x6d\x73"])) {
            goto pp8UZ;
            r2k0N:
            $this->response->success("\125\x6e\154\151\156\153\x65\x64\41\x21");
            goto iN4K6;
            iN4K6:
            if (!empty($result)) {
                $this->response->write("\151\164\x65\155\163", $result);
            }
            goto fiSgG;
            pp8UZ:
            $result = $this->banktransModel->unlink($data);
            goto r2k0N;
            fiSgG:
        } else {
            $this->response->error($this->banktransModel->message);
        }
        goto rSJ9T;
        rSJ9T:
        return true;
        goto QrtDu;
        QrtDu:
    }
    function suggest()
    {
        goto R_o28;
        M_1PH:
        return true;
        goto cL8N6;
        VwQci:
        $this->response->success();
        goto B8Gi3;
        m1iaZ:
        $result = $this->banktransModel->suggest($data);
        goto VwQci;
        B8Gi3:
        if (!empty($result)) {
            $this->response->set_data($result);
        }
        goto WnVUU;
        R_o28:
        $data = $this->request->post();
        goto m1iaZ;
        WnVUU:
        $this->response->write();
        goto M_1PH;
        cL8N6:
    }
    function clear()
    {
        goto oMmmN;
        dK9aW:
        $this->response->write();
        goto cnb77;
        oMmmN:
        $data = $this->request->post();
        goto piI2B;
        piI2B:
        $result = $this->banktransModel->clear($data);
        goto BtZ9H;
        BtZ9H:
        $this->response->success();
        goto dK9aW;
        cnb77:
        return true;
        goto BYci6;
        BYci6:
    }
    function mapdetails()
    {
        goto VtPIC;
        nsn6M:
        $this->response->success();
        goto xQFlv;
        xQFlv:
        if (!empty($result)) {
            $this->response->set_data($result);
        }
        goto Gxc1t;
        Gxc1t:
        $this->response->write();
        goto O32ur;
        O32ur:
        return true;
        goto tSlmq;
        VtPIC:
        $data = $this->request->post();
        goto j6i7K;
        j6i7K:
        $result = $this->banktransModel->mapdetails($data);
        goto nsn6M;
        tSlmq:
    }
}
