
  <?php 
 include 'includes/header.php';
$servername = "localhost";
$username = "graveprm_paraapp";
$password = "0m=s^TD[a8G3";
$db = "graveprm_paraapp";

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

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

  if ($result) {
    $return = array();
    while($row = $result->fetch_assoc()) {
      $return = $row;
      
      
      /* Remove special character */
    //   $json_data = preg_replace('/[[:cntrl:]]/', '', $return['logo']);
    //   $data = json_decode($json_data, true);

    //   if ($data === null && json_last_error() !== JSON_ERROR_NONE) {
    //     echo "Error decoding JSON: " . json_last_error_msg();
    //   } else {
    //     $data_value = (object) $data;
    //   }
      /* Remove special character */
      
      
      $data_value = json_decode(base64_decode($return['logo'])); // Added by developer
      //$data_value = json_decode($return['logo']);
      $data_img =  $return['company_attachment'];
   
    // var_dump($data_value);
    }
  } else {
    $return = array();
  }

$conn->close();
 
  
  ?>

  <section id="membership-application" class="app-form">
        <!-- START -->
        <form action="javascript:void(0)" method="post" id="logo-form" enctype="multipart/form-data">
            <div class="container">
                <div class="row">
                    <!-- Section 1 Start -->
                    <div class="col-md-10 col-md-offset-1">
                        <div class="panel panel-theme">
                            <div class="panel-heading cake_order">Initial Logo Details</div>
                            <div class="panel-body">
                                <div class="row">
                                    <div class="col-md-12">
                                        <div class="para">
                                            <p>Use this form to enter your information that will help us understand your requirements in detail and provide you with the exact LOGO of your choice.</p>

                                            <p>Feel free to provide additional information if you think it will help.</p>
                                        </div>
                                    </div>
                                </div>

                                <div class="row">
                                    <div class="col-md-12">
                                        <label>Your Full<span> Name</span></label>
                                        <input class="form-control" name="logo_detail[logo_detail_fullname]" type="text" placeholder="Full Name" value="<?php echo $data_value->logo_detail_fullname??null; ?>">
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-md-12">
                                        <label>Valid Email Address<span></span></label>
                                        <input class="form-control" name="logo_detail[logo_detail_email]" type="email" placeholder="Email Address" value="<?php echo $data_value->logo_detail_email??null; ?>">
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-md-12">
                                        <label>Enter Your Company Name</label>
                                        <input class="form-control" name="logo_detail[logo_detail_company_name]" type="text" placeholder="Company Name" value="<?php echo $data_value->logo_detail_company_name??null; ?>">
                                    </div>
                                </div>

                                <div class="row">
                                    <div class="col-md-12">
                                        <label>Exact logo wording <span>( logo name )</span></label>
                                        <input class="form-control" name="logo_detail[logo_detail_name]" type="text" placeholder="" value="<?php echo $data_value->logo_detail_name??null; ?>">
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-md-12">
                                        <label>Slogan/Tagline if any <span>(optional)</span></label>
                                        <input class="form-control" name="logo_detail[logo_detail_slogan]" type="text" placeholder="" value="<?php echo $data_value->logo_detail_slogan??null; ?>">
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-md-12">
                                        <label>Describe your business / service / organization</label>
                                        <textarea class="form-control" name="logo_detail[logo_detail_description]" placeholder="Business Description"><?php echo $data_value->logo_detail_description??null; ?></textarea>
                                    </div>
                                </div>
                                <!-- End of Section 1 -->
                            </div>
                        </div>
                    </div>
                    <!-- End of Section 1 -->
                    <!-- Section 2 Start -->
                    <div class="col-md-10 col-md-offset-1">
                        <div class="panel panel-theme">
                            <div class="panel-heading cake_order">LOGO CATEGORIES</div>
                            <div class="panel-body">
                                <div class="row">
                                    <div class="col-md-12">
                                        <div class="para">
                                            <!-- <p class="note">Please select ONE category > Font Based Or Icon Based > Then
                                                Check One Sub-Category Of That</p> -->
                                        </div>
                                    </div>
                                </div>
                                 <?php if($data_value->logo_detail_logo_category == "just_font"){ ?>
                                    <div class="col-md-6">
                                        <div class="check_box">
                                            <div class="checkbox checkbox-primary">
                                                <input id="checkbox00" type="checkbox" name="logo_detail[logo_detail_logo_category]" value="" class="chb" checked>
                                                <label for="checkbox00"></label>
                                            </div>
                                            <p><span> Just font</span>Just font without any symbolic intervention.</p>

                                            <div class="img_box">
                                                <img src="https://designsutility.com/public/forms/images/type_1.jpg" width="100%" alt="logo">
                                            </div>
                                        </div>
                                    </div>
                                       <?php }else if($data_value->logo_detail_logo_category == "handmade"){ ?>
                                    <div class="col-md-6">
                                        <div class="check_box">
                                            <div class="checkbox checkbox-primary">
                                                <input id="checkbox01" type="checkbox" name="logo_detail[logo_detail_logo_category]" value="" class="chb" checked>
                                                <label for="checkbox01"></label>
                                            </div>
                                            <p><span> Handmade</span>A calligraphic, handwritten or script font.</p>

                                            <div class="img_box">
                                                <img src="https://designsutility.com/public/forms/images/type_2.jpg" width="100%" alt="logo">
                                            </div>
                                        </div>
                                    </div>
                                     <?php }else if($data_value->logo_detail_logo_category == "font_meaning"){ ?>
                                    <div class="col-md-6">
                                        <div class="check_box">
                                            <div class="checkbox checkbox-primary">
                                                <input id="checkbox02" type="checkbox" name="logo_detail[logo_detail_logo_category]" value="" class="chb" checked>
                                                <label for="checkbox02"></label>
                                            </div>
                                            <p><span> Font meaning</span>A font with a tweak that symbolize company/ product/service</p>

                                            <div class="img_box">
                                                <img src="https://designsutility.com/public/forms/images/type_3.jpg" width="100%" alt="logo">
                                            </div>
                                        </div>
                                    </div>
                                     <?php }else if($data_value->logo_detail_logo_category == "initials"){ ?>
                                    <div class="col-md-6">
                                        <div class="check_box">
                                            <div class="checkbox checkbox-primary">
                                                <input id="checkbox03" type="checkbox" name="logo_detail[logo_detail_logo_category]" value="" class="chb" checked>
                                                <label for="checkbox03"></label>
                                            </div>
                                            <p><span> Initials</span>Monogram with Company name initials.</p>

                                            <div class="img_box">
                                                <img src="https://designsutility.com/public/forms/images/type_4.jpg" width="100%" alt="logo">
                                            </div>
                                        </div>
                                    </div>
                                       <?php }else if($data_value->logo_detail_logo_category == "font_including_in_a_shape"){ ?>
                                    <div class="col-md-6">
                                        <div class="check_box">
                                            <div class="checkbox checkbox-primary">
                                                <input id="checkbox04" type="checkbox" name="logo_detail[logo_detail_logo_category]" value="" class="chb" checked>
                                                <label for="checkbox04"></label>
                                            </div>
                                            <p><span> Font including in a shape</span>Company name inside / squares / ovals / rectangles or combined shapes.</p>

                                            <div class="img_box">
                                                <img src="https://designsutility.com/public/forms/images/type_5.jpg" width="100%" alt="logo">
                                            </div>
                                        </div>
                                    </div>
                                        <?php } ?>
                                                                        
                                <!-- End of Section 1 -->
                            </div>
                        </div>
                    </div>
                    <!-- Section 3 Start -->
                    <div class="col-md-10 col-md-offset-1">
                        <div class="panel panel-theme">
                            <div class="panel-heading cake_order">ICON BASED LOGO</div>
                            <div class="panel-body">
                                  <?php if($data_value->logo_detail_icon_category == "abstract_graphic"){ ?>
                                    <div class="col-md-6">
                                        <div class="check_box">
                                            <div class="checkbox checkbox-primary">
                                                <input id="checkbox10" type="checkbox" name="logo_detail[logo_detail_icon_category]" value="" class="chbIcon" checked>
                                                <label for="checkbox10"></label>
                                            </div>
                                            <p><span> Abstract graphic</span> A synthetic symbol that represents your
                                                Company in a subtle way</p>

                                            <div class="img_box">
                                                <img src="https://designsutility.com/public/forms/images/type_icon_1.jpg" width="100%" alt="logo">
                                            </div>
                                        </div>
                                    </div>
                                       <?php }else if($data_value->logo_detail_icon_category == "silhouette"){ ?>
                                    <div class="col-md-6">
                                        <div class="check_box">
                                            <div class="checkbox checkbox-primary">
                                                <input id="checkbox11" type="checkbox" name="logo_detail[logo_detail_icon_category]" value="" class="chbIcon" checked>
                                                <label for="checkbox11"></label>
                                            </div>
                                            <p><span> Abstract graphic</span> A synthetic symbol that represents your
                                                Company in a subtle way</p>

                                            <div class="img_box">
                                                <img src="https://designsutility.com/public/forms/images/type_icon_2.jpg" width="100%" alt="logo">
                                            </div>
                                        </div>
                                    </div>
                                     <?php }else if($data_value->logo_detail_icon_category == "geometric_symbol"){ ?>
                                    <div class="col-md-6">
                                        <div class="check_box">
                                            <div class="checkbox checkbox-primary">
                                                <input id="checkbox12" type="checkbox" name="logo_detail[logo_detail_icon_category]" value="" class="chbIcon" checked>
                                                <label for="checkbox12"></label>
                                            </div>
                                            <p><span> Abstract graphic</span> A synthetic symbol that represents your
                                                Company in a subtle way</p>

                                            <div class="img_box">
                                                <img src="https://designsutility.com/public/forms/images/type_icon_3.jpg" width="100%" alt="logo">
                                            </div>
                                        </div>
                                    </div>
                                     <?php }else if($data_value->logo_detail_icon_category == "illustrated_symbol"){ ?>
                                    <div class="col-md-6">
                                        <div class="check_box">
                                            <div class="checkbox checkbox-primary">
                                                <input id="checkbox13" type="checkbox" name="logo_detail[logo_detail_icon_category]" value="" class="chbIcon" checked>
                                                <label for="checkbox13"></label>
                                            </div>
                                            <p><span> Abstract graphic</span> A synthetic symbol that represents your
                                                Company in a subtle way</p>

                                            <div class="img_box">
                                                <img src="https://designsutility.com/public/forms/images/type_icon_4.jpg" width="100%" alt="logo">
                                            </div>
                                        </div>
                                    </div>
                                     <?php }else if($data_value->logo_detail_icon_category == "detailed_illustration"){ ?>
                                    <div class="col-md-6">
                                        <div class="check_box">
                                            <div class="checkbox checkbox-primary">
                                                <input id="checkbox14" type="checkbox" name="logo_detail[logo_detail_icon_category]" value="" class="chbIcon" checked>
                                                <label for="checkbox14"></label>
                                            </div>
                                            <p><span> Abstract graphic</span> A synthetic symbol that represents your
                                                Company in a subtle way</p>

                                            <div class="img_box">
                                                <img src="https://designsutility.com/public/forms/images/type_icon_5.jpg" width="100%" alt="logo">
                                            </div>
                                        </div>
                                    </div>
                                     <?php }else if($data_value->logo_detail_icon_category == "seals_and_crests"){ ?>
                                    <div class="col-md-6">
                                        <div class="check_box">
                                            <div class="checkbox checkbox-primary">
                                                <input id="checkbox15" type="checkbox" name="logo_detail[logo_detail_icon_category]" value="" class="chbIcon" checked>
                                                <label for="checkbox15"></label>
                                            </div>
                                            <p><span> Abstract graphic</span> A synthetic symbol that represents your
                                                Company in a subtle way</p>

                                            <div class="img_box">
                                                <img src="https://designsutility.com/public/forms/images/type_icon_6.jpg" width="100%" alt="logo">
                                            </div>
                                        </div>
                                    </div>
                                     <?php }else if($data_value->logo_detail_icon_category == "mascot"){ ?>
                                    <div class="col-md-6">
                                        <div class="check_box">
                                            <div class="checkbox checkbox-primary">
                                                <input id="checkbox16" type="checkbox" name="logo_detail[logo_detail_icon_category]" value="" class="chbIcon" checked>
                                                <label for="checkbox16"></label>
                                            </div>
                                            <p><span> Abstract graphic</span> A synthetic symbol that represents your
                                                Company in a subtle way</p>

                                            <div class="img_box">
                                                <img src="https://designsutility.com/public/forms/images/type_icon_7.jpg" width="100%" alt="logo">
                                            </div>
                                        </div>
                                    </div>
                                            <?php } ?>
                                                                        
                                <!-- End of Section 1 -->
                            </div>
                        </div>
                    </div>
                    <!-- Section 4 Start -->
                    <div class="col-md-10 col-md-offset-1">
                        <div class="panel panel-theme">
                            <div class="panel-heading cake_order">Color Requirement</div>
                            <div class="panel-body">
                                <div class="row">
                                    <div class="col-md-12">
                                        <label>Color Requirement</label>
                                        <input type="text" class="form-control" name="logo_detail[logo_detail_color]" value="<?php echo $data_value->logo_detail_color??null; ?>">
                                    </div>
                                </div>
                                <!-- End of Section 1 -->
                            </div>
                        </div>
                    </div>
                    <!-- Section 5 Start -->
                    <div class="col-md-10 col-md-offset-1">
                        <div class="panel panel-theme">
                            <div class="panel-heading cake_order">Font Style</div>
                            <div class="panel-body">
                                <div class="row">
                                    <div class="col-md-12">
                                        <div class="para">
                                            <!-- <p class="note">Please select one font style:</p> -->
                                        </div>
                                    </div>
                                </div>

                                <div class="row">
                                    <?php if($data_value->logo_detail_font_style == "comic"){ ?>
                                    <div class="col-md-3">
                                        <div class="check_box font_style">
                                            <div class="checkbox checkbox-primary">
                                                <input id="checkbox20" type="checkbox" name="logo_detail[logo_detail_font_style]"  value="" class="chbFont" checked>
                                                <label for="checkbox20"></label>
                                            </div>
                                            <div class="img_box">
                                                <img src="https://designsutility.com/public/forms/images/font_1.jpg" width="100%" alt="logo">
                                            </div>
                                        </div>
                                    </div>
                                     <?php }else if($data_value->logo_detail_font_style  == "stencil"){ ?>
                                    <div class="col-md-3">
                                        <div class="check_box font_style">
                                            <div class="checkbox checkbox-primary">
                                                <input id="checkbox21" type="checkbox" name="logo_detail[logo_detail_font_style]"  value="" class="chbFont" checked>
                                                <label for="checkbox21"></label>
                                            </div>
                                            <div class="img_box">
                                                <img src="https://designsutility.com/public/forms/images/font_2.jpg" width="100%" alt="logo">
                                            </div>
                                        </div>
                                    </div>
                                     <?php }else if($data_value->logo_detail_font_style  == "gothic"){ ?>
                                    <div class="col-md-3">
                                        <div class="check_box font_style">
                                            <div class="checkbox checkbox-primary">
                                                <input id="checkbox22" type="checkbox" name="logo_detail[logo_detail_font_style]"  value="" class="chbFont" checked>
                                                <label for="checkbox22"></label>
                                            </div>
                                            <div class="img_box">
                                                <img src="https://designsutility.com/public/forms/images/font_3.jpg" width="100%" alt="logo">
                                            </div>
                                        </div>
                                    </div>
                                     <?php }else if($data_value->logo_detail_font_style  == "decorat"){ ?>
                                    <div class="col-md-3">
                                        <div class="check_box font_style">
                                            <div class="checkbox checkbox-primary">
                                                <input id="checkbox23" type="checkbox" name="logo_detail[logo_detail_font_style]"  value=""  class="chbFont" checked> 
                                                <label for="checkbox23"></label>
                                            </div>
                                            <div class="img_box">
                                                <img src="https://designsutility.com/public/forms/images/font_4.jpg" width="100%" alt="logo">
                                            </div>
                                        </div>
                                    </div>
                                     <?php }else if($data_value->logo_detail_font_style  == "typewri"){ ?>
                                    <div class="col-md-3">
                                        <div class="check_box font_style">
                                            <div class="checkbox checkbox-primary">
                                                <input id="checkbox24" type="checkbox" name="logo_detail[logo_detail_font_style]"  value=""   class="chbFont" checked>
                                                <label for="checkbox24"></label>
                                            </div>
                                            <div class="img_box">
                                                <img src="https://designsutility.com/public/forms/images/font_5.jpg" width="100%" alt="logo">
                                            </div>
                                        </div>
                                    </div>
                                      <?php }else if($data_value->logo_detail_font_style  == "eroded"){ ?>
                                    <div class="col-md-3">
                                        <div class="check_box font_style">
                                            <div class="checkbox checkbox-primary">
                                                <input id="checkbox25" type="checkbox" name="logo_detail[logo_detail_font_style]"  value="" class="chbFont" checked>
                                                <label for="checkbox25"></label>
                                            </div>
                                            <div class="img_box">
                                                <img src="https://designsutility.com/public/forms/images/font_6.jpg" width="100%" alt="logo">
                                            </div>
                                        </div>
                                    </div>
                                     <?php }else if($data_value->logo_detail_font_style  == "graffit"){ ?>
                                    <div class="col-md-3">
                                        <div class="check_box font_style">
                                            <div class="checkbox checkbox-primary">
                                                <input id="checkbox26" type="checkbox" name="logo_detail[logo_detail_font_style]"  value="" class="chbFont" checked>
                                                <label for="checkbox26"></label>
                                            </div>
                                            <div class="img_box">
                                                <img src="https://designsutility.com/public/forms/images/font_7.jpg" width="100%" alt="logo">
                                            </div>
                                        </div>
                                    </div>
                                     <?php }else if($data_value->logo_detail_font_style  == "pixelat"){ ?>
                                    <div class="col-md-3">
                                        <div class="check_box font_style">
                                            <div class="checkbox checkbox-primary">
                                                <input id="checkbox27" type="checkbox" name="logo_detail[logo_detail_font_style]"  value="" class="chbFont" checked>  
                                                <label for="checkbox27"></label>
                                            </div>
                                            <div class="img_box">
                                                <img src="https://designsutility.com/public/forms/images/font_8.jpg" width="100%" alt="logo">
                                            </div>
                                        </div>
                                    </div>
                                     <?php }else if($data_value->logo_detail_font_style  == "retro"){ ?>
                                    <div class="col-md-3">
                                        <div class="check_box font_style">
                                            <div class="checkbox checkbox-primary">
                                                <input id="checkbox28" type="checkbox" name="logo_detail[logo_detail_font_style]"  value="" class="chbFont" checked>  
                                                <label for="checkbox28"></label>
                                            </div>
                                            <div class="img_box">
                                                <img src="https://designsutility.com/public/forms/images/font_9.jpg" width="100%" alt="logo">
                                            </div>
                                        </div>
                                    </div>
                                     <?php }else if($data_value->logo_detail_font_style  == "techno"){ ?>
                                    <div class="col-md-3">
                                        <div class="check_box font_style">
                                            <div class="checkbox checkbox-primary">
                                                <input id="checkbox29" type="checkbox" name="logo_detail[logo_detail_font_style]"  value="" class="chbFont" checked> 
                                                <label for="checkbox29"></label>
                                            </div>
                                            <div class="img_box">
                                                <img src="https://designsutility.com/public/forms/images/font_10.jpg" width="100%" alt="logo">
                                            </div>
                                        </div>
                                    </div>
                                     <?php }else if($data_value->logo_detail_font_style  == "sans_se"){ ?>
                                    <div class="col-md-3">
                                        <div class="check_box font_style">
                                            <div class="checkbox checkbox-primary">
                                                <input id="checkbox210" type="checkbox" name="logo_detail[logo_detail_font_style]"  value=""   class="chbFont" checked>
                                                <label for="checkbox210"></label>
                                            </div>
                                            <div class="img_box">
                                                <img src="https://designsutility.com/public/forms/images/font_11.jpg" width="100%" alt="logo">
                                            </div>
                                        </div>
                                    </div>
                                     <?php }else if($data_value->logo_detail_font_style  == "serif"){ ?>
                                    <div class="col-md-3">
                                        <div class="check_box font_style">
                                            <div class="checkbox checkbox-primary">
                                                <input id="checkbox211" type="checkbox" name="logo_detail[logo_detail_font_style]"  value="" class="chbFont" checked>
                                                <label for="checkbox211"></label>
                                            </div>
                                            <div class="img_box">
                                                <img src="https://designsutility.com/public/forms/images/font_12.jpg" width="100%" alt="logo">
                                            </div>
                                        </div>
                                    </div>
                                     <?php }else if($data_value->logo_detail_font_style  == "calligry"){ ?>
                                    <div class="col-md-3">
                                        <div class="check_box font_style">
                                            <div class="checkbox checkbox-primary">
                                                <input id="checkbox212" type="checkbox" name="logo_detail[logo_detail_font_style]"  value=""  class="chbFont" checked> 
                                                <label for="checkbox212"></label>
                                            </div>
                                            <div class="img_box">
                                                <img src="https://designsutility.com/public/forms/images/font_13.jpg" width="100%" alt="logo">
                                            </div>
                                        </div>
                                    </div>
                                     <?php }else if($data_value->logo_detail_font_style  == "script"){ ?>
                                    <div class="col-md-3">
                                        <div class="check_box font_style">
                                            <div class="checkbox checkbox-primary">
                                                <input id="checkbox213" type="checkbox" name="logo_detail[logo_detail_font_style]"  value="" class="chbFont" checked>
                                                <label for="checkbox213"></label>
                                            </div>
                                            <div class="img_box">
                                                <img src="https://designsutility.com/public/forms/images/font_14.jpg" width="100%" alt="logo">
                                            </div>
                                        </div>
                                    </div>
                                     <?php }else if($data_value->logo_detail_font_style  == "handwrin"){ ?>
                                    <div class="col-md-3">
                                        <div class="check_box font_style">
                                            <div class="checkbox checkbox-primary">
                                                <input id="checkbox214" type="checkbox" name="logo_detail[logo_detail_font_style]"  value=""  class="chbFont" checked> 
                                                <label for="checkbox214"></label>
                                            </div>
                                            <div class="img_box">
                                                <img src="https://designsutility.com/public/forms/images/font_15.jpg" width="100%" alt="logo">
                                            </div>
                                        </div>
                                    </div>
                                    <?php } ?>
                                </div>

                                <div class="row">
                                    <div class="col-md-12">
                                        <label>Additional information <span>(optional)</span></label>
                                        <textarea class="form-control" placeholder="" name="logo_detail[logo_detail_addtional_info]" ><?php echo $data_value->logo_detail_addtional_info??null; ?></textarea>
                                    </div>
                                </div>

                                
                                    <div class="row">
                                        <div class="col-md-12">
                                            <p>Download Now</p>
                                           <div class="attachmenttext">
                                              <?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" style="display:none;">
                                            <div class="submit_btn">
                                                <!-- <button class="btn btn-default" >Submit</button> -->
                                                <!--<input type="submit" name="process" value="Save" class="btn btn-default"/>-->
                                            </div>
                                        </div>
                                    </div>
                                    <!-- End of Section 1 -->
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </form>
        <!-- END -->
    </section>
  
 


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