PHP 知识管理系统(基于树结构的知识管理系统), 英文原版的PHP源码。

源代码在线查看: permissions.smarty.svn-base

软件大小: 30962 K
上传用户: ddddong
关键词: PHP 管理系统 源码
下载地址: 免注册下载 普通下载 VIP

相关代码

				Folder permissions for "{$foldername|sanitize}"																				{* check if there are roles etc *}								{if ((empty($roles) && empty($groups)))}				    {i18n}No roles or groups have been defined.  Permissions can only be allocated to roles and groups.{/i18n}				{else}								{* otherwise continue *}				{i18n}Manage security{/i18n}: {i18n}View permissions overview{/i18n}				| {i18n}View resolved permissions for user{/i18n}												{if ($can_inherit)}								{i18n}This folder defines its own permissions.{/i18n}								   kt:deleteMessage="{i18n}Are you sure you wish to reinstate inherited permissions?{/i18n}"				   href="{addQS context=$context}action=inheritPermissions{/addQS}">{i18n}Inherit permissions{/i18n}								{/if}								{$context->oPage->requireJSResource("resources/js/jsonlookup.js")}				{$context->oPage->requireJSResource("resources/js/permissions.js")}								{capture assign=sJavascript}initializePermissions('entities', '{addQS}fFolderId={$context->oFolder->getId()}&action=json&json_action=getEntities{/addQS}', {$jsonpermissions});{/capture}				{$context->oPage->requireJSStandalone($sJavascript)}																				  {i18n}Select roles and groups for whom you wish to change permission assignment from the box on the left, and move them over to the box on the right using the button with right-pointing arrows. You can then allocate or remove permissions from these entities and save by pressing the 'Update Permission Assignments' button'.{/i18n}																				    				        {i18n}Available Entities{/i18n}				         				        {i18n}Assigned Entities{/i18n}				    																    				    								  				  								  {i18n}Filter{/i18n}{i18n}Show All{/i18n}				    								    								    				    				    								    								    								  				  				  {i18n}Filter{/i18n}				    				    																  				  								  																																				  				  				{/if}																				{if (!empty($conditions))}				{if ($edit || $dynamic_conditions)}				{i18n}Dynamic permissions{/i18n}				{/if}				{ if $dynamic_conditions }								  				    				{ if $edit }				      {i18n}Remove{/i18n}				{ /if }				      {i18n}Group{/i18n}				      {i18n}Condition{/i18n}				{foreach from=$permissions item=oPerm}				      {$oPerm->getHumanName()}				{/foreach}				    				  				  				{ foreach from=$dynamic_conditions item=oDynamicCondition }				    				{php}				$this->assign("oGroup", Group::get($this->_tpl_vars['oDynamicCondition']->getGroupId()));				$this->assign("oCondition", KTSavedSearch::get($this->_tpl_vars['oDynamicCondition']->getConditionId()));				$this->assign("aPermissions", $this->_tpl_vars['oDynamicCondition']->getAssignment());				{/php}				{ if $edit }				  				{capture assign=sQS}action=removeDynamicCondition&fFolderId={$iFolderId}&fDynamicConditionId={$oDynamicCondition->getId()}{/capture}				     {i18n}Delete{/i18n}				  				{/if}				    {$oGroup->getName()}				    {$oCondition->getName()}				{foreach from=$permissions item=oPerm}				  {assign var=bHasPerm value=$oPerm->getId()|in_array:$aPermissions}				  { if $bHasPerm }				{i18n}Allowed{/i18n}				{ else }				{i18n}Denied{/i18n}				  { /if }				{/foreach}				    				{ /foreach }				  								{ /if }								{ if $edit }				{i18n}Add a new dynamic permission{/i18n}																												  {i18n}Group{/i18n}				  {i18n}Condition{/i18n}				{foreach from=$document_permissions item=oPerm}				  {$oPerm->getHumanName()}				{/foreach}																				  {entity_select entities=$groups name=fGroupId none=true}				  {entity_select entities=$conditions name=fConditionId none=true}				{entity_checkboxes entities=$document_permissions name=fPermissionIds assign=aPermissionCheckboxes method="none"}				{foreach from=$aPermissionCheckboxes item=sCheckbox}				  {$sCheckbox}				{/foreach}																								{ /if }				{/if}							

相关资源