$obj = json_decode(echovar("item")); if (!$obj) { return print_r("Undefined object"); } ?> <div id="modal-cont" class="css-modal"> <div class="header"> <div><h3>STILE: <?php print $obj->alias; ?> , tag: <?php print $obj->tag; ?> , chain-id: <?php print echovar("chainid"); ?> </h3></div> <div><span class="info-text">Gestisci lo stile di questo progetto</span></div> </div> <div class="body"> <div> <label class="blue-label">CSS:</label> <textarea id="_source" class="__css-editor jush language-css"></textarea> </div> </div> <div class="clear"></div> <div class="footer"> <div class="buttons"> <span class="text-er"></span> <a href="#" class="nodefault close-modal" action="CloseModal:Main.UpdateGraphicInterface">ANNULLA</a>
$select="PERS_EXT.*,SOCIETE.*"; $from="PERS_EXT LEFT JOIN SOCIETE ON PEX_COSOCIE=SOC_NUSOCIE"; $where=($where_per=="" ? "" : "where ".$where_per); $orderb="ORDER BY PEX_LLNOMPERS"; $result=msq("SELECT 1 FROM $from $where $orderb"); // on compte le nombre de ligne renvoyées par la requête $nbrows=mysql_num_rows($result); if ($debug) { echo "<H1>Nbre $nbrows</H1>"; echovar("where"); echovar("select"); echovar("from"); DispDebug(); } ?> <table width="300" border="0"> <tr><td align="center" colspan="2"> <a name="haut"></a> <span class="TRM"><?php echo $ss_prmev[title]; ?> </span> <? EchoTitIm1("RESULTAT"); ?> <? // On affiche le resultat if ($nbrows==0)// Si nbrésultat = 0 {
?> , tag: <?php print $obj->tag; ?> , chain-id: <?php print echovar("chainid"); ?> </h3></div> <div><span class="info-text">Modifica direttamente l'html di questo elemento</span></div> </div> <div class="body"> <div> <label class="blue-label">HTML:</label> <pre class="code language-html" style=" width: 779px;"> <?php print htmlspecialchars(echovar('html'), ENT_QUOTES); ?> </pre> <span class="input-info"></span> </div> </div> <div class="clear"></div> <div class="footer"> <div class="buttons"> <span class="text-er"></span> <a href="#" class="nodefault close-modal" action="CloseModal:Main.UpdateGraphicInterface">ANNULLA</a> <a href="#" class="nodefault add-class">MODIFICA</a> </div> </div> </div>
<?php $title = "Cartographie"; $db = true; // simulation register_globals=On foreach ($_REQUEST as $a => $b) { if ($a != "PHPSESSID") { // global $a; ${$a} = $b; } } include "setup.php"; // réponse a un ajout, modif ou suppression d'un enregistrement $debug = false; if ($debug) { echovar("_FILES"); } if ($_REQUEST["delete"] != "") { $modif = "-1"; } // suppression // s'il existe au moins 1 champ fichier-photo, // on calcule la CLE POUR LE NOM DE STOCKAGE DES FICHIERS ATTACHES EVENTUELS // uniquement en cas autre que modif: ds ce cas c'est pas la peine, $keycopy=$key if ($modif == "1" && $keyf != "") { $keycopy = $keyf; } else { $rpfl = msq("SELECT TYPEAFF from {$TBDname} where NM_TABLE='" . $_REQUEST['NM_TABLE'] . "' AND TYPEAFF='FICFOT'"); if (db_num_rows($rpfl) > 0) { //echovar("_FILES"); // détermination champ cle pour stockage fichier ou image
// if ($DRH_NUSDL7=="" || $DRH_NUSDL7==0 ) $DRH_NUSDL7=$DRH_NUPERSO; $NM_TABLE="INFOS_DRH"; // construction du set $set=""; // reset set $rq1=msq("SELECT NM_CHAMP from $TBDRHname where NM_TABLE='$NM_TABLE' AND NM_CHAMP!='$NmChDRHT' ORDER BY ORDAFF, LIBELLE"); $PYAoMAJ->NmTable=$NM_TABLE; while ($res1=mysql_fetch_array($rq1)) { $NOMC=$res1[NM_CHAMP]; // nom variable=nom du champ $PYAoMAJ->NmChamp=$NOMC; $PYAoMAJ->InitPO(); $PYAoMAJ->ValChp=$$NOMC; // issu du formulaire if ($NOMC=="DRH_COSPECIAL") echovar($NOMC); // on ne met à jour le champ que si la variable corrr. du formulaire est définie // en création sinon la clé ne passe pas (bug) // ceci pour éviter les RAZ de champs masqués à cause des profils //if (isset($HTTP_POST_VARS[$NOMC]) || isset($HTTP_GET_VARS[$NOMC]) || $PYAoMAJ->TypeAff=="FICFOT" || $modif==""){ // ne sert à rien car pas de fichiers liés, mis on le laisse on ne sait jamais if ($PYAoMAJ->TypeAff=="FICFOT") { $VarFok="Fok".$NOMC; $PYAoMAJ->Fok=$$VarFok; $VarFname=$NOMC."_name"; $PYAoMAJ->Fname=$$VarFname; $VarFsize=$NOMC."_size"; $PYAoMAJ->Fsize=$$VarFsize; $VarOldFName="Old".$NOMC; $PYAoMAJ->OFN=$$VarOldFName;
function DispDebug() { global $where_sup, $tbchptri,$tbordtri,$FirstEnr,$tbAfC; echo "<B>! MODE DEBOGGAGE ! - </b> <a href=\"./phpinfo.php\" target=\"blank\">phpinfo</a><BR>"; echovar ("HTTP_REFERER"); echovar ("where_sup"); echovar ("lc_nbligpp"); echovar("tbchptri"); echovar("tbordtri"); echovar("FirstEnr"); echovar("tbAfC","yes"); echovar("ss_parenv","yes"); echovar("ss_adrr","yes"); echo "<PRE><u>Chaine de session:</u> ".session_encode()."</PRE>"; }
<span class="text-er"></span> <a href="#" class="nodefault close-modal" action="CloseModal:Main.UpdateGraphicInterface">ANNULLA</a> <a href="#" class="nodefault add-atts">MEMORIZZA</a> </div> </div> </div> <script> (function() { /* * Init */ var act = { item: JSON.parse(<?php print json_encode(echovar('item')); ?> ) } /* * Tabs */ $("._zoom-modal ._menu-tabs a").on("click", function(e) { e.preventDefault(); if(!$(this).hasClass("_active")) { $("._menu-tabs").find("._active").removeClass("_active"); $(this).addClass("_active"); } });
<?php $obj = null; function echovar($n) { if (!isset($_GET[$n]) && !isset($_POST[$n])) { return null; } else { return isset($_GET[$n]) ? $_GET[$n] : $_POST[$n]; } } if (echovar("element") != null) { $obj = json_decode(echovar("element")); if (!$obj) { print "Si è verificato un errore fatale. Impossibile iniziare la modifica"; exit; } } ?> <div id="modal-cont"> <div class="header"> <div><h3>MODIFICA PROTOCOLLO: <?php echo $obj->alias; ?> </h3></div> <div><span class="info-text">Configura questo elemento per poterlo riutilizzare in futuro</span></div> </div> <div class="body"> <div class="tools"></div> <div class="input-area">
var startPos = myQuery.selectionStart; var endPos = myQuery.selectionEnd; var chaineSql = myQuery.value; myQuery.value = chaineSql.substring(0, startPos) + chaineAj + chaineSql.substring(endPos, chaineSql.length); } else { myQuery.value += chaineAj; } } } </SCRIPT> <? if ($debug && isset ($cktbAfC)) { // le cookie est m�oris�fonctionne $tbAfC=explode(";",$cktbAfC); echovar ("tbAfC","yes"); }?> <form action="<?php echo $admadm != "1" ? "req_table.php" : "admdesct.php"; ?> " method="post" name="theform" onsubmit="return verif(this)" ENCTYPE="multipart/form-data"> <input type="hidden" name="lc_NM_TABLE"> <H1><?php echo ($admadm == 1 ? trad('LT_titlehadm') : trad('LT_titlehedit')) . " " . $DBName; ?> </H1> <h2><?php echo trad('LT_clicktable'); ?> </h2>
</div> </div> <script> (function() { /* * Init */ var act = { item: JSON.parse(<?php print json_encode(echovar('item')); ?> ), uid: <?php print echovar("uid"); ?> } /* * AddClick */ $(".class-modal a.add-class").on("click", function() { //Add id var id = $(".class-modal input[name='id']").val(); if(id.replace(/\s/g, "") !== "") $("[_uid='"+act.uid+"']").attr("id", id); //Get classes var cs = $(".class-modal input[name='classes']").val();
function DispDebug() { global $HTTP_POST_VARS; echo "<B>! MODE DEBOGGAGE ! - </b><BR>"; echovar ("DB_NAME"); echovar("ss_prmev","yes"); echo "<PRE><u>Chaine de session:</u> ".session_encode()."</PRE>"; if (isset($HTTP_POST_VARS)) { echo "<u>Tableau des variables POST : </u><br>\n"; foreach ($HTTP_POST_VARS as $NmVar=>$ValVar) { echo "Nom: $NmVar ; valeur : $ValVar <br>\n"; } } if (isset($HTTP_GET_VARS)) { echo "<u>Tableau des variables GET : </u><br>\n"; foreach ($HTTP_GET_VARS as $NmVar=>$ValVar) { echo "Nom: $NmVar ; valeur : $ValVar <br>\n"; } } } // fin fonction
<div class="header"> <div><h3>SALVA IL LAYOUT </h3></div> <div><span class="info-text">Salva il layout in un documento html</span></div> </div> <div class="body"> <div class="tools"></div> <div class="input-area"> <form id="save-layout"> <div class="left left-area"> <label class="protocol-label">Informazioni</label> <div class="data-input-cont"> <div class="data-input-group"> <label>Nome</label> <div class="right-inputs" style="float:left;"> <input type="text" name="nome" rules="required" value="<?php print echovar('pageName'); ?> "/> <span class="input-info"></span> </div> <div class="clear"></div> </div> </div> </div> <div class="left right-area"> <label class="css-label">CSS</label> <textarea class="protocol" name="css" rules="required"></textarea> </div> </form> </div> <div class="clear"></div>
$("form#add-item input[type='text']").each(function() { o[$(this).attr("name")] = $(this).val(); }); $("form#add-item textarea").each(function() { o[$(this).attr("name")] = $(this).val(); }); o["default_style"] = CSSJSON.toJSON(o["default_style"]); o["visible"] = true; //Add item TwigGen.AddItem(name, o, function(d) { $('form#add-item').find('input, textarea, button, select').attr('disabled','enabled'); if(d.error) { $(".text-er").html(d.error); } else { TwigGen.CloseModal() .GetState("Main").UseItem( TwigGen.GetItemByAlias(name) ) .UpdateGraphicInterface(); cback = "<?php print echovar("callback"); ?> "; if(cback && TwigGen.Cache.GetData(cback)) { TwigGen.Cache.GetData(cback).call(TwigGen); } } }); }); </script>