private function _getSavedSearchesField()
{
$html_output = __('Saved bookmarked search:');
$html_output .= ' <select name="searchId" id="searchId">';
$html_output .= '<option value="">' . __('New bookmark') . '</option>';
$currentSearch = $this->_getCurrentSearch();
$currentSearchId = null;
$currentSearchName = null;
if (null != $currentSearch) {
$currentSearchId = $currentSearch->getId();
$currentSearchName = $currentSearch->getSearchName();
}
foreach ($this->_savedSearchList as $id => $name) {
$html_output .= '<option value="' . htmlspecialchars($id) . '" ' . ($id == $currentSearchId ? 'selected="selected" ' : '') . '>' . htmlspecialchars($name) . '</option>';
}
$html_output .= '</select>';
$html_output .= '<input type="text" name="searchName" id="searchName" ' . 'value="' . htmlspecialchars($currentSearchName) . '" />';
$html_output .= '<input type="hidden" name="action" id="action" value="" />';
$html_output .= '<input type="submit" name="saveSearch" id="saveSearch" ' . 'value="' . __('Create bookmark') . '" />';
if (null !== $currentSearchId) {
$html_output .= '<input type="submit" name="updateSearch" ' . 'id="updateSearch" value="' . __('Update bookmark') . '" />';
$html_output .= '<input type="submit" name="deleteSearch" ' . 'id="deleteSearch" value="' . __('Delete bookmark') . '" />';
}
return $html_output;
}