<form method="get" class="form-horizontal" id="ccm-<?php echo $searchInstance; ?> -advanced-search" action="<?php echo REL_DIR_FILES_TOOLS_REQUIRED; ?> /files/search_results"> <?php if ($_REQUEST['fType'] != false) { $showTypes = array(); if (is_array($_REQUEST['fType'])) { foreach ($_REQUEST['fType'] as $showTypeId) { $showTypes[] = FileType::getGenericTypeText($showTypeId); } } else { $showTypes[] = FileType::getGenericTypeText($_REQUEST['fType']); } ?> <div class="ccm-file-manager-pre-filter"><?php echo t('Only displaying %s files.', implode(', ', $showTypes)); ?> </div> <?php } else { if ($_REQUEST['fExtension'] != false) { if (is_array($_REQUEST['fExtension'])) { $showExtensions = $_REQUEST['fExtension']; } else { $showExtensions = array($_REQUEST['fExtension']); } ?>
?> </div> <form method="get" class="form-horizontal" id="ccm-<?php echo $searchInstance; ?> -advanced-search" action="<?php echo REL_DIR_FILES_TOOLS_REQUIRED; ?> /files/search_results"> <?php if ($_REQUEST['fType'] != false) { ?> <div class="ccm-file-manager-pre-filter"><?php echo t('Only displaying %s files.', FileType::getGenericTypeText($_REQUEST['fType'])); ?> </div> <?php } else { if ($_REQUEST['fExtension'] != false) { ?> <div class="ccm-file-manager-pre-filter"><?php echo t('Only displaying files with extension .%s.', $_REQUEST['fExtension']); ?> </div> <?php } } ?>
<div id="ccm-<?php echo $searchInstance?>-search-advanced-fields" class="ccm-search-advanced-fields" > <input type="hidden" name="submit_search" value="1" /> <?php /** * Here are all the things that could be passed through the asset library that we need to account for, as hidden form fields */ print $form->hidden('fType'); print $form->hidden('fExtension'); print $form->hidden('ccm_order_dir', $searchRequest['ccm_order_dir']); print $form->hidden('ccm_order_by', $searchRequest['ccm_order_by']); print $form->hidden('fileSelector', $fileSelector); ?> <div id="ccm-search-box-title"> <?php if ($_REQUEST['fType'] != false) { ?> <div class="ccm-file-manager-pre-filter"><?php echo t('Only displaying %s files.', FileType::getGenericTypeText($_REQUEST['fType']))?></div> <?php } else if ($_REQUEST['fExtension'] != false) { ?> <div class="ccm-file-manager-pre-filter"><?php echo t('Only displaying files with extension .%s.', $_REQUEST['fExtension'])?></div> <?php } ?> <img src="<?php echo ASSETS_URL_IMAGES?>/throbber_white_16.gif" width="16" height="16" class="ccm-search-loading" id="ccm-<?php echo $searchInstance?>-search-loading" /> <h2><?php echo t('Search')?></h2> </div> <div id="ccm-search-advanced-fields-inner"> <div class="ccm-search-field"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td width="100%"> <?php echo $form->text('fKeywords', $searchRequest['fKeywords'], array('style' => 'width:200px')); ?>