本文整理汇总了PHP中adminhead函数的典型用法代码示例。如果您正苦于以下问题:PHP adminhead函数的具体用法?PHP adminhead怎么用?PHP adminhead使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了adminhead函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ConfigureBan
function ConfigureBan($ModPath, $ModStart)
{
global $f_meta_nom, $f_titre, $adminimg;
if (file_exists("slogs/spam.log")) {
$fd = fopen("slogs/spam.log", "r");
while (!feof($fd)) {
$ip_ban .= fgets($fd, 4096);
}
fclose($fd);
}
adminhead($f_meta_nom, $f_titre, $adminimg);
echo '
<div>
<p>' . ipban_translate("Chaque ligne ne doit contenir qu'une adresse IP de la forme : a.b.c.d:<b>X</b> (ex : 168.192.1.1:5)<br />si <b>X</b> >= 5 alors l'accès sera refusé<br /><br />Ce fichier est mis à jour automatiquement par l'anti-spam de NPDS.") . '</p>
<form id="ipban_mod" action="admin.php" method="post">
<div class="form-group">
<label class="control-label" for="ip_ban">' . ipban_translate("Liste des IP") . '</label>
<textarea id="ip_ban" class="form-control" name="ipban" rows="20">' . $ip_ban . '</textarea>
</div>
<div class="form-group">
<button class="btn btn-primary" type="submit">' . adm_translate("Sauver les modifications") . '</button>
<input type="hidden" name="op" value="Extend-Admin-SubModule" />
<input type="hidden" name="ModPath" value="' . $ModPath . '" />
<input type="hidden" name="ModStart" value="' . $ModStart . '" />
<input type="hidden" name="subop" value="SaveSetBan" />
</div>
</form>
</div>
</div>';
}
示例2: EditReseaux
function EditReseaux($ModPath, $ModStart, $f_meta_nom, $f_titre, $adminimg, $rs_id, $rs_url, $rs_ico, $subop)
{
if (file_exists("modules/{$ModPath}/reseaux-sociaux.conf.php")) {
include "modules/{$ModPath}/reseaux-sociaux.conf.php";
}
adminhead($f_meta_nom, $f_titre, $adminimg);
if ($subop == 'AddReseaux') {
echo '
<hr /><h3>' . adm_translate("Ajouter") . '</h3>';
} else {
echo '
<hr /><h3>' . adm_translate("Editer") . '</h3>';
}
echo '
<form id="reseaux_adm" action="admin.php" method="post">
<div class="form-group row">
<label class="form-control-label col-sm-3" for="rs_id">' . adm_translate("Nom") . '</label>
<div class="col-sm-9">
<input id="rs_id" class="form-control" type="text" name="rs_id" maxlength="50" placeholder="' . adm_translate("") . '" value="' . urldecode($rs_id) . '" required="required" />
<span class="help-block text-xs-right"><span id="countcar_rs_id"></span></span>
</div>
</div>
<div class="form-group row">
<label class="form-control-label col-sm-3" for="rs_url">' . adm_translate("URL") . '</label>
<div class="col-sm-9">
<input id="rs_url" class="form-control" type="text" name="rs_url" maxlength="100" placeholder="' . adm_translate("") . '" value="' . urldecode($rs_url) . '" required="required" />
<span class="help-block text-xs-right"><span id="countcar_rs_url"></span></span>
</div>
</div>
<div class="form-group row">
<label class="form-control-label col-sm-3" for="rs_ico">' . adm_translate("Icône") . '</label>
<div class="col-sm-9">
<input id="rs_ico" class="form-control" type="text" name="rs_ico" maxlength="40" placeholder="' . adm_translate("") . '" value="' . stripcslashes(urldecode($rs_ico)) . '" required="required" />
<span class="help-block text-xs-right"><span id="countcar_rs_ico"></span></span>
</div>
</div>
<div class="form-group row">
<div class="col-sm-9 offset-sm-3">
<button class="btn btn-primary col-xs-12" type="submit"><i class="fa fa-check-square fa-lg"></i> ' . adm_translate("Sauver") . '</button>
<input type="hidden" name="op" value="Extend-Admin-SubModule" />
<input type="hidden" name="ModPath" value="' . $ModPath . '" />
<input type="hidden" name="ModStart" value="' . $ModStart . '" />
<input type="hidden" name="subop" value="SaveSetReseaux" />
<input type="hidden" name="adm_img_mod" value="1" />
</div>
</div>
</form>
<script type="text/javascript">
//<![CDATA[
$(document).ready(function() {
inpandfieldlen("rs_id",50);
inpandfieldlen("rs_url",100);
inpandfieldlen("rs_ico",40);
})
//]]>
</script>';
adminfoot('fv', '', '', '');
}
示例3: mblock
function mblock()
{
global $hlpfile, $NPDS_Prefix, $f_meta_nom, $f_titre, $adminimg;
include "header.php";
GraphicAdmin($hlpfile);
adminhead($f_meta_nom, $f_titre, $adminimg);
echo '
<hr />
<h3>' . adm_translate("Edition du Bloc Principal") . '</h3>';
$result = sql_query("SELECT title, content FROM " . $NPDS_Prefix . "mainblock");
if (sql_num_rows($result) > 0) {
while (list($title, $content) = sql_fetch_row($result)) {
echo '
<form id="fad_mblock" action="admin.php" method="post">
<div class="form-group row">
<label class="form-control-label col-xs-12" for="title">' . adm_translate("Titre") . '</label>
<div class="col-xs-12">
<textarea class="form-control" type="text" id="title" name="title" maxlength="255" placeholder="' . adm_translate("Titre :") . '">' . $title . '</textarea>
<span class="help-block text-xs-right"><span id="countcar_title"></span></span>
</div>
</div>
<div class="form-group row">
<label class="form-control-label col-xs-12" for="content">' . adm_translate("Contenu") . '</label>
<div class="col-xs-12">
<textarea class="form-control" rows="25" id="content" name="content">' . $content . '</textarea>
</div>
</div>
<input type="hidden" name="op" value="changemblock" />
<div class="form-group row">
<div class="col-xs-12">
<button class="btn btn-outline-primary btn-block" type="submit"><i class ="fa fa-check fa-lg"></i> ' . adm_translate("Valider") . '</button>
</div>
</div>
</form>
<script type="text/javascript">
//<![CDATA[
$(document).ready(function() {
inpandfieldlen("title",255);
});
//]]>
</script>';
}
}
adminfoot('fv', '', '', '');
}
示例4: Configuretwi
function Configuretwi($subop, $ModPath, $ModStart, $class_sty_2, $npds_twi_arti, $npds_twi_urshort, $npds_twi_post, $consumer_key, $consumer_secret, $oauth_token, $oauth_token_secret, $tbox_width, $tbox_height)
{
if (file_exists('modules/' . $ModPath . '/twi_conf.php')) {
include 'modules/' . $ModPath . '/twi_conf.php';
}
global $f_meta_nom, $f_titre, $adminimg;
$checkarti_y = '';
$checkarti_n = '';
$checkpost_y = '';
$checkpost_n = '';
$urshort_mr = '';
$urshort_ft = '';
$urshort_c = '';
if ($npds_twi_arti === 1) {
$checkarti_y = 'checked="checked"';
} else {
$checkarti_n = 'checked="checked"';
}
if ($npds_twi_post === 1) {
$checkpost_y = 'checked="checked"';
} else {
$checkpost_n = 'checked="checked"';
}
if ($npds_twi_urshort === 1) {
$urshort_mr = 'checked="checked"';
}
if ($npds_twi_urshort === 2) {
$urshort_ft = 'checked="checked"';
}
if ($npds_twi_urshort === 3) {
$urshort_c = 'checked="checked"';
} else {
$checkpost_n = 'checked="checked"';
}
adminhead($f_meta_nom, $f_titre, $adminimg);
if ($npds_twi != 1) {
echo '<div class="alert alert-danger">Pour la publication de vos news sur twitter vous devez activer</div>';
}
echo ' <span class="text-danger">*</span> ' . twi_trad('requis') . '
<h3>' . twi_trad('Configuration du module npds_twi') . '</h3>
<form action="admin.php" method="post">
<div class="form-group row">
<label class="form-control-label col-sm-6" for="npds_twi_arti">' . twi_trad('Activation de la publication auto des articles') . '</label>
<div class="col-sm-6">
<label><input type="radio" name="npds_twi_arti" value="1" ' . $checkarti_y . ' /> ' . twi_trad('Oui') . '</label>
<label><input type="radio" name="npds_twi_arti" value="0" ' . $checkarti_n . ' /> ' . twi_trad('Non') . '</label>
</div>
</div>
<!-- En attente implementation
<tr>
<td width="30%">' . twi_trad('Activation de la publication auto des posts') . '</td>
<td> <input type="radio" name="npds_twi_post" value="1" ' . $checkpost_y . ' /> ' . twi_trad('Oui') . ' <input type="radio" name="npds_twi_post" value="0" ' . $checkpost_n . ' /> ' . twi_trad('Non') . '</td>
</tr>
-->
<div class="form-group row">
<label class="form-control-label col-sm-6" for="npds_twi_urshort">' . twi_trad("Méthode pour le raccourciceur d'URL") . '</label>
<div class="col-sm-6">
<label><input type="radio" name="npds_twi_urshort" value="1" ' . $urshort_mr . ' /> ' . twi_trad("Réécriture d'url avec mod_rewrite") . '</label>
<label><input type="radio" name="npds_twi_urshort" value="2" ' . $urshort_ft . ' /> ' . twi_trad("Réécriture d'url avec ForceType") . '</label>
<label><input type="radio" name="npds_twi_urshort" value="3" ' . $urshort_c . ' /> ' . twi_trad("Réécriture d'url avec controleur Npds") . '</label>
</div>
</div>
<div class="form-group row">
<label class="form-control-label col-sm-12" for="consumer_key">' . twi_trad('Votre clef de consommateur') . ' <span class="text-danger">*</span></label>
<div class="col-sm-12">
<input type="text" class="form-control" name="consumer_key" value="' . $consumer_key . '" required="required" />
<span class="help-block small">' . $consumer_key . '</span>
</div>
</div>
<div class="form-group row">
<label class="form-control-label col-sm-12" for="consumer_secret">' . twi_trad('Votre clef secrète de consommateur') . ' <span class="text-danger">*</span></label>
<div class="col-sm-12">
<input type="text" class="form-control" name="consumer_secret" value="' . $consumer_secret . '" required="required" />
<span class="help-block small">' . $consumer_secret . '</span>
</div>
</div>
<div class="form-group row">
<label class="form-control-label col-sm-12" for="oauth_token" >' . twi_trad("Jeton d'accès pour Open Authentification (oauth_token)") . ' <span class="text-danger">*</span></label>
<div class="col-sm-12">
<input type="text" class="form-control" name="oauth_token" value="' . $oauth_token . '" required="required" />
<span class="help-block small">' . $oauth_token . '</span>
</div>
</div>
<div class="form-group row">
<label class="form-control-label col-sm-12" for="oauth_token_secret" >' . twi_trad("Jeton d'accès secret pour Open Authentification (oauth_token_secret)") . ' <span class="text-danger">*</span></label>
<div class="col-sm-12">
<input type="text" class="form-control" name="oauth_token_secret" value="' . $oauth_token_secret . '" />
<span class="help-block small">' . $oauth_token_secret . '</span>
</div>
</div>
<!--
<tr>
<td colspan="2"><strong>' . twi_trad('Interface bloc') . '</strong></td>
</tr>
<td width="30%">
//.........这里部分代码省略.........
示例5: autoEdit
function autoEdit($anid)
{
global $aid, $hlpfile, $tipath, $radminsuper, $NPDS_Prefix, $adminimg;
$f_meta_nom = 'autoStory';
$f_titre = adm_translate("Editer un Article");
//==> controle droit
admindroits($aid, $f_meta_nom);
//<== controle droit
$result = sql_query("SELECT catid, title, time, hometext, bodytext, topic, informant, notes, ihome, date_debval,date_finval,auto_epur FROM " . $NPDS_Prefix . "autonews WHERE anid='{$anid}'");
list($catid, $title, $time, $hometext, $bodytext, $topic, $informant, $notes, $ihome, $date_debval, $date_finval, $epur) = sql_fetch_row($result);
sql_free_result($result);
$titre = stripslashes($title);
$hometext = stripslashes($hometext);
$bodytext = stripslashes($bodytext);
$notes = stripslashes($notes);
if ($topic < 1) {
$topic = 1;
}
$affiche = false;
$result2 = sql_query("SELECT topictext, topicimage, topicadmin FROM " . $NPDS_Prefix . "topics WHERE topicid='{$topic}'");
list($topictext, $topicimage, $topicadmin) = sql_fetch_row($result2);
if ($radminsuper) {
$affiche = true;
} else {
$topicadminX = explode(',', $topicadmin);
for ($i = 0; $i < count($topicadminX); $i++) {
if (trim($topicadminX[$i]) == $aid) {
$affiche = true;
}
}
}
if (!$affiche) {
header("location: admin.php?op=autoStory");
}
$topiclogo = '<span class="label label-default pull-right"><strong>' . aff_langue($topictext) . '</strong></span>';
include 'header.php';
GraphicAdmin($hlpfile);
adminhead($f_meta_nom, $f_titre, $adminimg);
echo '<h3>' . adm_translate("Editer l'Article Automatique") . '</h3>';
echo aff_local_langue(adm_translate("Langue de Prévisualisation"), '', 'local_user_language');
echo '<div class="card card-block">';
if ($topicimage !== '') {
if (!($imgtmp = theme_image('topics/' . $topicimage))) {
$imgtmp = $tipath . $topicimage;
}
$timage = $imgtmp;
if (file_exists($imgtmp)) {
$topiclogo = '<img class="img-fluid " src="' . $timage . '" align="right" alt="" />';
}
}
// $no_img=false;
// if ((file_exists("$tipath$topicimage")) and ($topicimage!="")) {
// echo "<img src=\"$tipath$topicimage\" border=\"0\" align=\"right\" alt=\"\" />";
// } else {
// $no_img=true;
// }
code_aff('<h3>' . $subject . $topiclogo . '</h3>', '<div class="text-muted">' . $hometext . '</div>', $bodytext, $notes);
if ($no_img) {
echo "<b>" . aff_langue($topictext) . "</b>";
}
echo '<b>' . adm_translate("Utilisateur") . '</b>' . $informant . '<br /><br />';
echo '
</div>
<form action="admin.php" method="post" name="adminForm">
<div class="form-group row">
<label class="form-control-label col-sm-4" for="title">' . adm_translate("Titre") . '</label>
<div class="col-sm-8">
<input class="form-control" type="text" name="title" size="50" value="' . $titre . '" />
</div>
</div>
<div class="form-group row">
<label class="form-control-label col-sm-4" for="topic">' . adm_translate("Sujet") . '</label>
<div class="col-sm-8">
<select class="c-select form-control" name="topic">';
$toplist = sql_query("SELECT topicid, topictext, topicadmin FROM " . $NPDS_Prefix . "topics ORDER BY topictext");
if ($radminsuper) {
echo '
<option value="">' . adm_translate("Tous les Sujets") . '</option>';
}
while (list($topicid, $topics, $topicadmin) = sql_fetch_row($toplist)) {
$affiche = false;
if ($radminsuper) {
$affiche = true;
} else {
$topicadminX = explode(",", $topicadmin);
for ($i = 0; $i < count($topicadminX); $i++) {
if (trim($topicadminX[$i]) == $aid) {
$affiche = true;
}
}
}
if ($affiche) {
if ($topicid == $topic) {
$sel = 'selected="selected" ';
}
echo "<option {$sel} value=\"{$topicid}\">" . aff_langue($topics) . "</option>\n";
$sel = '';
}
}
echo '
//.........这里部分代码省略.........
示例6: reviews
function reviews()
{
global $hlpfile;
global $NPDS_Prefix, $f_meta_nom, $f_titre, $adminimg;
include "header.php";
GraphicAdmin($hlpfile);
adminhead($f_meta_nom, $f_titre, $adminimg);
$resultrm = sql_query("SELECT title, description FROM " . $NPDS_Prefix . "reviews_main");
list($title, $description) = sql_fetch_row($resultrm);
echo '
<h3>' . adm_translate("Configuration de la page") . '</h3>
<form id="fad_pagereviews" class="" action="admin.php" method="post">
<fieldset>
<div class="form-group">
<label for="tit_cri">' . adm_translate("Titre de la Page des Critiques") . '</label>
<input id="tit_cri" type="text" class="form-control" name="title" value="' . $title . '" maxlength="100" />
</div>
<div class="form-group">
<label for="description">' . adm_translate("Description de la Page des Critiques") . '</label>
<textarea id="description" class="form-control" name="description" rows="10">' . $description . '</textarea>
</div>
<div class="form-group">
<input type="hidden" name="op" value="mod_main" />
<button class="btn btn-primary col-xs-12" type="submit"><i class="fa fa-check-square fa-lg"></i> ' . adm_translate("Sauver les modifications") . '</button>
</div>
</fieldset>
</form>
<h3>' . adm_translate("Critiques en attente de validation") . '</h3>';
$result = sql_query("SELECT * FROM " . $NPDS_Prefix . "reviews_add ORDER BY id");
$numrows = sql_num_rows($result);
if ($numrows > 0) {
while (list($id, $date, $title, $text, $reviewer, $email, $score, $url, $url_title) = sql_fetch_row($result)) {
$title = stripslashes($title);
$text = stripslashes($text);
echo '
<h4>' . adm_translate("Ajouter la critique N° : ") . ' ' . $id . '</h4>
<form id="fad_valreviews' . $id . '" action="admin.php" method="post">
<input type="hidden" name="id" value="' . $id . '" />
<div class="form-group">
<div class="row">
<label class="form-control-label col-sm-4" for="date">' . adm_translate("Date") . '</label>
<div class="col-sm-8">
<div class="input-group input-append date" id="datePicker">
<input class="form-control" type="text" name="date" value="' . $date . '" maxlength="10" data-provide="datepicker" data-date-format="yyyy-mm-dd" data-date-language="' . language_iso(1, '', '') . '" />
<span class="input-group-addon add-on"><span class="glyphicon glyphicon-calendar"></span></span>
</div>
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<label class="form-control-label col-sm-4" for="title">' . adm_translate("Nom du produit") . '</label>
<div class="col-sm-8">
<input class="form-control" type="text" name="title" value="' . $title . '" maxlength="40" />
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<label class="form-control-label col-sm-4 col-md-4" for="text' . $id . '">' . adm_translate("Texte") . '</label>
<div class="col-sm-8">
<textarea class="form-control" name="text" rows="6">' . $text . '</textarea>
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<label class="form-control-label col-sm-4 col-md-4" for="reviewer">' . adm_translate("Le critique") . '</label>
<div class="col-sm-8">
<input class="form-control" type="text" name="reviewer" value="' . $reviewer . '" maxlength="20" />
<span class="help-block text-xs-right"><span id="countcar_reviewer"></span></span>
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<label class="form-control-label col-sm-4 col-md-4" for="email">' . adm_translate("E-mail") . '</label>
<div class="col-sm-8">
<input class="form-control" type="email" id="email" name="email" value="' . $email . '" maxlength="30" />
<span class="help-block text-xs-right"><span id="countcar_email"></span></span>
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<label class="form-control-label col-sm-4 col-md-4" for="score">' . adm_translate("Note") . '</label>
<div class="col-sm-8">
<input class="form-control" type="number" id="score" name="score" value="' . $score . '" min="1" max="10" />
</div>
</div>
</div>';
if ($url != '') {
echo '
<div class="form-group">
<div class="row">
<label class="form-control-label col-sm-4 col-md-4" for="url">' . adm_translate("Liens relatifs") . '</label>
<div class="col-sm-8">
<input class="form-control" type="url" id="url" name="url" value="' . $url . '" maxlength="100" />
<span class="help-block text-xs-right"><span id="countcar_url"></span></span>
</div>
//.........这里部分代码省略.........
示例7: copy_sample
function copy_sample($fileX)
{
global $hlpfile, $f_meta_nom, $f_titre, $adminimg;
include "header.php";
GraphicAdmin($hlpfile);
adminhead($f_meta_nom, $f_titre, $adminimg);
echo '
<hr />
<div class="card card-block">
<p>' . adm_translate("Créer le fichier en utilisant le modèle") . ' ? <br /><br /><a class="btn btn-primary" href="admin.php?op=ConfigFiles_create&modele=' . $fileX . '" >' . adm_translate("Oui") . '</a> <a class="btn btn-secondary" href="admin.php?op=ConfigFiles" >' . adm_translate("Non") . '</a></p>
</div>';
adminfoot('', '', '', '');
}
示例8: publishrights
function publishrights($author)
{
global $NPDS_Prefix, $hlpfile, $radminsuper, $f_meta_nom, $f_titre, $adminimg;
if ($radminsuper != 1) {
Header("Location: admin.php?op=sections");
}
include "header.php";
GraphicAdmin($hlpfile);
adminhead($f_meta_nom, $f_titre, $adminimg);
echo '
<h3>' . adm_translate("Droits des auteurs") . ' :: ' . $author . '</h3>
<form action="admin.php" method="post">';
include_once "lib/togglediv.class.php";
$result1 = sql_query("SELECT rubid, rubname FROM " . $NPDS_Prefix . "rubriques ORDER BY ordre");
$numrow = sql_num_rows($result1);
$toggle = new ToggleDiv($numrow);
echo $toggle->All();
echo "<hr noshade=\"noshade\" class=\"ongl\" />";
$i = 0;
while (list($rubid, $rubname) = sql_fetch_row($result1)) {
echo "<table width=\"100%\" cellspacing=\"1\" cellpadding=\"0\" border=\"0\">\n <tr>\n <td class=\"header\" width=\"40%\">";
echo $toggle->Img();
echo aff_langue($rubname) . "</td>\n <td class=\"header\"align=\"center\" width=\"15%\">" . adm_translate("Créer") . "</td>\n <td class=\"header\"align=\"center\" width=\"15%\">" . adm_translate("Publier") . "</td>\n <td class=\"header\"align=\"center\" width=\"15%\">" . adm_translate("Modifier") . "</td>\n <td class=\"header\"align=\"center\" width=\"15%\">" . adm_translate("Supprimer") . "</td>\n </tr></table>";
echo $toggle->Begin();
$result2 = sql_query("SELECT secid, secname FROM " . $NPDS_Prefix . "sections WHERE rubid='{$rubid}' ORDER BY ordre");
echo "<table width=\"100%\" cellspacing=\"1\" cellpadding=\"2\" border=\"0\">";
$rowcolor = tablos();
while (list($secid, $secname) = sql_fetch_row($result2)) {
$result3 = sql_query("SELECT type FROM " . $NPDS_Prefix . "publisujet WHERE secid2='{$secid}' and aid='{$author}'");
$i++;
$crea = "";
$publi = "";
$modif = "";
$supp = "";
if (sql_num_rows($result3) > 0) {
while (list($type) = sql_fetch_row($result3)) {
if ($type == 1) {
$crea = "checked=\"checked\"";
} else {
if ($type == 2) {
$publi = "checked=\"checked\"";
} else {
if ($type == 3) {
$modif = "checked=\"checked\"";
} else {
if ($type == 4) {
$supp = "checked=\"checked\"";
}
}
}
}
}
}
echo "<tr>\n <td width=\"40%\">" . aff_langue($secname) . "</td>\n <td align=\"center\" width=\"15%\"><input type=\"checkbox\" name=\"creation[{$i}]\" value=\"{$secid}\" {$crea} /></td>\n <td align=\"center\" width=\"15%\"><input type=\"checkbox\" name=\"publication[{$i}]\" value=\"{$secid}\" {$publi} /></td>\n <td align=\"center\" width=\"15%\"><input type=\"checkbox\" name=\"modification[{$i}]\" value=\"{$secid}\" {$modif} /></td>\n <td align=\"center\" width=\"15%\"><input type=\"checkbox\" name=\"suppression[{$i}]\" value=\"{$secid}\" {$supp} /></td>\n </tr>";
}
echo '</table>';
echo $toggle->End();
echo '<br />';
}
echo '<input type="hidden" name="chng_aid" value="' . $author . '" />
<input type="hidden" name="op" value="updatedroitauteurs" />
<input type="hidden" name="maxindex" value="' . $i . '" />
<input class="btn btn-primary" type="submit" value="' . adm_translate("Valider") . '" />
<input class="btn btn-secondary" type="button" onclick="javascript:history.back()" value="' . adm_translate("Retour en arrière") . '" />
</form>';
closetable();
include "footer.php";
}
示例9: ConfigureArchive
function ConfigureArchive($ModPath, $ModStart, $f_meta_nom, $f_titre, $adminimg)
{
if (file_exists("modules/{$ModPath}/archive-stories.conf.php")) {
include "modules/{$ModPath}/archive-stories.conf.php";
}
adminhead($f_meta_nom, $f_titre, $adminimg);
echo '
<hr />
<a href= "modules.php?ModPath=' . $ModPath . '&ModStart=' . $ModPath . '" ><i class="fa fa-external-link fa-lg" title="Voir le module en mode utilisation." data-toggle="tooltip" data-placement="right"></i></a>
<h3>' . adm_translate("Paramètres") . '</h3>
<form id="archive_adm" class="form-horizontal" action="admin.php" method="post">
<fieldset>
<div class="form-group row">
<label class="form-control-label col-sm-4" for="arch_titre">' . adm_translate("Titre de la page") . '</label>
<div class="col-sm-8">
<textarea id="arch_titre" class="form-control" type="text" name="arch_titre" maxlength="400" rows="5" placeholder="' . adm_translate("Titre de votre page") . '" >' . $arch_titre . '</textarea>
<span class="help-block text-xs-right"><span id="countcar_arch_titre"></span></span>
</div>
</div>
<div class="form-group row">
<label class="form-control-label col-sm-4" for="arch">' . adm_translate("Affichage") . '</label>
<div class="col-sm-8">
<select class="custom-select form-control" name="arch">';
if ($arch == 1) {
$sel_a = 'selected="selected"';
} else {
$sel_i = 'selected="selected"';
}
echo '
<option name="status" value="1" ' . $sel_a . '>' . adm_translate("Les articles en archive") . '</option>
<option name="status" value="0" ' . $sel_i . '>' . adm_translate("Les articles en ligne") . '</option>
</select>
</div>
</div>
<div class="form-group row">
<label class="form-control-label col-sm-4" for="maxcount">' . adm_translate("Nombre d'article par page") . '</label>
<div class="col-sm-8">
<input id="maxcount" class="form-control" type="number" name="maxcount" value="' . $maxcount . '" min="0" max="500" required="required" />
</div>
</div>
<div class="form-group row">
<label class="form-control-label col-sm-4" for="retcache">' . adm_translate("Rétention") . '</label>
<div class="col-sm-8">
<input id="retcache" class="form-control" type="number" name="retcache" value="' . $retcache . '" min="0" required="required" />
<span class="help-block text-xs-right">' . adm_translate("Temps de rétention en secondes") . '</span>
</div>
</div>
<div class="form-group row">
<div class="col-sm-8 offset-sm-4">
<button class="btn btn-primary col-xs-12" type="submit"><i class="fa fa-check-square fa-lg"></i> ' . adm_translate("Sauver") . '</button>
<input type="hidden" name="op" value="Extend-Admin-SubModule" />
<input type="hidden" name="ModPath" value="' . $ModPath . '" />
<input type="hidden" name="ModStart" value="' . $ModStart . '" />
<input type="hidden" name="subop" value="SaveSetArchive_stories" />
<input type="hidden" name="adm_img_mod" value="1" />
</div>
</div>
</fieldset>
</form>';
$arg1 = 'inpandfieldlen("arch_titre",400);';
adminfoot('fv', '', $arg1, '');
}
示例10: submissions
function submissions()
{
global $hlpfile, $NPDS_Prefix, $aid, $radminsuper, $f_meta_nom, $f_titre, $adminimg;
$dummy = 0;
include "header.php";
GraphicAdmin($hlpfile);
adminhead($f_meta_nom, $f_titre, $adminimg);
$result = sql_query("SELECT qid, subject, timestamp, topic, uname FROM " . $NPDS_Prefix . "queue ORDER BY timestamp");
if (sql_num_rows($result) == 0) {
echo '
<hr />
<h3>' . adm_translate("Pas de nouveaux Articles postés") . '</h3>';
} else {
echo '
<hr />
<h3>' . adm_translate("Nouveaux Articles postés") . ' <span class="tag tag-pill tag-default">' . sql_num_rows($result) . '</span></h3>
<table id="tad_subm" data-toggle="table" data-striped="true" data-show-toggle="true" data-mobile-responsive="true" data-icons="icons" data-icons-prefix="fa">
<thead>
<tr>
<th data-sortable="true" data-halign="center"><i class="fa fa-user fa-lg"></i></th>
<th data-sortable="true" data-halign="center">' . adm_translate("Sujet") . '</th>
<th data-sortable="true" data-halign="center">' . adm_translate("Titre") . '</th>
<th data-sortable="true" data-halign="center">' . adm_translate("Date") . '</th>
<th data-halign="center" data-align="right">' . adm_translate("Fonctions") . '</th>
</tr>
</thead>
<tbody>';
while (list($qid, $subject, $timestamp, $topic, $uname) = sql_fetch_row($result)) {
if ($topic < 1) {
$topic = 1;
}
$affiche = false;
$result2 = sql_query("SELECT topicadmin, topictext, topicimage FROM " . $NPDS_Prefix . "topics WHERE topicid='{$topic}'");
list($topicadmin, $topictext, $topicimage) = sql_fetch_row($result2);
if ($radminsuper) {
$affiche = true;
} else {
$topicadminX = explode(',', $topicadmin);
for ($i = 0; $i < count($topicadminX); $i++) {
if (trim($topicadminX[$i]) == $aid) {
$affiche = true;
}
}
}
echo '
<tr>
<td>' . $uname . '</td>
<td>';
if ($subject == '') {
$subject = adm_translate("Aucun Sujet");
}
$subject = aff_langue($subject);
if ($affiche) {
echo '<img class=" " src="images/topics/' . $topicimage . '" height="30" width="30" alt="avatar" /> <a href="admin.php?op=topicedit&topicid=' . $topic . '" class="adm_tooltip">' . aff_langue($topictext) . '</a></td>
<td align="left"><a href="admin.php?op=DisplayStory&qid=' . $qid . '">' . $subject . '</a></td>';
} else {
echo aff_langue($topictext) . '</td>
<td align="left"><i>' . $subject . '</i></td>';
}
echo '
<td align="right">' . formatTimestamp($timestamp) . '</td>';
if ($affiche) {
echo '
<td><a class="" href="admin.php?op=DisplayStory&qid=' . $qid . '"><i class="fa fa-edit fa-lg" title="' . adm_translate("Editer") . '" data-toggle="tooltip" ></i></a> <a class="text-danger" href="admin.php?op=DeleteStory&qid=' . $qid . '"><i class="fa fa-trash-o fa-lg" title="' . adm_translate("Effacer") . '" data-toggle="tooltip" ></i></a></td>
</tr>';
} else {
echo '
<td> </td>
</tr>';
}
$dummy++;
}
if ($dummy < 1) {
echo '<h3>' . adm_translate("Pas de nouveaux Articles postés") . '</h3>';
} else {
echo '
</tbody>
</table>';
}
}
adminfoot('', '', '', '');
}
示例11: ForumMaintAdmin
function ForumMaintAdmin()
{
global $hlpfile, $NPDS_Prefix, $f_meta_nom, $f_titre, $adminimg;
include "header.php";
GraphicAdmin($hlpfile);
adminhead($f_meta_nom, $f_titre, $adminimg);
echo '
<hr />
<h3>' . adm_translate("Maintenance des Forums") . '</h3>';
// Mark Topics, Synchro Forum_read table, Merge Forums
echo '
<div class="row">
<div class="col-xs-12">
<form id="fad_forumaction" action="admin.php" method="post">
<input type="hidden" name="op" value="MaintForumMarkTopics" />
<button class="btn btn-primary btn-block btn-lg" type="submit" name="Topics_Mark"><i class="fa fa-check-square-o fa-lg"></i> ' . adm_translate("Marquer tous les Topics comme lus") . '</button>
</form>
</div>
<div class="col-xs-12">
<form action="admin.php" method="post">
<input type="hidden" name="op" value="SynchroForum" />
<button class="btn btn-primary btn-block btn-lg" type="submit" name="Synchro_Forum"><i class="fa fa-refresh fa-lg"></i> ' . adm_translate("Synchroniser les forums") . '</button>
</form>
</div>
<div class="col-xs-12">
<form action="admin.php" method="post">
<input type="hidden" name="op" value="MergeForum" />
<button class="btn btn-primary btn-block btn-lg" type="submit" name="Merge_Forum"><i class="fa fa-compress fa-lg"></i> ' . adm_translate("Fusionner des forums") . '</button>
</form>
</div>
</div>
<br />
<form id="fad_forumdelete" action="admin.php" method="post">
<legend>' . adm_translate("Supprimer massivement les Topics") . '</legend>
<div class="form-group row">
<label class="form-control-label col-sm-4" for="forum_name">' . adm_translate("Nom du forum") . '</label>
<div class="col-sm-8">
<input type="text" class="form-control" name="forum_name" id="forum_name" maxlength="150" />
</div>
</div>
<div class="form-group row">
<label class="form-control-label col-sm-4" for="before">' . adm_translate("Date") . '</label>
<div class="col-sm-8">
<div id="embeddingDatePicker"></div>
<input type="hidden" class="form-control" name="before" id="before" value="" maxlength="11" placeholder="AAAA-MM-JJ" />
</div>
</div>
<div class="form-group row">
<div class="col-sm-8 offset-sm-4">
<input type="hidden" name="op" value="MaintForumTopics" />
<button class="btn btn-primary" type="submit" name="Topics_Mark">' . adm_translate("Envoyer") . '</button>
</div>
</div>
</form>
<script>
$(document).ready(function() {
$("#embeddingDatePicker")
.datepicker({
format: "yyyy-mm-dd",
language:"' . language_iso(1, '', '') . '",
title:"Avant cette date"
})
.on("changeDate", function(e) {
$("#before").val($("#embeddingDatePicker").datepicker("getFormattedDate"));
$("#fad_forumdelete").formValidation("revalidateField", "before");
});
});
</script>';
$fv_parametres = '
before: {
excluded: false,
validators: {
notEmpty: {
message: "The date is required"
},
date: {
format: "YYYY-MM-DD",
message: "The date is not a valid"
}
}
},
';
echo auto_complete("forname", "forum_name", "forums", "forum_name", "86400");
adminfoot('fv', $fv_parametres, '', '');
}
示例12: lnl_user_list
function lnl_user_list()
{
global $hlpfile, $NPDS_Prefix, $f_meta_nom, $f_titre, $adminimg;
include "header.php";
GraphicAdmin($hlpfile);
adminhead($f_meta_nom, $f_titre, $adminimg);
$result = sql_query("SELECT email, date, status FROM " . $NPDS_Prefix . "lnl_outside_users ORDER BY date");
echo '
<h3>' . adm_translate("Liste des prospects") . '</h3>
<table id="tad_prospect" data-toggle="table" data-search="true" data-striped="true" data-mobile-responsive="true" data-show-export="true" data-icons="icons" data-icons-prefix="fa">
<thead>
<tr>
<th class="col-md-6" data-sortable="true">' . adm_translate("E-mail") . '</th>
<th class="col-md-4" data-sortable="true">' . adm_translate("Date") . '</th>
<th class="col-md-1" data-sortable="true">' . adm_translate("Status") . '</th>
<th class="col-md-1" data-sortable="true">' . adm_translate("Fonctions") . '</th>
</tr>
</thead>
<tbody>';
while (list($email, $date, $status) = sql_fetch_row($result)) {
echo '
<tr>
<td>' . $email . '</td>
<td>' . $date . '</td>';
if ($status == "NOK") {
echo '
<td class="text-danger">' . $status . '</td>';
} else {
echo '
<td class="text-success">' . $status . '</td>';
}
echo '
<td><a href="admin.php?op=lnl_Sup_User&lnl_user_email=' . $email . '" class="text-danger"><i class="fa fa-trash-o fa-lg text-danger" data-toggle="tooltip" title="' . adm_translate("Effacer") . '"></i></a></td>
</tr>';
}
echo '
</tbody>
</table>
<br /><a href="javascript:history.go(-1)" class="btn btn-secondary">' . adm_translate("Retour en arriére") . '</a>';
adminfoot('', '', '', '');
}
示例13: ForumCatDel
function ForumCatDel($cat_id, $ok = 0)
{
global $NPDS_Prefix, $hlpfile, $f_meta_nom, $f_titre, $adminimg;
if ($ok == 1) {
$result = sql_query("SELECT forum_id FROM " . $NPDS_Prefix . "forums WHERE cat_id='{$cat_id}'");
while (list($forum_id) = sql_fetch_row($result)) {
sql_query("DELETE FROM " . $NPDS_Prefix . "forumtopics WHERE forum_id='{$forum_id}'");
sql_query("DELETE FROM " . $NPDS_Prefix . "forum_read WHERE forum_id='{$forum_id}'");
control_efface_post("forum_npds", "", "", $forum_id);
}
sql_query("DELETE FROM " . $NPDS_Prefix . "forums WHERE cat_id='{$cat_id}'");
sql_query("DELETE FROM " . $NPDS_Prefix . "catagories WHERE cat_id='{$cat_id}'");
Q_Clean();
global $aid;
Ecr_Log("security", "DeleteForumCat({$cat_id}) by AID : {$aid}", "");
Header("Location: admin.php?op=ForumAdmin");
} else {
include "header.php";
GraphicAdmin($hlpfile);
adminhead($f_meta_nom, $f_titre, $adminimg);
echo '
<div class="jumbotron">
<p class="text-danger">' . adm_translate("ATTENTION : êtes-vous sûr de vouloir supprimer cette Catégorie, ses Forums et tous ses Sujets ?") . '</p>';
}
echo '<a href="admin.php?op=ForumCatDel&cat_id=' . $cat_id . '&ok=1" class="btn btn-danger ">' . adm_translate("Oui") . '</a> <a href="admin.php?op=ForumAdmin" class="btn btn-secondary">' . adm_translate("Non") . '</a>';
echo '</div>';
adminfoot('', '', '', '');
}
示例14: LinksModCat
function LinksModCat($cat)
{
global $NPDS_Prefix, $hlpfile, $f_meta_nom, $f_titre, $adminimg;
include "header.php";
GraphicAdmin($hlpfile);
$cat = explode("-", $cat);
if (!array_key_exists(1, $cat)) {
$cat[1] = 0;
}
adminhead($f_meta_nom, $f_titre, $adminimg);
if ($cat[1] == 0) {
echo '<h3>' . adm_translate("Modifier la Catégorie") . '</h3>';
$result = sql_query("SELECT title, cdescription FROM " . $NPDS_Prefix . "links_categories WHERE cid='{$cat['0']}'");
list($title, $cdescription) = sql_fetch_row($result);
$cdescription = stripslashes($cdescription);
echo '
<form action="admin.php" method="get">
<div class="form-group">
<div class="row">
<label class="form-control-label col-sm-4 " for="title">' . adm_translate("Nom") . '</label>
<div class="col-sm-8">
<input class="form-control" type="text" name="title" value="' . $title . '" maxlength="50" />
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<label class="form-control-label col-sm-4 " for="cdescription">' . adm_translate("Description") . '</label>
<div class="col-sm-8">
<textarea class="form-control" name="cdescription" rows="10" >' . $cdescription . '</textarea>
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<div class="col-sm-offset-4 col-sm-8">
<input type="hidden" name="sub" value="0">
<input type="hidden" name="cid" value="' . $cat[0] . '">
<input type="hidden" name="op" value="LinksModCatS">
<button class="btn btn-primary col-xs-6" type="submit"><i class="fa fa-check fa-lg"></i> ' . adm_translate("Modifier") . '</button>
<button href="admin.php?op=LinksDelCat&sub=0&cid=' . $cat[0] . '" class="btn btn-danger col-xs-6"><i class="fa fa-trash-o fa-lg"></i> ' . adm_translate("Effacer") . '</button>
</div>
</div>
</div>
</form>';
} else {
$result = sql_query("SELECT title FROM " . $NPDS_Prefix . "links_categories WHERE cid='{$cat['0']}'");
list($ctitle) = sql_fetch_row($result);
$result2 = sql_query("SELECT title FROM " . $NPDS_Prefix . "links_subcategories WHERE sid='{$cat['1']}'");
list($stitle) = sql_fetch_row($result2);
echo '
<h3>' . adm_translate("Modifier la Catégorie") . " - " . adm_translate("Nom de la Catégorie : ") . aff_langue($ctitle) . '</h3>
<form action="admin.php" method="get">
<div class="form-group">
<div class="row">
<label class="form-control-label col-sm-4 " for="title">' . adm_translate("Nom de la Sous-catégorie") . '</label>
<div class="col-sm-8">
<input class="form-control" type="text" name="title" value="' . $stitle . '" maxlength="50">
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<div class="col-sm-offset-4 col-sm-8">
<input type="hidden" name="sub" value="1">
<input type="hidden" name="cid" value="' . $cat[0] . '">
<input type="hidden" name="sid" value="' . $cat[1] . '">
<input type="hidden" name="op" value="LinksModCatS">
<button class="btn btn-primary col-xs-6" type="submit"><i class="fa fa-check fa-lg"></i> ' . adm_translate("Modifier") . '</button>
<button href="admin.php?op=LinksDelCat&sub=1&cid=' . $cat[0] . '&sid=' . $cat[1] . '" class="btn btn-danger col-xs-6"><i class="fa fa-trash-o fa-lg"></i> ' . adm_translate("Effacer") . '</button>
</div>
</div>
</div>
</form>';
}
adminfoot('', '', '', '');
}
示例15: BannerClientEdit
function BannerClientEdit($cid)
{
global $NPDS_Prefix, $hlpfile, $f_meta_nom, $f_titre, $adminimg;
include "header.php";
GraphicAdmin($hlpfile);
adminhead($f_meta_nom, $f_titre, $adminimg);
$result = sql_query("SELECT name, contact, email, login, passwd, extrainfo FROM " . $NPDS_Prefix . "bannerclient WHERE cid='{$cid}'");
list($name, $contact, $email, $login, $passwd, $extrainfo) = sql_fetch_row($result);
echo '
<h3>' . adm_translate("Editer l'Annonceur") . '</h3>
<form action="admin.php" method="post">
<div class="form-group">
<div class="row">
<label class="form-control-label col-sm-4 " for="name">' . adm_translate("Nom de l'Annonceur") . '</label>
<div class="col-sm-8">
<input class="form-control" type="text" name="name" value="' . $name . '" maxlength="60" required="required" />
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<label class="form-control-label col-sm-4 " for="contact">' . adm_translate("Nom du Contact") . '</label>
<div class="col-sm-8">
<input class="form-control" type="text" name="contact" value="' . $contact . '" maxlength="60" required="required" />
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<label class="form-control-label col-sm-4 " for="email">' . adm_translate("E-mail") . '</label>
<div class="col-sm-8">
<input class="form-control" type="text" name="email" size="30" maxlength="60" value="' . $email . '" required="required" />
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<label class="form-control-label col-sm-4 " for="login">' . adm_translate("Identifiant") . '</label>
<div class="col-sm-8">
<input class="form-control" type="text" name="login" maxlength="10" value="' . $login . '" required="required" />
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<label class="form-control-label col-sm-4 " for="passwd">' . adm_translate("Mot de Passe") . '</label>
<div class="col-sm-8">
<input class="form-control" type="password" name="passwd" maxlength="10" value="' . $passwd . '" required="required" />
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<label class="form-control-label col-sm-4 " for="extrainfo">' . adm_translate("Informations supplémentaires") . '</label>
<div class="col-sm-8">
<textarea class="form-control" name="extrainfo" rows="10">' . $extrainfo . '</textarea>
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<div class="col-sm-offset-4 col-sm-8">
<input type="hidden" name="cid" value="' . $cid . '" />
<input type="hidden" name="op" value="BannerClientChange" />
<input class="btn btn-primary" type="submit" value="' . adm_translate("Modifier Annonceur") . '" />
</div>
</div>
</div>
</form>';
adminfoot('fv', '', '', '');
}