[Vtigercrm-commits] [vtiger-commits] r9927 - in /vtigercrm/branches/5.0.3: Smarty/templates/HomePage.tpl modules/Home/index.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Wed Nov 29 11:10:14 EST 2006


Author: richie
Date: Wed Nov 29 09:09:54 2006
New Revision: 9927

Log:
Changes made that the More link in home page shows only the user record

Modified:
    vtigercrm/branches/5.0.3/Smarty/templates/HomePage.tpl
    vtigercrm/branches/5.0.3/modules/Home/index.php

Modified: vtigercrm/branches/5.0.3/Smarty/templates/HomePage.tpl
==============================================================================
--- vtigercrm/branches/5.0.3/Smarty/templates/HomePage.tpl (original)
+++ vtigercrm/branches/5.0.3/Smarty/templates/HomePage.tpl Wed Nov 29 09:09:54 2006
@@ -147,7 +147,7 @@
 								<tr>
 									<td colspan="2" align="right" valign="bottom">
 									{if $modulename neq 'CustomView' && $modulename neq 'GroupAllocation'}
-									 <a href="index.php?module={$modulename}&action=index">{$APP.LBL_MORE}..</a>
+									 <a href="index.php?module={$modulename}&action=index&search_field=assigned_user_id&searchtype=BasicSearch&search_text={$CURRENTUSER}&query=true">{$APP.LBL_MORE}..</a>
 									{else}
 										&nbsp;	
 									{/if}

Modified: vtigercrm/branches/5.0.3/modules/Home/index.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Home/index.php (original)
+++ vtigercrm/branches/5.0.3/modules/Home/index.php Wed Nov 29 09:09:54 2006
@@ -175,10 +175,13 @@
 }
 
 global $current_language;
+
+global $current_user;
+$user_name = $current_user->column_fields[user_name];
 $current_module_strings = return_module_language($current_language, 'Calendar');
 
 $t=Date("Ymd");
-//echo '<pre>';print_r($activities); echo '</pre>'; 
+//echo '<pre>';print_r($home_values); echo '</pre>'; 
 $buttoncheck['Calendar'] = isPermitted('Calendar','index');
 $smarty->assign("CHECK",$buttoncheck);
 $smarty->assign("IMAGE_PATH",$image_path);
@@ -189,6 +192,7 @@
 $smarty->assign("HOMEDETAILS",$home_values);
 $smarty->assign("HOMEDEFAULTVIEW",DefHomeView());
 $smarty->assign("ACTIVITIES",$activities);
+$smarty->assign("CURRENTUSER",$user_name);
 $freetag = new freetag();
 $smarty->assign("ALL_TAG",$freetag->get_tag_cloud_html("",$current_user->id));
 $smarty->display("HomePage.tpl");





More information about the vtigercrm-commits mailing list