[Vtigercrm-commits] [vtiger-commits] r5515 - in /vtigercrm/trunk/Smarty/templates: EditProfile.tpl GroupDetailview.tpl GroupEditView.tpl ListGroup.tpl
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Apr 27 18:59:12 EDT 2006
Author: don
Date: Thu Apr 27 16:59:06 2006
New Revision: 5515
Log:
Modified the UI
Modified:
vtigercrm/trunk/Smarty/templates/EditProfile.tpl
vtigercrm/trunk/Smarty/templates/GroupDetailview.tpl
vtigercrm/trunk/Smarty/templates/GroupEditView.tpl
vtigercrm/trunk/Smarty/templates/ListGroup.tpl
Modified: vtigercrm/trunk/Smarty/templates/EditProfile.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/EditProfile.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/EditProfile.tpl Thu Apr 27 16:59:06 2006
@@ -1,461 +1,480 @@
-<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">
-
-<table width="100%" border="0" cellpadding="0" cellspacing="0" height="100%">
-<tr>
-<td class="showPanelBg" valign="top" width="100%" colspan="3" style="padding-left:20px; "><br />
-<span class="lvtHeaderText"><b><a href="index.php?module=Settings&action=index&parenttab=Settings">{$MOD.LBL_SETTINGS} </a> > {$MOD.LBL_USER_MANAGEMENT} > {$MOD.LBL_PROFILES}</b></span>
-<hr noshade="noshade" size="1" />
-</td>
-</tr>
-<tr>
-<td width="75%" style="padding-left:20px;" valign="top">
-
- <table width="75%" border="0" cellpadding="5" cellspacing="0" align="center">
- <tr>
- <td colspan="2" class="calDayHourCell">Details of Profile </td>
-
- </tr>
- <tr>
- <td>
- <table border="0" cellspacing="0" cellpadding="0" width="100%">
- <tr>
- <td><table border="0" cellspacing="0" cellpadding="0" width="100%">
- <tr class="small">
- <td><img src="{$IMAGE_PATH}prvPrfTopLeft.gif" /></td>
- <td class="prvPrfTopBg" width="100%" ></td>
-
- <td><img src="{$IMAGE_PATH}prvPrfTopRight.gif" /></td>
- </tr>
- </table>
- <form action="index.php" method="post" name="new" id="form">
- <input type="hidden" name="module" value="Users">
- <input type="hidden" name="parenttab" value="Settings">
- <input type="hidden" name="action" value="{$ACTION}">
- <input type="hidden" name="mode" value="{$MODE}">
- <input type="hidden" name="profileid" value="{$PROFILEID}">
- <input type="hidden" name="profile_name" value="{$PROFILE_NAME}">
- <input type="hidden" name="profile_description" value="{$PROFILE_DESCRIPTION}">
- <input type="hidden" name="return_action" value="{$RETURN_ACTION}">
-
- <table border="0" cellspacing="0" cellpadding= "0" width="100%" class="prvPrfOutline">
- <tr>
- <td>
- <!-- tabs -->
- <table border="0" cellspacing="0" cellpadding="5" width="100%" class="small">
- <tr>
- <td width="20%" id="prvPrfTab1" class="prvPrfSelectedTab" align="center" style="height:31px;" onClick="toggleshowhide('global_privileges','prvPrfTab1');">Global Privileges</td>
- <td width="20%" id="prvPrfTab2" class="prvPrfUnSelectedTab" align="center" onClick="toggleshowhide('tab_privileges','prvPrfTab2');">Tab Privileges</td>
- <td width="20%" id="prvPrfTab3" class="prvPrfUnSelectedTab" align="center" onClick="toggleshowhide('standard_privileges','prvPrfTab3');">Standard Privileges</td>
- <td width="20%" id="prvPrfTab4" class="prvPrfUnSelectedTab" align="center" onClick="toggleshowhide('field_privileges','prvPrfTab4');">Field Privileges</td>
- <td width="20%" id="prvPrfTab5" class="prvPrfUnSelectedTab" align="center" onClick="toggleshowhide('utility_privileges','prvPrfTab5');">Utilities</td>
- </tr>
- </table>
- <div id="global_privileges" style="display:block;">
- <!-- Headers -->
- <table border="0" cellspacing="0" cellpadding="5" width="100%" class="prvPrfBgImgGlobal">
- <tr>
- <td>
- <table border="0" cellspacing="0" cellpadding="5" width="100%" class="small">
- <tr>
- <td><!-- Module name heading -->
- <table border="0" cellspacing="0" cellpadding="2" class="small">
- <tr>
- <td valign="top"><img src="{$IMAGE_PATH}prvPrfHdrArrow.gif"/> </td>
-
- <td class="prvPrfBigText"><b> Global Privileges for "{$PROFILE_NAME}"</b> <br />
- <font class="small">Select the options below to change global privileges </font> </td>
- <td class="small" style="padding-left:10px" align="right"></td>
- </tr>
- </table></td>
- <td align="right" valign="bottom"><font class="small">2 enabled, 0 disabled</font> </td>
-
- </tr>
- </table>
- <!-- privilege lists -->
- <table border="0" cellspacing="0" cellpadding="0" width="100%" >
- <tr>
- <td align="center" style="height:10px"><img src="{$IMAGE_PATH}prvPrfLine.gif" style="width:100%;height:1px" /></td>
- </tr>
- </table>
- <table border="0" cellspacing="0" cellpadding="10" width="100%">
- <tr>
- <td >
- <table border="0" cellspacing="0" cellpadding="5" width="90%" class="small" align="center">
- <tr>
- <td class="prvPrfTexture" style="width:20px"> </td>
- <td width="97%" valign="top">
- <table border="0" cellspacing="0" cellpadding="2" width="100%" class="small">
- <tr id="gva">
- <td valign="top">{$GLOBAL_PRIV.0}</td>
- <td ><b>View all</b> </td>
- </tr>
- <tr >
- <td valign="top"></td>
- <td width="100%" >Allows "{$PROFILE_NAME}" to view all information / modules of vtiger CRM</td>
- </tr>
- <tr>
- <td> </td>
- </tr>
- <tr>
- <td valign="top">{$GLOBAL_PRIV.1}</td>
- <td ><b>Edit all</b> </td>
- </tr>
- <tr>
- <td valign="top"></td>
- <td > Allows "{$PROFILE_NAME}" to edit all information / modules of vtiger CRM</td>
- </tr>
- </table>
- </td>
- </tr>
- </table></td>
- </tr>
- </table></td>
- </tr>
- </table>
- </div>
-
- <div id="standard_privileges" style="display:none;">
- <table border=0 cellspacing=0 cellpadding=5 width=100% >
- <tr>
- <td>
- <table border=0 cellspacing=0 cellpadding=5 width=100% class=small>
- <tr>
- <td>
- <!-- Module name heading -->
- <table border=0 cellspacing=0 cellpadding=2 class=small>
- <tr>
- <td valign=top >
- <img src="{$IMAGE_PATH}prvPrfHdrArrow.gif">
- </td>
- <td class="prvPrfBigText">
- <b> Standard Privileges for "{$PROFILE_NAME}"</b> <br>
- <font class=small>Select the standard actions to be permitted </font>
- </td>
- </tr>
- </table>
- </td>
- <td align=right valign=bottom>
- &nsbp;
- </td>
- </tr>
- </table>
- <!-- privilege lists -->
- <table border=0 cellspacing=0 cellpadding=0 width=100% >
- <tr>
- <td align=center style="height:10px"><img src="{$IMAGE_PATH}prvPrfLine.gif" style="width:100%;height:1px"></td>
- </tr>
- </table>
- <table border=0 cellspacing=0 cellpadding=10 width=100%>
- <tr>
- <td >
- <table border=0 cellspacing=0 cellpadding=5 width=90% class=small align=center >
- <tr>
- <td class="prvPrfTexture" style="width:20px"> </td>
- <td width=97% valign=top onMouseOver="this.className='prvPrfHoverOn'" onMouseOut="this.className='prvPrfHoverOff'" >
- <table border=0 cellspacing=0 cellpadding=5 width=100% class=small>
-
- <tr>
- <td>Entity</td>
- <td>Create/Edit</td>
- <td>Delete</td>
- <td>View</td>
- </tr>
-
- {foreach item=value from=$STANDARD_PRIV}
- <tr>
- {foreach item=element from=$value}
- <td>{$element}</td>
- {/foreach}
- </tr>
- {/foreach}
-
- </table>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </div>
-
- <div id="tab_privileges" style="display:none;">
- <table border=0 cellspacing=0 cellpadding=5 width=100% >
- <tr>
- <td>
- <table border=0 cellspacing=0 cellpadding=5 width=100% class=small>
- <tr>
- <td>
- <!-- Module name heading -->
- <table border=0 cellspacing=0 cellpadding=2 class=small>
- <tr>
- <td valign=top >
- <img src="{$IMAGE_PATH}prvPrfHdrArrow.gif">
- </td>
- <td class="prvPrfBigText">
- <b> Tab Privileges for "{$PROFILE_NAME}"</b> <br>
- <font class=small>Select the tabs/modules to be permitted </font>
- </td>
- </tr>
- </table>
- </td>
- <td align=right valign=bottom>
- </td>
- </tr>
- </table>
- <!-- privilege lists -->
- <table border=0 cellspacing=0 cellpadding=0 width=100% >
- <tr>
- <td align=center style="height:10px"><img src="{$IMAGE_PATH}prvPrfLine.gif" style="width:100%;height:1px"></td>
- </tr>
- </table>
- <table border=0 cellspacing=0 cellpadding=10 width=100%>
- <tr>
- <td >
- <!-- Home tab -->
- <table border=0 cellspacing=0 cellpadding=5 width=90% class=small align=center >
- <tr>
- <td class="prvPrfTexture" style="width:20px"> </td>
- <td width=97% valign=top onMouseOver="this.className='prvPrfHoverOn'" onMouseOut="this.className='prvPrfHoverOff'" >
- <table border=0 cellspacing=0 cellpadding=5 width=100% class=small>
-
-
- {foreach item=value from=$TAB_PRIV}
- <tr>
- {foreach item=element from=$value}
- <td width=35%>{$element.0}</td>
- <td width=15%>{$element.1}</td>
- {/foreach}
- </tr>
- {/foreach}
-
- </table>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </td>
- </tr>
-
- </table>
- </div>
-
- <div id="utility_privileges" style="display:none;">
- <table border=0 cellspacing=0 cellpadding=5 width=100% >
- <tr>
- <td>
- <table border=0 cellspacing=0 cellpadding=5 width=100% class=small>
- <tr>
- <td>
- <!-- Module name heading -->
- <table border=0 cellspacing=0 cellpadding=2 class=small>
- <tr>
- <td valign=top >
- <img src="{$IMAGE_PATH}prvPrfHdrArrow.gif">
- </td>
- <td class="prvPrfBigText">
- <b> Utility Privileges for "{$PROFILE_NAME}"</b> <br>
- <font class=small>Select the utility actions to be permitted </font>
- </td>
- </tr>
- </table>
- </td>
- <td align=right valign=bottom>
-
- </td>
- </tr>
- </table>
- <!-- privilege lists -->
- <table border=0 cellspacing=0 cellpadding=0 width=100% >
- <tr>
- <td align=center style="height:10px"><img src="{$IMAGE_PATH}prvPrfLine.gif" style="width:100%;height:1px"></td>
- </tr>
- </table>
- <table border=0 cellspacing=0 cellpadding=10 width=100%>
- <tr>
- <td >
- <!-- Home tab -->
- <table border="0" cellspacing="0" cellpadding="5" width="90%" class="small" align="center" >
-
- {foreach key=module item=value from=$UTILITIES_PRIV}
- <tr>
- <td colspan="4" style="border-bottom:1px solid #efefef"><b>{$module}</b></td>
- </tr>
- <tr>
- <td class="prvPrfTexture" style="width:20px"> </td>
- <td width="97%" valign="top" onmouseover="this.className='prvPrfHoverOn'" onmouseout="this.className='prvPrfHoverOff'" >
- <table border="0" cellspacing="0" cellpadding="5" width="100%" class="small">
- {foreach item=element from=$value}
- <tr>
- <td width=25%>{$element.0.0}</td>
- <td width=25%>{$element.0.1}</td>
- <td width=25%>{$element.1.0}</td>
- <td width=25%>{$element.1.1}</td>
- {/foreach}
- </tr>
- </table>
- </td>
- </tr>
-
- {/foreach}
- </table>
- </td>
- </tr>
- </table>
- </td>
- </tr>
-
- </table>
-
- </div>
-
-
- <div id="field_privileges" style="display:none;">
- <table border="0" cellspacing="0" cellpadding="5" width="100%" >
- <tr>
- <td><table border="0" cellspacing="0" cellpadding="5" width="100%" class="small">
- <tr>
- <td><!-- Module name heading -->
- <table border="0" cellspacing="0" cellpadding="2" class="small">
- <tr>
- <td valign="top" ><img src="{$IMAGE_PATH}prvPrfHdrArrow.gif" /> </td>
-
- <td class="prvPrfBigText"><b> Field Privileges for "{$PROFILE_NAME}"</b> <br />
- <font class="small">Select the fields to be permitted </font> </td>
- </tr>
- </table></td>
- <td align="right" valign="bottom">
- </td>
- </tr>
- </table>
- <!-- privilege lists -->
- <table border="0" cellspacing="0" cellpadding="0" width="100%" >
- <tr>
- <td align="center" style="height:10px"><img src="{$IMAGE_PATH}prvPrfLine.gif" style="width:100%;height:1px" /></td>
- </tr>
-
- </table>
- <table border="0" cellspacing="0" cellpadding="10" width="100%">
- <tr>
- <td >
- <table border="0" cellspacing="0" cellpadding="5" width="100%" class="small">
- <tr>
- <td>
- <select name="module_list" onchange="showmoduleperm(this)">
- {foreach key=module item=label from=$PRI_FIELD_LIST}
- <option value="{$label}">{$label}</option>
- {/foreach}
- </td>
- <td width=50%> </td>
- </tr>
- <tr>
- <td colspan=2>
-
- {foreach key=module item=value from=$FIELD_PRIVILEGES}
- {if $module eq 'Leads'}
- <div id="field_{$module}" style="display:block;">
- {else}
- <div id="field_{$module}" style="display:none;">
- {/if}
- <table border="0" cellspacing="0" cellpadding="5" width="100%" class="small">
- {foreach item=row_value from=$value}
- <tr>
- {foreach item=element from=$row_value}
- <td>{$element.0}</td>
- <td>{$element.1}</td>
- {/foreach}
- </tr>
- {/foreach}
- </table>
- </div>
- {/foreach}
-
- </td>
- </tr>
- </table></td>
- </tr>
- </table></td>
- </tr>
- </table>
- </div>
-
- </td>
-
- </tr>
- </table>
- <table border="0" cellspacing="0" cellpadding="0" width="100%" class="small">
- <tr>
- <td><img src="{$IMAGE_PATH}prvPrfBottomLeft.gif" /></td>
- <td class="prvPrfBottomBg" width="100%"></td>
- <td><img src="{$IMAGE_PATH}prvPrfBottomRight.gif" /></td>
- </tr>
- </table></td>
-
- </tr>
- </table></td>
- </tr>
- <tr><td colspan="2" style="border-bottom:1px dashed #CCCCCC;"> </td></tr>
- <tr><td colspan="2"> </td></tr>
- <tr>
- <td colspan="2" align="center">
- <input type="button" value=" ‹ Back " name="back" onclick="window.history.back()" />
- {if $ACTION eq 'SaveProfile'}
- <input type="submit" value=" Finish " name="save"/>
- {else}
- <input type="submit" value=" Save " name="save"/>
- {/if}
- <input type="button" value=" Cancel " name="Cancel" onClick="window.history.back();"/>
-
- </td>
- </tr>
- <tr><td colspan="2"> </td></tr>
- <tr><td colspan="2" style="border-top:1px solid #CCCCCC;"> </td></tr>
- </table>
-
-</td>
-<td width="1%" style="border-right:1px dotted #CCCCCC;"> </td>
-</tr>
-</table>
-</td>
-</tr>
-</table>
-</td>
-</tr>
-</table>
- {include file='SettingsSubMenu.tpl'}
-
-<script language="javascript" type="text/javascript">
-var Selected_div= 'global_privileges';
-divarray = new Array('global_privileges','tab_privileges','standard_privileges','field_privileges','utility_privileges');
-tabarray = new Array('prvPrfTab1','prvPrfTab2','prvPrfTab3','prvPrfTab4','prvPrfTab5');
-var defaultmodule = 'field_Leads';
-function toggleshowhide(currentselecteddiv,currentselectedtab)
-{ldelim}
- for(i = 0; i < divarray.length ;i++)
- {ldelim}
- if(Selected_div == divarray[i])
- break;
- {rdelim}
- hide (Selected_div);
- document.getElementById(tabarray[i]).className="prvPrfUnSelectedTab";
- show (currentselecteddiv);
- document.getElementById(currentselectedtab).className="prvPrfSelectedTab";
- Selected_div = currentselecteddiv;
-{rdelim}
-function showmoduleperm(selectmodule_view)
-{ldelim}
- hide(defaultmodule);
- defaultmodule='field_'+selectmodule_view.options[selectmodule_view.options.selectedIndex].value;
- show(defaultmodule);
-{rdelim}
-
-</script>
+<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">
+ <table width="100%" border="0" cellpadding="0" cellspacing="0" height="100%">
+ <tr>
+ <td class="showPanelBg" valign="top" width="100%" colspan="3" style="padding-left:20px; "><br />
+ <span class="lvtHeaderText"><b>
+ <a href="index.php?module=Settings&action=index&parenttab=Settings">{$MOD.LBL_SETTINGS} </a>
+ > {$MOD.LBL_USER_MANAGEMENT} > {$MOD.LBL_PROFILES}</b></span>
+ <hr noshade="noshade" size="1" />
+ </td>
+ </tr>
+ <tr>
+ {if $MODE neq "edit"}
+ <td valign="top" class="leadTable" >
+ <table width="95%" border="0" cellpadding="5" cellspacing="0" align="center">
+
+ <tr>
+ <td width="5%" style="border-bottom:1px dashed #CCCCCC;">
+ <img src="{$IMAGE_PATH}profile.gif" align="absmiddle">
+ </td>
+ <td style="border-bottom:1px dashed #CCCCCC;">
+ <span class="genHeaderGrayBig">Profile Privileges</span><br>
+ <span class="genHeaderSmall">Step 3 Of 3</span>
+ </td>
+ </tr>
+ {else}
+ <td valign="top" >
+ <table width="75%" border="0" cellpadding="5" cellspacing="0" align="center">
+
+ <tr>
+ <td width="5%" style="border-bottom:1px dashed #CCCCCC;">
+ <img src="{$IMAGE_PATH}profile.gif" align="absmiddle">
+ </td>
+ <td style="border-bottom:1px dashed #CCCCCC;">
+ <span class="genHeaderGrayBig">Profile Privileges</span><br>
+ <span class="genHeaderSmall">{$PROFILE_NAME}</span>
+ </td>
+ </tr>
+ {/if}
+ <tr>
+ <td colspan="2">
+ <table border="0" cellspacing="0" cellpadding="0" width="100%">
+ <tr>
+ <td>
+ <table border="0" cellspacing="0" cellpadding="0" width="100%">
+ <tr class="small">
+ <td><img src="{$IMAGE_PATH}prvPrfTopLeft.gif" /></td>
+ <td class="prvPrfTopBg" width="100%" ></td>
+ <td><img src="{$IMAGE_PATH}prvPrfTopRight.gif" /></td>
+ </tr>
+ </table>
+ <form action="index.php" method="post" name="new" id="form">
+ <input type="hidden" name="module" value="Users">
+ <input type="hidden" name="parenttab" value="Settings">
+ <input type="hidden" name="action" value="{$ACTION}">
+ <input type="hidden" name="mode" value="{$MODE}">
+ <input type="hidden" name="profileid" value="{$PROFILEID}">
+ <input type="hidden" name="profile_name" value="{$PROFILE_NAME}">
+ <input type="hidden" name="profile_description" value="{$PROFILE_DESCRIPTION}">
+ <input type="hidden" name="parent_profile" value="{$PARENTPROFILEID}">
+ <input type="hidden" name="radio_button" value="{$RADIOBUTTON}">
+ <input type="hidden" name="return_action" value="{$RETURN_ACTION}">
+ <table border="0" cellspacing="0" cellpadding= "0" width="100%" class="prvPrfOutline">
+ <tr>
+ <td>
+<!-- tabs -->
+ <table border="0" cellspacing="0" cellpadding="5" width="100%" class="small">
+ <tr>
+ <td width="20%" id="prvPrfTab1" class="prvPrfSelectedTab" align="center" style="height:31px;" onClick="toggleshowhide('global_privileges','prvPrfTab1');">Global Privileges</td>
+ <td width="20%" id="prvPrfTab2" class="prvPrfUnSelectedTab" align="center" onClick="toggleshowhide('tab_privileges','prvPrfTab2');">Tab Privileges</td>
+ <td width="20%" id="prvPrfTab3" class="prvPrfUnSelectedTab" align="center" onClick="toggleshowhide('standard_privileges','prvPrfTab3');">Standard Privileges</td>
+ <td width="20%" id="prvPrfTab4" class="prvPrfUnSelectedTab" align="center" onClick="toggleshowhide('field_privileges','prvPrfTab4');">Field Privileges</td>
+ <td width="20%" id="prvPrfTab5" class="prvPrfUnSelectedTab" align="center" onClick="toggleshowhide('utility_privileges','prvPrfTab5');">Utilities</td>
+ </tr>
+ </table>
+ <div id="global_privileges" style="display:block;">
+ <!-- Headers -->
+ <table border="0" cellspacing="0" cellpadding="5" width="100%" class="prvPrfBgImgGlobal">
+ <tr>
+ <td>
+ <table border="0" cellspacing="0" cellpadding="5" width="100%" class="small">
+ <tr>
+ <td><!-- Module name heading -->
+ <table border="0" cellspacing="0" cellpadding="2" class="small">
+ <tr>
+ <td valign="top"><img src="{$IMAGE_PATH}prvPrfHdrArrow.gif"/> </td>
+ <td class="prvPrfBigText"><b> Global Privileges for "{$PROFILE_NAME}"</b> <br />
+ <font class="small">Select the options below to change global privileges </font> </td>
+ <td class="small" style="padding-left:10px" align="right"></td>
+ </tr>
+ </table>
+ </td>
+ <td align="right" valign="bottom"> </td>
+ </tr>
+ </table>
+<!-- privilege lists -->
+ <table border="0" cellspacing="0" cellpadding="0" width="100%" >
+ <tr>
+ <td align="center" style="height:10px"><img src="{$IMAGE_PATH}prvPrfLine.gif" style="width:100%;height:1px" /></td>
+ </tr>
+ </table>
+ <table border="0" cellspacing="0" cellpadding="10" width="100%">
+ <tr>
+ <td >
+ <table border="0" cellspacing="0" cellpadding="5" width="90%" class="small" align="center">
+ <tr>
+ <td class="prvPrfTexture" style="width:20px"> </td>
+ <td width="97%" valign="top">
+ <table border="0" cellspacing="0" cellpadding="2" width="100%" class="small">
+ <tr id="gva">
+ <td valign="top">{$GLOBAL_PRIV.0}</td>
+ <td ><b>View all</b> </td>
+ </tr>
+ <tr >
+ <td valign="top"></td>
+<td width="100%" >Allows "{$PROFILE_NAME}" to view all information / modules of vtiger CRM</td>
+</tr>
+<tr>
+<td> </td>
+</tr>
+<tr>
+<td valign="top">{$GLOBAL_PRIV.1}</td>
+<td ><b>Edit all</b> </td>
+</tr>
+<tr>
+<td valign="top"></td>
+<td > Allows "{$PROFILE_NAME}" to edit all information / modules of vtiger CRM</td>
+</tr>
+</table>
+</td>
+</tr>
+</table></td>
+</tr>
+</table></td>
+</tr>
+</table>
+</div>
+
+<div id="standard_privileges" style="display:none;">
+<table border=0 cellspacing=0 cellpadding=5 width=100% >
+<tr>
+<td>
+<table border=0 cellspacing=0 cellpadding=5 width=100% class=small>
+<tr>
+<td>
+<!-- Module name heading -->
+<table border=0 cellspacing=0 cellpadding=2 class=small>
+<tr>
+<td valign=top >
+<img src="{$IMAGE_PATH}prvPrfHdrArrow.gif">
+</td>
+<td class="prvPrfBigText">
+<b> Standard Privileges for "{$PROFILE_NAME}"</b> <br>
+<font class=small>Select the standard actions to be permitted </font>
+</td>
+</tr>
+</table>
+</td>
+<td align=right valign=bottom>
+
+</td>
+</tr>
+</table>
+<!-- privilege lists -->
+<table border=0 cellspacing=0 cellpadding=0 width=100% >
+<tr>
+<td align=center style="height:10px"><img src="{$IMAGE_PATH}prvPrfLine.gif" style="width:100%;height:1px"></td>
+</tr>
+</table>
+<table border=0 cellspacing=0 cellpadding=10 width=100%>
+<tr>
+<td >
+<table border=0 cellspacing=0 cellpadding=5 width=90% class=small align=center >
+<tr>
+<td class="prvPrfTexture" style="width:20px"> </td>
+<td width=97% valign=top onMouseOver="this.className='prvPrfHoverOn'" onMouseOut="this.className='prvPrfHoverOff'" >
+<table border=0 cellspacing=0 cellpadding=5 width=100% class=small>
+
+<tr>
+<td>Entity</td>
+<td>Create/Edit</td>
+<td>Delete</td>
+<td>View</td>
+</tr>
+
+{foreach item=value from=$STANDARD_PRIV}
+<tr>
+{foreach item=element from=$value}
+<td>{$element}</td>
+{/foreach}
+</tr>
+{/foreach}
+
+</table>
+</td>
+</tr>
+</table>
+</td>
+</tr>
+</table>
+</td>
+</tr>
+</table>
+</div>
+
+<div id="tab_privileges" style="display:none;">
+<table border=0 cellspacing=0 cellpadding=5 width=100% >
+<tr>
+<td>
+<table border=0 cellspacing=0 cellpadding=5 width=100% class=small>
+<tr>
+<td>
+<!-- Module name heading -->
+<table border=0 cellspacing=0 cellpadding=2 class=small>
+<tr>
+<td valign=top >
+<img src="{$IMAGE_PATH}prvPrfHdrArrow.gif">
+</td>
+<td class="prvPrfBigText">
+<b> Tab Privileges for "{$PROFILE_NAME}"</b> <br>
+<font class=small>Select the tabs/modules to be permitted </font>
+</td>
+</tr>
+</table>
+</td>
+<td align=right valign=bottom>
+</td>
+</tr>
+</table>
+<!-- privilege lists -->
+<table border=0 cellspacing=0 cellpadding=0 width=100% >
+<tr>
+<td align=center style="height:10px"><img src="{$IMAGE_PATH}prvPrfLine.gif" style="width:100%;height:1px"></td>
+</tr>
+</table>
+<table border=0 cellspacing=0 cellpadding=10 width=100%>
+<tr>
+<td >
+<!-- Home tab -->
+<table border=0 cellspacing=0 cellpadding=5 width=90% class=small align=center >
+<tr>
+<td class="prvPrfTexture" style="width:20px"> </td>
+<td width=97% valign=top onMouseOver="this.className='prvPrfHoverOn'" onMouseOut="this.className='prvPrfHoverOff'" >
+<table border=0 cellspacing=0 cellpadding=5 width=100% class=small>
+
+
+{foreach item=value from=$TAB_PRIV}
+<tr>
+{foreach item=element from=$value}
+<td width=35%>{$element.0}</td>
+<td width=15%>{$element.1}</td>
+{/foreach}
+</tr>
+{/foreach}
+
+</table>
+</td>
+</tr>
+</table>
+</td>
+</tr>
+</table>
+</td>
+</tr>
+
+</table>
+</div>
+
+<div id="utility_privileges" style="display:none;">
+<table border=0 cellspacing=0 cellpadding=5 width=100% >
+<tr>
+<td>
+<table border=0 cellspacing=0 cellpadding=5 width=100% class=small>
+<tr>
+<td>
+<!-- Module name heading -->
+<table border=0 cellspacing=0 cellpadding=2 class=small>
+<tr>
+<td valign=top >
+<img src="{$IMAGE_PATH}prvPrfHdrArrow.gif">
+</td>
+<td class="prvPrfBigText">
+<b> Utility Privileges for "{$PROFILE_NAME}"</b> <br>
+<font class=small>Select the utility actions to be permitted </font>
+</td>
+</tr>
+</table>
+</td>
+<td align=right valign=bottom>
+
+</td>
+</tr>
+</table>
+<!-- privilege lists -->
+<table border=0 cellspacing=0 cellpadding=0 width=100% >
+<tr>
+<td align=center style="height:10px"><img src="{$IMAGE_PATH}prvPrfLine.gif" style="width:100%;height:1px"></td>
+</tr>
+</table>
+<table border=0 cellspacing=0 cellpadding=10 width=100%>
+<tr>
+<td >
+<!-- Home tab -->
+<table border="0" cellspacing="0" cellpadding="5" width="90%" class="small" align="center" >
+
+{foreach key=module item=value from=$UTILITIES_PRIV}
+<tr>
+<td colspan="4" style="border-bottom:1px solid #efefef"><b>{$module}</b></td>
+</tr>
+<tr>
+<td class="prvPrfTexture" style="width:20px"> </td>
+<td width="97%" valign="top" onmouseover="this.className='prvPrfHoverOn'" onmouseout="this.className='prvPrfHoverOff'" >
+<table border="0" cellspacing="0" cellpadding="5" width="100%" class="small">
+{foreach item=element from=$value}
+<tr>
+<td width=25%>{$element.0.0}</td>
+<td width=25%>{$element.0.1}</td>
+<td width=25%>{$element.1.0}</td>
+<td width=25%>{$element.1.1}</td>
+{/foreach}
+</tr>
+</table>
+</td>
+</tr>
+
+{/foreach}
+</table>
+</td>
+</tr>
+</table>
+</td>
+</tr>
+
+</table>
+
+</div>
+
+
+<div id="field_privileges" style="display:none;">
+<table border="0" cellspacing="0" cellpadding="5" width="100%" >
+<tr>
+<td><table border="0" cellspacing="0" cellpadding="5" width="100%" class="small">
+<tr>
+<td><!-- Module name heading -->
+<table border="0" cellspacing="0" cellpadding="2" class="small">
+<tr>
+<td valign="top" ><img src="{$IMAGE_PATH}prvPrfHdrArrow.gif" /> </td>
+
+<td class="prvPrfBigText"><b> Field Privileges for "{$PROFILE_NAME}"</b> <br />
+<font class="small">Select the fields to be permitted </font> </td>
+</tr>
+</table></td>
+<td align="right" valign="bottom">
+</td>
+</tr>
+</table>
+<!-- privilege lists -->
+<table border="0" cellspacing="0" cellpadding="0" width="100%" >
+<tr>
+<td align="center" style="height:10px"><img src="{$IMAGE_PATH}prvPrfLine.gif" style="width:100%;height:1px" /></td>
+</tr>
+
+</table>
+<table border="0" cellspacing="0" cellpadding="10" width="100%">
+<tr>
+<td >
+<table border="0" cellspacing="0" cellpadding="5" width="100%" class="small">
+<tr>
+<td>
+<select name="module_list" onchange="showmoduleperm(this)">
+{foreach key=module item=label from=$PRI_FIELD_LIST}
+<option value="{$label}">{$label}</option>
+{/foreach}
+</td>
+<td width=50%> </td>
+</tr>
+<tr>
+<td colspan=2>
+
+{foreach key=module item=value from=$FIELD_PRIVILEGES}
+{if $module eq 'Leads'}
+<div id="field_{$module}" style="display:block;">
+{else}
+<div id="field_{$module}" style="display:none;">
+{/if}
+<table border="0" cellspacing="0" cellpadding="5" width="100%" class="small">
+{foreach item=row_value from=$value}
+<tr>
+{foreach item=element from=$row_value}
+<td>{$element.0}</td>
+<td>{$element.1}</td>
+{/foreach}
+</tr>
+{/foreach}
+</table>
+</div>
+{/foreach}
+
+</td>
+</tr>
+</table></td>
+</tr>
+</table></td>
+</tr>
+</table>
+</div>
+
+ </td>
+ </tr>
+ </table>
+ <table border="0" cellspacing="0" cellpadding="0" width="100%" class="small">
+ <tr>
+ <td><img src="{$IMAGE_PATH}prvPrfBottomLeft.gif" /></td>
+ <td class="prvPrfBottomBg" width="100%"></td>
+ <td><img src="{$IMAGE_PATH}prvPrfBottomRight.gif" /></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr><td colspan="2" style="border-bottom:1px dashed #CCCCCC;"> </td></tr>
+ <tr>
+ <td colspan="2" align="center">
+ {if $MODE neq "edit"}
+ <input type="submit" value=" ‹ Back " name="back" onclick="this.form.action.value='CreateProfile1'" class="classBtn" />
+ {/if}
+ {if $ACTION eq 'SaveProfile'}
+ <input type="submit" value=" Finish " name="save" class="classBtn"/>
+ {else}
+ <input type="submit" value=" Save " name="save" class="classBtn"/>
+ {/if}
+ <input type="button" value=" Cancel " name="Cancel" class="classBtn"onClick="window.history.back();" />
+ </td>
+ </tr>
+
+ </table></from>
+ </td>
+ <td width="1%" style="border-right:1px dotted #CCCCCC;"> </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+ {include file='SettingsSubMenu.tpl'}
+
+<script language="javascript" type="text/javascript">
+var Selected_div= 'global_privileges';
+divarray = new Array('global_privileges','tab_privileges','standard_privileges','field_privileges','utility_privileges');
+tabarray = new Array('prvPrfTab1','prvPrfTab2','prvPrfTab3','prvPrfTab4','prvPrfTab5');
+var defaultmodule = 'field_Leads';
+function toggleshowhide(currentselecteddiv,currentselectedtab)
+{ldelim}
+ for(i = 0; i < divarray.length ;i++)
+ {ldelim}
+ if(Selected_div == divarray[i])
+ break;
+ {rdelim}
+ hide (Selected_div);
+ document.getElementById(tabarray[i]).className="prvPrfUnSelectedTab";
+ show (currentselecteddiv);
+ document.getElementById(currentselectedtab).className="prvPrfSelectedTab";
+ Selected_div = currentselecteddiv;
+{rdelim}
+function showmoduleperm(selectmodule_view)
+{ldelim}
+ hide(defaultmodule);
+ defaultmodule='field_'+selectmodule_view.options[selectmodule_view.options.selectedIndex].value;
+ show(defaultmodule);
+{rdelim}
+
+</script>
Modified: vtigercrm/trunk/Smarty/templates/GroupDetailview.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/GroupDetailview.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/GroupDetailview.tpl Thu Apr 27 16:59:06 2006
@@ -1,92 +1,118 @@
-<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">
-
-<table width="100%" border="0" cellpadding="0" cellspacing="0" height="100%">
-<form action="index.php" method="post" name="new" id="form">
-<input type="hidden" name="module" value="Users">
-<input type="hidden" name="action" value="createnewgroup">
-<input type="hidden" name="groupId" value="{$GROUPID}">
-<input type="hidden" name="mode" value="edit">
-<input type="hidden" name="parenttab" value="Settings">
-<tr>
-<td class="showPanelBg" valign="top" width="100%" colspan="3" style="padding-left:20px; "><br/>
-<span class="lvtHeaderText"><b><a href="index.php?module=Settings&action=index&parenttab=Settings">{$MOD.LBL_SETTINGS} </a> > {$MOD.LBL_USER_MANAGEMENT} > {$CMOD.LBL_GROUP_MEMBERS_LIST}</b></span>
-<hr noshade="noshade" size="1" />
-</td>
-</tr>
-<tr>
-<td width="75%" style="padding-left:20px;" valign="top">
-
- <table align="center" border="0" cellpadding="5" cellspacing="0" width="75%">
- <tbody><tr><td colspan="2" style="border-bottom: 1px dashed rgb(204, 204, 204);"> </td></tr>
- <tr>
- <td style="padding-right: 10px;" align="center"></td>
- <td align="left">
- <input title="Back" accessKey="C" class="button" onclick="window.history.back();" type="button" name="New" value=" < Back " >
- <input value=" Edit " title="Edit" accessKey="E" class="button" type="submit" name="Edit" >
- <input value=" Delete " title="Delete" accessKey="D" class="button" type="button" name="Delete" onClick="deletegroup('{$GROUPID}','{$GROUP_NAME}')";>
- </td>
- </tr>
- <tr><td colspan="2" style="border-top: 1px dashed rgb(204, 204, 204);"> </td></tr>
- <tr>
- <td style="padding-right: 10px;" align="right" width="30%"><b>Group Name : </b></td>
- <td align="left" width="70%">{$GROUPINFO.0.groupname}</td>
- </tr>
- <tr>
-
- <td style="padding-right: 10px;" align="right"><b>Description : </b></td>
- <td>{$GROUPINFO.0.description}</td>
- </tr>
- <tr>
- <td style="padding-right: 10px;" align="right"> </td>
- <td> </td>
- </tr>
-
- <tr>
-
- <td style="border-bottom: 1px solid rgb(204, 204, 204); padding-right: 10px;" align="right" valign="top"><b>Member List : </b></td>
- <td style="border-bottom: 1px solid rgb(204, 204, 204); text-align: left;">
- <div style="overflow: auto; position: relative; left: 10px; top: 0px; width: 100%; height: 225px; text-align: left;">
-
- {foreach key=type item=details from=$GROUPINFO.1}
- {if $details.0 neq ''}
- <li><b style="margin: 0pt; padding: 0pt; font-weight: bold;">{$type}</b>
- <ul style="list-style-type: none;">
- {foreach item=element from=$details}
- <li><a href="index.php?module=Users&action={$element.memberaction}&{$element.actionparameter}={$element.memberid}">{$element.membername}</a></li>
- {/foreach}
- </ul>
- </li>
- {/if}
- {/foreach}
-
- </div>
- </td>
- </tr>
- </tbody></table>
-
-</td>
-<td width="1%" style="border-right:1px dotted #CCCCCC;"> </td>
-</tr>
-</table>
-</td>
-</tr>
-</table>
-</td>
-</tr>
-</table>
-<script>
-function deletegroup(id,groupname)
-{ldelim}
- if(confirm("Are you sure you want to delete the group "+groupname+" ?"))
- document.location.href="index.php?module=Users&action=DeleteGroup&groupId="+id;
- else
- return false;
-{rdelim}
-</script>
- {include file='SettingsSubMenu.tpl'}
-
+<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">
+ <form action="index.php" method="post" name="new" id="form">
+<input type="hidden" name="module" value="Users">
+<input type="hidden" name="action" value="createnewgroup">
+<input type="hidden" name="groupId" value="{$GROUPID}">
+<input type="hidden" name="mode" value="edit">
+<input type="hidden" name="parenttab" value="Settings">
+ <table width="100%" border="0" cellpadding="0" cellspacing="0" height="100%">
+ <tr>
+ <td class="showPanelBg" valign="top" width="95%" style="padding-left:20px; "><br />
+ <span class="lvtHeaderText"><b><a href="index.php?module=Settings&action=index&parenttab=Settings">{$MOD.LBL_SETTINGS} </a> > {$MOD.LBL_USER_MANAGEMENT} > {$CMOD.LBL_GROUP_MEMBERS_LIST}</b> </span>
+ <hr noshade="noshade" size="1" />
+ </td>
+ </tr>
+ <tr>
+ <td> </td>
+ </tr>
+ <tr>
+ <td width="95%" style="padding-left:20px;" valign="top"><table width="95%" cellpadding="5" cellspacing="0" class="leadTable" align="center">
+ <tr>
+ <td style="padding:5px;border-bottom:2px dotted #CCCCCC;" width="5%" ><img src="{$IMAGEPATH}groups.gif" width="48" height="48" align="absmiddle" /> </td>
+ <td style="padding:5px;border-bottom:2px dotted #AAAAAA;"><span class="genHeaderGrayBig">{$GROUPINFO.0.groupname} Group</span><br />
+ <span class="big">Detail view of {$GROUPINFO.0.groupname} Group</span> </td>
+ </tr>
+ <tr>
+ <td colspan="2"> </td>
+ </tr>
+ <tr>
+ <td colspan="2" ><table width="100%" cellpadding="5" cellspacing="0" border="0" >
+ <tr>
+ <td colspan="4" class="detailedViewHeader"><b>Group Details</b></td>
+ </tr>
+ <tr>
+ <td class="dvtCellLabel" width="5%"> </td>
+ <td class="dvtCellLabel" align="right" width="25%"><b>Group Name :</b></td>
+ <td class="dvtCellInfo" align="left" width="25%">{$GROUPINFO.0.groupname}</td>
+ <td class="dvtCellInfo" width="45%"> </td>
+ </tr>
+ <tr>
+ <td class="dvtCellLabel" width="5%"> </td>
+ <td class="dvtCellLabel" align="right"><b>Description :</b></td>
+ <td colspan="2" align="left" class="dvtCellInfo">{$GROUPINFO.0.description}</td>
+ </tr>
+ <tr>
+ <td colspan="4" class="dvtCellInfo"> </td>
+ </tr>
+ <tr>
+ <td colspan="4" class="detailedViewHeader"><b>Member List</b></td>
+ </tr>
+ <tr>
+ {foreach key=type item=details from=$GROUPINFO.1}
+ {if $details.0 neq ''}
+ <tr>
+ {if $type == "User"}
+ <td class="dvtCellLabel" valign="top" align="left" width="5%">
+ <img src="{$IMAGEPATH}user_icon.gif" align="absmiddle">
+ </td>
+ {/if}
+ {if $type == "Role" }
+ <td class="dvtCellLabel" valign="top" align="left" width="5%">
+ <img src="{$IMAGEPATH}roles_icon.gif" align="absmiddle">
+ </td>
+ {/if}
+ {if $type == "Role and Subordinates" }
+ <td class="dvtCellLabel" valign="top" align="left" width="5%">
+ <img src="{$IMAGEPATH}roles_icon.gif" align="absmiddle">
+ </td>
+ {/if}
+ {if $type == "Group" }
+ <td class="dvtCellLabel" valign="top" align="left" width="5%">
+ <img src="{$IMAGEPATH}groups_icon.gif" align="absmiddle">
+ </td>
+ {/if}
+ <td class="dvtCellLabel" valign="top" align="right" width="15%"><b>{$type} : </b></td>
+ <td class="dvtCellInfo" width="45%" colspan="2">
+ {foreach item=element from=$details}
+ <a href="index.php?module=Users&action={$element.memberaction}&{$element.actionparameter}={$element.memberid}">{$element.membername}</a><br />
+ {/foreach}
+ </td>
+ </tr>
+ {/if}
+ {/foreach}
+ <tr>
+ <td colspan="4" class="dvtCellInfo" align="center">
+ <!-- <input title="Back" accessKey="C" class="classBtn" onclick="window.history.back();" type="button" name="New" value=" < Back " > -->
+ <input value=" Edit " title="Edit" accessKey="E" class="classBtn" type="submit" name="Edit" >
+ <input value=" Delete " title="Delete" accessKey="D" class="classBtn" type="button" name="Delete" onClick="deletegroup('{$GROUPID}','{$GROUP_NAME}')";>
+ </td>
+ </tr>
+ </table></td>
+ </tr>
+ <tr>
+ <td colspan="2"> </td>
+ </tr>
+ </table></td>
+ </tr>
+ </table></td>
+</tr>
+</table></from>
+</td>
+</tr>
+</table>
+<script>
+function deletegroup(id,groupname)
+{ldelim}
+ if(confirm("Are you sure you want to delete the group "+groupname+" ?"))
+ document.location.href="index.php?module=Users&action=DeleteGroup&groupId="+id;
+ else
+ return false;
+{rdelim}
+</script>
+ {include file='SettingsSubMenu.tpl'}
+
Modified: vtigercrm/trunk/Smarty/templates/GroupEditView.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/GroupEditView.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/GroupEditView.tpl Thu Apr 27 16:59:06 2006
@@ -1,310 +1,307 @@
-<script language="JavaScript" type="text/javascript" src="include/js/menu.js"></script>
-<style type="text/css">@import url(themes/blue/style.css);</style>
-<script language="javascript">
-var constructedOptionValue;
-var constructedOptionName;
-
-var roleIdArr=new Array({$ROLEIDSTR});
-var roleNameArr=new Array({$ROLENAMESTR});
-var userIdArr=new Array({$USERIDSTR});
-var userNameArr=new Array({$USERNAMESTR});
-var grpIdArr=new Array({$GROUPIDSTR});
-var grpNameArr=new Array({$GROUPNAMESTR});
-
-function showOptions()
-{ldelim}
- var selectedOption=document.newGroupForm.memberType.value;
- //Completely clear the select box
- document.forms['newGroupForm'].availList.options.length = 0;
-
- if(selectedOption == 'groups')
- {ldelim}
- constructSelectOptions('groups',grpIdArr,grpNameArr);
- {rdelim}
- else if(selectedOption == 'roles')
- {ldelim}
- constructSelectOptions('roles',roleIdArr,roleNameArr);
- {rdelim}
- else if(selectedOption == 'rs')
- {ldelim}
-
- constructSelectOptions('rs',roleIdArr,roleNameArr);
- {rdelim}
- else if(selectedOption == 'users')
- {ldelim}
- constructSelectOptions('users',userIdArr,userNameArr);
- {rdelim}
-{rdelim}
-
-function constructSelectOptions(selectedMemberType,idArr,nameArr)
-{ldelim}
- var i;
- var findStr=document.newGroupForm.findStr.value;
- if(findStr.replace(/^\s+/g, '').replace(/\s+$/g, '').length !=0)
- {ldelim}
-
- var k=0;
- for(i=0; i<nameArr.length; i++)
- {ldelim}
- if(nameArr[i].indexOf(findStr) ==0)
- {ldelim}
- constructedOptionName[k]=nameArr[i];
- constructedOptionValue[k]=idArr[i];
- k++;
- {rdelim}
- {rdelim}
- {rdelim}
- else
- {ldelim}
- constructedOptionValue = idArr;
- constructedOptionName = nameArr;
- {rdelim}
-
- //Constructing the selectoptions
- var j;
- var nowNamePrefix;
- for(j=0;j<constructedOptionName.length;j++)
- {ldelim}
- if(selectedMemberType == 'roles')
- {ldelim}
- nowNamePrefix = 'Roles::'
- {rdelim}
- else if(selectedMemberType == 'rs')
- {ldelim}
- nowNamePrefix = 'RoleAndSubordinates::'
- {rdelim}
- else if(selectedMemberType == 'groups')
- {ldelim}
- nowNamePrefix = 'Group::'
- {rdelim}
- else if(selectedMemberType == 'users')
- {ldelim}
- nowNamePrefix = 'User::'
- {rdelim}
-
- var nowName = nowNamePrefix + constructedOptionName[j];
- var nowId = selectedMemberType + '::' + constructedOptionValue[j]
- document.forms['newGroupForm'].availList.options[j] = new Option(nowName,nowId);
- {rdelim}
- //clearing the array
- constructedOptionValue = new Array();
- constructedOptionName = new Array();
-
-
-{rdelim}
-
-function validate()
-{ldelim}
- formSelectColumnString();
- if( !emptyCheck( "groupName", "Group Name" ) )
- return false;
-
- //alert(document.newGroupForm.selectedColumnsString.value);
- if(document.newGroupForm.selectedColumnsString.value.replace(/^\s+/g, '').replace(/\s+$/g, '').length==0)
- {ldelim}
-
- alert('Group should have atleast one member. Select a member to the group');
- return false;
- {rdelim}
- return true;
-{rdelim}
-</script>
-
-<table width="100%" border="0" cellpadding="0" cellspacing="0">
-<tr>
- {include file='SettingsMenu.tpl'}
-<td width="75%" valign="top">
-
-<form name="newGroupForm" action="index.php" method="post">
-<input type="hidden" name="module" value="Users">
-<input type="hidden" name="action" value="SaveGroup">
-<input type="hidden" name="mode" value="{$MODE}">
-<input type="hidden" name="parenttab" value="Settings">
-<input type="hidden" name="groupId" value="{$GROUPID}">
-<table width="100%" border="0" cellpadding="0" cellspacing="0" height="100%">
-<tr>
-<td class="showPanelBg" valign="top" width="100%" colspan="3" style="padding-left:20px; "><br />
-<span class="lvtHeaderText"><b><a href="index.php?module=Settings&action=index&parenttab=Settings">{$MOD.LBL_SETTINGS} </a> > {$MOD.LBL_USER_MANAGEMENT} > {$CMOD.LBL_CREATE_NEW_GROUP}</b></span>
-<hr noshade="noshade" size="1"/>
-</td>
-</tr>
-<tr>
-<td width="75%" style="padding-left:20px;" valign="top">
-
- <table align="center" border="0" cellpadding="5" cellspacing="0" width="90%">
- <tbody>
- <tr>
- <td colspan="2"> </td>
- </tr>
- <tr>
- <td width="20%"> </td>
- <td width="80%"> </td>
- </tr>
- <tr>
- <td style="padding-right: 10px;" align="right" width="20%">Group Name</td>
- <td style="padding-left: 10px;" align="left" width="80%">
- <input name="groupName" class="detailedViewTextBox" onfocus="this.className='detailedViewTextBoxOn'" onblur="this.className='detailedViewTextBox'" type="text" value="{$GROUPNAME}">
- </td>
- </tr>
- <tr>
- <td style="padding-right: 10px;" align="right">Description</td>
- <td style="padding-left: 10px;" align="left">
- <textarea name="description" class="detailedViewTextBox" onfocus="this.className='detailedViewTextBoxOn'" onblur="this.className='detailedViewTextBox'">{$DESCRIPTION}</textarea>
- </td>
-
- </tr>
- <tr>
- <td colspan=2>
- <table align="center" border="0" cellpadding="0" cellspacing="0" width="90%">
- <tbody>
- <tr>
- <td style="padding-right: 10px;" align="right">Filters</td>
- <td>
- <select id="memberType" name="memberType" onchange="showOptions()">
- <option value="groups" selected>Groups</option>
- <option value="roles">Roles</option>
- <option value="rs">Roles and Subordinates</option>
- <option value="users">Users</option>
- </select>
- </td><td>
- <input type="text" name="findStr">
- <input type="button" name="Find" value="Find" class="button" onClick="showOptions()">
- </td>
- </tr>
- </tbody>
- </table>
- </td>
- </tr>
- <tr>
- <td colspan="2">
- <table align="center" border="0" cellpadding="0" cellspacing="0" width="75%">
- <tbody>
- <tr>
- <td align="center"><b>Member Available</b><br>
- <select id="availList" name="availList" multiple size="10" style="width:200px; ">
- </select>
- <input type="hidden" name="selectedColumnsString"/>
- </td>
- <td align="center">
- <input type="button" name="Button" value=" Add › " onClick="addColumn()"/><br /><br />
- <input type="button" name="Button1" value=" ‹ Remove " onClick="delColumn()"/>
- </td>
- <td align="center"><b>Selected Member</b><br>
- <select id="selectedColumns" name="selectedColumns" multiple size="10" style="width:200px; ">
- {foreach item=element from=$MEMBER}
- <option value="{$element.0}">{$element.1}</option>
- {/foreach}
- </select>
-
- </td>
- </tr>
- </tbody></table></td>
- </tr>
-
- <tr>
- <td colspan="2" style="border-bottom: 1px dashed rgb(204, 204, 204);"> </td>
- </tr>
- <tr>
- <td colspan="2" align="right">
-
- <input type="submit" class="button" name="add" value="Add Group" onClick="return validate()">
-
- <input type="button" class="button" name="cancel" value="Cancel" onClick="window.history.back()">
- </td>
- </tr>
- <tr>
- <td colspan="2" style="border-top: 1px solid rgb(204, 204, 204);"> </td>
- </tr>
- </tbody></table>
-
-<td colspan="2" style="border-top:1px solid #CCCCCC;"> </td>
-</tr>
-</table>
-</form>
-</td>
-
-</tr>
-</table>
-
-</td>
-<td width="1%" style="border-right:1px dotted #CCCCCC;"> </td>
-</tr>
-</table>
-<script language="JavaScript" type="text/JavaScript">
-var moveupLinkObj,moveupDisabledObj,movedownLinkObj,movedownDisabledObj;
-function setObjects()
-{ldelim}
-availListObj=getObj("availList")
-selectedColumnsObj=getObj("selectedColumns")
-
-{rdelim}
-
-function addColumn()
-{ldelim}
-for (i=0;i<selectedColumnsObj.length;i++)
-{ldelim}
-selectedColumnsObj.options[i].selected=false
-{rdelim}
-
-for (i=0;i<availListObj.length;i++)
-{ldelim}
-if (availListObj.options[i].selected==true)
-{ldelim}
-for (j=0;j<selectedColumnsObj.length;j++)
-{ldelim}
-if (selectedColumnsObj.options[j].value==availListObj.options[i].value)
-{ldelim}
-var rowFound=true
-var existingObj=selectedColumnsObj.options[j]
-break
-{rdelim}
-{rdelim}
-
-if (rowFound!=true)
-{ldelim}
-var newColObj=document.createElement("OPTION")
-newColObj.value=availListObj.options[i].value
-if (browser_ie) newColObj.innerText=availListObj.options[i].innerText
- else if (browser_nn4 || browser_nn6) newColObj.text=availListObj.options[i].text
-selectedColumnsObj.appendChild(newColObj)
- availListObj.options[i].selected=false
- newColObj.selected=true
- rowFound=false
-{rdelim}
-else
-{ldelim}
-existingObj.selected=true
-{rdelim}
-{rdelim}
-{rdelim}
-{rdelim}
-
-function delColumn()
-{ldelim}
-for (i=0;i<=selectedColumnsObj.options.length;i++)
-{ldelim}
- if (selectedColumnsObj.options.selectedIndex>=0)
-selectedColumnsObj.remove(selectedColumnsObj.options.selectedIndex)
-{rdelim}
-{rdelim}
-
-function formSelectColumnString()
-{ldelim}
-var selectedColStr = "";
-for (i=0;i<selectedColumnsObj.options.length;i++)
-{ldelim}
-selectedColStr += selectedColumnsObj.options[i].value + ";";
-{rdelim}
-document.newGroupForm.selectedColumnsString.value = selectedColStr;
-{rdelim}
-setObjects();
-showOptions();
-</script>
-</td>
-</tr>
-</table>
-</td>
-</tr>
-</table>
- {include file='SettingsSubMenu.tpl'}
-
+<script language="JavaScript" type="text/javascript" src="include/js/menu.js"></script>
+<style type="text/css">@import url(themes/blue/style.css);</style>
+<script language="javascript">
+var constructedOptionValue;
+var constructedOptionName;
+
+var roleIdArr=new Array({$ROLEIDSTR});
+var roleNameArr=new Array({$ROLENAMESTR});
+var userIdArr=new Array({$USERIDSTR});
+var userNameArr=new Array({$USERNAMESTR});
+var grpIdArr=new Array({$GROUPIDSTR});
+var grpNameArr=new Array({$GROUPNAMESTR});
+
+function showOptions()
+{ldelim}
+ var selectedOption=document.newGroupForm.memberType.value;
+ //Completely clear the select box
+ document.forms['newGroupForm'].availList.options.length = 0;
+
+ if(selectedOption == 'groups')
+ {ldelim}
+ constructSelectOptions('groups',grpIdArr,grpNameArr);
+ {rdelim}
+ else if(selectedOption == 'roles')
+ {ldelim}
+ constructSelectOptions('roles',roleIdArr,roleNameArr);
+ {rdelim}
+ else if(selectedOption == 'rs')
+ {ldelim}
+
+ constructSelectOptions('rs',roleIdArr,roleNameArr);
+ {rdelim}
+ else if(selectedOption == 'users')
+ {ldelim}
+ constructSelectOptions('users',userIdArr,userNameArr);
+ {rdelim}
+{rdelim}
+
+function constructSelectOptions(selectedMemberType,idArr,nameArr)
+{ldelim}
+ var i;
+ var findStr=document.newGroupForm.findStr.value;
+ if(findStr.replace(/^\s+/g, '').replace(/\s+$/g, '').length !=0)
+ {ldelim}
+
+ var k=0;
+ for(i=0; i<nameArr.length; i++)
+ {ldelim}
+ if(nameArr[i].indexOf(findStr) ==0)
+ {ldelim}
+ constructedOptionName[k]=nameArr[i];
+ constructedOptionValue[k]=idArr[i];
+ k++;
+ {rdelim}
+ {rdelim}
+ {rdelim}
+ else
+ {ldelim}
+ constructedOptionValue = idArr;
+ constructedOptionName = nameArr;
+ {rdelim}
+
+ //Constructing the selectoptions
+ var j;
+ var nowNamePrefix;
+ for(j=0;j<constructedOptionName.length;j++)
+ {ldelim}
+ if(selectedMemberType == 'roles')
+ {ldelim}
+ nowNamePrefix = 'Roles::'
+ {rdelim}
+ else if(selectedMemberType == 'rs')
+ {ldelim}
+ nowNamePrefix = 'RoleAndSubordinates::'
+ {rdelim}
+ else if(selectedMemberType == 'groups')
+ {ldelim}
+ nowNamePrefix = 'Group::'
+ {rdelim}
+ else if(selectedMemberType == 'users')
+ {ldelim}
+ nowNamePrefix = 'User::'
+ {rdelim}
+
+ var nowName = nowNamePrefix + constructedOptionName[j];
+ var nowId = selectedMemberType + '::' + constructedOptionValue[j]
+ document.forms['newGroupForm'].availList.options[j] = new Option(nowName,nowId);
+ {rdelim}
+ //clearing the array
+ constructedOptionValue = new Array();
+ constructedOptionName = new Array();
+
+
+{rdelim}
+
+function validate()
+{ldelim}
+ formSelectColumnString();
+ if( !emptyCheck( "groupName", "Group Name" ) )
+ return false;
+
+ //alert(document.newGroupForm.selectedColumnsString.value);
+ if(document.newGroupForm.selectedColumnsString.value.replace(/^\s+/g, '').replace(/\s+$/g, '').length==0)
+ {ldelim}
+
+ alert('Group should have atleast one member. Select a member to the group');
+ return false;
+ {rdelim}
+ return true;
+{rdelim}
+</script>
+
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+<tr>
+ {include file='SettingsMenu.tpl'}
+<td width="75%" valign="top">
+
+<form name="newGroupForm" action="index.php" method="post">
+<input type="hidden" name="module" value="Users">
+<input type="hidden" name="action" value="SaveGroup">
+<input type="hidden" name="mode" value="{$MODE}">
+<input type="hidden" name="parenttab" value="Settings">
+<input type="hidden" name="groupId" value="{$GROUPID}">
+<table width="100%" border="0" cellpadding="0" cellspacing="0" height="100%">
+<tr>
+<td class="showPanelBg" valign="top" width="100%" style="padding-left:20px; "><br />
+<span class="lvtHeaderText"><b><a href="index.php?module=Settings&action=index&parenttab=Settings">{$MOD.LBL_SETTINGS} </a> > {$MOD.LBL_USER_MANAGEMENT} > {$CMOD.LBL_CREATE_NEW_GROUP}</b></span>
+<hr noshade="noshade" size="1"/>
+</td>
+</tr>
+<tr>
+<td width="75%" style="padding-left:20px;" valign="top">
+
+ <table align="center" border="0" cellpadding="5" cellspacing="0" width="100%" class="leadTable">
+ <tbody>
+ <tr>
+ <td align="left" style="padding:10px;border-bottom:1px dashed #CCCCCC;" colspan="3">
+ <img src="{$IMAGE_PATH}groups.gif" align="absmiddle">
+ <span class="genHeaderGray">{$CMOD.LBL_CREATE_NEW_GROUP}</span>
+ </td>
+ </tr>
+ <tr>
+ <td width="10%"></td>
+ <td width="10%"> </td>
+ <td width="80%"> </td>
+ </tr>
+ <tr>
+ <td align="right"><img src="{$IMAGE_PATH}one.gif" align="absmiddle"> </td>
+ <td style="padding-right: 10px;" align="right" width="20%">
+ <b>Group Name :</b></td>
+ <td style="padding-left: 10px;" align="left" width="80%">
+ <input name="groupName" class="importBox" style="width:40%;" type="text" value="{$GROUPNAME}">
+ </td>
+ </tr>
+ <tr><td colspan="3"> </td></tr>
+ <tr>
+ <td align="right"><img src="{$IMAGE_PATH}two.gif" align="absmiddle"></td>
+ <td style="padding-right: 10px;" align="right" valign="top">
+ <b>Description : </b></td>
+ <td style="padding-left: 10px;" align="left">
+ <textarea name="description" class="txtBox" style="width:40%;" >{$DESCRIPTION}</textarea>
+ </td>
+ </tr>
+ <tr><td colspan="3"> </td></tr>
+ <tr>
+ <td align="right"><img src="{$IMAGE_PATH}three.gif" align="absmiddle"></td>
+ <td style="padding-right: 10px;" align="right">
+ <b>Filters : </b></td>
+ <td><select id="memberType" name="memberType" onchange="showOptions()">
+ <option value="groups" selected>Groups</option>
+ <option value="roles">Roles</option>
+ <option value="rs">Roles and Subordinates</option>
+ <option value="users">Users</option>
+ </select>
+ <input type="text" name="findStr">
+ <input type="button" name="Find" value="Find" class="classBtn" onClick="showOptions()">
+ </td>
+ </tr>
+ <tr><td colspan="3"> </td></tr>
+ <tr>
+ <td colspan="3">
+ <table align="center" border="0" cellpadding="0" cellspacing="0" width="75%">
+ <tbody>
+ <tr>
+ <td align="center"><b>Member Available</b><br>
+ <select id="availList" name="availList" multiple size="10" style="width:200px; ">
+ </select>
+ <input type="hidden" name="selectedColumnsString"/>
+ </td>
+ <td align="center">
+ <input type="button" name="Button" value=" ›› " onClick="addColumn()" class="classBtn"/><br /><br />
+ <input type="button" name="Button1" value=" ‹‹ " onClick="delColumn()" class="classBtn"/>
+ </td>
+ <td align="center"><b>Selected Member</b><br>
+ <select id="selectedColumns" name="selectedColumns" multiple size="10" style="width:200px; ">
+ {foreach item=element from=$MEMBER}
+ <option value="{$element.0}">{$element.1}</option>
+ {/foreach}
+ </select>
+
+ </td>
+ </tr>
+ </tbody></table></td>
+ </tr>
+
+ <tr>
+ <td colspan="3" style="border-bottom: 1px dashed rgb(204, 204, 204);"> </td>
+ </tr>
+ <tr>
+ <td colspan="3" align="center">
+ <input type="submit" class="classBtn" name="add" value="Add Group" onClick="return validate()">
+
+ <input type="button" class="classBtn" name="cancel" value="Cancel" onClick="window.history.back()">
+ </td>
+ </tr>
+ </tbody></table>
+
+</tr>
+</table>
+</form>
+</td>
+
+</tr>
+</table>
+
+</td>
+<td width="1%" style="border-right:1px dotted #CCCCCC;"> </td>
+</tr>
+</table>
+<script language="JavaScript" type="text/JavaScript">
+var moveupLinkObj,moveupDisabledObj,movedownLinkObj,movedownDisabledObj;
+function setObjects()
+{ldelim}
+availListObj=getObj("availList")
+selectedColumnsObj=getObj("selectedColumns")
+
+{rdelim}
+
+function addColumn()
+{ldelim}
+for (i=0;i<selectedColumnsObj.length;i++)
+{ldelim}
+selectedColumnsObj.options[i].selected=false
+{rdelim}
+
+for (i=0;i<availListObj.length;i++)
+{ldelim}
+if (availListObj.options[i].selected==true)
+{ldelim}
+for (j=0;j<selectedColumnsObj.length;j++)
+{ldelim}
+if (selectedColumnsObj.options[j].value==availListObj.options[i].value)
+{ldelim}
+var rowFound=true
+var existingObj=selectedColumnsObj.options[j]
+break
+{rdelim}
+{rdelim}
+
+if (rowFound!=true)
+{ldelim}
+var newColObj=document.createElement("OPTION")
+newColObj.value=availListObj.options[i].value
+if (browser_ie) newColObj.innerText=availListObj.options[i].innerText
+ else if (browser_nn4 || browser_nn6) newColObj.text=availListObj.options[i].text
+selectedColumnsObj.appendChild(newColObj)
+ availListObj.options[i].selected=false
+ newColObj.selected=true
+ rowFound=false
+{rdelim}
+else
+{ldelim}
+existingObj.selected=true
+{rdelim}
+{rdelim}
+{rdelim}
+{rdelim}
+
+function delColumn()
+{ldelim}
+for (i=0;i<=selectedColumnsObj.options.length;i++)
+{ldelim}
+ if (selectedColumnsObj.options.selectedIndex>=0)
+selectedColumnsObj.remove(selectedColumnsObj.options.selectedIndex)
+{rdelim}
+{rdelim}
+
+function formSelectColumnString()
+{ldelim}
+var selectedColStr = "";
+for (i=0;i<selectedColumnsObj.options.length;i++)
+{ldelim}
+selectedColStr += selectedColumnsObj.options[i].value + ";";
+{rdelim}
+document.newGroupForm.selectedColumnsString.value = selectedColStr;
+{rdelim}
+setObjects();
+showOptions();
+</script>
+</td>
+</tr>
+</table>
+</td>
+</tr>
+</table>
+ {include file='SettingsSubMenu.tpl'}
+
Modified: vtigercrm/trunk/Smarty/templates/ListGroup.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/ListGroup.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/ListGroup.tpl Thu Apr 27 16:59:06 2006
@@ -1,70 +1,96 @@
-<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">
-
-<table width="100%" border="0" cellpadding="0" cellspacing="0" height="100%">
-<form action="index.php" method="post" name="new" id="form">
-<input type="hidden" name="module" value="Users">
-<input type="hidden" name="action" value="createnewgroup">
-<input type="hidden" name="mode" value="create">
-<input type="hidden" name="parenttab" value="Settings">
-<tr>
-<td class="showPanelBg" valign="top" width="100%" colspan="3" style="padding-left:20px; "><br/>
-<span class="lvtHeaderText"><b><a href="index.php?module=Settings&action=index&parenttab=Settings">{$MOD.LBL_SETTINGS} </a> > {$MOD.LBL_USER_MANAGEMENT} > {$CMOD.LBL_GROUP_NAME}</b></span>
-<hr noshade="noshade" size="1" />
-</td>
-</tr>
-<tr>
-<td width="75%" style="padding-left:20px;" valign="top">
-
- <table width="100%" cellpadding="3" cellspacing="0" >
- <tr><td colspan="2"> </td></tr>
- <tr>
- <td colspan="2" align="left"> </td>
- <td align="right"><input title="New" accessKey="C" class="button" type="submit" name="New" value="New Group"/></td>
- </tr>
- <tr><td colspan="2"> </td></tr>
-
- <tr>
- <td class="detailedViewHeader" width="15%"><b>{$LIST_HEADER.0}</b></td>
- <td class="detailedViewHeader" width="35%"><b>{$LIST_HEADER.1}</b></td>
- <td class="detailedViewHeader" width="50%"><b>{$LIST_HEADER.2}</b></td>
- </tr>
-
- {section name=entries loop=$LIST_ENTRIES}
- <tr class="{cycle values="dvtCellInfo,dvtCellLabel"}">
- <td nowrap>
- <img src="{$IMAGE_PATH}del.gif" border="0" height="15" width="15" onClick="deletegroup('{$LIST_ENTRIES[entries].groupid}','{$LIST_ENTRIES[entries].groupname}')";>
- <a href="index.php?module=Users&action=createnewgroup&returnaction=listgroups&mode=edit&groupId={$LIST_ENTRIES[entries].groupid}"><img src="{$IMAGE_PATH}edit.gif" alt="Edit" title="Edit" border="0"></a>
- </td>
- <td nowrap><a href="index.php?module=Users&action=GroupDetailView&groupId={$LIST_ENTRIES[entries].groupid}">{$LIST_ENTRIES[entries].groupname}</a></td>
- <td nowrap>{$LIST_ENTRIES[entries].description} </td>
- <tr>
- {/section}
-
- </table>
-
-</td>
-<td width="1%" style="border-right:1px dotted #CCCCCC;"> </td>
-</tr>
-</table>
-</td>
-</tr>
-</table>
-</td>
-</tr>
-</table>
-<script>
-function deletegroup(id,groupname)
-{ldelim}
- if(confirm("Are you sure you want to delete the group "+groupname+" ?"))
- document.location.href="index.php?module=Users&action=DeleteGroup&groupId="+id;
- else
- return false;
-{rdelim}
-</script>
- {include file='SettingsSubMenu.tpl'}
-
+<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">
+
+<table width="95%" border="0" cellpadding="0" cellspacing="0" align="center">
+<form action="index.php" method="post" name="new" id="form">
+<input type="hidden" name="module" value="Users">
+<input type="hidden" name="action" value="createnewgroup">
+<input type="hidden" name="mode" value="create">
+<input type="hidden" name="parenttab" value="Settings">
+<tr>
+<td class="showPanelBg" valign="top" width="100%" colspan="3" style="padding-left:20px; "><br/>
+<span class="lvtHeaderText"><b><a href="index.php?module=Settings&action=index&parenttab=Settings">{$MOD.LBL_SETTINGS} </a> > {$MOD.LBL_USER_MANAGEMENT} > {$CMOD.LBL_GROUP_NAME}</b></span>
+<hr noshade="noshade" size="1" /><br>
+</td>
+</tr>
+<tr>
+<td valign="top" class="leadTable" style="padding:20px; ">
+<table width="100%" cellpadding="5" cellspacing="0" >
+ <tr>
+ <td style="border-bottom:1px dashed #CCCCCC;" width="50%">
+ <img src="{$IMAGE_PATH}groups.gif" align="absmiddle"> <span class="genHeaderGrayBig">{$CMOD.LBL_GROUP_NAME}</span>
+ </td>
+ <td style="border-bottom:1px dashed #CCCCCC;" width="50%" align="right">
+ <input title="New" accessKey="C" class="classBtn" type="submit" name="New" value="New Group"/>
+ </td>
+ </tr>
+ <tr><td colspan="2"> </td></tr>
+ <tr>
+ <td colspan="2" >
+ <table width="100%" border="0" cellpadding="5" cellspacing="1" class="small" style="background-color: rgb(204, 204, 204);">
+ <tbody>
+ <tr>
+ <td class="lvtCol" width="35%">{$LIST_HEADER.1}</td>
+ <td class="lvtCol" width="50%">{$LIST_HEADER.2}</td>
+ <td class="lvtCol" width="15%">{$LIST_HEADER.0}</td>
+ </tr>
+ {section name=entries loop=$LIST_ENTRIES}
+ <tr class="lvtColData" onmouseover="this.className='lvtColDataHover'" onmouseout="this.className='lvtColData'" bgcolor="white">
+ <td ><a href="index.php?module=Users&action=GroupDetailView&parenttab=Settings&groupId={$LIST_ENTRIES[entries].groupid}">{$LIST_ENTRIES[entries].groupname}</a></td>
+ <td >{$LIST_ENTRIES[entries].description}</td>
+ <td align="center" >
+ <a href="index.php?module=Users&action=createnewgroup&returnaction=listgroups&parenttab=Settings&mode=edit&groupId={$LIST_ENTRIES[entries].groupid}">
+ <img src="{$IMAGE_PATH}editfield.gif" alt="Edit" title="Edit" border="0" align="absmiddle"></a> |
+ <a href="#" onClick="deletegroup('{$LIST_ENTRIES[entries].groupid}','{$LIST_ENTRIES[entries].groupname}')";><img src="{$IMAGE_PATH}delete.gif" border="0" align="absmiddle"></a>
+ </td>
+ </tr>
+ {/section}
+ </tbody>
+ </table>
+ </td>
+ </tr>
+</table>
+
+</td>
+
+</tr>
+</table>
+</td>
+</tr>
+</table>
+</td>
+</tr>
+</table>
+<script>
+function deletegroup(id,groupname)
+{ldelim}
+ if(confirm("Are you sure you want to delete the group "+groupname+" ?"))
+ document.location.href="index.php?module=Users&action=DeleteGroup&groupId="+id;
+ else
+ return false;
+{rdelim}
+</script>
+ {include file='SettingsSubMenu.tpl'}
+
+<!--
+
+<td class="detailedViewHeader" width="15%"><b>{$LIST_HEADER.0}</b></td>
+ <td class="detailedViewHeader" width="35%"><b>{$LIST_HEADER.1}</b></td>
+ <td class="detailedViewHeader" width="50%"><b>{$LIST_HEADER.2}</b></td>
+ </tr>
+
+ {section name=entries loop=$LIST_ENTRIES}
+ <tr class="{cycle values="dvtCellInfo,dvtCellLabel"}">
+ <td nowrap>
+ <img src="{$IMAGE_PATH}del.gif" border="0" height="15" width="15" onClick="deletegroup('{$LIST_ENTRIES[entries].groupid}','{$LIST_ENTRIES[entries].groupname}')";>
+ <a href="index.php?module=Users&action=createnewgroup&returnaction=listgroups&mode=edit&groupId={$LIST_ENTRIES[entries].groupid}"><img src="{$IMAGE_PATH}edit.gif" alt="Edit" title="Edit" border="0"></a>
+ </td>
+ <td nowrap><a href="index.php?module=Users&action=GroupDetailView&groupId={$LIST_ENTRIES[entries].groupid}">{$LIST_ENTRIES[entries].groupname}</a></td>
+ <td nowrap>{$LIST_ENTRIES[entries].description} </td>
+ <tr>
+ {/section}
+ -->
More information about the vtigercrm-commits
mailing list