資訊系統發展演進 Mainframe- 終端機系統 PC 的單機系統 Client-Server 系統 Web-based 系統 Web framework
資訊系統發展特點 Designing good software is hard and complicated Experienced developers use common patterns to assist them Each pattern describes a problem which occurs over and over again and describes the core of the solution to that problem Goal: How to build a solid, secure, and reusable framework for web applications
CSS Cascading Style Sheets (CSS): style sheet language used to describe the presentation of a html document. Define colors, fonts, layout, and other aspects of document Why CSS? ◦ more flexibility ◦ control the specification of presentational characteristics ◦ reduce complexity and repetition in the structural content.
Web Template Why templates ? ◦ Ease of design change ◦ Ease of interface localization ◦ Possibility to work separately on design and code by different people at one and the same time Typical features ◦ variables and functions ◦ text replacement ◦ file inclusion ◦ conditional evaluation and loops
PDO (PHP Data Object) 操作資料庫的 Abstraction Layer MySQLi ◦ $mysqli = new mysqli($db_host, $db_user, $db_password, $db_name); PDO ◦ $dsn = "mysql:host=$db_host;dbname=$db_name"; ◦ $dbh = new PDO($dsn, $db_user, $db_password); MSSQL MySQL Oracle DB Abstraction Layer (PDO) PHP
Purpose of AJAX Prevents unnecessary reloading of a page. AJAX loads only the necessary innformation, and making only the necessary changes on the current page without reloading the whole page. Goal: ◦ More interactive ◦ Faster ◦ More user friendly