Primary Storage page - add basic search and advanced search.

This commit is contained in:
Jessica Wang 2011-01-03 10:01:38 -08:00
parent 9eef604f2b
commit f8f5ad8f6f
2 changed files with 25 additions and 10 deletions

View File

@ -308,3 +308,25 @@
<%=t.t("please.confirm.you.want.to.delete.the.primary.storage")%>
</p>
</div>
<div id="hidden_container">
<!-- advanced search popup (begin) -->
<div class="adv_searchpopup_bg" id="advanced_search_popup" style="display: none;">
<div class="adv_searchformbox">
<form action="#" method="post">
<ol>
<li>
<select class="select" id="adv_search_zone">
</select>
</li>
<li id="adv_search_pod_li" style="display: none;">
<select class="select" id="adv_search_pod">
</select>
</li>
</ol>
</form>
</div>
</div>
<!-- advanced search popup (end) -->
</div>

View File

@ -19,20 +19,14 @@
function primarystorageGetSearchParams() {
var moreCriteria = [];
/*
var searchInput = $("#basic_search").find("#search_input").val();
if (searchInput != null && searchInput.length > 0) {
moreCriteria.push("&keyword="+todb(searchInput));
}
var $advancedSearchPopup = getAdvancedSearchPopupInSearchContainer();
if ($advancedSearchPopup.length > 0 && $advancedSearchPopup.css("display") != "none" ) {
var state = $advancedSearchPopup.find("#adv_search_state").val();
if (state!=null && state.length > 0)
moreCriteria.push("&state="+todb(state));
if ($advancedSearchPopup.length > 0 && $advancedSearchPopup.css("display") != "none" ) {
var zone = $advancedSearchPopup.find("#adv_search_zone").val();
if (zone!=null && zone.length > 0)
moreCriteria.push("&zoneId="+zone);
@ -43,8 +37,7 @@ function primarystorageGetSearchParams() {
moreCriteria.push("&podId="+pod);
}
}
*/
return moreCriteria.join("");
}