0byt3m1n1
Path:
/
data
/
applications
/
aps.bak
/
vtiger
/
5.0.4
/
standard
/
htdocs
/
Smarty
/
templates
/
[
Home
]
File: ProfileDetailView.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. * ********************************************************************************/ -->*} {literal} <style> .showTable{ display:inline-table; } .hideTable{ display:none; } </style> {/literal} <script language="JAVASCRIPT" type="text/javascript" src="include/js/smoothscroll.js"></script> <script language="JAVASCRIPT" type="text/javascript"> {literal} function UpdateProfile() { if(default_charset.toLowerCase() == 'utf-8') { var prof_name = $('profile_name').value; var prof_desc = $('description').value; } else { var prof_name = escapeAll($('profile_name').value); var prof_desc = escapeAll($('description').value); } if(prof_name == '') { $('profile_name').focus(); {/literal} alert("{$APP.PROFILENAME_CANNOT_BE_EMPTY}"); {literal} } else { {/literal} var urlstring ="module=Users&action=UsersAjax&file=RenameProfile&profileid="+{$PROFILEID}+"&profilename="+prof_name+"&description="+prof_desc; {literal} new Ajax.Request( 'index.php', {queue: {position: 'end', scope: 'command'}, method: 'post', postBody:urlstring, onComplete: function(response) { $('renameProfile').style.display="none"; window.location.reload(); {/literal} alert("{$APP.PROFILE_DETAILS_UPDATED}"); {literal} } } ); } } </script> {/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'} <form method="post" name="new" id="form"> <input type="hidden" name="module" value="Settings"> <input type="hidden" name="action" value="profilePrivileges"> <input type="hidden" name="parenttab" value="Settings"> <input type="hidden" name="return_action" value="profilePrivileges"> <input type="hidden" name="mode" value="edit"> <input type="hidden" name="profileid" value="{$PROFILEID}"> <!-- DISPLAY --> <table class="settingsSelUITopLine" border="0" cellpadding="5" cellspacing="0" width="100%"> <tbody><tr> <td rowspan="2" valign="top" width="50"><img src="{$IMAGE_PATH}ico-profile.gif" alt="{$MOD.LBL_PROFILES}" title="{$MOD.LBL_PROFILES}" border="0" height="48" width="48"></td> <td class="heading2" valign="bottom"><b><a href="index.php?module=Settings&action=index&parenttab=Settings">{$MOD.LBL_SETTINGS}</a> > <a href="index.php?module=Settings&action=ListProfiles&parenttab=Settings">{$CMOD.LBL_PROFILE_PRIVILEGES}</a> > {$CMOD.LBL_VIEWING} "{$PROFILE_NAME}"</b></td> </tr> <tr> <td class="small" valign="top">{$CMOD.LBL_PROFILE_MESG} "{$PROFILE_NAME}" </td> </tr> </tbody></table> <table border="0" cellpadding="10" cellspacing="0" width="100%"> <tbody><tr> <td valign="top"> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tbody><tr> <td><table border="0" cellpadding="0" cellspacing="0" width="100%"> <tbody><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> </tbody></table> <table class="prvPrfOutline" border="0" cellpadding="0" cellspacing="0" width="100%"> <tbody><tr> <td><!-- tabs --> <!-- Headers --> <table border="0" cellpadding="5" cellspacing="0" width="100%"> <tbody><tr> <td><table class="small" border="0" cellpadding="5" cellspacing="0" width="100%"> <tbody><tr> <td><!-- Module name heading --> <table class="small" border="0" cellpadding="2" cellspacing="0"> <tbody><tr> <td valign="top"><img src="{$IMAGE_PATH}prvPrfHdrArrow.gif"> </td> <td class="prvPrfBigText"><b> {$CMOD.LBL_DEFINE_PRIV_FOR} <{$PROFILE_NAME}> </b><br> <font class="small">{$CMOD.LBL_USE_OPTION_TO_SET_PRIV}</font> </td> <td class="small" style="padding-left: 10px;" align="right"></td> </tr> </tbody></table></td> <td align="right" valign="bottom"> <input type="button" value="{$APP.LBL_RENAMEPROFILE_BUTTON_LABEL}" title="{$APP.LBL_RENAMEPROFILE_BUTTON_LABEL}" class="crmButton small edit" name="rename_profile" onClick = "show('renameProfile');"> <input type="submit" value="{$APP.LBL_EDIT_BUTTON_LABEL}" title="{$APP.LBL_EDIT_BUTTON_LABEL}" class="crmButton small edit" name="edit" > </td> </tr></tbody></table> <!-- RenameProfile Div start --> <div class="layerPopup" style="left:350px;width:500px;top:300px;display:none;" id="renameProfile"> <table class="layerHeadingULine" border="0" cellpadding="3" cellspacing="0" width="100%"> <tr style="cursor:move;"> <td class="layerPopupHeading" id = "renameUI" align="left" width="60%">{$APP.LBL_RENAME_PROFILE}</td> <td align="right" width="40%"><a href="javascript:fnhide('renameProfile');"><img src="themes/bluelagoon/images/close.gif" align="middle" border="0"></a></td> </tr> </table> <table align="center" border="0" cellpadding="5" cellspacing="0" width="95%"> <tr> <td class="small"> <table cellspacing="0" align="center" bgcolor="white" border="0" cellpadding="5" width="100%"> <tr> <td align="right" width="25%" style="padding-right:10px;" nowrap><b>{$APP.LBL_PROFILE_NAME} :</b></td> <td align="left" width="75%" style="padding-right:10px;"><input id = "profile_name" name="profile_name" class="txtBox" value="{$PROFILE_NAME}" type="text"></td> </tr> <tr> <td align="right" width="25%" style="padding-right:10px;" nowrap><b>{$APP.LBL_DESCRIPTION} :</b></td> <td align="left" width="75%" style="padding-right:10px;"><textarea name="description" id = "description" class="txtBox">{$PROFILE_DESCRIPTION} </textarea></td> </tr> </table> </td> </tr> </table> <table class="layerPopupTransport" border="0" cellpadding="5" cellspacing="0" width="100%"> <tr> <td align = "center"> <input name="save" value="{$APP.LBL_UPDATE}" class="crmbutton small save" onclick="UpdateProfile();" type="button" title="{$APP.LBL_UPDATE}"> <input name="cancel" value="{$APP.LBL_CANCEL_BUTTON_LABEL}" class="crmbutton small save" onclick="fnhide('renameProfile');" type="button" title="{$APP.LBL_CANCEL_BUTTON_LABEL}"> </td> </tr> </table> </div> <!-- RenameProfile Div end --> <!-- privilege lists --> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tbody><tr> <td style="height: 10px;" align="center"></td> </tr> </tbody></table> <table border="0" cellpadding="10" cellspacing="0" width="100%"> <tbody><tr> <td> <table border="0" cellpadding="5" cellspacing="0" width="100%"> <tbody> <tr> <td class="cellLabel big"> {$CMOD.LBL_SUPER_USER_PRIV} </td> </tr> </tbody> </table> <table class="small" align="center" border="0" cellpadding="5" cellspacing="0" width="90%"> <tbody><tr> <td class="prvPrfTexture" style="width: 20px;"> </td> <td valign="top" width="97%"><table class="small" border="0" cellpadding="2" cellspacing="0" width="100%"> <tbody> <tr id="gva"> <td valign="top">{$GLOBAL_PRIV.0}</td> <td ><b>{$CMOD.LBL_VIEW_ALL}</b> </td> </tr> <tr > <td valign="top"></td> <td width="100%" >{$CMOD.LBL_ALLOW} "{$PROFILE_NAME}" {$CMOD.LBL_MESG_VIEW}</td> </tr> <tr> <td> </td> </tr> <tr> <td valign="top">{$GLOBAL_PRIV.1}</td> <td ><b>{$CMOD.LBL_EDIT_ALL}</b> </td> </tr> <tr> <td valign="top"></td> <td > {$CMOD.LBL_ALLOW} "{$PROFILE_NAME}" {$CMOD.LBL_MESG_EDIT}</td> </tr> </tbody></table> </td> </tr> </tbody></table> <br> <table border="0" cellpadding="5" cellspacing="0" width="100%"> <tbody><tr> <td class="cellLabel big"> {$CMOD.LBL_SET_PRIV_FOR_EACH_MODULE} </td> </tr> </tbody></table> <table class="small" align="center" border="0" cellpadding="5" cellspacing="0" width="90%"> <tbody><tr> <td class="prvPrfTexture" style="width: 20px;"> </td> <td valign="top" width="97%"> <table class="small listTable" border="0" cellpadding="5" cellspacing="0" width="100%"> <tbody> <tr id="gva"> <td colspan="2" rowspan="2" class="small colHeader"><strong> {$CMOD.LBL_TAB_MESG_OPTION} </strong><strong></strong></td> <td colspan="3" class="small colHeader"><div align="center"><strong> {$CMOD.LBL_EDIT_PERMISSIONS} </strong></div></td> <td rowspan="2" class="small colHeader" nowrap="nowrap"> {$CMOD.LBL_FIELDS_AND_TOOLS_SETTINGS} </td> </tr> <tr id="gva"> <td class="small colHeader"><div align="center"><strong>{$CMOD.LBL_CREATE_EDIT} </strong></div></td> <td class="small colHeader"> <div align="center"><strong>{$CMOD.LBL_VIEW} </strong></div></td> <td class="small colHeader"> <div align="center"><strong>{$CMOD.LBL_DELETE}</strong></div></td> </tr> <!-- module loops--> {foreach key=tabid item=elements from=$TAB_PRIV} <tr> {assign var=modulename value=$TAB_PRIV[$tabid][0]} <td class="small cellLabel" width="3%"><div align="right"> {$TAB_PRIV[$tabid][1]} </div></td> <td class="small cellLabel" width="40%"><p>{$APP[$modulename]}</p></td> <td class="small cellText" width="15%"> <div align="center"> {$STANDARD_PRIV[$tabid][1]} </div></td> <td class="small cellText" width="15%"> <div align="center"> {$STANDARD_PRIV[$tabid][3]} </div></td> <td class="small cellText" width="15%"> <div align="center"> {$STANDARD_PRIV[$tabid][2]} </div></td> <td class="small cellText" width="22%"> <div align="center"> {if $FIELD_PRIVILEGES[$tabid] neq NULL} <img src="{$IMAGE_PATH}showDown.gif" alt="{$APP.LBL_EXPAND_COLLAPSE}" title="{$APP.LBL_EXPAND_COLLAPSE}" onclick="fnToggleVIew('{$modulename}_view')" border="0" height="16" width="40"> {/if} </div></td> </tr> <tr class="hideTable" id="{$modulename}_view" className="hideTable"> <td colspan="6" class="small settingsSelectedUI"> <table class="small" border="0" cellpadding="2" cellspacing="0" width="100%"> <tbody> {if $FIELD_PRIVILEGES[$tabid] neq ''} <tr> {if $modulename eq 'Calendar'} <td class="small colHeader" colspan="6" valign="top">{$CMOD.LBL_FIELDS_TO_BE_SHOWN} ({$APP.Tasks})</td> {else} <td class="small colHeader" colspan="6" valign="top">{$CMOD.LBL_FIELDS_TO_BE_SHOWN}</td> {/if} </tr> {/if} {foreach item=row_values from=$FIELD_PRIVILEGES[$tabid]} <tr> {foreach item=element from=$row_values} <td valign="top">{$element.1}</td> <td>{$element.0}</td> {/foreach} </tr> {/foreach} {if $modulename eq 'Calendar'} <tr> <td class="small colHeader" colspan="6" valign="top">{$CMOD.LBL_FIELDS_TO_BE_SHOWN} ({$APP.Events})</td> </tr> {foreach item=row_values from=$FIELD_PRIVILEGES[16]} <tr> {foreach item=element from=$row_values} <td valign="top">{$element.1}</td> <td>{$element.0}</td> {/foreach} </tr> {/foreach} {/if} {if $UTILITIES_PRIV[$tabid] neq ''} <tr> <td colspan="6" class="small colHeader" valign="top">{$CMOD.LBL_TOOLS_TO_BE_SHOWN} </td> </tr> {/if} {foreach item=util_value from=$UTILITIES_PRIV[$tabid]} <tr> {foreach item=util_elements from=$util_value} <td valign="top">{$util_elements.1}</td> <td>{$APP[$util_elements.0]}</td> {/foreach} </tr> {/foreach} </tbody> </table> </td> </tr> {/foreach} </tbody> </table> </td> </tr> </tbody> </table> </td> </tr> <table border="0" cellpadding="2" cellspacing="0"> <tr> <td align="left"><font color="red" size=5>*</font>{$CMOD.LBL_MANDATORY_MSG}</td> </tr> <tr> <td align="left"><font color="blue" size=5>*</font>{$CMOD.LBL_DISABLE_FIELD_MSG}</td> </tr> </table> <tr> <td style="border-top: 2px dotted rgb(204, 204, 204);" align="right"> <!-- wizard buttons --> <table border="0" cellpadding="2" cellspacing="0"> <tbody> <tr> <td><input type="submit" value="{$APP.LBL_EDIT_BUTTON_LABEL}" title="{$APP.LBL_EDIT_BUTTON_LABEL}" class="crmButton small edit" name="edit"></td> <td> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </td> </tr> </tbody></table> <table class="small" border="0" cellpadding="0" cellspacing="0" width="100%"> <tbody><tr> <td><img src="{$IMAGE_PATH}prvPrfBottomLeft.gif"></td> <td class="prvPrfBottomBg" width="100%"></td> <td><img src="{$IMAGE_PATH}prvPrfBottomRight.gif"></td> </tr> </tbody> </table></td> </tr> </tbody></table> <p> </p> <table border="0" cellpadding="5" cellspacing="0" width="100%"> <tbody><tr><td class="small" align="right" nowrap="nowrap"><a href="#top">{$MOD.LBL_SCROLL}</a></td></tr> </tbody></table> </td> </tr> </tbody></table> </form> <!-- End of Display --> </td> </tr> </table> </td> </tr> </table> </div> </td> <td valign="top"><img src="{$IMAGE_PATH}showPanelTopRight.gif"></td> </tr> </tbody> </table> <script language="javascript" type="text/javascript"> {literal} function fnToggleVIew(obj){ var tagStyle = document.getElementById(obj).className; if(tagStyle == 'hideTable') document.getElementById(obj).className = 'showTable'; else document.getElementById(obj).className = 'hideTable'; } {/literal} {literal} //for move RenameProfile var Handle = document.getElementById("renameUI"); var Root = document.getElementById("renameProfile"); Drag.init(Handle,Root); {/literal} </script>