Advertisement
Guest User

Untitled

a guest
Jun 14th, 2012
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.24 KB | None | 0 0
  1. <table width="100%" border="0">
  2.               <tr>
  3.              
  4.                 <td width="388" class="nomecampos">Origem:</td>
  5.                 <td width="738" >
  6.                 <select name="origem[]" id="origem[]" class="inputmenor" >
  7.              <option value="0">SELECIONE UMA ORIGEM</option>
  8.              <?php
  9.      $obj = new clinica();
  10.     $obj->selecionarbusca($busca);
  11.     while($rowLoc=mysql_fetch_object($obj->rs)){?>
  12.              <option value="<?php echo $rowLoc->CLINICA; ?>" <?php if($rowLoc->CODIGO == $rowLoc->origem){ ?> selected="selected" <?php } ?>><?php echo $rowLoc->CLINICA; ?></option>
  13.              <?php } ?>
  14.            </select>
  15.                 </td>
  16.               </tr>
  17.               <tr>
  18.                 <td class="nomecampos">Destino:</td>
  19.                 <td >
  20.                 <select name="destino[]" id="destino[]" class="inputmenor" >
  21.              <option value="0">SELECIONE UM DESTINO</option>
  22.              <?php
  23.      $obj = new clinica();
  24.     $obj->selecionarbusca($busca);
  25.     while($rowLoc=mysql_fetch_object($obj->rs)){?>
  26.              <option value="<?php echo $rowLoc->CLINICA; ?>" <?php if($rowLoc->CODIGO == $rowLoc->origem){ ?> selected="selected" <?php } ?>><?php echo $rowLoc->CLINICA; ?></option>
  27.              <?php } ?>
  28.            </select></td>
  29.               </tr>
  30.               <tr>
  31.                 <td class="nomecampos">Motivo:</td>
  32.                 <td><label>
  33.                   <textarea name="motivo[]" id="motivo[]" class="input"><?php echo $rowAcv->motivo; ?></textarea>
  34.                   </label></td>
  35.               </tr>
  36.                <tr>
  37.                  <td class="nomecampos">Paciente:</td>
  38.                  <td ><label>
  39.                    <input type="text" name="paciente[]" id="paciente[]" class="input" value="<?php echo $row->paciente; ?>"/>
  40.                  </label></td>
  41.                </tr>
  42.                <tr>
  43.                  <td align="left" class="titulo"></td>
  44.                  <td align="left" class="titulo"><br><input type="button" value="Adicionar Percurso" onClick="mais(campo.value);">
  45.                    <span class="titinterno2">Clique aqui para adicionar</span>      <div id="aqui"></div></td>
  46.                </tr>
  47.               <div id="campos"> </div>
  48.             </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement