<h5><strong><?php echo getHost($comite_proyecto[0]); ?> </strong></h5> </div> <div class="col s6"> <h6 class="benefit-title">IPS</h6> <h5><strong><?php echo getIPS($comite_proyecto[0]); ?> </strong></h5> </div> <div class="col s6"> <h6 class="benefit-title">LEAD</h6> <h5><strong><?php echo getLead($comite_proyecto[0]); ?> </strong></h5> </div> <div class="col s6"> <h6 class="benefit-title">BUDDY</h6> <h5><strong><?php echo getBuddy($comite_proyecto[0]); ?> </strong></h5> </div> <div class="col s6"> <h6 class="benefit-title">TRANSPORT</h6> <h5><strong><?php echo getTransport($comite_proyecto[0]); ?>
<?php /* $comite_proyectos=getAllComite_Proyectos(); //$ciudades=getCiudades(); print_r($comite_proyectos); var_dump($comite_proyectos);*/ print_r(getLead(2)); var_dump(getLead(2)); function getLead($id) { $resultSet = ejecutarQuery("SELECT BEN_host FROM Beneficio WHERE COMITE_PROYECTO_CP_id=" . $id); if ($resultSet->fetch_array(MYSQLI_ASSOC)["BEN_host"] == 1) { return $resp = "Yes"; } else { return $res = "No"; } } function getUrl($id) { $resultSet = ejecutarQuery("SELECT cp_codigo FROM comite_proyecto WHERE cp_id=" . $id); return $resultSet->fetch_array(MYSQLI_ASSOC); } function ejecutarQuery($query) { abrirConexion(); return mysqli_query($GLOBALS['conexion'], $query); } function abrirConexion() {
<h5><strong><?php echo getHost($comite_proyecto["CP_id"]); ?> </strong></h5> </div> <div class="col s6"> <h6 class="benefit-title">IPS</h6> <h5><strong><?php echo getIPS($comite_proyecto["CP_id"]); ?> </strong></h5> </div> <div class="col s6"> <h6 class="benefit-title">LEAD</h6> <h5><strong><?php echo getLead($comite_proyecto["CP_id"]); ?> </strong></h5> </div> <div class="col s6"> <h6 class="benefit-title">BUDDY</h6> <h5><strong><?php echo getBuddy($comite_proyecto["CP_id"]); ?> </strong></h5> </div> <div class="col s6"> <h6 class="benefit-title">TRANSPORT</h6> <h5><strong><?php echo getTransport($comite_proyecto["CP_id"]); ?>
?> name="buddy" value="1" /> <label for="buddy">Buddy</label> </div> <div class="input-field col s4 m5"> <input type="checkbox" class="filled-in" id="ips" <?php if (getIPS($id) == "Yes") { echo "checked"; } ?> name="ips" value="1"/> <label for="ips">IPS</label> </div> <div class="input-field col s4 m5"> <input type="checkbox" class="filled-in" id="lead" <?php if (getLead($id) == "Yes") { echo "checked"; } ?> name="lead" value="1" /> <label for="lead">LEAD</label> </div> <div class="input-field col s4 m5"> <input type="checkbox" class="filled-in" id="transporte" <?php if (getTransport($id) == "Yes") { echo "checked"; } ?> name="transporte" value="1"/> <label for="transporte">Transporte</label>
<h5><strong><?php echo getHost($Proyecto_Usuario["CP_id"]); ?> </strong></h5> </div> <div class="col s6"> <h6 class="benefit-title">IPS</h6> <h5><strong><?php echo getIps($Proyecto_Usuario["CP_id"]); ?> </strong></h5> </div> <div class="col s6"> <h6 class="benefit-title">LEAD</h6> <h5><strong><?php echo getLead($Proyecto_Usuario["CP_id"]); ?> </strong></h5> </div> <div class="col s6"> <h6 class="benefit-title">BUDDY</h6> <h5><strong><?php echo getBuddy($Proyecto_Usuario["CP_id"]); ?> </strong></h5> </div> <div class="col s6"> <h6 class="benefit-title">TRANSPORT</h6> <h5><strong><?php echo getTransport($Proyecto_Usuario["CP_id"]); ?>
// table size $b = fread($fp, 0x200); $cdat = unpack('v*', $b); $icnt = count($cdat); for ($i = 1; $i <= $icnt; $i++) { fprintf($txtfp, "0x%02x\t0x%04x\n", $i - 1, $cdat[$i]); } } else { if ($offset != 0x103) { // DBCS fseek($fp, 0x420); $b = fread($fp, ($offset - 515) * 2); $cdat = unpack('v*', $b); $icnt = count($cdat); for ($i = 1; $i <= $icnt; $i++) { fprintf($txtfp, "0x%02x\t0x%04x\n", getLead($i - 1), $cdat[$i]); } } } /*printf("entries = %d\n",$entries); for($i=0; $i < $entries; $i++) { $b=fread($fp,0x1C); $chdr=unpack('Vcpid/Vcp2ucOff/Vcp2ucSiz/Vxx1/Vuc2cpOff/Vuc2cpSiz/Vxx2',$b); $cpinfo[]=$chdr; print_r($chdr); } for($x=0; $x < $entries; $x++) { $txtfp=fopen('cp'.$cpinfo[$x]['cpid'].'.txt','wb'); fseek($fp,$cpinfo[$x]['cp2ucOff']); $b=fread($fp,$cpinfo[$x]['cp2ucSiz']);