PHP Classes
elePHPant
Icontem

File: View/Elements/search.ctp

Recommend this page to a friend!
  Classes of Andraž  >  pingvincek  >  View/Elements/search.ctp  >  Download  
File: View/Elements/search.ctp
Role: Example script
Content type: text/plain
Description: Example script
Class: pingvincek
Manage a site for organizing dates between people
Author: By
Last change:
Date: 8 months ago
Size: 1,089 bytes
 

Contents

Class file image Download
<div class="obroba">
    <h3>Filter</h3>
    <?php
    $tmpYears
= array();

    for (
$i = 18; $i < 100; $i++)
    {
       
$tmpYears[$i] = $i;
    }

    echo
$this->Form->create('user', array('action' => 'browse', 'class' => 'formStyle'));
    echo
"<p>";
    echo
$this->Form->input('genders', array('label' => 'Spol', 'empty' => '', 'div' => false));
    echo
"<br>";
    echo
$this->Form->input('distance', array('label' => 'Razdalja', 'empty' => '', 'after' => ' km', 'div' => false, 'style' => 'width: 70px;', 'options' => array('5' => '5', '25' => '25', '50' => '50', '100' => '100', '500' => 'Cela Slovenija'), 'empty' => ''));
    echo
"<br>";
    echo
$this->Form->input('ageFrom', array('label' => 'Starost od', 'empty' => '', 'options' => $tmpYears, 'empty' => '', 'div' => false));
    echo
$this->Form->input('ageTo', array('label' => 'Starost do', 'empty' => '', 'options' => $tmpYears, 'empty' => '', 'div' => false));
    echo
"<center>" . $this->Form->button('I??i', array('type' => 'submit')) . "</center>";
    echo
$this->Form->end();
    echo
"<p>";
   
?>
</div>