Esempio n. 1
0
             <?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);
 $Foto->Set_Name($User->username . '_' . $FieldName5 . md5(microtime()));
 $Foto->Set_FieldName($FieldName5);
 $Foto->RealName('Image5');
 $Foto->Make();
 ?>
         </div>
     </div>
     <div class="clear"></div>
Esempio n. 2
0
<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) {
Esempio n. 3
0
                </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->Make();
?>
<!--            <input name="category_image" id="category_image" type="text" value="skt-icon-CmsDev" class="form-control">-->
                </div>
            </div>