You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

46 lines
1.4 KiB

<?php
if (!defined('_ECRIRE_INC_VERSION')) return;
function formulaires_spipr_educ_configure_compteur_charger_dist($nom,$id) {
$req_sql=sql_select('*','spip_spipr_educ',"id='$id'");
$tab_sql=sql_fetch($req_sql);
$valeurs = array (
'id' => $id,
'nom' => $nom,
'titreBloc' => $tab_sql['parametre5'],
);
$req_sql2=sql_select('*','spip_spipr_educ',"nom='$nom' AND type='graphisme' AND nom_sauvegarde='en_cours_d_utilisation_SPIPr'");
$tab_sql2=sql_fetch($req_sql2);
$valeurs['blocFond']=$tab_sql2['parametre1'];
$valeurs['blocBordure']=$tab_sql2['parametre2'];
$valeurs['titreCouleur']=$tab_sql2['parametre3'];
$valeurs['titreFond']=$tab_sql2['parametre4'];
$valeurs['blocCSS']=$tab_sql2['parametre5'];
return $valeurs;
}
function formulaires_spipr_educ_configure_compteur_traiter_dist($nom,$id) {
if (_request('hidden_'.$nom)=='ok') {
sql_updateq(
'spip_spipr_educ',
array(
'parametre5' => _request('titreBloc'),
),
"id='$id'"
);
sql_updateq(
'spip_spipr_educ',
array(
'parametre1' => _request('blocFond'),
'parametre2' => _request('blocBordure'),
'parametre3' => _request('titreCouleur'),
'parametre4' => _request('titreFond'),
'parametre5' => _request('blocCSS'),
),
"nom='$nom' AND type='graphisme' AND nom_sauvegarde='en_cours_d_utilisation_SPIPr'"
);
}
$res['message_ok'] = _T('config_info_enregistree');
return $res;
}
?>