A lot naming conventions applied:
[shipsimu.git] / application / admin / templates / de / code / login_main.ctp
1 <?php
2 ///////////////////////////////
3 // Assign personal user data //
4 ///////////////////////////////
5
6 // Get a new instance for personal data
7 $blockInstance = WebBlockHelper::createWebBlockHelper($this, 'persona_data');
8
9 // Set the data source instance which must exist in registry
10 $blockInstance->prefetchValueInstance('user');
11
12 // Assign fields with template variables
13 $blockInstance->assignField('username');
14 $blockInstance->assignFieldWithFilter('user_status', "user_status_translator");
15
16 // Shall we include registration date?
17 if ($blockInstance->ifIncludeRegistrationStamp()) {
18         // Then assign it as well!
19         $blockInstance->assignFieldWithFilter('registered', 'formatTimestamp');
20 } // END - if
21
22 // Flush the content out to a template variable
23 $blockInstance->flushContent();
24
25 // Get helper instance
26 $helper = WebLinkHelper::createWebLinkHelper($this, 'logout_action_link', 'index.php?app={?app_short_name?}&amp;page=login_area');
27
28 // Add action
29 $helper->addActionLink('logout', "Ausloggen");
30
31 // Flush the content
32 $helper->flushContent();
33
34 // End of all PHP commands
35 ?>
36 <div id="content_header">
37         Willkommen zum {?app_full_name?}!
38 </div>
39
40 <div id="content_body">
41         {?login_content?}
42 </div>
43
44 <div id="persona_data" title="Informationen zum Adminaccount">
45         <div id="persona_header">
46                 Account-Infos:
47         </div>
48
49         <div id="persona_body">
50                 {?persona_data?}
51         </div>
52
53         <div id="logout_link">
54                 {?logout_action_link?}
55         </div>
56 </div>