PROBLEMAS CRÍTICOS IDENTIFICADOS: ⚠️ GetRow() devuelve null siempre → empresaId = 0 ⚠️ Warnings PHP en util.class.php:501 (acceso arrays nulos) ⚠️ Compatibilidad MockDatabase vs mysqli real DATOS REALES ENCONTRADOS: ✅ admin@novomoda.com.mx → empresaId = 1 ✅ sonia.velezquez@novomoda.com.mx → empresaId = 15 ✅ gerente@novomoda.com.mx → empresaId = 15 ARCHIVOS NUEVOS: - debug_login.php → Debug de base de datos master - test_login_reales.php → Test con usuarios reales ANÁLISIS: - Usuarios existen en BD master - Consultas SQL funcionan en debug - GetRow() falla en DoLogin() SIGUIENTE PASO: Revisar GetRow() en DB.class.php
39 lines
1.8 KiB
PHP
39 lines
1.8 KiB
PHP
<?php /* Smarty version Smarty3-b7, created on 2026-01-07 18:42:48
|
|
compiled from "/var/www/html/ventas/templates/items/sucursales-base.tpl" */ ?>
|
|
<?php /*%%SmartyHeaderCode:2076211922695efd8857ef52-82516433%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
$_smarty_tpl->decodeProperties(array (
|
|
'file_dependency' =>
|
|
array (
|
|
'f5fb1dff11e1325036c56d7d5543bee3a70c6bcd' =>
|
|
array (
|
|
0 => '/var/www/html/ventas/templates/items/sucursales-base.tpl',
|
|
1 => 1767753171,
|
|
),
|
|
),
|
|
'nocache_hash' => '2076211922695efd8857ef52-82516433',
|
|
'function' =>
|
|
array (
|
|
),
|
|
'has_nocache_code' => false,
|
|
)); /*/%%SmartyHeaderCode%%*/?>
|
|
<tr>
|
|
<td align="center"><?php echo $_smarty_tpl->getVariable('sucursal')->value['sucursalId'];?>
|
|
</td>
|
|
<td align="center"><?php echo $_smarty_tpl->getVariable('sucursal')->value['rfc'];?>
|
|
</td>
|
|
<td align="center"><?php echo $_smarty_tpl->getVariable('sucursal')->value['nombre'];?>
|
|
</td>
|
|
<td align="center"><?php echo $_smarty_tpl->getVariable('sucursal')->value['iva'];?>
|
|
%</td>
|
|
<td align="center">
|
|
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
/images/icons/details.png" class="spanViewSucursal" id="<?php echo $_smarty_tpl->getVariable('sucursal')->value['sucursalId'];?>
|
|
" title="Ver Detalles" />
|
|
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
/images/icons/edit.gif" class="spanEditSucursal" id="<?php echo $_smarty_tpl->getVariable('sucursal')->value['sucursalId'];?>
|
|
" title="Editar"/>
|
|
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
|
/images/icons/delete.gif" class="spanDeleteSucursal" id="<?php echo $_smarty_tpl->getVariable('sucursal')->value['sucursalId'];?>
|
|
" title="Eliminar"/>
|
|
</td>
|
|
</tr>
|