<commit_before><style type="text/css">
	.thumbnails li img {
		width: 225px;
		height: 225px;
	}

	.thumbnails {
		color: black;
	}
</style>
<script type="text/javascript">
	$(document).ready(function() {
		$('[data-toggle="tooltip"]').tooltip();
		$("select").imagepicker({
			show_label : true
		});

		$('#example').DataTable({
			"ordering" : false,
			"info" : false,
			"bFilter" : false,
			"bLengthChange" : false
		});

		$('.img-zoom').hover(function() {
			$(this).addClass('transition');

		}, function() {
			$(this).removeClass('transition');
		});
	});

	$(function() {
		$("#weed_select").change(function() {
			var studentNmae = $('option:selected', this).attr('weed_name');
			$('#name').val(studentNmae);
		});
	});
</script>

<div class="container">
	<?php if($information != null || $anti!= null) { ?>
	<div class="jumbotron">
		<div class="text-center">
			<h2 class="well"><?= $information[0]['CommonName']; ?></h2>
			<img class="img-thumbnail" src="<?= base_url('assets') . '/' . $information[0]['path_image'] ?>" width='300' height='300' />
		</div>
		<br />		
		<br />
		<div class="about col-xs-12 col-sm-12 col-md-6 col-lg-6">
      <div class="panel panel-info" style="margin: 10px">
        <div class="panel-heading">
          <h3 class="panel-title">วิธีป้องกัน</h3>
        </div>
        <div class="panel-body">
          <?php $x = explode('.', $information[0]['Prevention']); ?>
          <?php for($i=1; $i<sizeof($x); $i++)  { ?>
          <?= $i ?>. <?= $x[$i] ?>
          <br /><br />
          <?php } ?>	
        </div>
      </div>
    </div>
		<div class="contact col-xs-12 col-sm-12 col-md-6 col-lg-6">
      <div class="panel panel-info" style="margin: 10px">
        <div class="panel-heading">
          <h3 class="panel-title">ระบบนิเวศ</h3>
        </div>
        <div class="panel-body">
			   <?php $x = explode("-", $information[0]['Ecology']); ?>
			   <?php for($i=1; $i<sizeof($x); $i++)  { ?>
			     - <?= $x[$i] ?>
           <br /><br />
			   <?php } ?>
        </div>
      </div>
		</div>
		
		<br />		
		<br />
		<table id="example" class="display text-center table table-hover" cellspacing="0" border="1" width="100%" style="background-color: #333222">
      <thead>
        <tr>
          <th class="text-center">รูปภาพ</th>
          <th class="text-center">ชื่อการค้า</th>
          <th class="text-center">ชื่อสามัญ</th>
        </tr>
      </thead>
      <tbody>
        <?php if($anti != null ) { foreach ($anti as $r) { ?>
          <tr>
          	<td><img onerror="this.src='http://192.168.127.12/weed/assets/images/pill/no_image.png'" class="img-responsive img-rounded center-block img-zoom" src='<?= base_url("assets/images/pill/" . $r["trade_name"]) . ".png" ?>' /></td>
          	<td style="vertical-align:middle"><?= $r['trade_name'] ?></td>
          	<td style="vertical-align:middle"><?= $r['common_name'] ?></td>
          </tr>
        <?php }} ?>
      </tbody>
    </table>
	</div>
	<?php } ?>
<commit_msg>update 2:48<commit_after><style type="text/css">
	.thumbnails li img {
		width: 225px;
		height: 225px;
	}

	.thumbnails {
		color: black;
	}
</style>
<script type="text/javascript">
	$(document).ready(function() {
		$('[data-toggle="tooltip"]').tooltip();
		$("select").imagepicker({
			show_label : true
		});

		$('#example').DataTable({
			"ordering" : false,
			"info" : false,
			"bFilter" : false,
			"bLengthChange" : false
		});

		$('.img-zoom').hover(function() {
			$(this).addClass('transition');

		}, function() {
			$(this).removeClass('transition');
		});
	});

	$(function() {
		$("#weed_select").change(function() {
			var studentNmae = $('option:selected', this).attr('weed_name');
			$('#name').val(studentNmae);
		});
	});
</script>

<div class="container">
{'fraction_non_alphanumeric': 0.2457627118644068, 'fraction_numerical': 0.018802966101694914, 'mean_word_length': 2.873846153846154, 'pattern_counts': {'":': 0, '<': 91, '<?xml version=': 0, '>': 89, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '794498', 'n_tokens_mistral': 1521, 'n_tokens_neox': 1385, 'n_words': 234}