56
ภาคผนวก

ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

  • Upload
    vandien

  • View
    246

  • Download
    6

Embed Size (px)

Citation preview

Page 1: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

ภาคผนวก

Page 2: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

ภาคผนวก ก

การตดตงโปแกรม

Page 3: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

การตดตง Appserv -2.5.10

ขนตอนการตดตง 1. ดาวนโหลดโปรแกรม AppServ 2. Double Click ไฟล appserv-win32-2.5.10

ภาพท 4-40 โปรแกรม Appserv

3. รอสกครจะปรากฏหนาจอ Welcome ใหกดปม Next เพอไปยงหนาตอไป

ภาพท 4-41 จอภาพตอนรบเขาสการตดตง Appserv

Page 4: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

4. กดปม I Agree เพอยอมรบขอตกลงในการใชซอฟตแวร

ภาพท 4-42 จอภาพลขสทธการใชงาน

5. ก าหนดโฟลเดอรส าหรบตดตงโปรแกรม AppServ จากนนกดปม Next

ภาพท 4-43 จอภาพไดรและโฟรเดอรตดตงโปรแกรม

Page 5: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

6. เลอกองคประกอบ (Components) ส าหรบการตดตง แลวกดปม Next

ภาพท 4-44 จอภาพการเลอกชนดการตดตงโปรแกรม

7. จะปรากฏหนาจอส าหรบใหกรอกขอมลเซฟเวอรของ (Server Information) ซงประกอบดวย 7.1. ชอเซฟเวอร หรอ ยอารแอล (URL) 7.2. อเมลของผดแลเซฟเวอร 7.3. พอรตส าหรบใชงาน หรอตดตอ

Page 6: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

ภาพท 4-45 จอภาพการก าหนดขอมลเกยวกบ Web Server

8. หลงกรอก Server Information แลว ขนตอนตอไปคอการก าหนดคาส าหรบ MySQL Server ซงตองระบ หลงจากก าหนดคาดงกลาวแลว ใหกดปม Install

8.1. รหสผาน (Password) ส าหรบ root 8.2. ชดภาษา (Character Sets and Collations) ทใช

ภาพท 4-46 จอภาพการระบรหสผานของฐานขอมล MySQL

Page 7: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

9. หลงก าหนดคาส าหรบ mySQL Server แลว ตวตดตงจะด าเนนการตดตงองคประกอบตางๆ ลงในระบบ

ภาพท 4-47 จอภาพโปรแกรมก าลงตดตง

10.เมอการตดตงเสรจสน ใหกดปม Finish

ภาพท 4-48 จอภาพการตดตงเสรจสน

Page 8: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

11. เมอสตารท Apache Http Server เสรจ ใหท าการเปดโปรแกรมเวบบราวเซอร และพมพค าวา

http://localhost ลงไปในชองรบยอารแอล (Address Bar) หากโปรแกรม Apache ท างานไดเปนปกตจะปรากฏขอความในหนาแรกตามภาพ

ภาพท 4-49 จอภาพ Web Server

Page 9: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

การตดตงโปรแกรม cms zencart

1. ดาวนโหลดไฟลจากเวบไซด ใหเปดเบราเซอรไปท http://www.zen-cart.com แลวดาวนโหลดไฟล zencart v1.3.9h โดยการ

คลกทปม Download

ภาพท 4-50 ดาวนโหลดไฟลจากเวบไซด

2. แตกไฟล เมอดาวนโหลดไฟล zencart v1.3.9h. มาเรยบรอยแลว ใหคลกขวาทไฟล แลวเลอก Extract Here

ภาพท 4-51 แสดงการแตกไฟล

Page 10: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

ในทนแตกไฟลไวในไดเรกทอรเดยวกนกบไฟล zip เมอแตกไฟลเสรจแลวจะมโฟลเดอรชอ

เดยวกนกบไฟล zip เกดขนในไดเรกทอรน

ภาพท 4-52 แสดงแตกไฟลเสรจแลว

เมอแตกไฟลเสรจเรยบรอยแลว จะเหนรายชอไดเรกทอร zencart v1.3.9h แลวใหท าการเปลยน

ชอเปน zencart เพอจะไดพมพ URL สนๆ และงายตอการจดจ า

3.สรางฐานขอมล ใหเปดเบราเซอรไปท http://dekdee.buu.ac.th/phpMyAdmin แลว Log In ดวย Username และ

Password คอ “buuic” ในทนตองการสรางฐานขอมลชอ zencart กใหพมพชอฐานขอมลนลงในชอง

Create new database จากนนกคลก Create

ภาพท 4-53 แสดงการสรางฐานขอมล

หลงจากทสรางฐานขอมลเสรจเรยบรอยแลว ตอไปใหท าการ Upload โฟลเดอร zencart ขนไวไปไวท Web Server ในท Upload ไวท http://dekdee.buu.ac.th/~s53630041 โดยใชโปรแกรมอะไรๆกไดทสามารถใชงาน FTP ได

Page 11: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

4.ลงมอตดตง ใหเปดเบราเซอรไปท http://dekdee.buu.ac.th/~s53630041/zencart ในครงแรก ZenCart จะแสดงหนาเวบ

ส าหรบการตดตง คลก Click here หรอ zc_install/index.php เพอเขาสการตดตง

ภาพท 4-54 แสดงหนาแรกของ zencart

หนาเวบ ZenCart Setup - Welcome เปนขอความแนะน าเกยวกบ ZenCart เมออานและท าความเขาใจ

แลว กคลก Continue เพอไปยงหนาถดไป

ภาพท 4-55 แสดงหนา ZenCart Setup – Welcome

Page 12: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

หนาเวบ ZenCart Setup - License Confirmation เปนขอความแสดงรายละเอยดของลขสทธ เมออานและ

ท าความเขาใจแลว ใหตกถกหนา I have read and agree to... แลวกคลก Continue เพอไปยงหนาถดไป

ภาพท 4-56 แสดงหนา ZenCart Setup - License Confirmation

หนาเวบ ZenCart Setup - System Inspection เปนเวบเพจแสดงความพรอมของระบบ ถาระบบมความ

พรอมกจะแสดงขอความเปนสเขยว สวนขอความสเหลองเปนขอความเตอนสามารถผานไปได โดยไม

ตองสนใจใดๆ แตหากเปนสแดงแสดงวามบางอยางผดพลาดใหท าการแกไขใหเรยบรอย แลวกคลก

Install

Page 13: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

ภาพท 4-57 แสดงหนา ZenCart Setup - System Inspection

Page 14: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

หนาเวบ ZenCart Setup - Database Setup เปนการก าหนดรายละเอยดของฐานขอมล ในทน

ก าหนดดงน

Database Type: ชนดของฐานขอมล ในทนก าหนดเปน MySQL

Database Host: ชอโฮสตตามคาดฟอลต ก าหนดเปน localhost

Database Username: ชอผใช ของฐานขอมลใน phpMyAdmin

Database Password: รหสผานของฐานขอมลใน phpMyAdmin

Database Name: ชอฐานขอมล ในทนก าหนดเปน zencart

Store Identifiler (Table-Prefix): ชอน าหนาตาราง

Database Sessions: ตองการเกบขอมลเซสชนไวในฐานขอมลหรอไม

SQL Cache Method: เลอกวธการเกบแคช เพอเพมความเรวในการเรยกดขอมลเดม

Session/SQL Cache Directory: ไดเรกทอรทใชเกบขอมลแคช

Page 15: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

เมอก าหนดรายละเอยดของฐานขอมลเรยบรอยแลว กใหคลก Save Database Setting

ภาพท 4-58 แสดงหนาเพอก าหนดรายละเอยดของฐานขอมล

Page 16: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

หนาเวบ ZenCart Setup - System Setup ภาพท 4-59 เปนการก าหนดรายละเอยดขอมลระบบ

Physical Path To Zen Cart: พาธหรอไดเรกทอรทใชเกบ Zencart

URL to your Zen Cart store: ชอเรยกของเวบไซต

HTTPS Domain: ชอโดเมนแบบ https

HTTPS Server URL: ชอเรยกของเวบไซตแบบ

Enable SSL: ตองการเพมระบบความปลอดภยหรอไม

Enable SSL in Admin Area: ตองการเพมระบบความปลอดภยในสวนผดแลหรอไม

เมอก าหนดรายละเอยดขอมลระบบเรยบรอยแลว กคลก Save System Settings

Page 17: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

ภาพท 4-59 แสดงหนาเพอก าหนดรายละเอยดขอมลระบบ หนาเวบ ZenCart Setup - Store Setup ผดพลาด! ไมพบแหลงการอางอง11 เปนการก าหนดรายละเอยดของ

Store Name: ชอของรานคา

Store Owner: ชอเจาของราน

Store Owner Email: อเมลลเจาของราน

Store Country: ประเทศทตงของรานคา

Store Zone: โซนหรอจงหวดทตงรานคา

Store Address: ทอยของรานคา

Default Language: ภาษาโดยดฟอลตของรานคา

Default Currency: สกลเงนโดยดฟอลตของรานคา

Store Demo: ตองการตดตงขอมลตวอยางหรอไม

Page 18: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

เมอก าหนดรายละเอยดของรานคาเรยบรอย กคลก Save Store Settings

ภาพท 4-60 แสดงหนาเพอก าหนดรายละเอยดของรานคา หนาเวบ ZenCart Setup - Administrator Account Setup ดงผดพลาด! ไมพบแหลงการอางอง12 เปนการ

ก าหนดรายละเอยดของผดแล

Administrator's Username: ชอของผดแล

Administrator's Password: รหสผานของผดแล

Confirm Administrator's Password: ยนยนรหสผาน ซงตองกรอกใหตรงกบรหสผาน

Administrator's Email: อเมลลผดแลระบบ

Page 19: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

Check for Zen Cart updates when logging to Admin: ตรวจสอบเวอรชนใหมของZen Cart ทกครงเมอ

ผดแลเขาสระบบหรอไม

เมอก าหนดรายละเอยดของผดแลเรยบรอย กคลก Save Admin Settings

ภาพท 4-61 แสดงหนาเพอก าหนดรายละเอยดของผดแล

หนาเวบ ZenCart Setup - Finished ภาพท 4-61 เปนขอความแสดงความยนดทไดตดตงส าเรจเรยบรอย

แลว ซงในเวบเพจจะมขอความวา ใหปรบ permission ของไฟล configure.php ในไดเรกทอร

admin/includes และ includes ใหอานไดอยางเดยว และยงมอกอยางหนงทตองท ากคอ ใหลบหรอเปลยน

ชอไดเรกทอร zc_install เพอจะไดไมเกดการตดตงซ าซอน ในหนาเวบนมปมอย 2 ปมคอ Click here to

go to Store เพอไปยงหนาราน และ Click here to open the Admin area เพอไปหนาผดแล

Page 20: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

ภาพท 4-62 แสดงหนาตดตงเสรจสมบรณ

5.ลบไดเรกทอร zc_install ใหใชโปรแกรม FTP แลวท าการ login แลวเขาททเกบโฟลเดอร zencart ไว แลวใหท าการ ลบหรอเปลยน

ชอโฟลเดอร zc_install

6.เปลยนชอไดเรกทอร admin ใหใชโปรแกรม FTP แลวท าการ login แลวเขาททเกบโฟลเดอร zencart ไว แลวใหท าการ เปลยนชอโฟล

เดอร admin ถาไมท าการเปลยนชอไดเรคทอรน จะไมสามารถเขาหนา admin ได

Page 21: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

หลงจากทเปลยนชอไดเรคทอร admin แลวใหท าการแกไขไฟลท /ชอไดเรคทอร admin ท

เปลยน/includes/configure.php แลวแกดงรปท ข-14

ภาพท 4-63 แสดงการแกคอนฟกเพอใหเขาหนา admin ได

Page 22: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

ภาคผนวก ข

Source Code

Page 23: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

หนา Config.php

หนา configure.php ของระบบ Zen-Cart

<? //เชอมตอกบฐานขอมล

$connect = mysql_connect("localhost","std51010916013","16013");

mysql_select_db("std51010916013");

mysql_query("SET NAMES tis620");

?>

<?php/** * * @package Configuration Settings

* @copyright Copyright 2003-2006 Zen Cart Development Team

* @copyright Portions Copyright 2003 osCommerce

* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0

*//*************** NOTE: This file is similar, but DIFFERENT from the "admin" version of configure.php.

***********//*************** The 2 files should be kept separate and not used to overwrite each

other. ***********/

// Define the webserver and path parameters

// HTTP_SERVER is your Main webserver: eg, http://www.yourdomain.com

// HTTPS_SERVER is your Secure webserver: eg, https://www.yourdomain.com

define('HTTP_SERVER', 'http://www.bc.msu.ac.th');

define('HTTPS_SERVER', 'https://www.bc.msu.ac.th');

Page 24: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

// Use secure webserver for checkout procedure?

define('ENABLE_SSL', 'false');

// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!

// * DIR_WS_* = Webserver directories (virtual/URL)

// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)

define('DIR_WS_CATALOG', '/~std51010916013/zen-cart/');

define('DIR_WS_HTTPS_CATALOG', '/~std51010916013/zen-cart/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');

define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

define('DIR_WS_PHPBB', '/');

// * DIR_FS_* = Filesystem directories (local/physical)

//the following path is a COMPLETE path to your Zen Cart files. eg:

/var/www/vhost/accountname/public_html/store/

define('DIR_FS_CATALOG', '/home/51/std51010916013/public_html/zen-cart/')

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');

define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS); define('DIR_FS_EMAIL_TEMPLATES',

DIR_FS_CATALOG . 'email/');

/ / define our database connection

// Use secure webserver for checkout procedure?

define('ENABLE_SSL', 'false');// NOTE: be sure to leave the trailing '/' at the end of these lines if you make c

hanges!

// * DIR_WS_* = Webserver directories (virtual/URL)

// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs

folder)

Page 25: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

define('DIR_WS_CATALOG', '/~std51010916013/zen-cart/');

define('DIR_WS_HTTPS_CATALOG', '/~std51010916013/zen-cart/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');

define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

define('DIR_WS_PHPBB', '/');

// * DIR_FS_* = Filesystem directories (local/physical)

//the following path is a COMPLETE path to your Zen Cart files. eg:

/var/www/vhost/accountname/public_html/store/

define('DIR_FS_CATALOG', '/home/51/std51010916013/public_html/zen-cart/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC',

DIR_FS_CATALOG . 'pub/');

define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');

define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);

define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');

// define our database connection

define('DB_TYPE', 'mysql');

define('DB_PREFIX', '');

define('DB_SERVER', 'localhost');

efine('DB_SERVER_USERNAME', 'std51010916013');

define('DB_SERVER_PASSWORD', '16013');

define('DB_DATABASE', 'std51010916013');

define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', 'db'); // use 'db' for best support, or '' for file-based storage

define('SQL_CACHE_METHOD', 'none');

define('DIR_FS_SQL_CACHE', '/home/51/std51010916013/public_html/zen-cart/cache');

// The next 2 "defines" are for SQL cache support.

// For SQL_CACHE_METHOD, you can select from: none, database, or file

// If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache // or

webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the

Zen Cart folder

// ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash

?>

Page 26: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

หนา header_navigation.php (การเพมเมนในระบบ Zen-Cart)

<?php

/** * @package admin

* @copyright Copyright 2003-2006 Zen Cart Development Team

* @copyright Portions Copyright 2003 osCommerce

* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0

* @version $Id: header_navigation.php 3089 2006-03-01 18:32:25Z ajeh $

*/

if (!defined('IS_ADMIN_FLAG')) {

die('Illegal Access');

} ?>

<!-- Menu bar #2. -->

<div id="navbar"><ul class="nde-menu-system" onmouseover="hide_dropdowns('in')"

onmouseout="hide_dropdowns('out')">

<?php

require(DIR_WS_BOXES . 'configuration_dhtml.php');

require(DIR_WS_BOXES . 'catalog_dhtml.php');

require(DIR_WS_BOXES . 'modules_dhtml.php');

require(DIR_WS_BOXES . 'customers_dhtml.php');

require(DIR_WS_BOXES . 'reports_dhtml.php');

require(DIR_WS_BOXES . 'taxes_dhtml.php');

require(DIR_WS_BOXES . 'localization_dhtml.php');

require(DIR_WS_BOXES . 'systems_dhtml.php');

require(DIR_WS_BOXES . 'tools_dhtml.php');

require(DIR_WS_BOXES . 'gv_admin_dhtml.php');

require(DIR_WS_BOXES . 'extras_dhtml.php');

?>

</ul></div>

Page 27: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

หนา systems_dhtml.php (หนาเมนทสรางขน)

<?php

/** * @package admin

* @copyright Copyright 2003-2006 Zen Cart Development Team

* @copyright Portions Copyright 2003 osCommerce

* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0

* @version $Id: header_navigation.php 3089 2006-03-01 18:32:25Z ajeh $

*/

if (!defined('IS_ADMIN_FLAG')) {

die('Illegal Access');

}

$za_contents = array();

$za_heading = array();

$za_heading = array('text' =>Supplier, 'link' => zen_href_link(FILENAME_ALT_NAV, '', 'NONSSL'));

$za_contents[] = array('text' => Order_supplier, 'link' => zen_href_link(sub_order, '', 'NONSSL'));

$za_contents[] = array('text' => Payment_supplier, 'link' => zen_href_link(payment, '', 'NONSSL'));

$za_contents[] = array('text' => Report, 'link' => zen_href_link(report, '', 'NONSSL'));

if ($za_dir = @dir(DIR_WS_BOXES . 'extra_boxes')) {

while ($zv_file = $za_dir->read()) {

if (preg_match('/systems_dhtml.php$/', $zv_file));

require(DIR_WS_BOXES . 'extra_boxes/' . $zv_file);

}

}

}

?><!-- reports //-->

<?php

echo zen_draw_admin_box($za_heading, $za_contents);

?>

<!-- reports_eof //-->

Page 28: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

หนา sub_order.php (หนาขอมลการสงซอสนคาจากตวจ าหนาย)

<?//

// +----------------------------------------------------------------------+

// |zen-cart Open Source E-commerce |

// +----------------------------------------------------------------------+

// | Copyright (c) 2003 The zen-cart developers |

// | |

// | http://www.zen-cart.com/index.php |

// | |

// | Portions Copyright (c) 2003 osCommerce |

// +----------------------------------------------------------------------+

// | This source file is subject to version 2.0 of the GPL license, |

// | that is bundled with this package in the file LICENSE, and is |

// | available through the world-wide-web at the following url: |

// | http://www.zen-cart.com/license/2_0.txt. |

// | If you did not receive a copy of the zen-cart license and are unable |

// | to obtain it through the world-wide-web, please send a note to |

// | [email protected] so we can mail you a copy immediately. |

// +----------------------------------------------------------------------+

// $Id: sub_order.php 4790 2006-10-18 22:57:46Z ajeh $ //

require('includes/application_top.php');

include ("config.php"); ?>

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

<html <?php echo HTML_PARAMS; ?>>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">

<title><?php echo TITLE; ?></title>

<link rel="stylesheet" type="text/css" href="includes/stylesheet.css"> <link

rel="stylesheet" type="text/css" href="includes/cssjsmenuhover.css"media="all"id="hoverJS"> <script

language="javascript" src="includes/menu.js"></script>

<script language="javascript" src="includes/general.js"></script>

<script type="text/javascript"><!--

function init() {

cssjsmenu('navbar');

if (document.getElementById) {

var kill = document.getElementById('hoverJS');

kill.disabled = true;

}

} // --></script></head> <body marginwidth="0" marginheight="0" topmargin="0"

bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF" onLoad="SetFocus(), init();"><!--

header //--><?php require(DIR_WS_INCLUDES . 'header.php'); ?>

<!-- header_eof //--><!-- body //-->

<table border="0" width="100%" cellspacing="2" cellpadding="2">

<tr><!-- body_text //-->

Page 29: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr><td><table border="0" width="100%" cellspacing="0" cellpadding="0"><tr>

<td class="pageHeading" align="right"><?php echo zen_draw_separator('pixel_trans.gif',

HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

<table width="100%" bordercolor="#99CCCC" border="1" cellpadding="6" cellspacing="6">

<tr bgcolor="#339900">

<td><b>การสงซอสนคาจากตวแทนจ าหนาย</b></td> </tr></table>

<table width="100%" height="600" border="0">

<tr><td align="left" valign="top"><br>

&nbsp;<img src="images/icon_arrow_right.gif" width="13" height="13"><strong><a

href="order.php">พมพค าสงซอ</a></strong>

<img src="images/icons/file_download.gif" width="16" height="16"><a

href="order_save.php">บนทกการสงซอ</a><br><br>

<table width="100%" bgcolor="#99CCCC" border="0" cellpadding="6" cellspacing="1">

<tr align="center" bgcolor="#009966"><td width="9%" height="35"><b>ล าดบท�</b></td>

<td width="19%"><b>เลขทใบสสงซอ</b></td>

<td width="18%"><b>วนทสงซอ</b></td>

<td width="19%"><b>ชอตวแทนจ าหนาย</b></td>

<td width="15%"><b>รหสสนคา</b></td>

<td width="15%"><b>สถานะ�</b></td>

<td width="20%"><b>รายละเอยด</b></td> </tr>

<? $sql="select * FROM supplier Order By order_id desc";

$result=mysql_query($sql) or die (mysql_error());

$num=mysql_num_rows($result);

$n = $num;

if($num > 0){

while ($rs = mysql_fetch_array($result)){

?>

<tr bgcolor="#FFFFFF"> <td height="30" align="center"><?=$n?></td>

<td align="center"><?=$rs["order_id"]?></td>

<td align="center"><?=$rs["date"]?></td>

<td align="center"><?=$rs["sup_name"]?>

<td align="center"><?=$rs["product_id"]?></td>

<td align="center"><?=$rs["detail"]?> </td>

<td align="center"><img src="images/icons/file.gif" width="16" height="16">

<a href="order1.php">เปดด</a></td></tr>

<?php $n--;

}//endif

}//end while

?>

</table>

<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>

</body>

</html>

<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

Page 30: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

หนา order.php (หนาฟอรมพมพใบสงซอสนคา)

<?//

// +----------------------------------------------------------------------+

// |zen-cart Open Source E-commerce |

// +----------------------------------------------------------------------+

// | Copyright (c) 2003 The zen-cart developers |

// | |

// | http://www.zen-cart.com/index.php |

// | |

// | Portions Copyright (c) 2003 osCommerce

// +----------------------------------------------------------------------+

// | This source file is subject to version 2.0 of the GPL license, |

// | that is bundled with this package in the file LICENSE, and is |

// | available through the world-wide-web at the following url: |

// | http://www.zen-cart.com/license/2_0.txt. |

// | If you did not receive a copy of the zen-cart license and are unable |

// | to obtain it through the world-wide-web, please send a note to |

// | [email protected] so we can mail you a copy immediately. |

// +----------------------------------------------------------------------+

// $Id: order.php 4790 2006-10-18 22:57:46Z ajeh $ //

require('includes/application_top.php');

include ("config.php"); ?>

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

<html <?php echo HTML_PARAMS; ?>>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo

CHARSET; ?>"> <title><?php echo TITLE; ?></title>

<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">

<link rel="stylesheet" type="text/css"

href="includes/cssjsmenuhover.css"media="all"id="hoverJS">

<script language="javascript" src="includes/menu.js"></script>

<script language="javascript" src="includes/general.js"></script>

<script type="text/javascript"><!--

function init() {

cssjsmenu('navbar');

if (document.getElementById) {

var kill = document.getElementById('hoverJS');

kill.disabled = true;

}

} // --></script></head>

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0"

leftmargin="0" rightmargin="0" bgcolor="#FFFFFF" onLoad="SetFocus(), init();">

<!-- header //-->

<?php require(DIR_WS_INCLUDES . 'header.php'); ?>

<!-- header_eof //--><!-- body //-->

<table border="0" width="100%" cellspacing="2" cellpadding="2">

<tr><!-- body_text //-->

Page 31: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr><td><table border="0" width="100%" cellspacing="0" cellpadding="0"><tr>

<td class="pageHeading" align="right"><?php echo zen_draw_separator('pixel_trans.gif',

HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

<table width="100%" bordercolor="#99CCCC" border="1" cellpadding="6" cellspacing="6">

<tr bgcolor="#339900">

<form id="form1" name="form1" method="post" action="Purchase_order.php">

<table width="87%" border="0" align="center"><tr>

<td height="619"><p align="center" class="style2"><strong>

ค าสงซอสนคาจากตวแทนจ าหนาย</strong></p>

<p align="center" class="style2"><strong>ใบสงซอ

</strong></p> <div align="center">

<table width="100%" border="0">

<tr>

<td height="531" align="right" class="style2"><table width="100%"

border="0"> <tr> <td width="35%" align="right">เลขท : <label>

<input type="text" name="in_sub_order_id" id="in_sub_order_id"

/></label></td> <td width="32%">&nbsp;</td>

<td width="33%" align="left">วนท

<label>:

<input

type="text" name="in_date_order" id="in_date_order" /> </label></td>

</tr>

</table>

<div align="left">

<div align="left"><div align="center"></div>

<p align="center">รหสตวแทนจ าหนาย :

<label><input type="text" name="in_sub_id" id="in_sub_id" /> </label> </p>

<p align="center">ชอตวแทนจ าหนาย :

<label><input type="text" name="in_sub_name" id="in_sub_name" /> </label></p>

<table width="44%" height="70" border="0" align="center">

<tr><td>ทอย :

<label> <textarea name="in_sub_add" id="in_sub_add" cols="20" rows="5"></textarea>

</label></td> </tr></table>

<p align="center"><label></label></p>

<div align="center"><div align="center">รายการสงซอสนคา </div>

<div align="right"><table width="12%" border="0">

<tr><td><div align="right"><img src="images/insert.gif" width="64" height="30" border="0"

usemap="#Map3"></div></td></tr></table> </div>

<table width="93%" height="73" border="1" align="center">

<tr bordercolor="#FFCC99" bgcolor="#FFFF66">

<td width="10%" bgcolor="#FFCC99" ><div align="center">ล าดบท</div></td>

<td width="10%" bgcolor="#FFCC99" ><div align="center">รหสสนคา</div></td>

<td width="13%" bgcolor="#FFCC99" ><div align="center">ชอสนคา</div></td>

<td width="18%" bgcolor="#FFCC99" ><div align="center">ประเภทสนคาสนคา</div></td>

<td width="12%" bgcolor="#FFCC99" ><div align="center">จ านวนสนคา</div></td>

<td width="12%" bgcolor="#FFCC99" ><div align="center">ราคา/หนวย</div></td>

<td width="16%" bgcolor="#FFCC99" ><div align="center">ราคารวม</div></td>

<td width="19%" bgcolor="#FFCC99" ><div align="center">การกระท า</div></td></tr>

<? $n=0;

$sql="select * from product_order order by product_id desc";

$result=mysql_query($sql) or die (mysql_error());

$num=mysql_num_rows($result);

if($num > 0){

while ($sr = mysql_fetch_array($result)){

Page 32: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

$n++; ?>

<tr bordercolor="#FFCC99" bgcolor="#FFFFFF">

<td height="38"><?=$n?></td>

<td ><?=$sr["product_id"]?></td>

<td><?=$sr["product_name"]?></td>

<td><?=$sr["product_typ"]?></td>

<td><?=$sr["product_qty"]?></td>

<td><?=$sr["product_price"]?></td>

<td><?=$sr["totalprice"]?></td>

<td> <div align="center"><img src="images/o.gif" width="35" height="34" border="0"

usemap="#Map2"><a href="delete_order.php?product_id=<?=$rs["product_id"] ?>"><img

src="images/j.gif" border="0" usemap="#Map"></a></div></td></tr></table>

<table width="92%" border="0" align="center"><tr bordercolor="" bgcolor="">

<td width="7%"><div align="center"></div></td>

<td width="13%"><div align="center"></div></td>

<td width="18%"><div align="center"></div></td>

<td width="13%"><div align="center"></div></td>

<td width="14%"><div align="right">ราคารวม : </div></td>

<td width="18%"><div align="center"><?=$sr["totalprice"]?> </div></td>

<td width="17%"><div align="center"></div></td></tr>

<? }//end while

}//end if

?> </table><p align="center">

<label><input type="submit" name="submit" id="submit" value=" print " /></label>

<label><input type="reset" name="Reset" id="submit" value=" cancel" /></label>

<div align="center></form> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?>

<map name="Map"><area shape="rect" coords="3,4,38,34"

href="delete_order.php"></map><map name="Map2"><area shape="rect" coords="1,4,41,35"

href="frm_edit_order.php"></map> <map name="Map3"><area shape="rect" coords="3,4,62,29"

href="frm_add_order.php"> </map></body></html><?php require(DIR_WS_INCLUDES .

'application_bottom.php'); ?>

Page 33: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

หนา frm_add_order.php (หนาเพมสนคา)

<form action="save_order.php" method="post" enctype="multipart/form-data" name="form1"

id="form1"> <fieldset></p><form id="form6" name="form6" method="post" action="">

<legend>เพมสนคาใหม</legend>

<table width="35%" border="0" align="center"><tr>

<td width="34%">รหสสนคา</td>

<td width="66%">

<label><input type="text" name="in_product_id" id="in_product_id" /></label> </tr>

<tr><td>ชอสนคา</td><td><label>

<input type="text" name="in_product_name" id="in_product_name" /></label></td></tr>

<tr><td>ประเภทสนคา</td>

<td><label><input type="text" name="in_product_typ" id="in_product_typ"

/></label></td></tr<tr><td>จ านวนสนคา</td><td><label>

<input type="text" name="in_product_qty" id="in_product_qty"

/></label></td></tr>

<tr><td>ราคาสนคา</td><td><label><input type="text" name="in_product_price"

id="in_product_price" /></label></td></tr> <tr><td height="54">&nbsp;</td><td><label>

<input type="submit" name="submit" id="submit" value=" save " />

<input type="reset" name="Reset" id="submit2" value=" cancel " /> <br><br><br>

<map name="MapMap"><area shape="circle" coords="18,13,11" href="order.php"></map>

<img src="images/back-button_17-415062040.gif" width="28" height="26" border="0"

usemap="#Map2"><br><br><map name="Map"><area shape="circle" coords="18,13,11"

href="order.php">

</map></label></td></tr></table><p align="center">&nbsp;</p>

</form>

<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>

<map name="Map2"><area shape="circle" coords="16,17,13" href="order.php"></map>

</body>

</html>

<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

Page 34: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

หนา save_order.php (บนทกการเพมขอมล)

<?

$product_id=$_POST["in_product_id"];

$product_name=$_POST["in_product_name"];

$product_typ=$_POST["in_product_typ"];

$product_qty=$_POST["in_product_qty"];

$product_price=$_POST["in_product_price"];

$totalprice =$product_qty*$product_price;

$sql = "insert into product_order

(product_id,product_name,product_typ,product_qty,product_price,totalprice)

values('$product_id','$product_name','$product_typ','$product_qty','$product_price', '$totalprice')";

$result = mysql_query($sql) or die (mysql_error());// เน�เธ�เน�เน€เธ�เน�เธ� error

if ( $result ){

echo "save";

}else{

echo "not save";

} //end if

mysql_close($connect);//ปดการเชอมตอกบฐานขอมล

?>

<meta http-equiv="refresh" content="2;URL=order.php" />

<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>

</body>

</html>

<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

Page 35: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

หนา frm_edit_order.php (การแกไขสนคา)

<?

$product_id=$_GET["product_id"];//การรบคา

$sql="select * from product_order where product_id = '$product_id'";//การดงขอมล

$result=mysql_query($sql) or die (mysql_error());

$num_rows=mysql_num_rows($result);

if($num_rows>0){

$sr = mysql_fetch_array($result);

$product_id = $sr["product_id"];

$product_name = $sr["product_name"];

$product_typ = $sr["product_typ"];

$product_qty = $sr["product_qty"];

$product_price = $sr["product_price"];

}//end if

?>

<form id="form1" name="form1" method="post" action="save_edit_order.php">

<legend>การแกไขขอมล</legend><table width="39%" border="0" align="center">

<tr><td width="30%">รหสสนคา</td>

<td width="70%"><label><input type="text" name="in_product_id" id="in_product_id"

value="<?=$sr["product_id"] ?>"/></label></td></tr>

<tr><td>ชอสนคา</td>

<td><label><input type="text" name="in_product_name" id="in_product_name"

value="<?=$sr["product_name"]?>"/></label></td></tr>

<tr><td>ประเภทสนคา</td>

<td><label><input type="text" name="in_product_typ" id="in_product_typ" value="<?=

$sr["product_typ"]?>"/></label></td></tr>

<tr><td>จ านวนสนคา</td>

<td><label><input type="text" name="in_product_qty" id="in_product_qty"

value="<?=$sr["product_qty"] ?>"/></label></td> </tr>

<tr> <td>ราคาสนคา</td>

<td><label><input type="text" name="in_product_price" id="in_product_price"

value="<?=$sr["product_price"] ?>"/></label></td></tr>

<tr><td>&nbsp;</td>

<td><label> <input type="submit" name="sunmit" id="sunmit" value="save " />

<input type="reset" name="Reset" id="submit" value="cancel" /> <br>

<br> <img src="images/back-button_17-415062040.gif" width="32" height="25"

border="0" usemap="#Map"><br></label></td></tr></table>

<p align="center"><a href="order.php"></a></p>

<div align="center"></div>

</form>

<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>

<map name="Map"><area shape="circle" coords="18,13,11" href="order.php">

</map></body>

</html>

<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

Page 36: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

หนา save_edit_order.php (บนทกการแกไขขอลสนคา)

<?

$product_id=$_POST["in_product_id"];

$product_name=$_POST["in_product_name"];

$product_typ=$_POST["in_product_typ"];

$product_qty=$_POST["in_product_qty"];

$product_price=$_POST["in_product_price"];

$totalprice =$product_qty*$product_price;

$sql = "UPDATE product_order SET product_id = '$product_id',

product_name='$product_name', product_typ= '$product_typ', product_qty= '$product_qty', product_price=

'$product_price', totalprice= '$totalprice' WHERE

product_id='$product_id'"; //การแกไขไฟร

$result = mysql_query($sql) or die (mysql_error());// ใชเชคerror

if ( $result ){

echo "แกไขขอมลเรยบรอยแลว";

}else{

echo "ไมสามารถแกไขขอมลได ";

} //end if

mysql_close($connect);//ปดการเชอมตอฐานขอมล

?>

<meta http-equiv="refresh" content="2;URL=order.php" />

<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>

</body>

</html>

<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

Page 37: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

หนา delete_order.php (การลบสนคา)

<?

$product_id=$_POST["product_id"];

$sql = "delete from product_order where product_id='$product_id' ";

$result = mysql_query($sql) or die (mysql_error());

if($result){

echo "ลบขอมลเรยบรอยแลว";

}else{

echo "ไมสามารถลบขอมลได" ;

}//end if

mysql_close($connect);//ปดการเชอมตอฐานขอมล

?>

<meta http-equiv="refresh" content="2;URL=order.php"/>

<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>

</body>

</html>

<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

Page 38: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

หนา Purchase_order.php (พมพใบสงซอ)

<form id="form1" name="form1" method="post" action="">

<table width="70%" height="1011" border="0" align="left">

<tr> <td height="1007"><div align="center"><p><b>ใบสงซอ</b></p>

<label></label></p>

<p align="center"><img src="images/2.gif" width="207"

height="80"></p> <p align="center"><b>ราน NEGO

SHOP</b></p> <p align="center"><b>ทอย

17 ม.10 ต.บวลาย อ.บวลาย จ.นครราชสมา 30120 </b></p> <p align="right">

<?php echo "<b>เลขทใบสงซอ : </b>$_POST[in_sub_order_id]</br>";?> </p><p

align="right"><?php echo "<b>วนท :</b> $_POST[in_date_order]</br>";?>

<p align="left"> <?php echo "<b>รหสตวแทนจ าหนาย :</b> $_POST[in_sub_id]</br>"; ?>

</p><p align="left"><?php echo "<b>ชอตวแทนจ าหนาย :</b>$_POST[in_sub_name]</br>"; ?>

</p><p align="left"><?php echo "<b>ทอย :</b> $_POST[in_sub_add]"; ?><label> </label>

<p align="center">รายการการสงซอสนคา</p>

<table width="93%" border="1"><tr bgcolor="#FFCC99">

<td><div align="center">ล าดบท</div></td>

<td><div align="center">รหสสนคา </div></td>

<td><div align="center">ชอสนคา</div></td>

<td><div align="center">ประเภทสนคา</div></td>

<td><div align="center">จ านวนสนคา</div></td>

<td><div align="center">ราคา/หนวย</div></td>

<td><div align="center">ราคารวม</div></td></tr><? $n=0;

$sql="select * from product_order order by product_id ";

$result=mysql_query($sql) or die (mysql_error());

$num=mysql_num_rows($result);

if($num > 0){

while ($sr = mysql_fetch_array($result)){

$n++; ?>

<td width="10%"><?=$n?></td>

<td width="13%"><?=$sr["product_id"]?></td>

<td width="21%"><?=$sr["product_name"]?></td>

<td width="17%"><?=$sr["product_typ"]?></td>

<td width="17%"><?=$sr["product_qty"]?></td>

<td width="14%"><?=$sr["product_price"]?></td>

<td width="18%"><?=$sr["totalprice"]?></td></tr></table>

<table width="93%" border="0"><tr><td width="8%" height="35"><div

align="right"> <table width="104%" border="0"><tr>

<td width="87%"><div align="right">ราคารวม :<?=$sr["totalprice"]?></div></td>

<td width="13%">&nbsp;</td></tr></table></div></td></tr>

<? }//end while

}//end if ?> </table>

<p align="right">ลงชอผสงซอ :

(..................................................) </p> <p

align="right">(..................................................) </p>

<p align="center"><input type="button" name="Button" id="submit4" value=" print "

onClick="window.print()" /> </p></div></td></tr></table>

<p align="center">&nbsp;</p></form>

<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>

</body>

</html>

<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

Page 39: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

หนา order_save.php (ฟอรมบนทกการสงซอสนคา)

<form id="form1" name="form1" method="post" action="save.php">

<table width="65%" border="0" align="center"><tr bgcolor="#009900">

<td height="47" colspan="2" align="left" valign="middle"><div align="center">

<p><strong>บนทกการสงซอสนคา</strong></p></div></td></tr>

<tr><td width="31%" align="right">เลขทใบสงซอ :

<label><input type="text" name="in_order_id" id="in_order_id" /></label></td>

td width="28%" align="left">วนทสงซอ :

<label><input type="text" name="in_date" id="in_date" /></label></td></tr>

<tr align="left"><td align="right">รหสตวแทนจ าหนาย :

<label><input type="text" name="in_sup_id" id="in_sup_id" /></label></td>

<td>ชอตวแทนจ าหนาย :

<label><input type="text" name="in_sup_name" id="in_sup_name"

/></label></td></tr>

<tr align="left"><td colspan="2" valign="middle"><table width="52%" border="0"

align="center"> <tr><td><div align="center">ทอย :

<label><textarea name="in_sup_add" id="in_sup_add" cols="45"

rows="5"></textarea></label>

</div></td></tr></table>

<label> </label></td></tr><tr align="left"><td height="33" colspan="2">

<label><div align="center">สถานะ :

<label><input type="text" name="in_detail" id="in_detail"></label></div></label></td></tr>

<tr><td colspan="2">

<label><div align="center">รหสสนคา :

<label><input type="text" name="in_product_id" id="in_product_id"></div></label>

<div align="center"><p><br />

<input type="submit" name="submit" id="submit" value=" save " />

<input type="reset" name="Reset" id="submit2" value=" cancel " />

<br />

<span class="style3"><a href="sub_order.php"><span

closure_uid_l7qk8i="1008">Check</span> data</a></span></p>

<p><br /></p></div></label></td></tr>

<tr><td height="45" colspan="2"><div align="center">

<p><img src="images/44920_1.gif" width="200" height="43"

/></p></div></td></tr></table> </form>

<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>

</body>

</html>

<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

Page 40: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

หนา save.php (บนทกการสงซอ)

<? $order_id=$_POST["in_order_id"];

$date=$_POST["in_date"];

$sup_id=$_POST["in_sup_id"];

$sup_name=$_POST["in_sup_name"];

$sup_add=$_POST["in_sup_add"];

$detail=$_POST["in_detail"];

$product_id=$_POST["in_product_id"];

$sql = "insert into supplier (order_id,date,sup_id,sup_name,sup_add,detail,product_id)

values('$order_id','$date','$sup_id','$sup_name','$sup_add','$detail','$product_id')";

$result = mysql_query($sql) or die (mysql_error());

if ( $result ){

echo "บนทกการสงซอเรยบรอยแลว�";

}else{

echo "ไมสามารบนทกการสงซอได";

} //end if mysql_close($connect);?>

<meta http-equiv="refresh" content="3;URL=order_save.php" />

<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>

</body></html>

<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

Page 41: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

หนา Payment.php (ฟอรมจายช าระเงน)

<form id="form1" name="form1" method="post" action="save_pay.php">

<table width="84%" border="0" align="center">

<tr> <td colspan="3"><div align="center"><p>&nbsp;</p>

<p><strong>การจายช าระเงน</strong></p></div></td></tr> <tr>

<td width="31%" align="right">เลขทการจาย :

<label><input type="text" name="in_payment_id" id="in_payment_id" /></label></td>

<td width="41%">&nbsp;</td><td width="28%" align="left">วนทจาย :

<label><input type="text" name="in_date_pay" id="in_date_pay" /></label></td></tr>

<tr align="left"><td align="right">เลขทการสงซอ :

<label><input type="text" name="in_sup_order_id" id="in_sup_order_id"

/></label></td><td>รหสตวแทนจ าหนาย :

<label><input type="text" name="in_sup_id" id="in_sup_id" /></label></td> </tr>

<tr align="left"><td>&nbsp;</td><td>ชอตวแทนจ าหนาย :

<label><input type="text" name="in_sup_name" id="in_sup_name" /></label></td>

<td>&nbsp;</td></tr>

<tr align="left"> <td>&nbsp;</td><td>ทอย :

<label><textarea name="in_sup_add" id="in_sup_add" cols="45"

rows="5"></textarea></label></td> <td>&nbsp;</td></tr>

<tr align="left"><td>&nbsp;</td><td>จ านวนเงนทช าระ :

<label><input type="text" name="in_price_pay" id="in_price_pay" /></label></td>

<td>&nbsp;</td></tr>

<tr align="left"><td>&nbsp;</td><td>หมายเหต :

<label><textarea name="in_detail" id="in_detail" cols="45"

rows="5"></textarea></label></td> <td>&nbsp;</td></tr><tr><td>&nbsp;</td>

<td align="center"><label><br />

<input type="submit" name="submit" id="submit" value=" save " />

<input type="reset" name="Reset" id="submit2" value=" cancel " />

<input type="button" name="Button" id="submit4" value=" print "

onClick="window.print()" />

<br /><span class="style3"><a href="data_pay.php"><SPAN closure_uid_l7qk8i="1008">Check</SPAN>

data</a></span><br /></label></td>

<td>&nbsp;</td></tr>

<tr><td height="72">&nbsp;</td>

<td><div align="center"><p><img src="images/44920_1.gif" width="200" height="43" /></p>

</div></td><td>&nbsp;</td></tr></table>

<p>&nbsp;</p>

</form>

<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>

</body>

</html>

<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

Page 42: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

หนา save_pay.php (บนทกการจายช าระเงน)

<? $payment_id=$_POST["in_payment_id"];

$date_pay=$_POST["in_date_pay"];

$sup_order_id=$_POST["in_sup_order_id"];

$sup_id=$_POST["in_sup_id"];

$sup_name=$_POST["in_sup_name"];

$sup_add=$_POST["in_sup_add"];

$price_pay=$_POST["in_price_pay"];

$detail=$_POST["in_detail"]; //การเพมลงฐานขอมล

$sql = "insert into payment

(payment_id,date_pay,sup_order_id,sup_id,sup_name,sup_add,price_pay,detail)

values('$payment_id','$date_pay','$sup_order_id','$sup_id','$sup_name','$sup_add', '$price_pay','$detail')";

$result = mysql_query($sql) or die (mysql_error());// ใชเชค error

if ( $result ){

echo "บนทกขอมลเรยบรอยแลว";

}else{

echo "ไมสามารถบนทกขอมลได" ;

} //end if

mysql_close($connect);//ปดการเชอมตอฐานขอมล

?>

<meta http-equiv="refresh" content="3;URL=payment.php" />

<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>

</body>

</html>

<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

Page 43: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

หนา report.php (รายงาน)

<table width="85%" border="0" align="center" bordercolor="#99FF33">

<tr><td width="16%" height="697"><p>&nbsp;</p> <p

align="right"><img src="images/2q583.gif" alt="" width="65" height="100" /></p></td>

<td width="69%" align="center" valign="top"><p><img src="images/44920_1.gif"

width="200" height="43" /><img src="images/a.gif" width="153" height="120"><img

src="images/44920_1.gif" width="200" height="43" /></p>

<table width="96%" border="0"<tr> <td

width="32%"><div align="center"><img src="images/b.jpg" alt="" width="130" height="130"

border="0" usemap="#Map2" /></div></td> <td

width="36%"><div align="center"><img src="images/d.gif" width="130" height="130" border="0"

usemap="#Map3"></div></td> <td

width="32%"><div align="center"><img src="images/c.gif" width="130" height="130" border="0"

usemap="#Map4"></div></td>

<td width="32%"><div align="center"><img src="images/e.gif" width="130" height="130"

border="0" usemap="#Map8"></div></td> </tr><tr>

<td><div align="center"><img src="images/h.gif" width="130" height="130" border="0"

usemap="#Map5"></div></td>

<td><div align="center"><img src="images/f.gif" width="130" height="130" border="0"

usemap="#Map6"></div></td>

<td><div align="center"><img src="images/i.gif" width="130" height="130" border="0"

usemap="#Map7"></div></td>

<td><div align="center"><img src="images/g.gif" width="130" height="130" border="0"

usemap="#Map9"></div></td> </tr></table>

<p><? echo"<hr/>";?></p>

<table width="72%" height="136" border="0" align="center" bordercolor="#FF3366">

<tr><td width="53%"><div align="left">- CP รายงานการสงซอของลกคา</div></td>

<td width="47%"><div align="left">- CUS รายงานลกคา </div></td></tr>

<tr><td><div align="left">- PRO รายงานขอมลสนคา</div></td>

<td><div align="left">- SALE รายงานการขายสนคา </div></td></tr>

<tr><td><div align="left">- PAY รายงานการจายช าระเงน</div></td>

<td><div align="left">- PAY รายงานการช าระเงน </div></td></tr>

<tr><td height="27"> <div align="left">- POIN รายงานจดสงซอ</div></td>

<td><div align="left">- PRD รายงานการรบสนคา</div></td></tr></table></td>

<td width="15%"><p>&nbsp;</p>

<p><img src="images/2q583.gif" width="67" height="98" /></p>

</tr></table>

<map name="Map2" id="Map2"><area shape="circle" coords="69,71,38"

href="report_cusPur.php" /></map><?php require(DIR_WS_INCLUDES . 'footer.php'); ?>

<map name="Map4"><area shape="circle" coords="68,68,38"

href="report_customer.php"></map>

<map name="Map3"><area shape="circle" coords="73,72,40"

href="report_pro.php"></map>

<map name="Map8"><area shape="circle" coords="68,61,37"

href="report_sale.php"></map>

<map name="Map6"><area shape="circle" coords="64,71,38"

href="report_product.php"></map>

<map name="Map9"><area shape="circle" coords="64,73,38"

href="report_point.php"></map> <map name="Map5"><area shape="circle"

coords="73,73,39" href="report_payment.php"></map> <map name="Map7"><area shape="circle"

coords="70,68,38" href="report_paypal.php"></map> </body>

</html>

<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

Page 44: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

หนา report_cusPur (รายงานการสงซอสนคาลกคา)

<div align="center">

<p align="center">&nbsp;</p>

<table width="60%" height="42" border="0" align="center">

<tr> <td width="32%" class="style2">คนหารายงานจากวนทสงซอ</td>

<td width="25%"><form name="form1" method="post" action="">

<label> <input type="text" name="indate1" id="indate2"></label>ถงวนท

</form> </td>

<td width="43%"><form name="form3" method="post" action="">

<label> <input type="text" name="indate2" id="indate2"> </label>

<label><input type="submit" name="search" id="submit" value="คนหา"> </label>

</form></td> </tr></table> <p

align="center"><? echo"<hr/>";?></p>

<p><img src="images/3.gif" width="162" height="71"></p> <p

align="center" class="style2"><b>ราน NEGO SHOP</b></p>

<p align="center" class="style2">ทอย 17 ม.10 ต.บวลาย อ.บวลาย จ.นครราชสมา 30120 Tel.084-

3021474</p><p><? echo"<hr/>";?></p> <table

width="98%" border="0" bordercolor="#00CC00" bgcolor="#FFFFFF"> <tr>

<td bgcolor="#009900"><div align="center"><b>รายงานการสงซอของลกคา</b></div></td></tr>

</table>

<table width="82%" border="0" align="center">

<?php if(isset($_POST['indate1'])){

$indate1 = $_POST['indate1'];

}else if(isset($_POST['indate2'])){

$indate2 = $_POST['indate2'];

$sql = "SELECT * FROM orders WHERE date_purchased >='$indate1' and date_purchased

<= '$indate2' order by date_purchased ";

}else

$sql = "select * from orders order by date_purchased";

}//end if

$result = mysql_query($sql) or die (mysql_error());

$num_row = mysql_num_rows($result);

if ($num_row >0){

while ($rs = mysql_fetch_array($result)){

?>

<tr> <td colspan="2" bordercolor="#FF6666"

bgcolor="#FF6666"><div align="left">รหสการสงซอ :<?=$rs["orders_id"] ?></div></td>

<td bordercolor="#FF6666"

bgcolor="#FF6666"><div align="left">รวมการสงซอ :<?=$rs["order_total"] ?></div></td> </tr>

<tr> <td width="35%"><div align="left">รหสลกคา : <?=$rs["customers_id"] ?></div></td>

<td colspan="2"><div align="left">ชอลกคา :<?=$rs["customers_name"] ?></div></td> </tr>

<tr> <td><div align="left">วนทสงซอ : <?=$rs["date_purchased"] ?> </div></td>

<td width="36%"><div align="left">วนทค าสงเสรจสน :<?=$rs["orders_date_finished"]

?></div></td>

<td width="29%"><div align="left">สถานะการสงซอ : <?=$rs["orders_status"]

?></div></td> </tr> <?

}//end while

}// end if

?>

Page 45: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

หนา report_payment.php (รายงานจายช าระเงน)

<div align="center">

<p align="right">&nbsp;</p>

<p><img src="images/2.gif" width="177" height="75"></p>

<p align="center" class="style3"><b>ราน NEGO SHOP</b></p>

<p align="center" class="style3">ทอย 17 ม.10 ต.บวลาย อ.บวลาย จ.นครราชสมา 30120 Tel.084-

3021474</p><p><? echo"<hr/>";?></p>

<table width="99%" height="31" border="0" bordercolor="#FFFFFF">

<tr><td bgcolor="#009900"><div align="center" class="style4">รายงานการการจายช าระเงน

</div></td></tr></table><table width="99%" border="1" align="center">

<tr align="center" bgcolor="#999999"><td width="14%">เลขทการจายช าระเงน</td>

<td width="17%">วนทจาย</td>

<td width="14%">เลขทการสงซอ</td>

<td width="28%">ชอตวแทนจ าหนาย</td>

<td width="18%">จ านวนทจายช าระ</td>

<td width="9%">หมายเหต</td></tr>

<? $sql="select * from payment order by payment_id ";

$result=mysql_query($sql) or die (mysql_error());

$num=mysql_num_rows($result);

if($num > 0){

while ($sr = mysql_fetch_array($result)){ ?>

<tr><td><?=$sr["payment_id"]?></td>

<td><?=$sr["date_pay"]?></td>

<td><?=$sr["sup_order_id"]?></td>

<td><?=$sr["sup_name"]?></td>

<td><?=$sr["price_pay"]?></td>

<td><?=$sr["detail"]?></td></tr>

<?}//end while

}//end if?> </table> <input type="submit" name="bunton" id="bunton"

value="พมพ" onClick="window.print()"> </div></td> </tr></table></div></body></html>

Page 46: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

หนา report_pro.php (รายงานสนคา)

<div align="center">

<p align="center"><img src="images/2.gif" width="185" height="76"></p>

<p align="center" class="style2"><b>ราน NEGO SHOP</b></p>

<p align="center" class="style2">ทอย 17 ม.10 ต.บวลาย อ.บวลาย จ.นครราชสมา 30120 Tel.084-

3021474</p>

<p><? echo"<hr/>";?></p>

<table width="100%" border="0" bgcolor="#33CC33">

<tr><td bgcolor=""><div align="center" class="style2"><b>รายงานขอมลสนคา</b></div></td>

</tr></table> <form name="form1" method="post" action="">

<label></label>

</form>

<table width="93%" border="1">

<tr><td width="14%" bgcolor="#999999"><div align="center">รหสสนคา</div></td> <td

width="19%" bgcolor="#999999"><div align="center">โมดลสนคา</div></td> <td

width="12%" bgcolor="#999999"><div align="center">ประเภทสนคา</div></td>

<td width="18%" bgcolor="#999999"><div align="center">จ านวน</div></td>

<td width="18%" bgcolor="#999999"><div align="center">ราคา</div></td>

<td width="19%" bgcolor="#999999"><div align="center">น าหนก</div></td>

</tr> <?

$sql= "select

products_id,products_model,master_categories_id,products_quantity,products_price,products_weight from

products order by products_id";

$result=mysql_query($sql) or die (mysql_error());

$num=mysql_num_rows($result);

if($num > 0){

while ($sr = mysql_fetch_array($result)){

?>

<tr><td><?=$sr["products_id"] ?></td>

<td><?=$sr["products_model"] ?></td>

<td><?=$sr["master_categories_id"] ?></td>

<td><?=$sr["products_quantity"] ?></td>

<td><?=$sr["products_price"] ?></td>

<td><?=$sr["products_weight"] ?></td>

</tr> <?

}//end while

}//end if

?>

</table><table width="100%" border="0" align="left">

<tr><td width="29%"><div align="left"><img src="images/back-button_17-415062040.gif"

width="20" height="20"><a href="report.php">กลบ</a></div></td>

<td width="71%"><div align="right"><input type="submit" name="button" id="button"

value="พมพ" onClick="window.print()"></div></td>

</tr>

</table>

</div>

<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>

</body>

</html>

<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

Page 47: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

ภาคผนวก ค

บทน าเสนอโครงงานพาณชยอเลกทรอนกส

Page 48: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

บทน าเสนอโครงงานพาณชยอเลกทรอนกส

ประจ าปกาศกษา 1/2554

วชา : 0904403 โครงงานพาณชยอเลกทรอนกส 1 จ านวน 1 หนวยกต

ชอโครงงาน: ระบบซอ-ขายสนคาออนไลน ราน NEGO SHOP โดยใช Zen-Cart

รายชอผศกษาโครงงาน :

นางสาววนใหม พชสงห รหสนสต 51010916013

อาจารยทปรกษา :

อาจารยเกรยงศกด จนทนอก

(............................................................)

กรรมการทปรกษา

วนท........../.................../..........................

(............................................................)

กรรมการคนท 1

วนท......../..................../...........................

(..............................................................)

กรรมการคนท 2

วนท........./.................../..........................

Page 49: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

บทท 1 บทน า

1.1.ความเปนมาและความส าคญของปญหา

ปจจบนมเทคโนโลยทอ านวยความสะดวกมากมายเขามาเปนสวนหนง ในการด ารงชวตของ

มนษย ซงการท าธรกจผาน Internet เปนธรกจอกอยางหนงทไดรบความนยมเปนอยางมากในปจจบน

โดยมผท าธรกจจ านวนมากหนมาท าธรกจออนไลน หรอทเรยกกนวา E-commerce เพอเพมชองทางใน

การท าการคา การคาขาย การท าธรกจจากอดตจนถงปจจบนไดเปลยนแปลงไปเปนอยางมาก

เมอเทคโนโลยไดเขามามบทบาทในกาท าธรกจมากขนทกเวลา นคอขอดของการขายสนคาในโลก

ออนไลน จงเปนโอกาสของผประกอบการในการสรางผลประโยชนทางธรกจใหเกดขนโดยใช

เทคโนโลยทมอย

ดงนนผจดท าไดมองเหนแนวทางในการเพมชองทางในการท าธรกจ และเขาถงงลกคาไดอยาง

ตรงจด โดยการจดท าเวบไซตรานคาออนไลนเพอตองกาขายสนคาออนไลนและจดการสนคาใหม

ประสทธภาพเพอตอบสนองความตองการของลกคา

1.2. วตถประสงคของการศกษา

1.2.1. เพอพฒนาเวบไซตจดจ าหนายสนคาออนไลน ใหมปะสทธภาพมากขน

1.2.2. เพอเพมชองทางในการจดจ าหนายสนคา

Page 50: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

1.3. ขอบเขตการด าเนนงาน

สวนท 1 :หนาราน (ส าหรบลกคา)

1.3.1.ระบบสมาชก

1.3.1.1. ลกคาสามารถเขาชมสนคาแตละรายการได

1.3.1.2. ลกคาสามารถสมครสมาชก

1.3.1.3. ลกคาสามารถบนทก แกไข ลบขอมลสมาชกได

1.3.1.4. ลกคาสามารถเขาสระบบ-ออกจากระบบได

1.3.2. ระบบการสงซอ

1.3.2.1. ลกคาสามารถสงซอสนคาผานเวบไซตได

1.3.2.2. ลกคาสามารถตรวจสอบรายการสนคาและราคาทท าการสงซอได

1.3.2.3. ลกคาสามารถเพม บนทก แกไข ยกเลกขอมลการสงซอได

1.3.2.4. ลกคาสามารถจายช าระเงนผานระบบ PayPal บนเวบไซตได

1.3.2.5. ลกคาสามารถเลอกรปแบบการจดสงได

1.3.3. ระบบรบแจงการช าระเงน

1.3.3.1. รองรบการจายช าระเงนผานระบบ PayPal บนเวบไซตได

1.3.3.2. สามารถแจงขอมลการโอนเงนผาน Email ของลกคาได

สวนท 2: หลงราน (ส าหรบผดแลระบบ)

1.3.4. ระบบขายสนคา

1.3.4.1. ระบบสามารถขายสนคาได

1.3.4.2. สามารถ เพม แกไข ลบ ขอมลสนคาได

1.3.4.3. สามารถ เพม แกไข ลบ บนทกขอมลการขายได

1.3.5. ระบบตดจ าหนายสนคา

1.3.5.1. สามารถ เพม แกไข ลบ ขอมลการตดจ าหนายได

1.3.5.2. สามารถแสดงขอมลสนคาทตดจ าหนายได

1.3.6. ระบบการสงซอสนคาจากตวแทนจ าหนายและการรบสนคา

1.3.6.1. สามารถเพม บนทก แกไข ยกเลกขอมลการสงซอสนคาจากตวแทนจ าหนายได

1.3.6.2. สามารถพมพใบสงซอได

Page 51: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

1.3.6.3. สามารถดขอมลการสงซอสนคาจากตวแทนจ าหนายได

1.3.6.4. สามารถ เพม แกไข ลบ ขอมลการรบสนคาได

1.3.6.5. สามารถเพม ตรวจสอบ ขอมลการจายช าระเงนใหกลบตวแทนจ าหนายได

1.3.6.6. สามารถเพม แกไข ลบ ขอมลตวแทนจ าหนายได

1.3.7. ระบบรายงาน

1.3.7.1. รายงานการสงซอ

1.3.7.2. รายงานการรบสนคา

1.3.7.3. รายการจายช าระเงน

1.3.7.4. รายงานจดสงซอ

1.3.7.5. รายงานลกคา

1.3.7.6. รายงานการขายสนคา

1.3.7.7. รายงานการรบช าระเงน

1.3.7.8. รายงานสนคา

1.4. อปกรณและเคองมอในการด าเนนงาน

1.4.1. ฮารดแวร

1.4.1.1. เครองคอมพวเตอร จ านวน 1 เครอง

1.4.1.2. เครอง Printer จ านวน 1 เครอง

1.4.1.3. กลองถายรปดจตอล จ านวน 1 เครอง

1.4.2. ซอฟแวร

1.4.2.1. โปรรแกรม Microsoft Windows 7 เปนโปรแกรมระบบปฏบตการ

1.4.2.2. ซอฟตแวร Open sourceโดยใช Zen cart ในการพฒนาเวบไซต

1.4.2.3. Dreamweaver ใชในการพฒนาเวบไซต

1.4.2.4. Photoshop ใชในการตกแตงภาพ

1.4.2.5. Flash ใชในการสรางภาพเคลอนไหว

1.4.2.6. โปรแกรม AppServ

1.4.2.6.1. Apache Web Server ท าหนาทเปน Web server

1.4.2.6.2. MySQL ส าหรบจดเกบฐานขอมล

Page 52: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

1.4.2.6.3. PHP เปนภาษาทใชในการพฒนาระบบ

1.4.2.6.4. PhpMyAdmin ใชเปนเครองมอในการบรหารจดการฐานขอมล

MySQL

1.5. ขนตอนในการด าเนนงาน

วธของการวเคราะหและออกแบบระบบงานคอมพวเตอร ซงมทงหมด 7 ขนตอน

1.5.1. น าเสนอหวขอตออาจารยทปรกษา (ศกษาทฤษฏและเทคโนโลยทใช)

1.5.2. ศกษาและเกบรวบรวมขอมล

1.5.3. วเคราะหขอมล

1.5.4. ออกแบบโปรแกรม

1.5.5. พฒนา –ทดสอบ

1.5.6. น าเสนอผลงานตอคณะกรรมการ

1.5.7. จดท าเอกสาร

Page 53: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

1.6. ระยะเวลาในการด าเนนงาน ตารางท 1-1 ตารางระยะเวลาในการท างาน

กจกรรม เดอนมถนายน พ.ศ.2554 ถง เดอนมนาคม พ.ศ.2555

ม.ย. ก.ค. ส.ค. ก.ย. ต.ค. พ.ย. ธ.ค. ม.ค. ก.พ. ม.ค. -น าเสนอหวขอตอ อาจารยทปรกษา

-ศกษาและเกบรวบรวมขอมล

-วเคราะหขอมล -ออกแบบโปรแกรม -พฒนาขทดสอบ -น าเสนอผลงานตอ คณะกรรมการ

-จดท าเอกสาร 1.7. ผลทคาดวาจะไดรบ

1.7.1. เพอเพมชองทางการจดจ าหนาย 1.7.2. มเวบไซตรานคาออนไลนเปนของตวเอง 1.7.3. ชวยใหสะดวกตอการตดตอสอสารกบลกคา 1.7.4. เกดการบรการซอ – ขาย ไดตลอด 24 ชวโมง

Page 54: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

ภาคผนวก ง

รายงานการเขาพบทปรกษา

Page 55: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

รายงานการเขาพบทปรกษา

ชอเรอง ระบบซอ-ขายสนคาออนไลน ราน NEGO SHOP โดยใช Zen-Cart

ผศกษา นางสาววนใหม พชสงห รหสนสต 51010916013 Ecom51

ทปรกษา อาจารยเกรยงศกด จนทนอก

วน เดอน ป รายงานความคบหนา/การใหค าปรกษา ลายมอชอทปรกษา 29 มถนายน 2554 เขาพบครงท1 เมอวนท 23 มถนายน 2554 สงบท1-2

14 กรกฎาคม 2554 วนท 14 ก.ค.54 สงบทท1-2

25 สงหาคม 2554 สงบทท1-2

15 กนยายน 2554 สงงานกอนขนสอบ

15 พฤศจกายน 2554

สงความคบหนาของโครงงานโปรเจค2 ในสวนทตองเขยนโคดเพม และรายละเอยดตางๆของโปรแกรม

13 ธนวาคม 2554 สงความคบหนาของโครงงานโปรเจค2 ในสวนทมปญหา แลยรายละเอยดของระบบงานตางๆ

17 มกราคม 2555 สงความคบหนาของโครงงานโปรเจค2 ในสวนทเชอมตอกบโอเพนซอลล และการดงขอมลผานทางรายงาน

Page 56: ภาคผนวก - bc.msu.ac.th402).pdf · Password คือ “buuic” ในที่นี้ต้องการสร้างฐานข้อมูลชื่อ

21 กมภาพนธ 2555 สงควมาเรยนรอยของระบบงานทงหมด และพรอมทจะขนสอบโปรเจค