JezK
Edit File: formDownload.php
<?php // phpinfo(); // ini_set('display_errors', 1); // ini_set('display_startup_errors', 1); // error_reporting(E_ALL); session_start(); //include('MPDF57/mpdf.php'); include('vendor/autoload.php'); //echo 'ok'; exit; //$userID = 2; $userID = isset($_REQUEST['id'])?$_REQUEST['id']:""; $formSubmissionID1 = isset($_REQUEST['formSubmissionID'])?$_REQUEST['formSubmissionID']:""; if($userID == "") { echo "<script>location.replace('page1.php')</script>"; } $_SESSION['downloadUserID'] = $userID; //include("app/main.php"); include("app/getUserDetailsApp.php"); $data = '<html class="no-js" lang=""> <body> <header> <div class="headerContainer col-md-12"> <div class="headText col-md-2 col-xs-2 "><img src="images/logo.png"></div> <div class="headClr col-md-8 col-xs-8">SLI Submission Form</div> </div> </header> <div class="container main" > <div class="row"> <div class="form-horizontal row formContainer-p " > <!--Page1--> <div class="col-md-12 col-xs-12 col-sm-12"> <section> <div class="form-group"> <div class="col-md-3 col-sm-4 col-xs-4" for="SliName">SLI Submission ID :</div> <div class="col-md-3 col-sm-4 col-xs-6">'.$formSubmissionID.'</div> </div> <div class="form-group"> <div class="col-md-3 col-sm-4 col-xs-4" for="SliName">Name of the SLI :</div> <div class="col-md-3 col-sm-4 col-xs-6">'.$sliName.'</div> </div> </div> <div class="form-group"> <div class="col-md-3 col-sm-4 col-xs-4" for="address" >Address Line 1 :</div> <div class="col-md-3 col-sm-4 col-xs-6">'.$useraddress.'</div> </div> <div class="form-group"> <div class="col-md-3 col-sm-4 col-xs-4" for="city">Address Line 2 :</div> <div class="col-md-3 col-sm-4 col-xs-6">'.$city.'</div> </div> <div class="form-group"> <div class="col-md-3 col-sm-4 col-xs-4" for="city">Address Line 3 :</div> <div class="col-md-3 col-sm-4 col-xs-6">'.$addressLine3.'</div> </div> <div class="form-group"> <div class="col-md-3 col-sm-4 col-xs-4" for="state" >State :</div> <div class="col-md-3 col-sm-4 col-xs-6">'.$stateName.'</div> </div> <div class="form-group"> <div class="col-md-3 col-sm-4 col-xs-4" for="district">District :</div> <div class="col-md-3 col-sm-4 col-xs-6">'.$districtName.'</div> </div> <div class="form-group"> <div class="col-md-3 col-sm-4 col-xs-4" for="phoneNumber">Phone Number :</div> <div class="col-md-3 col-sm-4 col-xs-6">'.$mobileNumber.'</div> </div> <div class="form-group"> <div class="col-md-3 col-sm-4 col-xs-4" for="faxNumber">Fax Number :</div> <div class="col-md-3 col-sm-4 col-xs-6">'.$fax.'</div> </div> <div class="form-group"> <div class="col-md-3 col-sm-4 col-xs-4" for="email">Email :</div> <div class="col-md-3 col-sm-4 col-xs-6">'.$email.'</div> </div> <div class="form-group"> <div class="col-md-3 col-sm-4 col-xs-4" for="website">Website :</div> <div class="col-md-3 col-sm-4 col-xs-6">'.$website.'</div> </div> <div class="form-group"> <div class="col-md-3 col-sm-4 col-xs-4" for="pincode">Pincode :</div> <div class="col-md-3 col-sm-4 col-xs-6">'.$zipcode.'</div> </div> <div class="form-group"> <div class="col-md-3 col-sm-4 col-xs-4" for="constitution">Constitution :</div> <div class="col-md-3 col-sm-4 col-xs-6">'.$constitutionName.'</div> </div> </section> <section> <div class="col-md-12 col-xs-12 col-sm-12 removePadding"> <h3 class=" col-md-11 removePadding ">Details Of Registration :</h3> </div> <div class="col-md-12 col-xs-12 col-sm-12table-responsive removePadding"> <table class="table table-bordered cs-table"> <thead> <tr> <th>Act of Registration</th> <th>Date & Place Of Registration</th> <th>Registration Number</th> <th>Validity Period</th> </tr> </thead> <tbody class="input_fields_wrap"> '.$resgistrationDetailsView2.' </tbody> </table> </div> </section> <section> <div class=""> <h3 class="">Activities of the Business Entity</h3> <div class="col-md-12 col-xs-12 col-sm-12" style="padding:10px 20px"> <div class="form-group"> <div class="col-xs-2 col-md-2" for="existing">Existing :</div> <div class="col-xs-6 col-md-6">'.$existing.'</div> </div> <div class="form-group"> <div class="col-xs-2 col-md-2" for="proposed">Proposed :</div> <div class="col-xs-6 col-md-6"> '.$proposed.' </div> </div> </div> </section> <section> <div class="col-md-12 removePadding"> <h3 class="">Whether Registered under Foreign Contribution (Regulation) Act, 1976(FCRA)? </h3> <div class="radioCheck">'.$isFCRAName1.'</div> <div class="radioCheck">'.$isFCRAName2.'</div> </div> '.$FCRADisplayDetails2.' </section> <!--<section> <div class="col-md-12 removePadding"> <h3 class="">Whether a *Permanent Account Number (PAN) obtained from Competent Authority? </h3> <div class="radioCheck">'.$isPANName1.'</div> <div class="radioCheck">'.$isPANName2.'</div> </div> </section>--> <div class="form-group col-xs-12"> <div class="col-xs-4" for="pan"><b>PAN Number :</b></div> <div class="col-xs-6">'.$pan.'</div> </div> </div><!--end formContainer--> </div> <!--Page2--> <div class="col-md-12 col-sm-12 removePadding "> <section> <div class=""> <h3 class="">Details of the Board meeting held in last three years</h3> <div class="col-md-12 col-sm-12 removePadding table-responsive"> <table class="table table-bordered cs-table"> <thead> <tr> <th>Year</th> <th>Count of Board Members</th> <th>No. of Board meetings held</th> <th>Average Attendance(Count)</th> </tr> </thead> <tbody class="input_fields_wrap2"> '.$boardMeeting1DetailsView2.' </tbody> </table> </div> </div> </section> <h3>Management</h3> <section> <div class="col-md-12 col-xs-12 col-sm-12 removePadding"> <h3 class="">Details of the Board of trustees/Board of directors/Proprietors/Partners/Authorised Signatories/Principal Share Holders</h3> </div> <div class="col-md-12 col-sm-12 table-responsive removePadding"> <table class="table table-bordered cs-table table-responsive"> <thead> <tr> <th>Name</th> <th>Designation</th> <th>Date of Appointment</th> <th>Address</th> <th>Educational Qualification</th> <th>Experience in years</th> <th>Experience Details</th> <th>Association with any other institution</th> <th>Relationship with other Board Members</th> <th>Authorize signatory </th> </tr> </thead> <tbody class="input_fields_wrap1"> '.$managementDetailsView2.' </tbody> </table> </div> </section> <section> <div class="col-md-12 col-sm-12 removePadding"> <h3 class="">Profile of the Key Functionary</h3> </div> <div class="table-responsive col-md-12 col-xs-12 col-sm-12 removePadding"> <table class="table table-bordered cs-table table-responsive"> <thead> <tr> <th>Name</th> <th>Designation</th> <th>Qualification</th> <th>Experience</th> <th>Date of appointment</th> <th>Details of association with any other institution</th> </tr> </thead> <tbody class="input_fields_wrap3"> '.$ceoDetailsView2.' </tbody> </table> </div> </section> <section> <div class="'.$sharedBlockShow.'"> <div class="col-md-12 col-sm-12 removePadding"> <h3 class="">Share holding Pattern</h3> </div> <div class="col-md-12 col-xs-12 col-sm-12 removePadding table-responsive"> <table class="table table-bordered cs-table"> <thead> <tr> <th>Name of the share holder</th> <th>No. of shares</th> <th>Face value</th> <th>Premium</th> <th>Percentage of share holding</th> </tr> </thead> <tbody class="input_fields_wrap4"> '.$shareDetailsView2.' </tbody> </table> </div> </div> </section> </div><!--end formContainer--> <!--Page3--> <div class="col-md-12 col-sm-12 removePadding"> <h3>Staffing Pattern</h3> <h3 class="">Please give details of organizational structure</h3> <!--<div class="col-md-12 col-sm-12 removePadding"> <textarea style="width:100%" id="structuralDetails" name="structuralDetails" rows="7" placeholder="Organizational Structure Details" >'.$structuralDetails.'</textarea> </div>--> <div class="col-md-12 removePadding"> <div class="col-md-12 table-responsive removePadding"> <table class="table table-bordered cs-table table-responsive"> <thead> <tr> <th>Year</th> <th>Office Staff (No.)</th> <th>Supervisory Staff (No.)</th> <th>Credit/loan officer</th> <th>Field Staff (No.)</th> <th>Total Staff (No.)</th> </tr> </thead> <tbody class="input_fields_wrap1"> '.$boardMeeting2DetailsView2.' </tbody> </table> </div> </div> <div class=""> <div class="col-md-12 col-sm-12 removePadding"> <h3 class="">Details of Infrastructure available for the activity</h3> <table class="table table-bordered cs-table"> <thead> <tr> <th>Type of infrastructur</th> <th>Description</th> <th>Approximate cost of Acquisition</th> <th>Year of Acquisition</th> </tr> </thead> <tbody class="input_fields_wrap4"> '.$infrastructureDetailsView2.' </tbody> </table> </div> </div> </div><!--end formContainer--> <!--page4--> <div class="col-md-12 col-sm-12 removePadding "> <section> <div class="'.$rawMaterialBlock.'"> <h3>Details of raw material/commodities consumed/procured/traded in past 3 years</h3> <table class="table table-bordered cs-table"> <thead> <tr> <th>S.No</th> <th>Raw Material</th> <th>'.$previousYear3.'</th> <th>'.$previousYear2.'</th> <th>'.$previousYear1.'</th> </tr> </thead> <tbody class="input_fields_wrap4"> '.$rawMaterialDetailsView2.' <tr> <td> <div class="tableInput"></div> </td> <td> <div class="tableInput">Total</div> </td> <td> <div class="tableInput">'.$totalRawY3.'</div> </td> <td> <div class="tableInput">'.$totalRawY2.'</div> </td> <td> <div class="tableInput">'.$totalRawY1.'</div> </td> </tr> </tbody> </table> </div> </section> <section class="'.$rawMaterialBlock.'"> <h3>A brief notes on the rawmaterials used/commodities traded in sources of procurement to be furnished</h3> <textarea style="width:100%" name="rawMaterialNotes" id="rawMaterialNotes" rows="7" >'.$rawMaterialNotes.'</textarea> </section> <section class="removePadding"> <div class="'.$productsBlock.'"> <div class="removePadding " id="block1"> <h3 removePadding>Details of production for past 3years (Rs)</h3> <table class="table table-bordered cs-table"> <thead> <tr> <th>S.No</th> <th>Product Total</th> <th>'.$previousYear3.'</th> <th>'.$previousYear2.'</th> <th>'.$previousYear1.'</th> </tr> </thead> <tbody class="input_fields_wrap4"> '.$productionDetailsView2.' </tbody> </table> </div> </div> </section> <section class="removePadding"> <div class="'.$salesBlock.'"> <div class="removePadding " > <h3>Sales Particulars for past 3years (Rs)</h3> <table class="table table-bordered cs-table"> <thead> <tr> <th>S.No</th> <th>Product Total</th> <th>'.$previousYear3.'</th> <th>'.$previousYear2.'</th> <th>'.$previousYear1.'</th> </tr> </thead> <tbody class="input_fields_wrap4"> '.$salesDetailsView2.' </tbody> </table> </div> </div> </section> </div><!--end formContainer--> <!--page5--> <div class="col-md-12 col-sm-12 text-cneter removePadding"> <section class="removePadding"> <div class="col-md-12 col-sm-12 detailsBlock removePadding"> <h3>Gross Profit for 3 years (Rs)</h3> <table class="table table-bordered cs-table"> <thead> <tr> <th>S.No</th> <th>Particulars</th> <th>'.$previousYear3.'</th> <th>'.$previousYear2.'</th> <th>'.$previousYear1.'</th> </tr> </thead> <tbody class="input_fields_wrap4"> <tr> <td> <div class="tableInput">1.</div> </td> <td> <div class="tableInput">Total Income</div> </td> <td> <div class="tableInput">'.$grossIncomeY3.'</div> </td> <td> <div class="tableInput">'.$grossIncomeY2.'</div> </td> <td> <div class="tableInput">'.$grossIncomeY1.'</div> </td> </tr> <tr> <td> <div class="tableInput">2.</div> </td> <td> <div class="tableInput">Total Expenditure</div> </td> <td> <div class="tableInput">'.$expenditureY3.'</div> </td> <td> <div class="tableInput">'.$expenditureY2.'</div> </td> <td> <div class="tableInput">'.$expenditureY1.'</div> </td> </tr> </tbody> </table> </div> </section> <section> <div class="col-md-12 col-sm-12 detailsBlock removePadding" > <h3>Cash Flow Statement for past 3 years (Rs)</h3> <table class="table table-bordered cs-table"> <thead> <tr> <th>S.No</th> <th>Particulars</th> <th>'.$previousYear3.'</th> <th>'.$previousYear2.'</th> <th>'.$previousYear1.'</th> </tr> </thead> <tbody class="input_fields_wrap4"> <tr> <td> <div class="tableInput">1.</div> </td> <td> <div class="tableInput">Net Worth</div> </td> <td> <div class="tableInput">'.$netWorthY3.'</div> </td> <td> <div class="tableInput">'.$netWorthY2.'</div> </td> <td> <div class="tableInput">'.$netWorthY1.'</div> </td> </tr> <tr> <td> <div class="tableInput">2.</div> </td> <td> <div class="tableInput">Net sales</div> </td> <td> <div class="tableInput">'.$salesY3.'</div> </td> <td> <div class="tableInput">'.$salesY2.'</div> </td> <td> <div class="tableInput">'.$salesY1.'</div> </td> </tr> <tr> <td> <div class="tableInput">3.</div> </td> <td> <div class="tableInput">Net Profit</div> </td> <td> <div class="tableInput">'.$netProfitY3.'</div> </td> <td> <div class="tableInput">'.$netProfitY2.'</div> </td> <td> <div class="tableInput">'.$netProfitY1.'</div> </td> </tr> <tr> <td> <div class="tableInput">4.</div> </td> <td> <div class="tableInput">Depreciation</div> </td> <td> <div class="tableInput">'.$depriciationY3.'</div> </td> <td> <div class="tableInput">'.$depriciationY2.'</div> </td> <td> <div class="tableInput">'.$depriciationY1.'</div> </td> </tr> <tr> <td> <div class="tableInput">5.</div> </td> <td> <div class="tableInput">Interest</div> </td> <td> <div class="tableInput">'.$interestY3.'</div> </td> <td> <div class="tableInput">'.$interestY2.'</div> </td> <td> <div class="tableInput">'.$interestY1.'</div> </td> </tr> </tbody> </table> </div> '.$futureEstimations.' </section> <section> <div class="col-md-12 col-sm-12 detailsBlock removePadding"> <h3>Details of Loan availed & repaid in past 3 years</h3> <table class="table table-bordered cs-table"> <thead> <tr> <th>S.No</th> <th>Particulars</th> <th>'.$previousYear3.'</th> <th>'.$previousYear2.'</th> <th>'.$previousYear1.'</th> </tr> </thead> <tbody class="input_fields_wrap4"> <tr> <td> <div class="tableInput">1.</div> </td> <td> <div class="tableInput">Loan Availed</div> </td> <td> <div class="tableInput">'.$loanAvailedY3.'</div> </td> <td> <div class="tableInput">'.$loanAvailedY2.'</div> </td> <td> <div class="tableInput">'.$loanAvailedY1.'</div> </td> </tr> <tr> <td> <div class="tableInput">2.</div> </td> <td> <div class="tableInput">Loan Repaid</div> </td> <td> <div class="tableInput">'.$loanRepaidY3.'</div> </td> <td> <div class="tableInput">'.$loanRepaidY2.'</div> </td> <td> <div class="tableInput">'.$loanRepaidY1.'</div> </td> </tr> <tr> <td> <div class="tableInput"></div> </td> <td> <div class="tableInput">Balance Outstanding</div> </td> <td> <div class="tableInput">'.$totalLoanY3.'</div> </td> <td> <div class="tableInput">'.$totalLoanY2.'</div> </td> <td> <div class="tableInput">'.$totalLoanY1.'</div> </td> </tr> </tbody> </table> <div class="col-md-12"> <div style="width:30%;float:left;clear:both;">Amount of Loan (Rs.) :</div> <div style="width:60%;float:left;">'. $loanAmount.'</div> </div> <div class="col-md-12" style="padding-top:20px;"> <div style="width:30%;float:left;clear:both;">Amount of Loan Purpose :</div> <div style="width:65%;float:left;">'.$loanPurpose.'</div> </div> </section> <section> </section> </div><!--end formContainer--> <!--page6--> <div class="removePadding"> <section class="removePadding"> <div class="col-md-12 col-sm-12 removePadding"> <h3>Details of Bank Accounts</h3> <table class="table table-bordered cs-table"> <thead> <tr> <th>S.No</th> <th>IFSC Code</th> <th>Bank Name</th> <th>Branch Name</th> <th>Account Number</th> </tr> </thead> <tbody class="input_fields_wrap4"> <tr> <td> <div class="tableInput">1.</div> </td> <td> <div class="tableInput">'.$ifsc.'</div> </td> <td> <div class="tableInput">'.$bankName.'</div> </td> <td> <div class="tableInput">'.$branch.'</div> </td> <td> <div class="tableInput">'.$accountNumber.'</div> </td> </tr> </tbody> </table> </div> </section> <div style="clear:both;"></div> <section style="padding-top: 70px;" class="removePadding ssBlock col-xs-12" style="page-break-before: always;"> <div class=""> <div class="col-xs-6 text-center signatureBlock removePadding" align="center"> <div class="sp" align="center">Space for photo</div> <div class="sg" align="center">Name & Designation</div> </div> <div class="col-xs-6 text-center signatureBlock removePadding" align="center"> <div class="sp" align="center">Space for photo</div> <div class="sg" align="center">Name & Designation</div> </div> </div> <div class="signatureContent1"> <p>Signature of the authorized signatory (ies) whose photo is affixed above (sign across the photo)</p> <p>We hereby certify that the information furnished by us is correct. In the event of any of the information furnished by us is found to be false, we agree to be liable for any action under the law of the land.</p> <p>Place:</p> <p>Date:</p> <p align="right" style="padding-right: 30%;">Seal</p> </div> </section> </div><!--end formContainer--> </div> </div> </div> </body> <link rel="stylesheet" href="css/style.css"> <style> .ssBlock{ border:3px solid #000; padding:10px 10px; } .signatureContent1{ font-weight:bold; width: 100%; clear: both; } h3 { font-size: 17px !important; color: #333 !important; font-weight:bold; } .col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9 { position: relative; min-height: 1px; padding-right: 15px; padding-left: 15px } .col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9 { float: left } .col-xs-12 { width: 100% } .col-xs-11 { width: 91.66666667% } .col-xs-10 { width: 83.33333333% } .col-xs-9 { width: 75% } .col-xs-8 { width: 66.66666667% } .col-xs-7 { width: 58.33333333% } .col-xs-6 { width: 49% } .col-xs-5 { width: 41.66666667% } .col-xs-4 { width: 33.33333333% } .col-xs-3 { width: 25% } .col-xs-2 { width: 16.66666667% } .col-xs-1 { width: 8.33333333% } .col-xs-pull-12 { right: 100% } .col-xs-pull-11 { right: 91.66666667% } .col-xs-pull-10 { right: 83.33333333% } .col-xs-pull-9 { right: 75% } .col-xs-pull-8 { right: 66.66666667% } .col-xs-pull-7 { right: 58.33333333% } .col-xs-pull-6 { right: 50% } .col-xs-pull-5 { right: 41.66666667% } .col-xs-pull-4 { right: 33.33333333% } .col-xs-pull-3 { right: 25% } .col-xs-pull-2 { right: 16.66666667% } .col-xs-pull-1 { right: 8.33333333% } .col-xs-pull-0 { right: auto } .col-xs-push-12 { left: 100% } .col-xs-push-11 { left: 91.66666667% } .col-xs-push-10 { left: 83.33333333% } .col-xs-push-9 { left: 75% } .col-xs-push-8 { left: 66.66666667% } .col-xs-push-7 { left: 58.33333333% } .col-xs-push-6 { left: 50% } .col-xs-push-5 { left: 41.66666667% } .col-xs-push-4 { left: 33.33333333% } .col-xs-push-3 { left: 25% } .col-xs-push-2 { left: 16.66666667% } .col-xs-push-1 { left: 8.33333333% } .col-xs-push-0 { left: auto } .col-xs-offseeplace input with div in csst-12 { margin-left: 100% } .col-xs-offset-11 { margin-left: 91.66666667% } .col-xs-offset-10 { margin-left: 83.33333333% } .col-xs-offset-9 { margin-left: 75% } .col-xs-offset-8 { margin-left: 66.66666667% } .col-xs-offset-7 { margin-left: 58.33333333% } .col-xs-offset-6 { margin-left: 50% } .col-xs-offset-5 { margin-left: 41.66666667% } .col-xs-offset-4 { margin-left: 33.33333333% } .col-xs-offset-3 { margin-left: 25% } .col-xs-offset-2 { margin-left: 16.66666667% } .col-xs-offset-1 { margin-left: 8.33333333% } .col-xs-offset-0 { margin-left: 0 } .shareDetailsBlock,.rawMaterialBlock,.productsBlock,.salesBlock{ display:none !important; } </style> </script> </html>'; //echo $data;exit; $mpdf = new mPDF(); $mpdf->WriteHTML($data); //$mpdf->Output('MyPDF.pdf', 'D'); $content = $mpdf->Output('sliForm.pdf', 'D'); /*echo $content = chunk_split(base64_encode($content));exit; $uid = md5(uniqid(time())); $mpdf->Output(); exit;*/ ?>