OSDN Git Service

バージョン記載追加
[trpgtools-onweb/cake-frame.git] / app / plugins / install / views / install / regist.ctp
1 <div class="install form">
2 <h2><?php echo $this->pageTitle; ?></h2>
3 <p><?php __('Registration of some Initial information for the site.') ?></p>
4
5 <p>
6 <?php
7         echo $form->create('Install', array(
8                 'url' => array('plugin' => 'install', 'controller' => 'install', 'action' => 'regist')
9         ));
10 ?>
11
12 <p>
13 <?php
14         $name = 'Administrator';
15         if (isset($this->data['User']['name'])) {
16                 $name = $this->data['User']['name'];
17         }
18         echo $form->input('User.name', array(
19                 'label' => __('Name of the Administrator', true),
20                 'value' => $name,
21                 'after' => $html->div('required', 
22                         __(' * required', true)
23                 ),
24         ));
25 ?>
26 </p>
27 <p>
28 <?php
29         $username = 'admin';
30         if (isset($this->data['User']['username'])) {
31                 $username = $this->data['User']['username'];
32         }
33         echo $form->input('User.username', array(
34                 'label' => __('UserId of the Administrator', true),
35                 'value' => $username,
36                 'maxlength' => $idLength['max'],
37                 'after' => $html->tag('div',
38                         sprintf(__('Between %d to %d characters', true), $idLength['min'], $idLength['max']),
39                         array('class' => 'attention')
40                 ).
41                 $html->div('required', 
42                         __(' * required', true)
43                 ),
44         ));
45 ?>
46 </p>
47 <p>
48 <?php
49         echo $form->input('User.password1', array(
50                 'label' => __('Password', true),
51                 'type' => 'password',
52                 'value' => '',
53                 'maxlength' => $passwordLength['max'],
54                 'after' => $html->div('attention',
55                 sprintf(__('Between %d to %d characters', true), $passwordLength['min'], $passwordLength['max'])
56                 ).
57                 $html->div('required', 
58                         __(' * required', true)
59                 ),
60         ));
61         echo $form->input('User.password2', array(
62                 'label' => __('Password [confirm]', true),
63                 'type' => 'password',
64                 'value' => '',
65                 'after' => $html->div('required', 
66                         __(' * required', true)
67                 ),
68         ));
69 ?>
70 </p>
71 <p>
72 <?php
73         echo $form->input('User.pcmail', array(
74                 'label' => __('Pc Mail', true),
75                 'after' => $html->div('required', 
76                         __(' * required', true)
77                 ),
78         ));
79 ?>
80 </p>
81 <p>
82 <?php
83         $siteName = __('Chara-Shee!', true);
84         if (isset($this->data['SiteConfig']['siteName'])) {
85                 $siteName = $this->data['SiteConfig']['siteName'];
86         }
87         echo $form->input('SiteConfig.siteName', array(
88                 'label' => __('Site Name', true),
89                 'value' => $siteName,
90         ));
91
92 ?>
93 </p>
94 <p>
95 <?php
96         echo $form->end(array('label' => __('Submit', true)));
97 ?>
98 </p>
99 </div>