2 ///////////////////////////////
3 // Assign personal user data //
4 ///////////////////////////////
6 // Get a new instance for personal data
7 $blockInstance = WebBlockHelper::createWebBlockHelper($this, 'persona_data');
9 // Set the data source instance which must exist in registry
10 $blockInstance->prefetchValueInstance('user');
12 // Assign fields with template variables
13 $blockInstance->assignField('username');
15 // Shall we include registration date?
16 if ($blockInstance->ifIncludeRegistrationStamp()) {
17 // Then assign it as well!
18 $blockInstance->assignFieldWithFilter('registered', 'formatTimestamp');
21 // Flush the content out to a template variable
22 $blockInstance->flushContent();
24 //////////////////////////////////////
25 // Assign the shipping company data //
26 //////////////////////////////////////
28 // Get a new instance for personal data
29 $blockInstance = WebBlockHelper::createWebBlockHelper($this, 'company_data');
31 // Get the user instance
32 $userInstance = Registry::getRegistry()->getInstance('user');
34 // Get a shipping company instance ready
35 $companyInstance = ObjectFactory::createObjectByConfiguredName('company_class', array($userInstance));
37 // Flush the content out to a template variable
38 //$blockInstance->flushContent();
40 // End of all PHP commands
42 <div id="content_header">
43 Willkommen im Loginbereich von {?app_full_name?}!
46 <div id="content_body">
50 <div id="persona_data" title="Informationen zu Deinem Spieleaccount">
51 <div id="persona_header">
55 <div id="persona_body">
59 <div id="logout_link">
60 [<a href="$config[base_url]/index.php?app=ship-simu&page=login_area&action=logout"
61 title="Aus dem Spiel ausloggen">Ausloggen</a>]
65 <div id="company_data" title="Informationen zu der aktuell ausgewählten Reederei">
66 <div id="company_header">
70 <div id="company_body">