function content_56854e7bdd6f5($_smarty_tpl)
    {
        ?>
<div class="container-fluid" id="AsteriskServerDetails"><div class="widget_header row-fluid"><div class="span8"><h3><?php 
        echo vtranslate('LBL_PBXMANAGER', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
        ?>
</h3></div><?php 
        $_smarty_tpl->tpl_vars['MODULE_MODEL'] = new Smarty_variable(Settings_PBXManager_Module_Model::getCleanInstance(), null, 0);
        ?>
<div class="span4"><div class="pull-right"><button class="btn editButton" data-url='<?php 
        echo $_smarty_tpl->tpl_vars['MODULE_MODEL']->value->getEditViewUrl();
        ?>
&mode=showpopup&id=<?php 
        echo $_smarty_tpl->tpl_vars['RECORD_ID']->value;
        ?>
' type="button" title="<?php 
        echo vtranslate('LBL_EDIT', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
        ?>
"><strong><?php 
        echo vtranslate('LBL_EDIT', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
        ?>
</strong></button></div></div></div><hr><div class="contents row-fluid"><table class="table table-bordered table-condensed themeTableColor"><thead><tr class="blockHeader"><th colspan="2" class="mediumWidthType"><span class="alignMiddle"><?php 
        echo vtranslate('LBL_PBXMANAGER_CONFIG', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
        ?>
</span></th></tr></thead><tbody><?php 
        $_smarty_tpl->tpl_vars['FIELDS'] = new Smarty_variable(PBXManager_PBXManager_Connector::getSettingsParameters(), null, 0);
        $_smarty_tpl->tpl_vars['FIELD_TYPE'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['FIELD_TYPE']->_loop = false;
        $_smarty_tpl->tpl_vars['FIELD_NAME'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['FIELDS']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['FIELD_TYPE']->key => $_smarty_tpl->tpl_vars['FIELD_TYPE']->value) {
            $_smarty_tpl->tpl_vars['FIELD_TYPE']->_loop = true;
            $_smarty_tpl->tpl_vars['FIELD_NAME']->value = $_smarty_tpl->tpl_vars['FIELD_TYPE']->key;
            ?>
<tr><td width="25%"><label class="muted pull-right marginRight10px"><?php 
            echo vtranslate($_smarty_tpl->tpl_vars['FIELD_NAME']->value, $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
            ?>
</label></td><td style="border-left: none;"><span><?php 
            echo $_smarty_tpl->tpl_vars['RECORD_MODEL']->value->get($_smarty_tpl->tpl_vars['FIELD_NAME']->value);
            ?>
</span></td></tr><?php 
        }
        ?>
<input type="hidden" name="module" value="PBXManager"/><input type="hidden" name="action" value="SaveAjax"/><input type="hidden" name="parent" value="Settings"/><input type="hidden" class="recordid" name="id" value="<?php 
        echo $_smarty_tpl->tpl_vars['RECORD_ID']->value;
        ?>
"></tbody></table></div></div><br><div class="span8 alert alert-danger container-fluid"><?php 
        echo vtranslate('LBL_NOTE', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
        ?>
<br><?php 
        echo vtranslate('LBL_PBXMANAGER_INFO', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
        ?>
</div><?php 
    }
Ejemplo n.º 2
0
 public function getModule($raw = true)
 {
     $moduleName = Settings_PBXManager_Module_Model::getModuleName();
     if (!$raw) {
         $parentModule = Settings_PBXManager_Module_Model::getParentName();
         if (!empty($parentModule)) {
             $moduleName = $parentModule . ':' . $moduleName;
         }
     }
     return $moduleName;
 }
Ejemplo n.º 3
0
 public function gatewayInfo(Vtiger_Request $request)
 {
     $recordModel = Settings_PBXManager_Record_Model::getInstance();
     $moduleModel = Settings_PBXManager_Module_Model::getCleanInstance();
     $viewer = $this->getViewer($request);
     $viewer->assign('RECORD_ID', $recordModel->get('id'));
     $viewer->assign('MODULE_MODEL', $moduleModel);
     $viewer->assign('MODULE', $request->getModule(false));
     $viewer->assign('QUALIFIED_MODULE', $request->getModule(false));
     $viewer->assign('RECORD_MODEL', $recordModel);
     $viewer->view('index.tpl', $request->getModule(false));
 }