<div class="controls" id="FotoPerfil"> <?php $FieldName = $User->username . '_Logo'; $Foto = new \CmsDev\CustomControl\ImageUpload\ImageUpload_Control(); $FieldRand = $Foto->Set_Random(md5(rand(9, 999999) . microtime())); $Foto->Set_fileType(array('image/jpeg', 'image/jpg', 'image/png')); $Foto->Set_fileTypeNames('JPG o PNG sin transparencia, con fondo blanco preferentemente.'); $Foto->Set_TextButton('Cargar Logotipo'); $Foto->SizeW(300); $Foto->SizeH(300); $Foto->Set_Max_Dimension_And_FileSize(1000, 1000, 512000); $Foto->Set_Picture(\SKT_URL_BASE . $User->ClientAuth_picture); $Foto->Set_Directory('_FileSystems' . \DS . 'users' . \DS); $Foto->Set_FieldName($FieldName); $Foto->Make(); ?> <div class="clear" id="DumySetNewImageUpload"> <button id="SKT_SetNewImageUpload" onclick="NewLogo<?php echo $Foto->Get_OutputField(); ?> ('<?php echo $FieldName; ?> ');" class="btn btn-success btn-block mt20" style="display: none">Aplicar cambio de imagen</button> </div> </div> <script type="text/javascript"> function NewLogo<?php echo $Foto->Get_OutputField(); ?> (Image) {
<?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) { $Foto = new \CmsDev\CustomControl\ImageUpload\ImageUpload_Control(); $Foto->SetUpload($_GET['Params1'], $_GET['Params2']); }
<input name="category_url" id="category_url-tag" type="text" class="form-control"> </div> <div class="form-group"> <label>Descripción</label> <textarea id="category_Description" name="category_Description" class="form-control" style="height:100px;" ></textarea> </div> </div> <div class="col-md-6"> <div class="form-group"> <label>Icono</label> <input name="category_icon" id="category_icon" type="text" value="skt-icon-CmsDev" class="form-control"> </div> <div class="form-group"> <?php $FieldName = 'category_' . \RAND_GLOBAL_INSTANCE; $Foto = new \CmsDev\CustomControl\ImageUpload\ImageUpload_Control(); $FieldRand = $Foto->Set_Random(md5(rand(9, 999999) . microtime())); $Foto->Set_fileType(array('image/jpeg', 'image/jpg', 'image/png')); $Foto->Set_fileTypeNames('JPG o PNG sin transparencia, con fondo blanco preferentemente.'); $Foto->Set_TextButton('Cargar imagen'); $Foto->SizeW(400); $Foto->SizeH(400); $Foto->ResizeSize(true); $Foto->CropSize(); $Foto->ShowDelete('Quitar imagen'); $Foto->Set_Max_Dimension_And_FileSize(600, 600, 2097152); $Foto->Set_Picture(\SKT_URL_BASE . '_FileSystems/transparent.png'); $Foto->Set_Directory('_FileSystems' . \DS . 'category_image' . \DS); $Foto->Set_Name($User->username . '_' . $FieldName . md5(microtime())); $Foto->Set_FieldName($FieldName); $Foto->RealName('category_image');
$Foto->RealName('Image4'); $Foto->Make(); ?> </div> </div> <div class="col-md-2 col-xs-6 col-sm-6"> <p>Imagen 5</p> <div class="controls"> <?php if ($Image5 != '') { $Set_Picture = $Image5; } else { $Set_Picture = \SKT_URL_BASE . '_FileSystems/avatar.png'; } $FieldName5 = $User->username . '_Image5_' . \RAND_GLOBAL_INSTANCE; $Foto = new \CmsDev\CustomControl\ImageUpload\ImageUpload_Control(); $FieldRand = $Foto->Set_Random(md5(rand(9, 999999) . microtime())); $Foto->Set_fileType(array('image/jpeg', 'image/jpg', 'image/png')); $Foto->Set_fileTypeNames('JPG o PNG sin transparencia, con fondo blanco preferentemente.'); $Foto->Set_TextButton('Cargar imagen'); if ($Image5 != '') { $Foto->EnablePictureDefault(); } $Foto->SizeW(800); $Foto->SizeH(600); $Foto->ResizeSize(true); $Foto->CropSize(); $Foto->ShowDelete('Quitar imagen'); $Foto->Set_Max_Dimension_And_FileSize(1280, 900, 2097152); $Foto->Set_Picture($Set_Picture); $Foto->Set_Directory('_FileSystems' . \DS . 'Products' . \DS);
} ?> " href="javascript:void(0);">En caja con fondo</a> </div> <p>Cargar una imagen propia para el fondo</p> <div class="controls" id="BackgroundCustom"> <?php if ($CCParams->BackgroundCustom != '') { $Set_Picture = $CCParams->BackgroundCustom; } elseif ($CCParams->Background != '') { $Set_Picture = $CCParams->Background; } else { $Set_Picture = \SKT_URL_BASE . '_FileSystems/transparent.png'; } $FieldName = $User->username . '_BackgroundCustom'; $Foto = new \CmsDev\CustomControl\ImageUpload\ImageUpload_Control(); $FieldRand = $Foto->Set_Random(md5(rand(9, 999999) . microtime())); $Foto->Set_fileType(array('image/jpeg', 'image/jpg', 'image/png')); $Foto->Set_fileTypeNames('JPG o PNG sin transparencia, con fondo blanco preferentemente.'); $Foto->Set_TextButton('Cargar imagen de fondo'); //$Foto->SizeW(1280); //$Foto->SizeH(900); $Foto->ResizeSize(false); $Foto->Set_Max_Dimension_And_FileSize(1280, 900, 2097152); $Foto->Set_Picture($Set_Picture); $Foto->Set_FieldName($FieldName); $Foto->Set_Directory('_FileSystems' . \DS . 'users' . \DS); $Foto->Make(); ?> <button id="SKT_SetNewImageUpload" onclick="BackgroundCustom<?php echo $Foto->Get_OutputField();