All pastes #20034 Raw Edit

Unnamed

public php v1 · immutable
#20034 ·published 2005-08-15 02:23 UTC
rendered paste body
<?php   echo '      <p>         Customer Details      </p>      <!-- start of: search form -->      <form         action  = "';            $pages = array       (      'Customer Search' => 'customer_search.php',      'Customer Update' => 'customer_update.php'      );                foreach ($pages as $page_name => $page_loc){         if($page_name == $this_page){            echo $page_loc;         }      }            echo '"         id      = "search"         method  = "post">         <p>            <select               id   = "search_type"               name = "search_type">               <option                  value = "group_name">                  Name:               </option>               <option                  value = "street">                  Street:               </option>               <option                  value = "city">                  City:               </option>               <option                  value = "province">                  Province:               </option>            </select>            <select               id   = "operator"               name = "operator">               <option                  value = "LIKE">                  contains               </option>               <option                  selected = "selected"                  value    = "=">                  is equal to               </option>            </select>            <input                id        = "search_word"               maxlength = "45"               name      = "search_word"               size      = "30"               type      = "text" />            <input                name  = "whereami"                type  = "hidden"               value = "form_done" />            <input               type    = "button"               name    = "Button"               value   = "+"               onclick = "document.getElementById(\'search2\').style.display = \'block\';" />                                 </p>         <div id="search2" style="display: none;">         <p>            <select               id   = "search_bool2"               name = "search_bool2">               <option                  value = "OR">                  or               </option>               <option                  selected = "selected"                  value = "AND">                  and               </option>            </select>            <select               id   = "search_type2"               name = "search_type2">               <option                  value = "group_name">                  Name:               </option>               <option                  value = "street">                  Street:               </option>               <option                  value = "city">                  City:               </option>               <option                  value = "province">                  Province:               </option>            </select>            <select               id   = "operator2"               name = "operator2">               <option                  value = "LIKE">                  contains               </option>               <option                  selected = "selected"                  value    = "=">                  is equal to               </option>            </select>            <input                id        = "search_word2"               maxlength = "45"               name      = "search_word2"               size      = "30"               type      = "text" />         </p>         </div>         <p>            <input               name  = "submit"               type  = "submit"               value = "Search" />            &nbsp;            <input               name  = "reset"               type  = "reset"               value = "Reset" />         </p>      </form>      <!-- end of: search form -->   ';?>