⌈⌋ branch:  freshcode

Artifact Content

Artifact 59d01acec0def16b7cd4b25d4bc8f71a482a8d75:

  • File template/search_form.php — part of check-in [6915580706] at 2014-08-04 15:58:06 on branch trunk — Allow search to look for multiple licenses. (user: mario size: 1018)

 * api: include
 * type: template
 * title: Search from
 * description: Show simple search <form>

$select = "form_select_options";
$licenses = array_slice(tags::$licenses, 1);


<h3>Search projects</h3>

<form action="/search" method=GET enctype="application/x-www-form-urlencode" accept-encoding=UTF-8>

        <input name=q type=text size=50 style=height:24pt>
        <small>Search in project titles and descriptions.</small>

        <input name=tag type=text size=50>
        <small>Comma-separated list of tags you want to include.</small>

        <select name="license[]" multiple size=3>
            <?php print form_select_options($licenses, NULL); ?>
        <small>Constrain results to a specific libre / open source / free software licenses.</small>
       <input type=submit title=Search>