Exemple #1
0
<?php

if (!isset($GLOBALS['SKT'])) {
    if (session_id() == '') {
        session_start();
    }
    $SKTAJAX = 'AJAX';
    require '../../../../../../Config.php';
    require '../../../../../../db.php';
    require '../../../../Core.php';
}
if (\CmsDev\Security\loginIntent::action('validate') === true) {
    $PurchaseRequestss = new \CmsDev\CRUD\ViewEditElementsAsList\Lists\Purchase_Requests\_classes();
    $PurchaseRequestss->Confirm($_POST);
}
$DSTemplate = dirname(__FILE__) . DIRECTORY_SEPARATOR;
$TemplateItem = \file_get_contents($DSTemplate . 'Resumen_Purchase_Sell.tpl');
?>
<h2>Mis Compras</h2>
<div class="row" id="TablePurchaseCompras">
    <table class="table cart-table table-striped dataTableB3">
        <thead>
            <tr>
                <th>Productos</th>
            </tr>
        </thead>
        <tbody>
            <?php 
$InstancsParams = array('TemplateItem' => $TemplateItem, 'ProductImageSize' => array('x' => '70', 'y' => '70'), 'ShowExpired' => 0, 'IDUser' => $User->id, 'whois' => 'Customer', 'Limit' => 500);
$PurchaseRequests = new \CmsDev\CRUD\ViewEditElementsAsList\Lists\Purchase_Requests\_classes();
echo $PurchaseRequests->GetList($InstancsParams);
?>
        </tbody>
    </table>
</div>
<div class="gap-small"></div>
<script type="text/javascript">
    $(document).ready(function () {
        dataTableSell();
    });
    function dataTableSell(){
        /*$('#TablePurchaseCompras .table').dataTable({
            "language": {
                "sProcessing": "Procesando...",
                "sLengthMenu": "Mostrar _MENU_ registros",
Exemple #3
0
<?php

$PurchaseRequestss = new \CmsDev\CRUD\ViewEditElementsAsList\Lists\Purchase_Requests\_classes();
echo $PurchaseRequestss->RenderList();
?>
<div style="display:none;">
    <div id="dialogConfirmDeleteItem">
        <span id="text-dialog-confirm">
            <?php 
echo \SKT_ADMIN_Message_Confirm_Delete_Text;
?>
        </span><br />
        <span id="ItemInfo"></span>
    </div>
</div>
<script type="text/javascript">
    var translations = [];
    translations['Ok'] = SKT_ADMIN_Btn_Acept;
    translations['Create'] = SKT_ADMIN_Btn_Create;
    translations['Cancel'] = SKT_ADMIN_Btn_RestartCancel;
    translations['Delete'] = SKT_ADMIN_Btn_Delete;
    translations['Save'] = SKT_ADMIN_Btn_Save;
    translations['Edit'] = SKT_ADMIN_Btn_Edit;
    $('.TableListElementsSKT div.skt-btn-list-add').click(function () {
        var  PurchaseRequestss_Add = '/SKTGoTo/' + admd2('CRUD/ViewEditElementsAsList/Lists/PurchaseRequestss/Add');
        jQuery.ajax({
            'type': 'POST',
            'url':  PurchaseRequestss_Add,
            'cache': false,
            'data': $('form#colectorskt').serialize(),
            'success': function (html) {
Exemple #4
0
<?php

if (\CmsDev\Security\loginIntent::action('validate') === true) {
    if (isset($_POST['ID'])) {
        $ID = isset($_POST['ID']) ? $_POST['ID'] : '';
        $PurchaseRequestss = new \CmsDev\CRUD\ViewEditElementsAsList\Lists\Purchase_Requests\_classes();
        $PurchaseRequestss->RemoveFromList($ID);
    }
}
Exemple #5
0
<?php

if (\CmsDev\Security\loginIntent::action('validate') === true) {
    if (isset($_POST['ID'])) {
        $ID = $_POST['ID'];
        $Categories = new \CmsDev\CRUD\ViewEditElementsAsList\Lists\Purchase_Requests\_classes();
        $Categories->EditItemList($ID);
    }
}
Exemple #6
0
<?php

if (!isset($GLOBALS['SKT'])) {
    if (session_id() == '') {
        session_start();
    }
    $SKTAJAX = 'AJAX';
    require '../../../../../../Config.php';
    require '../../../../../../db.php';
    require '../../../../Core.php';
}
if (\CmsDev\Security\loginIntent::action('validate') === true) {
    if (isset($_POST['ID'])) {
        $PurchaseRequestss = new \CmsDev\CRUD\ViewEditElementsAsList\Lists\Purchase_Requests\_classes();
        $PurchaseRequestss->UpdateData($_POST['ID']);
    }
}
Exemple #7
0
<?php

if (\CmsDev\Security\loginIntent::action('validateUser') === true) {
    $PurchaseRequests = new \CmsDev\CRUD\ViewEditElementsAsList\Lists\Purchase_Requests\_classes();
    $PurchaseRequests->AddToList();
}