[Vtigercrm-commits] [vtiger-commits] r7289 - in /vtigercrm/trunk/Smarty/templates: OrgSharingDetailView.tpl OrgSharingEditView.tpl

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Tue Jun 20 03:02:30 EDT 2006


Author: saraj
Date: Tue Jun 20 01:02:26 2006
New Revision: 7289

Log:
Updated the org sharing file - ahmed

Modified:
    vtigercrm/trunk/Smarty/templates/OrgSharingDetailView.tpl
    vtigercrm/trunk/Smarty/templates/OrgSharingEditView.tpl

Modified: vtigercrm/trunk/Smarty/templates/OrgSharingDetailView.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/OrgSharingDetailView.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/OrgSharingDetailView.tpl Tue Jun 20 01:02:26 2006
@@ -1,271 +1,232 @@
-{*<!--
-/*********************************************************************************
-  ** 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">
-
-<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_ORG_SHARING_PRIVILEGES}</b></span>
-<hr noshade="noshade" size="1" />
-</td>
-</tr>
-<tr>
-<td width="75%" style="padding-left:20px;" valign="top">
-	
-			<!-- module Select Table -->
-			<table border="0" cellpadding="0" cellspacing="0" width="100%">
-			  <tbody><tr>
-				<td style="font-size: 1px; font-family: Arial,Helvetica,sans-serif;" height="6" width="7"><img src="{$IMAGE_PATH}top_left.jpg" align="top"></td>
-				<td style="font-size: 1px; font-family: Arial,Helvetica,sans-serif; height: 6px;" bgcolor="#ebebeb"></td>
-				<td style="font-size: 1px; font-family: Arial,Helvetica,sans-serif;" height="6" width="8"><img src="{$IMAGE_PATH}top_right.jpg" align="top" height="6" width="8"></td>
-			  </tr>
-
-			  <tr>
-				<td bgcolor="#ebebeb" width="7"></td>
-				<td style="padding-left: 10px; height: 20px; vertical-align: middle;" bgcolor="#ececec">
-						{$CMOD.LBL_VIEW} :&nbsp;<a href="javascript:show('customdiv');show('globaldiv');">{$CMOD.LBL_BOTH}</a>&nbsp;|&nbsp;<a href="javascript:hide('customdiv');show('globaldiv');" >{$CMOD.LBL_GLOBAL_ACCESS_PRIVILEGES}</a>&nbsp;|&nbsp;
-						<a href="javascript:show('customdiv');hide('globaldiv');">{$CMOD.LBL_CUSTOM_ACCESS_PRIVILEGES}</a>
-				</td>
-
-				<td bgcolor="#ebebeb" width="8"></td>
-			  </tr>
-			  <tr>
-				<td style="font-size: 1px; font-family: Arial,Helvetica,sans-serif;" height="8" width="7"><img src="{$IMAGE_PATH}bottom_left.jpg" align="bottom"></td>
-				<td style="font-size: 1px;" bgcolor="#ececec" height="8"></td>
-				<td style="font-size: 1px; font-family: Arial,Helvetica,sans-serif;" height="8" width="8"><img src="{$IMAGE_PATH}bottom_right.jpg" align="bottom"></td>
-			  </tr>
-		  </tbody></table><br>
-		  <!-- end of module select -->
-
-		  <!-- GLOBAL ACCESS MODULE -->
-		  	<div id="globaldiv">
-		  	  <table border="0" cellpadding="0" cellspacing="0" width="100%">
-			  <tbody><tr>
-				<td style="font-size: 1px; font-family: Arial,Helvetica,sans-serif;" height="6" width="7"><img src="{$IMAGE_PATH}top_left.jpg" align="top"></td>
-				<td style="font-size: 1px; font-family: Arial,Helvetica,sans-serif; height: 6px;" bgcolor="#ebebeb"></td>
-				<td style="font-size: 1px; font-family: Arial,Helvetica,sans-serif;" height="6" width="8"><img src="{$IMAGE_PATH}top_right.jpg" align="top" height="6" width="8"></td>
-			  </tr>
-			  <tr>
-				<td bgcolor="#ebebeb" width="7"></td>
-
-				<td bgcolor="#ebebeb">	
-						<table border="0" cellpadding="3" cellspacing="0" width="100%">
-							<tbody>
-							<form action="index.php" method="post" name="new" id="form">
-							<input type="hidden" name="module" value="Users">
-							<input type="hidden" name="action" value="OrgSharingEditView">
-							<input type="hidden" name="parenttab" value="Settings">
-							<tr>
-								<td class="genHeaderSmall" height="25" valign="middle">{$CMOD.LBL_GLOBAL_ACCESS_PRIVILEGES}</td>
-								<td align="right"><input class=small title="{$CMOD.LBL_RECALCULATE_BUTTON}"  type="submit" name="recalculate" value="{$CMOD.LBL_RECALCULATE_BUTTON}" onclick="this.form.action.value='RecalculateSharingRules'; return confirm('Recalculate Sharing Rules will calculate the sharing rules for the whole organization. This Operation will take some time. Do you want to contunue? ')">	
-	&nbsp;<input class=small type="submit" name="Edit" value={$CMOD.LBL_EDIT_PERMISSIONS}></td>
-								
-							</tr>
-							<tr><td colspan="2"></td></tr>
-							 <tr>
-						  		<td colspan="2" style="padding: 0px 0px 0px 1px;" bgcolor="#ffffff">
-
-									<table class="globTab" cellpadding="0" cellspacing="0">
-									<tbody>
-									{foreach item=module from=$DEFAULT_SHARING}	
-										<tr class="prvPrfHoverOff" onmouseover="this.className='prvPrfHoverOn'" onmouseout="this.className='prvPrfHoverOff'">
-									    <th width="20%">{$APP[$module.0]}</th>
-									    <td width="30%">
-										{if $module.1 neq 'Private' && $module.1 neq 'Hide Details'}
-											<img src="{$IMAGE_PATH}public.gif" align="absmiddle">
-										{else}
-											<img src="{$IMAGE_PATH}private.gif" align="absmiddle">
-										{/if}
-										{$CMOD[$module.1]}</td>
-									    <td width="50%">{$module.2}</td>
-								      	</tr>
-								 	{/foreach} 
-								  	</tbody>
-									</table>
-								</td>
-						  </tr>
-						</form>
-						</tbody>
-						</table>
-						 <!-- End of Module Display -->
-			         </td>
-				<td bgcolor="#ebebeb" width="8"></td>
-			  </tr>
-
-			  <tr>
-				<td style="font-size: 1px; font-family: Arial,Helvetica,sans-serif;" height="8" width="7"><img src="{$IMAGE_PATH}bottom_left.jpg" align="bottom"></td>
-				<td style="font-size: 1px;" bgcolor="#ebebeb" height="8"></td>
-				<td style="font-size: 1px; font-family: Arial,Helvetica,sans-serif;" height="8" width="8"><img src="{$IMAGE_PATH}bottom_right.jpg" align="bottom"></td>
-			  </tr>
-		  </tbody></table><br>
-		</div>
-
-		  <!-- END OF GLOBAL -->
-		  
-		  
-		  <!-- Custom Access Module Display Table -->
-		  <div id="customdiv">
-		  <table border="0" cellpadding="0" cellspacing="0" width="100%">
-		  <tbody>
-		  <tr>
-		  	<td style="font-size: 1px; font-family: Arial,Helvetica,sans-serif;" height="6" width="7"><img src="{$IMAGE_PATH}top_left.jpg" align="top"></td>
-			<td style="font-size: 1px; font-family: Arial,Helvetica,sans-serif; height: 6px;" bgcolor="#ebebeb"></td>
-			<td style="font-size: 1px; font-family: Arial,Helvetica,sans-serif;" height="6" width="8"><img src="{$IMAGE_PATH}top_right.jpg" align="top" height="6" width="8"></td>
-		 </tr>
-		 <tr>
-			<td bgcolor="#ebebeb" width="7"></td>
-			<td bgcolor="#ebebeb">	
-				<table border="0" cellpadding="3" cellspacing="0" width="100%">
-				<tbody>
-				<tr>
-					<td class="genHeaderSmall" colspan="2" height="25" valign="middle">{$CMOD.LBL_CUSTOM_ACCESS_PRIVILEGES}</td>
-				</tr>
-				<tr><td colspan="2"></td></tr>
-				<tr>
-					<td colspan="2" style="padding: 0px 0px 0px 1px;" bgcolor="#ebebeb">
-						
-				<!-- Start of Module Display -->
-						{foreach key=modulename item=details from=$MODSHARING}
-						<div align="right"><a href="#">{$CMOD.LBL_GO_TO_TOP}</a></div>
-						{if $details.0 neq ''}
-						<table class="orgTab" cellpadding="0" cellspacing="0">
-						<tbody>
-						<tr bgcolor="#cccccc">
-							<td colspan=3 style="border: 1px solid rgb(204, 204, 204); padding-left: 5px;">
-							<img src="{$IMAGE_PATH}arrow.jpg" align="absmiddle">&nbsp;
-							<b>{$APP.$modulename}</b>&nbsp; 
-							</td>
-							<td align="right" colspan=2><input title="New" class="small" type="button" name="Create" value="{$CMOD.LBL_ADD_PRIVILEGES_BUTTON}" onClick="callEditDiv('{$modulename}','create','')"></td>
-						</tr>
-					  	<tr>
-							<th class="lvtCol" nowrap width="9%">{$CMOD.LBL_RULE_NO}</th>
-							<th class="lvtCol" width="20%">{$APP.$modulename} {$CMOD.LBL_OF} </th>
-							<th class="lvtCol" width="25%">{$CMOD.LBL_CAN_BE_ACCESSED}</th>
-							<th class="lvtCol" width="40%">{$CMOD.LBL_PRIVILEGES}</th>
-							<th class="lvtCol" width="6%">{$APP.Tools}</th>
-						</tr>
-						{foreach key=sno item=elements from=$details}
-						<tr class="prvPrfHoverOut" onmouseover="this.className='prvPrfHoverOn'" onmouseout="this.className='prvPrfHoverOut'">
-							<td>{$sno+1}</td>
-							<td>{$elements.1}</td>
-							<td>{$elements.2}</td>
-							<td>{$elements.3}</td>
-							<td align="center"><a href="javascript:onClick=callEditDiv('{$modulename}','edit','{$elements.0}')"><img src="{$IMAGE_PATH}editfield.gif" title='edit' align="absmiddle" height="15" width="16" border=0></a>|<a href="index.php?module=Users&action=DeleteSharingRule&shareid={$elements.0}"><img src="{$IMAGE_PATH}delete.gif" title='del' align="absmiddle" height="15" width="16" border=0></a></td>
-					    </tr>
-						{/foreach}
-				  		</tbody></table>
-				<!-- End of Module Display -->
-					{else}
-				<!-- Start FOR NO DATA -->
-					<table border="0" cellpadding="3" cellspacing="0" width="100%">
-					<tbody>
-					<tr><td colspan="2"></td></tr>
-					<tr bgcolor="#cccccc">
-					  	<td style="border: 1px solid rgb(204, 204, 204); padding-left: 5px;">
-					  	<img src="{$IMAGE_PATH}arrow.jpg" align="absmiddle">&nbsp;
-						<b>{$APP.$modulename}</b>&nbsp;&nbsp; 
-						</td>
-					 	<td align="right"><input title="New" class="small" type="button" name="Create" value="{$APP.LBL_ADD_ITEM} {$CMOD.LBL_PRIVILEGES}" onClick="callEditDiv('{$modulename}','create','')"></td>
-				  	</tr>
-				  	<tr>
-				  		<td colspan="2" style="padding: 20px;" bgcolor="#ffffff" align="center">
-						{$CMOD.LBL_CUSTOM_ACCESS_MESG} 
-						<a href="javascript:onClick=callEditDiv('{$modulename}','create','')">{$CMOD.LNK_CLICK_HERE}</a>
-						{$CMOD.LBL_CREATE_RULE_MESG}
-					    </td>
-				  	</tr>
-					</tbody>
-					</table>
-			    <!-- END OF NO DATA -->
-					{/if}
-					<br><br>
-					{/foreach}
-					</td>
-					</tr>
-					</tbody></table>
-				</td>
-				<td bgcolor="#ebebeb" width="8"></td>
-			  </tr>
-			  <tr>
-				<td style="font-size: 1px; font-family: Arial,Helvetica,sans-serif;" height="8" width="7"><img src="{$IMAGE_PATH}bottom_left.jpg" align="bottom"></td>
-				<td style="font-size: 1px;" bgcolor="#ebebeb" height="8"></td>
-				<td style="font-size: 1px; font-family: Arial,Helvetica,sans-serif;" height="8" width="8"><img src="{$IMAGE_PATH}bottom_right.jpg" align="bottom"></td>
-			  </tr>
-		  </tbody></table><br>
-			</div>		
-		  		<!-- END OF CUSTOM ACCESS -->
-
-
-</td>
-<td width="1%" style="border-right:1px dotted #CCCCCC;">&nbsp;</td>
-</tr>
-</table>
-</td>
-</tr>
-</table>
-</td>
-</tr>
-</table>
-<div id="tempdiv" style="display:block;position:absolute;left:225px;top:150px;"></div>
-<script>
-
-function callEditDiv(modulename,mode,id)
-{ldelim}
-	$("status").style.display="inline";
-	new Ajax.Request(
-		'index.php',
-		{ldelim}queue: {ldelim}position: 'end', scope: 'command'{rdelim},
-			method: 'post',
-			postBody: 'module=Users&action=UsersAjax&orgajax=true&mode='+mode+'&sharing_module='+modulename+'&shareid='+id,
-			onComplete: function(response) {ldelim}
-				$("status").style.display="none";
-				$("tempdiv").innerHTML=response.responseText;
-			{rdelim}
-		{rdelim}
-	);
-{rdelim}
-
-function fnwriteRules(module,related)
-{ldelim}
-		var modulelists = new Array();
-		modulelists = related.split('###');
-		var relatedstring ='';
-		var relatedtag;
-		var relatedselect;
-		var modulename;
-		for(i=0;i < modulelists.length-1;i++)
-		{ldelim}
-			modulename = modulelists[i]+"_accessopt";
-			relatedtag = document.getElementById(modulename);
-			relatedselect = relatedtag.options[relatedtag.selectedIndex].text;
-			relatedstring += modulelists[i]+':'+relatedselect+' ';
-		{rdelim}	
-		var tagName = document.getElementById(module+"_share");
-		var tagName2 = document.getElementById(module+"_access");
-		var tagName3 = document.getElementById('share_memberType');
-		var soucre =  document.getElementById("rules");
-		var soucre1 =  document.getElementById("relrules");
-		var select1 = tagName.options[tagName.selectedIndex].text;
-		var select2 = tagName2.options[tagName2.selectedIndex].text;
-		var select3 = tagName3.options[tagName3.selectedIndex].text;
-		soucre.innerHTML = module +" of <b>\"" + select1 + "\"</b> can be accessed by <b>\"" +select2 + "\"</b> in the permission "+select3;
-		soucre1.innerHTML = "<b>Related Module Rights</b> "+ relatedstring;
-{rdelim}
-
-</script>
-{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>
+{literal}
+<style>
+DIV.fixedLay{
+	border:3px solid #CCCCCC;
+	background-color:#FFFFFF;
+	width:500px;
+	position:fixed;
+	left:250px;
+	top:200px;
+	display:block;
+}
+</style>
+{/literal}
+{literal}
+<!--[if lte IE 6]>
+<STYLE type=text/css>
+DIV.fixedLay {
+	POSITION: absolute;
+}
+</STYLE>
+<![endif]-->
+
+{/literal}
+<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%">
+        <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}shareaccess.gif" alt="Users" width="48" height="48" border=0 title="Users"></td>
+					<td class=heading2 valign=bottom><b><a href="index.php?module=Settings&action=index&parenttab=Settings">{$MOD.LBL_SETTINGS}</a> > {$MOD.LBL_SHARING_ACCESS} </b></td>
+					<td rowspan=2 class="small" align=right>&nbsp;</td>
+				</tr>
+				<tr>
+					<td valign=top class="small">{$MOD.LBL_SHARING_ACCESS_DESCRIPTION}</td>
+				</tr>
+				</table>
+
+				<br>
+			  	<!-- GLOBAL ACCESS MODULE -->
+		  		<div id="globaldiv">
+				<table border=0 cellspacing=0 cellpadding=5 width=100% class="tableHeading">
+				<form action="index.php" method="post" name="new" id="form">
+				<input type="hidden" name="module" value="Users">
+				<input type="hidden" name="action" value="OrgSharingEditView">
+				<input type="hidden" name="parenttab" value="Settings">
+				<tr>
+					<td class="big"><strong>1. {$CMOD.LBL_GLOBAL_ACCESS_PRIVILEGES}</strong></td>
+					<td class="small" align=right>
+						<input class="crmButton small cancel" title="{$CMOD.LBL_RECALCULATE_BUTTON}"  type="submit" name="recalculate" value="{$CMOD.LBL_RECALCULATE_BUTTON}" onclick="this.form.action.value='RecalculateSharingRules'; return confirm('Recalculate Sharing Rules will calculate the sharing rules for the whole organization. This Operation will take some time. Do you want to contunue? ')">	
+	&nbsp;<input class="crmButton small edit" type="submit" name="Edit" value="{$CMOD.LBL_CHANGE} {$CMOD.LBL_PRIVILEGES}" ></td>
+					</td>
+				</tr>
+				</table>
+				<table cellspacing="0" cellpadding="5" class="listTable" width="100%">
+				{foreach item=module from=$DEFAULT_SHARING}	
+                  <tr>
+                    <td width="20%" class="colHeader small" nowrap>{$APP[$module.0]}</td>
+                    <td width="30%" class="listTableRow small" nowrap>
+			{if $module.1 neq 'Private' && $module.1 neq 'Hide Details'}
+				<img src="{$IMAGE_PATH}public.gif" align="absmiddle">
+			{else}
+				<img src="{$IMAGE_PATH}private.gif" align="absmiddle">
+			{/if}
+				{$CMOD[$module.1]}
+		    </td>
+                    <td width="50%" class="listTableRow small" nowrap>{$module.2}</td>
+                  </tr>
+		  {/foreach}
+		</form>	
+              </table>
+		</div>	
+		  <!-- END OF GLOBAL -->
+				<br><br>
+		  <!-- Custom Access Module Display Table -->
+		  <div id="customdiv">
+				<table border=0 cellspacing=0 cellpadding=5 width=100% class="tableHeading">
+				<tr>
+					<td class="big"><strong>2. {$CMOD.LBL_CUSTOM_ACCESS_PRIVILEGES}</strong></td>
+					<td class="small" align=right>&nbsp;</td>
+				</tr>
+				</table>
+				<!-- Start of Module Display -->
+				{foreach  key=modulename item=details from=$MODSHARING}
+				{if $details.0 neq ''}
+				<table width="100%" border="0" cellpadding="5" cellspacing="0" class="listTableTopButtons">
+                  		<tr>
+		                    <td  style="padding-left:5px;" class="big"><img src="{$IMAGE_PATH}arrow.jpg" width="19" height="21" align="absmiddle" />&nbsp; <b>{$APP.$modulename}</b>&nbsp; </td>
+                		    <td align="right">
+					<input class="crmButton small save" type="button" name="Create" value="{$CMOD.LBL_ADD_PRIVILEGES_BUTTON}" onClick="callEditDiv('{$modulename}','create','')">
+				    </td>
+                  		</tr>
+			  	</table>
+				<table width="100%" cellpadding="5" cellspacing="0" class="listTable" >
+                    		<tr>
+                    		<td width="7%" class="colHeader small" nowrap>{$CMOD.LBL_RULE_NO}</td>
+                          	<td width="20%" class="colHeader small" nowrap>{$APP.$modulename} {$CMOD.LBL_OF}</td>
+                          	<td width="25%" class="colHeader small" nowrap>{$CMOD.LBL_CAN_BE_ACCESSED}</td>
+                          	<td width="40%" class="colHeader small" nowrap>{$CMOD.LBL_PRIVILEGES}</td>
+                          	<td width="8%" class="colHeader small" nowrap>{$APP.Tools}</td>
+                        	</tr>
+                        <tr >
+			  {foreach key=sno item=elements from=$details}
+                          <td class="listTableRow small">{$sno+1}</td>
+                          <td class="listTableRow small">{$elements.1}</td>
+                          <td class="listTableRow small">{$elements.2}</td>
+                          <td class="listTableRow small">{$elements.3}</td>
+                          <td align="center" class="listTableRow small">
+				<a href="javascript:onClick=callEditDiv('{$modulename}','edit','{$elements.0}')"><img src="{$IMAGE_PATH}editfield.gif" title='edit' align="absmiddle" height="15" width="16" border=0></a>|<a href="index.php?module=Users&action=DeleteSharingRule&shareid={$elements.0}"><img src="{$IMAGE_PATH}delete.gif" title='del' align="absmiddle" height="15" width="16" border=0></a></td>
+                        </tr>
+                     {/foreach} 
+                    </table>
+	<!-- End of Module Display -->
+	<!-- Start FOR NO DATA -->	
+			<table border=0 cellspacing=0 cellpadding=5 width=100% class="tableHeading">
+			<tr><td>&nbsp;</td></tr>
+			</table>
+		    {else}
+                    <table width="100%" cellpadding="0" cellspacing="0" class="listTable"><tr><td>
+		      <table width="100%" border="0" cellpadding="5" cellspacing="0" class="listTableTopButtons">
+                      <tr>
+                        <td  style="padding-left:5px;" class="big"><img src="{$IMAGE_PATH}arrow.jpg" width="19" height="21" align="absmiddle" />&nbsp; <b>{$APP.$modulename}</b>&nbsp; </td>
+                        <td align="right">
+				<input class="crmButton small save" type="button" name="Create" value="{$APP.LBL_ADD_ITEM} {$CMOD.LBL_PRIVILEGES}" onClick="callEditDiv('{$modulename}','create','')">
+			</td>
+                      </tr>
+			<table width="100%" cellpadding="5" cellspacing="0">
+			<tr>
+			<td colspan="2"  style="padding:20px ;" align="center" class="small">
+			   {$CMOD.LBL_CUSTOM_ACCESS_MESG} 
+			   <a href="javascript:onClick=callEditDiv('{$modulename}','create','')">{$CMOD.LNK_CLICK_HERE}</a>
+			   {$CMOD.LBL_CREATE_RULE_MESG}
+			</td>
+			</tr>
+		    </table>
+		    </table>	
+			<table border=0 cellspacing=0 cellpadding=5 width=100% class="tableHeading">
+			<tr><td>&nbsp;</td></tr>
+			</table>
+		    {/if}
+		    {/foreach}			
+		   </td></tr></table>
+				<br>
+		   </div>	
+				<!-- Edit Button -->
+				<table border=0 cellspacing=0 cellpadding=5 width=100% >
+				<tr><td class="small" ><div align=right><a href="#top">{$MOD.LBL_SCROLL}</a></div></td></tr>				</table>
+		 </td>
+                  </tr>
+				
+                </table>
+			
+			
+			
+			</td>
+			</tr>
+			</table>
+		</td>
+	</tr>
+	</table>
+		
+	</div>
+</td>
+        <td valign="top"><img src="{$IMAGE_PATH}showPanelTopRight.gif"></td>
+   </tr>
+</tbody>
+</table>
+<div id="tempdiv" style="display:block;position:absolute;left:225px;top:150px;"></div>
+<script>
+
+function callEditDiv(modulename,mode,id)
+{ldelim}
+	$("status").style.display="inline";
+	new Ajax.Request(
+		'index.php',
+		{ldelim}queue: {ldelim}position: 'end', scope: 'command'{rdelim},
+			method: 'post',
+			postBody: 'module=Users&action=UsersAjax&orgajax=true&mode='+mode+'&sharing_module='+modulename+'&shareid='+id,
+			onComplete: function(response) {ldelim}
+				$("status").style.display="none";
+				$("tempdiv").innerHTML=response.responseText;
+			{rdelim}
+		{rdelim}
+	);
+{rdelim}
+
+function fnwriteRules(module,related)
+{ldelim}
+		var modulelists = new Array();
+		modulelists = related.split('###');
+		var relatedstring ='';
+		var relatedtag;
+		var relatedselect;
+		var modulename;
+		for(i=0;i < modulelists.length-1;i++)
+		{ldelim}
+			modulename = modulelists[i]+"_accessopt";
+			relatedtag = document.getElementById(modulename);
+			relatedselect = relatedtag.options[relatedtag.selectedIndex].text;
+			relatedstring += modulelists[i]+':'+relatedselect+' ';
+		{rdelim}	
+		var tagName = document.getElementById(module+"_share");
+		var tagName2 = document.getElementById(module+"_access");
+		var tagName3 = document.getElementById('share_memberType');
+		var soucre =  document.getElementById("rules");
+		var soucre1 =  document.getElementById("relrules");
+		var select1 = tagName.options[tagName.selectedIndex].text;
+		var select2 = tagName2.options[tagName2.selectedIndex].text;
+		var select3 = tagName3.options[tagName3.selectedIndex].text;
+		soucre.innerHTML = module +" of <b>\"" + select1 + "\"</b> can be accessed by <b>\"" +select2 + "\"</b> in the permission "+select3;
+		soucre1.innerHTML = "<b>Related Module Rights</b> "+ relatedstring;
+{rdelim}
+
+</script>

Modified: vtigercrm/trunk/Smarty/templates/OrgSharingEditView.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/OrgSharingEditView.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/OrgSharingEditView.tpl Tue Jun 20 01:02:26 2006
@@ -9,67 +9,77 @@
   *
  ********************************************************************************/
 -->*}
-<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">
+<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%">
+        <br>
 
-<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_ORG_SHARING_PRIVILEGES}</b></span>
-<hr noshade="noshade" size="1" />
-</td>
-</tr>
-<tr><td height=20 colspan=3>&nbsp;</td></tr>
-<tr>
-<td width="75%" style="padding-left:20px;" valign="top">
+	<div align=center>
+			{include file="SetMenu.tpl"}
+				<!-- DISPLAY -->
+				<table border=0 cellspacing=0 cellpadding=5 width=100% class="settingsSelUITopLine">
+				<form action="index.php" method="post" name="def_org_share" id="form">
+				<input type="hidden" name="module" value="Users">
+				<input type="hidden" name="action" value="SaveOrgSharing">
+				<input type="hidden" name="parenttab" value="Settings">
+				<tr>
+					<td width=50 rowspan=2 valign=top><img src="{$IMAGE_PATH}shareaccess.gif" alt="Users" width="48" height="48" border=0 title="Users"></td>
+					<td class=heading2 valign=bottom><b><a href="index.php?module=Settings&action=index&parenttab=Settings">{$MOD.LBL_SETTINGS}</a> > {$MOD.LBL_EDIT} {$MOD.LBL_SHARING_ACCESS} </b></td>
+					<td rowspan=2 class="small" align=right>&nbsp;</td>
+				</tr>
+				<tr>
+					<td valign=top class="small">{$MOD.LBL_SHARING_ACCESS_DESCRIPTION}</td>
+				</tr>
+				</table>
+
+				<br>
+				<table border=0 cellspacing=0 cellpadding=5 width=100% class="tableHeading">
+				<tr>
+					<td class="big"><strong>{$CMOD.LBL_GLOBAL_ACCESS_PRIVILEGES}</strong></td>
+					<td class="small" align=right>
+						<input class="crmButton small save" title="Save" accessKey="C" type="submit" name="Save" value="{$CMOD.LBL_SAVE_PERMISSIONS}">&nbsp;
+						<input class="crmButton small cancel" title="{$APP.LBL_CANCEL_BUTTON_TITLE}" accessKey="{$APP.LBL_CANCEL_BUTTON_KEY}" type="button" name="Cancel" value="{$APP.LBL_CANCEL_BUTTON_LABEL}" onClick="window.history.back();">
+					</td>
+				</tr>
+				</table>
+
 	
-	<table border="0" cellpadding="" cellspacing="0" width="75%">
-	<tbody>
-	<form action="index.php" method="post" name="def_org_share" id="form">
-	<input type="hidden" name="module" value="Users">
-	<input type="hidden" name="action" value="SaveOrgSharing">
-	<input type="hidden" name="parenttab" value="Settings">
-	<tr>
-	<td class="genHeaderSmall" height="25" valign="middle">{$CMOD.LBL_GLOBAL_ACCESS_PRIVILEGES}</td>
-	<td align="right"><input class="small" title="Save" accessKey="C" type="submit" name="Save" value="{$CMOD.LBL_SAVE_PERMISSIONS}"></td>
-	</tr>
-	<tr><td colspan="2" height="20">&nbsp;</td></tr>
-	<tr>
-	<td colspan="2" style="padding: 0px 0px 0px 1px;" bgcolor="#ffffff">
-
-	<table class="globTab" cellpadding="5" cellspacing="0">
-	<tbody>
-	{foreach item=elements from=$ORGINFO}	
-	<tr>
-	<th width="30%">{$APP[$elements.0]}</th>
-	<td width="70%">{$elements.2}</td>
-	<tr>
-	{/foreach}
-	</tbody>
-	</table>
-	</td>
-	</tr>
-	<tr><td colspan="2" height="20">&nbsp;</td></tr>
-	<tr>
-	<td align="center" colspan=2><input class="small" title="{$APP.LBL_CANCEL_BUTTON_TITLE}" accessKey="{$APP.LBL_CANCEL_BUTTON_KEY}" type="button" name="Cancel" value="{$APP.LBL_CANCEL_BUTTON_LABEL}" onClick="window.history.back();"></td>
-	</tr>
+				<table cellspacing="0" cellpadding="5" class="listTable" width="100%">
+				{foreach item=elements from=$ORGINFO}	
+				<tr>
+                    		    <td width="30%" class="colHeader small" nowrap>{$APP[$elements.0]}</td>
+				    <td width="70%" class="listTable small">{$elements.2}</td>
+				<tr>
+				{/foreach}
+				</table>
 	</form>
-	</tbody>
 	</table>
 
+				<table border=0 cellspacing=0 cellpadding=5 width=100% >
+				<tr><td class="small" ><div align=right><a href="#top">{$MOD.LBL_SCROLL}</a></div></td></tr>				</table>
+		 </td>
+                  </tr>
+				
+                </table>
+			
+			
+			
+			</td>
+			</tr>
+			</table>
+		</td>
+	</tr>
+	</table>
+		
+
+
 </td>
-<td width="1%" style="border-right:1px dotted #CCCCCC;">&nbsp;</td>
-</tr>
-</table>
-</td>
-</tr>
-</table>
-</td>
-</tr>
+        <td valign="top"><img src="{$IMAGE_PATH}showPanelTopRight.gif"></td>
+   </tr>
+</tbody>
 </table>
 <script>
 





More information about the vtigercrm-commits mailing list