コード例 #1
0
ファイル: view_composicao.php プロジェクト: ricain59/fortaff
						            <td colspan="2" style="text-align: center;">Não há resultados</td> 
						        </tr>    
						        <?php 
    }
}
?>
  
	    			</tbody>
			</table>                        
                    
                    <legend><a id="tablerecheio" onclick="toggleTable(true);" href="#">Recheio</a></legend>
                        
                        <table id="mytable_rec" class="table table-bordered display" cellspacing="0" width="">
	    			<tbody> 
	    				<?php 
$table = recheioGetAll();
if (is_bool($table) === false) {
    if (mysql_num_rows($table) > 0) {
        while ($data = mysql_fetch_array($table)) {
            ?>
		            					<tr>
		                					<td><?php 
            echo $data['pp_recheio_designacao'];
            ?>
</td>
		                					<td><img onclick="alterarRec('<?php 
            echo $data['pp_recheio_id'];
            ?>
','<?php 
            echo $data['pp_recheio_designacao'];
            ?>
コード例 #2
0
ファイル: insert_enc_bolo.php プロジェクト: ricain59/fortaff
	                        </div>
	                        <div class="form-group" id="coberturanova" style="display: none">
	                            <label class="col-sm-2 control-label" for="textinput" ></label>
	                            <div class="col-sm-10">
	                                <input type="text" name="novacobertura" id="novacobertura" class="form-control" maxlength="79"/>                            
	                            </div>                            
	                        </div>
	                        
	                        <!--recheio-->
	                        <div class="form-group">
	                            <label class="col-sm-2 control-label" for="textinput" >Recheio</label>
	                            <div class="col-sm-10">
	                                <select id="cbrecheio" class="form-control">
			                        <option></option>
			                        <?php 
$recheio = recheioGetAll();
while ($re = foreachRow($recheio)) {
    if ($data['pp_bolo_recheioid'] == $re['pp_recheio_id']) {
        ?>
			                            	<option value="<?php 
        echo $re['pp_recheio_id'];
        ?>
" selected><?php 
        echo $re['pp_recheio_designacao'];
        ?>
</option>
			                            	<?php 
    } else {
        ?>
			                            	<option value="<?php 
        echo $re['pp_recheio_id'];