当前位置: 首页>>代码示例>>PHP>>正文


PHP adminfoot函数代码示例

本文整理汇总了PHP中adminfoot函数的典型用法代码示例。如果您正苦于以下问题:PHP adminfoot函数的具体用法?PHP adminfoot怎么用?PHP adminfoot使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了adminfoot函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: 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>&nbsp;' . adm_translate("Valider") . '</button>
               </div>
            </div>
         </form>
         <script type="text/javascript">
         //<![CDATA[
            $(document).ready(function() {
               inpandfieldlen("title",255);
            });
         //]]>
         </script>';
        }
    }
    adminfoot('fv', '', '', '');
}
开发者ID:npds,项目名称:npds_dune,代码行数:45,代码来源:mainblock.php

示例2: ConfigureBan

function ConfigureBan($ModPath, $ModStart)
{
    global $f_meta_nom, $f_titre, $adminimg, $language;
    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 '
   <hr />
      <div class="card card-block">
         ' . ipban_translate("Chaque ligne ne doit contenir qu'une adresse IP de la forme : a.b.c.d:X (ex : 168.192.1.1:5).") . '<br />
         <span class="text-danger">' . ipban_translate("Si X >= 5 alors l'accès sera refusé !") . '</span><br />
         ' . ipban_translate("Ce fichier est mis à jour automatiquement par l'anti-spam de NPDS.") . '
      </div>
      <form id="ipban_mod" action="admin.php" method="post">
         <div class="form-group row">
            <label class="form-control-label col-sm-12" for="ip_ban">' . ipban_translate("Liste des IP") . '</label>
            <div class="col-sm-12">
               <textarea id="ip_ban" class="form-control" name="ipban" rows="15">' . $ip_ban . '</textarea>
            </div>
         </div>
         <div class="form-group row">
            <div class="col-sm-12">
               <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>
         </div>
      </form>';
    adminfoot('', '', '', '');
}
开发者ID:npds,项目名称:npds_dune,代码行数:37,代码来源:setban.php

示例3: 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>&nbsp;' . 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>&nbsp;' . 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>&nbsp;' . 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, '', '');
}
开发者ID:npds,项目名称:npds_dune,代码行数:86,代码来源:phpbbmaint.php

示例4: autoEdit


//.........这里部分代码省略.........
    //     }
    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 ' 
            </select>
         </div>
      </div>';
    SelectCategory($catid);
    echo "<br />";
    puthome($ihome);
    echo '
      <div class="form-group row">
         <label class="form-control-label col-sm-12" for="hometext">' . adm_translate("Texte d'introduction") . '</label>
         <div class="col-sm-12">
            <textarea class="tin form-control" rows="25" name="hometext" >' . $hometext . '</textarea>
         </div>
      </div>
      ' . aff_editeur('hometext', '') . '
      <div class="form-group row">
         <label class="form-control-label col-sm-12" for="bodytext">' . adm_translate("Texte étendu") . '</label>
         <div class="col-sm-12">
            <textarea class="tin form-control" rows="25" name="bodytext" >' . $bodytext . '</textarea>
         </div>
      </div>
      ' . aff_editeur('bodytext', '');
    if ($aid != $informant) {
        echo '
      <div class="form-group row">
         <label class="form-control-label col-sm-12" for="notes">' . adm_translate("Notes") . '</label>
         <div class="col-sm-12">
            <textarea class="tin form-control" rows="7" name="notes">' . $notes . '</textarea>
         </div>
      </div>
      ' . aff_editeur('notes', '');
    }
    $deb_day = substr($date_debval, 8, 2);
    $deb_month = substr($date_debval, 5, 2);
    $deb_year = substr($date_debval, 0, 4);
    $deb_hour = substr($date_debval, 11, 2);
    $deb_min = substr($date_debval, 14, 2);
    //
    $fin_day = substr($date_finval, 8, 2);
    $fin_month = substr($date_finval, 5, 2);
    $fin_year = substr($date_finval, 0, 4);
    $fin_hour = substr($date_finval, 11, 2);
    $fin_min = substr($date_finval, 14, 2);
    //
    publication($deb_day, $deb_month, $deb_year, $deb_hour, $deb_min, $fin_day, $fin_month, $fin_year, $fin_hour, $fin_min, $epur);
    echo '
      <div class="form-group row">
         <div class="col-sm-12">
            <input type="hidden" name="anid" value="' . $anid . '" />
            <input type="hidden" name="op" value="autoSaveEdit" />
            <input class="btn btn-primary" type="submit" value="' . adm_translate("Sauver les modifications") . '" />
         </div>
      </div>
   </form>';
    adminfoot('fv', '', '', '');
}
开发者ID:Jireck-npds,项目名称:npds_dune,代码行数:101,代码来源:automated.php

示例5: AddLink


//.........这里部分代码省略.........
         <li>' . translate("All links are posted pending verification.") . '</li>
         <li>' . translate("Username and IP are recorded, so please don't abuse the system.") . '</li>
      </ul>
      <form class="" method="post" action="modules.php" name="adminForm">
         <input type="hidden" name="ModPath" value="' . $ModPath . '" />
         <input type="hidden" name="ModStart" value="' . $ModStart . '" />
         <div class="form-group row">
            <label class="form-control-label col-sm-3" for="title">' . translate("Title") . '</label>
            <div class="col-sm-9">
               <input class="form-control" type="text" id="title" name="title" maxlength="100" required="required" />
           </div>
        </div>';
        global $links_url;
        if ($links_url or $links_url == -1) {
            echo '
         <div class="form-group row">
            <label class="form-control-label col-sm-3" for="url">URL</label>
            <div class="col-sm-9">
               <input class="form-control" type="url" id="url" name="url" maxlength="100" value="http://" required="required" />
           </div>
        </div>';
        }
        $result = sql_query("SELECT cid, title FROM " . $links_DB . "links_categories ORDER BY title");
        echo '
         <div class="form-group row">
            <label class="form-control-label col-sm-3" for="cat">' . translate("Category") . '</label>
            <div class="col-sm-9">
               <select class="c-select form-control" name="cat">';
        while (list($cid, $title) = sql_fetch_row($result)) {
            echo '
                  <option value="' . $cid . '">' . aff_langue($title) . '</option>';
            $result2 = sql_query("select sid, title from " . $links_DB . "links_subcategories WHERE cid='{$cid}' ORDER BY title");
            while (list($sid, $stitle) = sql_fetch_row($result2)) {
                echo '
                  <option value="' . $cid . '-' . $sid . '">' . aff_langue($title . '/' . $stitle) . '</option>';
            }
        }
        echo '
              </select>
           </div>
        </div>';
        global $links_topic;
        if ($links_topic) {
            echo '
         <div class="form-group row">
            <label class="form-control-label col-sm-3" for="topicL">' . translate("Topics") . '</label>
            <div class="col-sm-9">
               <select class="c-select form-control" name="topicL">';
            $toplist = sql_query("SELECT topicid, topictext FROM " . $NPDS_Prefix . "topics ORDER BY topictext");
            echo '
                  <option value="">' . translate("All Topics") . '</option>';
            while (list($topicid, $topics) = sql_fetch_row($toplist)) {
                echo '
                  <option value="' . $topicid . '">' . $topics . '</option>';
            }
            echo '
               </select>
            </div>
         </div>';
        }
        echo '
         <div class="form-group row">
            <label class="form-control-label col-sm-12" for="xtext">' . translate("Description") . '</label>
            <div class="col-sm-12">
               <textarea class="tin form-control" name="xtext" rows="10"></textarea>
            </div>
         </div>';
        echo aff_editeur('xtext', '');
        global $cookie;
        echo '
         <div class="form-group row">
            <label class="form-control-label col-sm-3" for="name">' . translate("Your Name") . '</label>
            <div class="col-sm-9">
               <input type="text" class="form-control" id="name" name="name" maxlength="60" value="' . $cookie[1] . '" required="required" />
            </div>
         </div>
         <div class="form-group row">
            <label class="form-control-label col-sm-3" for="email">' . translate("Your Email") . '</label>
            <div class="col-sm-9">
               <input type="email" class="form-control" id="email" name="email" maxlength="60" required="required" />
            </div>
         </div>';
        echo Q_spambot();
        echo '
         <div class="form-group row">
            <input type="hidden" name="op" value="Add" />
            <div class="col-sm-12">
               <input type="submit" class="btn btn-primary" value="' . translate("Add URL") . '" />
            </div>
         </div>
      </form>';
    } else {
        echo '
        <p align="center>' . translate("You are not a registered user or you have not logged in.") . '<br />
        ' . translate("If you were registered you could add links on this website.") . '</p>';
    }
    echo '
   </div>';
    adminfoot('fv', '', '', '');
}
开发者ID:Jireck-npds,项目名称:npds_dune,代码行数:101,代码来源:links-1.php

示例6: modifyadmin


//.........这里部分代码省略.........
               <input id="chng_pwd2" class="form-control" type="password" name="chng_pwd2" maxlength="12" placeholder="' . adm_translate("Mot de Passe") . '" title="' . adm_translate("Entrez votre nouveau Mot de Passe") . '" />
               <span class="help-block text-xs-right"><span id="countcar_chng_pwd2"></span></span>
            </div>
         </div>
         <div class="form-group row">
            <label class="col-sm-4 text-danger" for="chng_radminsuper" >' . adm_translate("Super administrateur") . '</label>
            <div class="col-sm-8">
               <div class="checkbox">
                  <label>
                     <input id="cb_radminsuper" class="" type="checkbox" name="chng_radminsuper" value="1" ' . $supadm_inp . ' />
                  </label>
                 <span class="help-block">' . adm_translate("Si Super administrateur est coché, cet administrateur aura TOUS les droits.") . '</span>
               </div>
            </div>
         </div>
         <input type="hidden" name="chng_aid" value="' . $chng_aid . '" />
      </fieldset>
      <fieldset>
         <legend><img src="' . $adminimg . 'authors.' . $admf_ext . '" class="vam" border="0" width="24" height="24" alt="' . adm_translate("Droits") . '" /> ' . adm_translate("Droits") . ' </legend>
         <div id="adm_droi_f" class="container-fluid ">
            <div class="form-group">
               <input type="checkbox" id="ckball_f" />&nbsp;<span class="small text-muted" id="ckb_status_f">' . adm_translate("Tout cocher") . '</span>
            </div>';
    echo $listdroits;
    echo '
        </div>
      </fieldset>
      <fieldset>
         <legend><img src="' . $adminimg . 'authors.' . $admf_ext . '" class="vam" border="0" width="24" height="24" alt="' . adm_translate("Droits modules") . '" /> ' . adm_translate("Droits modules") . ' </legend>
         <div id="adm_droi_m" class="container-fluid ">
            <div class="form-group">
               <input type="checkbox" id="ckball_m" />&nbsp;<span class="small text-muted" id="ckb_status_m">' . adm_translate("Tout cocher") . '</span>
            </div>';
    echo $listdroitsmodulo;
    echo '
         </div>
         <br />
         <div class="form-group row">
            <div class="col-sm-8 offset-sm-4 ">
               <button class="btn btn-primary" type="submit"><i class="fa fa-check fa-lg"></i>&nbsp;' . adm_translate("Actualiser l'administrateur") . '</button>
               <input type="hidden" name="op" value="UpdateAuthor">
            </div>
         </div>
      </fieldset>
   </form>
   </div>';
    echo $scri_check;
    echo '
   <script type="text/javascript">
   //<![CDATA[
      $(document).ready(function() {
         inpandfieldlen("chng_name",50);
         inpandfieldlen("chng_email",60);
         inpandfieldlen("chng_url",60);
         inpandfieldlen("chng_pwd",12);
         inpandfieldlen("chng_pwd2",12);
      });
   //]]>
   </script>';
    $fv_parametres = '
   chng_pwd: {
      validators: {
         callback: {
            callback: function(value, validator, $field) {
               var score = 0;
               if (value === "") {
                  return {
                     valid: true,
                     score: null
                  };
               }
               // Check the password strength
               score += ((value.length >= 8) ? 1 : -1);
               // The password contains uppercase character
               if (/[A-Z]/.test(value)) {score += 1;}
               // The password contains uppercase character
               if (/[a-z]/.test(value)) {score += 1;}
               // The password contains number
               if (/[0-9]/.test(value)) {score += 1;}
               // The password contains special characters
               if (/[!#$%&^~*_]/.test(value)) {score += 1;}
               return {
               valid: true,
               score: score    // We will get the score later
               };
            }
         }
      }
   },
   chng_pwd2: {
      validators: {
          identical: {
              field: "chng_pwd",
              message: "The password and its confirm are not the same"
          }
      }
   },
   ';
    adminfoot('fv', $fv_parametres, '', '');
}
开发者ID:npds,项目名称:npds_dune,代码行数:101,代码来源:authors.php

示例7: adminStory

function adminStory()
{
    global $NPDS_Prefix, $hlpfile, $language, $aid, $radminsuper, $adminimg;
    $f_meta_nom = 'adminStory';
    $f_titre = adm_translate("Nouvel Article");
    //==> controle droit
    admindroits($aid, $f_meta_nom);
    //<== controle droit
    $hlpfile = "manuels/{$language}/newarticle.html";
    include 'header.php';
    GraphicAdmin($hlpfile);
    adminhead($f_meta_nom, $f_titre, $adminimg);
    echo '
   <form action="admin.php" method="post" name="adminForm">
      <div class="form-group row">
         <label class="col-sm-4 form-control-label" for="subject">' . adm_translate("Titre") . '</label>
         <div class="col-sm-8">
         <input class="form-control" type="text" name="subject" value="" />
         </div>
      </div>
      <div class="form-group row">
         <label class="col-sm-4 form-control-label" 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");
    //probablement ici aussi mettre les droits pour les gestionnaires de topics ??
    if ($radminsuper) {
        echo '
            <option value="">' . adm_translate("Sélectionner un Sujet") . '</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>';
            $sel = '';
        }
    }
    echo '</select>
         </div>
      </div>';
    $cat = 0;
    SelectCategory($cat);
    puthome($ihome);
    echo '
      <div class="form-group row">
         <label class="form-control-label col-xs-12" for="hometext">' . adm_translate("Texte d'introduction") . '</label>
         <div class="col-xs-12">
            <textarea class="tin form-control" rows="25" name="hometext">' . $hometext . '</textarea>
         </div>
      </div>';
    echo aff_editeur("hometext", "true");
    echo '
      <div class="form-group row">
         <label class="form-control-label col-xs-12" for="bodytext">' . adm_translate("Texte étendu") . '</label>
         <div class="col-xs-12">
            <textarea class="tin form-control"  rows="25" name="bodytext" >' . $bodytext . '</textarea>
         </div>
      </div>';
    echo aff_editeur("bodytext", "true");
    publication($deb_day, $deb_month, $deb_year, $deb_hour, $deb_min, $fin_day, $fin_month, $fin_year, $fin_hour, $fin_min, $epur);
    echo '
      <input type="hidden" name="author" value="' . $aid . '" />
      <input type="hidden" name="op" value="PreviewAdminStory" />
      <div class="form-group row">
         <div class="col-sm-offset-4 col-sm-8">
             <input class="btn btn-primary" type="submit" name="submit" value="' . adm_translate("Prévisualiser") . '" />
         </div>
      </div>
      </fieldset>
   </form>';
    adminfoot('', '', '', '');
}
开发者ID:Jireck-npds,项目名称:npds_dune,代码行数:85,代码来源:stories.php

示例8: EditReseaux

function EditReseaux($ModPath, $ModStart)
{
    if (file_exists("modules/{$ModPath}/reseaux-sociaux.conf.php")) {
        include "modules/{$ModPath}/reseaux-sociaux.conf.php";
    }
    include_once "functions.php";
    include "header.php";
    global $cookie;
    $posterdata_extend = get_userdata_extend_from_id($cookie[0]);
    if ($posterdata_extend['M2'] != '') {
        $i = 0;
        $socialnetworks = explode(';', $posterdata_extend['M2']);
        foreach ($socialnetworks as $socialnetwork) {
            $res_id[] = explode('|', $socialnetwork);
        }
        sort($res_id);
        sort($rs);
    }
    echo '
   <h3>' . rs_translate("Réseaux sociaux") . '</h3>
   <div>
   <hr />
   <form id="reseaux_user" action="modules.php?ModStart=' . $ModStart . '&amp;ModPath=' . $ModPath . '&amp;op=SaveSetReseaux" method="post">';
    $i = 0;
    $ident = '';
    foreach ($rs as $v1) {
        if ($res_id) {
            foreach ($res_id as $y1) {
                $k = array_search($y1[0], $v1);
                if (false !== $k) {
                    $ident = $y1[1];
                    break;
                } else {
                    $ident = '';
                }
            }
        }
        if ($i == 0) {
            echo '
   <div class="row">';
        }
        echo '
   <div class="col-sm-6">
   <fieldset>
   <legend><i class="fa fa-' . $v1[2] . ' fa-2x text-primary">&nbsp;</i>' . $v1[0] . '</legend>
      <div class="form-group row">
         <label class="form-control-label col-sm-12" for="rs_uid' . $i . '">' . rs_translate("Identifiant") . '</label>
         <div class="col-sm-12">
            <input id="rs_uid' . $i . '" class="form-control" type="text" name="rs[' . $i . '][uid]"  maxlength="50"  placeholder="' . rs_translate("Identifiant") . ' ' . $v1[0] . '" value="' . $ident . '"/>
            <span class="help-block text-xs-right"><span id="countcar_rs_uid' . $i . '"></span></span>
            <input type="hidden" name="rs[' . $i . '][id]" value="' . $v1[0] . '" />
         </div>
      </div>
   </fieldset>
   </div>';
        if ($nombre % 2 == 1) {
            echo '
   </div>
   <div class="row">';
        }
        $i++;
    }
    echo '
   </div>
      <div class="form-group row">
         <div class="col-sm-6 offset-sm-6">
            <button class="btn btn-primary col-xs-12" type="submit"><i class="fa fa-check fa-lg"></i>&nbsp;' . rs_translate("Sauvegarder") . '</button>
            <input type="hidden" name="ModPath" value="' . $ModPath . '" />
            <input type="hidden" name="ModStart" value="' . $ModStart . '" />
            <input type="hidden" name="op" value="SaveSetReseaux" />
         </div>
      </div>
   </form>';
    adminfoot('', '', '', '');
}
开发者ID:npds,项目名称:npds_dune,代码行数:75,代码来源:reseaux-sociaux.php

示例9: send_email_to_user

function send_email_to_user($username, $subject, $message, $all, $groupe, $expediteur)
{
    global $NPDS_Prefix, $f_meta_nom, $f_titre, $adminimg;
    if ($subject != '') {
        if ($expediteur == 1) {
            $emetteur = 1;
        } else {
            global $user;
            if ($user) {
                $userX = base64_decode($user);
                $userdata = explode(':', $userX);
                $emetteur = $userdata[0];
            } else {
                $emetteur = 1;
            }
        }
        if ($all) {
            $result = sql_query("SELECT uid, user_langue FROM " . $NPDS_Prefix . "users");
            while (list($to_userid, $user_langue) = sql_fetch_row($result)) {
                $tab_to_userid[] = $to_userid . ':' . $user_langue;
            }
        } else {
            if ($groupe) {
                $result = sql_query("SELECT s.uid, s.groupe, u.user_langue FROM " . $NPDS_Prefix . "users_status s, " . $NPDS_Prefix . "users u WHERE s.uid=u.uid AND s.groupe!='' ORDER BY s.uid ASC");
                while (list($to_userid, $groupeX, $user_langue) = sql_fetch_row($result)) {
                    $tab_groupe = explode(',', $groupeX);
                    if ($tab_groupe) {
                        foreach ($tab_groupe as $groupevalue) {
                            if ($groupevalue == $groupe) {
                                $tab_to_userid[] = $to_userid . ':' . $user_langue;
                            }
                        }
                    }
                }
            } else {
                $result = sql_query("SELECT uid, user_langue FROM " . $NPDS_Prefix . "users WHERE uname='{$username}'");
                while (list($to_userid, $user_langue) = sql_fetch_row($result)) {
                    $tab_to_userid[] = $to_userid . ':' . $user_langue;
                }
            }
        }
        if ($subject == '' or $message == '') {
            header("location: admin.php");
        }
        $message = str_replace('\\n', '<br />', $message);
        global $gmt;
        $time = date(translate("dateinternal"), time() + $gmt * 3600);
        $pasfin = false;
        $count = 0;
        include_once "language/lang-multi.php";
        while ($count < sizeof($tab_to_userid)) {
            $to_tmp = explode(':', $tab_to_userid[$count]);
            $to_userid = $to_tmp[0];
            if ($to_userid != '' and $to_userid != 1) {
                $sql = "INSERT INTO " . $NPDS_Prefix . "priv_msgs (msg_image, subject, FROM_userid, to_userid, msg_time, msg_text) ";
                $sql .= "VALUES ('{$image}', '{$subject}', '{$emetteur}', '{$to_userid}', '{$time}', '{$message}')";
                if ($resultX = sql_query($sql)) {
                    $pasfin = true;
                }
                // A copy in email if necessary
                global $nuke_url, $subscribe;
                if ($subscribe) {
                    $old_message = $message;
                    $sujet = translate_ml($to_tmp[1], 'Vous avez un nouveau message.');
                    $message = translate_ml($to_tmp[1], 'Bonjour') . ",<br /><br /><a href=\"{$nuke_url}/viewpmsg.php\">" . translate_ml($to_tmp[1], "Cliquez ici pour lire votre nouveau message.") . "</a><br /><br />";
                    include "signat.php";
                    copy_to_email($to_userid, $sujet, $message);
                    $message = $old_message;
                }
            }
            $count++;
        }
    }
    global $aid;
    Ecr_Log('security', "SendEmailToUser({$subject}) by AID : {$aid}", '');
    global $hlpfile;
    include 'header.php';
    GraphicAdmin($hlpfile);
    adminhead($f_meta_nom, $f_titre, $adminimg);
    echo '
   <hr />';
    if ($pasfin) {
        echo '
   <div class="alert alert-success"><strong>"' . stripslashes($subject) . '"</strong> ' . adm_translate("a été envoyée") . '.</div>';
    } else {
        echo '
   <div class="alert alert-danger"><strong>"' . stripslashes($subject) . '"</strong>' . adm_translate("n'a pas été envoyée") . '.</div>';
    }
    adminfoot('', '', '', '');
}
开发者ID:npds,项目名称:npds_dune,代码行数:90,代码来源:email_user.php

示例10: updateUser

function updateUser($chng_uid, $chng_uname, $chng_name, $chng_url, $chng_email, $chng_femail, $chng_user_from, $chng_user_occ, $chng_user_intrest, $chng_user_viewemail, $chng_avatar, $chng_user_sig, $chng_bio, $chng_pass, $chng_pass2, $level, $open_user, $chng_groupe, $chng_send_email, $chng_is_visible, $chng_mns, $C1, $C2, $C3, $C4, $C5, $C6, $C7, $C8, $M1, $M2, $T1, $T2, $B1, $raz_avatar, $chng_rank, $chng_lnl)
{
    global $NPDS_Prefix;
    $tmp = 0;
    if ($chng_pass2 != '') {
        if ($chng_pass != $chng_pass2) {
            global $hlpfile, $f_meta_nom, $f_titre, $adminimg;
            include "header.php";
            GraphicAdmin($hlpfile);
            adminhead($f_meta_nom, $f_titre, $adminimg);
            echo error_handler(adm_translate("Désolé, les nouveaux Mots de Passe ne correspondent pas. Cliquez sur retour et recommencez") . "<br />");
            adminfoot('', '', '', '');
            return;
        }
        $tmp = 1;
    }
    $result = sql_query("SELECT mns FROM " . $NPDS_Prefix . "users WHERE uid='{$chng_uid}'");
    list($tmp_mns) = sql_fetch_row($result);
    if ($tmp_mns == 0 and $chng_mns == 1) {
        Minisites($chng_mns, $chng_uname);
    }
    if ($chng_send_email == '') {
        $chng_send_email = '0';
    }
    if ($chng_is_visible == '') {
        $chng_is_visible = '1';
    } else {
        $chng_is_visible = '0';
    }
    if ($raz_avatar) {
        $chng_avatar = "blank.gif";
    }
    if ($tmp == 0) {
        sql_query("UPDATE " . $NPDS_Prefix . "users SET uname='{$chng_uname}', name='{$chng_name}', email='{$chng_email}', femail='{$chng_femail}', url='{$chng_url}', user_from='{$chng_user_from}', user_occ='{$chng_user_occ}', user_intrest='{$chng_user_intrest}', user_viewemail='{$chng_user_viewemail}', user_avatar='{$chng_avatar}', user_sig='{$chng_user_sig}', bio='{$chng_bio}', send_email='{$chng_send_email}', is_visible='{$chng_is_visible}', mns='{$chng_mns}', user_lnl='{$chng_lnl}' WHERE uid='{$chng_uid}'");
    }
    if ($tmp == 1) {
        global $system;
        if (!$system) {
            $cpass = crypt($chng_pass, $chng_pass);
        } else {
            $cpass = $chng_pass;
        }
        sql_query("UPDATE " . $NPDS_Prefix . "users SET uname='{$chng_uname}', name='{$chng_name}', email='{$chng_email}', femail='{$chng_femail}', url='{$chng_url}', user_from='{$chng_user_from}', user_occ='{$chng_user_occ}', user_intrest='{$chng_user_intrest}', user_viewemail='{$chng_user_viewemail}', user_avatar='{$chng_avatar}', user_sig='{$chng_user_sig}', bio='{$chng_bio}', send_email='{$chng_send_email}', is_visible='{$chng_is_visible}', mns='{$chng_mns}', pass='{$cpass}', user_lnl='{$chng_lnl}' WHERE uid='{$chng_uid}'");
    }
    if ($chng_user_viewemail) {
        $attach = 1;
    } else {
        $attach = 0;
    }
    if ($open_user == '') {
        $open_user = 0;
    }
    if (preg_match('#[a-zA-Z_]#', $chng_groupe)) {
        $chng_groupe = '';
    }
    if ($chng_groupe != '') {
        $tab_groupe = explode(',', $chng_groupe);
        if ($tab_groupe) {
            foreach ($tab_groupe as $groupevalue) {
                if ($groupevalue == "0" and $groupevalue != '') {
                    $chng_groupe = '';
                }
                if ($groupevalue == "1") {
                    $chng_groupe = '';
                }
                if ($groupevalue > "127") {
                    $chng_groupe = '';
                }
            }
        }
    }
    sql_query("UPDATE " . $NPDS_Prefix . "users_status SET attachsig='{$attach}', level='{$level}', open='{$open_user}', groupe='{$chng_groupe}', rank='{$chng_rank}' WHERE uid='{$chng_uid}'");
    sql_query("UPDATE " . $NPDS_Prefix . "users_extend SET C1='{$C1}', C2='{$C2}', C3='{$C3}', C4='{$C4}', C5='{$C5}', C6='{$C6}', C7='{$C7}', C8='{$C8}', M1='{$M1}', M2='{$M2}', T1='{$T1}', T2='{$T2}', B1='{$B1}' WHERE uid='{$chng_uid}'");
    global $aid;
    Ecr_Log("security", "UpdateUser({$chng_uid}, {$chng_uname}) by AID : {$aid}", "");
    global $referer;
    if ($referer != "memberslist.php") {
        Header("Location: admin.php?op=mod_users");
    } else {
        Header("Location: memberslist.php");
    }
}
开发者ID:npds,项目名称:npds_dune,代码行数:82,代码来源:users.php

示例11: translate

// Champ Hidden
$m->add_field('op', '', 'saveuser', 'hidden', false);
$m->add_field('uname', '', $userinfo['uname'], 'hidden', false);
$m->add_field('uid', '', $userinfo['uid'], 'hidden', false);
// Submit bouton
$m->add_extra('
      <div class="form-group row">
         <div class="col-sm-8 offset-sm-4 " >');
$m->add_field('Submit', '', translate('Submit'), 'submit', false);
$m->add_extra('
         </div>
      </div>
      <script type="text/javascript">
      //<![CDATA[
         $(document).ready(function() {
            inpandfieldlen("name",60);
            inpandfieldlen("email",60);
            inpandfieldlen("femail",60);
            inpandfieldlen("user_from",100);
            inpandfieldlen("user_occ",100);
            inpandfieldlen("user_intrest",150);
            inpandfieldlen("bio",255);
            inpandfieldlen("user_sig",255);
            inpandfieldlen("pass",40);
            inpandfieldlen("vpass",40);
            inpandfieldlen("C2",40);
         });
      //]]>
      </script>');
$m->add_extra(adminfoot('fv', '', '', '1'));
// ----------------------------------------------------------------
开发者ID:npds,项目名称:npds_dune,代码行数:31,代码来源:mod_formulaire.php

示例12: Only_NewUser

function Only_NewUser()
{
    global $user, $memberpass;
    if (!$user) {
        global $smilies, $short_user, $memberpass;
        global $uname, $name, $email, $user_avatar, $user_occ, $user_from, $user_intrest, $user_sig, $user_viewemail, $pass, $vpass, $C1, $C2, $C3, $C4, $C5, $C6, $C7, $C8, $M1, $M2, $T1, $T2, $B1;
        include "header.php";
        showimage();
        echo '
   <h2>' . translate("User") . '</h2>
   <div class="card card-block">
      <h3>' . translate("Notice") . '</h3>
      <p>
      ' . translate("Account preferences are cookie based.") . ' ' . translate("We don't sell/give to others your personal info.") . ' ' . translate("As a registered user you can") . ' : 
         <ul>
         <blockquote>
            <li>' . translate("Post comments with your name") . '</li>
            <li>' . translate("Send news with your name") . '</li>
            <li>' . translate("Have a personal box in the Home") . '</li>
            <li>' . translate("Upload personal avatar") . '</li>
            <li>' . translate("Select how many news you want in the Home") . '</li>
            <li>' . translate("Customize the comments") . '</li>
            <li>' . translate("Select different themes") . '</li>
            <li>' . translate("some other cool stuff...") . '</li>
         </blockquote>
         </ul>
      </p>';
        if (!$memberpass) {
            echo '
      <p class="lead text-danger"><i class="fa fa-exclamation"></i>&nbsp;' . translate("Password will be sent to the email address you enter.") . '</p>';
        }
        echo '
   </div>';
        include "modules/sform/extend-user/extend-user.php";
        $fv_parametres = '
   add_aid: {
      validators: {
         callback: {
            message: "Ce surnom n\'est pas disponible",
            callback: function(value, validator, $field) {
            return $.inArray(value, admin) == -1;
            }
         }
      }
   },
   add_name: {
      validators: {
         callback: {
            message: "Ce nom n\'est pas disponible",
            callback: function(value, validator, $field) {
               return $.inArray(value, adminname) == -1;
            }
         }
      }
   },
   add_email: {
   },
   add_url: {
   },
   pass: {
      validators: {
         notEmpty: {
            message: "The password is required and cannot be empty"
         },
         callback: {
            callback: function(value, validator, $field) {
               var score = 0;
               if (value === "") {
                  return {
                     valid: true,
                     score: null
                  };
               }
               // Check the password strength
               score += ((value.length >= 8) ? 1 : -1);
               // The password contains uppercase character
               if (/[A-Z]/.test(value)) {score += 1;}
               // The password contains uppercase character
               if (/[a-z]/.test(value)) {score += 1;}
               // The password contains number
               if (/[0-9]/.test(value)) {score += 1;}
               // The password contains special characters
               if (/[!#$%&^~*_]/.test(value)) {score += 1;}
               return {
               valid: true,
               score: score    // We will get the score later
               };
            }
         }
      }
   },
   ';
        adminfoot('fv', $fv_parametres, '', '1');
    } else {
        header("location: user.php");
    }
}
开发者ID:phrev,项目名称:npds_dune,代码行数:97,代码来源:user.php

示例13: edito

function edito($edito_type, $contents, $Xaff_jours, $Xaff_jour, $Xaff_nuit)
{
    global $hlpfile, $language, $f_meta_nom, $f_titre, $adminimg;
    include "header.php";
    GraphicAdmin($hlpfile);
    adminhead($f_meta_nom, $f_titre, $adminimg);
    if ($contents == '') {
        echo '
      <form id="fad_edi_choix" action="admin.php?op=Edito_load" method="post">
         <fieldset>
            <legend>' . adm_translate("Type d'éditorial") . '</legend>
            <div class="form-group">
               <select class="c-select form-control" name="edito_type" onchange="submit()">
                  <option value="0">' . adm_translate("Modifier l'Editorial") . ' ...</option>
                  <option value="G">' . adm_translate("Anonyme") . '</option>
                  <option value="M">' . adm_translate("Membre") . '</option>
               </select>
            </div>
         </fieldset>
      </form>';
    } else {
        if ($edito_type == 'G') {
            $edito_typeL = ' ' . adm_translate("Anonyme");
        } elseif ($edito_type == 'M') {
            $edito_typeL = ' ' . adm_translate("Membre");
        }
        if (strpos($contents, "[/jour]") > 0) {
            $contentJ = substr($contents, strpos($contents, "[jour]") + 6, strpos($contents, "[/jour]") - 6);
            $contentN = substr($contents, strpos($contents, "[nuit]") + 6, strpos($contents, "[/nuit]") - 19 - strlen($contentJ));
        }
        if (!$contentJ and !$contentN and !strpos($contents, "[/jour]")) {
            $contentJ = $contents;
        }
        echo '
      <form id="fad_edi_mod" action="admin.php" method="post" name="adminForm">
      <fieldset>
         <legend>' . adm_translate("Edito") . ' :' . $edito_typeL . '</legend>
         <div class="form-group">
            <label class="form-control-label" for="XeditoJ">' . adm_translate("Le jour") . '</label>';
        echo aff_editeur("XeditoJ", "false");
        echo '
            <textarea class="tin form-control" name="XeditoJ" rows="20" >';
        echo htmlspecialchars($contentJ, ENT_COMPAT | ENT_SUBSTITUTE | ENT_HTML401, cur_charset);
        echo '</textarea>
         </div>
         <div class="form-group">
            <label class="form-control-label" for="XeditoN">' . adm_translate("La nuit") . '</label>';
        echo aff_editeur("XeditoN", "false");
        echo '
            <textarea class="tin form-control" name="XeditoN" rows="20">';
        echo htmlspecialchars($contentN, ENT_COMPAT | ENT_SUBSTITUTE | ENT_HTML401, cur_charset);
        echo '</textarea>
         </div>
         <div class="form-group">
         <div class="row">
            <label class="col-sm-4 form-control-label" for="aff_jours">' . adm_translate("Afficher pendant") . '</label>
            <div class="col-sm-8">
               <div class="input-group">
                  <span class="input-group-addon">' . adm_translate("jour(s)") . '</span>
                  <input class="form-control" type="number" name="aff_jours" id="aff_jours" min="0" step="1" max="999" value="' . $Xaff_jours . '" data-fv-digits="true" required="required" />
               </div>
            </div>
         </div>
      </div>
         <div class="col-sm-offset-4 col-sm-8">
         <div class="form-group">
            <label class="checkbox-inline">
               <input type="checkbox" name="aff_jour" value="checked" ' . $Xaff_jour . ' />' . adm_translate("Le jour") . '
            </label> 
            <label class="checkbox-inline">
               <input type="checkbox" name="aff_nuit" value="checked" ' . $Xaff_nuit . ' />' . adm_translate("La nuit") . '
            </label>
            </div>
         </div>
      <input type="hidden" name="op" value="Edito_save" />
      <input type="hidden" name="edito_type" value="' . $edito_type . '" />
      <div class="form-group row">
         <div class="col-sm-offset-4 col-sm-8">
            <button class="btn btn-primary col-xs-12" type="submit" name="edito_confirm"><i class="fa fa-check fa-lg"></i>&nbsp;' . adm_translate("Sauver les modifications") . ' </button>
         </div>
         <div class="col-sm-offset-4 col-sm-8">
            <a href="admin.php?op=Edito" class="btn btn-secondary col-xs-12">' . adm_translate("Abandonner") . '</a>
         </div>
      </div>
      </fieldset>
      </form>';
    }
    adminfoot('fv', '', '', '');
}
开发者ID:Jireck-npds,项目名称:npds_dune,代码行数:89,代码来源:adminedito.php

示例14: HeadlinesEdit

function HeadlinesEdit($hid)
{
    global $hlpfile, $NPDS_Prefix, $f_meta_nom, $f_titre, $adminimg;
    include "header.php";
    $vars = get_defined_vars();
    GraphicAdmin($hlpfile);
    $result = sql_query("SELECT sitename, url, headlinesurl, status FROM " . $NPDS_Prefix . "headlines WHERE hid='{$hid}'");
    list($xsitename, $url, $headlinesurl, $status) = sql_fetch_row($result);
    adminhead($f_meta_nom, $f_titre, $adminimg);
    echo '
   <h3 class="m-t-md">' . adm_translate("Editer paramètres Grand Titre") . '</h3>
   <form action="admin.php" method="post">
      <fieldset>
         <input type="hidden" name="hid" value="' . $hid . '" />
         <div class="form-group">
            <div class="row">
               <label class="form-control-label col-sm-4" for="xsitename">' . adm_translate("Nom du site") . '</label>
               <div class="col-sm-8">
                  <input class="form-control" type="text" name="xsitename" maxlength="30" value="' . $xsitename . '" required="required" />
               </div>
            </div>
         </div>
         <div class="form-group">
            <div class="row">
               <label class="form-control-label col-sm-4" for="url">' . adm_translate("URL") . '</label>
               <div class="col-sm-8">
                  <div class="input-group">
                     <span class="input-group-btn">
                       <button class="btn btn-secondary" ><a href="' . $url . '" target="_blank"><i class="fa fa-external-link fa-lg"></i></a></button>
                     </span>
                     <input class="form-control" type="url" id="url" name="url" maxlength="100" value="' . $url . '" required="required" />
                     <span class="help-block text-xs-right"><span id="countcar_url"></span></span>
                  </div>
               </div>
            </div>
         </div>
         <div class="form-group">
            <div class="row">
               <label class="form-control-label col-sm-4" for="headlinesurl">' . adm_translate("URL pour le fichier RDF/XML") . '</label>
               <div class="col-sm-8">
                  <div class="input-group">
                     <span class="input-group-btn">
                       <button class="btn btn-secondary" ><a href="' . $headlinesurl . '" target="_blank"><i class="fa fa-external-link fa-lg"></i></a></button>
                     </span>
                     <input class="form-control" type="url" name="headlinesurl" maxlength="200" value="' . $headlinesurl . '" required="required" />
                  </div>
               </div>
            </div>
         </div>
         <div class="form-group">
            <div class="row">
               <label class="form-control-label col-sm-4" for="status">' . adm_translate("Etat") . '</label>
               <div class="col-sm-8">
                  <select class="c-select form-control" name="status">';
    if ($status == 1) {
        $sel_a = 'selected="selected"';
    } else {
        $sel_i = 'selected="selected"';
    }
    echo '
                     <option name="status" value="1" ' . $sel_a . '>' . adm_translate("Actif(s)") . '</option>
                     <option name="status" value="0" ' . $sel_i . '>' . adm_translate("Inactif(s)") . '</option>
                  </select>
               </div>
            </div>
         </div>
         <div class="form-group">
            <div class="row">
               <input type="hidden" name="op" value="HeadlinesSave" />
               <div class="col-sm-offset-4 col-sm-8">
                  <button class="btn btn-primary col-xs-12" type="submit"><i class="fa fa-edit fa-lg"></i>&nbsp;' . adm_translate("Sauver les modifications") . '</button>
               </div>
           </div>
        </div>
      </fieldset>
   </form>';
    adminfieldinp($result);
    adminfoot('fv', '', '', '');
}
开发者ID:Jireck-npds,项目名称:npds_dune,代码行数:79,代码来源:headlines.php

示例15: 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") . '&nbsp;<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" />&nbsp;<a href="admin.php?op=topicedit&amp;topicid=' . $topic . '" class="adm_tooltip">' . aff_langue($topictext) . '</a></td>
             <td align="left"><a href="admin.php?op=DisplayStory&amp;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&amp;qid=' . $qid . '"><i class="fa fa-edit fa-lg" title="' . adm_translate("Editer") . '" data-toggle="tooltip" ></i></a>&nbsp;<a class="text-danger" href="admin.php?op=DeleteStory&amp;qid=' . $qid . '"><i class="fa fa-trash-o fa-lg" title="' . adm_translate("Effacer") . '" data-toggle="tooltip" ></i></a></td>
         </tr>';
            } else {
                echo '
            <td>&nbsp;</td>
         </tr>';
            }
            $dummy++;
        }
        if ($dummy < 1) {
            echo '<h3>' . adm_translate("Pas de nouveaux Articles postés") . '</h3>';
        } else {
            echo '
      </tbody>
   </table>';
        }
    }
    adminfoot('', '', '', '');
}
开发者ID:npds,项目名称:npds_dune,代码行数:82,代码来源:submissions.php


注:本文中的adminfoot函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。