Example #1
0
                <td><a href="[UrlDetail]"><b>[Title]</b></a>
                <td class="text-color">
                    <b>[TextExpired]</b>
                    <br>
                    <small>[InvertDate] / <b>[Invertexpiredate]</b></small>
                </td>
                </td>
                <td>[Currency]</td>                
                <td>[Price]</td>
                <td>[UnitOrAll]</td>
                <td class="cart-item-remove hidden">
                    <a class="fa fa-times" href="#"></a>
                </td>
            </tr>';
$InstancsParams = array('TemplateItem' => $TemplateItem, 'ProductImageSize' => array('x' => '70', 'y' => '70'), 'CatP' => '', 'Cat' => '', 'Query' => '', 'ShowExpired' => 1, 'IDUser' => $CCParams_Products_List['id'], 'Limit' => 150);
$List = new CmsDev\CRUD\ViewEditElementsAsList\Lists\Products\_classes();
echo $List->GetList($InstancsParams);
?>
        </tbody>
    </table>
</div>
<div class="gap-small"></div>
<script type="text/javascript">
    $(document).ready(function () {
        $('#tableProducts').dataTable({
            "language": {
                "url": "//cdn.datatables.net/plug-ins/9dcbecd42ad/i18n/Spanish.json"
            },
            stateSave: true,
            "aoColumnDefs": [{
                    "aTargets": [4],
Example #2
0
<?php

$Detail = new CmsDev\CRUD\ViewEditElementsAsList\Lists\Products\_classes();
$DetailID = $_GET['DetailID'];
$item = $Detail->Dataset($DetailID);
$ProductType = $item->ProductType;
switch ($ProductType) {
    case 'Productos':
        include 'Detail/ProductDetail.php';
        break;
    case 'Service':
        include 'Detail/ServiceDetail.php';
        break;
    case 'Machine':
        include 'Detail/MachineDetail.php';
        break;
    case 'Feedstock':
        include 'Detail/FeedstockDetail.php';
        break;
    case 'Bussines':
        include 'Detail/BussinesDetail.php';
        break;
    default:
        include 'Detail/ProductDetail.php';
        break;
}
Example #3
0
<?php

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

$UserTheme = isset($_GET['usr']) ? $_GET['usr'] : null;
$DetailID = isset($_GET['DetailID']) ? $_GET['DetailID'] : null;
if ($UserTheme != null || $DetailID != null) {
    $Users = new \CmsDev\CRUD\ViewEditElementsAsList\Lists\Users\_classes();
    if ($DetailID != null) {
        $TestUser = new \CmsDev\CRUD\ViewEditElementsAsList\Lists\Products\_classes();
        $UserTheme = $TestUser->GetPUserID($DetailID);
    }
    $GetTheme = $Users->GetUseTheme($UserTheme);
    if ($GetTheme) {
        $WideBoxedScript = $BackgroundScript = $PatternScript = '';
        if ($GetTheme->WideBoxed != '') {
            $WideBoxedScript = '$("body").addClass("' . $GetTheme->WideBoxed . '");';
        }
        if ($GetTheme->Pattern != '') {
            $PatternScript = '$("body").css(\'background-image\', \'url("' . $GetTheme->Pattern . '")\');';
        }
        if ($GetTheme->Background != '') {
            $BackgroundScript = '$("body").addClass("bg-cover").css(\'background-image\', \'url("' . $GetTheme->Background . '")\');';
        }
        $SKT_Header->custom('' . '<link rel="stylesheet" id="UserColorStylesheet" href="{fromTemplate}assets/css/schemes/' . $GetTheme->ColorTheme . '.css">' . '<script>' . '$(document).ready(function(){' . $WideBoxedScript . $BackgroundScript . $PatternScript . '});' . '</script>', false);
    }
}
Example #5
0
$TemplateItem = '<div><b class="linkCompany">[Company]</b>
                        <a href="[UrlDetail]" class="product-thumb">
                        [MEDAL]
                            <header class="product-header">
                                [ProductImage]
                            </header>
                            <div class="product-inner">
                                <h5 class="product-title">[Title]</h5>
                                <p class="product-desciption">[ProductDescription]</p>
                                <div class="product-meta">
                                    <ul class="product-price-list">
                                        <li><span class="product-price">[Currency+Price][UnitOrAll]</span>
                                        </li>
                                    </ul>
                                </div>
                                <p class="product-location"><div data-countdown="[expiredate]" class="countdown countdown-inline text-color"></div></p>
                            </div>
                        </a>
                    </div>';
$InstancsParams = array('TemplateItem' => $TemplateItem, 'ProductImageSize' => array('x' => '280', 'y' => '250'), 'CatP' => '', 'Cat' => '', 'Query' => '', 'IDUser' => $CCParams['id'], 'ExcludeID' => $CCParams['Exclude'], 'Limit' => 20);
$Detail = new CmsDev\CRUD\ViewEditElementsAsList\Lists\Products\_classes();
echo $Detail->GetListOtherFromUser($InstancsParams);
?>
                </div>
            </div>
            <?php 
echo $Detail->CompanyLink($CCParams['id'], $CCParams['CompanyUrl'], $CCParams['Company'], 'Encuentre m&aacute;s', 'btn btn-color btn-lg btn-ghost');
?>
        </div>
    </div>
</div>
Example #6
0
<?php

$Products = new \CmsDev\CRUD\ViewEditElementsAsList\Lists\Products\_classes();
echo $Products->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  Products_Add = '/SKTGoTo/' + admd2('CRUD/ViewEditElementsAsList/Lists/Products/Add');
        jQuery.ajax({
            'type': 'POST',
            'url':  Products_Add,
            'cache': false,
            'data': $('form#colectorskt').serialize(),
            'success': function (html) {
Example #7
0
 protected function TemplateItem($Query, $Settings = array())
 {
     if ($TemplateItem == '') {
         $TemplateItem = 'No se ha definido un template (Purchase Requests)';
     }
     $find = array('[id]', '[Seller]', '[Customer]', '[CustomerName]', '[CustomerCompany]', '[CustomerRUT]', '[CustomerEmail]', '[CustomerPhone]', '[SellerCompany]', '[SellerName]', '[RUT]', '[email]', '[Phone]', '[PID]', '[OrderPurchase]', '[Currency]', '[UnitPrice]', '[Quantity]', '[TotalPrice]', '[OrderDate]', '[SellerOpinion]', '[CustomerOpinion]', '[SellerSemaphore]', '[CustomerSemaphore]', '[Semaphore]', '[Finalized]', '[FinalizedDate]', '[Title]', '[Price]', '[ProductImage]', '[ProductWeight]', '[ProductDescription]', '[ProductDescriptionHTML]', '[ProductStatus]', '[ProductOrder]', '[ProductNew]', '[ProductOffer]', '[URLName]', '[TextOffer]', '[ProductType]', '[Currency]', '[Currency+Price]', '[RecycleBin]', '[Packing]', '[RelatedDocument]', '[Image2]', '[Image3]', '[Image4]', '[Image5]', '[Image6]', '[Date]', '[expiredate]', '[InvertDate]', '[Invertexpiredate]', '[Plan]', '[CatP]', '[Cat]', '[Priority]', '[Company]', '[MEDAL]', '[UrlDetail]', '[stock]', '[UnitOrAll]', '[ClassExpired]', '[TextExpired]');
     $Thisitem = '';
     if (!empty($Query)) {
         foreach ($Query as $item) {
             $Products = new \CmsDev\CRUD\ViewEditElementsAsList\Lists\Products\_classes();
             $Products->setProductImageSize($Settings['ProductImageSize']);
             $Seller = new \CmsDev\CRUD\ViewEditElementsAsList\Lists\Users\_classes();
             $SellerDataset = $Seller->GetByID($item->Seller);
             $Customer = new \CmsDev\CRUD\ViewEditElementsAsList\Lists\Users\_classes();
             $CustomerDataset = $Customer->GetByID($item->Customer);
             $replace = array($item->id, $item->Seller, $item->Customer, $CustomerDataset->Name . ' ' . $CustomerDataset->Surname, $CustomerDataset->Company, $CustomerDataset->RUT, $CustomerDataset->email, $CustomerDataset->Phone, $SellerDataset->Company, $SellerDataset->Name . ' ' . $SellerDataset->Surname, $SellerDataset->RUT, $SellerDataset->email, $SellerDataset->Phone, $item->PID, $item->OrderPurchase, $Products->ProductCurrency($item->Currency), $item->UnitPrice, $item->Quantity, $item->TotalPrice, $item->OrderDate, $item->SellerOpinion, $item->CustomerOpinion, self::Semaphore($item->SellerSemaphore, 0, $Settings['whois']), self::Semaphore($item->CustomerSemaphore, 1, $Settings['whois']), self::SemaphoreConstruct($item), self::Finalized($item->Finalized), $item->FinalizedDate, $item->Title, $item->Price, $Products->ProductImage($item, 'ProductImage', 'ProductImageSize'), $item->ProductWeight, $item->ProductDescription, $item->ProductDescriptionHTML, $item->ProductStatus, $item->ProductOrder, $item->ProductNew, $item->ProductOffer, $item->URLName, $item->TextOffer, $item->ProductType, $Products->ProductCurrency($item->Currency), $Products->ProductCurrencyPrice($item->Currency, $item->Price), $item->RecycleBin, $item->Packing, $item->RelatedDocument, $Products->ProductImage($item, 'Image2', 'Image2Size'), $Products->ProductImage($item, 'Image3', 'Image3Size'), $Products->ProductImage($item, 'Image4', 'Image4Size'), $Products->ProductImage($item, 'Image5', 'Image5Size'), $Products->ProductImage($item, 'Image6', 'Image6Size'), $item->Date, $item->expiredate, invertirFecha($item->Date), invertirFecha($item->expiredate), $item->Plan, $item->CatP, $item->Cat, $item->Priority, $Products->CompanyLink($item->id, $item->CompanyUrl, $item->Company), $Products->ProductMedal($item->Plan_Name), $Products->ProductUrlDetail($item), $this->stock, $Products->UnitOrAll($item->UnitOrAll), $Products->Expired($item), $Products->Expired($item, true));
             $Thisitem .= str_replace($find, $replace, $Settings['TemplateItem']);
         }
     }
     return $Thisitem;
 }
Example #8
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'])) {
        $Products = new \CmsDev\CRUD\ViewEditElementsAsList\Lists\Products\_classes();
        $Products->UpdateImage($_POST['Image'], $_POST['ID']);
    }
}
Example #9
0
<?php

if (\CmsDev\Security\loginIntent::action('validate') === true) {
    $Products = new \CmsDev\CRUD\ViewEditElementsAsList\Lists\Products\_classes();
    $Products->AddToList();
}
Example #10
0
            
            <h5 class="product-title">[Title]</h5>
            <p class="product-desciption hidden">[ProductDescription]</p>
            <div class="product-meta">
                <ul class="product-price-list">
                    <li><span class="product-price">[Currency+Price][UnitOrAll]</span>
                    </li>
                </ul>
            </div>
            <p class="product-location"><div data-countdown="[expiredate]" class="countdown countdown-inline text-color"></div></p>
        </div>
    </a>
    </div>';
    $ProductAfterList = '</div>';
    $InstancsParams = array('TemplateItem' => $ProductTemplate, 'ProductImageSize' => array('x' => '250', 'y' => '250'), 'SearchQuery' => $_GET['SearchQuery'], 'ProductBeforeList' => $ProductBeforeList, 'ProductAfterList' => $ProductAfterList, 'Limit' => 80);
    $List = new CmsDev\CRUD\ViewEditElementsAsList\Lists\Products\_classes();
    echo $List->GetSearchResults($InstancsParams);
}
if ($_GET['SearchType'] == "Company" || $_GET['SearchType'] == "All") {
    $ProductBeforeList = '<div class="gap-small"></div>' . '<h1 class="text-center">Empresas</h1>' . '<div class="gap-small"></div>' . '<div class="row row-wrap isotope masonrylist">';
    $UserTemplate = '<div class="col-md-3 col-masonry element-item">
                    <a href="/usr/[id]/[CompanyUrl]/" class="product-thumb user-thumb">
                    <header class="product-header" style="padding-top:10px;">
                        <img title="[Company]" alt="[Company]" src="[ClientAuth_picture]" style="width:170px; margin:0 auto;"/>
                    </header>
                    <div class="product-inner">
                        <h5 class="product-title">[Company]</h5>
                        <div class="product-desciption">[Description]</div>
                        <div class="product-meta hidden"><span class="product-time"><i class="fa fa-map-marker"></i> [Address]</span>
                            <ul class="product-price-list">
                                <li>
Example #11
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'])) {
        $Products = new \CmsDev\CRUD\ViewEditElementsAsList\Lists\Products\_classes();
        $Products->UpdateData($_POST['ID']);
    }
}
Example #12
0
<?php

if (\CmsDev\Security\loginIntent::action('validate') === true) {
    if (isset($_POST['ID'])) {
        $ID = isset($_POST['ID']) ? $_POST['ID'] : '';
        $Products = new \CmsDev\CRUD\ViewEditElementsAsList\Lists\Products\_classes();
        $Products->RemoveFromList($ID);
    }
}