forked from che0/greybox
-
Notifications
You must be signed in to change notification settings - Fork 3
/
tym.add.inc
30 lines (26 loc) · 984 Bytes
/
tym.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
<?php
/*
* greybox
* $Id: tym.add.inc,v 1.6 2005/03/30 11:07:19 che0 Exp $
*/
if ($GLOBALS["cps_kluby"] < 1) {
pg_achtung($lang["access denied"]);
return;
}
pg_head();
$tym_f = new cpykhen;
$tym_f->form_attr["action"] = "./?page=tym.edit.exec";
$tym_f->form[] = new cpf_db_hidden("tym_id","tym_ID");
$tym_f->form[] = new cpf_text($lang["club"] . ": ");
$tym_f->form[] = new cpf_db_listbox("klub_id",array("select klub_ID, nazev from klub", array()), "klub_ID");
$tym_f->form[] = new cpf_nl;
$tym_f->form[] = new cpf_text($lang["team name"] . ": ");
$tym_f->form[] = new cpf_db_textbox("nazev","nazev",array("size"=>40,"maxlength"=>255));
$tym_f->form[] = new cpf_nl;
$tym_f->form[] = new cpf_text($lang["comment"] . ": ");
$tym_f->form[] = new cpf_db_textarea("komentar","komentar",array("rows"=>4, "cols"=>60));
$tym_f->form[] = new cpf_nl;
$tym_f->form[] = new cpf_button("add",$lang["add"]);
$tym_f->load_this(array("klub_ID"=>$_REQUEST["klub_id"]));
$tym_f->render();
?>