function lister_caracteristiques($critere, $order) { $caracteristique = new Caracteristique(); $query = "select id, classement from {$caracteristique->table} order by {$critere} {$order}"; $resul = $caracteristique->query($query); while ($resul && ($row = $caracteristique->fetch_object($resul))) { $caracteristiquedesc = new Caracteristiquedesc(); $caracteristiquedesc->charger($row->id); $fond = "ligne_" . ($i++ % 2 ? "claire" : "fonce") . "_rub"; ?> <ul class="<?php echo $fond; ?> "> <li style="width:770px;"><span id="<?php echo $row->id; ?> " class="texte_edit"><?php echo $caracteristiquedesc->titre; ?> </span></li> <li style="width:37px;"><a href="<?php echo "caracteristique_modifier.php?id={$row->id}"; ?> "><?php echo trad('editer', 'admin'); ?> </a></li> <li style="width:71px;"> <div class="bloc_classement"> <div class="classement"><a href="caracteristique_modifier.php?id=<?php echo $row->id; ?> &action=modclassement&type=M"><img src="gfx/up.gif" border="0" /></a></div> <div class="classement"><span id="classementcarac_<?php echo $row->id; ?> " class="classement_edit"><?php echo $row->classement; ?> </span></div> <div class="classement"><a href="caracteristique_modifier.php?id=<?php echo $row->id; ?> &action=modclassement&type=D"><img src="gfx/dn.gif" border="0" /></a></div> </div> </li> <li style="width:37px; text-align:center;"><a onclick="return suppr_carac(<?php echo $row->id; ?> );" href="<?php echo "caracteristique_modifier.php?id={$row->id}&action=supprimer"; ?> " ><img src="gfx/supprimer.gif" width="9" height="9" border="0" /></a></li> </ul> <?php } }
function ret_adrr($adr,$echImg=false,$lb_butt="BT_retour") { global $def_adrr; //print_r($_SESSION['ss_adrr']); // l'adresse vient de $PHP_SELF qui peut contenir le chemin : on l'enl�e if (strrchr($adr,"/")) $adr=substr(strrchr($adr,"/"),1); if (strrchr($adr,"\\")) $adr=substr(strrchr($adr,"\\"),1); if (!$echImg) { // 1=true ie si on ne doit pas renvoyer le lien mais seulement une URL return (isset($_SESSION['ss_adrr'][$adr]) ? $_SESSION['ss_adrr'][$adr] : $def_adrr[$adr]);} else { if ($_SESSION['ss_adrr'][$adr]!="0") return ("<a class=\"fxbutton\" href=\"".(isset($_SESSION['ss_adrr'][$adr]) ? $_SESSION['ss_adrr'][$adr] : $def_adrr[$adr])."\">".trad($lb_butt)."</A>"); } }
public function make_yes_no_radio($var_name) { $val = Variable::lire($var_name); echo '<input type="radio" name="' . $var_name . '" value="1"' . ($val == 1 ? ' checked="checked"' : '') . '>' . trad('Oui', 'admin') . ' <input type="radio" name="' . $var_name . '" value="0"' . ($val == 0 ? ' checked="checked"' : '') . '>' . trad('Non', 'admin'); }
echo $nbLimite; ?> " style="width:30px" /><input name="limite" id="radio_limite_1" type="radio" class="form" value="1" <?php echo $illimiten; ?> /> <?php echo trad('Illimite', 'admin'); ?> <input name="limite" type="radio" class="form" value="0" <?php echo $illimiteo; ?> /></li> </ul> <ul class="ligne_claire_BlocDescription"> <li class="designation" style="width:280px;"><?php echo trad('Date_expi', 'admin'); ?> </li> <li>Expire le <input name="jour" type="text" class="form" value="<?php echo $jour; ?> " style="width:15px" onclick="(document.getElementById('radio_expiration_1').checked='checked')" /> <input name="mois" type="text" class="form" value="<?php echo $mois; ?> " style="width:15px" onclick="(document.getElementById('radio_expiration_1').checked='checked')" /> <input name="annee" type="text" class="form" value="<?php echo $annee; ?> " style="width:30px" onclick="(document.getElementById('radio_expiration_1').checked='checked')" /><input type="radio" name="expiration" id="radio_expiration_1" value="1" <?php echo $nillimdate;
$(this).parent().parent().unbind().remove(); checkTotal($('input[name="apply_client_discount"]').is(':checked') && $('#clientDiscountVal').html() > 0); }); }); function displayChangeClientMessage() { $('input[name="client_selected"]').val(1); $('#client_matched').unbind().empty().append( $('<a />').attr('href', '#').html( '<?php echo htmlentities(trad('cancel_choice', 'admin'), ENT_QUOTES, 'UTF-8'); ?> ' ).click(function(e) { changeClient(e) }) ); } function changeClient(e) { if(e !== null) e.preventDefault(); $('.clientSearch').attr('readonly', false);
echo 'checked="checked"'; } ?> /> <?php echo trad('Utiliser un domaine ou sous-domaine pour chaque langue', 'admin'); ?> </li> </ul> <ul class="ligne_fonce_BlocDescription"> <li style="width:151px;"><?php echo trad('Langue', 'admin'); ?> </li> <li style="width:406px;"><?php echo trad('URL associée', 'admin'); ?> </li> </ul> <?php $fond = 'claire'; foreach ($langues as $langue) { ?> <ul class="ligne_<?php echo $fond; ?> _BlocDescription"> <li style="width:151px;"><?php echo $langue->description; ?>
echo $addError ? $description : ''; ?> " name="description" /> </td> </tr> </tbody> </table> </div> <div class="modal-footer"> <a class="btn" data-dismiss="modal" aria-hidden="true"><?php echo trad('Cancel', 'admin'); ?> </a> <button type="submit" class="btn btn-primary"><?php echo trad('Ajouter', 'admin'); ?> </button> </div> </form> </div> <?php ActionsAdminModules::instance()->inclure_module_admin("droits_bottom"); ?> <?php require_once "pied.php"; ?>
function chemin($arbre_id = 0, $langue_id = 0) { $langue_id = $langue_id == 0 && $_GET["la_langue"] == "" ? __defaultlangueid__ : ($langue_id != "" ? $langue_id : $_GET["la_langue"]); //print $arbre_id."/".$langue_id."<br>"; //print "ici"; $arbre_id = $arbre_id === 0 ? $_GET["arbre"] : $arbre_id; if ($arbre_id != "" && $arbre_id != "0") { $sql = "select pere,nom,contenu_id,a.arbre_id,etat_id,translate,arbre_id_alias,root,nom_fichier \r\n from " . __racinebd__ . "arbre a inner join " . __racinebd__ . "gabarit g on a.gabarit_id=g.gabarit_id \r\n inner join " . __racinebd__ . "contenu c on (a.arbre_id=c.arbre_id or a.arbre_id_alias=c.arbre_id) and langue_id=" . $langue_id . " where c.arbre_id=" . $arbre_id; $link = query($sql); $tbl_result = fetch($link); if ($tbl_result["translate"] == "1") { $sql = "select * from " . __racinebd__ . "content where contenu_id=" . $tbl_result["contenu_id"] . " and version_id=1"; } else { $sql = "select * from " . __racinebd__ . "contenu c1 inner join " . __racinebd__ . "content c2 on c1.contenu_id=c2.contenu_id where c1.langue_id=" . __defaultlangueid__ . " and arbre_id=" . ($tbl_result["arbre_id_alias"] != "" ? $tbl_result["arbre_id_alias"] : $tbl_result["arbre_id"]) . " and version_id=1"; } $link_txt = query($sql); $tbl_result_txt = fetch($link_txt); if ($tbl_result["pere"] == $tbl_result["root"]) { $sql = "select shortlib from " . __racinebd__ . "langue where langue_id=" . $langue_id; $link_langue = query($sql); $tbl_result_langue = fetch($link_langue); //if($langue_id==1) if (__showlang__) { if ($tbl_result["nom_fichier"] == "" || $tbl_result["etat_id"] != 1) { //return "<a href=\"".urlp($tbl_result["root"]).$tbl_result_langue["shortlib"]."\">".trad("Accueil",$langue_id)."</a>"; //return "<a href=\"".urlp($tbl_result["root"])."\">".trad("Accueil",$langue_id)."</a>"; } else { //return "<a href=\"".urlp($tbl_result["root"]).$tbl_result_langue["shortlib"]."\">".trad("Accueil",$langue_id)."</a> > <a href=\"".(($tbl_result["nom_fichier"]=="")?"#":(($tbl_result["etat_id"]==1)?urlp($arbre_id,$langue_id):"#"))."\">".strip_tags($tbl_result_txt["titre1"])."</a>"; return "<a href=\"" . urlp($tbl_result["root"]) . "\">" . trad("Accueil", $langue_id) . "</a> > <a href=\"" . ($tbl_result["nom_fichier"] == "" ? "#" : ($tbl_result["etat_id"] == 1 ? urlp($arbre_id, $langue_id) : "#")) . "\">" . strip_tags($tbl_result_txt["titre1"]) . "</a>"; } } else { if ($tbl_result["nom_fichier"] == "" || $tbl_result["etat_id"] != 1) { return "<a href=\"" . urlp($tbl_result["root"]) . "\">" . trad("Accueil", $langue_id) . "</a>"; } else { return "<a href=\"" . urlp($tbl_result["root"]) . "\">" . trad("Accueil", $langue_id) . "</a> > <a href=\"" . ($tbl_result["nom_fichier"] == "" ? "#" : ($tbl_result["etat_id"] == 1 ? urlp($arbre_id, $langue_id) : "#")) . "\">" . strip_tags($tbl_result_txt["titre1"]) . "</a>"; } } } else { if ($tbl_result["nom_fichier"] == "" || $tbl_result["etat_id"] != 1) { return chemin($tbl_result["pere"], $langue_id) . " > "; } else { return chemin($tbl_result["pere"], $langue_id) . " > <a href=\"" . ($tbl_result["nom_fichier"] == "" ? "#" : ($tbl_result["etat_id"] == 1 ? urlp($arbre_id, $langue_id) : "#")) . "\">" . strip_tags($tbl_result_txt["titre1"]) . "</a>"; } //return chemin($tbl_result["pere"],$langue_id)." > <a href=\"#\">".strip_tags($tbl_result_txt["titre1"])."</a>"; } } }
<!-- début du bloc de gestion des photos du contenu --> <div class="bloc_fleche" style="cursor:pointer" onclick="$('#pliantsphotos').show('slow');"><img src="gfx/fleche_accordeon_img_dn.gif" /></div> <div class="blocs_pliants_photo" id="pliantsphotos"> <?php $images_adm->bloc_gestion(); ?> <div class="bloc_fleche" style="cursor:pointer" onclick="$('#pliantsphotos').hide();"><img src="gfx/fleche_accordeon_img_up.gif" /></div> </div> <!-- fin du bloc de gestion des photos du contenu --> <!-- début du bloc de transfert des documents du contenu --> <div class="entete" style="margin-top:10px;"> <div class="titre"><?php echo trad('GESTION_DOCUMENTS', 'admin'); ?> </div> </div> <?php $documents_adm->bloc_transfert(); ?> <!-- fin du bloc transfert des documents du contenu --> <!-- début du bloc de gestion des documents du contenu --> <div class="bloc_fleche" style="cursor:pointer" onclick="$('#pliantsfichier').show('slow');"><img src="gfx/fleche_accordeon_img_dn.gif" /></div> <div class="blocs_pliants_fichier" id="pliantsfichier"> <?php $documents_adm->bloc_gestion();
?> </span> | <?php } ?> <?php } ?> <a href="<?php echo $_SERVER['PHP_SELF']; ?> ?page=<?php echo $pagesuiv; ?> "><?php echo trad('Page_suivante', 'admin'); ?> </a> </p> </div> <?php require_once "pied.php"; ?> </div> </div> </body> </html>
?> "><?php echo trad('editer', 'admin'); ?> </a>) <?php } ?> <?php if ($breadcrumb["browse"] != "") { ?> (<a href="<?php echo $breadcrumb["browse"]; ?> "><?php echo trad('parcourir', 'admin'); ?> </a>) <?php } ?> </li> <?php } else { ?> <li><a href="<?php echo $breadcrumb["url"]; ?> "><?php echo $breadcrumb["display"]; ?>
<? if (!$ss_parenv[noinfos]) { ?> <hr size="1" width="50%"> <? //JSpopup(); ?> <div align="center"> <small> <?php echo trad(foo_user_connected) . " " . ${$VarNomUserMAJ}; ?> - version <a href="#" onclick="popup('aide.php#clog')"><?php echo $VerNum; ?> </a> <BR><a href="#" onclick="popup('aide.php');"><img src="help.gif" width="17" height="17" border="0" alt="Afficher l'aide"></A> <a href="#" onclick="popup('aide.php');">Aide</A> </small></div> <? } ?> </DIV> <!-- fin <DIV class="PYA"> --> </BODY> </HTML>
function modifier_pays_zone($idzone) { $zone = new Zone(); $zone->charger($idzone); $pays = new Pays(); $query = "select * from {$pays->table} where zone=\"-1\""; $resul = $pays->query($query); ?> <div class="entete_liste_config" style="margin-top:15px;"> <div class="titre"><?php echo trad('MODIFICATION_ZONE', 'admin'); ?> </div> </div> <ul class="ligne1"> <li style="width:250px;"> <select class="form_select" id="pays"> <?php while ($resul && ($row = $pays->fetch_object($resul))) { $paysdesc = new Paysdesc(); if ($paysdesc->charger($row->id)) { ?> <option value="<?php echo $paysdesc->pays; ?> "><?php echo $paysdesc->titre; ?> </option> <?php } } ?> </select> </li> <li><a href="javascript:ajouter($('#pays').val())"><?php echo trad('AJOUTER_PAYS', 'admin'); ?> </a></li> </ul> <?php $pays = new Pays(); $query = "select * from {$pays->table} where zone=\"" . $idzone . "\""; $resul = $pays->query($query); while ($resul && ($row = $pays->fetch_object($resul))) { $paysdesc = new Paysdesc(); $paysdesc->charger($row->id); $fond = "ligne_" . ($i++ % 2 ? "fonce" : "claire") . "_BlocDescription"; ?> <ul class="<?php echo $fond; ?> "> <li style="width:492px;"><?php echo $paysdesc->titre; ?> </li> <li style="width:32px;"><a href="javascript:supprimer(<?php echo $row->id; ?> )"><?php echo trad('Supprimer', 'admin'); ?> </a></li> </ul> <?php } ?> <ul class="ligne1"> <li><?php echo trad('Forfait transport: ', 'admin'); ?> <input type="text" class="form_inputtext" id="forfait" onclick="this.value=''" value="<?php echo htmlspecialchars($zone->unite); ?> " /></li> <li><a href="javascript:forfait($('#forfait').val())"><?php echo trad('VALIDER', 'admin'); ?> </a></li> </ul> <?php }
public function bloc_gestion() { $image = new Image(); $query = "select * from {$image->table} where {$this->typeobjet}='{$this->idobjet}' order by classement"; $resul = $image->query($query); while ($resul && ($row = $image->fetch_object($resul))) { $imagedesc = new Imagedesc(); $imagedesc->charger($row->id, $this->lang); ?> <form action="<?php echo $this->nompageadmin; ?> " method="post"> <input type="hidden" name="action" value="modifierphoto" /> <input type="hidden" name="id_photo" value="<?php echo $row->id; ?> " /> <input type="hidden" name="id" value="<?php echo $this->idobjet; ?> " /> <input type="hidden" name="lang" value="<?php echo $this->lang; ?> " /> <?php $this->form_hidden_fieds(); ?> <ul> <li class="lignesimple"> <div class="cellule_designation" style="height:208px;"> </div> <div class="cellule_photos" style="height:200px; overflow:hidden;"><a href="<?php echo $this->chemin_objet($row->fichier); ?> " target="_blank"><img src="../fonctions/redimlive.php?type=<?php echo $this->typeobjet; ?> &nomorig=<?php echo $row->fichier; ?> &width=&height=200&opacite=&nb=" border="0" /></a></div> <div class="cellule_supp"><a onclick="return confirm('<?php echo trad('Supprimer définitivement cette image ?', 'admin'); ?> ');" href="<?php echo $this->url_page_admin(); ?> &id_photo=<?php echo $row->id; ?> &action=supprimerphoto"><img src="gfx/supprimer.gif" width="9" height="9" border="0" /></a></div> </li> <li class="lignesimple"> <div class="cellule_designation" style="height:30px;"><?php echo trad('Titre', 'admin'); ?> </div> <div class="cellule"> <input type="text" name="titre_photo" style="width:219px;" class="form" value="<?php echo htmlspecialchars($imagedesc->titre); ?> " /> </div> </li> <li class="lignesimple"> <div class="cellule_designation" style="height:50px;"><?php echo trad('Chapo', 'admin'); ?> </div> <div class="cellule"><textarea name="chapo_photo" rows="2"class="form" style="width:219px;"><?php echo $imagedesc->chapo; ?> </textarea></div> </li> <li class="lignesimple"> <div class="cellule_designation" style="height:65px;"><?php echo trad('Description', 'admin'); ?> </div> <div class="cellule"><textarea name="description_photo" class="form" rows="3"><?php echo $imagedesc->description; ?> </textarea></div> </li> <li class="lignesimple"> <div class="cellule_designation" style="height:30px;"><?php echo trad('Classement', 'admin'); ?> </div> <div class="cellule"> <div class="classement"> <a href="<?php echo $this->url_page_admin() . "&id_photo=" . $row->id . "&action=modclassementphoto&type=M"; ?> "><img src="gfx/up.gif" border="0" /></a></div> <div class="classement"> <a href="<?php echo $this->url_page_admin() . "&id_photo=" . $row->id . "&action=modclassementphoto&type=D"; ?> "><img src="gfx/dn.gif" border="0" /></a></div> </div> </li> <li class="lignesimple"> <div class="cellule_designation" style="height:30px;"> </div> <div class="cellule" style="height:30px; border-bottom: 1px dotted #9DACB6"><input type="submit" value="<?php echo trad('Enregistrer', 'admin'); ?> " /></div> </li> </ul> </form> <?php } }
<br><br> <?php echo $theecho; ?> <br><br> <? if ($ss_parenv[blair]!="1" && $ss_parenv[ro]!=true) { JSprotectlnk();?> <small><?php echo trad("BT_click"); ?> <a class="fxbutton" href="#" onclick="protectlnk('CREATE_DESC_TABLES.php','<?php echo $jsppwd; ?> ','<?php echo trad(com_enter_password); ?> ');"><?php echo trad("BT_here"); ?> </a> <?php echo trad("LB_createDT"); ?> </small> <? } include ("footer.php"); } else { // si 1 seule base va directement à la la liste des tables de cette base header ("location:LIST_TABLES.php?lc_DBName=$dbok&cfLB=vrai"); } ?>
?> </h3> </div> <div class="modal-body"> <p><?php echo trad('formulaire_not_saved', 'admin'); ?> </p> </div> <div class="modal-footer"> <a class="btn" data-dismiss="modal" aria-hidden="true"><?php echo trad('Non', 'admin'); ?> </a> <a class="btn btn-primary" id="changeLangLink"><?php echo trad('Oui', 'admin'); ?> </a> </div> </div> <?php ActionsAdminModules::instance()->inclure_module_admin("dossier_modifier_bottom"); require_once "pied.php"; ?> <script type="text/javascript"> $(document).ready(function(){ var form = 0; $("#formulaire").change(function(){ form=1;
</li> <li><a href="#" onclick="ajout()"><?php echo trad('AJOUTER', 'admin'); ?> </a></li> </ul> <div class="entete_config" style="margin:10px 0 0 0;"> <div class="titre"><?php echo trad('VALEURS_DISPONIBLES', 'admin'); ?> </div> <div class="maj"> <a href="#" onclick="maj()"><?php echo trad('MAJ', 'admin'); ?> </a> </div> </div> <!-- bloc des valeurs disponibles --> <?php $query = "\n \tselect\n \t\tdd.*, IFNULL(ddd.classement," . PHP_INT_MAX . ") as classmt\n \tfrom\n \t\t{$caracdisp->table} dd\n \tleft join\n \t\t{$caracdispdesc->table} ddd on ddd.caracdisp = dd.id and lang = {$lang}\n \twhere\n \t\tdd.caracteristique='{$id}'\n \torder by\n \t\tclassmt, dd.id"; $resul = $caracdisp->query($query); $i = 0; while ($resul && ($row = $caracdisp->fetch_object($resul))) { $caracdispdesc = new Caracdispdesc($row->id, $lang); if (!($i % 2)) { $fond = "claire"; } else {
echo trad('Tri_par_defaut', 'admin'); ?> </a></li> </ul> </li> <li style="height:25px; width:117px; border-left:1px solid #96A8B5;"><?php echo trad('Derniere_commande', 'admin'); ?> </li> <li style="height:25px; width:70px; border-left:1px solid #96A8B5;"><?php echo trad('Montant_commande', 'admin'); ?> </li> <li style="height:25px; width:47px; border-left:1px solid #96A8B5;"></li> <li style="height:25px; width:22px; border-left:1px solid #96A8B5;"><?php echo trad('Suppr', 'admin'); ?> </li> </ul> <div id="resul"> <?php liste_clients('ASC', 'nom', $debut); ?> </div> <p id="pages"> <?php if ($page > 1) { ?> <a href="<?php
</ul> <div class="form_ajouter" style="display: none;"> <input type="hidden" name="flag_ajouter" value="0" /> <ul class="ligne_<?php echo $fond; ?> _BlocDescription"> <li style="width:15px;"> </li> <li style="width:89px;"><input type="text" style="width: 80px;" name="ajout_nom" /></li> <li style="width:105px; text-align: center;"><input type="text" style="width: 40px;" name="ajout_code" /></li> <li style="width:55px; text-align: center;"><input type="text" style="width: 40px;" name="ajout_symbole" /></li> <li style="width:105px; text-align: center;"><input type="text" style="width: 60px;" name="ajout_taux" /></li> <li style="width:40px; text-align: center;"> </li> <li style="width:60px; text-align: center;"><a onclick="show_form_ajouter(false); return false;" href="#" title="<?php echo trad('Annuler', 'admin'); ?> "><img src="gfx/supprimer.gif" alt="X" /></a></li> </ul> </div> </form> </div> </div> </div> <?php require_once "pied.php"; ?> </div> </body> </html>
<li class="fonce" style="width:222px; background-color:#9eb0be;border-bottom: 1px dotted #FFF;"><?php echo trad('Derniere_version_disponible', 'admin'); ?> </li> <li class="fonce" style="width:72px;"><a href="http://sourceforge.net/projects/thelia/files/latest/download?source=files">V<?php echo $versiondispo; ?> </a></li> <?php } ?> <li class="lignebottom" style="width:222px; background-color:#9eb0be;"><?php echo trad('Actualites', 'admin'); ?> </li> <li class="lignebottom" style="width:72px;"><a href="http://blog.thelia.net" target="_blank"><?php echo trad('cliquer_ici', 'admin'); ?> </a></li> </ul> </div> </div> <?php require_once "pied.php"; ?> </div> </div> </body> </html>
</div> <?php if ($errorCode > 0) { ?> <div class="modal hide fade in" id="error-plugin"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h3><?php echo trad('plugin_error', 'admin'); ?> </h3> </div> <div class="modal-body"> <div class="alert alert-block alert-error"> <?php echo trad('plugin_error_' . $errorCode, 'admin', $request->query->get('nom'), $errorMessage); ?> </div> </div> <div class="modal-footer"> </div> </div> <?php } ActionsAdminModules::instance()->inclure_module_admin("plugins_bottom"); require_once "pied.php"; ?> <script type="text/javascript" src="js/Thelia.js"></script> <script type="text/javascript" src="js/jeditable.min.js"></script> <script type="text/javascript">
} </script> <div id="contenu_int"> <p align="left"> <span class="lien04"><a href="accueil.php" class="lien04"><?php echo trad('Accueil', 'admin'); ?> </a></span> <img src="gfx/suivant.gif" width="12" height="9" border="0" /><a href="configuration.php" class="lien04"> <?php echo trad('Configuration', 'admin'); ?> </a> <img src="gfx/suivant.gif" width="12" height="9" border="0" /><a href="logs.php" class="lien04"> <?php echo trad('Gestion_log', 'admin'); ?> </a></p> </p> <div id="bloc_description" style="width: 70%; float: left;"> <form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?> " id="ms_form"> <input type="hidden" name="commande" value="maj_config" /> <div class="entete"> <div class="titre">CONFIGURATION</div> <div class="fonction_valider"><a href="#" onclick="ms_submit_form(); return false;">VALIDER LES MODIFICATIONS</a></div>
$FCobj->EchoFilt(); echo '<input type="hidden" name="nvc_'.$tbpropPya['NmChamp'].'" value="'.$nolig.'">'; echo "</TD><TD>"; $FCobj->EchoCSA(); echo "</TD></TR>\n"; } echo '<input type="hidden" name="tblvarrqc" value="'.implode(",",$tblvarrqc).'">'; } ?> <tr><td colspan="3" align="center"><br> <?php echo trad(LT_nblig_aff_ppage); ?> <input type="text" name="lc_nbligpp" size="3" maxlength="3" value="<? echo ($nbligpp>0 ? $nbligpp : $nbligpp_def) ?>"><br><?php echo ret_adrr($_SERVER["PHP_SELF"], true, 'REQ_retLT'); ?> <img src="./shim.gif" height="1" width="10"> <input type="submit" value="<?php echo trad('BT_valider'); ?> " class="fxbutton"/> </td></tr> </TABLE> </form> </div> <? include ("footer.php"); ?>
function liste_rubriques($parent, $critere, $order, $alpha) { $rubrique = new Rubrique(); $rubriquedesc = new Rubriquedesc(); if ($alpha == "alpha") { $query = "select r.id, r.ligne, r.classement from {$rubrique->table} r LEFT JOIN {$rubriquedesc->table} rd ON rd.rubrique=r.id and lang=" . ActionsLang::instance()->get_id_langue_courante() . " where r.parent=\"{$parent}\" order by rd.{$critere} {$order}"; } else { $query = "select id, ligne, classement from {$rubrique->table} where parent=\"{$parent}\" order by {$critere} {$order}"; } $resul = $rubrique->query($query); $i = 0; while ($resul && ($row = $rubrique->fetch_object($resul))) { $rubriquedesc = new Rubriquedesc(); $rubriquedesc->charger($row->id); if (!$rubriquedesc->affichage_back_office_permis()) { continue; } $fond = "ligne_" . ($i++ % 2 ? "claire" : "fonce") . "_rub"; ?> <ul class="<?php echo $fond; ?> "> <li style="width:623px;"><span id="titrerub_<?php echo $row->id; ?> " <?php if ($rubriquedesc->est_langue_courante()) { echo 'class="texte_edit"'; } ?> ><?php echo substr($rubriquedesc->titre, 0, 80); if (strlen($rubriquedesc->titre) > 80) { echo " ..."; } ?> </span></li> <li style="width:53px;"><input type="checkbox" id="rub_ligne_<?php echo $row->ref; ?> " name="ligne[]" class="sytle_checkbox" onchange="checkvalues('lignerub','<?php echo $row->id; ?> ')" <?php if ($row->ligne) { ?> checked="checked" <?php } ?> /></li> <li style="width:54px;"><?php if ($rubriquedesc->rubrique) { ?> <a href="parcourir.php?parent=<?php echo $row->id; ?> " ><?php echo trad('parcourir', 'admin'); ?> </a><?php } ?> </li> <li style="width:34px;"><a href="rubrique_modifier.php?id=<?php echo $row->id; ?> " class="txt_vert_11"><?php echo trad('editer', 'admin'); ?> </a></li> <li style="width:71px;"> <div class="bloc_classement"> <div class="classement"><a href="rubrique_modifier.php?id=<?php echo $row->id; ?> &action=modclassement&parent=<?php echo $parent; ?> &type=M"><img src="gfx/up.gif" border="0" /></a></div> <div class="classement"><span id="classementrub_<?php echo $row->id; ?> " class="classement_edit"><?php echo $row->classement; ?> </span></div> <div class="classement"><a href="rubrique_modifier.php?id=<?php echo $row->id; ?> &action=modclassement&parent=<?php echo $parent; ?> &type=D"><img src="gfx/dn.gif" border="0" /></a></div> </div> </li> <li style="width:37px; text-align:center;"><a href="javascript:supprimer_rubrique('<?php echo $row->id; ?> ','<?php echo $parent; ?> ')"><img src="gfx/supprimer.gif" width="9" height="9" border="0" /></a></li> </ul> <?php } }
), /*buttons*/ $('<td />').append( $('<div />').addClass('btn-group').append( $('<button />').attr('title', '<?php echo htmlentities(trad('modifier', 'admin'), ENT_QUOTES, 'UTF-8'); ?> ').addClass('btn').addClass('btn-mini').append( $('<i />').addClass('icon-check') ).click(function() { /*validation*/ valid_callback(Thelia_promo.getRowResult()); }), $('<button />').attr('title', '<?php echo htmlentities(trad('annuler', 'admin'), ENT_QUOTES, 'UTF-8'); ?> ').addClass('btn').addClass('btn-mini').append( $('<i />').addClass('icon-remove-sign') ).click(function() { /*annulation*/ quit_callback(); }) ) ) ); }, generateRowModule: function(id) { return $('<tr />').attr('id', 'promo_edit_row_module').addClass('warning').append(
function afficher_plugins() { afficher_liste_plugins(Modules::CLASSIQUE, trad('LISTE_PLUGINS_CLASSIQUES', 'admin')); afficher_liste_plugins(Modules::PAIEMENT, trad('LISTE_PLUGINS_PAIEMENTS', 'admin')); afficher_liste_plugins(Modules::TRANSPORT, trad('LISTE_PLUGINS_TRANSPORTS', 'admin')); afficher_liste_plugins(Modules::FILTRE, trad('LISTE_FILTRE', 'admin')); }
$fond = "ligne_" . ($i % 2 ? 'fonce' : 'claire') . "_BlocDescription"; ?> <ul class="<?php echo $fond; ?> "> <li style="width:534px;"><?php echo ActionsAdminModules::instance()->lire_titre_module($module); ?> </li> <li style="width:32px;"><a href="transport.php?id=<?php echo $module->id; ?> #lzone"><?php echo trad('editer', 'admin'); ?> </a></li> </ul> <?php $i++; } ?> </div> <!-- fin du bloc des listes de transports --> <a name="lzone"> </a> <?php if ($_GET['id']) { ?>
function modifier_transports($idtransport) { $transzone = new Transzone(); $zone = new Zone(); $tr = new Modules(); if ($tr->charger_id($_GET['id'])) { $zone = new Zone(); ?> <div class="entete_liste_config" style="margin-top:15px;"> <div class="titre"><?php echo trad('MODIFICATION_TRANSPORT', 'admin') . ' ' . ActionsAdminModules::instance()->lire_titre_module($tr); ?> </div> </div> <ul class="ligne1"> <li style="width:250px;"> <select class="form_select" id="zone"> <?php $query = "select * from {$zone->table}"; $resul = $transzone->query($query); while ($resul && ($row = $transzone->fetch_object($resul))) { $test = new Transzone(); if (!$test->charger($idtransport, $row->id)) { ?> <option value="<?php echo $row->id; ?> "><?php echo $row->nom; ?> </option> <?php } } ?> </select> </li> <li><a href="javascript:ajouter($('#zone').val())"><?php echo trad('AJOUTER_ZONE', 'admin'); ?> </a></li> </ul> <?php $query = "select * from {$transzone->table} where transport=\"" . $idtransport . "\""; $resul = $transzone->query($query); $i = 0; while ($resul && ($row = $transzone->fetch_object($resul))) { $zone = new Zone(); $zone->charger($row->zone); $fond = "ligne_" . ($i++ % 2 ? "fonce" : "claire") . "_BlocDescription"; ?> <ul class="<?php echo $fond; ?> "> <li style="width:492px;"><?php echo $zone->nom; ?> </li> <li style="width:32px;"><a href="javascript:supprimer(<?php echo $row->id; ?> )"><?php echo trad('Supprimer', 'admin'); ?> </a></li> </ul> <?php } } }
function liste_clients($order, $critere, $debut) { $i = 0; $client = new Client(); $query = "select * from {$client->table} order by {$critere} {$order} limit {$debut},20"; $resul = $client->query($query); while ($resul && ($row = $client->fetch_object($resul))) { $fond = "ligne_" . ($i++ % 2 ? "claire" : "fonce") . "_rub"; $commande = new Commande(); $devise = new Devise(); $querycom = "select id from {$commande->table} where client={$row->id} and statut not in(" . Commande::NONPAYE . "," . Commande::ANNULE . ") order by date DESC limit 0,1"; $resulcom = $commande->query($querycom); $existe = 0; if ($commande->num_rows($resulcom) > 0) { $existe = 1; $idcom = $commande->get_result($resulcom, 0, "id"); $commande->charger($idcom); $devise->charger($commande->devise); $date = strftime("%d/%m/%y %H:%M:%S", strtotime($commande->date)); } $creation = strftime("%d/%m/%y %H:%M:%S", strtotime($row->datecrea)); ?> <ul class="<?php echo $fond; ?> "> <li style="width:122px;"><?php echo $row->ref; ?> </li> <li style="width:110px;"><?php echo $creation; ?> </li> <li style="width:143px;"><?php echo $row->entreprise; ?> </li> <li style="width:243px;"><?php echo $row->nom; ?> <?php echo $row->prenom; ?> </li> <li style="width:110px;"><?php if ($existe) { echo $date; } ?> </li> <li style="width:63px;"><?php if ($existe) { echo formatter_somme($commande->total(true, true)) . ' ' . $devise->symbole; } ?> </li> <li style="width:40px;"><a href="client_visualiser.php?ref=<?php echo $row->ref; ?> " class="txt_vert_11"><?php echo trad('editer', 'admin'); ?> </a></li> <li style="width:25px; text-align:center;"><a href="#" onclick="confirmSupp('<?php echo $row->ref; ?> ')"><img src="gfx/supprimer.gif" width="9" height="9" border="0" /></a></li> </ul> <?php } }
public function bloc_gestion() { $document = new Document(); $documentdesc = new Documentdesc(); $query = "select * from {$document->table} where {$this->typeobjet}='{$this->idobjet}' order by classement"; $resul = $document->query($query); while ($resul && ($row = $document->fetch_object($resul))) { $document = new Document(); $documentdesc = new Documentdesc(); $documentdesc->charger($row->id, $this->lang); ?> <form action="<?php echo $this->nompageadmin; ?> " method="post"> <input type="hidden" name="action" value="modifierdoc" /> <input type="hidden" name="id_document" value="<?php echo $row->id; ?> " /> <input type="hidden" name="id" value="<?php echo $this->idobjet; ?> " /> <input type="hidden" name="lang" value="<?php echo $this->lang; ?> " /> <?php $this->form_hidden_fieds(); ?> <ul> <li class="lignesimple"> <div class="cellule_designation"><?php echo trad('Fichier', 'admin'); ?> </div> <div class="cellule_document"><a href="<?php echo $this->chemin_objet($row->fichier); ?> " target="_blank"><?php if (strlen($row->fichier) > 26) { echo substr($row->fichier, 0, 26) . " ... " . substr($row->fichier, strlen($row->fichier) - 3, strlen($row->fichier)); } else { echo $row->fichier; } ?> </a></div> <div class="cellule_supp_fichier"> <a onclick="return confirm('<?php echo trad('Supprimer définitivement ce document ?', 'admin'); ?> ');" href="<?php echo $this->url_page_admin(); ?> &id_document=<?php echo $row->id; ?> &action=supprimerdoc"><img src="gfx/supprimer.gif" width="9" height="9" border="0" /></a></div> </li> <li class="lignesimple"> <div class="cellule_designation" style="height:30px;"><?php echo trad('Titre', 'admin'); ?> </div> <div class="cellule"> <input type="text" name="titredoc" style="width:219px;" class="form" value="<?php echo htmlspecialchars($documentdesc->titre); ?> " /> </div> </li> <li class="lignesimple"> <div class="cellule_designation" style="height:50px;"><?php echo trad('Chapo', 'admin'); ?> </div> <div class="cellule"><textarea name="chapodoc" rows="2" class="form" style="width:219px;"><?php echo $documentdesc->chapo; ?> </textarea> </div> </li> <li class="lignesimple"> <div class="cellule_designation" style="height:65px;"><?php echo trad('Description', 'admin'); ?> </div> <div class="cellule"><textarea name="descriptiondoc" class="form" rows="3" style="width:219px;"><?php echo $documentdesc->description; ?> </textarea></div> </li> <li class="lignesimple"> <div class="cellule_designation" style="height:30px;"><?php echo trad('Classement', 'admin'); ?> </div> <div class="cellule"> <div class="classement"> <a href="<?php echo $this->url_page_admin() . "&id_document=" . $row->id . "&action=modclassementdoc&type=M"; ?> "><img src="gfx/up.gif" border="0" /></a></div> <div class="classement"> <a href="<?php echo $this->url_page_admin() . "&id_document=" . $row->id . "&action=modclassementdoc&type=D"; ?> "><img src="gfx/dn.gif" border="0" /></a></div> </div> </li> <li class="lignesimple"> <div class="cellule_designation" style="height:30px;"> </div> <div class="cellule" style="height:30px; border-bottom: 1px dotted #9DACB6"><input type="submit" value="<?php echo trad('Enregistrer', 'admin'); ?> " /></div> </li> </ul> </form> <?php } }