Beispiel #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) {
    if (isset($_POST['ID'])) {
        $Users = new \CmsDev\CRUD\ViewEditElementsAsList\Lists\Users\_classes();
        $Users->UpdateAvatar($_POST['Image'], $_POST['ID']);
    }
}
Beispiel #2
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 || isset($_POST['tokenValidate']) && $_POST['tokenValidate'] != '') {
    if (isset($_POST['ID'])) {
        $Users = new \CmsDev\CRUD\ViewEditElementsAsList\Lists\Users\_classes();
        $Users->GoUpdateInterests($_POST['ID']);
    }
}
Beispiel #3
0
<?php

$Users = new \CmsDev\CRUD\ViewEditElementsAsList\Lists\Users\_classes();
$Users->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  Users_Add = '/SKTGoTo/' + admd2('CRUD/ViewEditElementsAsList/Lists/Users/Add');
        jQuery.ajax({
            'type': 'POST',
            'url':  Users_Add,
            'cache': false,
            'data': $('form#colectorskt').serialize(),
            'success': function (html) {
Beispiel #4
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'])) {
        $Users = new \CmsDev\CRUD\ViewEditElementsAsList\Lists\Users\_classes();
        $Users->Theme($_POST['ID']);
    }
}
Beispiel #5
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;
 }
Beispiel #6
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);
    }
}
Beispiel #7
0
<?php

if (\CmsDev\Security\loginIntent::action('validateAdmin') === true) {
    if (isset($_POST['id'])) {
        $ID = $_POST['id'];
        $Company = isset($_POST['Company']) ? $_POST['Company'] : '';
        $RUT = isset($_POST['RUT']) ? $_POST['RUT'] : '';
        $CompanyUrl = isset($_POST['CompanyUrl']) ? $_POST['CompanyUrl'] : '';
        $Description = isset($_POST['Description']) ? $_POST['Description'] : '';
        $category1 = isset($_POST['category1']) ? $_POST['category1'] : '';
        $category2 = isset($_POST['category2']) ? $_POST['category2'] : '';
        $category3 = isset($_POST['category3']) ? $_POST['category3'] : '';
        $category4 = isset($_POST['category4']) ? $_POST['category4'] : '';
        $category5 = isset($_POST['category5']) ? $_POST['category5'] : '';
        $Categories = new \CmsDev\CRUD\ViewEditElementsAsList\Lists\Users\_classes();
        $Categories->EditItemList($ID, $Company, $RUT, $CompanyUrl, $Description, $category1, $category2, $category3, $category4, $category5);
    }
}
Beispiel #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 || isset($_POST['tokenValidate']) && $_POST['tokenValidate'] != '') {
    if (isset($_POST['ID'])) {
        $Users = new \CmsDev\CRUD\ViewEditElementsAsList\Lists\Users\_classes();
        $Users->GoUpdateData($_POST['ID']);
    }
}
Beispiel #9
0
<?php

$theme = new \CmsDev\CRUD\ViewEditElementsAsList\Lists\Users\_classes();
$user_theme = $theme->GetUseTheme($User->id);
?>
<h2 class="mb20  mt30 text-color"><i class="skt-icon-image"></i> Cambiar el estilo y color de sus p&aacute;ginas <input type="button" onclick="UpdateTheme<?php 
echo $User->id;
?>
();" class="btn btn-primary float-right" value="Guardar Cambios" /></h2>
<form id="UrlUpdateTheme<?php 
echo $User->id;
?>
">
    <input name="ColorTheme" id="switcher_ColorTheme" type="hidden" value="<?php 
echo $user_theme->ColorTheme;
?>
" />
    <input name="WideBoxed" id="switcher_WideBoxed" type="hidden" value="<?php 
echo $user_theme->WideBoxed;
?>
" />
    <input name="Pattern" id="switcher_Pattern" type="hidden" value="<?php 
echo $user_theme->Pattern;
?>
" />
    <input name="Background" id="switcher_Background" type="hidden" value="<?php 
echo $user_theme->Background;
?>
" />
    <input name="BackgroundCustom" id="switcher_BackgroundCustom" type="hidden" value="<?php 
echo $user_theme->BackgroundCustom;
Beispiel #10
0
<?php

if (\CmsDev\Security\loginIntent::action('validateAdmin') === true) {
    if (isset($_POST['Title'])) {
        $Title = isset($_POST['Title']) ? $_POST['Title'] : '';
        $Description = isset($_POST['Description']) ? $_POST['Description'] : '';
        $url = isset($_POST['url']) ? $_POST['url'] : '';
        $icon = isset($_POST['icon']) ? $_POST['icon'] : '';
        $Sid = isset($_POST['Sid']) ? $_POST['Sid'] : '0';
        $Users = new \CmsDev\CRUD\ViewEditElementsAsList\Lists\Users\_classes();
        if (isset($_POST['Add'])) {
            $Users->AddToList($Title, $Description, $url, $icon, $Sid);
        }
    }
}
Beispiel #11
0
<?php

if (isset($_POST['ID']) && isset($_POST['tokenValidate']) && isset($_POST['password'])) {
    $Users = new \CmsDev\CRUD\ViewEditElementsAsList\Lists\Users\_classes();
    echo $Users->UserUpdatePassword($_POST['ID'], $_POST['tokenValidate'], $_POST['password']);
}
Beispiel #12
0
                        <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>
                                    <span class="product-save"><i class="fa fa-phone"></i> [Phone]</span>
                                </li>
                            </ul>
                        </div>
                        <p class="product-location text-left">
                        <h5>Categor&iacute;as</h5>
                        <span class="small">[category1]</span><br>
                        <span class="small">[category2]</span><br>
                        <span class="small">[category3]</span><br>
                        <span class="small">[category4]</span><br>
                        <span class="small">[category5]</span>
                        </p>
                    </div>
            </a>
    </div>';
    $ProductAfterList = '</div>';
    $List = new CmsDev\CRUD\ViewEditElementsAsList\Lists\Users\_classes();
    echo $List->GetSearchResults($UserTemplate, $_GET['SearchQuery'], 100, $ProductBeforeList, $ProductAfterList);
}
?>

        </div>
    </div>
    <div class="gap-small"></div>
</div>
<?php

if (isset($_POST['PasswordRecovery'])) {
    $Users = new \CmsDev\CRUD\ViewEditElementsAsList\Lists\Users\_classes();
    echo $Users->UserPassRecovery($_POST['PasswordRecovery']);
}
Beispiel #14
0
<div class="gap"></div>
<div class="container">
    <section class="skts_content">
        <div class="row">
            <?php 
if (isset($_GET['codeValidate']) && $_GET['codeValidate'] != '' && isset($_GET['tokenValidate']) && $_GET['tokenValidate'] != '') {
    $Users = new \CmsDev\CRUD\ViewEditElementsAsList\Lists\Users\_classes();
    $test = $Users->UserToken($_GET['codeValidate'], $_GET['tokenValidate']);
    if ($test) {
        ?>
                    <div class="col-md-3 hidden-sm hidden-xs"></div>
                    <div class="col-md-6 col-sm-12 col-xs-12">
                        <h1>Hola <?php 
        echo $test->Name;
        ?>
, cambia la contrase&ntilde;a y memorizala.</h1>
                        <div class="gap"></div>
                        <div class="alert alert-info">Verifique que tenga m&aacute;s de 6 caracteres, es recomendable que incorpore letras y n&uacute;meros sin espacios.</div>
                        <div class="gap"></div>
                        <div class="row">
                            <div class="col-md-6 col-sm-12 col-xs-12">
                                <form class="dialog-form" id="f<?php 
        echo $test->token;
        ?>
">
                                    <input type="hidden" name="ID" value="<?php 
        echo $test->id;
        ?>
">
                                    <input type="hidden" name="token" value="<?php 
        echo $test->token;
Beispiel #15
0
<?php

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