[Vtigercrm-commits] [vtiger-commits] r6533 - in /vtigercrm/trunk/Smarty/templates: UserDetailView.tpl UserEditView.tpl

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Sat May 27 10:45:33 EDT 2006


Author: saraj
Date: Sat May 27 08:45:28 2006
New Revision: 6533

Log:
Updated the template(Edit/Detail View) file for My Preferences - ahmed

Modified:
    vtigercrm/trunk/Smarty/templates/UserDetailView.tpl
    vtigercrm/trunk/Smarty/templates/UserEditView.tpl

Modified: vtigercrm/trunk/Smarty/templates/UserDetailView.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/UserDetailView.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/UserDetailView.tpl Sat May 27 08:45:28 2006
@@ -16,12 +16,13 @@
 <script language="JavaScript" type="text/javascript" src="include/js/prototype_fade.js"></script>
 <script language="JavaScript" type="text/javascript" src="include/js/effectspack.js"></script>
 <script language="javascript" type="text/javascript" src="include/js/general.js"></script>
-<script language="JavaScript" type="text/javascript" src="include/js/ajax.js"></script>
 <style type="text/css">@import url(themes/blue/style.css);</style>
 
 <table width="100%" border="0" cellpadding="0" cellspacing="0">
 <tr>
+{if $CATEGORY eq 'Settings'}
 	{include file='SettingsMenu.tpl'}
+{/if}
 <td width="75%" valign="top">
 <table width="100%"  border="0" cellspacing="0" cellpadding="0">
 	<tr><td class="padTab" align="left">
@@ -31,6 +32,10 @@
 			<input type="hidden" name="record" value="{$ID}">
 			<input type="hidden" name="isDuplicate" value=false>
 			<input type="hidden" name="action">
+
+{if $CATEGORY eq 'Settings'}
+			<input type="hidden" name="modechk" value="prefview">
+{/if}
 			<input type="hidden" name="user_name" value="{$USER_NAME}">
 			<input type="hidden" name="old_password">
 			<input type="hidden" name="new_password">
@@ -38,17 +43,25 @@
 			<input type="hidden" name="return_action">
 			<input type="hidden" name="return_id">
 			<input type="hidden" name="forumDisplay">
-			<input type="hidden" name="parenttab" value=Settings>	
+{if $CATEGORY eq 'Settings'}
+			<input type="hidden" name="parenttab" value="{$PARENTTAB}">
+{/if}	
 
 			<tr>
-					<td style="border-bottom:1px dashed #CCCCCC;">
-							<table width="100%" cellpadding="5" cellspacing="0" border="0">
-									<tr>
-											<td colspan="2" style="padding:5px;">
-													<span class="lvtHeaderText">
-													<b><a href="index.php?module=Settings&action=index&parenttab=Settings">{$MOD.LBL_SETTINGS} </a>
-															 > {$MOD.LBL_USER_MANAGEMENT} > {$MOD.LBL_USERS}</b></span>
-															<hr noshade="noshade" size="1" />
+				<td style="border-bottom:1px dashed #CCCCCC;">
+					<table width="100%" cellpadding="5" cellspacing="0" border="0">
+					<tr>
+						<td colspan="2" style="padding:5px;">
+						{if $CATEGORY eq 'Settings'}
+							<span class="lvtHeaderText">
+							<b><a href="index.php?module=Settings&action=index&parenttab=Settings">{$MOD.LBL_SETTINGS} </a> > {$MOD.LBL_USER_MANAGEMENT} > {$MOD.LBL_USERS}</b></span>
+						{else}
+							<span class="lvtHeaderText">	
+							<b>{$APP.LBL_MY_PREFERENCES}</b>
+							</span>
+						{/if}
+											
+				<hr noshade="noshade" size="1" />
 											</td>
 									  </tr>
 									<tr>
@@ -66,9 +79,10 @@
 					{$EDIT_BUTTON}
 				{$CHANGE_PW_BUTTON}
 				{$LOGIN_HISTORY_BUTTON}
+			{if $CATEGORY eq 'Settings'}
 				{$DUPLICATE_BUTTON}
+			{/if}	
 				{$DELETE_BUTTON}
-				{$LIST_MAILSERVER_BUTTON}
 				{$CHANGE_HOMEPAGE_BUTTON}	
 				{$LISTROLES_BUTTON}
 	</td></tr>
@@ -274,41 +288,7 @@
 </tr>
 </table>
 
-<div id="tempdiv" style="display:block;position:absolute;left:350px;top:200px;"></div>
 {$JAVASCRIPT}
-<script>
-{literal}
-function deleteUser(userid)
-{
-	show("status");
-	var ajaxObj = new Ajax(ajaxDeleteResponse);
-	var urlstring = "action=UsersAjax&file=UserDeleteStep1&return_action=ListView&return_module=Users&module=Users&parenttab=Settings&record="+userid;
-	ajaxObj.process("index.php?",urlstring);
-}
-
-function ajaxDeleteResponse(response)
-{
-	hide("status");
-	document.getElementById("tempdiv").innerHTML= response.responseText;
-}
-
-function transferUser(del_userid)
-{
-		show("status");
-		hide("DeleteLay");
-		var ajaxObj = new Ajax(ajaxSaveResponse);
-		var trans_userid=document.getElementById('transfer_user_id').options[document.getElementById('transfer_user_id').options.selectedIndex].value;
-		var urlstring ="page=detailview&module=Users&action=UsersAjax&file=DeleteUser&ajax=true&delete_user_id="+del_userid+"&transfer_user_id="+trans_userid;
-	    	ajaxObj.process("index.php?",urlstring);
-
-}
-
-function ajaxSaveResponse(response)
-{
-	hide("status");
-	window.location.href ='index.php?action=index&module=Administration';	
-}
-{/literal}
-</script>
-
+{if $CATEGORY eq 'Settings'}
 	{include file='SettingsSubMenu.tpl'}
+{/if}

Modified: vtigercrm/trunk/Smarty/templates/UserEditView.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/UserEditView.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/UserEditView.tpl Sat May 27 08:45:28 2006
@@ -53,20 +53,27 @@
 
 <table width="100%" border="0" cellpadding="0" cellspacing="0">
 <tr>
+{if $PARENTTAB neq ''}	
 	{include file='SettingsMenu.tpl'}
+{/if}
 <td width="75%" valign="top">
 <table width="100%"  border="0" cellspacing="0" cellpadding="0">
 	<tr><td align="left">
 			<table width="100%" cellpadding="5" cellspacing="0" border="0">
-									<tr>
-											<td colspan="2" style="padding:5px;">
-													<span class="lvtHeaderText">
-													<b><a href="index.php?module=Settings&action=index&parenttab=Settings">{$MOD.LBL_SETTINGS} </a>
-															 > {$MOD.LBL_USER_MANAGEMENT} > {$MOD.LBL_USERS}</b></span>
-															<hr noshade="noshade" size="1" />
-											</td>
-									  </tr>
-									<tr>
+			<tr>
+			<td colspan="2" style="padding:5px;">
+				<span class="lvtHeaderText">
+					{if $PARENTTAB neq ''}	
+					<b><a href="index.php?module=Settings&action=index&parenttab=Settings">{$MOD.LBL_SETTINGS} </a> > {$MOD.LBL_USER_MANAGEMENT} > {$MOD.LBL_USERS}</b></span>
+					{else}
+                                            <span class="lvtHeaderText">
+                                            <b>{$APP.LBL_MY_PREFERENCES}</b>
+                                            </span>
+                                        {/if}
+				<hr noshade="noshade" size="1" />
+			</td>
+		  </tr>
+		<tr>
 											<td width="5%"><img src="{$IMAGE_PATH}user.gif" align="absmiddle"></td>
 										{if $MODE eq 'edit'}
 												<td width="95%"><span class="genHeaderGrayBig">{$USER_NAME}</span><br>
@@ -87,7 +94,7 @@
 			<input type="hidden" name="module" value="Users">
 			<input type="hidden" name="record" value="{$ID}">
 			<input type="hidden" name="mode" value="{$MODE}">
-			<input type='hidden' name='parenttab' value='Settings'>
+			<input type='hidden' name='parenttab' value='{$PARENTTAB}'>
 			<input type="hidden" name="activity_mode" value="{$ACTIVITYMODE}">
 			<input type="hidden" name="action">
 			<input type="hidden" name="return_module" value="{$RETURN_MODULE}">
@@ -98,7 +105,6 @@
 			<input type="hidden" name="workdays" value="0,1,2,3,4,5,6,">			
 			<input type="hidden" name="namedays" value="">			
 			<input type="hidden" name="weekstart" value="1">
-			<input type="hidden" name="parenttab" value=Settings>
 		<table width="100%" border="0" cellpadding="0" cellspacing="0">
 
 		<tr><td colspan="2">&nbsp;</td></tr>
@@ -335,5 +341,6 @@
 </table>
 
 {$JAVASCRIPT}
-
+{if $PARENTTAB neq ''}
 	{include file='SettingsSubMenu.tpl'}
+{/if}





More information about the vtigercrm-commits mailing list