<?PHP /* New Forum */ ?>
<table border="0"><tr><td valign="middle" bgcolor="<?PHP echo $color1 ?>" >
<form action="<?PHP echo $myname; ?>?connexion=<?PHP echo $connexion; ?>" method="POST">
<input type="Hidden" name="action" value="add">
<input type="Hidden" name="page" value="managemenu">
<input type="Hidden" name="folder" value="<?PHP echo $folder; ?>">
<input type="Hidden" name="frompage" value="<?PHP $folder ? $word="newfolder" : $word="newforum"; echo $word; ?>">
<table border="0" cellspacing="0" cellpadding="3">
<tr>
  <td colspan="2" align="center" valign="middle" bgcolor="<?PHP echo $color2 ?>"><font face="Arial,Helvetica" color="<?PHP echo $color1 ?>"><b>Nouveau <?PHP $folder ? $word="Repertoire" : $word="Forum"; echo $word; ?></b></font></td>
</tr>
<tr>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><font face="Arial,Helvetica">Nom :</font></td>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><input type="Text" name="name" value="<?PHP echo $name; ?>" size="25" class="TEXT"></td>
</tr>
<tr>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><font face="Arial,Helvetica">Description :</font></td>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><textarea name="description" cols="60" rows="3" wrap="VIRTUAL" style="width: 300px;"><?PHP echo $description; ?></textarea></td>
</tr>
<tr>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><font face="Arial,Helvetica">Config Suffix :</font></td>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><input type="Text" name="config_suffix" value="<?PHP echo $config_suffix; ?>" size="10" class="TEXT"></td>
</tr>
<tr>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><font face="Arial,Helvetica">Repertoire :</font></td>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><select name="parent">
<option value="0">Racine</option>
<?php
  $sSQL="Select id, name from ".$pho_main." where folder='1' order by name";
  $q->query($DB, $sSQL);
  $rec=(object)$q->getrow();
  While(isset($rec->id)){
    echo "<option value=\"$rec->id\"";
    if($parent==$rec->id) echo ' selected';
    echo ">$rec->name</option>\n";
    $rec=(object)$q->getrow();
  }
?>
</select></td>
</tr>
<tr>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><font face="Arial,Helvetica">Langage :</font></td>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><select name="lang">
<?PHP
$aryLangs = array();
$strLangDir = "lang/";
$dirCurrent = dir($strLangDir);
while($strFile=$dirCurrent->read()) {
  if (is_file($strLangDir.$strFile)) {
    $aryLangs[] = $strLangDir.$strFile;
  }
}
$dirCurrent->close();

if (count($aryLangs) > 1) { sort ($aryLangs); }

$file = current($aryLangs);
while ($file) {
  if($file!="$strLangDir"."blank".$ext){
    $intStartLang = strpos($file, '/') + 1;
    $intLengthLang = strpos($file, '.') - $intStartLang;
    $text=ucwords(substr($file,$intStartLang,$intLengthLang));
    echo "<option value=\"$file\"";
    if($file==$lang || $file==$default_lang) echo ' selected';
    echo ">$text</option>\n";
  }
  $file = next($aryLangs);
}
?>
</select></td>
</tr>
<?PHP
  if($mod_email=="")               $mod_email=$DefaultEmail;
  if($display=="")                 $display=$DefaultDisplay;
  if($table_width=="")             $table_width=$default_table_width;
  if($table_header_color=="")      $table_header_color=$default_table_header_color;
  if($table_header_font_color=="") $table_header_font_color=$default_table_header_font_color;
  if($table_body_color_1=="")      $table_body_color_1=$default_table_body_color_1;
  if($table_body_font_color_1=="") $table_body_font_color_1=$default_table_body_font_color_1;
  if($table_body_color_2=="")      $table_body_color_2=$default_table_body_color_2;
  if($table_body_font_color_2=="") $table_body_font_color_2=$default_table_body_font_color_2;
  if($nav_color=="")               $nav_color=$default_nav_color;
  if($nav_font_color=="")          $nav_font_color=$default_nav_font_color;
  if($lang=="")                    $lang=$default_lang;
?>
<?PHP if(!$folder){ ?>
<tr>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><font face="Arial,Helvetica">Moderator Host:</font></td>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><input type="Text" name="staff_host" value="<?PHP echo $staff_host; ?>" size="25" class="TEXT"></td>
</tr>
<tr>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><font face="Arial,Helvetica">Nom de la Table :</font></td>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><font face="Arial,Helvetica"><input type="Text" name="table" value="<?PHP echo $table; ?>" size="25" class="TEXT"><br><input type="Checkbox" name="table_exists" value="1" <?PHP if($table_exists) echo "checked"; ?>> Table deja existante</font></td>
</tr>
<tr>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><font face="Arial,Helvetica">Uploads autorisés ?</font></td>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><font face="Arial,Helvetica">
  <INPUT TYPE="radio" NAME="allow_uploads" VALUE="Y">oui
  <INPUT TYPE="radio" NAME="allow_uploads" VALUE="N" CHECKED>non
  </td>
</tr>
<tr>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><font face="Arial,Helvetica">Moderation :</font></td>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><select name="moderation" class=big>
  <option value="none" <?PHP if($moderation=='none') echo 'selected'; ?>>Aucun</option>
  <option value="all" <?PHP if($moderation=='all') echo 'selected'; ?>>Tous les messages avant postage</option>
  <option value="react" <?PHP if($moderation=='react') echo 'selected'; ?>>Tous les messages apres postage</option>
</select></td>
</tr>
<tr>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><font face="Arial,Helvetica">Moderator Email:</font></td>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><input type="Text" name="mod_email" value="<?PHP echo $mod_email; ?>" size="25" class="TEXT"></td>
</tr>
<tr>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><font face="Arial,Helvetica">Moderator Password:</font></td>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><input type="password" name="mod_pass" size="10" class="TEXT"><br><input type="password" name="mod_pass_2" size="10" class="TEXT"></td>
</tr>
<?PHP
	  /*
<tr>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><font face="Arial,Helvetica">Mailing List Address:</font></td>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><input type="Text" name="email_list" value="<?PHP echo $email_list; ?>" size="25" class="TEXT"></td>
</tr>
<tr>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><font face="Arial,Helvetica">Mailing List Return:</font></td>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><input type="Text" name="email_return" value="<?PHP echo $email_return; ?>" size="25" class="TEXT"></td>
</tr>
<tr>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><font face="Arial,Helvetica">Mailing List Tag:</font></td>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><input type="Text" name="email_tag" value="<?PHP echo $email_tag; ?>" size="25" class="TEXT"></td>
</tr>
*/
?>
<tr>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><font face="Arial,Helvetica">Messages dupliques :</font></td>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><select name="check_dup" class=big>
<option value="0" <?PHP if($check_dup==0) echo "selected"; ?>>Ne pas tester la dupliquation des messages</option>
<option value="1" <?PHP if($check_dup==1) echo "selected"; ?>>Tester la dupliquation des messages</option>
</select></td>
</tr>
<tr>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><font face="Arial,Helvetica">Messages par page :</font></td>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><input type="Text" name="display" value="<?PHP echo $display; ?>" size="10" class="TEXT"></td>
</tr>
<tr>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><font face="Arial,Helvetica">Type de Thread :</font></td>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><select name="multi_level">
<option value="0" <?PHP if($multi_level==0) echo "selected"; ?>>Simple niveau</option>
<option value="1" <?PHP if($multi_level==1) echo "selected"; ?>>Multiple niveau</option>
</select></td>
</tr>
<tr>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><font face="Arial,Helvetica">Affichage des threads :</font></td>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><select name="collapsed">
<option value="0" <?PHP if($collapsed==0) echo "selected"; ?>>Etendu</option>
<option value="1" <?PHP if($collapsed==1) echo "selected"; ?>>Plat</option>
</select></td>
</tr>
<tr>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><font face="Arial,Helvetica">Lecture des messages :</font></td>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><select name="rflat" class=big>
<option value="0" <?PHP if($rflat==0) echo "selected"; ?>>Un par un </option>
<option value="1" <?PHP if($rflat==1) echo "selected"; ?>>Un thread a la fois</option>
</select></td>
</tr>
<tr>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><font face="Arial,Helvetica">HTML :</font></td>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>">
<table cellspacing="0" cellpadding="2" border="0">
<tr>
    <td><font face="Arial,Helvetica"><input type="checkbox" name="html_all" value="1" <?PHP if($html_all==1) echo "checked"; ?>> Tout permettre</font></td>
    <td><font face="Arial,Helvetica"><input type="checkbox" name="html_style" value="1" <?PHP if($html_style==1) echo "checked"; ?>> Gras, Italic, Sous-ligne</font></td>
</tr>
<tr>
    <td><font face="Arial,Helvetica"><input type="checkbox" name="html_font" value="1" <?PHP if($html_font==1) echo "checked"; ?>> Fonts</font></td>
    <td><font face="Arial,Helvetica"><input type="checkbox" name="html_li" value="1" <?PHP if($html_li==1) echo "checked"; ?>> Lists (ul,ol,li)</font></td>
</tr>
<tr>
    <td><font face="Arial,Helvetica"><input type="checkbox" name="html_img" value="1" <?PHP if($html_img==1) echo "checked"; ?>> Images</font></td>
    <td><font face="Arial,Helvetica"><input type="checkbox" name="html_a" value="1" <?PHP if($html_a==1) echo "checked"; ?>> Ancres (Links)</font></td>
</tr>
</table>
</td>
</tr>
<?PHP } ?>
<tr>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><font face="Arial,Helvetica">Table Width :</font></td>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><input type="Text" name="table_width" value="<?PHP echo $table_width; ?>" size="10" class="TEXT"></td>
</tr>
<tr>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><font face="Arial,Helvetica">Table Header Color :</font></td>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><input type="Text" name="table_header_color" value="<?PHP echo $table_header_color; ?>" size="10" class="TEXT"></td>
</tr>
<tr>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><font face="Arial,Helvetica">Table Header Font Color :</font></td>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><input type="Text" name="table_header_font_color" value="<?PHP echo $table_header_font_color; ?>" size="10" class="TEXT"></td>
</tr>
<tr>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><font face="Arial,Helvetica">Main Table Body Color :</font></td>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><input type="Text" name="table_body_color_1" value="<?PHP echo $table_body_color_1; ?>" size="10" class="TEXT"></td>
</tr>
<tr>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><font face="Arial,Helvetica">Main Table Body Font Color :</font></td>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><input type="Text" name="table_body_font_color_1" value="<?PHP echo $table_body_font_color_1; ?>" size="10" class="TEXT"></td>
</tr>
<?PHP if(!$folder){ ?>
<tr>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><font face="Arial,Helvetica">Alt. Table Body Color :</font></td>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><input type="Text" name="table_body_color_2" value="<?PHP echo $table_body_color_2; ?>" size="10" class="TEXT"></td>
</tr>
<tr>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><font face="Arial,Helvetica">Alt. Table Body Font Color :</font></td>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><input type="Text" name="table_body_font_color_2" value="<?PHP echo $table_body_font_color_1; ?>" size="10" class="TEXT"></td>
</tr>
<?PHP } ?>
<tr>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><font face="Arial,Helvetica">Navigation Background Color :</font></td>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><input type="Text" name="nav_color" value="<?PHP echo $nav_color; ?>" size="10" class="TEXT"></td>
</tr>
<tr>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><font face="Arial,Helvetica">Navigation Font Color :</font></td>
  <td valign="middle" bgcolor="<?PHP echo $color1 ?>"><input type="Text" name="nav_font_color" value="<?PHP echo $nav_font_color; ?>" size="10" class="TEXT"></td>
</tr>
</td>
</tr>
</table>
<p>
<center><input type="Submit" name="submit" value="Ajouter" class="BUTTON" ></center>
</form>
</td></tr></table>
<br>
