Server IP : 103.119.228.120 / Your IP : 3.144.122.20 Web Server : Apache System : Linux v8.techscape8.com 3.10.0-1160.119.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Jul 15 12:09:18 UTC 2024 x86_64 User : nobody ( 99) PHP Version : 5.6.40 Disable Function : shell_exec,symlink,system,exec,proc_get_status,proc_nice,proc_terminate,define_syslog_variables,syslog,openlog,closelog,escapeshellcmd,passthru,ocinum cols,ini_alter,leak,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dl,dll,myshellexec,proc_open,socket_bind,proc_close,escapeshellarg,parse_ini_filepopen,fpassthru,exec,passthru,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,popen,show_source,proc_nice,proc_terminate,proc_get_status,proc_close,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,dl,symlink,shell_exec,system,dl,passthru,escapeshellarg,escapeshellcmd,myshellexec,c99_buff_prepare,c99_sess_put,fpassthru,getdisfunc,fx29exec,fx29exec2,is_windows,disp_freespace,fx29sh_getupdate,fx29_buff_prepare,fx29_sess_put,fx29shexit,fx29fsearch,fx29ftpbrutecheck,fx29sh_tools,fx29sh_about,milw0rm,imagez,sh_name,myshellexec,checkproxyhost,dosyayicek,c99_buff_prepare,c99_sess_put,c99getsource,c99sh_getupdate,c99fsearch,c99shexit,view_perms,posix_getpwuid,posix_getgrgid,posix_kill,parse_perms,parsesort,view_perms_color,set_encoder_input,ls_setcheckboxall,ls_reverse_all,rsg_read,rsg_glob,selfURL,dispsecinfo,unix2DosTime,addFile,system,get_users,view_size,DirFiles,DirFilesWide,DirPrintHTMLHeaders,GetFilesTotal,GetTitles,GetTimeTotal,GetMatchesCount,GetFileMatchesCount,GetResultFiles,fs_copy_dir,fs_copy_obj,fs_move_dir,fs_move_obj,fs_rmdir,SearchText,getmicrotime MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/hendraso/public_html/Templates/Admin/ |
Upload File : |
<div class="page-content p-2"> <div id="add-loading"> <div class="loadingPage text-center"><span class="box"><img src="{$livepath}/Assets/Img/Facebook.svg"><span>Loading Page</span></span></div> </div> <div class="rows"> <nav aria-label="breadcrumb" class="float-right"> <ol class="breadcrumb font-sm mb-0"> <li class="breadcrumb-item"><a href="{$livepath}/Modules/Dashboard/show" class="clearStorage"><i class="fa fa-home mr-1"></i>Dashboard</a></li> <li class="breadcrumb-item font-weight-bold" aria-current="page"><a href="{$livepath}/Modules/Admin/Master/Formbuilder/show" class="clearStorage">Formbuilder</a></li> <li class="breadcrumb-item font-weight-bold active" aria-current="page">Generate Detail Template</li> </ol> </nav> <h2 class="h5 font-weight-bold px-2 pt-2 pb-3">Generate List Template</h2> <div class="cPanel bg-white border relative over-hidden col-md-12 rounded pb-3 formGridCustom"> <div class="portlet" id="template1"> <div class="portlet-heading bg-darkgray font-weight-bold py-2 px-3 text-white"> <a href="{$livepath}/Modules/Admin/Master/Settemplate/show/{$fid}" class="btn btn-link text-white font-weight-bold font-sm mtm-1 cancel float-right"><i class="fa fa-arrow-left mr-1"></i> Back to List Template</a> Template A </div> <div class="portlet-body pt-4 px-1"> <!--<a href="#" class="btn btn-sm btn-outline-primary font-weight-bold font-sm mr-2" data-toggle="modal" data-target="#templateDetail" data-title="Template A" data-list="{$livepath}/Assets/Img/template_peview_1.jpg" data-detail="{$livepath}/Assets/Img/template_peview_1_detail.jpg"><i class="fa fa-search-plus mr-1"></i>View Example</a>--> <form method="POST" name="fTemplate" id="fTemplate" onsubmit="return(false);"> <input type="hidden" name="fid" id="fid" value="{$fid}"> <div class="form-group listForm row"> <label class="formLabel control-label col-lg-2 col-md-6">Content Title</label> <div class="col-lg-6 col-md-6"> <input type="text" name="txtNameContent" id="txtNameContent" class="inputBox form-control" value="{$cfieTitleContent}"> </div> </div> <div class="form-group listForm row"> <label class="formLabel control-label col-lg-2 col-md-2">Content Image </label> <div class="col-lg-6 col-md-6 fileupload"> <div class="custom-file"> <input type="file" name="fImage" id="inputImagefImage" class="inputImage form-control" accept="image/*"> <label class="custom-file-label" for="inputImagefImage">Choose file</label> </div> <div id="imagePreviewfImage" class="imgContBig"> {if !empty($cfieImage)} <img src="{$livepath}/Assets/Img/{$cfieImage}"> {/if} </div> </div> </div> <div class="form-group listForm row"> <label class="formLabel control-label col-lg-2 col-md-2">Content Description</label> <div class="col-lg-6 col-md-6"> <textarea rows="3" class="textArea customTextArea" name="txtListDescription" id="txtListDescription">{$cfieDescContent}</textarea> </div> </div> <div class="form-group listForm row"> <label class="formLabel control-label col-lg-2 col-md-2">Meta Title</label> <div class="col-lg-6 col-md-6"> <input type="text" name="txtMetaTitle" id="txtMetaTitle" class="inputBox form-control" value="{$cfieMetaTitle}"> </div> </div> <div class="form-group listForm row"> <label class="formLabel control-label col-lg-2 col-md-2">Meta Description</label> <div class="col-lg-6 col-md-6"> <textarea rows="3" class="textArea" name="txtMetaDescription" id="txtMetaDescription">{$cfieMetaDescription}</textarea> </div> </div> <div class="form-group listForm row"> <label class="formLabel control-label col-lg-2 col-md-2">OG Image </label> <div class="col-lg-6 col-md-6 fileupload"> <input type="file" name="fImage2" id="inputImagefImage2" class="inputImage form-control" accept="image/*"> <div id="imagePreviewfImage2" class="imgContBig"> {if !empty($cfieOgImage)} <img src="{$livepath}/Assets/Img/{$cfieOgImage}"> {/if} </div> </div> </div> <div class="row"> <div class="col-md-3 order-0"> <p class="h6 text-primary font-weight-bold mt-4 mb-2">Filter Setting</p> <fieldset class="mb-4 bg-white shadow-sm border rounded p-3"> <form method="POST"> <div class="categoryCont"> {foreach from=$all_field item=sr key=m} <div class="form-check pl-0"> <span class="switch switch-xs"> <input type="checkbox" name="category[]" value="{$m}" class="switch sList" id="tempA{$sr}" {if isset($getSetFilter[$m])}checked{/if}> <label for="tempA{$sr}">{$sr}</label> </span> </div> {/foreach} </div> </form> </fieldset> </div> <div class="col-md-9 order-1 pl-0 generateList"> <p class="h6 text-primary font-weight-bold mt-4 mb-2">List Setting</p> <div class="custom_template"> <div class="card shadow-sm mb-3"> <div class="d-flex pb-3"> <div class="card-header border-0 bg-transparent imgCont order-0 pl-3"> <img class="" src="" alt=""> </div> <div class="card-body col order-1 pr-3 py-3 pl-0"> <h2 class="card-title h4" id="val_{$prefix}Name">TITLE</h2> <div class="row"> <div class="col"> <div class="h6 font-weight-bold text-secondary"> {$field_variable1} </div> <small class="d-block text-black-50"> {$field_variable2} </small> </div> <div class="col"> <div class="h6 font-weight-bold text-secondary"> {$field_variable3} </div> <small class="d-block text-black-50"> {$field_variable4} </small> </div> <div class="col"> <div class="h6 font-weight-bold text-secondary"> {$field_variable5} </div> <small class="d-block text-black-50"> {$field_variable6} </small> </div> </div> </div> <div class="order-2 col pt-3 pr-3 text-center hideCst"> <a href="" class="btn btn-primary btn-md font-weight-bold mb-3" id="url_{$prefix}Url"><i class="fa fa-credit-card mr-1"></i> Apply Now</a> </div> </div> <div class="collapse show border-top bg-light" id="md{literal}{$e_num}{/literal}"> <div class="infoWraps p-3"> <div class="d-block"> {$field_variable7} </div> </div> </div> <div class="card-footer bg-white flex-wrap px-3"> <a href="" class="btn btn-link btn-sm float-right mr-2" id="url_detailurl">Get more Details</a> <a class="btn btn-outline-secondary btn-sm dropdown-toggle float-right" data-toggle="collapse" href="#md{literal}{$e_num}{/literal}" role="button" aria-expanded="false" aria-controls="md{literal}{$e_num}{/literal}">Show more</a> <p class="card-text pl-0 mt-1"> <span class="d-inline-block"> {$field_variable8} </span> </p> </div> </div> </div> </div> </div> <a href="{$livepath}/Modules/Admin/Master/Settemplate/show/{$fid}" class="btn btn-link font-weight-bold mt-4 float-right"><i class="fa fa-arrow-left mr-1"></i> Back to List Template</a> <div class="btn btn-sm btn-outline-success font-weight-bold mt-4" onclick="saveTemplate('template1')"><i class="fa fa-floppy-o mr-1"></i>Save Template</div> </form> </div> </div> <div class="portlet" id="template2"> <div class="portlet-heading bg-darkgray font-weight-bold py-2 px-3 text-white"> <a href="{$livepath}/Modules/Admin/Master/Settemplate/show/{$fid}" class="btn btn-link text-white font-weight-bold font-sm mtm-1 cancel float-right"><i class="fa fa-arrow-left mr-1"></i> Back to List Template</a> Template B </div> <div class="portlet-body pt-4 px-1"> <!--<a href="#" class="btn btn-sm btn-outline-primary font-weight-bold font-sm mr-2" data-toggle="modal" data-target="#templateDetail" data-title="Template A" data-list="{$livepath}/Assets/Img/template_peview_1.jpg" data-detail="{$livepath}/Assets/Img/template_peview_1_detail.jpg"><i class="fa fa-search-plus mr-1"></i>View Example</a>--> <form method="POST" name="fTemplate" id="fTemplate" onsubmit="return(false);"> <input type="hidden" name="fid" id="fid" value="{$fid}"> <div class="row"> <div class="form-group listForm col-lg-7 col-md-7"> <label class="formLabel control-label text-primary">Content Title</label> <div class="input-group mb-3"> <input type="text" name="txtNameContent" id="txtNameContent" class="inputBox form-control" value="{$cfieTitleContent}"> </div> </div> <div class="form-group listForm col-lg-7 col-md-7 "> <label class="formLabel control-label text-primary">Content Image </label> <div class="fileupload"> <input type="file" name="fImage" id="inputImagefImage" class="inputImage form-control" accept="image/*"> </div> <div id="imagePreviewfImage" class="imgContBig" style="margin-top: 10px; max-width: 100px;"> {if !empty($cfieImage)} <img src="{$livepath}/Assets/Img/{$cfieImage}"> {/if} </div> </div> <div class="form-group listForm col-lg-12 col-md-12"> <label class="formLabel control-label text-primary">Content Description</label> <textarea rows="30" class="textArea customTextArea" name="txtListDescription" id="txtListDescription">{$cfieDescContent}</textarea> </div> <div class="form-group listForm col-lg-7 col-md-7"> <label class="formLabel control-label text-primary">Meta Title</label> <div class="input-group mb-3"> <input type="text" name="txtMetaTitle" id="txtMetaTitle" class="inputBox form-control" value="{$cfieMetaTitle}"> </div> </div> <div class="form-group listForm col-lg-12 col-md-12"> <label class="formLabel control-label text-primary">Meta Description</label> <textarea rows="30" class="textArea" name="txtMetaDescription" id="txtMetaDescription">{$cfieMetaDescription}</textarea> </div> <div class="form-group listForm col-lg-7 col-md-7 "> <label class="formLabel control-label text-primary">OG Image </label> <div class="fileupload"> <input type="file" name="fImage2" id="inputImagefImage2" class="inputImage form-control" accept="image/*"> </div> <div id="imagePreviewfImage2" class="imgContBig" style="margin-top: 10px; max-width: 100px;"> {if !empty($cfieOgImage)} <img src="{$livepath}/Assets/Img/{$cfieOgImage}"> {/if} </div> </div> </div> <div class="row"> <div class="col-md-3 order-0"> <p class="h6 text-primary font-weight-bold mt-4 mb-2">Filter Setting</p> <fieldset class="mb-4 bg-white shadow-sm border rounded p-3"> <form method="POST"> <div class="categoryCont"> {foreach from=$all_field item=sr key=m} <div class="form-check pl-0"> <span class="switch switch-xs"> <input type="checkbox" name="category[]" value="{$m}" class="switch sList" id="tempB{$sr}" {if isset($getSetFilter[$m])}checked{/if}> <label for="tempB{$sr}">{$sr}</label> </span> </div> {/foreach} </div> </form> </fieldset> </div> <div class="col-md-9 order-1 pl-0 generateList"> <p class="h6 text-primary font-weight-bold mt-4 mb-2">List Setting</p> <div class="custom_template"> <div class="card shadow-sm mb-3"> <div class="d-flex pb-3"> <div class="card-header border-0 bg-transparent imgCont order-0 pl-3"> <img class="" src="" alt=""> </div> <div class="card-body col order-1 pr-3 py-3 pl-0"> <h2 class="card-title h4" id="val_{$prefix}Name">TITLE</h2> <div class="row"> <div class="col"> <div class="h6 font-weight-bold text-secondary"> {$field_variable1} </div> <small class="d-block text-black-50"> {$field_variable2} </small> </div> <div class="col"> <div class="h6 font-weight-bold text-secondary"> {$field_variable3} </div> <small class="d-block text-black-50"> {$field_variable4} </small> </div> <div class="col"> <div class="h6 font-weight-bold text-secondary"> {$field_variable5} </div> <small class="d-block text-black-50"> {$field_variable6} </small> </div> </div> </div> <div class="order-2 col pt-3 pr-3 text-center hideCst"> <a href="" class="btn btn-primary btn-md font-weight-bold mb-3" id="url_{$prefix}Url"><i class="fa fa-credit-card mr-1"></i> Apply Now</a> </div> </div> <div class="collapse show border-top bg-light" id="md{literal}{$e_num}{/literal}"> <div class="infoWraps p-3"> <div class="d-block"> {$field_variable7} </div> </div> </div> <div class="card-footer bg-white flex-wrap px-3"> <a href="" class="devcust_urldefault btn btn-link btn-sm float-right mr-2" id="url_detailurl">Get more Details</a> <a class="btn btn-outline-secondary btn-sm dropdown-toggle float-right" data-toggle="collapse" href="#md{literal}{$e_num}{/literal}" role="button" aria-expanded="false" aria-controls="md{literal}{$e_num}{/literal}">Show more</a> <p class="card-text pl-0 mt-1"> <span class="d-inline-block"> {$field_variable8} </span> </p> </div> </div> </div> </div> </div> <a href="{$livepath}/Modules/Admin/Master/Settemplate/show/{$fid}" class="btn btn-link font-weight-bold mt-4 float-right"><i class="fa fa-arrow-left mr-1"></i> Back to List Template</a> <div class="btn btn-sm btn-outline-success font-weight-bold mt-4" onclick="saveTemplate('template2')"><i class="fa fa-floppy-o mr-1"></i>Save Template</div> </form> </div> </div> </div> </div> </div> <script type="text/javascript">{if isset($pathcustom)} var custom_path = '{$pathcustom}';{else}var custom_path = '{$path}';{/if}var menuAccess = '{$menu}', livepath = '{$livepath}', ajaxFile = "{$path}", ajaxParam = "{$param}", device = "{$device}", pathupload = "{if isset($pathupload)}{$pathupload}{/if}", addFilterTable = '{if isset($addFilter)}{$addFilter}{/if}{$slFilter}';</script> <script type="text/javascript" src="{$livepath}/Assets/plugins_admin/tinymce/tinymce.min.js"></script> {if isset($addJs)}<script>{$addJs}</script>{/if} <script type="text/javascript"> //var d = "template1", arr = [], arrVal = JSON.parse('{$temp_value}'); var d = '{$sel_themes}', fr = $(".formGridCustom"), gr = $(".Grid1"), prefix = '{$prefix}'; $("document").ready(function() { // For Tiny tinymce.init({ toolbar1: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image", toolbar2: "print preview media | forecolor backcolor emoticons", plugins: [ "advlist autolink lists link image charmap print preview hr anchor pagebreak", "searchreplace wordcount visualblocks visualchars code fullscreen", "insertdatetime media nonbreaking save table contextmenu directionality", "emoticons template paste textcolor colorpicker textpattern" ], selector: ".customTextArea", height:300 }); // For Image $.fn.previewImageUpload = function (opt) { opt = $.extend({ fileInput: this, filePreview: '', callback: "" }, opt); var input = opt.fileInput; var filePreview = opt.filePreview; var callback = opt.callback; input.change(function () { var file = this.files[0]; //name = file.fileName; //size = file.size; //type = file.type; reader = new FileReader(); reader.onloadend = function (e) { var src = e.target.result; filePreview.hide().html('<img src="' + src + '"/>').fadeIn(200); }; reader.readAsDataURL(file); }); if (typeof (callback) == 'function') { callback(); } } $("#"+d+" .inputImage").each(function (a, b) { var nameImg = $(b).attr('name'); $("#"+d+" #inputImage" + nameImg).previewImageUpload({ filePreview: $("#"+d+" #imagePreview" + nameImg), callback: function () { $("#"+d+" #imagePreview" + nameImg).css({ 'margin-top': 10, 'max-width': $("#"+d+" #inputImage" + nameImg).outerWidth() }); } }); }); removeWaiting(); var arr = [], arrVal = JSON.parse('{$temp_value}'); gr.hide(); fr.show().find('#'+d).show().siblings('.portlet').hide(); //======= Change Variable Content =========== $("#"+d+" select").on("change", function(e) { var name_id = $(this).attr("id"); if($(this).val() != "") { $("#"+d+" select[id!='"+name_id+"'] option[value='"+$(this).val()+"']").remove(); } if(typeof arrVal[name_id] != 'undefined' && arrVal[name_id] != '' && arrVal[name_id] != '0|||') { var optionText = $("#"+d+" #" + name_id + " option[value='" + arrVal[name_id] + "']").text(); $("#"+d+" select[id='"+name_id+"'] option[value='"+arrVal[name_id]+"']").remove(); var optionTemp = "<option value='"+arrVal[name_id]+"'>"+optionText+"</option>"; arr[name_id] = optionTemp; } if(arr[name_id] != 'undefined' && arr[name_id] != '') { $("#"+d+" select").append(arr[name_id]); } $.each($("#"+d+" select"), function(key, val){ var elId = $(val).attr("id"); var optionValue = $(val).val(); var optionText = $("#"+d+" #" + elId + " option[value='" + $(val).val() + "']").text(); var option = ""; if(optionValue != '' && optionValue != null) { var option = "<option value='"+optionValue+"'>"+optionText+"</option>"; arrVal[elId] = optionValue; }else{ arrVal[elId] = ""; } arr[elId] = option; }); }); //================================== $(".cancel").on('click', function() { gr.show(); fr.hide(); }); }); function waiting() { $("#add-loading").html('<div class="loadingPage text-center"><span class="box"><img src="'+livepath+'/assets/img/Facebook.svg"><span>Loading Page</span></span></div>'); $('.breads').hide(); $('.ftr').hide(); } function removeWaiting() { setTimeout(function() { $("#add-loading").empty(); $('.breads').show(); $('.ftr').show(); }, 1000); } function saveTemplate(d) { //======= Save Template ============== {literal} //$("#saveTemplate_"+d).on("click", function() { // Create Temporary Template $("body").append("<div class='custom_temp_"+d+"' style='display:none'>"); $(".custom_temp_"+d).html($("#"+d+" .custom_template").html()); $.each($(".custom_temp_"+d+" select"), function(key, val) { var id_temp = $(val).attr("id"); var name = id_temp + "_temp_"+d; $(val).parent().html("<div id='"+name+"'>"); }); // ======================== // Set Variable In Temporary Template $.each($("#"+d+" .custom_template select"), function(key, val) { var id = $(val).attr("id"); var value = $(val).val(); var pecah = value.split('|'); var variable = pecah[1]; if(typeof pecah[1] != 'undefined') { $("#"+id+"_temp_"+d).parent().html("{$e_var."+pecah[1]+"}"); }else{ $("#"+id+"_temp_"+d).parent().html(""); } }); // == FOR TITLE & IMAGE DEFAULT == $.each($("[id*='val_']"), function(key, val) { var iddata = $(val).attr("id"); var variable_parameter = iddata.replace("val_", ""); $(".custom_temp_"+d+" #"+iddata).html("{$e_var."+variable_parameter+"}"); }) $.each($("[id*='url_']"), function(key, val) { var iddata = $(val).attr("id"); var variable_parameter = iddata.replace("url_", ""); $(".custom_temp_"+d+" #"+iddata).attr("href", "{$e_var."+variable_parameter+"}"); }) $(".custom_temp_"+d+" .collapse.show").removeClass("show"); $(".custom_temp_"+d+" img").attr("src", "{$path}/Assets/Img/{$e_var."+prefix+"Image}"); $(".custom_temp_"+d+" img").attr("alt", "{$e_var."+prefix+"Name}"); // ===== END Set Variable In Temporary Template ======= // Ajax nya jalan disini tinyMCE.triggerSave(); var formdata = new FormData($("#"+d+" #fTemplate")[0]); formdata.append('themes', d + "_" + $("#"+d+" #fid").val()); formdata.append('content', $(".custom_temp_"+d).html()); if (formdata) { $.ajax({ url: custom_path+"/generate", type: "POST", dataType: "JSON", data: formdata, cache: false, processData: false, contentType: false, success: completeHandler = function (obj) { if (obj.status != 'ok') { removeWaiting(); Lobibox.notify('error', { msg : obj.error, width : '100%', size : 'mini', delay : 3500, showClass : 'bounceIn', hideClass : 'bounceOut' }); } else { Lobibox.notify('success', { msg : 'Save Successfully', width : '100%', size : 'mini', delay : 3500, showClass : 'bounceIn', hideClass : 'bounceOut' }); $("div[class^='template'] .addForm").removeClass("btn-outline-danger").addClass("btn-outline-primary").html('<i class="fa fa-paint-brush mr-1"></i>Use'); $("."+d+" .addForm").removeClass("btn-outline-primary").addClass("btn-outline-danger").html('<i class="fa fa-paint-brush mr-1"></i> Edit'); $(".active").removeClass("active"); $("."+d).addClass("active"); gr.show(); fr.show().find('#'+d).show().siblings('.portlet').hide(); } } }); } // Remove temporary Template $(".custom_temp_"+d).remove(); {/literal} } </script>