Changeset 459
- Timestamp:
- 05/07/08 18:55:47 (8 months ago)
- Location:
- trunk/app
- Files:
-
- 1 added
- 8 modified
-
controllers/confirms_controller.php (modified) (1 diff)
-
controllers/users_controller.php (modified) (1 diff)
-
controllers/vclassrooms_controller.php (modified) (2 diffs)
-
views/layouts/admin.ctp (modified) (1 diff)
-
views/layouts/rubyx.ctp (modified) (2 diffs)
-
views/users/about.ctp (modified) (1 diff)
-
views/vclassrooms/aboutme.ctp (added)
-
webroot/css/cpanel/cpanel.css (modified) (5 diffs)
-
webroot/img/admin/top.png (modified) (previous)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/controllers/confirms_controller.php
r394 r459 54 54 if ($this->User->save($this->data) && $this->Confirm->delete($data['Confirm']['id'])) 55 55 { 56 $this->flash('Your account has been activated', '/users/login', 2);56 $this->flash('Your account has been activated', '/users/login', 1); 57 57 } 58 58 else -
trunk/app/controllers/users_controller.php
r458 r459 125 125 $this->pageTitle = 'About ' . $username; 126 126 127 $user_id = $this->User->field("id", array("username"=>$username)); 128 129 $this->layout = $this->Edublog->layout($user_id); 130 131 $this->Edublog->blog($user_id); // blogger elements 132 133 $conditions = array("User.id"=>$user_id); 134 135 $this->set('data', $this->User->findAll($conditions)); 136 } 137 138 public function alumni() 139 { 127 $this->layout = 'portal'; 128 129 $this->Portal->statics(); // Using Portal component 130 131 $conditions = array("User.username"=>trim($username)); 132 133 $this->set('data', $this->User->find($conditions)); 134 } 135 136 public function alumni() 137 { 140 138 $this->layout = 'portal'; 141 139 -
trunk/app/controllers/vclassrooms_controller.php
r458 r459 20 20 public function beforeFilter() 21 21 { 22 $this->Auth->allow(array('show', 'jointoclass', ' display', 'participation'));22 $this->Auth->allow(array('show', 'jointoclass', 'aboutme', 'display', 'participation')); 23 23 parent::beforeFilter(); 24 24 } … … 55 55 } 56 56 } 57 57 58 public function aboutme($username) 59 { 60 $conditions = array('User.username'=>trim($username)); 61 62 $this->Vclassroom->User->unbindModel(array('hasMany'=>array('Vclassroom', 'Lesson', 'Faq', 'Acquaintance', 'Entry', 'Category'), 'belongsTo'=>array('Group'))); 63 64 $data = $this->Vclassroom->User->find($conditions); 65 66 $this->pageTitle = 'About me '. $data['User']['name']; 67 $this->layout = $this->Edublog->layout($data['User']['id']); 68 $this->Edublog->blog($data['User']['id']); 69 70 $this->set('data', $data); 71 } 72 58 73 public function show($user_id, $id) 59 74 { -
trunk/app/views/layouts/admin.ctp
r396 r459 29 29 30 30 <div id="header"> 31 32 <h1><?php echo $html->link('Karamelo: Control Panel', '/admin/entries/start'); ?></h1> 31 <h1><?php echo $html->link('Karamelo: Control Panel', '/admin/entries/start'); ?></h1> e-Learning platform 33 32 <?php 34 echo $html->para(null, 'e-Learning platform');35 33 echo $html->link($cU['User']['username'] . '\'s blog', '/blog/'. $cU['User']['username'], array("style"=>"color:white;text-decoration:none;font-weight:bold;")); 36 34 ?> 35 Logged in as <strong><?php echo $cU['User']['username']; ?></strong> | 36 <?php echo $html->link($_SERVER['SERVER_NAME'], '/').' '. $html->link('My Account', '/admin/users/edit') .' | '. $html->link('Logout', '/users/logout'); ?> 37 37 </div><!-- header ends--> 38 <p>39 Logged in as <strong><?php echo $cU['User']['username']; ?></strong> |40 <strong><a href="/"><?php echo $_SERVER['SERVER_NAME']; ?></a></strong>41 <?php echo $html->link('My Account', '/admin/users/edit'); ?> |42 <?php echo $html->link('Logout', '/users/logout'); ?>43 </p>44 38 <div style="clear:both;"></div> 45 39 <?php echo $this->renderElement('admin_menu'); ?> 46 40 47 <div style="float:left;border:1px solid white;width: 600px;margin:10px 300px;text-align:left;">41 <div style="float:left;border:1px solid white;width:900px;margin:15px 10px 10px 100px;text-align:left;"> 48 42 <?php echo $content_for_layout ?> 49 43 </div> 50 44 <div style="clear:both;"></div> 51 45 52 <div id="footer"> 53 <p>Powered by the <a href="http://www.chipotle-software.com/" rel="external">Karamelo Project © 2002-2008 GPLv3</a> </p> 54 </div> 46 <?php echo $html->div('footer', 'Powered by the '. $html->link('Karamelo Project © 2002-2008 GPLv3', 'http://www.chipotle-software.com/', null, false, false)); ?> 55 47 56 48 <div style="position:absolute;top:15px;left:800px"><!-- help button--> -
trunk/app/views/layouts/rubyx.ctp
r431 r459 53 53 echo $form->create("Entry", array("action"=>"search", "onsubmit"=>"return chkSearch()")); 54 54 echo $form->hidden('Entry.user_id', array("value"=>$blog['User']['id'])); 55 echo '<fieldset><legend>Search</legend>';55 echo '<fieldset><legend>Search</legend>'; 56 56 echo $form->label('Entry.terms', 'Find:', array("class"=>"noscreen")); 57 echo '<span id="search-input-out">';57 echo '<span id="search-input-out">'; 58 58 echo $form->input('Entry.terms', array("size"=>"30", "id"=>"search-input-out")); 59 59 echo '</span>'; … … 80 80 81 81 <?php echo ($url == 'users/abou') ? '<li id="active">' : '<li>'; ?> 82 <a href="/ users/about/<?php echo $blog['User']['username'] ?>">About Me<span class="tab-l"></span><span class="tab-r"></span></a></li>82 <a href="/vclassrooms/aboutme/<?php echo $blog['User']['username'] ?>">About Me<span class="tab-l"></span><span class="tab-r"></span></a></li> 83 83 84 84 <?php echo ($url == 'messages/c') ? '<li id="active">' : '<li>'; ?> -
trunk/app/views/users/about.ctp
r245 r459 4 4 <?php 5 5 //die( var_dump($blog) ); 6 echo "<div class=\"title_section\">Classrooms</div>"; 7 echo $data[0]['User']['name'] . " <br />"; 8 echo $data[0]['User']['cv'] . " <br />"; 9 echo $html->image('avatars/'.$data[0]['User']['avatar'], array("alt" => $data[0]['User']['name'], "title" =>$data[0]['User']['name'])) . " "; 10 6 echo $data['User']['name'] . " <br />"; 7 echo $data['User']['cv'] . " <br />"; 8 echo $html->image('avatars/'.$data['User']['avatar'], array("alt" => $data['User']['name'], "title" =>$data['User']['name'])) . " "; 11 9 ?> 12 10 </div> -
trunk/app/webroot/css/cpanel/cpanel.css
r396 r459 15 15 display: block; 16 16 margin: 0 auto; 17 padding: 0 0 0 100px;17 padding: 6px; 18 18 text-align: left; 19 19 font-size: smaller; … … 40 40 #header h1 { 41 41 margin: 0; 42 padding-top: 20px;42 padding-top: 7px; 43 43 color: #fff; 44 44 font-weight: bold; … … 49 49 color: #fff; 50 50 text-decoration: none; 51 font-size: smaller;51 font-size: smaller; 52 52 } 53 53 .title_section{ … … 77 77 78 78 /* Footer */ 79 #footer {79 .footer { 80 80 letter-spacing: 1px; 81 81 border-top: 1px dotted #babdb6; … … 83 83 color: #888a85; 84 84 padding: 10px; 85 } 86 87 #footer a, #footer a:hover { 85 font-size:7pt; 86 } 87 88 .footer a, #footer a:hover { 88 89 text-decoration: none; 89 } 90 91 #footer p { 92 font-size: smaller; 93 margin: 0 0 10px 0; 94 } 90 font-size:7pt; 91 } 92 95 93 /* End Footer */ 96 94
