Example #1
0
    </script>
    
    
    <div class="row">
        <div class="col-md-9 col-md-offset-2">
            <form name="changegr" class="form-horizontal" >
                <fieldset>

			
                    <!-- Form Name -->
                    <legend><a id="tablecoberturas" onclick="toggleTable(true);" href="#">Coberturas</a></legend>
                        
                        <table id="mytable_cob" class="table table-bordered display" cellspacing="0" width="">
	    			<tbody> 
	    				<?php 
$table = coberturaGetAll();
if (is_bool($table) === false) {
    if (mysql_num_rows($table) > 0) {
        while ($data = mysql_fetch_array($table)) {
            ?>
		            					<tr>
		                					<td><?php 
            echo $data['pp_cobertura_designacao'];
            ?>
</td>
		                					<td><img onclick="alterarCob('<?php 
            echo $data['pp_cobertura_id'];
            ?>
','<?php 
            echo $data['pp_cobertura_designacao'];
            ?>
Example #2
0
} else {
    ?>
					<!--novo bolo-->
					
				<?php 
}
?>
				
	                        <!--Cobertura-->
	                        <div class="form-group">
	                            <label class="col-sm-2 control-label" for="textinput" >Cobertura</label>
	                            <div class="col-sm-10">
	                            	<select id="cbcobertura" class="form-control">
			                        <option></option>
			                        <?php 
$cobertura = coberturaGetAll();
while ($cb = foreachRow($cobertura)) {
    if ($data['pp_bolo_coberturaid'] == $cb['pp_cobertura_id']) {
        ?>
			                            	<option value="<?php 
        echo $cb['pp_cobertura_id'];
        ?>
" selected><?php 
        echo $cb['pp_cobertura_designacao'];
        ?>
</option>
			                            	<?php 
    } else {
        ?>
			                            	<option value="<?php 
        echo $cb['pp_cobertura_id'];