50 $availableColumns = array_diff_key($this->allColumns, $this->visibleColumns);
51 $arAvailableColumnsHTML =
"";
53 foreach ($availableColumns as $key => $value)
54 $arAvailableColumnsHTML .=
"<option value=".$key.
">".htmlspecialcharsbx($value).
"</option>";
56 $arUserColumnsHTML =
"";
58 foreach ($this->visibleColumns as $key => $value)
59 $arUserColumnsHTML .=
"<option value=".$key.
">".htmlspecialcharsbx($value).
"</option>";
62 <div id="'.$this->idPrefix.
'columns_form">
65 <td colspan="2" align="center">
68 <td style="background-image:none" nowrap>
69 <div style="margin-bottom:5px">'.
Loc::getMessage(
"SALE_ORDER_BASKET_SETTINGS_AVAILABLE_COLUMNS").
'</div>
70 <div class="scrollable">
72 id="adm-sale-basket-sett-all-cols"
74 class="settings_select"
76 size="'.(count($this->allColumns) - count($this->visibleColumns)).
'"
77 ondblclick="this.form.add_btn.onclick()"
78 onchange="'.$this->settingsDlgObjectName.
'.onAvailableChange(this);"
80 '.$arAvailableColumnsHTML.
'
84 <td style="background-image:none">
85 <div style="margin-bottom:5px">
86 <input type="button" name="add_btn" value=">" title="'.
Loc::getMessage(
"SALE_ORDER_BASKET_SETTINGS_ADD_COLUMN").
'" style="width:30px;" disabled onclick="jsSelectUtils.addSelectedOptions(this.form.allColumns, this.form.columns, false); jsSelectUtils.deleteSelectedOptions(this.form.allColumns); ">
88 <div style="margin-bottom:5px">
89 <input type="button" name="del_btn" value="<" title="'.
Loc::getMessage(
"SALE_ORDER_BASKET_SETTINGS_DELETE_COLUMN").
'" style="width:30px;" disabled onclick="jsSelectUtils.addSelectedOptions(this.form.columns, this.form.allColumns, false, true); jsSelectUtils.deleteSelectedOptions(this.form.columns);">
92 <td style="background-image:none" nowrap>
93 <div style="margin-bottom:5px">'.
Loc::getMessage(
"SALE_ORDER_BASKET_SETTINGS_SELECTED_COLUMNS").
'</div>
94 <div class="scrollable">
96 class="settings_select"
99 size="'.count($this->visibleColumns).
'"
100 ondblclick="this.form.del_btn.onclick()"
101 onchange="'.$this->settingsDlgObjectName.
'.onSelectedChange(this);"
103 '.$arUserColumnsHTML.
'
107 <td style="background-image:none">
108 <div style="margin-bottom:5px"><input type="button" name="up_btn" value="'.
Loc::getMessage(
"SALE_ORDER_BASKET_SETTINGS_UP").
'" title="'.
Loc::getMessage(
"SALE_ORDER_BASKET_SETTINGS_MOVE_UP").
'" class="bx-grid-btn" style="width:60px;" disabled onclick="jsSelectUtils.moveOptionsUp(this.form.columns)"></div>
109 <div style="margin-bottom:5px"><input type="button" name="down_btn" value="'.
Loc::getMessage(
"SALE_ORDER_BASKET_SETTINGS_DOWN").
'" title="'.
Loc::getMessage(
"SALE_ORDER_BASKET_SETTINGS_MOVE_DOWN").
'" class="bx-grid-btn" style="width:60px;" disabled onclick="jsSelectUtils.moveOptionsDown(this.form.columns)"></div>
119 return $settingsTemplate;