Source for file htf_tlb_sample_asp_swapimagemenu.phl
Documentation is available at htf_tlb_sample_asp_swapimagemenu.phl
* htf_tlb_sample_asp_swapimagemenuクラス
* ASPSoftware用スワップイメージ生成クラス(サンプル用)
* @package HtmlTemplateFramework
* @author Yamauchi Shogo <htf@as-prj.com>
* @version $Id: htf_tlb_sample_asp_swapimagemenu.phl ,v 1.0 $
require_once ("htf_com_initialize.inc"); //共通初期処理
require_once ("htf_dat_menu.phl"); //メニュークラス
require_once ("htf_tag_element.phl"); //エレメントクラス
require_once ("htf_tag_table.phl"); //tableクラス
require_once ("htf_tag_tr.phl"); //trクラス
require_once ("htf_tag_th.phl"); //thクラス
require_once ("htf_tag_td.phl"); //tdクラス
* ASPSoftware用スワップイメージ生成クラス(サンプル用)
* @author Yamauchi Shogo <htf@as-prj.com>
* 引数の設定値からスワップイメージメニューを生成します。
* @param menu $menu コンテンツメニュー用メニューオブジェクト
* スワップイメージメニューHTMLタグを出力します。
$th->add_content('<b>' . $this->menu->label . '</b>');
$th->add_attribute("height", "25");
$tr->add_attribute("valign", "top");
$tbl->add_row_thead($tr);
$tbl->add_attribute("width", "185");
$tbl->add_attribute("cellspacing", "0");
$tbl->add_attribute("cellpadding", "0");
$tbl->add_attribute("border", "0");
for ($i = 0; $i < count($this->menu->arr_menuitem); $i++ ) {
$strret = $this->delimstr;
//タグ生成(tr/tdを作成して、$tblに追加する)
$strret .= $this->menu->arr_menuitem[$i]->get_swapimagelinktag();
$tdmenu->add_content($strret);
$trdat->add_column($tdmenu);
$tbl->add_row_tbody($trdat);
return $tbl->get_htmltag();
|