 
 <?php 
 include "includes/header.php";

$servername = "localhost";
$username = "graveprm_paraapp";
$password = "0m=s^TD[a8G3";
$db = "graveprm_paraapp";

// Create connection
$conn = new mysqli($servername, $username, $password , $db);

// Check connection
$sql = "SELECT * FROM `content` WHERE id='". $_GET['id'] ."'";
 $result = $conn->query($sql);

  if ($result) {
    $return = array();
    while($row = $result->fetch_assoc()) {
      $return = $row;
    $data_value = json_decode(base64_decode($return['content'])); // Added by developer
    $data_img =  $return['company_attachment'];
   
    // var_dump($data_value);
    }
  } else {
    $return = array();
  }


$conn->close();


?>
  
  <!-- Form is filled -->
  <section class="girl_rbg">
        <div class="employment_form">
            <div class="container">
                <div class="reserve_form">
                    <div class="row">
                        <div class="col-md-12">
                            <div class="allYourSec">
                                <h1>Content Writing Client Questionnaire</h1>
                                <!--<p> Please take your time and answer ALL of the questions. Web design and development is a collaborative process and needs your involvement in all stages. </p>-->
                            </div>
                        </div>
                    </div>
                    <!-- Form Start -->
                    <form action="javascript:void(0)" id="web-form" class="form" method="post" enctype="multipart/form-data">
                      <input type="hidden" name="form_id" value="59183">
                        <div class="row">
                            <div class="col-md-12">
                                <div class="panel-group" id="accordion">
                                    <div class="panel panel-default">
                                        <div class="col-md-6">
                                            <div class="panel-heading">
                                                <h4 class="panel-title">
                                                    Company</h4>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="panel-heading">
                                                <h4 class="panel-title">
                                                    Contact</h4>
                                            </div>
                                        </div>
                                        <div id="collapse1" class="panel-collapse collapse in">
                                            <div class="panel-body">
                                            <div class="row">
                                                    <div class="col-md-6">
                                                        <div class="form-group">
                                                            <label>Name<p class="text-danger">*</p></label>
                                                            <input type="text" name="company[company_name]" class="form-control"
                                                                   placeholder=""
                                                                   value="<?php echo $data_value->company_name??null;  ?>" required>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-6">
                                                        <div class="form-group">
                                                            <label>Business Name <p class="text-danger">*</p></label>
                                                            <input type="text" name="company[company_business]" class="form-control"
                                                                   placeholder=""
                                                                   value="<?php echo $data_value->company_business??null;  ?>" required>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                   
                                                    <div class="col-md-6">
                                                        <div class="form-group">
                                                            <label>Email <p class="text-danger">*</p></label>
                                                            <input type="email" name="company[company_email]" class="form-control"
                                                                   placeholder=""
                                                                   value="<?php echo $data_value->company_email??null;  ?>" required>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-6">
                                                        <div class="form-group">
                                                            <label>ZIP / Postal Code <p class="text-danger">*</p></label>
                                                            <input type="text" name="company[company_zip]" class="form-control"
                                                                   placeholder=""
                                                                   value="<?php echo $data_value->company_zip??null;  ?>" required>
                                                        </div>
                                                    </div>
                                                </div>
                                               
                                                <div class="row radio_area">
                                                    <div class="col-md-12">
                                                        <h4>What services do your clients/prospects most want and need?</h4>
                                                        <textarea name="company[company_services]" class="form-control" placeholder="" rows="10" data-error="Type your message..." aria-required="true" required><?php echo $data_value->company_services??null;  ?></textarea>
                                                        
                                                    </div>
                                                    <div class="col-md-12">
                                                        <h4>What are the core strengths of your organization? </h4>
                                                        <textarea name="company[company_strengths]" class="form-control" placeholder="" rows="10" data-error="Type your message..." aria-required="true" required><?php echo $data_value->company_strengths??null;  ?></textarea>
                                                        <!--<input type="text" name="company[company_domain]" class="form-control" placeholder="www.demo.com" value="">-->
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="panel panel-default">
                                    <div class="panel-heading">
                                        <!--<h4 class="panel-title">-->
                                        <!--    Tell me about Your Company-->
                                        <!--</h4>-->

                                        <div class="col-md-12 panel-body">
                                            <h4> How do people feel after they use your services? <span class="text-danger">*</span></h4>
                                            <textarea name="company[company_people_feel]" class="form-control" placeholder="" rows="10" data-error="Type your message..." aria-required="true" required><?php echo $data_value->company_people_feel??null;  ?></textarea>
                                        </div>

                                    </div>
                                    
                                    <div class="panel-heading">
                                        <!--<h4 class="panel-title">-->
                                        <!--    Tell me about Your Company-->
                                        <!--</h4>-->

                                        <div class="col-md-12 panel-body">
                                            <h4> What are your customers trying to accomplish by using your products/services?  <span class="text-danger">*</span></h4>
                                            <textarea name="company[company_accomplish]" class="form-control" placeholder="" rows="10" data-error="Type your message..." aria-required="true" required><?php echo $data_value->company_accomplish??null;  ?></textarea>
                                        </div>

                                    </div>
                                    
                                    <div class="panel-heading">
                                        <!--<h4 class="panel-title">-->
                                        <!--    Tell me about Your Company-->
                                        <!--</h4>-->

                                        <div class="col-md-12 panel-body">
                                            <h4> Describe your typical customer (needs, desires, preferences, fears, pain, etc.). <span class="text-danger">*</span></h4>
                                            <textarea name="company[company_typical_customer]" class="form-control" placeholder="" rows="10" data-error="Type your message..." aria-required="true" required><?php echo $data_value->company_typical_customer??null;  ?></textarea>
                                        </div>

                                    </div>
                                    
                                    <div class="panel-heading">
                                        <!--<h4 class="panel-title">-->
                                        <!--    Tell me about Your Company-->
                                        <!--</h4>-->

                                        <div class="col-md-12 panel-body">
                                            <h4> Who is your competition? (please list at least 3-5 competitors)  <span class="text-danger">*</span></h4>
                                            <textarea name="company[company_competition]" class="form-control" placeholder="" rows="10" data-error="Type your message..." aria-required="true" required><?php echo $data_value->company_competition??null;  ?></textarea>
                                        </div>

                                    </div>
                                    
                                    <div class="panel-heading">
                                        <!--<h4 class="panel-title">-->
                                        <!--    Tell me about Your Company-->
                                        <!--</h4>-->

                                        <div class="col-md-12 panel-body">
                                            <h4> What sets your company apart from others in your industry? Is there a unique aspect to your company that you could use as a point of differentiation? <span class="text-danger">*</span></h4>
                                            <textarea name="company[company_industry]" class="form-control" placeholder="" rows="10" data-error="Type your message..." aria-required="true" required><?php echo $data_value->company_industry??null;  ?></textarea>
                                        </div>

                                    </div>
                                    
                                    <div class="panel-heading">
                                        <!--<h4 class="panel-title">-->
                                        <!--    Tell me about Your Company-->
                                        <!--</h4>-->

                                        <div class="col-md-12 panel-body">
                                            <h4>  Do you have an existing tagline, slogan or brand statement? If not, would you like to create one. <span class="text-danger">*</span></h4>
                                            <textarea name="company[company_existing_tagline]" class="form-control" placeholder="" rows="10" data-error="Type your message..." aria-required="true" required><?php echo $data_value->company_existing_tagline??null;  ?></textarea>
                                        </div>

                                    </div>
                                    
                                    <div class="panel-heading">
                                        <!--<h4 class="panel-title">-->
                                        <!--    Tell me about Your Company-->
                                        <!--</h4>-->

                                        <div class="col-md-12 panel-body">
                                            <h4> How do prospects find you? <span class="text-danger">*</span></h4>
                                            <textarea name="company[company_prospects]" class="form-control" placeholder="" rows="10" data-error="Type your message..." aria-required="true" required><?php echo $data_value->company_prospects??null;  ?></textarea>
                                        </div>

                                    </div>
                                    
                                    <div class="panel-heading">
                                        <!--<h4 class="panel-title">-->
                                        <!--    Tell me about Your Company-->
                                        <!--</h4>-->

                                        <div class="col-md-12 panel-body">
                                            <h4> What are the central keywords/trigger words that prospects might use to find you online? (I.e. what words would your target audience use to describe the key products/services/information you provide?) <span class="text-danger">*</span></h4>
                                            <textarea name="company[company_central_keywords]" class="form-control" placeholder="" rows="10" data-error="Type your message..." aria-required="true" required><?php echo $data_value->company_central_keywords??null;  ?></textarea>
                                        </div>

                                    </div>
                                </div>
                                
                                
                                
                                <div class="panel panel-default">
                                    
                                    <div id="collapse5" class="panel-collapse collapse in">
                                        <div class="panel-body">
                                            <div class="row">
                                                	<div class="col-md-12">
												   <div class="attachmenttext">
                                                  <p>Download</p>
                                                 <?php 
                                                  $data_img = json_decode($return['company_attachment']);
                                                  foreach($data_img as  $key => $value){ ?>
                                                 
                                                 <a href="./images/uploads/<?php echo $value; ?>" download>Attachment Download</a>
                                                
                                               
                                               <?php } ?>
                                               
                                               </div>
												</div>
                                            </div>
                                            
                                            <div class="row">
													<div class="col-md-12">
														<div class="btn_submit text-center" style="display:none;">
															<button class="btn btn-default" type="submit">Submit
															</button>
														</div>
													</div>
												</div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </form>
                    <!-- Form End -->
                </div>
            </div>
        </div>
    </section>
  
  


   <?php include "includes/footer.php"?>