actualizacion funciones.php

This commit is contained in:
humano 2018-02-16 11:17:10 -05:00
parent 93e58bb85b
commit a5aa806102
1 changed files with 10 additions and 4 deletions

View File

@ -4193,13 +4193,19 @@ $asunto= "Recibiste un mensaje en [$portal_sigla] ";
//parametrizacion_linea($tabla,$campo,$opcion,$descripcion,$div,$script,$item)
$valor = remplacetas('form_parametrizacion','campo',"$campo",'opcion'," tabla='form_id' and item = '$identificador' ") ;
if($valor[0] ==1){$checked='checked'; }else{$checked='';}
//$descripcion = array();
/* $descripcion['usuario'] = "usuario";$_SESSION['id'];
$descripcion['timestamp'] = time();
$descripcion_json = json_encode($descripcion);
*/
//$json = json_encode("$valor");
$descripcion="$_SESSION[id]|";
$menu="
<div class='form-check'>
<label class='form-check-label' for='$identificador-$campo' >
<input $checked class='form-check-input' type='checkbox' value='$valor[0]' id='$identificador-$campo'name ='$identificador-$campo'
onchange=\"$(this).attr('value', this.checked ? 1 : 0);xajax_parametrizacion_linea('form_id','$campo',(this.value),'$_SESSION[id]','check_$identificador-$campo','','$identificador') \">
Check <div class='hidden' id='check_$identificador-$campo'></div>
<input $checked class=' form-check-input' type='checkbox' value='$valor[0]' id='$identificador-$campo'name ='$identificador-$campo'
onchange=\"$(this).attr('value', this.checked ? 1 : 0);xajax_parametrizacion_linea('form_id','$campo',(this.value),'$descripcion','check_$identificador-$campo','','$identificador') \">
<div class='hidden' id='check_$identificador-$campo'></div>
</label>
</div>
";