Esempio n. 1
0
<link href="<?php 
echo SKTURL_TemplateSite;
?>
assets/css/font_awesome.css" rel="stylesheet" type="text/css"/>
<?php 
$Categories = new \CmsDev\CRUD\ViewEditElementsAsList\Lists\Categories\_classes();
$SKTDB = \CmsDev\Sql\db_Skt::connect();
?>
<div id="DataContent">
    <?php 
$Categories->RenderList();
?>
</div>
<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;
Esempio n. 2
0
<?php

$Categories = new \CmsDev\CRUD\ViewEditElementsAsList\Lists\Categories\_classes();
$Categories->RenderList($_POST['parent_cat']);
Esempio n. 3
0
<?php

if (\CmsDev\Security\loginIntent::action('validateAdmin') === true) {
    if (isset($_POST['category_name'])) {
        $category_name = isset($_POST['category_name']) ? $_POST['category_name'] : '';
        $category_Description = isset($_POST['category_Description']) ? $_POST['category_Description'] : '';
        $category_url = isset($_POST['category_url']) ? $_POST['category_url'] : '';
        $category_icon = isset($_POST['category_icon']) ? $_POST['category_icon'] : '';
        $category_idx = isset($_POST['category_idx']) ? $_POST['category_idx'] : '0';
        $category_level = isset($_POST['level']) ? $_POST['level'] : '0';
        $category_image = isset($_POST['category_image']) ? $_POST['category_image'] : '/_FileSystems/transparent.png';
        $Categories = new \CmsDev\CRUD\ViewEditElementsAsList\Lists\Categories\_classes();
        if (isset($_POST['Add'])) {
            $Categories->AddToList($category_name, $category_Description, $category_url, $category_icon, $category_idx, $category_level, $category_image);
        }
    }
}
Esempio n. 4
0
<?php

if (\CmsDev\Security\loginIntent::action('validateAdmin') === true) {
    if (isset($_POST['category_id'])) {
        $category_id = $_POST['category_id'];
        $category_name = isset($_POST['category_name']) ? $_POST['category_name'] : '';
        $category_Description = isset($_POST['category_Description']) ? $_POST['category_Description'] : '';
        $category_url = isset($_POST['category_url']) ? $_POST['category_url'] : '';
        $category_icon = isset($_POST['category_icon']) ? $_POST['category_icon'] : '';
        $category_idx = isset($_POST['category_idx']) ? $_POST['category_idx'] : '0';
        $category_level = isset($_POST['level']) ? $_POST['level'] : '0';
        $category_image = isset($_POST['category_image']) ? $_POST['category_image'] : '/_FileSystems/transparent.png';
        $Categories = new \CmsDev\CRUD\ViewEditElementsAsList\Lists\Categories\_classes();
        $Categories->EditItemList($category_id, $category_name, $category_Description, $category_url, $category_icon, $category_idx, $category_level, $category_image);
    }
}
Esempio n. 5
0
<?php

if (\CmsDev\Security\loginIntent::action('validateAdmin') === true) {
    if (isset($_POST['ID'])) {
        $category_id = isset($_POST['ID']) ? $_POST['ID'] : '';
        $Categories = new \CmsDev\CRUD\ViewEditElementsAsList\Lists\Categories\_classes();
        $Categories->RemoveFromList($category_id);
    }
}
Esempio n. 6
0
<?php

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