<?php if ($_GET["mode"] == "visu" || $_GET["mode"] == "suppr") { print value_print(affichedatetime($myvalue)); } else { $myvalue = $myvalue == "" ? date("Y") . "/" . date("m") . "/" . date("d") . " " . date("H") . ":" . date("i") : $myvalue; $myvalue = $tabelem[2] != "yes" && $_GET["mode"] == "ajout" ? "" : $myvalue; print '<input type="text" id="' . $tabelem[0] . '" name="' . $tabelem[0] . '" size="16" maxlength="16" value="' . affichedatetime($myvalue) . '"><img src="../images/datepopup.gif" id="trigger' . $tabelem[0] . '" style="cursor:pointer; cursor:hand;">'; print '<script type="text/javascript"> /* Calendar.setup( { inputField : "' . $tabelem[0] . '", // ID of the input field ifFormat : "%d/%m/%Y %H:%M", // the date format showsTime : true, timeFormat : "24", button : "trigger' . $tabelem[0] . '" // ID of the button } );*/ top.calendar[top.calendar.length]={ inputField : "' . $tabelem[0] . '", // ID of the input field ifFormat : "%d/%m/%Y %H:%M", // the date format showsTime : true, timeFormat : "24", button : "trigger' . $tabelem[0] . '" // ID of the button }; </script>'; }
<?php print value_print($myvalue);
<object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="200" height="24"> <param name="movie" value="<?php echo __racine__; ?> /tpl/images/player-viral.swf" /> <param name="allowfullscreen" value="true" /> <param name="allowscriptaccess" value="always" /> <param name="flashvars" value="file=<?php echo value_print($myvalue); ?> " /> <embed type="application/x-shockwave-flash" id="player2" name="player2" src="<?php echo __racine__; ?> /tpl/images/player-viral.swf" width="200" height="24" allowscriptaccess="always" allowfullscreen="true" flashvars="file=<?php echo value_print($myvalue); ?> " /> </object>
<?php $querystring = substr($searchstring[1], 0, -1); if ($_GET["mode"] == "ajout" || $_GET["mode"] == "modif") { ?> <iframe frameborder="0" border="0" src="../include/insertfile.php?nomobj=<?php echo $tabelem[0]; ?> " width="300" height="40" scrolling="no"></iframe> <br> <span id="listfile"> <?php if ($_GET["mode"] == "modif") { $resultatselect = query(${$querystring}); while ($tbl_resultselect = fetch($resultatselect)) { print "Supprimer <input type=\"hidden\" name=\"list2" . $tabelem[0] . "\" value=\"" . $tbl_resultselect[0] . "\"><input type=\"checkbox\" name=\"" . $tabelem[0] . "\" value=\"" . $tbl_resultselect[0] . "\">" . $tbl_resultselect[1] . "<br>"; } } ?> </span> <?php } else { $resultatselect = query(${$querystring}); while ($tbl_resultselect = fetch($resultatselect)) { print value_print($tbl_resultselect[1]) . "<br>"; } }
<?php $listext = split(",", substr($searchstring[1], 0, -1)); $fichier = $listext[0]; if ($_GET["mode"] == "visu" || $_GET["mode"] == "suppr") { print affichemediaimg($fichier . "." . $myvalue); } else { print '<input type="file" name="' . $tabelem[0] . '"><input type="hidden" name="' . $tabelem[0] . '_last" value="' . ($myvalue != '' ? '1' : '0') . '"> ' . value_print($searchstring[1] != '' ? '(jpg,png)' : '') . ($tabelem[2] != "yes" && $_GET["mode"] != "ajout" && $myvalue != '' ? ' supprimer <input type="checkbox" name="' . $tabelem[0] . '_chk" value="1">' : '') . '<br>'; print affichemediaimg($fichier . "." . $myvalue); }
<?php $querystring = substr($searchstring[1], 0, -1); $resultatselect = query(${$querystring}); if (!($_GET["mode"] == "visu" || $_GET["mode"] == "suppr")) { print "<select name=\"" . $tabelem[0] . "\" class=\"selectstyle\">"; print "<option value=\"null\"></option>"; } while ($tbl_resultselect = fetch($resultatselect)) { if ($_GET["mode"] == "visu" || $_GET["mode"] == "suppr") { if ($myvalue == $tbl_resultselect[0]) { print value_print($tbl_resultselect[1]); } } else { print "<option value=\"" . $tbl_resultselect[0] . "\" " . ($myvalue == $tbl_resultselect[0] ? "selected" : "") . ">" . $tbl_resultselect[1] . "</option>"; } } if (!($_GET["mode"] == "visu" || $_GET["mode"] == "suppr")) { print "</select> <a href=\"#\" onclick=\"if(document.form1." . $tabelem[0] . ".selectedIndex!=0){window.open('" . __racineadmin__ . "/element/listbymusic/popup.php?name='+document.form1." . $tabelem[0] . ".options[document.form1." . $tabelem[0] . ".selectedIndex].text)}\">Voir les chansons de cet artiste</a>"; }
if (!($_GET["mode"] == "visu" || $_GET["mode"] == "suppr")) { print "<script>"; print "top.tab" . $subtabelem[0] . "_" . $subtabelem[1] . "= new Array();"; $lastmainid = 0; $tabelem = array(); while ($tbl_resultselect = fetch($resultatselect)) { if ($myvalue == $tbl_resultselect[0]) { $currrentval = value_print($tbl_resultselect[1]); } if ($lastmainid != $tbl_resultselect[2]) { print "top.tab" . $subtabelem[0] . "_" . $subtabelem[1] . "[" . $tbl_resultselect[2] . "]=new Array();"; $lastmainid = $tbl_resultselect[2]; } print "top.tab" . $subtabelem[0] . "_" . $subtabelem[1] . "[" . $tbl_resultselect[2] . "][top.tab" . $subtabelem[0] . "_" . $subtabelem[1] . "[" . $tbl_resultselect[2] . "].length]= new Array('" . addslashes($tbl_resultselect[1]) . "','" . addslashes($tbl_resultselect[0]) . "');"; $tabelem[] = $tbl_resultselect; } print "</script>"; print "<select name=\"" . $subtabelem[1] . "\" class=\"selectstyle\">"; print "<option value=\"null\"></option>"; if ($_GET["mode"] == "modif") { for ($i = 0; $i < count($tabelem); $i++) { print "<option value=\"" . $tabelem[$i][0] . "\" " . ($myvalue == $tabelem[$i][0] ? "selected" : "") . ">" . $tabelem[$i][1] . "</option>"; } } } if ($_GET["mode"] == "visu" || $_GET["mode"] == "suppr") { value_print($currrentval); } if (!($_GET["mode"] == "visu" || $_GET["mode"] == "suppr")) { print "</select>"; }
<?php if ($_GET["mode"] == "visu" || $_GET["mode"] == "suppr") { print value_print(affichedateiso($myvalue)); } else { $myvalue = $myvalue == "" ? date("Y") . "/" . date("m") . "/" . date("d") : $myvalue; //$myvalue=($tabelem[2]!="yes"&&$_GET["mode"]=="ajout")?"":$myvalue; print '<input type="text" id="' . $tabelem[0] . '" name="' . $tabelem[0] . '" size="10" maxlength="10" value="' . affichedateiso($myvalue) . '"><img src="../images/datepopup.gif" id="trigger' . $tabelem[0] . '" style="cursor:pointer; cursor:hand;">'; print '<script type="text/javascript"> /*Calendar.setup( { inputField : "' . $tabelem[0] . '", // ID of the input field ifFormat : "%d/%m/%Y", // the date format button : "trigger' . $tabelem[0] . '" // ID of the button } );*/ top.calendar[top.calendar.length]={ inputField : "' . $tabelem[0] . '", // ID of the input field ifFormat : "%d/%m/%Y", // the date format button : "trigger' . $tabelem[0] . '" // ID of the button }; </script>'; }
<?php $maxlength = count($tabelem) > 3 ? 'maxlength="' . $tabelem[3] . '"' : ''; if ($_GET["mode"] == "visu" || $_GET["mode"] == "suppr") { print value_print("******"); } else { print '<input type="password" name="' . $tabelem[0] . '" size="60" ' . $maxlength . ' value="' . $myvalue . '" class="txt_champs">'; }
<?php $querystring = substr($searchstring[1], 0, -1); $tabelemchild = split(",", $querystring); if (!($_GET["mode"] == "visu" || $_GET["mode"] == "suppr")) { print "<select name=\"" . $tabelem[0] . "\" class=\"selectstyle\">"; print "<option value=\"null\"></option>"; } for ($i = 0; $i < count($tabelemchild); $i++) { if ($_GET["mode"] == "visu" || $_GET["mode"] == "suppr") { if ($myvalue == $tabelemchild[$i]) { print value_print($tabelemchild[$i]); } } else { print "<option value=\"" . $tabelemchild[$i] . "\" " . ($myvalue == $tabelemchild[$i] ? "selected" : "") . ">" . $tabelemchild[$i] . "</option>"; } } if (!($_GET["mode"] == "visu" || $_GET["mode"] == "suppr")) { print "</select>"; }
<?php $maxlength = count($tabelem) > 3 ? 'maxlength="' . $tabelem[3] . '"' : ''; if ($_GET["mode"] == "visu" || $_GET["mode"] == "suppr") { $myvalue2 = split(";", $myvalue); print value_print($myvalue2[0]) . " " . value_print($myvalue2[1]); } else { $myvalue2 = split(";", $myvalue); $tabelem2 = split(";", $tabelem[0]); print '<input type="text" name="' . $tabelem2[0] . '" size="30" value="' . $myvalue2[0] . '" class="txt_champs03"> <input type="text" name="' . $tabelem2[1] . '" size="30" value="' . $myvalue2[1] . '" class="txt_champs03">'; }
<?php if ($_GET["mode"] == "visu" || $_GET["mode"] == "suppr") { if ((int) $myvalue == 1) { print value_print("OUI"); } else { print value_print("NON"); } } else { print "<input type=\"checkbox\" name=\"" . $tabelem[0] . "\" value=\"1\" " . ((int) $myvalue == 1 ? "checked" : "") . ">"; }