added gitignore
[aymargeddon/current.git] / html / role_select.epl
1 [$ if exists $udat{-id} and exists $udat{-game} $]
2
3 [-
4   use Aymargeddon;
5   $db = DataBase->new();
6   $aym = Aymargeddon->new($udat{-game},$udat{-id},$db);
7   $db->set_language($udat{-lang});
8
9   # open for earthlings?
10   $open_earthling = $aym->is_open('CITY');
11   # open for gods?
12   $open_god = $aym->is_open('MOUNTAIN');
13
14   # open for observers?
15   ($open_observer) = $db->read_player($udat{-id},'SECURITY');
16   $open_observer = 0 if $open_observer eq 'USER';
17   
18   ($gn) = $db->read_game($udat{-game},'NAME');
19
20 -]
21
22 <form method="get" action="player.epl">
23
24   [+ $db->loc('PLAYER_CREATE_CHAR').' '.$gn +]:<p>
25
26   [+ $db->loc('NOM_CHARNAME') +]: <input type="text" name="charname" size="20" maxlength="20"><p>
27
28   [+ $db->loc('NOM_ROLE') +]:
29   [$ if $open_earthling $]
30     <input type="radio" name="role" value="EARTHLING">[+ $db->loc('ROLE_EARTHLING') +]
31   [$ endif $]
32   [$ if $open_god $]
33     <input type="radio" name="role" value="GOD">[+ $db->loc('ROLE_GOD') +]
34   [$ endif $]
35   [$ if $open_observer $]
36     <input type="radio" name="role" value="OBSERVER">[+ $db->loc('ROLE_OBSERVER') +]
37   [$ endif $]
38   <p>
39
40   [+ $db->loc('NOM_GENDER') +]: <input type="radio" name="gender" value="MALE">[+ $db->loc('GEN_MALE') +]
41   <input type="radio" name="gender" value="FEMALE">[+ $db->loc('GEN_FEMALE') +]
42   <input type="radio" name="gender" value="PLURAL" checked>[+ $db->loc('GEN_PLURAL') +]<p>
43 [#  [+ $db->loc('NOM_DESCRIPTION') +]: <input type="text" name="description"><p> #]
44   <input type="submit" value="[+ $db->loc('FORM_OK_BUTTON') +]">
45
46 </form>
47
48 [$ else $]
49
50   [- print OUT $db->loc('ERROR_NO_LOGIN'); -]
51
52 [$ endif $]