1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
<? require("inc/menu.php"); require("inc/html.php"); require("inc/common.php"); require("inc/controls.php");
if ($admin==FALSE) { header("Location: index.php"); die(); }
$config=getconfig(); $output="";
if (isset($_POST["action"])) { $total=0; foreach ($_POST["cols"] as $bit => $enabled) { if (strtolower($enabled)=="on") $total+=intval($bit); } doquery("update config set value=\"".$total."\" where item=\"movcolumns\""); header("Location: columnadmin.php"); die(); }
$ccols=mysql_result(doquery("select value from config where item=\"movcolumns\""),0);
$output.="Pick columns to display by default on the <A HREF=\"listmovies.php\">movie</A> page. Users can make their own personal choices on the <A HREF=\"settings.php\">settings</A> page. The setting here is just the default.<BR /><BR />\n";
$output.=form_begin("columnadmin.php","POST"); $output.=input_hidden("action","save");
$output.=columns($ccols);
$output.="<BR />\n"; $output.=submit("Save changes"); $output.=form_end();
$content["body"] =& $output; dopage($content);
?>
|