readingDoc.xls



Similar documents
archiveDoc.xls

橡t15-shibuya.kashiwa.ppt

Microsoft Word - Win-Outlook.docx

Introduction Purpose This training course demonstrates the use of the High-performance Embedded Workshop (HEW), a key tool for developing software for

fx-9860G Manager PLUS_J

評論・社会科学 84号(よこ)(P)/3.金子

Contents Logging in 3-14 Downloading files from e-ijlp 15 Submitting files on e-ijlp Sending messages to instructors Setting up automatic

Introduction to Information and Communication Technology (a)

Z7000操作編_本文.indb

CAS Yale Open Source software Authentication Authorization (nu-cas) Backend Database Authentication Authorization Powered by A

MOMW_I_,II 利用ガイド.PDF


ACS電子ジャーナル利用マニュアル

28 Docker Design and Implementation of Program Evaluation System Using Docker Virtualized Environment


取扱説明書_KX-PW100CL

JC オンライン投稿の操作方法について(mac) 2011_9 FINAL


Actual ESS Adapterの使用について

Microsoft Word - KUINS-Air_W10_ docx

Microsoft Word - Live Meeting Help.docx

2

はじめに

3 Powered by mod_perl, Apache & MySQL use Item; my $item = Item->new( id => 1, name => ' ', price => 1200,

JavaScript の使い方

WordPress Web

H8000操作編

PowerPoint Presentation

2

2

Introduction Purpose This course explains how to use Mapview, a utility program for the Highperformance Embedded Workshop (HEW) development environmen

2 3

Vol.55 No (Jan. 2014) saccess 6 saccess 7 saccess 2. [3] p.33 * B (A) (B) (C) (D) (E) (F) *1 [3], [4] Web PDF a m

Web apache

名称未設定

Wiki Wiki Wiki...

2. 投稿マニュアル.xlsm

LWW EJ on Ovid LWW Ovid Online (Ovid Web Gateway) Ovid Online LWW tutorial Ovid Online Refresh Ovid Online LWW Ovid Medline, Cinahl, EBMR, Ovid

L3 Japanese (90570) 2008

PowerCOBOL ユーザーズガイド

Microsoft Word - D JP.docx

*Ł\”ƒ‚ä(DCH800)

外部SQLソース入門

PowerCOBOL ユーザーズガイド

LWW EJ on Ovid LWW Ovid Online (Ovid Web Gateway) Ovid Online LWW tutorial Ovid Online Refresh Ovid Online LWW Ovid Medline, Cinahl, EBMR, Ovid

Systemwalker IT Service Management Systemwalker IT Service Management V11.0L10 IT Service Management - Centric Manager Windows

Introduction Purpose This training course describes the configuration and session features of the High-performance Embedded Workshop (HEW), a key tool

A B C B C ICT ICT ITC ICT

32C2100操作編ブック.indb

自然言語処理16_2_45

FileMaker ODBC and JDBC Guide

10th Developer Camp - B5

2 3

Web Basic Web SAS-2 Web SAS-2 i


2

1 ex01.sql ex01.sql ; user_id from (select user_id ;) user_id * select select (3+4)*7, SIN(PI()/2) ; (1) select < > from < > ; :, * user_id user_name

: Name, Tel name tel (! ) name : Name! Tel tel ( % ) 3. HTML. : Name % Tel name tel 2. 2,., [ ]!, [ ]!, [ ]!,. [! [, ]! ]!,,. ( [ ], ),. : [Name], nam


untitled

HIS-CCBASEver2

2

Microsoft Word - PrivateAccess_UM.docx

Web Web Web Web Web, i

FileMaker Server 9 Getting Started Guide

19_22_26R9000操作編ブック.indb

取説_KX-PW101CL_PW102CW

etrust Access Control etrust Access Control UNIX(Linux, Windows) 2

untitled

…l…b…g…‘†[…N…v…“…O…›…~…fi…OfiÁŸ_

Read the following text messages. Study the names carefully. 次のメッセージを読みましょう 名前をしっかり覚えましょう Dear Jenny, Iʼm Kim Garcia. Iʼm your new classmate. These ar



Please enter the following 'extra' attributes to be sent with your certificate request A challenge password []: An optional company name []: Using con

X Window System X X &


ZV500操作編_本文.indb

2



untitled

Windows Web Windows Windows WinSock

ii II Web Web HTML CSS PHP MySQL Web Web CSS JavaScript Web SQL Web

New version (2.15.1) of Specview is now available Dismiss Windows Specview.bat set spv= Specview set jhome= JAVA (C:\Program Files\Java\jre<version>\

fiš„v3.dvi


1 SQL Server SQL Oracle SQL SQL* Plus PL/SQL 2 SQL Server SQL Server SQL Oracle SQL SQL*Plus SQL Server GUI 1-1 osql 1-1 Transact- SQL SELECTFROM 058

スライド 1

FileMaker 15 ODBC と JDBC ガイド

「プログラミング言語」 SICP 第4章 ~超言語的抽象~ その6

C FGIH C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C


AuthorManual_JSTP.ppt

News_Letter_No35(Ver.2).p65

XMLアクセス機能説明書

open / window / I / shall / the? something / want / drink / I / to the way / you / tell / the library / would / to / me

H2000操作編ブック.indb

Specview Specview Specview STSCI(Space Telescope SCience Institute) VO Specview Web page htt

323742RH500操作編.indb

32_42H3000操作編ブック.indb

Transcription:

北 星 学 園 大 学 短 期 大 学 部 英 文 学 科 英 語 読 解 能 力 の 効 率 的 習 得 向 上 システム インストール&テクニカルマニュアル 2005 年 3 月 ( 有 )ITコンピュータシステム システムエンジニア 関 谷 成 実

Installation 1 Make directories and copy all files as follows (Please refer to php/javascript/html/flash source codes and comments for details of each program) 以 下 と 同 様 の 構 造 のディレクトリを 作 成 してください ( 詳 細 はPHP/JavaScript/html/flashなどのソース 内 コメントをご 覧 下 さい) You need to adjust permission for download and upload directory. またダウンロード アップロードなどのディレクトリには 適 切 なパーミッションを 与 えてください Directory Program/Data Explanation common (Technical programs) read_db.inc Extended reading class for MySQL var $Host = "localhost"; (db_mysql.inc) MySQL access class(from PHPLIB) var $Database = "abc"; moodle_db.inc Extended reading class for Moodle on MySQL var $User = "abc_user"; reading.inc functions for this system ( 関 数 群 ) var $Password = "abc_pass"; common.inc Common functions(original by Narumi Sekiya) *ご 自 身 のシステムにあわせて 設 定 してください jcode.phps Free Japanese Encode/Decode functions *Please set your own information open.php moodle connection page index.html main page reading.swf Flash object embeded on index.html reading.fla checkperson.php Check id/pw with moodle's mdl_user (moodleデータベースに 対 するチェック)/LDAP server getsession.php get session information getcat12.txt Get category1-2 list from text file (カテゴリー1,2のリスト) getcatresult.php Get category3 list from MySQL by cat1-2 keys (カテゴリー1,2の 条 件 によるカテゴリー3のリスト) logout.php geturl("logout.php") menu.php Menu readstory.php Stories learnwords.php Learn Words Meanings sc.php Words into Gaps quiz.php True or False? style.css Style sheet for html files updatestory.php cron program for keeping stories and words (Cronプログラム) hint.js hints Javascript functions admin (Administrator Pages) index.php Word List Maintenance story.php Story Maintenance word.php Word Maintenance

2 Make MySQL DB(same setting as reading_db.in (Please refer to MySQL/Cpanel/phpMyAdmin/Etc manuals for details of each setting.) Database: User Password abc abc_user abc_pass CREATE TABLE t_story( id INT AUTO_INCREMENT PRIMARY KEY, cat1 TEXT, cat2 INT, cat3 INT, no INT NOT NULL, title TEXT NOT NULL, text TEXT NOT NULL, gapwords TEXT, questions TEXT, wordindex1 TEXT, wordindex2 TEXT, wordindex3 TEXT, level TEXT, chk INT, upd TEXT NOT NULL )

CREATE TABLE t_word( id INT AUTO_INCREMENT PRIMARY KEY, word TEXT NOT NULL, explanation TEXT NOT NULL, sentence1 TEXT, sentence2 TEXT, sentence3 TEXT, hint1 TEXT, hint2 TEXT, hint3 TEXT, adda TEXT, addb TEXT, upd TEXT NOT NULL ) CREATE TABLE t_score ( id int(11) NOT NULL auto_increment, mdl_user_id int(10) unsigned NOT NULL default '0', dt text NOT NULL, cat1 text NOT NULL, cat2 text NOT NULL, cat3 text NOT NULL, kind text NOT NULL, score text, upd text NOT NULL, PRIMARY KEY (id) ) TYPE=MyISAM AUTO_INCREMENT=15 ;

Flowchart of data TAB separated text file HyperCard Stack export as text(tab separated) import to MySQL on Web MySQL + PHP + Flash Self maintenance on Web

Procedure 1 Maintain data(word, story) by FileMaker Pro 2 Export the data as tab separated text 3 Import the data into READING MATERIAL SYSTEM on the web 4 Check them on the web Technical Points 1 wordindex is for speedy display 2 t_story's wordindex depends on t_word, so if you change some words in t_word, you need to regenerate wordindex. 3 Style Sheet/Javascript gives display interface for students How it works story1 story2 story3 t_story story4 story5 a word about the aches. a, an word used before nouns, to indicate... about nearly, approximately... t_word ache (n), aches continuous dull pain... <a class="hint1" title="help message" onclick="showhint(this);">word</a>.hint1 { text-decoration:underline } pop up message for Internet Explorer message by Javascript

Basic procedure for accessing Database(PHPLib) $db = new DB_reading; prepare for db access $sql = "SELECT * " make SQL. " FROM t_story " SELECT all items FROM table t_story WHERE id is $id. " WHERE id = $id "; $db->query($sql); execute SQL $db->next_record(); read the first record from table(t_story) $no = $db->f("no"); get no $title = $db->f("title"); get title $text = $db->f("text"); get text $wordindex = $db->f("wordindex"); get wordindex LDAP authentication checkperson.php $ds=ldap_connect("aries.hokusei.ac.jp"); if ($ds) { $r=@ldap_bind($ds,"uid=$un,ou=users,dc=hokusei,dc=ac,dc=jp",$pw); if ($r === -1) { print "Error: ".ldap_error($ds); } elseif ($r === TRUE) { $sr=ldap_search($ds,"ou=users, dc=hokusei,dc=ac,dc=jp", "uid=$un"); $info = ldap_get_entries($ds, $sr); $fsname = split("\.",$info[0]["gecos"][0]); $st.= "&id=".$un; $st.= "&firstname=".$fsname[0]; $st.= "&lastname=".$fsname[1]; $st.= "&email=".$un."@hokusei.ac.jp"; LDAP connect LDAP bind LDAP search LDAP get_entries

Connection from Moodle CMS Home >> Course >> Resources >> Reading >> Editing resource open.php $sql = "SELECT * ". " FROM mdl_user". " WHERE username = '$id' ". " AND password = '$pw' " データが 存 在 する 場 合 セッションをセット $_SESSION["ss_id"] = $id; $_SESSION["ss_name"] = $nm; データが 存 在 しない 場 合 セッションクリア header("location: index.html"); index.html reading.swf getsession.php セッションからss_id, ss_nameを 取 得 しswfへ 返 す