403Webshell
Server IP : 103.234.187.230  /  Your IP : 216.73.216.216
Web Server : Apache
System : Linux lserver42043-ind.megavelocity.net 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/b2bzend/application/views/scripts/register/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/b2bzend/application/views/scripts/register/personal-details.phtml
<?php
$ownerData = $this->ownerData;
$superadminData = $this->superadminData;
$verifyData = $this->verifyData;
if (@$ownerData != array()) {
    $pdAction = 'update-personal-details';
} else {
    $pdAction = 'save-personal-details';
}
$sessionLogin_user = new Zend_Session_Namespace('sessionLogin_user');
$DefaultCountryCode = isset($sessionLogin_user->agencyDetails['DefaultCountryCode'])?$sessionLogin_user->agencyDetails['DefaultCountryCode']:'+91'; 
?>
<link rel="stylesheet" href="<?php echo $this->baseUrl('public/countrycode/style.css'); ?>" >
<h2 class="col-md-12">Complete Your Profile</h2>

<h6 class="col-md-12">Please fill your personal details below as part of your profile to complete the registration process.<br />
    <span class="small">(Kindly fill the details of an Authorised Signatory of your company)</span></h6>
<form id="AgencyPersonalDetailsForm" method="POST" autocomplete="off" enctype="multipart/form-data" action="/register/<?php echo $pdAction; ?>">
    <div class="col-md-12 border-topSolid no-padding" style="padding-top:10px;">
        <h4 class="col-md-12">Primary Contact</h4>

        <div class="col-md-4">
            <div class="form-group active">
                <label>First Name<span class="red">*</span></label>
                <input type="text" name="1_firstName" class="form-control whbg" maxlength="40" value="<?php echo (isset($ownerData['FirstName']) && !empty($ownerData['FirstName'])) ? trim($ownerData['FirstName']) : trim($verifyData['FirstName']); ?>">                
            </div>
        </div>



        <div class="col-md-4">
            <div class="form-group active">
                <label>Last Name<span class="red">*</span></label>
                <input type="text" name="1_lastName" class="form-control whbg" maxlength="40" value="<?php echo (isset($ownerData['LastName']) && !empty($ownerData['LastName'])) ? trim($ownerData['LastName']) : trim($verifyData['LastName']); ?>">                    
            </div>
        </div>


        <div class="col-md-4">
            <div class="form-group active">
                <label>Designation<span class="red">*</span></label>
                <input type="text" name="1_designation" maxlength="40" class="form-control  whbg" value="<?php echo (isset($ownerData['Designation'])) ? trim($ownerData['Designation']) : ''; ?>">
            </div>
        </div>

        <div class="col-md-4">
            <div class="form-group active">
                <label>Mobile Number<span class="red">*</span> </label>
                <?php 
                    @$contactNo = explode('-', @$ownerData['ContactNo1']);
                    $countryshortcode = Zend_Controller_Action_HelperBroker::getStaticHelper('General')->countryshortcode((isset($ownerData['countrycode']) && $ownerData['countrycode'] !=null)?str_replace('+','',trim($ownerData['countrycode'])):'91');
                
                   ?>
                <div class="input-group textfieldMain_mobile">
                    <div class="country_details">
                         <div id="iti-flag" class="iti-flag <?=($countryshortcode !=null)?$countryshortcode:'in'?>"></div>
                         <div class="iti-arrow"></div>   
                     </div>
                     <div class="country_dropdown">
                         <div class="search_country">
                            <input type="text" name="" class="txtfield form-control" placeholder="Search countries" id="countries_list">
                            <div class="search_icon"></div>
                         </div>
                         <ul class="allcountries"></ul>
                     </div>
                     <div class="input-group-input">
                         <input type="text" class=" country_code form-control codeborder" required readonly="readonly" id="CountryCode" name="1_cCode" value="<?=isset($ownerData['countrycode'])?trim($ownerData['countrycode']):$DefaultCountryCode; ?>" style="padding:0px;    border-left: 1px solid #ddd !important;">
                     </div>
                     <input type="tel" name="1_contactNo" id="mobileno" maxlength="15" value="<?php echo @$ownerData['ContactNo1'] ? @trim($ownerData['ContactNo1']) : @$verifyData['ContactInfo']; ?>" class="form-control whbg codeborder MobilevalMaxMin" style=" border-left: 1px solid #ddd !important;">
                </div>

                <!--<div class="col-md-12 no-padding"> by sabir
                    <div class="col-md-4 col-sm-4 col-xs-4 no-padding"><input type="text" name="1_cCode" class="form-control whbg" placeholder="Code"  maxlength="5" value="<?////= @$contactNo[0]; ?>"></div>  
                    <div class="col-md-8 col-sm-8 col-xs-8 no-padding"><input type="text" name="1_contactNo" class="form-control  whbg" placeholder="Number" maxlength="15" value="<?php ///echo @$contactNo2[1] ? @$contactNo2[1] : @$verifyData['ContactInfo']; ?>"></div> 
                </div> -->                 
            </div>
        </div>

        <div class="col-md-4" style="display:none;">
            <div class="form-group active">
                <label>Contact Number </label>
                    <?php 
                    @$contactNo2 = explode('-', @$ownerData['ContactNo2']);
                    $countryshortcode2 = Zend_Controller_Action_HelperBroker::getStaticHelper('General')->countryshortcode((isset($ownerData['countrycode']) && $ownerData['countrycode'] !=null)?str_replace('+','',trim($ownerData['countrycode'])):'91');
                    ?>
                <div class="input-group textfieldMain_mobile textfieldMain_mobile2">
                    <div class="country_details2">
                         <div id="iti-flag_2" class="iti-flag <?=($countryshortcode !=null)?$countryshortcode:'in'?>"></div>
                         <div class="iti-arrow"></div>   
                     </div>
                    <div class="country_dropdown2">
                         <div class="search_country">
                            <input type="text" name="" class="txtfield form-control" placeholder="Search countries" id="countries_list2">
                            <div class="search_icon"></div>
                         </div>
                         <ul class="allcountries2"></ul>
                     </div>
                     <div class="input-group-input">
                         <input type="text" class=" country_code2 form-control codeborder" required readonly="readonly" id="mobile_code" name="1_mCode" value="<?=isset($ownerData['countrycode'])?trim($ownerData['countrycode']):'+91'; ?>" style="padding:5px;">
                     </div>
                     <input type="tel" name="1_mobileNo" id="mobileno" maxlength="15" value="<?php echo @$ownerData['ContactNo2'] ? @trim($ownerData['ContactNo2']) : @$verifyData['ContactInfo']; ?>" class="form-control whbg codeborder mobile_code MobilevalMaxMin" >
                </div>
                <!--<div class="col-md-12 no-padding">
                    <div class="col-md-4 col-sm-4 col-xs-4 no-padding"><input type="text" name="1_mCode" class="form-control whbg" placeholder="Code" maxlength="5" value="<?///= @$contactNo2[0]; ?>"></div>  
                    <div class="col-md-8 col-sm-8 col-xs-8 no-padding"><input type="text" name="1_mobileNo" class="form-control" value="" placeholder="Contact Number" ></div> 
                </div> -->                 
            </div>
        </div>

        <div class="col-md-4">
            <div class="form-group active">
                <label>Email<span class="red">*</span></label>
                <div class="col-md-12 no-padding"><input type="text" name="1_emailId" maxlength="40" class="form-control" value="<?php echo trim($this->verifyData['PrimaryEmail']); ?>" readonly></div>
            </div>
        </div>
        <div class="clearfix"></div>
    <div class="col-md-4 border-topSolid no-padding1" style="padding-top:10px;">
        
        <?php //echo $ownerData['EmailIdForCustomer'].'$this->verifyData[PrimaryEmail]</br>'.$this->verifyData['PrimaryEmail'];
//        if($this->verificationSendersEmail == 'done'){
        if(empty(trim($ownerData['EmailIdForCustomer'])) || trim($ownerData['EmailIdForCustomer']) == trim($this->verifyData['PrimaryEmail']) || $this->verifyData['IsEmailIdForCustVarified'] == 1){
            $displayVerifyEmailButton = 'style="display: inline-block;"';
        } else {  
            $displayVerifyEmailButton = 'style="display: none;"';
          } ?>
        
            <div class="form-group form-group1 active">
                <label>Sender Email ID<span class="red">*</span></label>
                <?php $emailIdforCust = !empty(trim($ownerData['EmailIdForCustomer'])) ? trim($ownerData['EmailIdForCustomer']) : @$this->verifyData['PrimaryEmail'];  ?>
                <div class="col-md-12 no-padding"><input type="text" name="senderEmailId" id="senderEmailId" class="form-control  whbg" value="<?php echo $emailIdforCust; ?>" maxlength="40"> <img class="loaderimg" style="display: none;" id="loaderimg" src="<?php echo $this->baseUrl('public/images/load1.gif'); ?>"/>
                    <label id="lforsenderEmailId"  class="error success" <?php echo @$displayVerifyEmailButton; ?>><i class="fa fa-check">&nbsp;&nbsp;Verified</i></label> 
                    <?php //  if(isset($this->verificationSendersEmail)){} ?>
                    <span class="small small-text-align1">This ID will be used to send email to customer or agent for your booking.</span>
                    <div id="senderEmailIderr"></div></div>
            </div>
        

<!--        <div class="col-md-6" id="verifyEmail" <?php //echo $displayVerifyEmailButton; ?>>
            <div class="form-group form-group1">
                <label>&nbsp;</label>
                <div class="col-md-12 no-padding"><a>Verify Email</a>
             </div>
            </div>
        </div>-->
       

    </div>
            <div class="col-md-4" style="padding-top:10px; display: none;">
            <div class=" form-group form-group1 active">
                <label class="no-padding">Your Photo ID Proof<span class="red">*</span></label>
               
<?php
//$photoIdProofArray = unserialize(PHOTO_ID_PROOF); 
$photoIdProofArray = Zend_Controller_Action_HelperBroker::getStaticHelper('General')->getMasterDocumentType(10);
?>
                    <select name="photoIdProof" id="photoIdProof" class="demo-default select-country" placeholder="Select" <?php echo @$ownerData['DocType'] ? 'disabled' : '' ?>>
                        <option value="">Select Option</option>
<?php
if (!empty($photoIdProofArray) ) {
    foreach ($photoIdProofArray as $proof) {
        ?>
                                <option value="<?php echo $proof['DocType'] . '_' . $proof['Title']; ?>" <?php echo ($proof['DocType'] == @$ownerData['DocType']) ? 'selected' : ''; ?>><?php echo $proof['Title']; ?></option>
                                <?php
                            }
                        }
                        ?>
                    </select>
                    <div id="errorPlacement1"></div>
                </div> 
                </div> 
                <div class="col-md-4 photoIdProDiv" style="display: none;"> 
<?php if (@$ownerData['DocType'] != '') { ?>
                    <a class="clickhereview" href="<?php echo $this->baseUrl('public/upload/media/agency/' . @trim($ownerData['AgencySysId']) . '/' . trim(@$ownerData['FilesWithTitle'])); ?>" target="_blank">Click Here To View</a>
                    <?php } else { ?>
                        <input id="photoIdProofFile" name="photoIdProofFile" type="file" class="file whbg" showPreview=false>
                        <span class="small">Only allows file types of GIF, PNG, JPG, JPEG and PDF.</span>
                    <?php } ?>

                    <div id="errorPlacement2"></div>
                </div>  

 
 </div>

    <div class="clearfix"> </div>


    <div class="col-md-12">    
        <div class="form-group form-group1 text-right">
            <!--<button class="submit btn btn-info" type="reset" onclick="registration_process(3);" name="reset">Save &amp; Exit</button>--> 
            <button class="submit btn btn-primary" type="submit" name="<?php echo (@$ownerData != array()) ? 'edit' : 'add'; ?>" id="submitbutton">Continue</button> 
        </div>
    </div>
    <?php if($ownerData['UserSysId']!=''){ ?>
        <input type="hidden" id="primaryContactId" name="primaryContactId" value="<?php echo base64_encode($ownerData['UserSysId']); ?>"/>
    <?php } ?>
    
   <?php  if(isset($superadminData['UserSysId']) && !empty($superadminData['UserSysId'])){ ?>
       <input type="hidden" id="operationalContactId" name="operationalContactId" value="<?php echo base64_encode($superadminData['UserSysId']); ?>"/> 
   <?php } ?>
    <input type="hidden" name="AgencyId" value="<?php echo $this->verifyData['AgencySysId']; ?>"/>
    <input type="hidden" name="regEmail" id="regEmail" value="<?php echo $this->verifyData['PrimaryEmail']; ?>"/>
    <input type="hidden" id="IsEmailIdForCustVarified" value="<?php echo $this->verifyData['IsEmailIdForCustVarified'] ?>"/>
    <input type="hidden" id="OldIdforCustomer" value="<?php echo trim($ownerData['EmailIdForCustomer']);?>"/>
</form>
<!--Advance Radio and checkbox demo start-->
<script src="<?php echo $this->baseUrl('public/assets/js/pages/selectTag.js'); ?>"></script>
<?php if(!empty($ownerData['DocType'])){ ?>
<script>
$(document).ready(function () {
//    alert('21312');
   $('.selectize-input').css('background-color','#eeee !important;'); 
});
</script>
<?php } ?>
<?php
 if(is_array($superadminData) && sizeof($superadminData) != 0){ //print_r($superadminData); ?>
<script>
    $('#isSameAsPrimaryContact,#isSameAsPrimaryContact1').attr('disabled', 'true');
</script>
<?php } ?>
<script>
    /*$("#file-1").fileinput({'showUpload':false, 'previewTemplates':false}); */
</script>

<!-- Script For Icheck -->
<script src="<?php echo $this->baseUrl('public/assets/js/icheck.min.js'); ?>"></script>
<!-- Script For Icheck -->
<!--Advance Radio and checkbox demo start-->
<script src="<?php echo $this->baseUrl('public/assets/js/pages/checkboxRadio.js'); ?>"></script>

<link rel="stylesheet" href="<?php echo $this->baseUrl('public/assets/css/plugins/fileinput.min.css'); ?>">

<!--include custom js functions-->
<script src="<?php echo $this->baseUrl('public/js/registrationFunctions.js'); ?>"></script>
<script src="<?php echo $this->baseUrl('public/countrycode/script.js?rv=1144'); ?>"></script>
<script>
    $("#photoIdProofFile").fileinput({
        showUpload: false,
        showRemove: false,
        showUploadedThumbs: false
    });
</script>
<style>
    .file-preview{
        display:none;
    }
    .error{
        /*bottom: inherit;*/
    }
    #senderEmailIderr label{
               position: relative!important;
               bottom: inherit;
    }
     label.success,#loaderimg {
  position: relative;
  top: -25px;
  right: 10px;
  float: right;
  width: 16px;
  height: 16px;
  display: inline-block;
  color:#449D44;
}
</style>

<script>

    $(document).ready(function () {

        $('#isSameAsPrimaryContact1').on('ifChecked', function () {
            $(".corpadd").hide();
        });

        $('#isSameAsPrimaryContact').on('ifChecked', function () {
            $(".corpadd").show();
        });



        $('#photoIdProof').on('change', function () {
            $('#errorPlacement1').html('');
            $(".photoIdProDiv").show();
        });

    });
    
function validateEmail(){
//        var sendersEmail = $('#senderEmailId').val();
            var formData = $("#AgencyPersonalDetailsForm").serialize();
    //alert(formData);
    $.ajax({
        url: '/register/send-senders-email',
        data: formData,
        method: 'POST',
        type: 'json',
        error: function () {

        },
        beforeSend: function () {
            $('#loaderimg').css('display', 'block');
        },
        success: function (result) {
            if(result == 1){
            alert('A verification email is sent to your email id. Please check your email.');
            }  else if(result == 2){
              alert('There has been error in sending email, Please try again later.'); 
            }else {
             alert('There has been error, Please try again later.'); 
            }
            $('#loaderimg').css('display', 'none');
        }
    });
   }
</script>












Youez - 2016 - github.com/yon3zu
LinuXploit