Files
ms1inscription-v5/php/traduction.php
2026-05-13 09:43:32 -04:00

161 lines
4.7 KiB
PHP

<head>
<meta charset="iso-8859-1">
</head>
<?php
/**
* Program test.php.
* Usager: stephan
* Date : 13-04-22
* Time : 18:07
*/
require_once('inc_start_time.php');
require_once('inc_fonctions.php');
require_once('inc_fx_messages.php');
$clef = trim(strtolower($_GET['clef']));
$pk_info = trim(strtolower($_GET['pk_info']));
$bd = trim(strtolower($_GET['bd']));
$page = trim(strtolower($_GET['page']));
$pk_prg = trim(strtolower($_GET['pk_prg']));
if (isset($_POST['btn_mod'])) {
//unset($_POST[1]['pk_info']);
$info1=$_POST[info][1];
$mem_id=$info1['pk_info'];
// unset($info['pk_info']);
fxSetInfo('mod',$info1,'', $mem_id);
$info2=$_POST[info][2];
$mem_id=$info2['pk_info'];
// unset($info['pk_info']);
fxSetInfo('mod',$info2,'', $mem_id);
$clef = trim($info1['info_clef']);
$bd = trim(strtolower(trim($info1['bd'])));
$page = trim(strtolower(trim($info1['page'])));
$pk_prg = trim(strtolower(trim($info1['info_prg'])));
}
$sqlValide = "SELECT * from info where (info_clef='" .$clef . "' and info_prg='" . $pk_prg . "') order by info_langue desc";
$recValide = $objDatabase->fxGetResults($sqlValide);
if ($recValide!=null)
$type="mod";
else
$type="add";
?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled 1</title>
<style type="text/css">
.style1 {
background-color: #C0C0C0;
}
.style2 {
border: 1px solid #000000;
}
.traduction {
width:85px;
height:85px;
background:#cc0000;
font:bold 13px Arial;
border-radius:50%;
border:none;
color:#fff;
}
</style>
</head>
<body>
<br>
<form target=""
action="<?php echo $vDomaine; ?>/php/traduction.php"
id="frm_compte" name="frm_compte" method="post">
<table style="width: 95%">
<tr>
<th class="style1">INFO_CLEF</th>
<th class="style1">INFO_PRG</th>
<th class="style1">BD</th>
<th class="style1">PAGE</th>
</tr>
<tr>
<td class="style2"><?php echo ($clef)?></td>
<td class="style2"><?php echo ($pk_prg)?></td>
<td class="style2"><?php echo ($bd)?></td>
<td class="style2"><?php echo ($page)?></td>
</tr>
</table>
<br>
<table style="width: 95%">
<tr>
<th class="style1" style="width: 70px">LANGUE</th>
<th class="style1" style="width: 309px">INFO_TEXTE</th>
<th class="style1">INFO_DESCRIPTION</th>
<th class="style1">INFO_OPTION1</th>
</tr>
<tr>
<input type="hidden" <?php echo fxFormFieldInfo('pk_info', $type, $recValide[1],"",1) ?>>
<input type="hidden" <?php echo fxFormFieldInfo('info_clef', $type, $recValide[1],"",1) ?>>
<input type="hidden" <?php echo fxFormFieldInfo('info_prg', $type, $recValide[1],"",1) ?>>
<input type="hidden" id="info[1][bd]" name="info[1][bd]" value="<?php echo ($bd)?>">
<input type="hidden" id="info[1][page]" name="info[1][page]" value="<?php echo ($page)?>">
<td class="style2" style="width: 70px"><?php echo $recValide[1]['info_langue']?></td>
<td class="style2" style="width: 309px">
<input type="text" <?php echo fxFormFieldInfo('info_texte', $type, $recValide[1],"",1) ?> size="30" maxlength="50">
</td>
<td class="style2"> <input type="text" <?php echo fxFormFieldInfo('info_description', $type, $recValide[1],"",1) ?> size="30" maxlength="50"></td>
<td class="style2"> <input type="text" <?php echo fxFormFieldInfo('info_option1', $type, $recValide[1],"",1) ?> size="30" maxlength="50"></td>
</tr>
<tr>
<input type="hidden" <?php echo fxFormFieldInfo('pk_info', $type, $recValide[2],"",2) ?>>
<input type="hidden" <?php echo fxFormFieldInfo('info_clef', $type, $recValide[2],"",2) ?>>
<input type="hidden" <?php echo fxFormFieldInfo('info_prg', $type, $recValide[2],"",2) ?>>
<td class="style2" style="width: 70px"><?php echo $recValide[2]['info_langue']?></td>
<td class="style2" style="width: 309px">
<input type="text" <?php echo fxFormFieldInfo('info_texte', $type, $recValide[2],"",2) ?> size="30" maxlength="50">
</td>
<td class="style2"> <input type="text" <?php echo fxFormFieldInfo('info_description', $type, $recValide[2],"",2) ?> size="30" maxlength="50"></td>
<td class="style2"> <input type="text" <?php echo fxFormFieldInfo('info_option1', $type, $recValide[2],"",2) ?> size="30" maxlength="50"></td>
</tr>
</table>
<button type="submit" id="btn_mod" name="btn_mod" value="save"
class="button"> Enregistrer </button>
</form>
</body>