Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- foreach($Etiquetas as $indice => $EtiquetaContenido)
- {
- if($SeleccionUsuario['impresion']=="DT")
- {
- if( !in_array($EtiquetaContenido,$StockEnvio) && $SeleccionUsuario['impresion']==$EtiquetaContenido['impresion'] && $SeleccionUsuario['od'] >= $EtiquetaContenido['od'] && $SeleccionUsuario['anchomin'] <= $EtiquetaContenido['ancho'] && $SeleccionUsuario['anchomax'] >= $EtiquetaContenido['ancho'] && $EtiquetaContenido['material']==$Material )
- {
- //echo $EtiquetaContenido['impresion'];
- if($contador % 3 ==0 ){
- //echo $contador;
- echo "</div>";
- echo "<div class='row '>";
- echo "<div class='col-sm-4'>";
- require "templates/imgtemplate.php";
- echo "</div>";
- }
- if($contador % 3 !==0 ){
- //echo $contador;
- echo "<div class='col-sm-4'>";
- require "templates/imgtemplate.php";
- echo "</div>";
- }
- $contador++;
- }
- }
- /********************************** Inside imgtemplate.php**********************/
- foreach($imagesplit as $image)
- {
- //Seleccion para cada tipo de imagen
- if($EtiquetaContenido['ancho']==$image["width"] && $EtiquetaContenido['alto']==$image["height"])
- {
- if($EtiquetaContenido['material']=="void" && $image['type']=="void")
- {
- $patron ='/\./';
- $replace='-';
- array_push($StockEnvio,$EtiquetaContenido);
- echo "
- <input type='checkbox' name='cotizado' class='color check' value=$contador id='check$contador' ".$EtiquetaContenido['impresion']." />
- <label for 'cotizado$contador' id='cotizado$contador' style='background-image:url(\"./img/sizes/void/".preg_replace($patron,$replace,$image["width"])."_".preg_replace($patron,$replace,$image["height"]).".png \");' class='rol-selector paddingImage CheckOther' onclick=clickear('check$contador','cotizado$contador') data-my-tooltip='Cantidad de rollos por caja:".$EtiquetaContenido['rxc']."\nCantidad de etiquetas por rollo:".$EtiquetaContenido['etiquetasxr']."\nColor de etiqueta:".$EtiquetaContenido['color']."' ></label>";
- echo "</div>";
- }
- if($image['type']!="void" && $EtiquetaContenido['material']!="void")
- {
- //echo "else";
- $patron ='/\./';
- $replace='-';
- array_push($StockEnvio,$EtiquetaContenido);
- echo "
- <input type='checkbox' name='cotizado' class='color check' value=$contador id='check$contador' ".$EtiquetaContenido['impresion']." />
- <label for 'cotizado$contador' id='cotizado$contador' style='background-image:url(\"./img/sizes/plain/".preg_replace($patron,$replace,$image["width"])."_".preg_replace($patron,$replace,$image["height"]).".png \");' class='rol-selector paddingImage CheckOther' onclick=clickear('check$contador','cotizado$contador') data-my-tooltip='Cantidad de rollos por caja:".$EtiquetaContenido['rxc']."\nCantidad de etiquetas por rollo:".$EtiquetaContenido['etiquetasxr']."\nColor de etiqueta:".$EtiquetaContenido['color']."' ></label>";
- }
- }
- else
- {
- $HasImage=false;
- }
- }
- if($HasImage==false && !in_array($EtiquetaContenido,$StockEnvio) ){
- array_push($StockEnvio,$EtiquetaContenido);
- if($contarelse==false){
- echo "
- <table class='tabla'>
- <tr>
- <th>Impresion</th>
- <th>color</th>
- <th>alto</th>
- <th>ancho</th>
- <th>Material</th>
- <th>Selección</th>
- </tr>
- ";
- }
- $contarelse=true;
- echo "
- <tr>
- <td>".$EtiquetaContenido['impresion']."</td>
- <td>".$EtiquetaContenido['color']."</td>
- <td>".$EtiquetaContenido['alto']."</td>
- <td>".$EtiquetaContenido['ancho']."</td>
- <td>".$EtiquetaContenido['material']."</td>
- <td><center><input type='checkbox' name='cotizado' class='CheckOther' value=$contador id='check$contador' /> </center>
- </td>
- </tr>
- ";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement