root/alternc/tags/0.9.7/bureau/admin/bro_pref.php

Revision 102, 4.9 kB (checked in by anarcat, 3 years ago)

[project @ alternc: changeset 2003-06-10 06:45:16 by root]
remplacement des <br> par <br />

Original author: root
Date: 2003-06-10 06:45:20

Line 
1 <?php
2 /*
3  $Id: bro_pref.php,v 1.2 2003/06/10 06:45:16 root Exp $
4  ----------------------------------------------------------------------
5  AlternC - Web Hosting System
6  Copyright (C) 2002 by the AlternC Development Team.
7  http://alternc.org/
8  ----------------------------------------------------------------------
9  Based on:
10  Valentin Lacambre's web hosting softwares: http://altern.org/
11  ----------------------------------------------------------------------
12  LICENSE
13
14  This program is free software; you can redistribute it and/or
15  modify it under the terms of the GNU General Public License (GPL)
16  as published by the Free Software Foundation; either version 2
17  of the License, or (at your option) any later version.
18
19  This program is distributed in the hope that it will be useful,
20  but WITHOUT ANY WARRANTY; without even the implied warranty of
21  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22  GNU General Public License for more details.
23
24  To read the license please visit http://www.gnu.org/copyleft/gpl.html
25  ----------------------------------------------------------------------
26  Original Author of file: Benjamin Sonntag
27  Purpose of file: Configuration of the file browser
28  ----------------------------------------------------------------------
29 */
30 require_once("../class/config.php");
31
32 if ($submit) {
33     $bro->SetPrefs($editsizex, $editsizey, $listmode, $showicons, $downfmt, $createfile, $showtype, $editor_font, $editor_size, $golastdir);
34     $error=_("Your preferences have been updated.");
35     include("bro_main.php");
36     exit;
37 }
38 $p=$bro->GetPrefs();
39
40 include("head.php");
41 ?>
42 </head>
43 <body>
44 <?php if ($error) echo "<font color=\"red\">$error</font><br />"; ?>
45 <h3><?php __("File editor preferences"); ?></h3>
46 <form action="bro_pref.php" method="post">
47
48 <table cellpadding="6" border="1" cellspacing="0">
49 <tr><td colspan="2"><h4><?php __("File editor preferences"); ?></h4></td></tr>
50 <tr><td><?php __("Horizontal window size"); ?></td><td><select class="inl" name="editsizex">
51 <?php
52 for($i=10;$i<=200;$i+=10) {
53     echo "<option";
54     if ($p["editsizex"]==$i) echo " selected";
55     echo ">$i";
56 }
57 ?></select></td></tr>
58 <tr><td><?php __("Vertical window size"); ?></td><td><select class="inl" name="editsizey">
59 <?php
60 for($i=4;$i<=60;$i+=2) {
61     echo "<option";
62     if ($p["editsizey"]==$i) echo " selected";
63     echo ">$i";
64 }
65 ?></select></td></tr>
66 <tr><td><?php __("File editor font name"); ?></td><td><select class="inl" name="editor_font">
67 <?php
68 for($i=0;$i<count($bro->l_editor_font);$i++) {
69     echo "<option";
70     if ($p["editor_font"]==$bro->l_editor_font[$i]) echo " selected";
71     echo ">"._($bro->l_editor_font[$i]);
72 }
73 ?></select></td></tr>
74 <tr><td><?php __("File editor font size"); ?></td><td><select class="inl" name="editor_size">
75 <?php
76 for($i=0;$i<count($bro->l_editor_size);$i++) {
77     echo "<option";
78     if ($p["editor_size"]==$bro->l_editor_size[$i]) echo " selected";
79     echo ">"._($bro->l_editor_size[$i]);
80 }
81 ?></select></td></tr>
82 </table>
83 <p>&nbsp;</p>
84
85 <table cellpadding="6" border="1" cellspacing="0">
86 <tr><td colspan="2"><h4><?php __("File browser preferences"); ?></h4></td></tr>
87 <tr><td><?php __("File list view"); ?></td><td><select class="inl" name="listmode">
88 <?php
89 for($i=0;$i<count($bro->l_mode);$i++) {
90     echo "<option";
91     if ($p["listmode"]==$i) echo " selected";
92     echo " value=\"$i\">"._($bro->l_mode[$i])."</option>";
93 }
94 ?></select></td></tr>
95 <tr><td><?php __("Downloading file format"); ?></td><td><select class="inl" name="downfmt">
96 <?php
97 for($i=0;$i<count($bro->l_tgz);$i++) {
98     echo "<option";
99     if ($p["downfmt"]==$i) echo " selected";
100     echo " value=\"$i\">"._($bro->l_tgz[$i])."</option>";
101 }
102 ?></select></td></tr>
103 <tr><td><?php __("What to do after creating a file"); ?></td><td><select class="inl" name="createfile">
104 <?php
105 for($i=0;$i<count($bro->l_createfile);$i++) {
106     echo "<option";
107     if ($p["createfile"]==$i) echo " selected";
108     echo " value=\"$i\">"._($bro->l_createfile[$i])."</option>";
109 }
110 ?></select></td></tr>
111 <tr><td><?php __("Show icons?"); ?></td><td><select class="inl" name="showicons">
112 <?php
113 for($i=0;$i<count($bro->l_icons);$i++) {
114     echo "<option";
115     if ($p["showicons"]==$i) echo " selected";
116     echo " value=\"$i\">"._($bro->l_icons[$i])."</option>";
117 }
118 ?></select></td></tr>
119 <tr><td><?php __("Show file types?"); ?></td><td><select class="inl" name="showtype">
120 <?php
121 for($i=0;$i<count($bro->l_icons);$i++) {
122     echo "<option";
123     if ($p["showtype"]==$i) echo " selected";
124     echo " value=\"$i\">"._($bro->l_icons[$i])."</option>";
125 }
126 ?></select></td></tr>
127 <tr><td><?php __("Remember last visited directory?"); ?></td><td><select class="inl" name="golastdir">
128 <?php
129 for($i=0;$i<count($bro->l_icons);$i++) {
130     echo "<option";
131     if ($p["golastdir"]==$i) echo " selected";
132     echo " value=\"$i\">"._($bro->l_icons[$i])."</option>";
133 }
134 ?></select></td></tr>
135
136 </table>
137 <p><input type="submit" name="submit" class="inb" value="<?php __("Change my settings"); ?>"></p>
138
139 </form>
140 <p>&nbsp;</p>
141 <a href="bro_main.php"><?php __("Back to the file browser"); ?></a>
142 </body>
143 </html>
144
Note: See TracBrowser for help on using the browser.