Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php namespace App\Controllers\Application\Logistics; use App\Models\Application\Logist..
Decoded Output download
<?php
namespace App\Controllers\Application\Logistics;
use App\Models\Application\Logistics\InvoiceModel;
use Core\View;
use App\Models\HomeModel;
use App\Models\Application\Data\OracleModel;
use App\Controllers;
use App\Models\Application\Admin\OrganizationModel;
use App\Models\Application\Sales\CustomerModel;
use App\Flash;
class Invoice extends Controllers\Authenticated
{
public function getInvoiceAction()
{
$deliveryName = $_POST["dn"];
$invoice[
"Invoice"
] = OracleModel::getInvoiceByName($deliveryName, "");
header(
"Content-Type: application/json"
);
echo json_encode($invoice);
}
public function getInvoiceByIdAction()
{
$invoiceId = $_POST["dn"];
$deliveryName = InvoiceModel::getDeliveryNameById($invoiceId);
$invoiceJoin[
"Invoice"
] = OracleModel::getInvoiceByName($deliveryName, "");
$invoiceJoin[
"InvoiceHead"
][] = InvoiceModel::getDeliveryByName($deliveryName);
$invoiceJoin[
"Loading"
] = InvoiceModel::getLoadingById($invoiceId);
$invoiceJoin[
"Container"
] = InvoiceModel::getContainerByInvoiceId($invoiceId);
header(
"Content-Type: application/json"
);
echo json_encode($invoiceJoin);
}
public function reportAction()
{
$id["referenceId"] =
$this->route_params["id"];
View::renderTemplate(
"/Application/Logistics/Invoice/report.html",
["id" => $id]
);
}
public function test()
{
$invoiceId = $this->route_params["id"];
$invoiceJoin[
"Loading"
] = InvoiceModel::getLoadingById(229);
echo json_encode($invoiceJoin);
}
public function indexAction()
{
$resultDelivery = InvoiceModel::getDeliveryList();
$Delivery = (array) $resultDelivery;
$result = HomeModel::getAll();
View::renderTemplate(
"/Application/Logistics/Invoice/index.html",
[
"sidenav" => $result,
"Delivery" => $Delivery,
]
);
}
public function updateAction()
{
$id = $this->route_params["id"];
$header = new InvoiceModel($_POST);
if ($header->updateHeader($id)) {
Flash::addMessage(
"Record update successfully.",
FLASH::INFO
);
header(
"Location: http://" .
$_SERVER["HTTP_HOST"] .
"/Application/Logistics/Invoice/" .
$id .
"/edit",
true,
303
);
die();
} else {
Flash::addMessage(
"Unable to update record.",
FLASH::WARNING
);
header(
"Location: http://" .
$_SERVER["HTTP_HOST"] .
"/Application/Logistics/Invoice/" .
$id .
"/edit",
true,
303
);
die();
}
}
public function updateItemAction()
{
$id = $this->route_params["id"];
$itemId = $this->route_params["itemid"];
$updateHeader = new InvoiceModel($_POST);
$resultUpdate = $updateHeader->UpdateItemDetail($itemId);
$resultDelivery = InvoiceModel::getDeliveryList();
$Delivery = (array) $resultDelivery;
header(
"Location: http://" .
$_SERVER["HTTP_HOST"] .
"/Application/Logistics/Export/" .
$id .
"/edit",
true,
303
);
}
public function testAction()
{
$array = [
[
"id" => 1,
"name" => "bramus",
"firstname" =>
"Bramus",
"lastname" =>
"Van Damme",
"email" =>
"[email protected]",
"password" =>
"$1$oGlMhJl6$EbgQIf8kQSr6MxA3YYYpm0",
],
[
"id" => 2,
"name" => "bramus",
"firstname" =>
"Bramus",
"lastname" =>
"Van Damme",
"email" =>
"[email protected]",
"password" =>
"$1$oGlMhJl6$EbgQIf8kQSr6MxA3YYYpm0",
],
];
View::renderTemplate(
"Application/Logistics/Invoice/DeliveryEdit.html",
[]
);
}
function twig_json_decode($json)
{
return json_decode($json, true);
}
public function DeliveryAction()
{
$oracle = (array) $result;
View::renderTemplate(
"Application/Logistics/Invoice/Oracle.html",
["result" => $oracle]
);
}
public function saveAction()
{
$Delivery = new InvoiceModel($_POST);
$id = $Delivery->create();
if (!empty($id)) {
header(
"Location: http://" .
$_SERVER["HTTP_HOST"] .
"/Application/Logistics/Invoice/" .
$id .
"/edit",
true,
303
);
die();
} else {
header(
"Location: http://" .
$_SERVER["HTTP_HOST"] .
"/Application/Logistics/Invoice/Create",
true,
303
);
die();
}
}
function editAction()
{
$id = $this->route_params["id"];
$delivery = new InvoiceModel($_POST);
$header = $delivery->getHeader($id);
$organization = (array) OrganizationModel::getAllOrganization();
$customer = (array) CustomerModel::getAllCustomer();
$hid["referenceId"] =
$this->route_params["id"];
$result = HomeModel::getAll();
View::renderTemplate(
"Application/Logistics/Invoice/edit.html",
[
"sidenav" => $result,
"headers" => $header,
"customer" => $customer,
"organization" => $organization,
"hid" => $hid,
]
);
}
public function editItemAction()
{
$id = $this->route_params["itemid"];
$Delivery = new InvoiceModel($_POST);
$item = $Delivery->getItemDetail($id);
$result = InvoiceModel::getCustomerList();
$customer = (array) $result;
$result = HomeModel::getAll();
View::renderTemplate(
"Application/Logistics/Invoice/edititem.html",
[
"sidenav" => $result,
"item" => $item,
"customer" => $customer,
]
);
}
public function deleteItemAction()
{
$id = $this->route_params["id"];
$details = InvoiceModel::getItemDetailById($id);
$customer = (array) InvoiceModel::getCustomerList();
$result = HomeModel::getAll();
View::renderTemplate(
"Application/Logistics/Invoice/deleteitem.html",
[
"sidenav" => $result,
"details" => $details,
"customer" => $customer,
]
);
}
public function deleteItemConfirmAction()
{
$id = $this->route_params["id"];
$itemid = $this->route_params["itemid"];
if (InvoiceModel::deleteItems($itemid)) {
header(
"Location: http://" .
$_SERVER["HTTP_HOST"] .
"/Application/Logistics/Export/" .
$id .
"/Edit",
true,
303
);
die();
} else {
header(
"Location: http://" .
$_SERVER["HTTP_HOST"] .
"/Application/Logistics/Export/" .
$id .
"/" .
$itemid .
"/deleteitem",
true,
303
);
die();
}
}
public function customerAction()
{
$customer = InvoiceModel::getCustomer();
View::renderTemplate(
"Application/Logistics/Invoice/edit.html",
["customer" => $customer]
);
}
public function createItemAction()
{
$headerid = $this->route_params["id"];
$exportDetails = new InvoiceModel();
$exportDetails->createItems(
$_POST["deliveryname"],
$headerid
);
}
public function itemAction()
{
$deliveryName = $_POST["dn"];
$item = InvoiceModel::getItem($deliveryName);
View::renderTemplate(
"Application/Logistics/Invoice/itemDetails.html",
["items" => $item]
);
}
public function containerAction()
{
$id = $this->route_params["id"];
$delivery = new InvoiceModel($_POST);
$container = $delivery->getContainer($id);
$containers = (array) $container;
$result = HomeModel::getAll();
View::renderTemplate(
"Application/Logistics/Invoice/ContainerDetail.html",
[
"containers" => $containers,
"sidenav" => $result,
]
);
}
public function getContainerListByInvoiceId()
{
$id = $this->route_params["id"];
$container[
"data"
] = InvoiceModel::getContainerListByInvoiceId($id);
echo json_encode($container);
}
public function deleteContainer()
{
$trackingId = $_POST["id"];
InvoiceModel::deleteContainer($trackingId);
}
public function createAction()
{
$customers = (array) InvoiceModel::getCustomerList();
$organization = (array) OrganizationModel::getAllOrganization();
$result = HomeModel::getAll();
View::renderTemplate(
"Application/Logistics/Invoice/create.html",
[
"sidenav" => $result,
"Organization" => $organization,
"customers" => $customers,
]
);
}
public function dataAction()
{
$result = HomeModel::getAll();
View::renderTemplate(
"Application/Logistics/Invoice/datatable.html",
["sidenav" => $result]
);
}
public function createContainerAction()
{
$result = HomeModel::getAll();
View::renderTemplate(
"Application/Logistics/Invoice/createContainer.html",
["sidenav" => $result]
);
}
public function saveContainerAction()
{
$id = $this->route_params["id"];
$container = new InvoiceModel($_POST);
if ($container->createContainer($id)) {
header(
"Location: http://" .
$_SERVER["HTTP_HOST"] .
"/Application/Logistics/Invoice/" .
$id .
"/Edit",
true,
303
);
die();
} else {
$this->createContainerAction();
}
}
public function editContainerAction()
{
$itemid = $this->route_params["itemid"];
$containers = InvoiceModel::getContainerById($itemid);
$result = HomeModel::getAll();
View::renderTemplate(
"Application/Logistics/Invoice/editContainer.html",
[
"sidenav" => $result,
"containers" => $containers,
]
);
}
public function updateContainerAction()
{
$id = $this->route_params["id"];
$itemid = $this->route_params["itemid"];
$container = new InvoiceModel($_POST);
if ($container->updateContainer($itemid)) {
header(
"Location: http://" .
$_SERVER["HTTP_HOST"] .
"/Application/Logistics/Invoice/" .
$id .
"/Edit",
true,
303
);
die();
} else {
header(
"Location: http://" .
$_SERVER["HTTP_HOST"] .
"/Application/Logistics/Invoice/" .
$id .
"/" .
$itemid .
"/editcontainer",
true,
303
);
die();
}
}
public function showAction()
{
echo "show action";
}
public function showDeliveryAction()
{
echo "show action";
}
public function exportMainAction()
{
View::renderTemplate(
"Application/Logistics/Invoice/new.html",
[]
);
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace App\Controllers\Application\Logistics;
use App\Models\Application\Logistics\InvoiceModel;
use Core\View;
use App\Models\HomeModel;
use App\Models\Application\Data\OracleModel;
use App\Controllers;
use App\Models\Application\Admin\OrganizationModel;
use App\Models\Application\Sales\CustomerModel;
use App\Flash;
class Invoice extends Controllers\Authenticated
{
public function getInvoiceAction()
{
$deliveryName = $_POST["\x64\156"];
$invoice[
"\111\156\166\x6f\151\x63\145"
] = OracleModel::getInvoiceByName($deliveryName, "");
header(
"\103\157\x6e\x74\145\156\x74\x2d\x54\x79\160\x65\72\40\x61\160\160\154\x69\143\141\x74\x69\x6f\156\57\152\163\157\x6e"
);
echo json_encode($invoice);
}
public function getInvoiceByIdAction()
{
$invoiceId = $_POST["\x64\156"];
$deliveryName = InvoiceModel::getDeliveryNameById($invoiceId);
$invoiceJoin[
"\x49\156\x76\157\x69\x63\x65"
] = OracleModel::getInvoiceByName($deliveryName, "");
$invoiceJoin[
"\111\156\x76\x6f\151\143\145\110\145\x61\144"
][] = InvoiceModel::getDeliveryByName($deliveryName);
$invoiceJoin[
"\x4c\157\141\144\151\156\147"
] = InvoiceModel::getLoadingById($invoiceId);
$invoiceJoin[
"\103\157\156\164\x61\151\156\x65\162"
] = InvoiceModel::getContainerByInvoiceId($invoiceId);
header(
"\x43\x6f\x6e\x74\x65\x6e\x74\x2d\124\x79\x70\x65\72\40\141\x70\160\x6c\x69\x63\141\x74\x69\157\156\57\x6a\163\x6f\x6e"
);
echo json_encode($invoiceJoin);
}
public function reportAction()
{
$id["\x72\x65\x66\145\162\x65\156\143\145\x49\144"] =
$this->route_params["\151\144"];
View::renderTemplate(
"\x2f\101\x70\x70\154\151\143\x61\x74\151\x6f\x6e\x2f\114\x6f\x67\151\x73\164\x69\143\x73\57\x49\x6e\x76\157\x69\x63\x65\x2f\162\x65\160\x6f\162\164\x2e\150\164\x6d\x6c",
["\151\x64" => $id]
);
}
public function test()
{
$invoiceId = $this->route_params["\x69\x64"];
$invoiceJoin[
"\x4c\x6f\141\x64\151\156\147"
] = InvoiceModel::getLoadingById(229);
echo json_encode($invoiceJoin);
}
public function indexAction()
{
$resultDelivery = InvoiceModel::getDeliveryList();
$Delivery = (array) $resultDelivery;
$result = HomeModel::getAll();
View::renderTemplate(
"\57\x41\160\160\154\x69\143\141\x74\x69\157\x6e\x2f\x4c\x6f\147\151\163\164\151\143\163\x2f\111\156\166\x6f\x69\143\x65\x2f\x69\x6e\144\145\170\56\150\x74\155\x6c",
[
"\x73\151\x64\145\156\141\x76" => $result,
"\104\145\154\151\166\x65\162\171" => $Delivery,
]
);
}
public function updateAction()
{
$id = $this->route_params["\151\144"];
$header = new InvoiceModel($_POST);
if ($header->updateHeader($id)) {
Flash::addMessage(
"\x52\145\x63\x6f\162\144\40\x75\160\x64\x61\x74\x65\40\x73\x75\x63\x63\x65\163\x73\x66\x75\154\154\x79\x2e",
FLASH::INFO
);
header(
"\x4c\157\x63\141\x74\x69\157\x6e\x3a\40\x68\x74\x74\x70\72\57\x2f" .
$_SERVER["\110\124\x54\120\137\x48\117\123\124"] .
"\57\x41\x70\160\154\151\143\141\164\151\157\x6e\x2f\114\x6f\147\151\x73\164\151\x63\163\x2f\111\x6e\166\157\x69\143\145\x2f" .
$id .
"\x2f\145\x64\151\x74",
true,
303
);
die();
} else {
Flash::addMessage(
"\x55\156\x61\x62\x6c\x65\40\164\157\40\165\160\x64\141\x74\145\x20\162\145\x63\157\162\144\x2e",
FLASH::WARNING
);
header(
"\114\x6f\x63\141\164\151\157\156\72\x20\x68\164\164\160\72\57\57" .
$_SERVER["\110\x54\124\x50\x5f\x48\117\123\x54"] .
"\57\101\x70\x70\x6c\151\x63\x61\x74\x69\x6f\x6e\57\x4c\x6f\147\151\x73\x74\x69\x63\163\57\111\156\166\157\x69\x63\x65\57" .
$id .
"\x2f\145\144\x69\x74",
true,
303
);
die();
}
}
public function updateItemAction()
{
$id = $this->route_params["\x69\144"];
$itemId = $this->route_params["\x69\164\x65\155\x69\x64"];
$updateHeader = new InvoiceModel($_POST);
$resultUpdate = $updateHeader->UpdateItemDetail($itemId);
$resultDelivery = InvoiceModel::getDeliveryList();
$Delivery = (array) $resultDelivery;
header(
"\114\x6f\143\141\x74\x69\157\x6e\72\40\150\x74\164\160\72\x2f\57" .
$_SERVER["\x48\x54\x54\120\137\x48\x4f\123\x54"] .
"\x2f\x41\x70\160\x6c\151\143\141\164\151\x6f\156\x2f\114\157\147\x69\163\x74\x69\x63\x73\57\105\170\x70\x6f\162\x74\x2f" .
$id .
"\x2f\x65\144\x69\164",
true,
303
);
}
public function testAction()
{
$array = [
[
"\151\x64" => 1,
"\x6e\x61\155\x65" => "\x62\162\141\155\165\x73",
"\146\x69\162\163\x74\156\x61\155\x65" =>
"\102\x72\x61\155\165\163",
"\x6c\141\163\x74\156\141\x6d\x65" =>
"\126\x61\156\40\x44\x61\x6d\x6d\145",
"\145\x6d\141\x69\x6c" =>
"\x62\162\x61\155\165\x73\56\x76\141\x6e\x64\x61\155\155\x65\x40\157\144\151\163\145\145\x2e\142\145",
"\160\x61\163\x73\167\157\162\x64" =>
"\x24\x31\44\157\x47\154\x4d\150\112\x6c\x36\44\x45\142\147\121\111\146\70\153\121\x53\x72\x36\115\x78\x41\63\131\x59\131\x70\155\x30",
],
[
"\151\144" => 2,
"\156\141\155\x65" => "\142\162\x61\155\165\x73",
"\x66\x69\162\x73\164\156\x61\x6d\145" =>
"\x42\162\x61\x6d\x75\x73",
"\154\141\163\164\x6e\141\x6d\145" =>
"\126\141\x6e\40\x44\x61\155\155\145",
"\145\x6d\x61\151\x6c" =>
"\142\162\141\x6d\165\163\x2e\166\x61\x6e\144\141\155\x6d\x65\100\157\x64\x69\163\x65\x65\x2e\x62\145",
"\160\x61\163\x73\167\157\162\x64" =>
"\44\x31\x24\157\107\x6c\115\150\112\x6c\x36\x24\x45\142\147\121\x49\x66\x38\153\121\123\162\x36\115\x78\101\x33\x59\x59\131\160\155\x30",
],
];
View::renderTemplate(
"\101\160\x70\154\x69\143\141\x74\151\157\156\57\x4c\x6f\x67\151\x73\164\151\143\163\x2f\111\156\166\x6f\x69\143\145\x2f\x44\x65\154\x69\x76\145\x72\x79\105\144\151\x74\56\150\164\155\154",
[]
);
}
function twig_json_decode($json)
{
return json_decode($json, true);
}
public function DeliveryAction()
{
$oracle = (array) $result;
View::renderTemplate(
"\101\160\160\x6c\x69\143\141\x74\x69\157\x6e\57\114\157\147\151\163\x74\x69\143\x73\57\111\156\166\x6f\x69\x63\145\57\x4f\162\x61\x63\154\x65\x2e\150\x74\x6d\x6c",
["\162\x65\163\165\154\164" => $oracle]
);
}
public function saveAction()
{
$Delivery = new InvoiceModel($_POST);
$id = $Delivery->create();
if (!empty($id)) {
header(
"\114\x6f\143\141\x74\151\157\156\72\x20\x68\164\x74\160\x3a\57\57" .
$_SERVER["\110\124\x54\120\137\x48\x4f\x53\124"] .
"\x2f\x41\160\x70\154\x69\x63\x61\164\x69\x6f\x6e\57\114\x6f\x67\151\x73\x74\151\x63\163\57\x49\x6e\x76\157\151\x63\x65\x2f" .
$id .
"\57\x65\x64\151\x74",
true,
303
);
die();
} else {
header(
"\x4c\x6f\x63\x61\164\x69\x6f\156\x3a\x20\150\164\164\160\x3a\57\57" .
$_SERVER["\x48\124\x54\x50\x5f\110\117\x53\124"] .
"\57\101\x70\x70\x6c\151\143\141\x74\151\x6f\156\x2f\x4c\x6f\x67\x69\163\x74\151\x63\x73\x2f\x49\156\166\157\151\143\145\57\x43\162\x65\x61\x74\x65",
true,
303
);
die();
}
}
function editAction()
{
$id = $this->route_params["\x69\144"];
$delivery = new InvoiceModel($_POST);
$header = $delivery->getHeader($id);
$organization = (array) OrganizationModel::getAllOrganization();
$customer = (array) CustomerModel::getAllCustomer();
$hid["\x72\x65\x66\145\162\x65\x6e\x63\145\111\x64"] =
$this->route_params["\x69\144"];
$result = HomeModel::getAll();
View::renderTemplate(
"\x41\x70\160\x6c\151\x63\x61\x74\x69\157\156\x2f\114\157\147\151\x73\164\x69\x63\x73\x2f\111\x6e\x76\157\x69\x63\145\x2f\145\144\x69\164\x2e\x68\164\155\154",
[
"\x73\x69\144\145\156\141\x76" => $result,
"\x68\x65\141\x64\145\x72\163" => $header,
"\x63\165\x73\164\157\155\x65\162" => $customer,
"\x6f\x72\x67\141\156\x69\172\x61\164\x69\x6f\156" => $organization,
"\150\x69\144" => $hid,
]
);
}
public function editItemAction()
{
$id = $this->route_params["\x69\x74\145\155\151\144"];
$Delivery = new InvoiceModel($_POST);
$item = $Delivery->getItemDetail($id);
$result = InvoiceModel::getCustomerList();
$customer = (array) $result;
$result = HomeModel::getAll();
View::renderTemplate(
"\101\x70\160\154\151\x63\141\164\151\157\x6e\x2f\x4c\x6f\x67\151\163\164\x69\143\163\x2f\x49\156\166\x6f\151\143\145\x2f\x65\144\x69\x74\151\164\145\x6d\x2e\150\x74\155\x6c",
[
"\163\151\144\x65\x6e\141\x76" => $result,
"\151\164\145\155" => $item,
"\143\165\163\x74\x6f\155\145\162" => $customer,
]
);
}
public function deleteItemAction()
{
$id = $this->route_params["\151\x64"];
$details = InvoiceModel::getItemDetailById($id);
$customer = (array) InvoiceModel::getCustomerList();
$result = HomeModel::getAll();
View::renderTemplate(
"\101\160\x70\x6c\x69\x63\x61\164\151\x6f\156\57\x4c\157\x67\x69\163\x74\x69\x63\x73\57\x49\x6e\166\x6f\x69\143\145\x2f\144\x65\x6c\x65\164\145\x69\x74\145\155\x2e\150\164\x6d\x6c",
[
"\163\151\144\145\x6e\141\x76" => $result,
"\x64\145\x74\141\151\x6c\x73" => $details,
"\x63\165\x73\164\x6f\x6d\145\x72" => $customer,
]
);
}
public function deleteItemConfirmAction()
{
$id = $this->route_params["\x69\x64"];
$itemid = $this->route_params["\x69\164\145\x6d\151\144"];
if (InvoiceModel::deleteItems($itemid)) {
header(
"\x4c\x6f\x63\141\164\151\157\156\72\x20\150\164\164\160\x3a\x2f\57" .
$_SERVER["\x48\124\x54\120\x5f\x48\117\123\x54"] .
"\x2f\101\160\x70\154\x69\x63\x61\x74\151\157\x6e\x2f\x4c\157\147\151\163\x74\151\143\x73\x2f\x45\x78\x70\157\162\164\57" .
$id .
"\x2f\105\x64\151\164",
true,
303
);
die();
} else {
header(
"\114\x6f\x63\x61\164\x69\x6f\156\x3a\40\x68\164\164\160\72\57\x2f" .
$_SERVER["\x48\124\x54\x50\137\x48\x4f\123\x54"] .
"\57\x41\x70\160\x6c\151\143\x61\x74\151\x6f\x6e\x2f\114\x6f\147\x69\x73\164\151\x63\163\57\105\170\160\x6f\162\x74\57" .
$id .
"\x2f" .
$itemid .
"\x2f\144\x65\154\145\164\145\x69\164\145\155",
true,
303
);
die();
}
}
public function customerAction()
{
$customer = InvoiceModel::getCustomer();
View::renderTemplate(
"\x41\x70\x70\154\x69\143\x61\x74\151\157\156\x2f\114\x6f\147\151\x73\164\x69\x63\x73\57\111\x6e\166\x6f\x69\143\x65\x2f\145\x64\x69\164\x2e\150\x74\x6d\154",
["\x63\165\x73\164\x6f\155\x65\162" => $customer]
);
}
public function createItemAction()
{
$headerid = $this->route_params["\x69\144"];
$exportDetails = new InvoiceModel();
$exportDetails->createItems(
$_POST["\144\145\154\x69\x76\x65\162\x79\x6e\141\155\145"],
$headerid
);
}
public function itemAction()
{
$deliveryName = $_POST["\x64\x6e"];
$item = InvoiceModel::getItem($deliveryName);
View::renderTemplate(
"\x41\160\x70\154\151\143\x61\x74\151\x6f\x6e\57\114\157\147\151\163\x74\151\x63\163\x2f\x49\156\166\157\x69\143\145\57\151\164\x65\155\104\145\164\x61\151\154\x73\x2e\x68\x74\x6d\154",
["\x69\164\145\x6d\x73" => $item]
);
}
public function containerAction()
{
$id = $this->route_params["\x69\144"];
$delivery = new InvoiceModel($_POST);
$container = $delivery->getContainer($id);
$containers = (array) $container;
$result = HomeModel::getAll();
View::renderTemplate(
"\x41\x70\x70\x6c\x69\x63\141\164\151\157\x6e\57\x4c\x6f\x67\151\x73\x74\151\143\163\57\111\156\x76\x6f\x69\x63\x65\57\103\157\x6e\164\x61\x69\x6e\x65\x72\x44\145\x74\141\x69\154\56\150\164\x6d\154",
[
"\x63\x6f\x6e\x74\x61\x69\x6e\145\162\163" => $containers,
"\163\x69\x64\x65\x6e\141\166" => $result,
]
);
}
public function getContainerListByInvoiceId()
{
$id = $this->route_params["\151\x64"];
$container[
"\x64\x61\x74\x61"
] = InvoiceModel::getContainerListByInvoiceId($id);
echo json_encode($container);
}
public function deleteContainer()
{
$trackingId = $_POST["\151\144"];
InvoiceModel::deleteContainer($trackingId);
}
public function createAction()
{
$customers = (array) InvoiceModel::getCustomerList();
$organization = (array) OrganizationModel::getAllOrganization();
$result = HomeModel::getAll();
View::renderTemplate(
"\101\160\x70\x6c\x69\x63\141\x74\151\x6f\156\x2f\114\157\147\x69\163\164\151\x63\x73\x2f\x49\156\166\157\x69\143\145\57\x63\x72\145\141\164\x65\x2e\150\x74\155\x6c",
[
"\163\x69\144\x65\156\141\x76" => $result,
"\x4f\x72\147\x61\x6e\x69\172\x61\164\151\157\156" => $organization,
"\143\x75\x73\164\157\x6d\145\162\163" => $customers,
]
);
}
public function dataAction()
{
$result = HomeModel::getAll();
View::renderTemplate(
"\x41\160\160\154\151\x63\x61\164\151\157\x6e\57\114\x6f\147\151\163\x74\151\143\x73\x2f\x49\156\166\157\151\x63\145\x2f\144\141\164\141\164\x61\142\154\145\56\150\164\x6d\154",
["\x73\151\144\x65\x6e\x61\x76" => $result]
);
}
public function createContainerAction()
{
$result = HomeModel::getAll();
View::renderTemplate(
"\101\x70\x70\154\x69\143\141\x74\x69\x6f\156\x2f\x4c\x6f\x67\151\163\x74\151\143\163\57\111\156\166\x6f\151\143\x65\57\143\162\145\141\164\145\x43\x6f\x6e\x74\x61\151\x6e\145\x72\56\150\164\x6d\x6c",
["\x73\x69\144\x65\156\141\x76" => $result]
);
}
public function saveContainerAction()
{
$id = $this->route_params["\x69\x64"];
$container = new InvoiceModel($_POST);
if ($container->createContainer($id)) {
header(
"\x4c\x6f\143\141\x74\151\x6f\x6e\x3a\40\150\x74\164\x70\x3a\57\57" .
$_SERVER["\x48\124\124\x50\137\x48\x4f\x53\124"] .
"\x2f\x41\x70\x70\x6c\151\143\x61\x74\151\x6f\156\x2f\x4c\157\x67\151\163\164\x69\143\163\57\x49\x6e\166\x6f\151\x63\x65\x2f" .
$id .
"\57\x45\144\x69\164",
true,
303
);
die();
} else {
$this->createContainerAction();
}
}
public function editContainerAction()
{
$itemid = $this->route_params["\x69\164\145\155\x69\x64"];
$containers = InvoiceModel::getContainerById($itemid);
$result = HomeModel::getAll();
View::renderTemplate(
"\101\x70\160\154\x69\143\x61\x74\151\x6f\156\x2f\x4c\x6f\147\151\x73\x74\x69\143\x73\x2f\x49\x6e\x76\157\151\x63\x65\57\x65\x64\x69\x74\x43\157\156\164\141\151\x6e\145\x72\x2e\150\x74\x6d\154",
[
"\x73\151\x64\x65\x6e\x61\x76" => $result,
"\143\157\x6e\164\x61\151\x6e\145\162\163" => $containers,
]
);
}
public function updateContainerAction()
{
$id = $this->route_params["\151\144"];
$itemid = $this->route_params["\x69\x74\145\155\151\x64"];
$container = new InvoiceModel($_POST);
if ($container->updateContainer($itemid)) {
header(
"\114\x6f\x63\141\164\x69\157\156\x3a\x20\x68\164\164\160\72\57\x2f" .
$_SERVER["\x48\x54\124\120\137\x48\117\123\124"] .
"\x2f\101\x70\160\154\x69\143\141\x74\x69\157\x6e\57\x4c\157\147\x69\x73\164\151\143\x73\x2f\x49\156\x76\x6f\151\143\x65\57" .
$id .
"\x2f\x45\x64\x69\x74",
true,
303
);
die();
} else {
header(
"\x4c\x6f\x63\141\x74\151\157\x6e\x3a\x20\150\164\164\160\72\x2f\x2f" .
$_SERVER["\110\124\124\x50\137\x48\x4f\x53\x54"] .
"\57\x41\x70\x70\154\151\x63\141\x74\151\x6f\x6e\57\114\157\x67\151\163\164\151\x63\163\x2f\111\156\x76\157\151\143\x65\x2f" .
$id .
"\x2f" .
$itemid .
"\x2f\x65\x64\x69\164\143\157\x6e\x74\x61\x69\x6e\x65\x72",
true,
303
);
die();
}
}
public function showAction()
{
echo "\163\150\157\x77\40\x61\143\x74\x69\x6f\156";
}
public function showDeliveryAction()
{
echo "\x73\x68\157\167\x20\x61\x63\164\x69\x6f\x6e";
}
public function exportMainAction()
{
View::renderTemplate(
"\101\160\x70\154\151\x63\x61\164\x69\x6f\156\57\114\x6f\x67\151\x73\x74\151\x63\163\x2f\x49\156\166\x6f\151\143\x65\x2f\x6e\x65\x77\56\150\164\155\x6c",
[]
);
}
}
Function Calls
None |
Stats
MD5 | 92a104373eb249f20ef4e24059c8e733 |
Eval Count | 0 |
Decode Time | 87 ms |