<?php $originalkey = $key; $key = $tablekey2 == "" ? $_GET["id"] : $tbl_result[$tablekey2]; $key = $key == "" ? $tbl_result[$tablekey] : $key; if ($_GET["mode"] == "visu" || $_GET["mode"] == "suppr") { if ($indice > 1) { print affichemedia($key, $myvalue, $table . $indice . "_"); } else { print affichemedia($key, $myvalue, $table); } //print "".$key.",".$myvalue.",".$table.$indice.""; } else { print '<input type="file" name="' . $tabelem[0] . '"><input type="hidden" name="' . $tabelem[0] . '_last" value="' . ($myvalue != '' ? '1' : '0') . '"> ' . value_print($searchstring[1] != '' ? '(' . $searchstring[1] : '') . ($tabelem[2] != "yes" && $_GET["mode"] != "ajout" && $myvalue != '' ? ' supprimer <input type="checkbox" name="' . $tabelem[0] . '_chk" value="1">' : '') . '<br>'; if ($indice > 1) { print affichemedia($key, $myvalue, $table . $indice . "_"); } else { print affichemedia($key, $myvalue, $table); } } $indice++; $key = $originalkey;
?> &lang=<?php echo $_GET["lang"]; ?> &version_id=<?php echo $_GET["version_id"]; ?> " target="framecontent"><span class="icon-eye"></span></a></td> <?php } if ($media) { $key = $tablekey2 == "" ? $tablekey : $tablekey2; ?> <td width="2px" bgcolor="#FFFFFF"></td> <td><?php echo affichemedia($tbl_result[$key], $tbl_result["ext"], $table, 1); ?> </td> <?php } if ($update) { ?> <td width="38px" align="center" valign="middle"><a href="<?php echo $PHP_SELF; ?> ?id=<?php echo $tbl_result[$tablekey]; ?> &mode=modif&pere=<?php echo $_GET["pere"]; ?>