<?php session_start(); require_once $_SESSION["environment_path"] . "/includes/configuration.php"; require_once APP_BASEPATH . "/includes/Common/CommonCore.php"; require_once $_SESSION["environment_path"] . "/customcode/RecepcionDocumentos/includes/AsignacionRUC/AsignacionRUCCore.php"; $handlerCommonCore = new CommonCore(); $handlerAsignacionRUCCore = new AsignacionRUCCore(); $handlerCommonCore->handleRedirects(); $page_content = $handlerAsignacionRUCCore->getAsignacionRUCHtml(basename($_SERVER['SCRIPT_NAME'])); echo $handlerCommonCore->getDoctypeTagsHtml(); ?> <head> <?php echo $handlerCommonCore->getPageHeaderHtml("Asignación de RUC - Responsable"); $data = array(); echo $handlerAsignacionRUCCore->getLibrariesHtml("especiales.php", $data); ?> </head> <body> <?php echo $handlerCommonCore->getAppHeaderHtml(); echo $page_content; echo $handlerCommonCore->getAppFooterHtml(); ?> </body>
<?php session_start(); require_once $_SESSION["environment_path"] . "/includes/configuration.php"; require_once $_SESSION["environment_path"] . "/customcode/RecepcionDocumentos/includes/AsignacionRUC/AsignacionRUCCore.php"; $handlerAsignacionRUCCore = new AsignacionRUCCore(); if ($_POST["action"] == 'get-table') { echo $handlerAsignacionRUCCore->getAsignacionRUCRecordsHtml(); die; } if ($_POST["action"] == 'insert-record') { echo $handlerAsignacionRUCCore->insertRecord($_POST["ruc"], $_POST["responsable"]); die; } if ($_POST["action"] == 'delete-record') { echo $handlerAsignacionRUCCore->deleteRecord($_POST["id"]); die; }