
<?php 

include 'includes/header.php';


$servername = "localhost";
$username = "codesite_codesitex";
$password = "~O25D_)lgLc4VL7H";
$db = "codesite_codesitex";

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


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

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

$conn->close();


?>


<style>
    .logoimg img {
   display: none;
}
.reserve_form {
    padding: 0 0;
}
.allYourSec h1 {
    color: #3e8fc9;
    text-transform: capitalize;
}
</style>
<body>
	<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>Wikipedia Questionnaire</h1>

                              
                            </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_domain??null; ?>">
                                                        </div>
                                                    </div>
                                                    <div class="col-md-6">
                                                        <div class="form-group">
                                                            <label>Business Name <p class="text-danger">*</p></label>
                                                            <input type="email" name="company[company_business]" class="form-control"
                                                                   placeholder=""
                                                                   value="<?php echo $data_value->company_business??null; ?>">
                                                        </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"
                                                            value="<?php echo $data_value->company_email??null; ?>" class="form-control"
                                                                   placeholder="" readonly>
                                                        </div>
                                                    </div>
                                                   <div class="col-md-6">
                                                        <div class="form-group">
                                                            <label>Phone# <p class="text-danger">*</p></label>
                                                            <input type="tel" name="company[company_phone]" class="form-control"
                                                            value="<?php echo $data_value->company_phone??null; ?>" class="form-control"
                                                                   placeholder="" readonly>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                   
                                                </div>
                                         
                                                <div class="row radio_area">
                                                    <div class="col-md-6">
                                                        <h4>Are there other decision makers? Please specify.</h4>
                                                        <input type="text" name="company[company_url]" class="form-control"
                                                               placeholder="url.."
                                                               value="<?php echo $data_value->company_url??null; ?>" class="form-control"
                                                                   readonly>
                                                    </div>
                                                    <div class="col-md-6">
                                                        <h4>Website Address – or Desired Domain(s)</h4>
                                                        <input type="text" name="company[company_domain]" class="form-control"
                                                               placeholder="www.demo.com"
                                                               value="<?php echo $data_value->company_domain??null; ?>">
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                               
                              
                              
                               
                                <div class="panel panel-default">
                                    <div class="panel-heading">
                                        <h4 class="panel-title">
                                            Wikipedia Needs 
                                        </h4>
                                    </div>
                                    <div id="collapse5" class="panel-collapse collapse in">
                                        <div class="panel-body">
                                            <div class="row">
                                         
                                                    <div class="col-md-12">
                                                 
                                                    <h4>We need a brief description about each company or approval to take it from the website. </h4>
                                                     <textarea id="form_message" name="company[company_brief]"
                                                              class="form-control" placeholder="" rows="10"
                                                              data-error="Type your message..."><?php echo $data_value->company_brief??null; ?></textarea>
                                                </div>
                                               
                                            </div>
                                            <div class="row">
                                                <div class="col-md-12">
                                                   
                                                    <h4>Please write a brief note about yourself or simply voice record it so that we can create a profile about you. </h4>
                                                   <textarea id="form_message" name="company[company_brief_note]"
                                                              class="form-control" placeholder="" rows="10"
                                                              data-error="Type your message..."><?php echo $data_value->company_brief_note??null; ?></textarea>
                                                </div>
                                                <div class="col-md-12">
                                                    <!--<h3>Domain and Hosting</h3>-->
                                                    <h4>Need permission to take information about you from your linked in and the current websites in order to create your profile for Wikipedia. </h4>
                                                    <textarea id="form_message" name="company[company_permission]"
                                                              class="form-control" placeholder="" rows="10"
                                                              data-error="Type your message..."><?php echo $data_value->company_permission??null; ?></textarea>
                                                </div>
                                               
                                                 <div class="col-md-12">
                                                    <!--<h3>Domain and Hosting</h3>-->
                                                    <h4>Please provide us a few of your achievements  </h4>
                                                   <textarea id="form_message" name="company[company_achievements]"
                                                              class="form-control" placeholder="" rows="10"
                                                              data-error="Type your message..."><?php echo $data_value->company_achievements??null; ?></textarea>
                                                </div>
                                                    <div class="col-md-12">
                                                    <!--<h3>Domain and Hosting</h3>-->
                                                    <h4>Suggestions for article topics for each of the company and yourself, anything that you prefer to be posted about yourself online. </h4>
                                                     <textarea id="form_message" name="company[company_article_topics]"
                                                              class="form-control" placeholder="" rows="10"
                                                              data-error="Type your message..."><?php echo $data_value->company_article_topics??null; ?></textarea>
                                                </div>
                                                     <div class="col-md-12">
                                                    <!--<h3>Domain and Hosting</h3>-->
                                                    <h4>Any current digital or print articles that you are aware of. </h4>
                                                     <textarea id="form_message" name="company[company_digital_print]"
                                                              class="form-control" placeholder="" rows="10"
                                                              data-error="Type your message..."><?php echo $data_value->company_digital_print??null; ?></textarea>
                                                </div>
                                                   <div class="col-md-12">
                                                    <!--<h3>Domain and Hosting</h3>-->
                                                    <h4>Additional comments for the writer </h4>
                                                     <textarea id="form_message" name="company[company_comments]"
                                                              class="form-control" placeholder="" rows="10"
                                                              data-error="Type your message..."><?php echo $data_value->company_comments??null; ?></textarea>
                                                </div>
                                            
                                              
                                             
                            
                                            </div>
                                            <div class="row">
                                 	         <div class="col-md-12">
												   <div class="attachmenttext">
												     <h4>Download File </h4>
                                                 
                                                 <?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">
                              <!-- <button class="btn btn-default" type="submit">Submit -->
                              <!-- </button> -->
                            </div>
                          </div>
                        </div>
                      </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </form>
                    <!-- Form End -->
                </div>
            </div>
        </div>
    </section>
  
	


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