CodeIgniter Con 2011, Tokyo Japan, February

Similar documents
JavaScript 1.! DOM Ajax Shelley Powers,, JavaScript David Flanagan, JavaScript 2

Lightweight LanguageのIPv6対応PHP5編

2

1

untitled

ジョインポイント写像に基づく ドメイン特化AO機構の開発手法

スライド 1

橡t15-shibuya.kashiwa.ppt

第 2 部 JavaScript 編 17 演習の答え 17.1( 演習 3-3)1 列目の width を 200px 2 列目を 300px にしなさい pr3-3.html <title> </title> <table border="1" style="border-collapse:co

2

JavaScript の使い方

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

Java演習(4) -- 変数と型 --

演習室の PC のハードディスクには演習で作成したデータは保管できません 各 PC の ネットワーク接続 ショートカットからメディア情報センターのサーバーにアクセスしてください (Z ドライブとして使用できます ) 演習名 使用するフォルダ 演習 1 Z: Web データ管理 演習

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

_IMv2.key

SmartBrowser_document_build30_update.pptx

8 if switch for while do while 2

SVG資料第10回目(その2) Ajaxによる同期通信と非同期通信の違い

For_Beginners_CAPL.indd

Microsoft Word - PHP_SQLServer2012

2003年度 情報処理概論

PowerPoint プレゼンテーション

やさしいJavaプログラミング -Great Ideas for Java Programming サンプルPDF

paper.pdf

新・明解Java入門

2009 Web B012-1

JavaScript演習

ストラドプロシージャの呼び出し方

Web プログラミング 1 JavaScript (4) (4 章 ) 2013/7/17( 水 ) 日時 講義内容 4/10 ( 水 ) ガイダンス Web (1 章 ) 4/17 ( 水 ) HTML+CSS (1) (2 章 ) 4/24 ( 水 ) HTML+CSS (2) (2 章 ) 5

Gray [6] cross tabulation CUBE, ROLL UP Johnson [7] pivoting SQL 3. SuperSQL SuperSQL SuperSQL SQL [1] [2] SQL SELECT GENERATE <media> <TFE> GENER- AT

1_cover

<td width=99%><input type="file" size="80" name="file"></td> <td width=1% nowrap align=right valign=top> 削除キー : </td> <td width=99%><input type="passw

intra-mart Accel Platform — Office 365 連携プログラミングガイド   初版  

GIMP

2 Java 35 Java Java HTML/CSS/JavaScript Java Java JSP MySQL Java 9:00 17:30 12:00 13: 項目 日数 時間 習得目標スキル Java 2 15 Web Java Java J

Taro php.jtdc

CodeIgniter とは? アメリカ EllisLab 社が開発配布しているオープンソースの PHP フレームワーク 2006 年 2 月リリース

listings-ext

スライド タイトルなし

Condition DAQ condition condition 2 3 XML key value

10 (1) s 10.2 rails c Rails 7 > item = PlanItem.new => #<PlanItem id nil, name nil,...> > item.name = "" => "" > item.valid? => true valid? true false

d_appendixB-asp10appdev.indd

Microsoft PowerPoint - widget.ppt

PowerPoint プレゼンテーション

e10s におけるプロセス間通信の基本 219 HACK #34 Components.manager.removeBootstrappedManifestLocati on() function shutdown(adata, areason) { const IOService =


NPCA部誌2018

簡単に素敵なキャプチャーを設置できるphpライブラリSecurimageの設置方法 | aoringo works

myx_backup Ver 1.10のPHP7対応

モバイルアプリを Azure で作る - 開発環境を整える コマンドでのパッケージと実 準備 テキストエディタとコマンドで開発する Windows Azure Platform 上で動かす Web アプリケーションの開発にあたっては Microsoft Visual Studio や Eclipse

com.ibm.etools.egl.jsfsearch.tutorial.doc.ps

Microsoft PowerPoint - PHPフレームワーク.ppt [互換モード]

hands_on_4.PDF

インターネットマガジン1999年10月号―INTERNET magazine No.57

Microsoft PowerPoint - PHPフレームワーク.ppt [互換モード]


lifedesign_contest_No3

untitled

オンラインテスト

平和教育の目標と主題(案)

8th CodeGear Developer Camp

前ページからの続き // テキストボックス02 id 属性で取得 // id 属性で取得する場合は一意に決まるので 何番目かの指定は不要 var textbox02elem = document.getelementbyid("text_box02_id"); if ("001" == statee

intra-mart マスカット連携ガイド

javascript key

2

intra-mart Accel Platform — IM-Repository拡張プログラミングガイド   初版  

54 5 PHP Web hellow.php 1:<?php 2: echo "Hellow, PHP!Y=n"; 3:?> echo PHP C 2: printf("hellow, PHP!Y=n"); PHP (php) $ php hellow.php Hellow, PHP! 5.1.2

FX ) 2

FX自己アフリエイトマニュアル

GIMP

2

untitled

untitled

C¥×¥í¥°¥é¥ß¥ó¥° ÆþÌç

AJAXを使用した高い対話性を誇るポートレットの構築

WordPress Go Go

class IntCell { private int value ; int getvalue() {return value; private IntCell next; IntCell next() {return next; IntCell(int value) {this.value =

Oracle JDeveloper 10g ADF Creation Date: Jul 07, 2004 Last Update: Jul 08, 2004 Version 1.0

(2-3)CyberSpace

スライド 1

_IPv6Summit金沢_IPv6アプリケーション開発.key

P08・01/柴田 〃 加藤 柴田 平島

スライド 1

情報システム設計論II ユーザインタフェース(1)

解きながら学ぶJava入門編

K227 Java 2

intra-mart Accel Platform — Office 365 連携プログラミングガイド   第2版   None

06佐々木雅哉_4C.indd

インターネット利用ソリューション

モバイルアプリを Azure で作る - データを扱う Azure Storage を利 してデータを保存する 本稿では PHP と Windows Azure を使って 画像などのファイルを扱うアプリケーションを開発する方法を説明します Windows Azure Platform では データの

時間

CodeGear Developer Camp

kikin2_web.pdf

class IntCell { private int value ; int getvalue() {return value; private IntCell next; IntCell next() {return next; IntCell(int value) {this.value =

GM-F520S/GM-F470S/GM-F420S

Java学習教材

Sinatra と MongoDB 今回は Sinatra で MongoDB の操作を体験してみます 進捗に合わせて ドライバから Ruby で使える便利な ORM の紹介をします

ALG ppt

intra-mart Accel Platform — Office 365 連携プログラミングガイド   第3版  

Transcription:

CodeIgniter Con 2011, Tokyo Japan, February 19 1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

http://www.iviking.org/fx.php/ 25

26

10 27

28

29

30

31

<?php $config[ 'dataserver' ] = '127.0.0.1'; $config[ 'dataport' ] = '80'; $config[ 'datatype'] = 'FMPro7'; $config[ 'dataurltype' ] = 'http'; $config[ 'database'] = 'TestDB'; $config[ 'dbuser' ] = 'web'; $config[ 'dbpassword'] = 'password';?> 32

<?php if(! defined( 'BASEPATH' )) exit( 'No direct script access allowed' ); require_once( 'FX/FX.php' ); class CIFX extends FX { function CIFX ( $params ) { } parent::fx( $params[ 'dataserver' ], $params[ 'dataport' ], $params[ 'datatype'], $params[ 'dataurltype' ] ); $this->setdbuserpass( $params[ 'dbuser'], $params[ 'dbpassword' ] ); $this->initializefx(); $this->database = $params[ 'database' ]; var $database; var $fxresult; function initializefx() { $this->setcharacterencoding( 'UTF-8' ); } function initializefxwithshiftjis() { } $this->setcharacterencoding( 'sjis' ); 33

class CIFX extends FX { : function queryfromdb( $layout, $criteria=array(), $sort=array(), $skip=0, $limit=10000000000, $grouping=null) { $this->setdbdata( $this->database, $layout, $limit ); $this->fmskiprecords( $skip ); foreach( $criteria as $field=>$value ) { if ( is_array( $value )) { $this->adddbparam( $field, $value['value'], $value['op'] ); } else { $this->adddbparam( $field, $value, 'cn' ); } } $c = 1; foreach( $sort as $field=>$value ) { $this->addsortparam( $field, $value, $c ); $c++; } if ( $grouping!= null ) { switch( count($grouping) ) { case 1: $this->remainasarray( $grouping[0] ); break; case 2: $this->remainasarray( $grouping[0],$grouping[1] ); break; // and so on. default: $this->remainasarray( ); break; } $this->flatteninnerarray(); $this->fxresult = $this->dofxaction( FX_ACTION_FIND, TRUE, false, 'full'); } else { $this->fxresult = $this->dofxaction( FX_ACTION_FIND, TRUE, TRUE, 'full'); } if ( $this->fxresult['errorcode']!= 0 ) { return array(); } else { return $this->fxresult['data']; } 34

<?php class FMDB extends CI_Model { function construct(){ parent:: construct(); } function getperson() { $this->load->library('cifx'); $result = $this->cifx->queryfromdb( 'person_layout', array(), array(), 0, 100, array( array('contact_to','contact_way_person', 'contact_kind_person'), 'history_to') ); if ( $this->cifx->errorcode()!= 0 ) { return "Error:"; } else { return $result; } } } 35

36

array ( '1.51' => array ( '-recid' => '1', '-modid' => '51', : 'name' => array ( 0 => 'Masayuki Nii',), 'address' => array ( 0 => 'Saitama2',), 'mail' => array ( 0 => 'msyk@msyk.netss',), 'contact_to::id' => array ( 0 => '43',1 => '126',2 => '158',), 'contact_to::person_id' => array ( 0 => '1', 1 => '1', 2 => '1 : 37

38

39

40

FX.php foreach ( $result as $onerecord ) { echo "<li>{$onerecord['f3'][0]}:"."{$onerecord['f8'][0]}{$onerecord['f9'][0]}</li>"; } [0] foreach ( $result as $onerecord ) { echo "<li>{$onerecord['f3']}:"."{$onerecord['f8']}{$onerecord['f9']}</li>"; } foreach ( $result as $onerecord ) { echo "<li>{$onerecord->f3}:"."{$onerecord->f8}{$onerecord->f9}</li>"; } 41

array ( '1.51' => array ( '-recid' => '1', '-modid' => '51', 'id' => '1', 'name' => 'Masayuki Nii', 'address' => 'Saitama2', 'mail' => 'msyk@msyk.netss', 'contact_to' => array ( 0 => array ( 'contact_to::id' => '43', ), 'contact_to::person_id' => '1', : 'contact_way_person::name' => 'Indirect', 1 => array ( ), 'contact_to::id' => '126', 'contact_to::person_id' => '1', : 'contact_way_person::name' => 'Direct', 42

<form action="." method="post"> <input name=" " type="text" /> <button type="submit"> </button> </form> 43

44

45

46

47

48