Created
October 22, 2013 18:31
-
-
Save jeisenberg/7105600 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="input-prepend"> | |
<div class="btn-group"> | |
<select name="[]"> | |
<option value="">All</option> | |
<?php foreach($user->getPreferredMedias() as $media) : | |
$checked = Yii::app()->session['search_' . Item::getMediaJsName($media)] == 1; | |
?> | |
<option value="<?php echo Item::getMediaJsName($media);?>"><?php echo Item::getMediaJsName($media);?></option> | |
<?php endforeach;?> | |
</select> | |
</div> | |
<input type="text" name="q" placeholder="Search" id="site_search" value="" autocomplete="off"> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment