5 include_once(
'Services/Table/classes/class.ilTable2GUI.php');
6 include_once(
"./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");
40 $this->
setTitle( $lng->txt(
'chatroom_available_smilies' ) );
41 $this->
setId(
'chatroom_smilies_tbl' );
43 $this->
addColumn(
'',
'checkbox',
'2%',
true );
44 $this->
addColumn( $lng->txt(
'chatroom_smiley_image' ),
'',
'28%' );
45 $this->
addColumn( $lng->txt(
'chatroom_smiley_keyword' ),
'keyword',
'55%' );
46 $this->
addColumn( $lng->txt(
'actions' ),
'',
'15%' );
49 $this->
setRowTemplate(
'tpl.chatroom_smiley_list_row.html',
'Modules/Chatroom' );
53 "smiley-deleteMultipleObject", $lng->txt(
"chatroom_delete_selected" )
67 $this->tpl->setVariable(
'VAL_SMILEY_ID', $a_set[
'smiley_id'] );
68 $this->tpl->setVariable(
'VAL_SMILEY_PATH', $a_set[
'smiley_fullpath'] );
69 $this->tpl->setVariable(
'VAL_SMILEY_KEYWORDS', $a_set[
'smiley_keywords'] );
70 $this->tpl->setVariable(
71 'VAL_SMILEY_KEYWORDS_NONL',
72 str_replace(
"\n",
"", $a_set[
'smiley_keywords'] )
74 $this->tpl->setVariable(
75 'VAL_SORTING_TEXTINPUT',
80 $ilCtrl->setParameter( $this->gui,
'topic_id', $a_set[
'id'] );
83 $current_selection_list->setListTitle( $this->lng->txt(
"actions" ) );
84 $current_selection_list->setId(
"act_" . $a_set[
'smiley_id'] );
86 $current_selection_list->addItem(
87 $this->lng->txt(
"edit" ),
89 $ilCtrl->getLinkTarget( $this->gui,
'smiley-showEditSmileyEntryFormObject' ) .
90 "&smiley_id=" . $a_set[
'smiley_id']
92 $current_selection_list->addItem(
93 $this->lng->txt(
"delete" ),
95 $ilCtrl->getLinkTarget( $this->gui,
'smiley-showDeleteSmileyFormObject' ) .
96 "&smiley_id=" . $a_set[
'smiley_id']
99 $this->tpl->setVariable(
'VAL_ACTIONS', $current_selection_list->getHTML() );