flagflag  If you want to see English page, please click "English" Button at Left.
1: 2021-07-29 (木) 14:07:33 iseki ソース
Line 1: Line 1:
 +**html_writer [#w159312b]
 +*** Sample [#ub070ced]
 + function show_demo_set_header(&$table)
 + {
 +   unset($table->head);
 +   unset($table->align);
 +   unset($table->size);
 +   unset($table->wrap);
 +   // Header
 +   $table->head [] = '#';
 +   $table->align[] = 'right';
 +   $table->size [] = '20px';
 +   $table->wrap [] = 'nowrap';
 +
 +   $table->head [] = 'Name';
 +   $table->align[] = 'center';
 +   $table->size [] = '80px';
 +   $table->wrap [] = 'nowrap';
 +
 +   $table->head [] = 'Value';
 +   $table->align[] = 'left';
 +   $table->size [] = '100px';
 +   $table->wrap [] = 'nowrap';
 +
 +   return;
 + }
 +
 +
 + function show_demo_disp_table()
 + {
 +   global $CFG, $DB;
 +
 +   $table = new html_table();
 +   $datas = array();
 +
 +   $datas[0]['num']  = 0;
 +   $datas[0]['name']  = "AAA";
 +   $datas[0]['value'] = "VVV";
 +
 +   $datas[1]['num']  = 1;
 +   $datas[1]['name']  = "BBB";
 +   $datas[1]['value'] = "WWW";
 +
 +   $i = 0;
 +   foreach($datas as $data) {
 +       $table->data[$i][] = $i + 1;
 +       $table->data[$i][] = $data['name'];
 +       $table->data[$i][] = $data['value'];
 +       $i++;
 +   }
 +
 +   show_demo_set_header($table);
 +   echo '<div align="center">';
 +   echo html_writer::table($table);
 +   echo '</div>';
 +
 +   //
 +
 +   return;
 + }


トップ   新規 ページ一覧 単語検索 最終更新   ヘルプ   最終更新のRSS 1.0 最終更新のRSS 2.0 最終更新のRSS Atom

サイト内 検索

ログイン

ユーザー名:

パスワード:


パスワード紛失
新規登録

サブ メニュー

ミニカレンダー

前月2024年 5月翌月
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
<今日>

オンライン状況

41 人のユーザが現在オンラインです。 (23 人のユーザが xpwiki を参照しています。)

登録ユーザ: 0
ゲスト: 41

もっと...

アクセスカウンタ

今日 : 2441244124412441
昨日 : 8048804880488048
総計 : 2367200223672002236720022367200223672002236720022367200223672002
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com