5 include_once(
'Services/Table/classes/class.ilTable2GUI.php');
6 include_once(
"./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");
27 parent::__construct($a_ref, $cmd);
31 $this->
setTitle($this->lng->txt(
'chatroom_available_smilies'));
32 $this->
setId(
'chatroom_smilies_tbl');
34 $this->
addColumn(
'',
'checkbox',
'2%',
true);
35 $this->
addColumn($this->lng->txt(
'chatroom_smiley_image'),
'',
'28%');
36 $this->
addColumn($this->lng->txt(
'chatroom_smiley_keyword'),
'keyword',
'55%');
37 $this->
addColumn($this->lng->txt(
'actions'),
'',
'15%');
40 $this->
setRowTemplate(
'tpl.chatroom_smiley_list_row.html',
'Modules/Chatroom');
44 "smiley-deleteMultipleObject",
45 $this->lng->txt(
"chatroom_delete_selected")
55 $this->tpl->setVariable(
'VAL_SMILEY_ID', $a_set[
'smiley_id']);
56 $this->tpl->setVariable(
'VAL_SMILEY_PATH', $a_set[
'smiley_fullpath']);
57 $this->tpl->setVariable(
'VAL_SMILEY_KEYWORDS', $a_set[
'smiley_keywords']);
58 $this->tpl->setVariable(
59 'VAL_SMILEY_KEYWORDS_NONL',
60 str_replace(
"\n",
"", $a_set[
'smiley_keywords'])
62 $this->tpl->setVariable(
63 'VAL_SORTING_TEXTINPUT',
65 'sorting[' . $a_set[
'id'] .
']',
70 $this->ctrl->setParameter($this->gui,
'topic_id', $a_set[
'id']);
73 $current_selection_list->setListTitle($this->lng->txt(
"actions"));
74 $current_selection_list->setId(
"act_" . $a_set[
'smiley_id']);
76 $current_selection_list->addItem(
77 $this->lng->txt(
"edit"),
79 $this->ctrl->getLinkTarget($this->gui,
'smiley-showEditSmileyEntryFormObject') .
80 "&smiley_id=" . $a_set[
'smiley_id']
82 $current_selection_list->addItem(
83 $this->lng->txt(
"delete"),
85 $this->ctrl->getLinkTarget($this->gui,
'smiley-showDeleteSmileyFormObject') .
86 "&smiley_id=" . $a_set[
'smiley_id']
89 $this->tpl->setVariable(
'VAL_ACTIONS', $current_selection_list->getHTML());
__construct($a_ref, $cmd)
Constructor Prepares smilies table.
Class ilChatroomSmiliesTableGUI Prepares table rows and fills them.
fillRow($a_set)
Fills table rows with content from $a_set.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
addMultiCommand($a_cmd, $a_text)
Add Command button.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
User interface class for advanced drop-down selection lists.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
addColumn( $a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
static formInput($varname, $value, $disabled=false)
create html input area
setSelectAllCheckbox($a_select_all_checkbox)
Set the name of the checkbox that should be toggled with a select all button.