晋太元中,武陵人捕鱼为业。缘溪行,忘路之远近。忽逢桃花林,夹岸数百步,中无杂树,芳草鲜美,落英缤纷。渔人甚异之,复前行,欲穷其林。 林尽水源,便得一山,山有小口,仿佛若有光。便舍船,从口入。初极狭,才通人。复行数十步,豁然开朗。土地平旷,屋舍俨然,有良田、美池、桑竹之属。阡陌交通,鸡犬相闻。其中往来种作,男女衣着,悉如外人。黄发垂髫,并怡然自乐。 见渔人,乃大惊,问所从来。具答之。便要还家,设酒杀鸡作食。村中闻有此人,咸来问讯。自云先世避秦时乱,率妻子邑人来此绝境,不复出焉,遂与外人间隔。问今是何世,乃不知有汉,无论魏晋。此人一一为具言所闻,皆叹惋。余人各复延至其家,皆出酒食。停数日,辞去。此中人语云:“不足为外人道也。”(间隔 一作:隔绝) 既出,得其船,便扶向路,处处志之。及郡下,诣太守,说如此。太守即遣人随其往,寻向所志,遂迷,不复得路。 南阳刘子骥,高尚士也,闻之,欣然规往。未果,寻病终。后遂无问津者。
|
Server : Apache System : Linux srv.rainic.com 4.18.0-553.47.1.el8_10.x86_64 #1 SMP Wed Apr 2 05:45:37 EDT 2025 x86_64 User : rainic ( 1014) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/akaindir/public_html/crm/layouts/v7/modules/Settings/Roles/ |
Upload File : |
{*+**********************************************************************************
* The contents of this file are subject to the vtiger CRM Public License Version 1.1
* ("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.
************************************************************************************}
{* modules/Settings/Roles/views/EditAjax.php *}
{* START YOUR IMPLEMENTATION FROM BELOW. Use {debug} for information *}
<div class="editViewPageDiv viewContent">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="editViewHeader">
{if $RECORD_MODEL->getId()}
<h4>
{vtranslate('LBL_EDIT_ROLE', $QUALIFIED_MODULE)}
</h4>
{else}
<h4>
{vtranslate('LBL_CREATE_ROLE', $QUALIFIED_MODULE)}
</h4>
{/if}
</div>
<hr>
<form class="form-horizontal" id="EditView" name="EditRole" method="post" action="index.php" enctype="multipart/form-data">
<div class="editViewBody">
<div class="editViewContents">
<input type="hidden" name="module" value="Roles">
<input type="hidden" name="action" value="Save">
<input type="hidden" name="parent" value="Settings">
{assign var=RECORD_ID value=$RECORD_MODEL->getId()}
<input type="hidden" name="record" value="{$RECORD_ID}" />
<input type="hidden" name="mode" value="{$MODE}">
<input type="hidden" name="profile_directly_related_to_role_id" value="{$PROFILE_ID}" />
{assign var=HAS_PARENT value="{if $RECORD_MODEL->getParent()}true{/if}"}
{if $HAS_PARENT}
<input type="hidden" name="parent_roleid" value="{$RECORD_MODEL->getParent()->getId()}">
{/if}
<div name='editContent'>
<div class="form-group">
<label class="control-label fieldLabel col-lg-3 col-md-3 col-sm-3">
<strong>{vtranslate('LBL_NAME', $QUALIFIED_MODULE)} <span class="redColor">*</span></strong>
</label>
<div class="controls fieldValue col-lg-4 col-md-4 col-sm-4" >
<div class=""> <input type="text" class="inputElement" name="rolename" id="profilename" value="{$RECORD_MODEL->getName()}" data-rule-required='true' />
</div> </div>
</div>
<div class="form-group">
<label class="control-label fieldLabel col-lg-3 col-md-3 col-sm-3">
<strong>{vtranslate('LBL_REPORTS_TO', $QUALIFIED_MODULE)}</strong>
</label>
<div class="controls fieldValue col-lg-4 col-md-4 col-sm-4" >
<input type="hidden" name="parent_roleid" {if $HAS_PARENT}value="{$RECORD_MODEL->getParent()->getId()}"{/if}>
<div class=""> <input type="text" class="inputElement" name="parent_roleid_display" {if $HAS_PARENT}value="{$RECORD_MODEL->getParent()->getName()}"{/if} readonly>
</div></div>
</div>
<div class="form-group">
<label class="control-label fieldLabel col-lg-3 col-md-3 col-sm-3">
<strong>{vtranslate('LBL_CAN_ASSIGN_RECORDS_TO', $QUALIFIED_MODULE)}</strong>
</label>
<div class="controls fieldValue col-lg-9 col-md-9 col-sm-9">
<div class="radio">
<label>
<input type="radio" value="1"{if !$RECORD_MODEL->get('allowassignedrecordsto')} checked=""{/if} {if $RECORD_MODEL->get('allowassignedrecordsto') eq '1'} checked="" {/if} name="allowassignedrecordsto" data-handler="new" class="alignTop"/>
{vtranslate('LBL_ALL_USERS',$QUALIFIED_MODULE)}</label>
</div>
<div class="radio">
<label>
<input type="radio" value="2" {if $RECORD_MODEL->get('allowassignedrecordsto') eq '2'} checked="" {/if} name="allowassignedrecordsto" data-handler="new" class="alignTop"/>
{vtranslate('LBL_USERS_WITH_SAME_OR_LOWER_LEVEL',$QUALIFIED_MODULE)}</label>
</div>
<div class="radio">
<label>
<input type="radio" value="3" {if $RECORD_MODEL->get('allowassignedrecordsto') eq '3'} checked="" {/if} name="allowassignedrecordsto" data-handler="new" class="alignTop"/>
{vtranslate('LBL_USERS_WITH_LOWER_LEVEL',$QUALIFIED_MODULE)}</label>
</div>
</div>
</div>
<div class="form-group">
<label class="control-label fieldLabel col-lg-3 col-md-3 col-sm-3">
<strong>{vtranslate('LBL_PRIVILEGES',$QUALIFIED_MODULE)}</strong>
</label>
<div class="controls fieldValue col-lg-9 col-md-9 col-sm-9">
<div class="radio">
<label>
<input type="radio" value="1" {if $PROFILE_DIRECTLY_RELATED_TO_ROLE} checked="" {/if} name="profile_directly_related_to_role" data-handler="new" class="alignTop"/>
{vtranslate('LBL_ASSIGN_NEW_PRIVILEGES',$QUALIFIED_MODULE)}</label>
</div>
<div class="radio">
<label>
<input type="radio" value="0" {if $PROFILE_DIRECTLY_RELATED_TO_ROLE eq false} checked="" {/if} name="profile_directly_related_to_role" data-handler="existing" class="alignTop"/>
{vtranslate('LBL_ASSIGN_EXISTING_PRIVILEGES',$QUALIFIED_MODULE)}</label>
</div>
</div>
</div>
<br>
<div class="form-group " data-content="new" >
<div class="profileData col-sm-12">
</div>
</div>
<div class="form-group " data-content="existing">
<div class="fieldLabel control-label col-lg-3 col-md-3 col-sm-3"></div>
<div class="fieldValue controls col-lg-9 col-md-9 col-sm-9">
{assign var="ROLE_PROFILES" value=$RECORD_MODEL->getProfiles()}
<select class="select2 inputElement col-lg-12 hide" multiple="true" id="profilesList" name="profiles[]" data-placeholder="{vtranslate('LBL_CHOOSE_PROFILES',$QUALIFIED_MODULE)}" style="width: 460px" data-rule-required="true">
{foreach from=$ALL_PROFILES item=PROFILE}
{if $PROFILE->isDirectlyRelated() eq false}
<option value="{$PROFILE->getId()}" {if isset($ROLE_PROFILES[$PROFILE->getId()])}selected="true"{/if}>{$PROFILE->getName()}</option>
{/if}
{/foreach}
</select>
</div>
</div>
</div>
</div>
<div class='modal-overlay-footer clearfix'>
<div class="row clearfix">
<div class=' textAlignCenter col-lg-12 col-md-12 col-sm-12 '>
<button type='submit' class='btn btn-success saveButton' >{vtranslate('LBL_SAVE', $MODULE)}</button>
<a class='cancelLink' href="javascript:history.back()" type="reset">{vtranslate('LBL_CANCEL', $MODULE)}</a>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>