forked from che0/greybox
-
Notifications
You must be signed in to change notification settings - Fork 3
/
soutez.add.inc
36 lines (32 loc) · 1.38 KB
/
soutez.add.inc
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
<?php
/*
* greybox
* $Id: soutez.add.inc,v 1.6 2005/03/30 11:07:18 che0 Exp $
*/
if ($GLOBALS["cps_souteze"] < 2) {
pg_achtung($lang["access denied"]);
return;
}
pg_head();
$soutez_f = new cpykhen;
$soutez_f->form_attr["action"] = "./?page=soutez.edit.exec";
$soutez_f->form[] = new cpf_db_hidden("soutez_id","soutez_ID");
$soutez_f->form[] = new cpf_text($lang["competition"] . ": ");
$soutez_f->form[] = new cpf_db_textbox("nazev","nazev",array("size"=>40,"maxlength"=>255));
$soutez_f->form[] = new cpf_nl;
$soutez_f->form[] = new cpf_text($lang["language"] . ": ");
$soutez_f->form[] = new cpf_db_listbox_array("jazyk",array("cz"=>"cz", "en"=>"en", "de"=>"de", "fr"=>"fr"));
$soutez_f->form[] = new cpf_nl;
$soutez_f->form[] = new cpf_text($lang["season"] . ": ");
$soutez_f->form[] = new cpf_db_listbox_array("rocnik",$GLOBALS["season_domain"]);
$soutez_f->form[] = new cpf_nl;
$soutez_f->form[] = new cpf_text($lang["comment"] . ": ");
$soutez_f->form[] = new cpf_db_textarea("komentar","komentar",array("rows"=>4, "cols"=>60));
$soutez_f->form[] = new cpf_nl;
$soutez_f->form[] = new cpf_text($lang["active"] . ": ");
$soutez_f->form[] = new cpf_db_listbox_array("zamceno",array(0=>$lang["active"], 1=>$lang["locked"]));
$soutez_f->form[] = new cpf_nl;
$soutez_f->form[] = new cpf_button("add",$lang["add"]);
$soutez_f->load_this(array("rocnik"=>$GLOBALS["current_season"]));
$soutez_f->render();
?>