diff options
| author | Simon | 2011-03-26 22:09:11 +0100 |
|---|---|---|
| committer | Simon | 2011-03-26 22:09:11 +0100 |
| commit | 93f4bc38f2075720ca2467c0f5e10bc0a1c3bbc0 (patch) | |
| tree | cfa8f16411ff2a40b333adfaa469cf2dc1d1507b | |
| parent | footer fix (diff) | |
| download | pbs2-93f4bc38f2075720ca2467c0f5e10bc0a1c3bbc0.tar.gz pbs2-93f4bc38f2075720ca2467c0f5e10bc0a1c3bbc0.tar.xz pbs2-93f4bc38f2075720ca2467c0f5e10bc0a1c3bbc0.zip | |
User-Startseite Layout angepasst, GroupGraph angepasst
| -rw-r--r-- | application/modules/user/controllers/IndexController.php | 5 | ||||
| -rw-r--r-- | application/modules/user/views/scripts/index/index.phtml | 26 | ||||
| -rw-r--r-- | library/Pbs/Graph.php | 8 | ||||
| -rw-r--r-- | public/media/css/style.css | 4 | ||||
| -rw-r--r-- | public/media/css/user.css | 19 |
5 files changed, 40 insertions, 22 deletions
diff --git a/application/modules/user/controllers/IndexController.php b/application/modules/user/controllers/IndexController.php index e61f012..f795b16 100644 --- a/application/modules/user/controllers/IndexController.php +++ b/application/modules/user/controllers/IndexController.php @@ -23,10 +23,7 @@ class User_IndexController extends Zend_Controller_Action } $this->view->links = $links; - $ggMapper = new Application_Model_GroupGroupsMapper(); - $userIDsNamespace = Zend_Session::namespaceGet('userIDs'); - print_a('Your Parent Groups', $ggMapper->getParentGroups($userIDsNamespace['membershipID'])); - print_a('Your Child Groups',$ggMapper->getChildGroups($userIDsNamespace['membershipID'])); + } } diff --git a/application/modules/user/views/scripts/index/index.phtml b/application/modules/user/views/scripts/index/index.phtml index 0f1fab5..aa98393 100644 --- a/application/modules/user/views/scripts/index/index.phtml +++ b/application/modules/user/views/scripts/index/index.phtml @@ -1,18 +1,16 @@ <h1>Welcome</h1> -<div class='infobox'>infobox: <?php echo $this->text;?></div> -<div class='okbox'>okbox: <?php echo $this->text;?></div> -<div class='warningbox'>warningbox: <?php echo $this->text;?></div> -<div class='errorbox'>errorbox: <?php echo $this->text;?></div> -<?php print_a($this->links);?> - -<?php if(count($this->links)>0 && is_array($this->links)): ?> -<ul> -<?php foreach($this->links as $link => $text):?> -<li><a href='<?php echo $link;?>'><?php echo $text;?></a></li> - -<?php endforeach ?> -</ul> -<img src='/stats/graphgroup/' /> +<div class='dashboard'> + <h2>What do you want to do?</h2> + <?php if(count($this->links)>0 && is_array($this->links)): ?> + <ul> + <?php foreach($this->links as $link => $text):?> + <a href='<?php echo $link;?>'><li><?php echo $text;?></li></a> + <?php endforeach ?> + </ul> + <div class='bottomimg'> + <img src='/stats/graphgroup/' /> + </div> +</div> <?php endif ?> diff --git a/library/Pbs/Graph.php b/library/Pbs/Graph.php index ae3ab16..fc21336 100644 --- a/library/Pbs/Graph.php +++ b/library/Pbs/Graph.php @@ -14,7 +14,11 @@ class Pbs_Graph{ $this->graphstring = 'digraph groups { - size="5,5";'; + size="5,5"; + graph[ bgcolor=transparent ]; + node [ style=filled fillcolor="#ffffffff" ]; + "'.$this->getGroupTitle($groupID).'" [ fontcolor="#ffffffff", style=filled, fillcolor="#003592FF"]; + '; $this->getParentGroups($groupID); $this->getChildGroups($groupID); $this->graphstring .= '}'; @@ -23,7 +27,7 @@ class Pbs_Graph{ $str = 'echo "'; $str .= $this->graphstring; - $str .= '" | dot -Tpng '; + $str .= '" | dot -Tpng '; passthru($str,$end); return $end; } diff --git a/public/media/css/style.css b/public/media/css/style.css index 11cd752..6a66eb1 100644 --- a/public/media/css/style.css +++ b/public/media/css/style.css @@ -38,8 +38,7 @@ body { } -#footer { - +#footer { margin: 0; width: 1000px; clear: both; @@ -109,6 +108,7 @@ body { padding: 10px; font-size: 13px; min-height:400px; + background-color:#F2F3F1; } #debug { diff --git a/public/media/css/user.css b/public/media/css/user.css new file mode 100644 index 0000000..24e830e --- /dev/null +++ b/public/media/css/user.css @@ -0,0 +1,19 @@ +.dashboard ul{ + padding:0px; +} +.dashboard li{ + list-style:none; + border:1px solid black; + -moz-border-radius: 1em 4em 1em 4em; + border-radius: 1em 4em 1em 4em; + padding:10px 40px; + margin:10px; + background-color:#FFF; +} +.dashboard a{ + color:#000; + text-decoration:none; +} +.dashboard .bottomimg{ + text-align:center; +} |
