[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: flatmate-preference.php
<?php include("header.php"); ?> <!-- // Header include --> <!-- Inner-banner --> <div class="inner-banner"> <img src="images/inner-banner-2.png"> <div class="container"> <h1>Your Preferences</h1> </div> </div> <script> var max_limit = 5; // Max Limit $(document).ready(function (){ $(".flatmate:input:checkbox").each(function (index){ this.checked = (".flatmate:input:checkbox" < max_limit); }).change(function (){ if ($(".flatmate:input:checkbox:checked").length > max_limit){ this.checked = false; alert('Only 5 preferences can be added'); } }); }); </script> <!-- Flatmate Preferences --> <div class="flatmate-preferences"> <div class="container"> <div class="row"> <form action="" method="post" enctype= "multipart/form-data"> <?php $sr='flatmate_category'; $stmt =$show->readAll_clause($sr,'order by id asc'); $num = $stmt->rowCount(); if($num>0){ $count=1; while ($row = $stmt->fetch(PDO::FETCH_ASSOC)){ extract($row); $id=$row['id']; ?> <div class="col-md-3 col-sm-3 col-xs-4"> <div class="flatmate-preferences-box-content"> <input type="checkbox" class="flatmate" value="<?=$row['amenity']?>" name="flatment_profile[]" id="NeatFreak"> <label for="flatmate-preference1"> <img src="<?=$pic_img?>/<?=$row['image']?>"> <h6><?=$row['amenity']?></h6> </label> </div> </div> <?php } } ?> <!---- <div class="col-md-3 col-sm-3 col-xs-12"> <div class="flatmate-preferences-box-content"> <input type="checkbox" name="flatmate-preference" id="flatmate-preference2"> <label for="flatmate-preference2"> <img src="images/apartment-icon-24.png"> <h6>WFH Buddy</h6> </label> </div> </div> <div class="col-md-3 col-sm-3 col-xs-12"> <div class="flatmate-preferences-box-content"> <input type="checkbox" name="flatmate-preference" id="flatmate-preference15"> <label for="flatmate-preference15"> <img src="images/apartment-icon-36.png"> <h6>Male</h6> </label> </div> </div> <div class="col-md-3 col-sm-3 col-xs-12"> <div class="flatmate-preferences-box-content"> <input type="checkbox" name="flatmate-preference" id="flatmate-preference16"> <label for="flatmate-preference16"> <img src="images/apartment-icon-37.png"> <h6>Female</h6> </label> </div> </div> <div class="col-md-3 col-sm-3 col-xs-12"> <div class="flatmate-preferences-box-content"> <input type="checkbox" name="flatmate-preference" id="flatmate-preference3"> <label for="flatmate-preference3"> <img src="images/apartment-icon-25.png"> <h6>Office Goer</h6> </label> </div> </div> <div class="col-md-3 col-sm-3 col-xs-12"> <div class="flatmate-preferences-box-content"> <input type="checkbox" name="flatmate-preference" id="flatmate-preference4"> <label for="flatmate-preference4"> <img src="images/apartment-icon-26.png"> <h6>Party Animal</h6> </label> </div> </div> <div class="col-md-3 col-sm-3 col-xs-12"> <div class="flatmate-preferences-box-content"> <input type="checkbox" name="flatmate-preference" id="flatmate-preference5"> <label for="flatmate-preference5"> <img src="images/apartment-icon-27.png"> <h6>Non Smoker</h6> </label> </div> </div> <div class="col-md-3 col-sm-3 col-xs-12"> <div class="flatmate-preferences-box-content"> <input type="checkbox" name="flatmate-preference" id="flatmate-preference6"> <label for="flatmate-preference6"> <img src="images/apartment-icon-28.png"> <h6>Pet Friendly</h6> </label> </div> </div> <div class="col-md-3 col-sm-3 col-xs-12"> <div class="flatmate-preferences-box-content"> <input type="checkbox" name="flatmate-preference" id="flatmate-preference7"> <label for="flatmate-preference7"> <img src="images/apartment-icon-29.png"> <h6>Vegetarian</h6> </label> </div> </div> <div class="col-md-3 col-sm-3 col-xs-12"> <div class="flatmate-preferences-box-content"> <input type="checkbox" name="flatmate-preference" id="flatmate-preference9"> <label for="flatmate-preference9"> <img src="images/apartment-icon-30.png"> <h6>Early Bird</h6> </label> </div> </div> <div class="col-md-3 col-sm-3 col-xs-12"> <div class="flatmate-preferences-box-content"> <input type="checkbox" name="flatmate-preference" id="flatmate-preference10"> <label for="flatmate-preference10"> <img src="images/apartment-icon-31.png"> <h6>Night Owl</h6> </label> </div> </div> <div class="col-md-3 col-sm-3 col-xs-12"> <div class="flatmate-preferences-box-content"> <input type="checkbox" name="flatmate-preference" id="flatmate-preference11"> <label for="flatmate-preference11"> <img src="images/apartment-icon-32.png"> <h6>Loves Socialising</h6> </label> </div> </div> <div class="col-md-3 col-sm-3 col-xs-12"> <div class="flatmate-preferences-box-content"> <input type="checkbox" name="flatmate-preference" id="flatmate-preference12"> <label for="flatmate-preference12"> <img src="images/apartment-icon-33.png"> <h6>Introvert</h6> </label> </div> </div> <div class="col-md-3 col-sm-3 col-xs-12"> <div class="flatmate-preferences-box-content"> <input type="checkbox" name="flatmate-preference" id="flatmate-preference13"> <label for="flatmate-preference13"> <img src="images/apartment-icon-34.png"> <h6>Non Alcoholic</h6> </label> </div> </div> <div class="col-md-3 col-sm-3 col-xs-12"> <div class="flatmate-preferences-box-content"> <input type="checkbox" name="flatmate-preference" id="flatmate-preference14"> <label for="flatmate-preference14"> <img src="images/apartment-icon-25.png"> <h6>Self Cook</h6> </label> </div> </div> ---> <div class="clearfix"></div> <input type="submit" name="prefer" value="Submit Preference"> </form> <?php if(isset($_POST['prefer'])){ foreach( $_POST['flatment_profile'] as $tenant){ $tenant_profile .=$tenant.":"; } $tenant_profile = rtrim($tenant_profile, ":"); header('location:flatmate-list.php?pre='.$tenant_profile); } ?> </div> </div> </div> <!-- Footer include --> <?php include("footer.php"); ?> <!-- // Footer include -->
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: 678.08 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