<?php session_start();
include "../../Connections/connect_mysql.php";
  $sql_comE = 'SELECT * FROM company_tb WHERE compid = "'.$_POST['id'].'"';
  $objcomE = mysql_query($sql_comE);
    while ($rowE = mysql_fetch_array($objcomE)) {
  ?>
  <div data-parsley-validate class="form-horizontal form-label-left">
  <div class="form-group">
    <label class="control-label col-md-3 col-sm-3 col-xs-12" >ชื่อบริษัท <span class="required">*</span></label>
    <div class="col-md-9 col-sm-9 col-xs-12">
      <input type="text" id="coma1E" required="required" class="form-control col-md-7 col-xs-12" onblur="chkdlgcompany(this.id);" value="<?php echo $rowE['compname'];?>">
    </div>
  </div>
  <div class="form-group">
    <label class="control-label col-md-3 col-sm-3 col-xs-12" >รหัสบริษัท <span class="required"></span></label>
    <div class="col-md-9 col-sm-9 col-xs-12">
      <input type="text" id="coma2E" required="required" class="form-control col-md-7 col-xs-12" onblur="chkdlgcompany(this.id);" value="<?php echo $rowE['compcode'];?>">
    </div>
  </div>
  <div class="form-group">
      <label class="control-label col-md-3 col-sm-3 col-xs-12" >คำอธิบายเพิ่มเติม <span class="required">*</span></label>
      <div class="col-md-9 col-sm-9 col-xs-12">
      <textarea id="coma3E" class="form-control col-md-7 col-xs-12" type="text"><? echo $rowE['compmark'];?></textarea>
    </div>
  </div>
  </div>

  <script>
      CKEDITOR.replace( 'coma3E' );
  </script>
<?php } ?>
