예제 #1
0
파일: Productos.php 프로젝트: keua/DeGuate
                                    <a href="#"><?php 
        $cat = $productos[$index]->arrCategoria[0];
        if ($productos[$index + 1]->intId == $productos[$index]->intId) {
            $cat .= ', ' . $productos[$index + 1]->arrCategoria[0];
        }
        echo $cat;
        ?>
</a>
                                    <p class="price">Q. <?php 
        echo $productos[$index]->dblPrecio;
        ?>
</p>
                                </div>
                            </div>
                        </div>
                        <?php 
        if ($productos[$index + 1]->intId == $productos[$index]->intId) {
            $index++;
        }
    }
    ?>
                    <div class="clearfix"></div>
                </div>
            </div>
        </div>
    </div>
    <?php 
}
head();
Productos();
footer();
        if (get("transaccion") == "INSERT") {
            if (get("metodo") == "FCategoriaProducto") {
                p_gf("FCategoriaProducto", $CN, "");
                CategoriaProductos("Listado");
            }
        }
        if (get("transaccion") == "OTRO") {
            if (get("metodo") == "resgistra_usuario") {
                P_Registro();
            }
        }
    }
    if (get("transaccion") == "DELETE") {
        if (get("metodo") == "Entidades") {
            DReg("ct_entidad", "Codigo", "'" . get("codEnt") . "'", $CN);
            Productos("Listado");
        }
    }
    exit;
}
#Formulario : FTipoProducto
function CategoriaProductos($Arg)
{
    global $CN, $enlace;
    switch ($Arg) {
        case "Listado":
            $btn = "Agregar]" . $enlace . "?CategoriaProductos=Crear]optionbody}";
            $btn = Botones($btn, 'botones1', '');
            $btn = tituloBtnPn("<span>Lista</span><p >TIPO DE PRODUCTO </p><div class='bicel'></div>", $btn, "70px", "TituloA");
            $sql = "SELECT Abreviatura,Descripcion,Codigo AS CodigoAjax FROM macategoriaproducto ";
            $clase = 'reporteA';
예제 #3
0
                        </div><!-- /.col -->
                    </div>
                </form>        
            </div><!-- /.form-box -->
        </div><!-- /.register-box -->

        <!-- jQuery 2.1.4 -->
        <script src="../../plugins/jQuery/jQuery-2.1.4.min.js"></script>
        <!-- Bootstrap 3.3.2 JS -->
        <script src="../../bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
        <!-- iCheck -->
        <script src="../../plugins/iCheck/icheck.min.js" type="text/javascript"></script>
        <script>
                                $(function () {
                                    $('input').iCheck({
                                        checkboxClass: 'icheckbox_square-blue',
                                        radioClass: 'iradio_square-blue',
                                        increaseArea: '20%' // optional
                                    });
                                });
        </script>
    </body>
    <?php 
}
if (isset($_SESSION['user'])) {
    head();
    Productos($actividad);
    footer();
} else {
    header("Location:http://localhost:8000/Login.php");
}