flagflag  If you want to see English page, please click "English" Button at Left.
9: 2013-06-14 (金) 23:05:23 iseki ソース 10: 2013-06-17 (月) 17:36:32 iseki ソース
Line 2: Line 2:
- [[1.9>../1.9]] - [[1.9>../1.9]]
- [[2.2>../2.2]] - [[2.2>../2.2]]
 +- [[2.4>../2.4]]
#br #br
Line 31: Line 32:
- %%helpbutton()%% → echo $OUTPUT->help_icon() - %%helpbutton()%% → echo $OUTPUT->help_icon()
- %%popup_form()%% → echo $OUTPUT->single_select() - %%popup_form()%% → echo $OUTPUT->single_select()
 +- %%print_user_picture()%%  → echo $OUTPUT->user_picture($user, array('courseid'=>$courseid)
#br #br
 +**** $OUTPUT->header() [#yfe4871a]
- %%print_header($title, $heading, $navigation, $focus, $meta, $cache, $button, $menu, $usexml, $bodytags, $return)%% は非推奨 - %%print_header($title, $heading, $navigation, $focus, $meta, $cache, $button, $menu, $usexml, $bodytags, $return)%% は非推奨
--  $PAGE と $OUTPUT を使う --  $PAGE と $OUTPUT を使う
Line 44: Line 46:
 echo $OUTPUT->header();  echo $OUTPUT->header();
-*** HTML [#u71f5b4f]+**** user_picture(stdClass $user, array $options = null) [#rf590d31] 
 +- lib/outputrenderers.php 
 +- lib/outputcomponents.php 
 + 
 +- $user : ユーザオブジェクト 
 +- $options: courseid, link=true, size=35, alttext=true, popup=false 
 +#br 
 + 
 +*** html_writer [#u71f5b4f]
- %%choose_from_menu()%% → html_writer::select() - %%choose_from_menu()%% → html_writer::select()
- %%print_date_selector("endday", "endmonth", "endyear")%% → html_writer::select_time() を3回使用する - %%print_date_selector("endday", "endmonth", "endyear")%% → html_writer::select_time() を3回使用する
Line 51: Line 61:
#br #br
-**** 2.x  example [#c156b5e2]+**** html_writer::select() [#r0fc6497]
- html_writer::select() - html_writer::select()
 $ltimes = array(1=>0,5,10,15,20,25,30,35,40,45,50,​55,60,65,70,75,80,85,90,95,100,105,110,1​15,120);  $ltimes = array(1=>0,5,10,15,20,25,30,35,40,45,50,​55,60,65,70,75,80,85,90,95,100,105,110,1​15,120);
 echo html_writer::select($ltimes, 'lmin', 1, false);  echo html_writer::select($ltimes, 'lmin', 1, false);
 +**** html_writer::select_time() [#sc80b4fa]
- html_writer::select_time() - html_writer::select_time()
 echo html_writer::select_time('years',  'startyear',  0);  echo html_writer::select_time('years',  'startyear',  0);
 echo html_writer::select_time('months', 'startmonth', 0);  echo html_writer::select_time('months', 'startmonth', 0);
 echo html_writer::select_time('days',  'startday',  0);  echo html_writer::select_time('days',  'startday',  0);
 +#br
 +**** html_writer::table() [#h8d93af0]
- html_writer::table($table) - html_writer::table($table)
 $table = new html_table();  $table = new html_table();
- $table->data = ....+ $table->head = array(title1, title2, title3, ....); 
 + $table->align = array('left', 'center', 'center', ....); 
 + $table->width = "100%"; 
 + $table->data[] = array(....) // 1行目 
 + $table->data[] = array(....) // 2行目 
 + $table->data[] = array(....) // 3行目
 ....  ....
 echo html_writer::table($table);  echo html_writer::table($table);


トップ   新規 ページ一覧 単語検索 最終更新   ヘルプ   最終更新の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
<今日>

オンライン状況

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

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

もっと...

アクセスカウンタ

今日 : 1081310813108131081310813
昨日 : 1631416314163141631416314
総計 : 2352358823523588235235882352358823523588235235882352358823523588
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com