File "html_69dccf69bc195dea011760b5d7c6d351.php"
Full path: /home/argothem/www/organecyberpresse/tmp/cache/skel/html_69dccf69bc195dea011760b5d7c6d351.php
File size: 18.73 KB
MIME-type: text/x-php
Charset: utf-8
<?php
/*
* Squelette : ../plugins/auto/mailsubscribers/v4.0.1/prive/objets/liste/mailsubscriptions_optins.html
* Date : Wed, 30 Jul 2025 11:35:40 GMT
* Compile : Mon, 25 Aug 2025 15:24:16 GMT
* Boucles : _mailsubscriptions
*/
function BOUCLE_mailsubscriptionshtml_69dccf69bc195dea011760b5d7c6d351(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
$in = array();
if (!(is_array($a = (($Pile[0]['id_mailsubscribinglist'] ?? null)))))
$in[]= $a;
else $in = array_merge($in, $a);
$in1 = array();
if (!(is_array($a = (($Pile[0]['id_mailsubscriptions_optin'] ?? null)))))
$in1[]= $a;
else $in1 = array_merge($in1, $a);
$in2 = array();
if (!(is_array($a = (($Pile[0]['id_mailsubscriber'] ?? null)))))
$in2[]= $a;
else $in2 = array_merge($in2, $a);
$in3 = array();
if (!(is_array($a = (($Pile[0]['statut'] ?? null)))))
$in3[]= $a;
else $in3 = array_merge($in3, $a);
// RECHERCHE
if (!strlen((isset($Pile[0]["recherche"])?$Pile[0]["recherche"]:(isset($GLOBALS["recherche"])?$GLOBALS["recherche"]:"")))){
list($rech_select, $rech_where) = array("0 as points","");
} else
{
$prepare_recherche = charger_fonction('prepare_recherche', 'inc');
list($rech_select, $rech_where) = $prepare_recherche((isset($Pile[0]["recherche"])?$Pile[0]["recherche"]:(isset($GLOBALS["recherche"])?$GLOBALS["recherche"]:"")), "mailsubscriptions_optins", "1","",array (
'criteres' =>
array (
'id_mailsubscribinglist' => true,
'id_mailsubscriptions_optin' => true,
'id_mailsubscriber' => true,
'statut' => true,
),
),"id_mailsubscriptions_optin");
}
$senstri = '';
$tri = (($t=(isset($Pile[0]['tri'.'_mailsubscriptions']))?$Pile[0]['tri'.'_mailsubscriptions']:((strncmp('_mailsubscriptions','session',7)==0 AND session_get('tri'.'_mailsubscriptions'))?session_get('tri'.'_mailsubscriptions'):retablir_echappements_modeles(interdire_scripts(entites_html(sinon(table_valeur($Pile[0]??[], (string)'par', null), 'id_mailsubscriptions_optin'),true)))))?tri_protege_champ($t):'');
if ($tri){
$senstri = ((intval($t=(isset($Pile[0]['sens'.'_mailsubscriptions']))?$Pile[0]['sens'.'_mailsubscriptions']:((strncmp('_mailsubscriptions','session',7)==0 AND session_get('sens'.'_mailsubscriptions'))?session_get('sens'.'_mailsubscriptions'):(is_array($s=retablir_echappements_modeles(table_valeur($Pile["vars"]??[], (string)'defaut_tri', null)))?(isset($s[$st=(($t=(isset($Pile[0]['tri'.'_mailsubscriptions']))?$Pile[0]['tri'.'_mailsubscriptions']:((strncmp('_mailsubscriptions','session',7)==0 AND session_get('tri'.'_mailsubscriptions'))?session_get('tri'.'_mailsubscriptions'):retablir_echappements_modeles(interdire_scripts(entites_html(sinon(table_valeur($Pile[0]??[], (string)'par', null), 'id_mailsubscriptions_optin'),true)))))?tri_protege_champ($t):'')])?$s[$st]:reset($s)):$s)))==-1 OR $t=='inverse')?-1:1);
$senstri = ($senstri<0)?' DESC':'';
};
$command['pagination'] = array((isset($Pile[0]['debut_mailsubscriptions']) ? $Pile[0]['debut_mailsubscriptions'] : null), (($a = intval(retablir_echappements_modeles(interdire_scripts(entites_html(sinon(table_valeur($Pile[0]??[], (string)'nb', null), '10'),true))))) ? $a : 10));
if (!isset($command['table'])) {
$command['table'] = 'mailsubscriptions_optins';
$command['id'] = '_mailsubscriptions';
$command['from'] = array('mailsubscriptions_optins' => 'spip_mailsubscriptions_optins','resultats' => 'spip_resultats','L1' => 'spip_mailsubscribers','L2' => 'spip_mailsubscribinglists');
$command['type'] = array();
$command['groupby'] = array("mailsubscriptions_optins.id_mailsubscriptions_optin");
$command['join'] = array('resultats' => array('mailsubscriptions_optins','id','id_mailsubscriptions_optin'), 'L1' => array('mailsubscriptions_optins','id_mailsubscriber'), 'L2' => array('mailsubscriptions_optins','id_mailsubscribinglist'));
$command['limit'] = '';
$command['having'] =
array();
}
$command['select'] = array("mailsubscriptions_optins.id_mailsubscriptions_optin",
"$rech_select",
"".tri_champ_select($tri)."",
"mailsubscriptions_optins.statut",
"mailsubscriptions_optins.id_mailsubscriber",
"L1.email",
"L2.titre_public",
"L2.identifiant",
"mailsubscriptions_optins.date");
$command['orderby'] = array(tri_champ_order($tri,$command['from'],$senstri));
$command['where'] =
array((!is_whereable(($Pile[0]['id_mailsubscribinglist'] ?? null)) ? '' : ((is_array(($Pile[0]['id_mailsubscribinglist'] ?? null))) ? sql_in('mailsubscriptions_optins.id_mailsubscribinglist', $in) :
array('=', 'mailsubscriptions_optins.id_mailsubscribinglist', sql_quote(($Pile[0]['id_mailsubscribinglist'] ?? null), '','bigint NOT NULL DEFAULT \'0\'')))), (!is_whereable(($Pile[0]['id_mailsubscriptions_optin'] ?? null)) ? '' : ((is_array(($Pile[0]['id_mailsubscriptions_optin'] ?? null))) ? sql_in('mailsubscriptions_optins.id_mailsubscriptions_optin', $in1) :
array('=', 'mailsubscriptions_optins.id_mailsubscriptions_optin', sql_quote(($Pile[0]['id_mailsubscriptions_optin'] ?? null), '','bigint NOT NULL AUTO_INCREMENT')))), (!is_whereable(($Pile[0]['id_mailsubscriber'] ?? null)) ? '' : ((is_array(($Pile[0]['id_mailsubscriber'] ?? null))) ? sql_in('mailsubscriptions_optins.id_mailsubscriber', $in2) :
array('=', 'mailsubscriptions_optins.id_mailsubscriber', sql_quote(($Pile[0]['id_mailsubscriber'] ?? null), '','bigint NOT NULL DEFAULT \'0\'')))), (($zzw = spip_sanitize_from_request(@$Pile[0]["where"],"where","vide")) ? $zzw : ''), (!is_whereable(($Pile[0]['statut'] ?? null)) ? '' : ((is_array(($Pile[0]['statut'] ?? null))) ? sql_in('mailsubscriptions_optins.statut', $in3) :
array('=', 'mailsubscriptions_optins.statut', sql_quote(($Pile[0]['statut'] ?? null), '','varchar(20) NOT NULL DEFAULT \'prepa\'')))), $rech_where?$rech_where:'');
if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime();
$t0 = "";
// REQUETE
$iter = Spip\Compilateur\Iterateur\Factory::create(
"SQL",
$command,
array('../plugins/auto/mailsubscribers/v4.0.1/prive/objets/liste/mailsubscriptions_optins.html','html_69dccf69bc195dea011760b5d7c6d351','_mailsubscriptions',25,$GLOBALS['spip_lang'])
);
if (!$iter->err()) {
// COMPTEUR
$Numrows['_mailsubscriptions']['compteur_boucle'] = 0;
$Numrows['_mailsubscriptions']['command'] = $command;
$Numrows['_mailsubscriptions']['total'] = @intval($iter->count());
$debut_boucle = isset($Pile[0]['debut_mailsubscriptions']) ? $Pile[0]['debut_mailsubscriptions'] : _request('debut_mailsubscriptions');
if ($debut_boucle && $debut_boucle[0] === '@') {
$debut_boucle = $Pile[0]['debut_mailsubscriptions'] = quete_debut_pagination('id_mailsubscriptions_optin',$Pile[0]['@id_mailsubscriptions_optin'] = substr($debut_boucle,1),(($a = intval(retablir_echappements_modeles(interdire_scripts(entites_html(sinon(table_valeur($Pile[0]??[], (string)'nb', null), '10'),true))))) ? $a : 10),$iter);
$iter->seek(0);
}
$debut_boucle = intval($debut_boucle);
$debut_boucle = (($tout=($debut_boucle == -1))?0:($debut_boucle));
$debut_boucle = max(0,min($debut_boucle,floor(($Numrows['_mailsubscriptions']['total']-1)/((($a = intval(retablir_echappements_modeles(interdire_scripts(entites_html(sinon(table_valeur($Pile[0]??[], (string)'nb', null), '10'),true))))) ? $a : 10)))*((($a = intval(retablir_echappements_modeles(interdire_scripts(entites_html(sinon(table_valeur($Pile[0]??[], (string)'nb', null), '10'),true))))) ? $a : 10))));
$debut_boucle = intval($debut_boucle);
$fin_boucle = min(($tout ? $Numrows['_mailsubscriptions']['total'] : $debut_boucle+(($a = intval(retablir_echappements_modeles(interdire_scripts(entites_html(sinon(table_valeur($Pile[0]??[], (string)'nb', null), '10'),true))))) ? $a : 10) - 1), $Numrows['_mailsubscriptions']['total'] - 1);
$Numrows['_mailsubscriptions']['grand_total'] = $Numrows['_mailsubscriptions']['total'];
$Numrows['_mailsubscriptions']["total"] = max(0,$fin_boucle - $debut_boucle + 1);
if ($debut_boucle>0 AND $debut_boucle < $Numrows['_mailsubscriptions']['grand_total'] AND $iter->seek($debut_boucle,'continue'))
$Numrows['_mailsubscriptions']['compteur_boucle'] = $debut_boucle;
$SP++;
// RESULTATS
while ($Pile[$SP]=$iter->fetch()) {
$Numrows['_mailsubscriptions']['compteur_boucle']++;
if ($Numrows['_mailsubscriptions']['compteur_boucle'] <= $debut_boucle) continue;
if ($Numrows['_mailsubscriptions']['compteur_boucle']-1 > $fin_boucle) break;
$t0 .= (
'
<tr class=\'' .
retablir_echappements_modeles(alterner(($Numrows['_mailsubscriptions']['compteur_boucle'] ?? 0),'row_odd','row_even')) .
'\'>
<td class=\'statut\'>' .
retablir_echappements_modeles(interdire_scripts(filtre_puce_statut_dist($Pile[$SP]['statut'],'mailsubscriptions_optin',($Pile[$SP]['id_mailsubscriptions_optin'])))) .
'</td>
' .
(($t1 = strval(retablir_echappements_modeles(interdire_scripts(((entites_html(table_valeur($Pile[0]??[], (string)'id_mailsubscriber', null),true)) ?'' :' ')))))!=='' ?
($t1 . ( '
<td class=\'email\'><a href="' .
retablir_echappements_modeles(parametre_url(generer_objet_url($Pile[$SP]['id_mailsubscriber'],'mailsubscriber'),'email',(interdire_scripts($Pile[$SP]['email'])))) .
'">' .
retablir_echappements_modeles(interdire_scripts($Pile[$SP]['email'])) .
'</a></td>
')) :
'') .
(($t1 = strval(retablir_echappements_modeles(interdire_scripts(((entites_html(table_valeur($Pile[0]??[], (string)'id_mailsubscribinglist', null),true)) ?'' :' ')))))!=='' ?
($t1 . ( '
<td class=\'id_mailsubscribinglist\'>' .
retablir_echappements_modeles(interdire_scripts(((($a = typo($Pile[$SP]['titre_public'], "TYPO", $connect, $Pile[0])) OR (is_string($a) AND strlen($a))) ? $a : (interdire_scripts($Pile[$SP]['identifiant']))))) .
'</td>
')) :
'') .
'
<td class=\'date secondaire\'>' .
retablir_echappements_modeles(interdire_scripts(affdate_jourcourt(normaliser_date($Pile[$SP]['date'])))) .
'</td>
</tr>
');
}
$iter->free();
}
if (defined("_BOUCLE_PROFILER")
AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER)
spip_log(intval(1000*$timer)."ms BOUCLE_mailsubscriptions @ ../plugins/auto/mailsubscribers/v4.0.1/prive/objets/liste/mailsubscriptions_optins.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
//
// Fonction principale du squelette ../plugins/auto/mailsubscribers/v4.0.1/prive/objets/liste/mailsubscriptions_optins.html
// Temps de compilation total: 4.895 ms
//
function html_69dccf69bc195dea011760b5d7c6d351($Cache, $Pile, $doublons = array(), $Numrows = array(), $SP = 0) {
if (isset($Pile[0]["doublons"]) AND is_array($Pile[0]["doublons"]))
$doublons = nettoyer_env_doublons($Pile[0]["doublons"]);
$connect = '';
$page = (
retablir_echappements_modeles(vide($Pile['vars'][$_zzz=(string)'defaut_tri'] = (array('date' => '-1', 'id_mailsubscriptions_optin' => '-1', 'id_mailsubscriber' => '1', 'id_mailsubscribinglist' => '1', 'points' => '-1
')))) .
'
' .
(($t1 = BOUCLE_mailsubscriptionshtml_69dccf69bc195dea011760b5d7c6d351($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ?
(( '
' .
retablir_echappements_modeles(filtre_pagination_dist($Numrows["_mailsubscriptions"]["grand_total"],
'_mailsubscriptions',
isset($Pile[0]['debut_mailsubscriptions'])?$Pile[0]['debut_mailsubscriptions']:intval(_request('debut_mailsubscriptions')),
(($a = intval((interdire_scripts(entites_html(sinon(table_valeur($Pile[0]??[], (string)'nb', null), '10'),true))))) ? $a : 10), false, '', '', array())) .
'
<div class="liste-objets mailsupscriptions_optins">
<table class=\'spip liste\'>
' .
(($t3 = strval(retablir_echappements_modeles(interdire_scripts(sinon(table_valeur($Pile[0]??[], (string)'titre', null), (titre_liste_demandes_optin(($Numrows['_mailsubscriptions']['grand_total'] ?? $Numrows['_mailsubscriptions']['total'] ?? 0),(interdire_scripts(entites_html(table_valeur($Pile[0]??[], (string)'statut', null),true))))))))))!=='' ?
('<caption><strong class="caption">' . $t3 . '</strong></caption>') :
'') .
'
<thead>
<tr class=\'first_row\'>
<th class=\'statut\' scope=\'col\'>' .
retablir_echappements_modeles(calculer_balise_tri('statut', ( '<span title="' .
attribut_html(_T('public|spip|ecrire:lien_trier_statut')) .
'">#</span>'), 'ajax', '_mailsubscriptions', (($t=(isset($Pile[0]['tri'.'_mailsubscriptions']))?$Pile[0]['tri'.'_mailsubscriptions']:((strncmp('_mailsubscriptions','session',7)==0 AND session_get('tri'.'_mailsubscriptions'))?session_get('tri'.'_mailsubscriptions'):(interdire_scripts(entites_html(sinon(table_valeur($Pile[0]??[], (string)'par', null), 'id_mailsubscriptions_optin'),true)))))?tri_protege_champ($t):''), ((intval($t=(isset($Pile[0]['sens'.'_mailsubscriptions']))?$Pile[0]['sens'.'_mailsubscriptions']:((strncmp('_mailsubscriptions','session',7)==0 AND session_get('sens'.'_mailsubscriptions'))?session_get('sens'.'_mailsubscriptions'):(is_array($s=(table_valeur($Pile["vars"]??[], (string)'defaut_tri', null)))?(isset($s[$st=(($t=(isset($Pile[0]['tri'.'_mailsubscriptions']))?$Pile[0]['tri'.'_mailsubscriptions']:((strncmp('_mailsubscriptions','session',7)==0 AND session_get('tri'.'_mailsubscriptions'))?session_get('tri'.'_mailsubscriptions'):(interdire_scripts(entites_html(sinon(table_valeur($Pile[0]??[], (string)'par', null), 'id_mailsubscriptions_optin'),true)))))?tri_protege_champ($t):'')])?$s[$st]:reset($s)):$s)))==-1 OR $t=='inverse')?-1:1), (table_valeur($Pile["vars"]??[], (string)'defaut_tri', null)), '_mailsubscriptions')) .
'</th>
' .
(($t3 = strval(retablir_echappements_modeles(interdire_scripts(((entites_html(table_valeur($Pile[0]??[], (string)'id_mailsubscriber', null),true)) ?'' :' ')))))!=='' ?
($t3 . ( '
<th class=\'email\' scope=\'col\'>' .
retablir_echappements_modeles(calculer_balise_tri('email', 'Subscriber', 'ajax', '_mailsubscriptions', (($t=(isset($Pile[0]['tri'.'_mailsubscriptions']))?$Pile[0]['tri'.'_mailsubscriptions']:((strncmp('_mailsubscriptions','session',7)==0 AND session_get('tri'.'_mailsubscriptions'))?session_get('tri'.'_mailsubscriptions'):(interdire_scripts(entites_html(sinon(table_valeur($Pile[0]??[], (string)'par', null), 'id_mailsubscriptions_optin'),true)))))?tri_protege_champ($t):''), ((intval($t=(isset($Pile[0]['sens'.'_mailsubscriptions']))?$Pile[0]['sens'.'_mailsubscriptions']:((strncmp('_mailsubscriptions','session',7)==0 AND session_get('sens'.'_mailsubscriptions'))?session_get('sens'.'_mailsubscriptions'):(is_array($s=(table_valeur($Pile["vars"]??[], (string)'defaut_tri', null)))?(isset($s[$st=(($t=(isset($Pile[0]['tri'.'_mailsubscriptions']))?$Pile[0]['tri'.'_mailsubscriptions']:((strncmp('_mailsubscriptions','session',7)==0 AND session_get('tri'.'_mailsubscriptions'))?session_get('tri'.'_mailsubscriptions'):(interdire_scripts(entites_html(sinon(table_valeur($Pile[0]??[], (string)'par', null), 'id_mailsubscriptions_optin'),true)))))?tri_protege_champ($t):'')])?$s[$st]:reset($s)):$s)))==-1 OR $t=='inverse')?-1:1), (table_valeur($Pile["vars"]??[], (string)'defaut_tri', null)), '_mailsubscriptions')) .
'</th>
')) :
'') .
(($t3 = strval(retablir_echappements_modeles(interdire_scripts(((entites_html(table_valeur($Pile[0]??[], (string)'id_mailsubscribinglist', null),true)) ?'' :' ')))))!=='' ?
($t3 . ( '
<th class=\'id_mailsubscribinglist\' scope=\'col\'>' .
retablir_echappements_modeles(calculer_balise_tri('id_mailsubscribinglist', 'Liste', 'ajax', '_mailsubscriptions', (($t=(isset($Pile[0]['tri'.'_mailsubscriptions']))?$Pile[0]['tri'.'_mailsubscriptions']:((strncmp('_mailsubscriptions','session',7)==0 AND session_get('tri'.'_mailsubscriptions'))?session_get('tri'.'_mailsubscriptions'):(interdire_scripts(entites_html(sinon(table_valeur($Pile[0]??[], (string)'par', null), 'id_mailsubscriptions_optin'),true)))))?tri_protege_champ($t):''), ((intval($t=(isset($Pile[0]['sens'.'_mailsubscriptions']))?$Pile[0]['sens'.'_mailsubscriptions']:((strncmp('_mailsubscriptions','session',7)==0 AND session_get('sens'.'_mailsubscriptions'))?session_get('sens'.'_mailsubscriptions'):(is_array($s=(table_valeur($Pile["vars"]??[], (string)'defaut_tri', null)))?(isset($s[$st=(($t=(isset($Pile[0]['tri'.'_mailsubscriptions']))?$Pile[0]['tri'.'_mailsubscriptions']:((strncmp('_mailsubscriptions','session',7)==0 AND session_get('tri'.'_mailsubscriptions'))?session_get('tri'.'_mailsubscriptions'):(interdire_scripts(entites_html(sinon(table_valeur($Pile[0]??[], (string)'par', null), 'id_mailsubscriptions_optin'),true)))))?tri_protege_champ($t):'')])?$s[$st]:reset($s)):$s)))==-1 OR $t=='inverse')?-1:1), (table_valeur($Pile["vars"]??[], (string)'defaut_tri', null)), '_mailsubscriptions')) .
'</th>
')) :
'') .
'
<th class=\'date\' scope=\'col\'>' .
retablir_echappements_modeles(calculer_balise_tri('date', _T('public|spip|ecrire:date'), 'ajax', '_mailsubscriptions', (($t=(isset($Pile[0]['tri'.'_mailsubscriptions']))?$Pile[0]['tri'.'_mailsubscriptions']:((strncmp('_mailsubscriptions','session',7)==0 AND session_get('tri'.'_mailsubscriptions'))?session_get('tri'.'_mailsubscriptions'):(interdire_scripts(entites_html(sinon(table_valeur($Pile[0]??[], (string)'par', null), 'id_mailsubscriptions_optin'),true)))))?tri_protege_champ($t):''), ((intval($t=(isset($Pile[0]['sens'.'_mailsubscriptions']))?$Pile[0]['sens'.'_mailsubscriptions']:((strncmp('_mailsubscriptions','session',7)==0 AND session_get('sens'.'_mailsubscriptions'))?session_get('sens'.'_mailsubscriptions'):(is_array($s=(table_valeur($Pile["vars"]??[], (string)'defaut_tri', null)))?(isset($s[$st=(($t=(isset($Pile[0]['tri'.'_mailsubscriptions']))?$Pile[0]['tri'.'_mailsubscriptions']:((strncmp('_mailsubscriptions','session',7)==0 AND session_get('tri'.'_mailsubscriptions'))?session_get('tri'.'_mailsubscriptions'):(interdire_scripts(entites_html(sinon(table_valeur($Pile[0]??[], (string)'par', null), 'id_mailsubscriptions_optin'),true)))))?tri_protege_champ($t):'')])?$s[$st]:reset($s)):$s)))==-1 OR $t=='inverse')?-1:1), (table_valeur($Pile["vars"]??[], (string)'defaut_tri', null)), '_mailsubscriptions')) .
'</th>
</tr>
</thead>
<tbody>
') . $t1 . ( '
</tbody>
</table>
' .
(($t3 = strval(retablir_echappements_modeles(filtre_pagination_dist($Numrows["_mailsubscriptions"]["grand_total"],
'_mailsubscriptions',
isset($Pile[0]['debut_mailsubscriptions'])?$Pile[0]['debut_mailsubscriptions']:intval(_request('debut_mailsubscriptions')),
(($a = intval((interdire_scripts(entites_html(sinon(table_valeur($Pile[0]??[], (string)'nb', null), '10'),true))))) ? $a : 10), true, 'prive', '', array()))))!=='' ?
('<nav class=\'pagination\'>' . $t3 . '</nav>') :
'') .
'
</div>
')) :
((($t2 = strval(retablir_echappements_modeles(interdire_scripts(sinon(table_valeur($Pile[0]??[], (string)'sinon', null), '')))))!=='' ?
('
<div class="liste-objets mailsupscriptions_optins caption-wrap"><strong class="caption">' . $t2 . '</strong></div>
') :
''))) .
'
');
return analyse_resultat_skel('html_69dccf69bc195dea011760b5d7c6d351', $Cache, $page, '../plugins/auto/mailsubscribers/v4.0.1/prive/objets/liste/mailsubscriptions_optins.html');
}