This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*หลักสูตร CodeIgniter + Twitter Bootstrap + Ajax + MySQL (จำนวน 2 วัน / ฟรี) | |
สถานที่อบรม : ห้องประชุมชั้น 2 สำนักงานสาธารณสุขจังหวัดมหาสารคาม | |
วันที่ 16 กุมภาพันธ์ 2556 | |
---------------------------------------------------------------------------- | |
ช่วงเช้า (09.30 - 12.00 น) | |
-> การติดตั้ง และกำหนดค่าการใช้งาน CodeIgniter เบื้องต้น | |
-> พื้นฐาน PHP OOP | |
-> หลักการทำงานแบบ MVC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Products extends CI_Controller | |
{ | |
public function __construct() | |
{ | |
parent::__construct(); | |
} | |
public function get_list() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('a[href="#tab_anc2"]').click(function(){ | |
var hn = $('#hn').val(), | |
gravida = $('#sl_anc_gravida2').val(); | |
anc.ajax.get_history(hn, gravida, function(err, data){ | |
anc.set_history(data); | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE `master` ( | |
`GROUP` varchar(29) DEFAULT NULL, | |
`TYPE` varchar(50) DEFAULT NULL, | |
`GFCODE` varchar(25) DEFAULT NULL, | |
`ID` varchar(25) DEFAULT NULL, | |
`TITLE` varchar(150) DEFAULT NULL, | |
`DATE1` varchar(8) DEFAULT NULL, | |
`DATE` date DEFAULT NULL, | |
`NDATE1` date DEFAULT NULL, | |
`SPACE` varchar(150) DEFAULT NULL, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$cb = $this->input->post('callback'); | |
$rs = $this->epidem->get_epidem($date_start,$date_end); | |
$rows = json_encode($rs); | |
$json = $cb . '({"success": true, "rows": ' . $rows.'})'; | |
// don't render json | |
#$this->_render_json($json); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"success": true, | |
"rows": [ | |
{ | |
"person": { | |
"hospcode": "04911", | |
"pid": 111, | |
"cid": "111111111111", | |
"name": "ทดสอบ", | |
"lname": "เล่นๆ", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<table class="table"> | |
... | |
</table> | |
<!-- file ch2_1.html --> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Bootstrap: Table</title> | |
<!-- bootstrap style sheet --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var options = { | |
//. | |
//. | |
//. | |
onPageClicked: function(e, originalEvent, type, page){ | |
load_data(page); | |
} | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Bootstrap 101 Template</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link href="../assets/css/bootstrap.min.css" rel="stylesheet"> | |
<script src="../assets/js/jquery.js"></script> | |
<script src="../assets/js/bootstrap.min.js"></script> | |
<script src="dist/select2.min.js"></script> | |
<script src="dist/select2.locale.th.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$dsn = 'mysql:host=localhost; dbname=test'; | |
$username = 'root'; | |
$password = ''; | |
try { | |
$conn = new PDO( $dsn, $username, $password); | |
$conn->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION ); | |
} catch ( PDOException $e ) { |
OlderNewer