[Vtigercrm-commits] [vtiger-commits] r7033 - in /vtigercrm/trunk/Smarty/templates: UserListView.tpl UserListViewContents.tpl

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Tue Jun 13 08:08:05 EDT 2006


Author: saraj
Date: Tue Jun 13 06:08:00 2006
New Revision: 7033

Log:
updated the user list view tpl file - ahmed

Modified:
    vtigercrm/trunk/Smarty/templates/UserListView.tpl
    vtigercrm/trunk/Smarty/templates/UserListViewContents.tpl

Modified: vtigercrm/trunk/Smarty/templates/UserListView.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/UserListView.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/UserListView.tpl Tue Jun 13 06:08:00 2006
@@ -1,120 +1,126 @@
-{*<!--
-/*********************************************************************************
-  ** The contents of this file are subject to the vtiger CRM Public License Version 1.0
-   * ("License"); You may not use this file except in compliance with the License
-   * The Original Code is:  vtiger CRM Open Source
-   * The Initial Developer of the Original Code is vtiger.
-   * Portions created by vtiger are Copyright (C) vtiger.
-   * All Rights Reserved.
-  *
- ********************************************************************************/
--->*}
-<script language="JavaScript" type="text/javascript" src="include/js/menu.js"></script>
-<style type="text/css">@import url(themes/blue/style.css);</style>
-<table width="100%" border="0" cellpadding="0" cellspacing="0">
-<tr>
-	{include file='SettingsMenu.tpl'}
-<td width="75%" valign="top" class="showPanelBg">
-		<form action="index.php" method="post" name="EditView" id="form">
-		<input type='hidden' name='module' value='Users'>
-<input type='hidden' name='action' value='EditView'>
-<input type='hidden' name='return_action' value='ListView'>
-<input type='hidden' name='return_module' value='Users'>
-<input type='hidden' name='parenttab' value='Settings'>
-		<table width="100%" border="0" cellpadding="0" cellspacing="0" class="small">
-			<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>
-					<td style="padding:5px;"> 
-							<table border="0" cellpadding="0" cellspacing="0" width="100%">
-								<tr>
-									<td colspan="2" align="left"><img src="{$IMAGE_PATH}user.gif" align="absmiddle">&nbsp;<span class="genHeaderGray">{$MOD.LBL_USER_MANAGEMENT}</span></td>
-									<td align="right" style="padding:5px; ">
-											<input title="{$CMOD.LBL_NEW_USER_BUTTON_TITLE}" accessyKey="{$CMOD.LBL_NEW_USER_BUTTON_KEY}" class='classBtn' type='submit' name='button' value="{$CMOD.LBL_NEW_USER_BUTTON_LABEL}" >
-								 	 </td>
-								</tr>
-								<tr><td colspan="3" style="border-bottom:1px dashed #CCCCCC;">&nbsp;</td></tr>
-							</table>
-					</td>
-					<td>&nbsp;</td>
-			</tr>
-			<tr><td colspan=2>
-					<div id="ListViewContents">
-						{include file="UserListViewContents.tpl"}
-					</div>
-					
-			</td>
-			</tr>
-		</table>
-	</form>
-</td>
-</tr>
-</table>
-
-</td>
-</tr>
-</table>
-<div id="tempdiv" style="display:block;position:absolute;left:350px;top:200px;"></div>
-{literal}
-<script>
-function getListViewEntries_js(module,url)
-{
-	$("status").style.display="inline";
-        new Ajax.Request(
-		'index.php',
-                {queue: {position: 'end', scope: 'command'},
-                        method: 'post',
-                        postBody: 'module=Users&action=UsersAjax&file=ListView&ajax=true&'+url,
-                        onComplete: function(response) {
-                                $("status").style.display="none";
-				$("ListViewContents").innerHTML= response.responseText;
-                        }
-                }
-        );
-}
-
-function deleteUser(userid)
-{
-	$("status").style.display="inline";
-        new Ajax.Request(
-                'index.php',
-                {queue: {position: 'end', scope: 'command'},
-                        method: 'post',
-                        postBody: 'action=UsersAjax&file=UserDeleteStep1&return_action=ListView&return_module=Users&module=Users&parenttab=Settings&record='+userid,
-                        onComplete: function(response) {
-                                $("status").style.display="none";
-				$("tempdiv").innerHTML= response.responseText;
-                        }
-                }
-        );
-}
-
-function transferUser(del_userid)
-{
-	$("status").style.display="inline";
-	$("DeleteLay").style.display="none";
-	var trans_userid=$('transfer_user_id').options[$('transfer_user_id').options.selectedIndex].value;
-        new Ajax.Request(
-                'index.php',
-                {queue: {position: 'end', scope: 'command'},
-                        method: 'post',
-                        postBody: 'module=Users&action=UsersAjax&file=DeleteUser&ajax=true&delete_user_id='+del_userid+'&transfer_user_id='+trans_userid,
-                        onComplete: function(response) {
-                                $("status").style.display="none";
-                                $("ListViewContents").innerHTML= response.responseText;
-                        }
-                }
-        );
-
-}
-</script>
-{/literal}
-
-	{include file='SettingsSubMenu.tpl'}
-
+{*<!--
+/*********************************************************************************
+  ** The contents of this file are subject to the vtiger CRM Public License Version 1.0
+   * ("License"); You may not use this file except in compliance with the License
+   * The Original Code is:  vtiger CRM Open Source
+   * The Initial Developer of the Original Code is vtiger.
+   * Portions created by vtiger are Copyright (C) vtiger.
+   * All Rights Reserved.
+  *
+ ********************************************************************************/
+-->*}
+
+<script language="JAVASCRIPT" type="text/javascript" src="include/js/smoothscroll.js"></script>
+
+<br>
+<table align="center" border="0" cellpadding="0" cellspacing="0" width="98%">
+<tbody><tr>
+        <td valign="top"><img src="{$IMAGE_PATH}showPanelTopLeft.gif"></td>
+        <td class="showPanelBg" style="padding: 10px;" valign="top" width="100%">
+<form action="index.php" method="post" name="EditView" id="form">
+<input type='hidden' name='module' value='Users'>
+<input type='hidden' name='action' value='EditView'>
+<input type='hidden' name='return_action' value='ListView'>
+<input type='hidden' name='return_module' value='Users'>
+<input type='hidden' name='parenttab' value='Settings'>
+
+        <br>
+
+	<div align=center>
+			{include file='SetMenu.tpl'}
+				<!-- DISPLAY -->
+				<table border=0 cellspacing=0 cellpadding=5 width=100% class="settingsSelUITopLine">
+				<tr>
+					<td width=50 rowspan=2 valign=top><img src="{$IMAGE_PATH}ico-users.gif" alt="{$MOD.LBL_USERS}" width="48" height="48" border=0 title="{$MOD.LBL_USERS}"></td>
+					<td class=heading2 valign=bottom><b><a href="index.php?module=Settings&action=index&parenttab=Settings">{$MOD.LBL_SETTINGS}</a> > {$MOD.LBL_USERS}</b></td>
+				</tr>
+				<tr>
+					<td valign=top class="small">{$MOD.LBL_USER_DESCRIPTION}</td>
+				</tr>
+				</table>
+				
+				<br>
+				<table border=0 cellspacing=0 cellpadding=10 width=100% >
+				<tr>
+				<td>
+					<div id="ListViewContents">
+						{include file="UserListViewContents.tpl"}
+					</div>	
+				</td>
+				</tr>
+				</table>
+			
+			
+			
+			</td>
+			</tr>
+			</table>
+		</td>
+	</tr>
+	</table>
+		
+	</div>
+
+</td>
+        <td valign="top"><img src="{$IMAGE_PATH}showPanelTopRight.gif"></td>
+   </tr>
+</tbody>
+</form>
+</table>
+
+<div id="tempdiv" style="display:block;position:absolute;left:350px;top:200px;"></div>
+{literal}
+<script>
+function getListViewEntries_js(module,url)
+{
+        $("status").style.display="inline";
+        new Ajax.Request(
+                'index.php',
+                {queue: {position: 'end', scope: 'command'},
+                        method: 'post',
+                        postBody: 'module=Users&action=UsersAjax&file=ListView&ajax=true&'+url,
+                        onComplete: function(response) {
+                                $("status").style.display="none";
+                                $("ListViewContents").innerHTML= response.responseText;
+                        }
+                }
+        );
+}
+
+function deleteUser(userid)
+{
+        $("status").style.display="inline";
+        new Ajax.Request(
+                'index.php',
+                {queue: {position: 'end', scope: 'command'},
+                        method: 'post',
+                        postBody: 'action=UsersAjax&file=UserDeleteStep1&return_action=ListView&return_module=Users&module=Users&parenttab=Settings&record='+userid,
+                        onComplete: function(response) {
+                                $("status").style.display="none";
+                                $("tempdiv").innerHTML= response.responseText;
+                        }
+                }
+        );
+}
+function transferUser(del_userid)
+{
+        $("status").style.display="inline";
+        $("DeleteLay").style.display="none";
+        var trans_userid=$('transfer_user_id').options[$('transfer_user_id').options.selectedIndex].value;
+        new Ajax.Request(
+                'index.php',
+                {queue: {position: 'end', scope: 'command'},
+                        method: 'post',
+                        postBody: 'module=Users&action=UsersAjax&file=DeleteUser&ajax=true&delete_user_id='+del_userid+'&transfer_user_id='+trans_userid,
+                        onComplete: function(response) {
+                                $("status").style.display="none";
+                                $("ListViewContents").innerHTML= response.responseText;
+                        }
+                }
+        );
+
+}
+</script>
+{/literal}
+
+

Modified: vtigercrm/trunk/Smarty/templates/UserListViewContents.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/UserListViewContents.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/UserListViewContents.tpl Tue Jun 13 06:08:00 2006
@@ -1,59 +1,41 @@
-{*<!--
-/*********************************************************************************
-  ** The contents of this file are subject to the vtiger CRM Public License Version 1.0
-   * ("License"); You may not use this file except in compliance with the License
-   * The Original Code is:  vtiger CRM Open Source
-   * The Initial Developer of the Original Code is vtiger.
-   * Portions created by vtiger are Copyright (C) vtiger.
-   * All Rights Reserved.
-  *
- ********************************************************************************/
--->*}
-<!-- BEGIN: main -->
-<table width="100%" border=0>
-					<tr>
-					<td width="75%" style="border-right:1px dashed #CCCCCC;padding:5px;">
-							<table width="100%" border="0">
-								<tr>
-									<td align="left" style="padding:5px;">{$RECORD_COUNTS}</td>
-									{$NAVIGATION}
-								</tr>
-							</table>
-							<table width="100%" border="0" cellpadding="5" cellspacing="1" class="small" style="background-color: rgb(204, 204, 204);">
-                          <tbody>
-                          	<tr>
-							{foreach item=header from=$LIST_HEADER}
-                              <td class="lvtCol">{$header}</td>
-							{/foreach}	
-                            </tr>
-							{section name=entries loop=$LIST_ENTRIES}
-             <tr  class="lvtColData" onmouseover="this.className='lvtColDataHover'" onmouseout="this.className='lvtColData'" bgcolor="white">
-             {foreach item=listvalues from=$LIST_ENTRIES[entries]}
-				  <td >{$listvalues}</td>
-             {/foreach}
-			 </tr>
-		{/section}	
-        </tbody>
-        </table>
-	</td>
-	<td width="25%" class="padTab" align="center" valign="top">
-		<div id="chPhoto" style="display:block;width:80%;">
-			<table width="100%"   cellspacing="0" cellpadding="5" class="small">
-				<tr><td align="left" colspan="2" style="border-bottom:1px dotted #CCCCCC;">
-					<b>{$CMOD.LBL_STATISTICS}</b></td>
-				</tr>
-				<tr><td align="right"><b>{$CMOD.LBL_TOTAL}</b></td>
-					<td  align="left">{$USER_COUNT.user} {$CMOD.LBL_USERS}</td>	
-				</tr>	
-				<tr><td  align="right"><b>{$CMOD.LBL_ADMIN} {$CMOD.LBL_COLON}</b></td>
-					<td  align="left">{$USER_COUNT.admin} {$CMOD.LBL_USERS}</td>	
-				</tr>	
-				<tr><td  align="right"><b>{$CMOD.LBL_OTHERS}</b></td>
-					<td  align="left">{$USER_COUNT.nonadmin} {$CMOD.LBL_USERS}</td>
-				</tr>	
-			</table>
-	    </div>
-	</td>
-	</tr>
+	
+<table border=0 cellspacing=0 cellpadding=5 width=100% class="tableHeading">
+<tr>
+	<td class="big"><strong>{$MOD.LBL_USERS_LIST}</strong></td>
+	<td class="small" align=right>{$CMOD.LBL_TOTAL} {$USER_COUNT.user} {$MOD.LBL_USERS} ({$USER_COUNT.admin} {$CMOD.LBL_ADMINS}, {$USER_COUNT.nonadmin} {$CMOD.LBL_STD_USERS})</td>
+</tr>
+</table>
+					
+<table border=0 cellspacing=0 cellpadding=5 width=100% class="listTableTopButtons">
+<tr>
+	<td class=small align=right><input title="{$CMOD.LBL_NEW_USER_BUTTON_TITLE}" accessyKey="{$CMOD.LBL_NEW_USER_BUTTON_KEY}" type="submit" name="button" value="{$CMOD.LBL_NEW_USER_BUTTON_LABEL}" class="crmButton create small"></td>
+</tr>
+</table>
+						
+<table border=0 cellspacing=0 cellpadding=5 width=100% class="listTable">
+<tr>
+	{foreach item=header from=$LIST_HEADER} 
+		<td class="colHeader small" valign=top>{$header}</td>
+	{/foreach}
+</tr>
+	{foreach name=userlist item=listvalues from=$LIST_ENTRIES}
+<tr>
+	<td class="listTableRow small" valign=top>{$smarty.foreach.userlist.iteration}</td>
+	<td class="listTableRow small" valign=top>{$listvalues.7}</td>
+	<td class="listTableRow small" valign=top><b>{$listvalues.0}</b><br>{$listvalues.3} <a> (</a>{$listvalues.1})</td>
+	<td class="listTableRow small" valign=top>{$listvalues.2}</td>
+	<td class="listTableRow small" valign=top>{$listvalues.6}</td>
+	<td class="listTableRow small" valign=top>{$listvalues.4}</td>
+	{if $listvalues.5 eq 'Active'}
+	<td class="listTableRow small active" valign=top>{$listvalues.5}</td>
+	{else}
+	<td class="listTableRow small inactive" valign=top>{$listvalues.5}</td>
+	{/if}	
+
+</tr>
+	{/foreach}
+</table>
+<table border=0 cellspacing=0 cellpadding=5 width=100% >
+	<tr><td class="small" nowrap align=right><a href="#top">{$MOD.LBL_SCROLL}</a></td></tr>
 </table>
 





More information about the vtigercrm-commits mailing list