当前位置: 首页>>代码示例>>PHP>>正文


PHP FreePBX::View方法代码示例

本文整理汇总了PHP中FreePBX::View方法的典型用法代码示例。如果您正苦于以下问题:PHP FreePBX::View方法的具体用法?PHP FreePBX::View怎么用?PHP FreePBX::View使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在FreePBX的用法示例。


在下文中一共展示了FreePBX::View方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: _

			<!--Alert Info-->
			<div class="element-container">
				<div class="row">
					<div class="col-md-12">
						<div class="row">
							<div class="form-group">
								<div class="col-md-3">
									<label class="control-label" for="alertinfo"><?php 
echo _("Alert Info");
?>
</label>
									<i class="fa fa-question-circle fpbx-help-icon" data-for="alertinfo"></i>
								</div>
								<div class="col-md-9">
									<?php 
echo FreePBX::View()->alertInfoDrawSelect("alertinfo", $alertinfo);
?>
								</div>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-md-12">
						<span id="alertinfo-help" class="help-block fpbx-help-block"><?php 
echo _("ALERT_INFO can be used for distinctive ring with SIP devices.");
?>
</span>
					</div>
				</div>
			</div>
开发者ID:lidl,项目名称:core,代码行数:31,代码来源:advanced_form.php

示例2: set_language

function set_language($details = false)
{
    return \FreePBX::View()->setLanguage($details);
}
开发者ID:lidl,项目名称:framework,代码行数:4,代码来源:view.functions.php

示例3: filectime

    $pbxlibver = '.' . filectime("assets/js/pbxlib.js");
    $html .= '<script type="text/javascript" src="assets/js/pbxlib.js' . $version_tag . $pbxlibver . '"></script>';
} else {
    /*
     * files below:
     * menu.js - The FreePBX Top Navigation Bar, utilizes jqueryUI
     * jquery.hotkeys.js - a plug-in that lets you easily add and remove handlers for keyboard events anywhere in your code supporting almost any key combination. (https://github.com/jeresig/jquery.hotkeys)
     * jquery.cookie.js - for setting cookies (https://github.com/carhartl/jquery-cookie)
     * script.legacy.js - freepbx library
     * tabber-minimized.js - sed for module admin (hiding content)
     */
    $html .= '<script type="text/javascript" src="assets/js/jquery.hotkeys.js' . $version_tag . '"></script>' . '<script type="text/javascript" src="assets/js/jquery.numeric.js' . $version_tag . '"></script>' . '<script type="text/javascript" src="assets/js/jquery.cookie.js' . $version_tag . '"></script>' . '<script type="text/javascript" src="assets/js/script.legacy.js' . $version_tag . '"></script>' . '<script type="text/javascript" src="assets/js/jquery.autosize.min.js' . $version_tag . '"></script>' . '<script type="text/javascript" src="assets/js/history.js' . $version_tag . '"></script>' . '<script type="text/javascript" src="assets/js/tabber-minimized.js' . $version_tag . '"></script>';
}
//Please see the BMO View class for more information about this
if (FreePBX::View()->replaceState()) {
    $html .= '<script>history.replaceState(null, null, "' . FreePBX::View()->getQueryString() . '");</script>';
}
$html .= '<script type="text/javascript" src="assets/js/typeahead.bundle.min.js' . $version_tag . '"></script>';
$html .= '<script type="text/javascript" src="assets/js/search.js' . $version_tag . '"></script>';
if ($amp_conf['BRAND_ALT_JS']) {
    $html .= '<script type="text/javascript" src="' . $amp_conf['BRAND_ALT_JS'] . $version_tag . '"></script>';
}
if (isset($module_name) && $module_name != '') {
    $html .= framework_include_js($module_name, $module_page);
}
if ($amp_conf['BROWSER_STATS']) {
    $ga = "<script>\n\t\t\t(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\n\t\t\t(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),\n\t\t\tm=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)\n\t\t\t})(window,document,'script','//www.google-analytics.com/analytics.js','ga');\n\n\t\t\tga('create', 'UA-25724109-1', 'auto');  // Replace with your property ID.\n\n\t\t\tga('set', 'type', fpbx.conf.dist.pbx_type);\n\t\t\tga('set', 'typever', fpbx.conf.dist.pbx_version);\n\t\t\tga('set', 'astver', fpbx.conf.ASTVERSION);\n\t\t\tga('set', 'fpbxver', fpbx.conf.ver);\n\t\t\tga('set', 'display', \$.urlParam('display'));\n\t\t\tga('set', 'uniqueid', fpbx.conf.uniqueid);\n\n\t\t\tga('send', 'pageview');\n\n\t\t</script>";
    $html .= str_replace(array("\t", "\n"), '', $ga);
}
if (!empty($js_content)) {
    $html .= $js_content;
开发者ID:lidl,项目名称:framework,代码行数:31,代码来源:footer.php

示例4: buildselectbox

 function buildselectbox($currentvalue, $canbeempty, $onchange, $disable, $class = '')
 {
     $output = '';
     //TODO someone needs to fix this. Seems sort of irrelevant right now though
     $onchange = $onchange != '' ? " onchange=\"{$onchange}\"" : '';
     $output = \FreePBX::View()->alertInfoDrawSelect($this->_elemname, $currentvalue, $class, $canbeempty, $disable);
     return $output;
 }
开发者ID:lidl,项目名称:framework,代码行数:8,代码来源:components.class.php

示例5: _

<!--Alert Info-->
<div class="element-container">
	<div class="row">
		<div class="col-md-12">
			<div class="row">
				<div class="form-group">
					<div class="col-md-3">
						<label class="control-label" for="dring"><?php 
echo _("Alert Info");
?>
</label>
						<i class="fa fa-question-circle fpbx-help-icon" data-for="dring"></i>
					</div>
					<div class="col-md-9">
						<?php 
echo FreePBX::View()->alertInfoDrawSelect("dring", $dring ? $dring : '');
?>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div class="row">
		<div class="col-md-12">
			<span id="dring-help" class="help-block fpbx-help-block"><?php 
echo _("ALERT_INFO can be used for distinctive ring with SIP devices.");
?>
</span>
		</div>
	</div>
</div>
开发者ID:lidl,项目名称:findmefollow,代码行数:31,代码来源:form.php

示例6: _

<!--Alert Info-->
<div class="element-container">
	<div class="row">
		<div class="col-md-12">
			<div class="row">
				<div class="form-group">
					<div class="col-md-3">
						<label class="control-label" for="alertinfo"><?php 
echo _("Ring Tone");
?>
</label>
						<i class="fa fa-question-circle fpbx-help-icon" data-for="alertinfo"></i>
					</div>
					<div class="col-md-9">
						<?php 
echo FreePBX::View()->alertInfoDrawSelect("alertinfo", $ivr['alertinfo'] ? $ivr['alertinfo'] : '');
?>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div class="row">
		<div class="col-md-12">
			<span id="alertinfo-help" class="help-block fpbx-help-block"><?php 
echo _("Select a Ring Tone from the list of options above. This will determine how your phone sounds when it is rung from this group.");
?>
</span>
		</div>
	</div>
</div>
开发者ID:ringfreejohn,项目名称:pbxframework,代码行数:31,代码来源:simple_form.php

示例7: _

	<!--Parking Alert-Info-->
	<div class="element-container">
		<div class="row">
			<div class="col-md-12">
				<div class="row">
					<div class="form-group">
						<div class="col-md-3">
							<label class="control-label" for="alertinfo"><?php 
echo _("Parking Alert-Info");
?>
</label>
							<i class="fa fa-question-circle fpbx-help-icon" data-for="alertinfo"></i>
						</div>
						<div class="col-md-9">
							<?php 
echo FreePBX::View()->alertInfoDrawSelect("alertinfo", htmlspecialchars($alertinfo));
?>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="row">
			<div class="col-md-12">
				<span id="alertinfo-help" class="help-block fpbx-help-block"><?php 
echo _("Alert-Info to add to the call prior to sending back to the Originator or to the Alternate Destination.");
?>
</span>
			</div>
		</div>
	</div>
开发者ID:ringfreejohn,项目名称:pbxframework,代码行数:31,代码来源:lot.php

示例8: switch

//action actions
switch ($var['action']) {
    case 'ajax_save':
        //clear all buffers, we dont want to return any html
        while (ob_get_level()) {
            ob_end_clean();
        }
        $var['id'] = backup_put_backup($var);
        exit;
        //no need to do anything else, get out
    //no need to do anything else, get out
    case 'save':
        $var['id'] = backup_put_backup($var);
        $_REQUEST['id'] = $var['id'];
        $_REQUEST['action'] = 'edit';
        \FreePBX::View()->redirect_standard('id', 'action');
        break;
    case 'run':
        //dont stop untill were all done
        //backup will compelte EVEN IS USER NAVIGATES AWAY FROM PAGE!!
        ignore_user_abort(true);
        //clear all buffers, those will interfere with the stream
        while (ob_get_level()) {
            ob_end_clean();
        }
        ob_start();
        header('Content-Type: text/event-stream');
        header('Cache-Control: no-cache');
        $cmd = $amp_conf['AMPBIN'] . '/backup.php --id=' . escapeshellcmd($var['id']) . ' 2>&1';
        //start running backup
        $run = popen($cmd, 'r');
开发者ID:ringfreejohn,项目名称:pbxframework,代码行数:31,代码来源:page.backup.php

示例9: _

		<!--Alert Info-->
		<div class="element-container">
			<div class="row">
				<div class="col-md-12">
					<div class="row">
						<div class="form-group">
							<div class="col-md-3">
								<label class="control-label" for="alertinfo"><?php 
echo _("Alert Info");
?>
</label>
								<i class="fa fa-question-circle fpbx-help-icon" data-for="alertinfo"></i>
							</div>
							<div class="col-md-9">
								<?php 
echo FreePBX::View()->alertInfoDrawSelect("alertinfo", isset($alertinfo) ? $alertinfo : '');
?>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="row">
				<div class="col-md-12">
					<span id="alertinfo-help" class="help-block fpbx-help-block"><?php 
echo _("Add an Alert-Info Header like Snom and other Phones need for Ring or Ringtone informations");
?>
</span>
				</div>
			</div>
		</div>
开发者ID:ringfreejohn,项目名称:pbxframework,代码行数:31,代码来源:form.php

示例10: _

<!--Alert Info-->
<div class="element-container">
	<div class="row">
		<div class="col-md-12">
			<div class="row">
				<div class="form-group">
					<div class="col-md-3">
						<label class="control-label" for="alert_info"><?php 
echo _("Alert Info");
?>
</label>
						<i class="fa fa-question-circle fpbx-help-icon" data-for="alert_info"></i>
					</div>
					<div class="col-md-9">
						<?php 
echo FreePBX::View()->alertInfoDrawSelect("alert_info", isset($alert_info) ? stripslashes($alert_info) : "");
?>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div class="row">
		<div class="col-md-12">
			<span id="alert_info-help" class="help-block fpbx-help-block"><?php 
echo _("ALERT_INFO to be sent when called from this Directory. Can be used for distinctive ring for SIP devices.");
?>
</span>
		</div>
	</div>
</div>
开发者ID:ringfreejohn,项目名称:pbxframework,代码行数:31,代码来源:form.php


注:本文中的FreePBX::View方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。