예제 #1
0
파일: advanced_form.php 프로젝트: lidl/core
			<!--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>
예제 #2
0
function set_language($details = false)
{
    return \FreePBX::View()->setLanguage($details);
}
예제 #3
0
파일: footer.php 프로젝트: lidl/framework
    $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;
예제 #4
0
 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;
 }
예제 #5
0
파일: form.php 프로젝트: lidl/findmefollow
<!--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>
예제 #6
0
<!--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>
예제 #7
0
	<!--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>
예제 #8
0
//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');
예제 #9
0
		<!--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>
예제 #10
0
<!--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>