Changeset 14

Show
Ignore:
Timestamp:
07/19/08 12:10:03 (4 months ago)
Author:
gevik
Message:

-- UPD application.xml to accommodate SystemCore?
-- DEL Pages/Home.*, not needed as SystemCore? handles this
-- UPD Login mechanism to jump to TPageService's DefaultPage?
-- DEL default CMasterLayout.* from common, to be replaced by CMasterLayout.* in SystemCore?
-- ADD ctlayout.css.php
-- ADD beta Dashboard
-- ADD basic and striped down SystemCore? from TrueSoftware? PHP/PRADO Framework

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/shop/admin/protected/Messages/en/messages.xml

    r13 r14  
    11<?xml version="1.0"?> 
    22<xliff version="1.0"> 
    3  <file source-language="EN" target-language="en" datatype="plaintext" original="messages" date="2008-07-29T20:35:23Z" product-name="messages"> 
     3 <file source-language="EN" target-language="en" datatype="plaintext" original="messages" date="2008-07-30T16:06:46Z" product-name="messages"> 
    44  <body> 
    55   
     
    4343<target>logout</target> 
    4444</trans-unit> 
     45 
     46<trans-unit id="9"> 
     47<source>dashboard</source> 
     48<target/> 
     49</trans-unit> 
     50 
     51<trans-unit id="10"> 
     52<source>mailinglist</source> 
     53<target/> 
     54</trans-unit> 
     55 
     56<trans-unit id="11"> 
     57<source>greetings</source> 
     58<target></target> 
     59</trans-unit> 
    4560</body> 
    4661 </file> 
  • trunk/shop/admin/protected/Pages/Login.php

    r12 r14  
    11<?php 
    22 
    3 class Login extends CTloginPageBase 
     3class Login extends CTLoginPageBase 
    44{        
    55        protected function getUsername() 
     
    2020        protected function handleLoginSucceed() 
    2121        { 
    22                 $this->GotoPage("Pages.Home"); 
     22                $this->GotoPage($this->Service->DefaultPage); 
    2323        } 
    2424} 
  • trunk/shop/admin/protected/application.xml

    r12 r14  
    44        <paths> 
    55                <using namespace="Common.*" />   
     6                <using namespace="Common.SystemCore.*" />   
    67                <using namespace="Common.Security.*" /> 
    78                <using namespace="Common.Data.*" />     
     
    3031                <module id="users" class="CUserManager" /> 
    3132                <module id="auth" class="System.Security.TAuthManager" UserManager="users" /> 
     33                 
     34                 
     35                <module id="core" class="CSystemCore"> 
     36                        <modules> 
     37                                <module id="dashboard" class="Application.Modules.Dashboard.CDashboard"/> 
     38                                <module id="mailinglist" class="Application.Modules.MailingList.CMailingList"/> 
     39                        </modules> 
     40                </module> 
    3241        </modules> 
    3342        <services> 
    34                 <service id="page" class="TPageService" BasePath="Application" DefaultPage="Pages.Home"> 
     43                <service id="page" class="TPageService" BasePath="Application" DefaultPage="Modules.Dashboard.Home"> 
    3544                </service> 
    3645        </services>     
  • trunk/shop/common/Web/CTLoginPageBase.php

    r12 r14  
    55        function btnLogin_Click($sender,$e) 
    66        { 
     7                if(!$this->User->IsGuest) 
     8                        $this->handleLoginSucceed(); 
     9                         
    710                $authManager=$this->Application->getModule('auth'); 
    8           if($authManager->login(strtolower($this->getUsername()),$this->getPassword()) === false) 
     11               if($authManager->login(strtolower($this->getUsername()),$this->getPassword()) === false) 
    912                { 
    1013                        $this->handleLoginFailed(); 
  • trunk/shop/common/Web/CTPageBase.php

    r12 r14  
    2424    public function GotoHome() 
    2525    { 
    26         $this->GotoPage("Pages.Home"); 
     26        $this->GotoPage($this->Service->DefaultPage); 
    2727    } 
    2828