コード例 #1
0
ファイル: searcher.html.php プロジェクト: anvnguyen/Goteo
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  Goteo is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Affero General Public License for more details.
 *
 *  You should have received a copy of the GNU Affero General Public License
 *  along with Goteo.  If not, see <http://www.gnu.org/licenses/agpl.txt>.
 *
 */
use Goteo\Model\Category, Goteo\Model\Icon, Goteo\Library\Location, Goteo\Library\Text;
$categories = Category::getList();
// categorias que se usan en proyectos
$locations = Location::getList();
//localizaciones de royectos
$rewards = Icon::getList();
// iconos que se usan en proyectos
$params = $this['params'];
?>
<div class="widget searcher">
    <form method="post" action="/discover/results">
        <div class="text-filter">
            <label for="text-query"><?php 
echo Text::get('discover-searcher-bycontent-header');
?>
</label>
            <input type="text" id="text-query" name="query" size="48" value="<?php 
echo \htmlspecialchars($params['query']);
?>
コード例 #2
0
ファイル: searcher.html.php プロジェクト: kenjs/Goteo
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Affero General Public License for more details.
 *
 *  You should have received a copy of the GNU Affero General Public License
 *  along with Goteo.  If not, see <http://www.gnu.org/licenses/agpl.txt>.
 *
 */

use Goteo\Model\Category,
    Goteo\Model\Skill,
    Goteo\Model\Icon,
    Goteo\Library\Location,
    Goteo\Library\Text;

$categories = Category::getList();  // categorias que se usan en proyectos
$locations = Location::getList();  //localizaciones de royectos
$rewards = Icon::getList(); // iconos que se usan en proyectos

$skills = Skill::getList(); // スキル取得

$params = $this['params'];
?>
<div class="widget searcher">
    <form method="post" action="/discover/results">
        <div class="text-filter">
            <label for="text-query"><?php echo Text::get('discover-searcher-bycontent-header'); ?></label>
            <input type="text" id="text-query" name="query" size="48" value="<?php echo \htmlspecialchars($params['query']); ?>" />
            <br clear="all" />
        </div>

        <div class="filter">