38 lines
1.2 KiB
PHP
38 lines
1.2 KiB
PHP
<?php
|
|
require_once __DIR__.'/auth_guard.php';
|
|
|
|
require_once "../config.php";
|
|
|
|
$idconstancia = $_POST['idconstancia'];
|
|
$catsuperior = $_POST['catsuperior'];
|
|
$nombre = $_POST['representante'];
|
|
$cargo = $_POST['cargo'];
|
|
$firma = $_POST['imgfirma'];
|
|
|
|
$a_logo = $_POST['alineacion_logo'];
|
|
$a_cont = $_POST['alineacion_content'];
|
|
|
|
if( $_POST['urlimglogo'] == "" ){
|
|
$urlimglogo = NULL;
|
|
}else{
|
|
$urlimglogo =$_POST['urlimglogo'];
|
|
}
|
|
|
|
if( $_POST['urlimgfondo'] == "" ){
|
|
$urlimgfondo = NULL;
|
|
}else{
|
|
$urlimgfondo =$_POST['urlimgfondo'];
|
|
}
|
|
|
|
$habilitado= $_POST['habilitado'];
|
|
$habilitado_logo= $_POST['habilitado_logo'];
|
|
$habilitado_fondo= $_POST['habilitado_fondo'];
|
|
|
|
|
|
$sql = "UPDATE constancias SET idcategoria=$catsuperior,firma='$firma',representante='$nombre',cargo_rep='$cargo',fondo='$urlimgfondo',logo='$urlimglogo',habilitado=$habilitado, habilitado_logo = $habilitado_logo, habilitado_fondo= $habilitado_fondo, align_logo= '$a_logo', align_content= '$a_cont' WHERE idconstancia = $idconstancia";
|
|
global $link;
|
|
dbConnect();
|
|
$result = mysqli_query($link, $sql) or trigger_error("Query Failed! SQL: $sql - Error: ".mysqli_error($link), E_USER_ERROR);
|
|
echo "Actualización correcta";
|
|
|
|
?>
|