code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
$(function(){
var save_and_close = false;
if($('#fancybox-loading')[0]){
$('#fancybox-loading').remove();
}
// Salva as informações e retorna a listagem inicial
$('#save-and-go-back-button').click(function(){
save_and_close = true;
submitCrudForm($('#crudForm'), save_and_close);
});
// Faz as verificações e submete o formulario
$('.submit-form').on('click', function(){
submitCrudForm($('#crudForm'), save_and_close);
});
$('.return-to-list').on('click', function() {
goToList('Confirmation', message_alert_edit_form);
$('.ok-confirmation').data('target-url', $(this).data('target-url'));
return false;
});
});
// Mensagens para a aplicação
var alert_message = function(type_message, text_message){
$('.modal-message.'+type_message).remove();
$('#message-box').prepend('<div class="alert '+type_message+' modal-message"><span class="icon"></span><span class="close">x</span>'+text_message+'</div>');
$('html, body').animate({
scrollTop:0
}, 600);
$("#ajax-loading").fadeOut('fast');
window.setTimeout( function(){
$('.modal-message.'+type_message).slideUp();
}, 7000);
return false;
};
// Simula o efeito RESET no formulário de inserção de conteudo
function clearForm()
{
$('#crudForm').find(':input').each(function() {
switch(this.type) {
case 'password':
case 'select-multiple':
case 'select-one':
case 'text':
case 'textarea':
$(this).val('');
break;
case 'checkbox':
case 'radio':
this.checked = false;
}
});
/* Clear upload inputs */
$('.open-file, .gc-file-upload, .hidden-upload-input').each(function(){
$(this).val('');
});
$('.upload-success-url').hide();
$('.fileinput-button').fadeIn("normal");
/* -------------------- */
$('.remove-all').each(function(){
$(this).trigger('click');
});
$('.chosen-multiple-select, .chosen-select, .ajax-chosen-select').each(function(){
$(this).trigger("liszt:updated");
});
}
// Submete o formulário para inserir os dados no BD
function submitCrudForm( crud_form, save_and_close ){
crud_form.ajaxSubmit({
url: validation_url,
dataType: 'json',
cache: 'false',
beforeSend: function(){
$("#ajax-loading").fadeIn('fast');
},
afterSend: function(){
$("#ajax-loading").fadeOut('fast');
},
success: function(data){
$("#ajax-loading").fadeOut('fast');
if(data.success)
{
$('#crudForm').ajaxSubmit({
dataType: 'text',
cache: 'false',
beforeSend: function(){
$("#ajax-loading").addClass('show loading');
},
success: function(result){
$("#ajax-loading").fadeOut("slow");
data = $.parseJSON( result );
if(data.success)
{
if(save_and_close)
{
window.location = data.success_list_url;
return true;
}
alert_message('sucess', data.success_message);
}
else
{
alert_message('error', message_update_error);
}
},
error: function(){
alert_message('error', message_update_error);
}
});
}
else
{
$('.field_error').each(function(){
$(this).removeClass('field_error');
});
alert_message('error', data.error_message);
$.each(data.error_fields, function(index,value){
$('input[name='+index+']').addClass('field_error');
});
}
},
error: function(){
$("#ajax-loading").fadeOut('fast');
alert_message('error', message_update_error);
}
});
return false;
}
// Retornar para a tabela de listagem de dados inicial
function goToList(title_modal, message_text){
if ($('#dialog_modal_message')[0]){
$('#dialog_modal_message').remove();
}
var modal_content = '<div id="dialog_modal_message" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="dialog_modal_message_label" aria-hidden="true"><div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h3 id="dialog_modal_message_label">' + title_modal + '</h3></div><div class="modal-body"> <p>'+ message_text + '</p></div><div class="modal-footer"> <button class="btn cancel-confirmation" data-dismiss="modal" aria-hidden="true">Cancel</button> <button class="btn btn-primary ok-confirmation">Ok</button></div></div>';
$('#message-box').after(modal_content);
$('#dialog_modal_message')
.modal({ keyboard: false })
.on('shown', function(){
$(this).find('button.cancel-confirmation').click(function(){
$('button.close').trigger('click');
}).end().find('button.ok-confirmation').click(function(){
window.location = list_url;
$('button.close').trigger('click');
});
});
} | JavaScript |
$(function(){
var save_and_close = false;
if($('#fancybox-loading')[0]){
$('#fancybox-loading').remove();
}
// Salva as informações e retorna a listagem inicial
$('#save-and-go-back-button').click(function(){
save_and_close = true;
submitCrudForm($('#crudForm'), save_and_close);
});
// Faz as verificações e submete o formulario
$('.submit-form').on('click', function(){
submitCrudForm($('#crudForm'), save_and_close);
});
$('.return-to-list').on('click', function() {
goToList('Confirmation', message_alert_add_form);
$('.ok-confirmation').data('target-url', $(this).data('target-url'));
return false;
});
});
// Mensagens para a aplicação
var alert_message = function(type_message, text_message){
$('.modal-message.'+type_message).remove();
$('#message-box').prepend('<div class="alert '+type_message+' modal-message"><span class="icon"></span><span class="close">x</span>'+text_message+'</div>');
$('html, body').animate({
scrollTop:0
}, 600);
$("#ajax-loading").fadeOut('fast');
window.setTimeout( function(){
$('.modal-message.'+type_message).slideUp();
}, 7000);
return false;
};
// Simula o efeito RESET no formulário de inserção de conteudo
function clearForm()
{
$('#crudForm').find(':input').each(function() {
switch(this.type) {
case 'password':
case 'select-multiple':
case 'select-one':
case 'text':
case 'textarea':
$(this).val('');
break;
case 'checkbox':
case 'radio':
this.checked = false;
}
});
/* Clear upload inputs */
$('.open-file, .gc-file-upload, .hidden-upload-input').each(function(){
$(this).val('');
});
$('.upload-success-url').hide();
$('.fileinput-button').fadeIn("normal");
/* -------------------- */
$('.remove-all').each(function(){
$(this).trigger('click');
});
$('.chosen-multiple-select, .chosen-select, .ajax-chosen-select').each(function(){
$(this).trigger("liszt:updated");
});
}
// Submete o formulário para inserir os dados no BD
function submitCrudForm( crud_form, save_and_close ){
crud_form.ajaxSubmit({
url: validation_url,
dataType: 'json',
cache: 'false',
beforeSend: function(){
$("#ajax-loading").fadeIn('fast');
},
afterSend: function(){
$("#ajax-loading").fadeOut('fast');
},
success: function(data){
$("#ajax-loading").fadeOut('fast');
if(data.success)
{
$('#crudForm').ajaxSubmit({
dataType: 'text',
cache: 'false',
beforeSend: function(){
$("#ajax-loading").addClass('show loading');
},
success: function(result){
data = $.parseJSON( result );
if(data.success)
{
if(save_and_close)
{
window.location = data.success_list_url;
return true;
}
$('.form-input-box').each(function(){
$(this).removeClass('error');
});
clearForm();
alert_message('success', data.success_message);
}
else
{
alert_message('error', message_insert_error);
}
},
error: function(){
alert_message('error', message_insert_error);
}
});
}
else
{
$('.form-input-box').removeClass('error');
alert_message('error', data.error_message);
$.each(data.error_fields, function(index,value){
$('input[name='+index+']').addClass('error');
});
}
},
error: function(){
$("#ajax-loading").fadeOut('fast');
alert_message('error', message_insert_error);
}
});
return false;
}
// Retornar para a tabela de listagem de dados inicial
function goToList(title_modal, message_text){
if ($('#dialog_modal_message')[0]){
$('#dialog_modal_message').remove();
}
var modal_content = '<div id="dialog_modal_message" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="dialog_modal_message_label" aria-hidden="true"><div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h3 id="dialog_modal_message_label">' + title_modal + '</h3></div><div class="modal-body"> <p>'+ message_text + '</p></div><div class="modal-footer"> <button class="btn cancel-confirmation" data-dismiss="modal" aria-hidden="true">Cancel</button> <button class="btn btn-primary ok-confirmation">Ok</button></div></div>';
$('#message-box').after(modal_content);
$('#dialog_modal_message')
.modal({ keyboard: false })
.on('shown', function(){
$(this).find('button.cancel-confirmation').click(function(){
$('button.close').trigger('click');
}).end().find('button.ok-confirmation').click(function(){
window.location = list_url;
$('button.close').trigger('click');
});
});
} | JavaScript |
/*!
* jQuery Form Plugin
* version: 2.72 (28-APR-2011)
* @requires jQuery v1.3.2 or later
*
* Examples and documentation at: http://malsup.com/jquery/form/
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*/
;(function($) {
/*
Usage Note:
-----------
Do not use both ajaxSubmit and ajaxForm on the same form. These
functions are intended to be exclusive. Use ajaxSubmit if you want
to bind your own submit handler to the form. For example,
$(document).ready(function() {
$('#myForm').bind('submit', function(e) {
e.preventDefault(); // <-- important
$(this).ajaxSubmit({
target: '#output'
});
});
});
Use ajaxForm when you want the plugin to manage all the event binding
for you. For example,
$(document).ready(function() {
$('#myForm').ajaxForm({
target: '#output'
});
});
When using ajaxForm, the ajaxSubmit function will be invoked for you
at the appropriate time.
*/
/**
* ajaxSubmit() provides a mechanism for immediately submitting
* an HTML form using AJAX.
*/
$.fn.ajaxSubmit = function(options) {
// fast fail if nothing selected (http://dev.jquery.com/ticket/2752)
if (!this.length) {
log('ajaxSubmit: skipping submit process - no element selected');
return this;
}
if (typeof options == 'function') {
options = { success: options };
}
var action = this.attr('action');
var url = (typeof action === 'string') ? $.trim(action) : '';
if (url) {
// clean url (don't include hash vaue)
url = (url.match(/^([^#]+)/)||[])[1];
}
url = url || window.location.href || '';
options = $.extend(true, {
url: url,
success: $.ajaxSettings.success,
type: this[0].getAttribute('method') || 'GET', // IE7 massage (see issue 57)
iframeSrc: /^https/i.test(window.location.href || '') ? 'javascript:false' : 'about:blank'
}, options);
// hook for manipulating the form data before it is extracted;
// convenient for use with rich editors like tinyMCE or FCKEditor
var veto = {};
this.trigger('form-pre-serialize', [this, options, veto]);
if (veto.veto) {
log('ajaxSubmit: submit vetoed via form-pre-serialize trigger');
return this;
}
// provide opportunity to alter form data before it is serialized
if (options.beforeSerialize && options.beforeSerialize(this, options) === false) {
log('ajaxSubmit: submit aborted via beforeSerialize callback');
return this;
}
var n,v,a = this.formToArray(options.semantic);
if (options.data) {
options.extraData = options.data;
for (n in options.data) {
if(options.data[n] instanceof Array) {
for (var k in options.data[n]) {
a.push( { name: n, value: options.data[n][k] } );
}
}
else {
v = options.data[n];
v = $.isFunction(v) ? v() : v; // if value is fn, invoke it
a.push( { name: n, value: v } );
}
}
}
// give pre-submit callback an opportunity to abort the submit
if (options.beforeSubmit && options.beforeSubmit(a, this, options) === false) {
log('ajaxSubmit: submit aborted via beforeSubmit callback');
return this;
}
// fire vetoable 'validate' event
this.trigger('form-submit-validate', [a, this, options, veto]);
if (veto.veto) {
log('ajaxSubmit: submit vetoed via form-submit-validate trigger');
return this;
}
var q = $.param(a);
if (options.type.toUpperCase() == 'GET') {
options.url += (options.url.indexOf('?') >= 0 ? '&' : '?') + q;
options.data = null; // data is null for 'get'
}
else {
options.data = q; // data is the query string for 'post'
}
var $form = this, callbacks = [];
if (options.resetForm) {
callbacks.push(function() { $form.resetForm(); });
}
if (options.clearForm) {
callbacks.push(function() { $form.clearForm(); });
}
// perform a load on the target only if dataType is not provided
if (!options.dataType && options.target) {
var oldSuccess = options.success || function(){};
callbacks.push(function(data) {
var fn = options.replaceTarget ? 'replaceWith' : 'html';
$(options.target)[fn](data).each(oldSuccess, arguments);
});
}
else if (options.success) {
callbacks.push(options.success);
}
options.success = function(data, status, xhr) { // jQuery 1.4+ passes xhr as 3rd arg
var context = options.context || options; // jQuery 1.4+ supports scope context
for (var i=0, max=callbacks.length; i < max; i++) {
callbacks[i].apply(context, [data, status, xhr || $form, $form]);
}
};
// are there files to upload?
var fileInputs = $('input:file', this).length > 0;
var mp = 'multipart/form-data';
var multipart = ($form.attr('enctype') == mp || $form.attr('encoding') == mp);
// options.iframe allows user to force iframe mode
// 06-NOV-09: now defaulting to iframe mode if file input is detected
if (options.iframe !== false && (fileInputs || options.iframe || multipart)) {
// hack to fix Safari hang (thanks to Tim Molendijk for this)
// see: http://groups.google.com/group/jquery-dev/browse_thread/thread/36395b7ab510dd5d
if (options.closeKeepAlive) {
$.get(options.closeKeepAlive, fileUpload);
}
else {
fileUpload();
}
}
else {
$.ajax(options);
}
// fire 'notify' event
this.trigger('form-submit-notify', [this, options]);
return this;
// private function for handling file uploads (hat tip to YAHOO!)
function fileUpload() {
var form = $form[0];
if ($(':input[name=submit],:input[id=submit]', form).length) {
// if there is an input with a name or id of 'submit' then we won't be
// able to invoke the submit fn on the form (at least not x-browser)
alert('Error: Form elements must not have name or id of "submit".');
return;
}
var s = $.extend(true, {}, $.ajaxSettings, options);
s.context = s.context || s;
var id = 'jqFormIO' + (new Date().getTime()), fn = '_'+id;
var $io = $('<iframe id="' + id + '" name="' + id + '" src="'+ s.iframeSrc +'" />');
var io = $io[0];
$io.css({ position: 'absolute', top: '-1000px', left: '-1000px' });
var xhr = { // mock object
aborted: 0,
responseText: null,
responseXML: null,
status: 0,
statusText: 'n/a',
getAllResponseHeaders: function() {},
getResponseHeader: function() {},
setRequestHeader: function() {},
abort: function(status) {
var e = (status === 'timeout' ? 'timeout' : 'aborted');
log('aborting upload... ' + e);
this.aborted = 1;
$io.attr('src', s.iframeSrc); // abort op in progress
xhr.error = e;
s.error && s.error.call(s.context, xhr, e, e);
g && $.event.trigger("ajaxError", [xhr, s, e]);
s.complete && s.complete.call(s.context, xhr, e);
}
};
var g = s.global;
// trigger ajax global events so that activity/block indicators work like normal
if (g && ! $.active++) {
$.event.trigger("ajaxStart");
}
if (g) {
$.event.trigger("ajaxSend", [xhr, s]);
}
if (s.beforeSend && s.beforeSend.call(s.context, xhr, s) === false) {
if (s.global) {
$.active--;
}
return;
}
if (xhr.aborted) {
return;
}
var timedOut = 0, timeoutHandle;
// add submitting element to data if we know it
var sub = form.clk;
if (sub) {
var n = sub.name;
if (n && !sub.disabled) {
s.extraData = s.extraData || {};
s.extraData[n] = sub.value;
if (sub.type == "image") {
s.extraData[n+'.x'] = form.clk_x;
s.extraData[n+'.y'] = form.clk_y;
}
}
}
// take a breath so that pending repaints get some cpu time before the upload starts
function doSubmit() {
// make sure form attrs are set
var t = $form.attr('target'), a = $form.attr('action');
// update form attrs in IE friendly way
form.setAttribute('target',id);
if (form.getAttribute('method') != 'POST') {
form.setAttribute('method', 'POST');
}
if (form.getAttribute('action') != s.url) {
form.setAttribute('action', s.url);
}
// ie borks in some cases when setting encoding
if (! s.skipEncodingOverride) {
$form.attr({
encoding: 'multipart/form-data',
enctype: 'multipart/form-data'
});
}
// support timout
if (s.timeout) {
timeoutHandle = setTimeout(function() { timedOut = true; cb(true); }, s.timeout);
}
// add "extra" data to form if provided in options
var extraInputs = [];
try {
if (s.extraData) {
for (var n in s.extraData) {
extraInputs.push(
$('<input type="hidden" name="'+n+'" value="'+s.extraData[n]+'" />')
.appendTo(form)[0]);
}
}
// add iframe to doc and submit the form
$io.appendTo('body');
io.attachEvent ? io.attachEvent('onload', cb) : io.addEventListener('load', cb, false);
form.submit();
}
finally {
// reset attrs and remove "extra" input elements
form.setAttribute('action',a);
if(t) {
form.setAttribute('target', t);
} else {
$form.removeAttr('target');
}
$(extraInputs).remove();
}
}
if (s.forceSync) {
doSubmit();
}
else {
setTimeout(doSubmit, 10); // this lets dom updates render
}
var data, doc, domCheckCount = 50, callbackProcessed;
function cb(e) {
if (xhr.aborted || callbackProcessed) {
return;
}
if (e === true && xhr) {
xhr.abort('timeout');
return;
}
var doc = io.contentWindow ? io.contentWindow.document : io.contentDocument ? io.contentDocument : io.document;
if (!doc || doc.location.href == s.iframeSrc) {
// response not received yet
if (!timedOut)
return;
}
io.detachEvent ? io.detachEvent('onload', cb) : io.removeEventListener('load', cb, false);
var ok = true;
try {
if (timedOut) {
throw 'timeout';
}
var isXml = s.dataType == 'xml' || doc.XMLDocument || $.isXMLDoc(doc);
log('isXml='+isXml);
if (!isXml && window.opera && (doc.body == null || doc.body.innerHTML == '')) {
if (--domCheckCount) {
// in some browsers (Opera) the iframe DOM is not always traversable when
// the onload callback fires, so we loop a bit to accommodate
log('requeing onLoad callback, DOM not available');
setTimeout(cb, 250);
return;
}
// let this fall through because server response could be an empty document
//log('Could not access iframe DOM after mutiple tries.');
//throw 'DOMException: not available';
}
//log('response detected');
xhr.responseText = doc.body ? doc.body.innerHTML : doc.documentElement ? doc.documentElement.innerHTML : null;
xhr.responseXML = doc.XMLDocument ? doc.XMLDocument : doc;
if (!xhr.responseText && xhr.responseXML && !s.dataType)
s.dataType = 'xml';
xhr.getResponseHeader = function(header){
var headers = {'content-type': s.dataType};
return headers[header];
};
var scr = /(json|script|text)/.test(s.dataType);
if (scr || s.textarea) {
// see if user embedded response in textarea
var ta = doc.getElementsByTagName('textarea')[0];
if (ta) {
xhr.responseText = ta.value;
}
else if (scr) {
// account for browsers injecting pre around json response
var pre = doc.getElementsByTagName('pre')[0];
var b = doc.getElementsByTagName('body')[0];
if (pre) {
xhr.responseText = pre.textContent;
}
else if (b) {
xhr.responseText = b.innerHTML;
}
}
}
else if (s.dataType == 'xml' && !xhr.responseXML && xhr.responseText != null) {
xhr.responseXML = toXml(xhr.responseText);
}
data = httpData(xhr, s.dataType, s);
}
catch(e){
log('error caught:',e);
ok = false;
xhr.error = e;
s.error && s.error.call(s.context, xhr, 'error', e);
g && $.event.trigger("ajaxError", [xhr, s, e]);
}
if (xhr.aborted) {
log('upload aborted');
ok = false;
}
// ordering of these callbacks/triggers is odd, but that's how $.ajax does it
if (ok) {
s.success && s.success.call(s.context, data, 'success', xhr);
g && $.event.trigger("ajaxSuccess", [xhr, s]);
}
g && $.event.trigger("ajaxComplete", [xhr, s]);
if (g && ! --$.active) {
$.event.trigger("ajaxStop");
}
s.complete && s.complete.call(s.context, xhr, ok ? 'success' : 'error');
callbackProcessed = true;
if (s.timeout)
clearTimeout(timeoutHandle);
// clean up
setTimeout(function() {
$io.removeData('form-plugin-onload');
$io.remove();
xhr.responseXML = null;
}, 100);
}
var toXml = $.parseXML || function(s, doc) { // use parseXML if available (jQuery 1.5+)
if (window.ActiveXObject) {
doc = new ActiveXObject('Microsoft.XMLDOM');
doc.async = 'false';
doc.loadXML(s);
}
else {
doc = (new DOMParser()).parseFromString(s, 'text/xml');
}
return (doc && doc.documentElement && doc.documentElement.nodeName != 'parsererror') ? doc : null;
};
var parseJSON = $.parseJSON || function(s) {
return window['eval']('(' + s + ')');
};
var httpData = function( xhr, type, s ) { // mostly lifted from jq1.4.4
var ct = xhr.getResponseHeader('content-type') || '',
xml = type === 'xml' || !type && ct.indexOf('xml') >= 0,
data = xml ? xhr.responseXML : xhr.responseText;
if (xml && data.documentElement.nodeName === 'parsererror') {
$.error && $.error('parsererror');
}
if (s && s.dataFilter) {
data = s.dataFilter(data, type);
}
if (typeof data === 'string') {
if (type === 'json' || !type && ct.indexOf('json') >= 0) {
data = parseJSON(data);
} else if (type === "script" || !type && ct.indexOf("javascript") >= 0) {
$.globalEval(data);
}
}
return data;
};
}
};
/**
* ajaxForm() provides a mechanism for fully automating form submission.
*
* The advantages of using this method instead of ajaxSubmit() are:
*
* 1: This method will include coordinates for <input type="image" /> elements (if the element
* is used to submit the form).
* 2. This method will include the submit element's name/value data (for the element that was
* used to submit the form).
* 3. This method binds the submit() method to the form for you.
*
* The options argument for ajaxForm works exactly as it does for ajaxSubmit. ajaxForm merely
* passes the options argument along after properly binding events for submit elements and
* the form itself.
*/
$.fn.ajaxForm = function(options) {
// in jQuery 1.3+ we can fix mistakes with the ready state
if (this.length === 0) {
var o = { s: this.selector, c: this.context };
if (!$.isReady && o.s) {
log('DOM not ready, queuing ajaxForm');
$(function() {
$(o.s,o.c).ajaxForm(options);
});
return this;
}
// is your DOM ready? http://docs.jquery.com/Tutorials:Introducing_$(document).ready()
log('terminating; zero elements found by selector' + ($.isReady ? '' : ' (DOM not ready)'));
return this;
}
return this.ajaxFormUnbind().bind('submit.form-plugin', function(e) {
if (!e.isDefaultPrevented()) { // if event has been canceled, don't proceed
e.preventDefault();
$(this).ajaxSubmit(options);
}
}).bind('click.form-plugin', function(e) {
var target = e.target;
var $el = $(target);
if (!($el.is(":submit,input:image"))) {
// is this a child element of the submit el? (ex: a span within a button)
var t = $el.closest(':submit');
if (t.length == 0) {
return;
}
target = t[0];
}
var form = this;
form.clk = target;
if (target.type == 'image') {
if (e.offsetX != undefined) {
form.clk_x = e.offsetX;
form.clk_y = e.offsetY;
} else if (typeof $.fn.offset == 'function') { // try to use dimensions plugin
var offset = $el.offset();
form.clk_x = e.pageX - offset.left;
form.clk_y = e.pageY - offset.top;
} else {
form.clk_x = e.pageX - target.offsetLeft;
form.clk_y = e.pageY - target.offsetTop;
}
}
// clear form vars
setTimeout(function() { form.clk = form.clk_x = form.clk_y = null; }, 100);
});
};
// ajaxFormUnbind unbinds the event handlers that were bound by ajaxForm
$.fn.ajaxFormUnbind = function() {
return this.unbind('submit.form-plugin click.form-plugin');
};
/**
* formToArray() gathers form element data into an array of objects that can
* be passed to any of the following ajax functions: $.get, $.post, or load.
* Each object in the array has both a 'name' and 'value' property. An example of
* an array for a simple login form might be:
*
* [ { name: 'username', value: 'jresig' }, { name: 'password', value: 'secret' } ]
*
* It is this array that is passed to pre-submit callback functions provided to the
* ajaxSubmit() and ajaxForm() methods.
*/
$.fn.formToArray = function(semantic) {
var a = [];
if (this.length === 0) {
return a;
}
var form = this[0];
var els = semantic ? form.getElementsByTagName('*') : form.elements;
if (!els) {
return a;
}
var i,j,n,v,el,max,jmax;
for(i=0, max=els.length; i < max; i++) {
el = els[i];
n = el.name;
if (!n) {
continue;
}
if (semantic && form.clk && el.type == "image") {
// handle image inputs on the fly when semantic == true
if(!el.disabled && form.clk == el) {
a.push({name: n, value: $(el).val()});
a.push({name: n+'.x', value: form.clk_x}, {name: n+'.y', value: form.clk_y});
}
continue;
}
v = $.fieldValue(el, true);
if (v && v.constructor == Array) {
for(j=0, jmax=v.length; j < jmax; j++) {
a.push({name: n, value: v[j]});
}
}
else if (v !== null && typeof v != 'undefined') {
a.push({name: n, value: v});
}
}
if (!semantic && form.clk) {
// input type=='image' are not found in elements array! handle it here
var $input = $(form.clk), input = $input[0];
n = input.name;
if (n && !input.disabled && input.type == 'image') {
a.push({name: n, value: $input.val()});
a.push({name: n+'.x', value: form.clk_x}, {name: n+'.y', value: form.clk_y});
}
}
return a;
};
/**
* Serializes form data into a 'submittable' string. This method will return a string
* in the format: name1=value1&name2=value2
*/
$.fn.formSerialize = function(semantic) {
//hand off to jQuery.param for proper encoding
return $.param(this.formToArray(semantic));
};
/**
* Serializes all field elements in the jQuery object into a query string.
* This method will return a string in the format: name1=value1&name2=value2
*/
$.fn.fieldSerialize = function(successful) {
var a = [];
this.each(function() {
var n = this.name;
if (!n) {
return;
}
var v = $.fieldValue(this, successful);
if (v && v.constructor == Array) {
for (var i=0,max=v.length; i < max; i++) {
a.push({name: n, value: v[i]});
}
}
else if (v !== null && typeof v != 'undefined') {
a.push({name: this.name, value: v});
}
});
//hand off to jQuery.param for proper encoding
return $.param(a);
};
/**
* Returns the value(s) of the element in the matched set. For example, consider the following form:
*
* <form><fieldset>
* <input name="A" type="text" />
* <input name="A" type="text" />
* <input name="B" type="checkbox" value="B1" />
* <input name="B" type="checkbox" value="B2"/>
* <input name="C" type="radio" value="C1" />
* <input name="C" type="radio" value="C2" />
* </fieldset></form>
*
* var v = $(':text').fieldValue();
* // if no values are entered into the text inputs
* v == ['','']
* // if values entered into the text inputs are 'foo' and 'bar'
* v == ['foo','bar']
*
* var v = $(':checkbox').fieldValue();
* // if neither checkbox is checked
* v === undefined
* // if both checkboxes are checked
* v == ['B1', 'B2']
*
* var v = $(':radio').fieldValue();
* // if neither radio is checked
* v === undefined
* // if first radio is checked
* v == ['C1']
*
* The successful argument controls whether or not the field element must be 'successful'
* (per http://www.w3.org/TR/html4/interact/forms.html#successful-controls).
* The default value of the successful argument is true. If this value is false the value(s)
* for each element is returned.
*
* Note: This method *always* returns an array. If no valid value can be determined the
* array will be empty, otherwise it will contain one or more values.
*/
$.fn.fieldValue = function(successful) {
for (var val=[], i=0, max=this.length; i < max; i++) {
var el = this[i];
var v = $.fieldValue(el, successful);
if (v === null || typeof v == 'undefined' || (v.constructor == Array && !v.length)) {
continue;
}
v.constructor == Array ? $.merge(val, v) : val.push(v);
}
return val;
};
/**
* Returns the value of the field element.
*/
$.fieldValue = function(el, successful) {
var n = el.name, t = el.type, tag = el.tagName.toLowerCase();
if (successful === undefined) {
successful = true;
}
if (successful && (!n || el.disabled || t == 'reset' || t == 'button' ||
(t == 'checkbox' || t == 'radio') && !el.checked ||
(t == 'submit' || t == 'image') && el.form && el.form.clk != el ||
tag == 'select' && el.selectedIndex == -1)) {
return null;
}
if (tag == 'select') {
var index = el.selectedIndex;
if (index < 0) {
return null;
}
var a = [], ops = el.options;
var one = (t == 'select-one');
var max = (one ? index+1 : ops.length);
for(var i=(one ? index : 0); i < max; i++) {
var op = ops[i];
if (op.selected) {
var v = op.value;
if (!v) { // extra pain for IE...
v = (op.attributes && op.attributes['value'] && !(op.attributes['value'].specified)) ? op.text : op.value;
}
if (one) {
return v;
}
a.push(v);
}
}
return a;
}
return $(el).val();
};
/**
* Clears the form data. Takes the following actions on the form's input fields:
* - input text fields will have their 'value' property set to the empty string
* - select elements will have their 'selectedIndex' property set to -1
* - checkbox and radio inputs will have their 'checked' property set to false
* - inputs of type submit, button, reset, and hidden will *not* be effected
* - button elements will *not* be effected
*/
$.fn.clearForm = function() {
return this.each(function() {
$('input,select,textarea', this).clearFields();
});
};
/**
* Clears the selected form elements.
*/
$.fn.clearFields = $.fn.clearInputs = function() {
return this.each(function() {
var t = this.type, tag = this.tagName.toLowerCase();
if (t == 'text' || t == 'password' || tag == 'textarea') {
this.value = '';
}
else if (t == 'checkbox' || t == 'radio') {
this.checked = false;
}
else if (tag == 'select') {
this.selectedIndex = -1;
}
});
};
/**
* Resets the form data. Causes all form elements to be reset to their original value.
*/
$.fn.resetForm = function() {
return this.each(function() {
// guard against an input with the name of 'reset'
// note that IE reports the reset function as an 'object'
if (typeof this.reset == 'function' || (typeof this.reset == 'object' && !this.reset.nodeType)) {
this.reset();
}
});
};
/**
* Enables or disables any matching elements.
*/
$.fn.enable = function(b) {
if (b === undefined) {
b = true;
}
return this.each(function() {
this.disabled = !b;
});
};
/**
* Checks/unchecks any matching checkboxes or radio buttons and
* selects/deselects and matching option elements.
*/
$.fn.selected = function(select) {
if (select === undefined) {
select = true;
}
return this.each(function() {
var t = this.type;
if (t == 'checkbox' || t == 'radio') {
this.checked = select;
}
else if (this.tagName.toLowerCase() == 'option') {
var $sel = $(this).parent('select');
if (select && $sel[0] && $sel[0].type == 'select-one') {
// deselect all other options
$sel.find('option').selected(false);
}
this.selected = select;
}
});
};
// helper fn for console logging
// set $.fn.ajaxSubmit.debug to true to enable debug logging
function log() {
if ($.fn.ajaxSubmit.debug) {
var msg = '[jquery.form] ' + Array.prototype.join.call(arguments,'');
if (window.console && window.console.log) {
window.console.log(msg);
}
else if (window.opera && window.opera.postError) {
window.opera.postError(msg);
}
}
};
})(jQuery);
| JavaScript |
function createCookie(name,value,days) {
if (days) {
var date = new Date();
date.setTime(date.getTime()+(days*24*60*60*1000));
var expires = "; expires="+date.toGMTString();
}
else var expires = "";
document.cookie = name+"="+escape(value)+expires+"; path=/";
}
function readCookie(name) {
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for(var i=0;i < ca.length;i++) {
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0)
return unescape(c.substring(nameEQ.length,c.length));
}
return null;
}
function eraseCookie(name) {
createCookie(name,"",-1);
} | JavaScript |
/*
*
* TableSorter 2.0 - Client-side table sorting with ease!
* Version 2.0.5b
* @requires jQuery v1.2.3
*
* Copyright (c) 2007 Christian Bach
* Examples and docs at: http://tablesorter.com
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
*/
/**
*
* @description Create a sortable table with multi-column sorting capabilitys
*
* @example $('table').tablesorter();
* @desc Create a simple tablesorter interface.
*
* @example $('table').tablesorter({ sortList:[[0,0],[1,0]] });
* @desc Create a tablesorter interface and sort on the first and secound column column headers.
*
* @example $('table').tablesorter({ headers: { 0: { sorter: false}, 1: {sorter: false} } });
*
* @desc Create a tablesorter interface and disableing the first and second column headers.
*
*
* @example $('table').tablesorter({ headers: { 0: {sorter:"integer"}, 1: {sorter:"currency"} } });
*
* @desc Create a tablesorter interface and set a column parser for the first
* and second column.
*
*
* @param Object
* settings An object literal containing key/value pairs to provide
* optional settings.
*
*
* @option String cssHeader (optional) A string of the class name to be appended
* to sortable tr elements in the thead of the table. Default value:
* "header"
*
* @option String cssAsc (optional) A string of the class name to be appended to
* sortable tr elements in the thead on a ascending sort. Default value:
* "headerSortUp"
*
* @option String cssDesc (optional) A string of the class name to be appended
* to sortable tr elements in the thead on a descending sort. Default
* value: "headerSortDown"
*
* @option String sortInitialOrder (optional) A string of the inital sorting
* order can be asc or desc. Default value: "asc"
*
* @option String sortMultisortKey (optional) A string of the multi-column sort
* key. Default value: "shiftKey"
*
* @option String textExtraction (optional) A string of the text-extraction
* method to use. For complex html structures inside td cell set this
* option to "complex", on large tables the complex option can be slow.
* Default value: "simple"
*
* @option Object headers (optional) An array containing the forces sorting
* rules. This option let's you specify a default sorting rule. Default
* value: null
*
* @option Array sortList (optional) An array containing the forces sorting
* rules. This option let's you specify a default sorting rule. Default
* value: null
*
* @option Array sortForce (optional) An array containing forced sorting rules.
* This option let's you specify a default sorting rule, which is
* prepended to user-selected rules. Default value: null
*
* @option Boolean sortLocaleCompare (optional) Boolean flag indicating whatever
* to use String.localeCampare method or not. Default set to true.
*
*
* @option Array sortAppend (optional) An array containing forced sorting rules.
* This option let's you specify a default sorting rule, which is
* appended to user-selected rules. Default value: null
*
* @option Boolean widthFixed (optional) Boolean flag indicating if tablesorter
* should apply fixed widths to the table columns. This is usefull when
* using the pager companion plugin. This options requires the dimension
* jquery plugin. Default value: false
*
* @option Boolean cancelSelection (optional) Boolean flag indicating if
* tablesorter should cancel selection of the table headers text.
* Default value: true
*
* @option Boolean debug (optional) Boolean flag indicating if tablesorter
* should display debuging information usefull for development.
*
* @type jQuery
*
* @name tablesorter
*
* @cat Plugins/Tablesorter
*
* @author Christian Bach/christian.bach@polyester.se
*/
(function ($) {
$.extend({
tablesorter: new
function () {
var parsers = [],
widgets = [];
this.defaults = {
cssHeader: "header",
cssAsc: "headerSortUp",
cssDesc: "headerSortDown",
cssChildRow: "expand-child",
sortInitialOrder: "asc",
sortMultiSortKey: "shiftKey",
sortForce: null,
sortAppend: null,
sortLocaleCompare: true,
textExtraction: "simple",
parsers: {}, widgets: [],
widgetZebra: {
css: ["even", "odd"]
}, headers: {}, widthFixed: false,
cancelSelection: true,
sortList: [],
headerList: [],
dateFormat: "us",
decimal: '/\.|\,/g',
onRenderHeader: null,
selectorHeaders: 'thead th',
debug: false,
noSorterClass: 'no-sorter'
};
/* debuging utils */
function benchmark(s, d) {
log(s + "," + (new Date().getTime() - d.getTime()) + "ms");
}
this.benchmark = benchmark;
function log(s) {
if (typeof console != "undefined" && typeof console.debug != "undefined") {
console.log(s);
} else {
alert(s);
}
}
/* parsers utils */
function buildParserCache(table, $headers) {
if (table.config.debug) {
var parsersDebug = "";
}
if (table.tBodies.length == 0) return; // In the case of empty tables
var rows = table.tBodies[0].rows;
if (rows[0]) {
var list = [],
cells = rows[0].cells,
l = cells.length;
for (var i = 0; i < l; i++) {
var p = false;
if ($.metadata && ($($headers[i]).metadata() && $($headers[i]).metadata().sorter)) {
p = getParserById($($headers[i]).metadata().sorter);
} else if ((table.config.headers[i] && table.config.headers[i].sorter)) {
p = getParserById(table.config.headers[i].sorter);
}
if (!p) {
p = detectParserForColumn(table, rows, -1, i);
}
if (table.config.debug) {
parsersDebug += "column:" + i + " parser:" + p.id + "\n";
}
list.push(p);
}
}
if (table.config.debug) {
log(parsersDebug);
}
return list;
};
function detectParserForColumn(table, rows, rowIndex, cellIndex) {
var l = parsers.length,
node = false,
nodeValue = false,
keepLooking = true;
while (nodeValue == '' && keepLooking) {
rowIndex++;
if (rows[rowIndex]) {
node = getNodeFromRowAndCellIndex(rows, rowIndex, cellIndex);
nodeValue = trimAndGetNodeText(table.config, node);
if (table.config.debug) {
log('Checking if value was empty on row:' + rowIndex);
}
} else {
keepLooking = false;
}
}
for (var i = 1; i < l; i++) {
if (parsers[i].is(nodeValue, table, node)) {
return parsers[i];
}
}
// 0 is always the generic parser (text)
return parsers[0];
}
function getNodeFromRowAndCellIndex(rows, rowIndex, cellIndex) {
return rows[rowIndex].cells[cellIndex];
}
function trimAndGetNodeText(config, node) {
return $.trim(getElementText(config, node));
}
function getParserById(name) {
var l = parsers.length;
for (var i = 0; i < l; i++) {
if (parsers[i].id.toLowerCase() == name.toLowerCase()) {
return parsers[i];
}
}
return false;
}
/* utils */
function buildCache(table) {
if (table.config.debug) {
var cacheTime = new Date();
}
var totalRows = (table.tBodies[0] && table.tBodies[0].rows.length) || 0,
totalCells = (table.tBodies[0].rows[0] && table.tBodies[0].rows[0].cells.length) || 0,
parsers = table.config.parsers,
cache = {
row: [],
normalized: []
};
for (var i = 0; i < totalRows; ++i) {
/** Add the table data to main data array */
var c = $(table.tBodies[0].rows[i]),
cols = [];
// if this is a child row, add it to the last row's children and
// continue to the next row
if (c.hasClass(table.config.cssChildRow)) {
cache.row[cache.row.length - 1] = cache.row[cache.row.length - 1].add(c);
// go to the next for loop
continue;
}
cache.row.push(c);
for (var j = 0; j < totalCells; ++j) {
cols.push(parsers[j].format(getElementText(table.config, c[0].cells[j]), table, c[0].cells[j]));
}
cols.push(cache.normalized.length); // add position for rowCache
cache.normalized.push(cols);
cols = null;
};
if (table.config.debug) {
benchmark("Building cache for " + totalRows + " rows:", cacheTime);
}
return cache;
};
function getElementText(config, node) {
var text = "";
if (!node) return "";
if (!config.supportsTextContent) config.supportsTextContent = node.textContent || false;
if (config.textExtraction == "simple") {
if (config.supportsTextContent) {
text = node.textContent;
} else {
if (node.childNodes[0] && node.childNodes[0].hasChildNodes()) {
text = node.childNodes[0].innerHTML;
} else {
text = node.innerHTML;
}
}
} else {
if (typeof(config.textExtraction) == "function") {
text = config.textExtraction(node);
} else {
text = $(node).text();
}
}
return text;
}
function appendToTable(table, cache) {
if (table.config.debug) {
var appendTime = new Date()
}
var c = cache,
r = c.row,
n = c.normalized,
totalRows = n.length,
checkCell = (n[0].length - 1),
tableBody = $(table.tBodies[0]),
rows = [];
for (var i = 0; i < totalRows; i++) {
var pos = n[i][checkCell];
rows.push(r[pos]);
if (!table.config.appender) {
//var o = ;
var l = r[pos].length;
for (var j = 0; j < l; j++) {
tableBody[0].appendChild(r[pos][j]);
}
//
}
}
if (table.config.appender) {
table.config.appender(table, rows);
}
rows = null;
if (table.config.debug) {
benchmark("Rebuilt table:", appendTime);
}
// apply table widgets
applyWidget(table);
// trigger sortend
setTimeout(function () {
$(table).trigger("sortEnd");
}, 0);
};
function buildHeaders(table) {
if (table.config.debug) {
var time = new Date();
}
var meta = ($.metadata) ? true : false;
var header_index = computeTableHeaderCellIndexes(table);
$tableHeaders = $(table.config.selectorHeaders, table).each(function (index) {
this.column = header_index[this.parentNode.rowIndex + "-" + this.cellIndex];
// this.column = index;
this.order = formatSortingOrder(table.config.sortInitialOrder);
this.count = this.order;
if (checkHeaderMetadata(this, table.config.noSorterClass) || checkHeaderOptions(table, index)) this.sortDisabled = true;
if (checkHeaderOptionsSortingLocked(table, index)) this.order = this.lockedOrder = checkHeaderOptionsSortingLocked(table, index);
if (!this.sortDisabled) {
var $th = $(this).addClass(table.config.cssHeader);
if (table.config.onRenderHeader) table.config.onRenderHeader.apply($th);
}
// add cell to headerList
table.config.headerList[index] = this;
});
if (table.config.debug) {
benchmark("Built headers:", time);
log($tableHeaders);
}
return $tableHeaders;
};
// from:
// http://www.javascripttoolbox.com/lib/table/examples.php
// http://www.javascripttoolbox.com/temp/table_cellindex.html
function computeTableHeaderCellIndexes(t) {
var matrix = [];
var lookup = {};
var thead = t.getElementsByTagName('THEAD')[0];
var trs = thead.getElementsByTagName('TR');
for (var i = 0; i < trs.length; i++) {
var cells = trs[i].cells;
for (var j = 0; j < cells.length; j++) {
var c = cells[j];
var rowIndex = c.parentNode.rowIndex;
var cellId = rowIndex + "-" + c.cellIndex;
var rowSpan = c.rowSpan || 1;
var colSpan = c.colSpan || 1
var firstAvailCol;
if (typeof(matrix[rowIndex]) == "undefined") {
matrix[rowIndex] = [];
}
// Find first available column in the first row
for (var k = 0; k < matrix[rowIndex].length + 1; k++) {
if (typeof(matrix[rowIndex][k]) == "undefined") {
firstAvailCol = k;
break;
}
}
lookup[cellId] = firstAvailCol;
for (var k = rowIndex; k < rowIndex + rowSpan; k++) {
if (typeof(matrix[k]) == "undefined") {
matrix[k] = [];
}
var matrixrow = matrix[k];
for (var l = firstAvailCol; l < firstAvailCol + colSpan; l++) {
matrixrow[l] = "x";
}
}
}
}
return lookup;
}
function checkCellColSpan(table, rows, row) {
var arr = [],
r = table.tHead.rows,
c = r[row].cells;
for (var i = 0; i < c.length; i++) {
var cell = c[i];
if (cell.colSpan > 1) {
arr = arr.concat(checkCellColSpan(table, headerArr, row++));
} else {
if (table.tHead.length == 1 || (cell.rowSpan > 1 || !r[row + 1])) {
arr.push(cell);
}
// headerArr[row] = (i+row);
}
}
return arr;
};
function checkHeaderMetadata(cell, noSorterClass) {
if ((($.metadata) && ($(cell).metadata().sorter === false)) || $(cell).hasClass(noSorterClass)) {
return true;
};
return false;
}
function checkHeaderOptions(table, i) {
if ((table.config.headers[i]) && (table.config.headers[i].sorter === false)) {
return true;
};
return false;
}
function checkHeaderOptionsSortingLocked(table, i) {
if ((table.config.headers[i]) && (table.config.headers[i].lockedOrder)) return table.config.headers[i].lockedOrder;
return false;
}
function applyWidget(table) {
var c = table.config.widgets;
var l = c.length;
for (var i = 0; i < l; i++) {
getWidgetById(c[i]).format(table);
}
}
function getWidgetById(name) {
var l = widgets.length;
for (var i = 0; i < l; i++) {
if (widgets[i].id.toLowerCase() == name.toLowerCase()) {
return widgets[i];
}
}
};
function formatSortingOrder(v) {
if (typeof(v) != "Number") {
return (v.toLowerCase() == "desc") ? 1 : 0;
} else {
return (v == 1) ? 1 : 0;
}
}
function isValueInArray(v, a) {
var l = a.length;
for (var i = 0; i < l; i++) {
if (a[i][0] == v) {
return true;
}
}
return false;
}
function setHeadersCss(table, $headers, list, css) {
// remove all header information
$headers.removeClass(css[0]).removeClass(css[1]);
var h = [];
$headers.each(function (offset) {
if (!this.sortDisabled) {
h[this.column] = $(this);
}
});
var l = list.length;
for (var i = 0; i < l; i++) {
h[list[i][0]].addClass(css[list[i][1]]);
}
}
function fixColumnWidth(table, $headers) {
var c = table.config;
if (c.widthFixed) {
var colgroup = $('<colgroup>');
$("tr:first td", table.tBodies[0]).each(function () {
colgroup.append($('<col>').css('width', $(this).width()));
});
$(table).prepend(colgroup);
};
}
function updateHeaderSortCount(table, sortList) {
var c = table.config,
l = sortList.length;
for (var i = 0; i < l; i++) {
var s = sortList[i],
o = c.headerList[s[0]];
o.count = s[1];
o.count++;
}
}
/* sorting methods */
function multisort(table, sortList, cache) {
if (table.config.debug) {
var sortTime = new Date();
}
var dynamicExp = "var sortWrapper = function(a,b) {",
l = sortList.length;
// TODO: inline functions.
for (var i = 0; i < l; i++) {
var c = sortList[i][0];
var order = sortList[i][1];
// var s = (getCachedSortType(table.config.parsers,c) == "text") ?
// ((order == 0) ? "sortText" : "sortTextDesc") : ((order == 0) ?
// "sortNumeric" : "sortNumericDesc");
// var s = (table.config.parsers[c].type == "text") ? ((order == 0)
// ? makeSortText(c) : makeSortTextDesc(c)) : ((order == 0) ?
// makeSortNumeric(c) : makeSortNumericDesc(c));
var s = (table.config.parsers[c].type == "text") ? ((order == 0) ? makeSortFunction("text", "asc", c) : makeSortFunction("text", "desc", c)) : ((order == 0) ? makeSortFunction("numeric", "asc", c) : makeSortFunction("numeric", "desc", c));
var e = "e" + i;
dynamicExp += "var " + e + " = " + s; // + "(a[" + c + "],b[" + c
// + "]); ";
dynamicExp += "if(" + e + ") { return " + e + "; } ";
dynamicExp += "else { ";
}
// if value is the same keep orignal order
var orgOrderCol = cache.normalized[0].length - 1;
dynamicExp += "return a[" + orgOrderCol + "]-b[" + orgOrderCol + "];";
for (var i = 0; i < l; i++) {
dynamicExp += "}; ";
}
dynamicExp += "return 0; ";
dynamicExp += "}; ";
if (table.config.debug) {
benchmark("Evaling expression:" + dynamicExp, new Date());
}
eval(dynamicExp);
cache.normalized.sort(sortWrapper);
if (table.config.debug) {
benchmark("Sorting on " + sortList.toString() + " and dir " + order + " time:", sortTime);
}
return cache;
};
function makeSortFunction(type, direction, index) {
var a = "a[" + index + "]",
b = "b[" + index + "]";
if (type == 'text' && direction == 'asc') {
return "(" + a + " == " + b + " ? 0 : (" + a + " === null ? Number.POSITIVE_INFINITY : (" + b + " === null ? Number.NEGATIVE_INFINITY : (" + a + " < " + b + ") ? -1 : 1 )));";
} else if (type == 'text' && direction == 'desc') {
return "(" + a + " == " + b + " ? 0 : (" + a + " === null ? Number.POSITIVE_INFINITY : (" + b + " === null ? Number.NEGATIVE_INFINITY : (" + b + " < " + a + ") ? -1 : 1 )));";
} else if (type == 'numeric' && direction == 'asc') {
return "(" + a + " === null && " + b + " === null) ? 0 :(" + a + " === null ? Number.POSITIVE_INFINITY : (" + b + " === null ? Number.NEGATIVE_INFINITY : " + a + " - " + b + "));";
} else if (type == 'numeric' && direction == 'desc') {
return "(" + a + " === null && " + b + " === null) ? 0 :(" + a + " === null ? Number.POSITIVE_INFINITY : (" + b + " === null ? Number.NEGATIVE_INFINITY : " + b + " - " + a + "));";
}
};
function makeSortText(i) {
return "((a[" + i + "] < b[" + i + "]) ? -1 : ((a[" + i + "] > b[" + i + "]) ? 1 : 0));";
};
function makeSortTextDesc(i) {
return "((b[" + i + "] < a[" + i + "]) ? -1 : ((b[" + i + "] > a[" + i + "]) ? 1 : 0));";
};
function makeSortNumeric(i) {
return "a[" + i + "]-b[" + i + "];";
};
function makeSortNumericDesc(i) {
return "b[" + i + "]-a[" + i + "];";
};
function sortText(a, b) {
if (table.config.sortLocaleCompare) return a.localeCompare(b);
return ((a < b) ? -1 : ((a > b) ? 1 : 0));
};
function sortTextDesc(a, b) {
if (table.config.sortLocaleCompare) return b.localeCompare(a);
return ((b < a) ? -1 : ((b > a) ? 1 : 0));
};
function sortNumeric(a, b) {
return a - b;
};
function sortNumericDesc(a, b) {
return b - a;
};
function getCachedSortType(parsers, i) {
return parsers[i].type;
}; /* public methods */
this.construct = function (settings) {
return this.each(function () {
// if no thead or tbody quit.
if (!this.tHead || !this.tBodies) return;
// declare
var $this, $document, $headers, cache, config, shiftDown = 0,
sortOrder;
// new blank config object
this.config = {};
// merge and extend.
config = $.extend(this.config, $.tablesorter.defaults, settings);
// store common expression for speed
$this = $(this);
// save the settings where they read
$.data(this, "tablesorter", config);
// build headers
$headers = buildHeaders(this);
// try to auto detect column type, and store in tables config
this.config.parsers = buildParserCache(this, $headers);
// build the cache for the tbody cells
cache = buildCache(this);
// get the css class names, could be done else where.
var sortCSS = [config.cssDesc, config.cssAsc];
// fixate columns if the users supplies the fixedWidth option
fixColumnWidth(this);
// apply event handling to headers
// this is to big, perhaps break it out?
$headers.click(
function (e) {
var totalRows = ($this[0].tBodies[0] && $this[0].tBodies[0].rows.length) || 0;
if (!this.sortDisabled && totalRows > 0) {
// Only call sortStart if sorting is
// enabled.
$this.trigger("sortStart");
// store exp, for speed
var $cell = $(this);
// get current column index
var i = this.column;
// get current column sort order
this.order = this.count++ % 2;
// always sort on the locked order.
if(this.lockedOrder) this.order = this.lockedOrder;
// user only whants to sort on one
// column
if (!e[config.sortMultiSortKey]) {
// flush the sort list
config.sortList = [];
if (config.sortForce != null) {
var a = config.sortForce;
for (var j = 0; j < a.length; j++) {
if (a[j][0] != i) {
config.sortList.push(a[j]);
}
}
}
// add column to sort list
config.sortList.push([i, this.order]);
// multi column sorting
} else {
// the user has clicked on an all
// ready sortet column.
if (isValueInArray(i, config.sortList)) {
// revers the sorting direction
// for all tables.
for (var j = 0; j < config.sortList.length; j++) {
var s = config.sortList[j],
o = config.headerList[s[0]];
if (s[0] == i) {
o.count = s[1];
o.count++;
s[1] = o.count % 2;
}
}
} else {
// add column to sort list array
config.sortList.push([i, this.order]);
}
};
setTimeout(function () {
// set css for headers
setHeadersCss($this[0], $headers, config.sortList, sortCSS);
appendToTable(
$this[0], multisort(
$this[0], config.sortList, cache)
);
}, 1);
// stop normal event by returning false
return false;
}
// cancel selection
}).mousedown(function () {
if (config.cancelSelection) {
this.onselectstart = function () {
return false
};
return false;
}
});
// apply easy methods that trigger binded events
$this.bind("update", function () {
var me = this;
setTimeout(function () {
// rebuild parsers.
me.config.parsers = buildParserCache(
me, $headers);
// rebuild the cache map
cache = buildCache(me);
}, 1);
}).bind("updateCell", function (e, cell) {
var config = this.config;
// get position from the dom.
var pos = [(cell.parentNode.rowIndex - 1), cell.cellIndex];
// update cache
cache.normalized[pos[0]][pos[1]] = config.parsers[pos[1]].format(
getElementText(config, cell), cell);
}).bind("sorton", function (e, list) {
$(this).trigger("sortStart");
config.sortList = list;
// update and store the sortlist
var sortList = config.sortList;
// update header count index
updateHeaderSortCount(this, sortList);
// set css for headers
setHeadersCss(this, $headers, sortList, sortCSS);
// sort the table and append it to the dom
appendToTable(this, multisort(this, sortList, cache));
}).bind("appendCache", function () {
appendToTable(this, cache);
}).bind("applyWidgetId", function (e, id) {
getWidgetById(id).format(this);
}).bind("applyWidgets", function () {
// apply widgets
applyWidget(this);
});
if ($.metadata && ($(this).metadata() && $(this).metadata().sortlist)) {
config.sortList = $(this).metadata().sortlist;
}
// if user has supplied a sort list to constructor.
if (config.sortList.length > 0) {
$this.trigger("sorton", [config.sortList]);
}
// apply widgets
applyWidget(this);
});
};
this.addParser = function (parser) {
var l = parsers.length,
a = true;
for (var i = 0; i < l; i++) {
if (parsers[i].id.toLowerCase() == parser.id.toLowerCase()) {
a = false;
}
}
if (a) {
parsers.push(parser);
};
};
this.addWidget = function (widget) {
widgets.push(widget);
};
this.formatFloat = function (s) {
var i = parseFloat(s);
return (isNaN(i)) ? 0 : i;
};
this.formatInt = function (s) {
var i = parseInt(s);
return (isNaN(i)) ? 0 : i;
};
this.isDigit = function (s, config) {
// replace all an wanted chars and match.
return /^[-+]?\d*$/.test($.trim(s.replace(/[,.']/g, '')));
};
this.clearTableBody = function (table) {
if ($.browser.msie) {
function empty() {
while (this.firstChild)
this.removeChild(this.firstChild);
}
empty.apply(table.tBodies[0]);
} else {
table.tBodies[0].innerHTML = "";
}
};
}
});
// extend plugin scope
$.fn.extend({
tablesorter: $.tablesorter.construct
});
// make shortcut
var ts = $.tablesorter;
// add default parsers
ts.addParser({
id: "text",
is: function (s) {
return true;
}, format: function (s) {
return $.trim(s.toLocaleLowerCase());
}, type: "text"
});
ts.addParser({
id: "digit",
is: function (s, table) {
var c = table.config;
return $.tablesorter.isDigit(s, c);
}, format: function (s) {
return $.tablesorter.formatFloat(s);
}, type: "numeric"
});
ts.addParser({
id: "currency",
is: function (s) {
return /^[£$€?.]/.test(s);
}, format: function (s) {
return $.tablesorter.formatFloat(s.replace(new RegExp(/[£$€]/g), ""));
}, type: "numeric"
});
ts.addParser({
id: "ipAddress",
is: function (s) {
return /^\d{2,3}[\.]\d{2,3}[\.]\d{2,3}[\.]\d{2,3}$/.test(s);
}, format: function (s) {
var a = s.split("."),
r = "",
l = a.length;
for (var i = 0; i < l; i++) {
var item = a[i];
if (item.length == 2) {
r += "0" + item;
} else {
r += item;
}
}
return $.tablesorter.formatFloat(r);
}, type: "numeric"
});
ts.addParser({
id: "url",
is: function (s) {
return /^(https?|ftp|file):\/\/$/.test(s);
}, format: function (s) {
return jQuery.trim(s.replace(new RegExp(/(https?|ftp|file):\/\//), ''));
}, type: "text"
});
ts.addParser({
id: "isoDate",
is: function (s) {
return /^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(s);
}, format: function (s) {
return $.tablesorter.formatFloat((s != "") ? new Date(s.replace(
new RegExp(/-/g), "/")).getTime() : "0");
}, type: "numeric"
});
ts.addParser({
id: "percent",
is: function (s) {
return /\%$/.test($.trim(s));
}, format: function (s) {
return $.tablesorter.formatFloat(s.replace(new RegExp(/%/g), ""));
}, type: "numeric"
});
ts.addParser({
id: "usLongDate",
is: function (s) {
return s.match(new RegExp(/^[A-Za-z]{3,10}\.? [0-9]{1,2}, ([0-9]{4}|'?[0-9]{2}) (([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(AM|PM)))$/));
}, format: function (s) {
return $.tablesorter.formatFloat(new Date(s).getTime());
}, type: "numeric"
});
ts.addParser({
id: "shortDate",
is: function (s) {
return /\d{1,2}[\/\-]\d{1,2}[\/\-]\d{2,4}/.test(s);
}, format: function (s, table) {
var c = table.config;
s = s.replace(/\-/g, "/");
if (c.dateFormat == "us") {
// reformat the string in ISO format
s = s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/, "$3/$1/$2");
} else if (c.dateFormat == "uk") {
// reformat the string in ISO format
s = s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/, "$3/$2/$1");
} else if (c.dateFormat == "dd/mm/yy" || c.dateFormat == "dd-mm-yy") {
s = s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{2})/, "$1/$2/$3");
}
return $.tablesorter.formatFloat(new Date(s).getTime());
}, type: "numeric"
});
ts.addParser({
id: "time",
is: function (s) {
return /^(([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(am|pm)))$/.test(s);
}, format: function (s) {
return $.tablesorter.formatFloat(new Date("2000/01/01 " + s).getTime());
}, type: "numeric"
});
ts.addParser({
id: "metadata",
is: function (s) {
return false;
}, format: function (s, table, cell) {
var c = table.config,
p = (!c.parserMetadataName) ? 'sortValue' : c.parserMetadataName;
return $(cell).metadata()[p];
}, type: "numeric"
});
// add default widgets
ts.addWidget({
id: "zebra",
format: function (table) {
if (table.config.debug) {
var time = new Date();
}
var $tr, row = -1,
odd;
// loop through the visible rows
$("tr:visible", table.tBodies[0]).each(function (i) {
$tr = $(this);
// style children rows the same way the parent
// row was styled
if (!$tr.hasClass(table.config.cssChildRow)) row++;
odd = (row % 2 == 0);
$tr.removeClass(
table.config.widgetZebra.css[odd ? 0 : 1]).addClass(
table.config.widgetZebra.css[odd ? 1 : 0])
});
if (table.config.debug) {
$.tablesorter.benchmark("Applying Zebra widget", time);
}
}
});
})(jQuery); | JavaScript |
/// <reference path="http://code.jquery.com/jquery-1.4.1-vsdoc.js" />
/*
* Print Element Plugin 1.2
*
* Copyright (c) 2010 Erik Zaadi
*
* Inspired by PrintArea (http://plugins.jquery.com/project/PrintArea) and
* http://stackoverflow.com/questions/472951/how-do-i-print-an-iframe-from-javascript-in-safari-chrome
*
* Home Page : http://projects.erikzaadi/jQueryPlugins/jQuery.printElement
* Issues (bug reporting) : http://github.com/erikzaadi/jQueryPlugins/issues/labels/printElement
* jQuery plugin page : http://plugins.jquery.com/project/printElement
*
* Thanks to David B (http://github.com/ungenio) and icgJohn (http://www.blogger.com/profile/11881116857076484100)
* For their great contributions!
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
* Note, Iframe Printing is not supported in Opera and Chrome 3.0, a popup window will be shown instead
*/
; (function (window, undefined) {
var document = window["document"];
var $ = window["jQuery"];
$.fn["printElement"] = function (options) {
var mainOptions = $.extend({}, $.fn["printElement"]["defaults"], options);
//iframe mode is not supported for opera and chrome 3.0 (it prints the entire page).
//http://www.google.com/support/forum/p/Webmasters/thread?tid=2cb0f08dce8821c3&hl=en
if (mainOptions["printMode"] == 'iframe') {
if ($.browser.opera || (/chrome/.test(navigator.userAgent.toLowerCase())))
mainOptions["printMode"] = 'popup';
}
//Remove previously printed iframe if exists
$("[id^='printElement_']").remove();
return this.each(function () {
//Support Metadata Plug-in if available
var opts = $.meta ? $.extend({}, mainOptions, $(this).data()) : mainOptions;
_printElement($(this), opts);
});
};
$.fn["printElement"]["defaults"] = {
"printMode": 'iframe', //Usage : iframe / popup
"pageTitle": '', //Print Page Title
"overrideElementCSS": null,
/* Can be one of the following 3 options:
* 1 : boolean (pass true for stripping all css linked)
* 2 : array of $.fn.printElement.cssElement (s)
* 3 : array of strings with paths to alternate css files (optimized for print)
*/
"printBodyOptions": {
"styleToAdd": 'padding:10px;margin:10px;', //style attributes to add to the body of print document
"classNameToAdd": '' //css class to add to the body of print document
},
"leaveOpen": false, // in case of popup, leave the print page open or not
"iframeElementOptions": {
"styleToAdd": 'border:none;position:absolute;width:0px;height:0px;bottom:0px;left:0px;', //style attributes to add to the iframe element
"classNameToAdd": '' //css class to add to the iframe element
}
};
$.fn["printElement"]["cssElement"] = {
"href": '',
"media": ''
};
function _printElement(element, opts) {
//Create markup to be printed
var html = _getMarkup(element, opts);
var popupOrIframe = null;
var documentToWriteTo = null;
if (opts["printMode"].toLowerCase() == 'popup') {
popupOrIframe = window.open('about:blank', 'printElementWindow', 'width=650,height=440,scrollbars=yes');
documentToWriteTo = popupOrIframe.document;
}
else {
//The random ID is to overcome a safari bug http://www.cjboco.com.sharedcopy.com/post.cfm/442dc92cd1c0ca10a5c35210b8166882.html
var printElementID = "printElement_" + (Math.round(Math.random() * 99999)).toString();
//Native creation of the element is faster..
var iframe = document.createElement('IFRAME');
$(iframe).attr({
style: opts["iframeElementOptions"]["styleToAdd"],
id: printElementID,
className: opts["iframeElementOptions"]["classNameToAdd"],
frameBorder: 0,
scrolling: 'no',
src: 'about:blank'
});
document.body.appendChild(iframe);
documentToWriteTo = (iframe.contentWindow || iframe.contentDocument);
if (documentToWriteTo.document)
documentToWriteTo = documentToWriteTo.document;
iframe = document.frames ? document.frames[printElementID] : document.getElementById(printElementID);
popupOrIframe = iframe.contentWindow || iframe;
}
focus();
documentToWriteTo.open();
documentToWriteTo.write(html);
documentToWriteTo.close();
_callPrint(popupOrIframe);
};
function _callPrint(element) {
if (element && element["printPage"])
element["printPage"]();
else
setTimeout(function () {
_callPrint(element);
}, 50);
}
function _getElementHTMLIncludingFormElements(element) {
var $element = $(element);
//Radiobuttons and checkboxes
$(":checked", $element).each(function () {
this.setAttribute('checked', 'checked');
});
//simple text inputs
$("input[type='text']", $element).each(function () {
this.setAttribute('value', $(this).val());
});
$("select", $element).each(function () {
var $select = $(this);
$("option", $select).each(function () {
if ($select.val() == $(this).val())
this.setAttribute('selected', 'selected');
});
});
$("textarea", $element).each(function () {
//Thanks http://blog.ekini.net/2009/02/24/jquery-getting-the-latest-textvalue-inside-a-textarea/
var value = $(this).attr('value');
//fix for issue 7 (http://plugins.jquery.com/node/13503 and http://github.com/erikzaadi/jQueryPlugins/issues#issue/7)
if ($.browser.mozilla && this.firstChild)
this.firstChild.textContent = value;
else
this.innerHTML = value;
});
//http://dbj.org/dbj/?p=91
var elementHtml = $('<div></div>').append($element.clone()).html();
return elementHtml;
}
function _getBaseHref() {
var port = (window.location.port) ? ':' + window.location.port : '';
return window.location.protocol + '//' + window.location.hostname + port + window.location.pathname;
}
function _getMarkup(element, opts) {
var $element = $(element);
var elementHtml = _getElementHTMLIncludingFormElements(element);
var html = new Array();
html.push('<html><head><title>' + opts["pageTitle"] + '</title>');
if (opts["overrideElementCSS"]) {
if (opts["overrideElementCSS"].length > 0) {
for (var x = 0; x < opts["overrideElementCSS"].length; x++) {
var current = opts["overrideElementCSS"][x];
if (typeof (current) == 'string')
html.push('<link type="text/css" rel="stylesheet" href="' + current + '" >');
else
html.push('<link type="text/css" rel="stylesheet" href="' + current["href"] + '" media="' + current["media"] + '" >');
}
}
}
else {
$("link", document).filter(function () {
return $(this).attr("rel").toLowerCase() == "stylesheet";
}).each(function () {
html.push('<link type="text/css" rel="stylesheet" href="' + $(this).attr("href") + '" media="' + $(this).attr('media') + '" >');
});
}
//Ensure that relative links work
html.push('<base href="' + _getBaseHref() + '" />');
html.push('</head><body style="' + opts["printBodyOptions"]["styleToAdd"] + '" class="' + opts["printBodyOptions"]["classNameToAdd"] + '">');
html.push('<div class="' + $element.attr('class') + '">' + elementHtml + '</div>');
html.push('<script type="text/javascript">function printPage(){focus();print();' + ((!$.browser.opera && !opts["leaveOpen"] && opts["printMode"].toLowerCase() == 'popup') ? 'close();' : '') + '}</script>');
html.push('</body></html>');
return html.join('');
};
})(window);
| JavaScript |
// NOTICE!! DO NOT USE ANY OF THIS JAVASCRIPT
// IT'S ALL JUST JUNK FOR OUR DOCS!
// ++++++++++++++++++++++++++++++++++++++++++
!function ($) {
$(function(){
var $window = $(window)
// Disable certain links in docs
$('section [href^=#]').click(function (e) {
e.preventDefault()
})
// side bar
$('.bs-docs-sidenav').affix({
offset: {
top: function () { return $window.width() <= 980 ? 290 : 210 }
, bottom: 270
}
})
// make code pretty
window.prettyPrint && prettyPrint()
// add-ons
$('.add-on :checkbox').on('click', function () {
var $this = $(this)
, method = $this.attr('checked') ? 'addClass' : 'removeClass'
$(this).parents('.add-on')[method]('active')
})
// add tipsies to grid for scaffolding
if ($('#gridSystem').length) {
$('#gridSystem').tooltip({
selector: '.show-grid > div'
, title: function () { return $(this).width() + 'px' }
})
}
// tooltip demo
$('.tooltip-demo').tooltip({
selector: "a[rel=tooltip]"
})
$('.tooltip-test').tooltip()
$('.popover-test').popover()
// popover demo
$("a[rel=popover]")
.popover()
.click(function(e) {
e.preventDefault()
})
// button state demo
$('#fat-btn')
.click(function () {
var btn = $(this)
btn.button('loading')
setTimeout(function () {
btn.button('reset')
}, 3000)
})
// carousel demo
$('#myCarousel').carousel()
// javascript build logic
var inputsComponent = $("#components.download input")
, inputsPlugin = $("#plugins.download input")
, inputsVariables = $("#variables.download input")
// toggle all plugin checkboxes
$('#components.download .toggle-all').on('click', function (e) {
e.preventDefault()
inputsComponent.attr('checked', !inputsComponent.is(':checked'))
})
$('#plugins.download .toggle-all').on('click', function (e) {
e.preventDefault()
inputsPlugin.attr('checked', !inputsPlugin.is(':checked'))
})
$('#variables.download .toggle-all').on('click', function (e) {
e.preventDefault()
inputsVariables.val('')
})
// request built javascript
$('.download-btn').on('click', function () {
var css = $("#components.download input:checked")
.map(function () { return this.value })
.toArray()
, js = $("#plugins.download input:checked")
.map(function () { return this.value })
.toArray()
, vars = {}
, img = ['glyphicons-halflings.png', 'glyphicons-halflings-white.png']
$("#variables.download input")
.each(function () {
$(this).val() && (vars[ $(this).prev().text() ] = $(this).val())
})
$.ajax({
type: 'POST'
, url: /\?dev/.test(window.location) ? 'http://localhost:3000' : 'http://bootstrap.herokuapp.com'
, dataType: 'jsonpi'
, params: {
js: js
, css: css
, vars: vars
, img: img
}
})
})
})
// Modified from the original jsonpi https://github.com/benvinegar/jquery-jsonpi
$.ajaxTransport('jsonpi', function(opts, originalOptions, jqXHR) {
var url = opts.url;
return {
send: function(_, completeCallback) {
var name = 'jQuery_iframe_' + jQuery.now()
, iframe, form
iframe = $('<iframe>')
.attr('name', name)
.appendTo('head')
form = $('<form>')
.attr('method', opts.type) // GET or POST
.attr('action', url)
.attr('target', name)
$.each(opts.params, function(k, v) {
$('<input>')
.attr('type', 'hidden')
.attr('name', k)
.attr('value', typeof v == 'string' ? v : JSON.stringify(v))
.appendTo(form)
})
form.appendTo('body').submit()
}
}
})
}(window.jQuery) | JavaScript |
$(document).ready(function(){
$('.quickSearchButton').click(function(){
$(this).closest('.flexigrid').find('.quickSearchBox').slideToggle('normal');
});
$('.ptogtitle').click(function(){
if ($(this).hasClass('vsble')) {
$(this).removeClass('vsble');
$(this).closest('.flexigrid').find('.main-table-box').slideDown("slow");
} else {
$(this).addClass('vsble');
$(this).closest('.flexigrid').find('.main-table-box').slideUp("slow");
}
});
var call_fancybox = function(){
$('.image-thumbnail').fancybox({
'transitionIn' : 'elastic',
'transitionOut' : 'elastic',
'speedIn' : 600,
'speedOut' : 200,
'overlayShow' : false
});
};
call_fancybox();
add_edit_button_listener();
$('.filtering_form').submit(function(){
var crud_page = parseInt($(this).closest('.flexigrid').find('.crud_page').val(), 10);
var last_page = parseInt($(this).closest('.flexigrid').find('.last-page-number').html(), 10);
if (crud_page > last_page) {
$(this).closest('.flexigrid').find('.crud_page').val(last_page);
}
if (crud_page <= 0) {
$(this).closest('.flexigrid').find('.crud_page').val('1');
}
var this_form = $(this);
var ajax_list_info_url = $(this).attr('data-ajax-list-info-url');
$(this).ajaxSubmit({
url: ajax_list_info_url,
dataType: 'json',
beforeSend: function(){
this_form.closest('.flexigrid').find('.ajax_refresh_and_loading').addClass('loading');
},
complete: function(){
this_form.closest('.flexigrid').find('.ajax_refresh_and_loading').removeClass('loading');
},
success: function(data){
this_form.closest('.flexigrid').find('.total_items').html( data.total_results);
displaying_and_pages(this_form.closest('.flexigrid'));
this_form.ajaxSubmit({
//console.log(data);
success: function(data){
this_form.closest('.flexigrid').find('.ajax_list').html(data);
call_fancybox();
add_edit_button_listener();
}
});
}
});
if ($('.flexigrid').length == 1) { //disable cookie storing for multiple grids in one page
createCookie('crud_page_'+unique_hash,crud_page,1);
createCookie('per_page_'+unique_hash,$('#per_page').val(),1);
createCookie('hidden_ordering_'+unique_hash,$('#hidden-ordering').val(),1);
createCookie('hidden_sorting_'+unique_hash,$('#hidden-sorting').val(),1);
createCookie('search_text_'+unique_hash,$(this).closest('.flexigrid').find('.search_text').val(),1);
createCookie('search_field_'+unique_hash,$('#search_field').val(),1);
}
return false;
});
$('.crud_search').click(function(){
$(this).closest('.flexigrid').find('.crud_page').val('1');
$(this).closest('.flexigrid').find('.filtering_form').trigger('submit');
});
$('.search_clear').click(function(){
$(this).closest('.flexigrid').find('.crud_page').val('1');
$(this).closest('.flexigrid').find('.search_text').val('');
$(this).closest('.flexigrid').find('.filtering_form').trigger('submit');
});
$('.per_page').change(function(){
$(this).closest('.flexigrid').find('.crud_page').val('1');
$(this).closest('.flexigrid').find('.filtering_form').trigger('submit');
});
$('.ajax_refresh_and_loading').click(function(){
$(this).closest('.flexigrid').find('.filtering_form').trigger('submit');
});
$('.first-button').click(function(){
$(this).closest('.flexigrid').find('.crud_page').val('1');
$(this).closest('.flexigrid').find('.filtering_form').trigger('submit');
});
$('.prev-button').click(function(){
if( $(this).closest('.flexigrid').find('.crud_page').val() != "1")
{
$(this).closest('.flexigrid').find('.crud_page').val( parseInt($(this).closest('.flexigrid').find('.crud_page').val(),10) - 1 );
$(this).closest('.flexigrid').find('.crud_page').trigger('change');
}
});
$('.last-button').click(function(){
$(this).closest('.flexigrid').find('.crud_page').val( $(this).closest('.flexigrid').find('.last-page-number').html());
$(this).closest('.flexigrid').find('.filtering_form').trigger('submit');
});
$('.next-button').click(function(){
$(this).closest('.flexigrid').find('.crud_page').val( parseInt($(this).closest('.flexigrid').find('.crud_page').val()) + 1 );
$(this).closest('.flexigrid').find('.crud_page').trigger('change');
});
$('.crud_page').change(function(){
$(this).closest('.flexigrid').find('.filtering_form').trigger('submit');
});
$('.ajax_list').on('click','.field-sorting', function(){
$(this).closest('.flexigrid').find('.hidden-sorting').val($(this).attr('rel'));
if ($(this).hasClass('asc')) {
$(this).closest('.flexigrid').find('.hidden-ordering').val('desc');
} else {
$(this).closest('.flexigrid').find('.hidden-ordering').val('asc');
}
$(this).closest('.flexigrid').find('.crud_page').val('1');
$(this).closest('.flexigrid').find('.filtering_form').trigger('submit');
});
$('.ajax_list').on('click','.delete-row', function(){
var delete_url = $(this).attr('href');
var this_element = this;
var this_container = $(this).closest('.flexigrid');
try{
confirm_alert('Konfirmasi',
message_alert_delete,
function(){
$.ajax({
url: delete_url,
dataType: 'json',
success: function(data)
{
if(data.success)
{
if($(this_element).attr('invoke_after'))
{
var fn_invoke_after = $(this_element).attr('invoke_after');
if(typeof window[fn_invoke_after] == 'function')
{
window[fn_invoke_after](this_element);
}
}
else
{
this_container.find('.last-button').trigger('click');
}
success_message(data.success_message);
}
else
{
error_message(data.error_message);
}
}
});
},
function(){
});
}
catch(e)
{
//console.log(e);
}
return false;
});
$('.export-anchor').click(function(){
var export_url = $(this).attr('data-url');
var form_input_html = '';
$.each($(this).closest('.flexigrid').find('.filtering_form').serializeArray(), function(i, field) {
form_input_html = form_input_html + '<input type="hidden" name="'+field.name+'" value="'+field.value+'">';
});
var form_on_demand = $("<form/>").attr("id","export_form").attr("method","post").attr("target","_blank")
.attr("action",export_url).html(form_input_html);
$(this).closest('.flexigrid').find('.hidden-operations').html(form_on_demand);
$(this).closest('.flexigrid').find('.hidden-operations').find('#export_form').submit();
});
$('.print-anchor').click(function(){
var print_url = $(this).attr('data-url');
var form_input_html = '';
$.each($(this).closest('.flexigrid').find('.filtering_form').serializeArray(), function(i, field) {
form_input_html = form_input_html + '<input type="hidden" name="'+field.name+'" value="'+field.value+'">';
});
var form_on_demand = $("<form/>").attr("id","print_form").attr("method","post").attr("action",print_url).html(form_input_html);
$(this).closest('.flexigrid').find('.hidden-operations').html(form_on_demand);
var _this_button = $(this);
$(this).closest('.flexigrid').find('#print_form').ajaxSubmit({
beforeSend: function(){
_this_button.find('.fbutton').addClass('loading');
_this_button.find('.fbutton>div').css('opacity','0.4');
},
complete: function(){
_this_button.find('.fbutton').removeClass('loading');
_this_button.find('.fbutton>div').css('opacity','1');
},
success: function(html_data){
$("<div/>").html(html_data).printElement();
}
});
});
$('.crud_page').numeric();
if ($('.flexigrid').length == 1) { //disable cookie storing for multiple grids in one page
setTimeout(function(){
var cookie_crud_page = window.ck_crud_page;
var cookie_per_page = window.ck_per_page;
var hidden_ordering = readCookie('hidden_ordering_'+unique_hash);
var hidden_sorting = readCookie('hidden_sorting_'+unique_hash);
var cookie_search_text = readCookie('search_text_'+unique_hash);
var cookie_search_field = readCookie('search_field_'+unique_hash);
var do_refresh = true;
//var dontLoadCookies = typeof parent.gcConf.dontLoadCookies !=
if(cookie_crud_page !== null && cookie_per_page !== null)
{
// $('#hidden-ordering').val(hidden_ordering);
// $('#hidden-sorting').val(hidden_sorting);
$('#search_text').val(cookie_search_text);
$('#search_field').val(cookie_search_field);
// if(cookie_search_text !== '')
// $('#quickSearchButton').trigger('click');
cookie_crud_page = parseInt(cookie_crud_page);
cookie_crud_page = !isNaN(cookie_crud_page)?cookie_crud_page:'1';
cookie_per_page = parseInt(cookie_per_page);
cookie_per_page = !isNaN(cookie_per_page)?cookie_per_page:'10';
if( typeof parent.gcConf != 'undefined')
{
if(typeof parent.gcConf.dontLoadCookies != 'undefined')
{
gcConf.dontLoadCookies = parent.gcConf.dontLoadCookies;
}
}
if(typeof gcConf.dontLoadCookies != 'undefined')
{
if(gcConf.dontLoadCookies=='Yes')
{
// do_refresh = false;
// gcConf.dontLoadCookies = false;
// console.log(gcConf.dontLoadCookies)
cookie_crud_page = 1;
}
else
{
do_refresh = true;
}
}
//console.log(parent.gcConf);
$('#crud_page').val(cookie_crud_page);
$('#per_page').val(cookie_per_page);
//
if(do_refresh)
{
// console.log(do_refresh);
if(typeof parent.gcConf != 'undefined')
{
var dontRefresh = typeof parent.gcConf.dontLoadCookies != 'undefined'? parent.gcConf.dontLoadCookies : 'No';
//console.log(dontRefresh);
if(dontRefresh != 'Yes')
{
$('#filtering_form').trigger('submit');
}
else
{
delete parent.gcConf.dontLoadCookies;
}
}
}
}
},1000);
}
});
function displaying_and_pages(this_container)
{
if (this_container.find('.crud_page').val() == 0) {
this_container.find('.crud_page').val('1');
}
var crud_page = parseInt( this_container.find('.crud_page').val(), 10) ;
var per_page = parseInt( this_container.find('.per_page').val(), 10 );
var total_items = parseInt( this_container.find('.total_items').html(), 10 );
this_container.find('.last-page-number').html( Math.ceil( total_items / per_page) );
if (total_items == 0) {
this_container.find('.page-starts-from').html( '0');
} else {
this_container.find('.page-starts-from').html( (crud_page - 1)*per_page + 1 );
}
if (crud_page*per_page > total_items) {
this_container.find('.page-ends-to').html( total_items );
} else {
this_container.find('.page-ends-to').html( crud_page*per_page );
}
} | JavaScript |
$(function(){
$('.ptogtitle').click(function(){
if($(this).hasClass('vsble'))
{
$(this).removeClass('vsble');
$('#main-table-box #crudForm').slideDown("slow");
}
else
{
$(this).addClass('vsble');
$('#main-table-box #crudForm').slideUp("slow");
}
});
var save_and_close = false;
$('#save-and-go-back-button').click(function(){
//save_and_close = true;
//$('#crudForm').trigger('submit');
return false;
});
var fnAfterAdd = function(data_unique_hash)
{
if(data_unique_hash)
{
//console.log(data_unique_hash)
}
else
{
//console.log('Data unique hash failed.');
}
var cookie_page = $.cookie('crud_page_'+data_unique_hash);
var cookie_perpage = $.cookie('per_page_'+data_unique_hash);
var list_info_url = window.gcConf.list_info_url+'?uuid='+uniqid();
$.getJSON(list_info_url,function(r){
if(!(cookie_perpage) )
cookie_perpage = 10;
var total = parseInt(r.total_results);
var crud_page = Math.ceil(total/cookie_perpage);
//console.log(crud_page);
//console.log($.cookie('crud_page_'+data_unique_hash));
$.cookie('crud_page_'+data_unique_hash,crud_page,{path:'/',expires:1});
$.cookie('per_page_'+data_unique_hash,cookie_perpage,{path:'/',expires:1});
//createCookie('crud_page_'+data_unique_hash,crud_page,1);
//console.log(crud_page);
});
//console.log(data_unique_hash);
}
$('#crudForm').submit(function(){
var my_crud_form = $(this);
var param = $('#crudForm').serializeArray();
$(this).ajaxSubmit({
url: validation_url,
dataType: 'json',
cache: 'false',
beforeSend: function(){
$("#FormLoading").show();
},
success: function(data){
$("#FormLoading").hide();
if(data.success)
{
$('#crudForm').ajaxSubmit({
dataType: 'text',
cache: 'false',
beforeSend: function(){
$("#FormLoading").show();
},
success: function(result){
$("#FormLoading").fadeOut("slow");
data = $.parseJSON( result );
if(typeof window.gcConf.afterSubmit == 'function')
{
window.gcConf.afterSubmit_param = param;
window.gcConf.afterSubmit_data = data;
}
if(data.success)
{
clearForm();
var data_unique_hash = my_crud_form.closest(".flexigrid").attr("data-unique-hash");
form_success_message(data.success_message,'add',data_unique_hash,fnAfterAdd);
$('.flexigrid[data-unique-hash='+data_unique_hash+']').find('.ajax_refresh_and_loading').trigger('click');
if(true)
{
if ($('#save-and-go-back-button').closest('.ui-dialog').length === 0) {
success_message(data.success_message);
} else {
$(".ui-dialog-content").dialog("close");
success_message(data.success_message);
}
//return true;
}
$('.field_error').each(function(){
$(this).removeClass('field_error');
});
}
else
{
alert( message_insert_error );
}
},
error: function(){
alert( message_insert_error );
$("#FormLoading").hide();
}
});
}
else
{
$('.field_error').removeClass('field_error');
form_error_message(data.error_message);
$.each(data.error_fields, function(index,value){
$('input[name='+index+']').addClass('field_error');
});
}
},
error: function(){
error_message (message_insert_error);
$("#FormLoading").hide();
}
});
return false;
});
if( $('#cancel-button').closest('.ui-dialog').length === 0 ) {
$('#cancel-button').click(function(){
if($(this).data('dont_reload'))
{
//$(this).data('dont_reload',false);
return false;
}
// try{
// confirm_alert('Confirmation',message_alert_add_form,function(){
window.location = list_url;
// },function(){
// });
// }
// catch(e)
// {
// //console.log(e);
// }
//if( confirm( message_alert_add_form ) )
//{
//}
return false;
});
}
});
function clearForm()
{
$('#crudForm').find(':input').each(function() {
if(!$(this).hasClass('dont-clear')){
switch(this.type) {
case 'password':
case 'select-multiple':
case 'select-one':
case 'text':
case 'textarea':
$(this).val('');
break;
case 'checkbox':
case 'radio':
this.checked = false;
}
}
});
/* Clear upload inputs */
$('.open-file').each(function(){
// WALKING TO EXISTING
var parent = $(this).parent().closest('.form-input-box');
var dont_clear = (parent.attr('dontClear') == 'true');
if(dont_clear)
{
//
}
else
{
// DO DEFAULT BEHAVIOURS
parent.find('.upload-success-url').hide();
parent.find('.fileinput-button').fadeIn("normal");
// /* -------------------- */
parent.find('.remove-all').trigger('click');
parent.find('.gc-file-upload,.hidden-upload-input').val('');
}
});
// $('.chosen-multiple-select, .chosen-select, .ajax-chosen-select').each(function(){
// $(this).trigger("liszt:updated");
// });
} | JavaScript |
/*!
* jQuery Form Plugin
* version: 2.72 (28-APR-2011)
* @requires jQuery v1.3.2 or later
*
* Examples and documentation at: http://malsup.com/jquery/form/
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*/
;(function($) {
/*
Usage Note:
-----------
Do not use both ajaxSubmit and ajaxForm on the same form. These
functions are intended to be exclusive. Use ajaxSubmit if you want
to bind your own submit handler to the form. For example,
$(document).ready(function() {
$('#myForm').bind('submit', function(e) {
e.preventDefault(); // <-- important
$(this).ajaxSubmit({
target: '#output'
});
});
});
Use ajaxForm when you want the plugin to manage all the event binding
for you. For example,
$(document).ready(function() {
$('#myForm').ajaxForm({
target: '#output'
});
});
When using ajaxForm, the ajaxSubmit function will be invoked for you
at the appropriate time.
*/
/**
* ajaxSubmit() provides a mechanism for immediately submitting
* an HTML form using AJAX.
*/
$.fn.ajaxSubmit = function(options) {
// fast fail if nothing selected (http://dev.jquery.com/ticket/2752)
if (!this.length) {
log('ajaxSubmit: skipping submit process - no element selected');
return this;
}
if (typeof options == 'function') {
options = { success: options };
}
var action = this.attr('action');
var url = (typeof action === 'string') ? $.trim(action) : '';
if (url) {
// clean url (don't include hash vaue)
url = (url.match(/^([^#]+)/)||[])[1];
}
url = url || window.location.href || '';
options = $.extend(true, {
url: url,
success: $.ajaxSettings.success,
type: this[0].getAttribute('method') || 'GET', // IE7 massage (see issue 57)
iframeSrc: /^https/i.test(window.location.href || '') ? 'javascript:false' : 'about:blank'
}, options);
// hook for manipulating the form data before it is extracted;
// convenient for use with rich editors like tinyMCE or FCKEditor
var veto = {};
this.trigger('form-pre-serialize', [this, options, veto]);
if (veto.veto) {
log('ajaxSubmit: submit vetoed via form-pre-serialize trigger');
return this;
}
// provide opportunity to alter form data before it is serialized
if (options.beforeSerialize && options.beforeSerialize(this, options) === false) {
log('ajaxSubmit: submit aborted via beforeSerialize callback');
return this;
}
var n,v,a = this.formToArray(options.semantic);
if (options.data) {
options.extraData = options.data;
for (n in options.data) {
if(options.data[n] instanceof Array) {
for (var k in options.data[n]) {
a.push( { name: n, value: options.data[n][k] } );
}
}
else {
v = options.data[n];
v = $.isFunction(v) ? v() : v; // if value is fn, invoke it
a.push( { name: n, value: v } );
}
}
}
// give pre-submit callback an opportunity to abort the submit
if (options.beforeSubmit && options.beforeSubmit(a, this, options) === false) {
log('ajaxSubmit: submit aborted via beforeSubmit callback');
return this;
}
// fire vetoable 'validate' event
this.trigger('form-submit-validate', [a, this, options, veto]);
if (veto.veto) {
log('ajaxSubmit: submit vetoed via form-submit-validate trigger');
return this;
}
var q = $.param(a);
if (options.type.toUpperCase() == 'GET') {
options.url += (options.url.indexOf('?') >= 0 ? '&' : '?') + q;
options.data = null; // data is null for 'get'
}
else {
options.data = q; // data is the query string for 'post'
}
var $form = this, callbacks = [];
if (options.resetForm) {
callbacks.push(function() { $form.resetForm(); });
}
if (options.clearForm) {
callbacks.push(function() { $form.clearForm(); });
}
// perform a load on the target only if dataType is not provided
if (!options.dataType && options.target) {
var oldSuccess = options.success || function(){};
callbacks.push(function(data) {
var fn = options.replaceTarget ? 'replaceWith' : 'html';
$(options.target)[fn](data).each(oldSuccess, arguments);
});
}
else if (options.success) {
callbacks.push(options.success);
}
options.success = function(data, status, xhr) { // jQuery 1.4+ passes xhr as 3rd arg
var context = options.context || options; // jQuery 1.4+ supports scope context
for (var i=0, max=callbacks.length; i < max; i++) {
callbacks[i].apply(context, [data, status, xhr || $form, $form]);
}
};
// are there files to upload?
var fileInputs = $('input:file', this).length > 0;
var mp = 'multipart/form-data';
var multipart = ($form.attr('enctype') == mp || $form.attr('encoding') == mp);
// options.iframe allows user to force iframe mode
// 06-NOV-09: now defaulting to iframe mode if file input is detected
if (options.iframe !== false && (fileInputs || options.iframe || multipart)) {
// hack to fix Safari hang (thanks to Tim Molendijk for this)
// see: http://groups.google.com/group/jquery-dev/browse_thread/thread/36395b7ab510dd5d
if (options.closeKeepAlive) {
$.get(options.closeKeepAlive, fileUpload);
}
else {
fileUpload();
}
}
else {
$.ajax(options);
}
// fire 'notify' event
this.trigger('form-submit-notify', [this, options]);
return this;
// private function for handling file uploads (hat tip to YAHOO!)
function fileUpload() {
var form = $form[0];
if ($(':input[name=submit],:input[id=submit]', form).length) {
// if there is an input with a name or id of 'submit' then we won't be
// able to invoke the submit fn on the form (at least not x-browser)
alert('Error: Form elements must not have name or id of "submit".');
return;
}
var s = $.extend(true, {}, $.ajaxSettings, options);
s.context = s.context || s;
var id = 'jqFormIO' + (new Date().getTime()), fn = '_'+id;
var $io = $('<iframe id="' + id + '" name="' + id + '" src="'+ s.iframeSrc +'" />');
var io = $io[0];
$io.css({ position: 'absolute', top: '-1000px', left: '-1000px' });
var xhr = { // mock object
aborted: 0,
responseText: null,
responseXML: null,
status: 0,
statusText: 'n/a',
getAllResponseHeaders: function() {},
getResponseHeader: function() {},
setRequestHeader: function() {},
abort: function(status) {
var e = (status === 'timeout' ? 'timeout' : 'aborted');
log('aborting upload... ' + e);
this.aborted = 1;
$io.attr('src', s.iframeSrc); // abort op in progress
xhr.error = e;
s.error && s.error.call(s.context, xhr, e, e);
g && $.event.trigger("ajaxError", [xhr, s, e]);
s.complete && s.complete.call(s.context, xhr, e);
}
};
var g = s.global;
// trigger ajax global events so that activity/block indicators work like normal
if (g && ! $.active++) {
$.event.trigger("ajaxStart");
}
if (g) {
$.event.trigger("ajaxSend", [xhr, s]);
}
if (s.beforeSend && s.beforeSend.call(s.context, xhr, s) === false) {
if (s.global) {
$.active--;
}
return;
}
if (xhr.aborted) {
return;
}
var timedOut = 0, timeoutHandle;
// add submitting element to data if we know it
var sub = form.clk;
if (sub) {
var n = sub.name;
if (n && !sub.disabled) {
s.extraData = s.extraData || {};
s.extraData[n] = sub.value;
if (sub.type == "image") {
s.extraData[n+'.x'] = form.clk_x;
s.extraData[n+'.y'] = form.clk_y;
}
}
}
// take a breath so that pending repaints get some cpu time before the upload starts
function doSubmit() {
// make sure form attrs are set
var t = $form.attr('target'), a = $form.attr('action');
// update form attrs in IE friendly way
form.setAttribute('target',id);
if (form.getAttribute('method') != 'POST') {
form.setAttribute('method', 'POST');
}
if (form.getAttribute('action') != s.url) {
form.setAttribute('action', s.url);
}
// ie borks in some cases when setting encoding
if (! s.skipEncodingOverride) {
$form.attr({
encoding: 'multipart/form-data',
enctype: 'multipart/form-data'
});
}
// support timout
if (s.timeout) {
timeoutHandle = setTimeout(function() { timedOut = true; cb(true); }, s.timeout);
}
// add "extra" data to form if provided in options
var extraInputs = [];
try {
if (s.extraData) {
for (var n in s.extraData) {
extraInputs.push(
$('<input type="hidden" name="'+n+'" value="'+s.extraData[n]+'" />')
.appendTo(form)[0]);
}
}
// add iframe to doc and submit the form
$io.appendTo('body');
io.attachEvent ? io.attachEvent('onload', cb) : io.addEventListener('load', cb, false);
form.submit();
}
finally {
// reset attrs and remove "extra" input elements
form.setAttribute('action',a);
if(t) {
form.setAttribute('target', t);
} else {
$form.removeAttr('target');
}
$(extraInputs).remove();
}
}
if (s.forceSync) {
doSubmit();
}
else {
setTimeout(doSubmit, 10); // this lets dom updates render
}
var data, doc, domCheckCount = 50, callbackProcessed;
function cb(e) {
if (xhr.aborted || callbackProcessed) {
return;
}
if (e === true && xhr) {
xhr.abort('timeout');
return;
}
var doc = io.contentWindow ? io.contentWindow.document : io.contentDocument ? io.contentDocument : io.document;
if (!doc || doc.location.href == s.iframeSrc) {
// response not received yet
if (!timedOut)
return;
}
io.detachEvent ? io.detachEvent('onload', cb) : io.removeEventListener('load', cb, false);
var ok = true;
try {
if (timedOut) {
throw 'timeout';
}
var isXml = s.dataType == 'xml' || doc.XMLDocument || $.isXMLDoc(doc);
log('isXml='+isXml);
if (!isXml && window.opera && (doc.body == null || doc.body.innerHTML == '')) {
if (--domCheckCount) {
// in some browsers (Opera) the iframe DOM is not always traversable when
// the onload callback fires, so we loop a bit to accommodate
log('requeing onLoad callback, DOM not available');
setTimeout(cb, 250);
return;
}
// let this fall through because server response could be an empty document
//log('Could not access iframe DOM after mutiple tries.');
//throw 'DOMException: not available';
}
//log('response detected');
xhr.responseText = doc.body ? doc.body.innerHTML : doc.documentElement ? doc.documentElement.innerHTML : null;
xhr.responseXML = doc.XMLDocument ? doc.XMLDocument : doc;
if (!xhr.responseText && xhr.responseXML && !s.dataType)
s.dataType = 'xml';
xhr.getResponseHeader = function(header){
var headers = {'content-type': s.dataType};
return headers[header];
};
var scr = /(json|script|text)/.test(s.dataType);
if (scr || s.textarea) {
// see if user embedded response in textarea
var ta = doc.getElementsByTagName('textarea')[0];
if (ta) {
xhr.responseText = ta.value;
}
else if (scr) {
// account for browsers injecting pre around json response
var pre = doc.getElementsByTagName('pre')[0];
var b = doc.getElementsByTagName('body')[0];
if (pre) {
xhr.responseText = pre.textContent;
}
else if (b) {
xhr.responseText = b.innerHTML;
}
}
}
else if (s.dataType == 'xml' && !xhr.responseXML && xhr.responseText != null) {
xhr.responseXML = toXml(xhr.responseText);
}
data = httpData(xhr, s.dataType, s);
}
catch(e){
log('error caught:',e);
ok = false;
xhr.error = e;
s.error && s.error.call(s.context, xhr, 'error', e);
g && $.event.trigger("ajaxError", [xhr, s, e]);
}
if (xhr.aborted) {
log('upload aborted');
ok = false;
}
// ordering of these callbacks/triggers is odd, but that's how $.ajax does it
if (ok) {
s.success && s.success.call(s.context, data, 'success', xhr);
g && $.event.trigger("ajaxSuccess", [xhr, s]);
}
g && $.event.trigger("ajaxComplete", [xhr, s]);
if (g && ! --$.active) {
$.event.trigger("ajaxStop");
}
s.complete && s.complete.call(s.context, xhr, ok ? 'success' : 'error');
callbackProcessed = true;
if (s.timeout)
clearTimeout(timeoutHandle);
// clean up
setTimeout(function() {
$io.removeData('form-plugin-onload');
$io.remove();
xhr.responseXML = null;
}, 100);
}
var toXml = $.parseXML || function(s, doc) { // use parseXML if available (jQuery 1.5+)
if (window.ActiveXObject) {
doc = new ActiveXObject('Microsoft.XMLDOM');
doc.async = 'false';
doc.loadXML(s);
}
else {
doc = (new DOMParser()).parseFromString(s, 'text/xml');
}
return (doc && doc.documentElement && doc.documentElement.nodeName != 'parsererror') ? doc : null;
};
var parseJSON = $.parseJSON || function(s) {
return window['eval']('(' + s + ')');
};
var httpData = function( xhr, type, s ) { // mostly lifted from jq1.4.4
var ct = xhr.getResponseHeader('content-type') || '',
xml = type === 'xml' || !type && ct.indexOf('xml') >= 0,
data = xml ? xhr.responseXML : xhr.responseText;
if (xml && data.documentElement.nodeName === 'parsererror') {
$.error && $.error('parsererror');
}
if (s && s.dataFilter) {
data = s.dataFilter(data, type);
}
if (typeof data === 'string') {
if (type === 'json' || !type && ct.indexOf('json') >= 0) {
data = parseJSON(data);
} else if (type === "script" || !type && ct.indexOf("javascript") >= 0) {
$.globalEval(data);
}
}
return data;
};
}
};
/**
* ajaxForm() provides a mechanism for fully automating form submission.
*
* The advantages of using this method instead of ajaxSubmit() are:
*
* 1: This method will include coordinates for <input type="image" /> elements (if the element
* is used to submit the form).
* 2. This method will include the submit element's name/value data (for the element that was
* used to submit the form).
* 3. This method binds the submit() method to the form for you.
*
* The options argument for ajaxForm works exactly as it does for ajaxSubmit. ajaxForm merely
* passes the options argument along after properly binding events for submit elements and
* the form itself.
*/
$.fn.ajaxForm = function(options) {
// in jQuery 1.3+ we can fix mistakes with the ready state
if (this.length === 0) {
var o = { s: this.selector, c: this.context };
if (!$.isReady && o.s) {
log('DOM not ready, queuing ajaxForm');
$(function() {
$(o.s,o.c).ajaxForm(options);
});
return this;
}
// is your DOM ready? http://docs.jquery.com/Tutorials:Introducing_$(document).ready()
log('terminating; zero elements found by selector' + ($.isReady ? '' : ' (DOM not ready)'));
return this;
}
return this.ajaxFormUnbind().bind('submit.form-plugin', function(e) {
if (!e.isDefaultPrevented()) { // if event has been canceled, don't proceed
e.preventDefault();
$(this).ajaxSubmit(options);
}
}).bind('click.form-plugin', function(e) {
var target = e.target;
var $el = $(target);
if (!($el.is(":submit,input:image"))) {
// is this a child element of the submit el? (ex: a span within a button)
var t = $el.closest(':submit');
if (t.length == 0) {
return;
}
target = t[0];
}
var form = this;
form.clk = target;
if (target.type == 'image') {
if (e.offsetX != undefined) {
form.clk_x = e.offsetX;
form.clk_y = e.offsetY;
} else if (typeof $.fn.offset == 'function') { // try to use dimensions plugin
var offset = $el.offset();
form.clk_x = e.pageX - offset.left;
form.clk_y = e.pageY - offset.top;
} else {
form.clk_x = e.pageX - target.offsetLeft;
form.clk_y = e.pageY - target.offsetTop;
}
}
// clear form vars
setTimeout(function() { form.clk = form.clk_x = form.clk_y = null; }, 100);
});
};
// ajaxFormUnbind unbinds the event handlers that were bound by ajaxForm
$.fn.ajaxFormUnbind = function() {
return this.unbind('submit.form-plugin click.form-plugin');
};
/**
* formToArray() gathers form element data into an array of objects that can
* be passed to any of the following ajax functions: $.get, $.post, or load.
* Each object in the array has both a 'name' and 'value' property. An example of
* an array for a simple login form might be:
*
* [ { name: 'username', value: 'jresig' }, { name: 'password', value: 'secret' } ]
*
* It is this array that is passed to pre-submit callback functions provided to the
* ajaxSubmit() and ajaxForm() methods.
*/
$.fn.formToArray = function(semantic) {
var a = [];
if (this.length === 0) {
return a;
}
var form = this[0];
var els = semantic ? form.getElementsByTagName('*') : form.elements;
if (!els) {
return a;
}
var i,j,n,v,el,max,jmax;
for(i=0, max=els.length; i < max; i++) {
el = els[i];
n = el.name;
if (!n) {
continue;
}
if (semantic && form.clk && el.type == "image") {
// handle image inputs on the fly when semantic == true
if(!el.disabled && form.clk == el) {
a.push({name: n, value: $(el).val()});
a.push({name: n+'.x', value: form.clk_x}, {name: n+'.y', value: form.clk_y});
}
continue;
}
v = $.fieldValue(el, true);
if (v && v.constructor == Array) {
for(j=0, jmax=v.length; j < jmax; j++) {
a.push({name: n, value: v[j]});
}
}
else if (v !== null && typeof v != 'undefined') {
a.push({name: n, value: v});
}
}
if (!semantic && form.clk) {
// input type=='image' are not found in elements array! handle it here
var $input = $(form.clk), input = $input[0];
n = input.name;
if (n && !input.disabled && input.type == 'image') {
a.push({name: n, value: $input.val()});
a.push({name: n+'.x', value: form.clk_x}, {name: n+'.y', value: form.clk_y});
}
}
return a;
};
/**
* Serializes form data into a 'submittable' string. This method will return a string
* in the format: name1=value1&name2=value2
*/
$.fn.formSerialize = function(semantic) {
//hand off to jQuery.param for proper encoding
return $.param(this.formToArray(semantic));
};
/**
* Serializes all field elements in the jQuery object into a query string.
* This method will return a string in the format: name1=value1&name2=value2
*/
$.fn.fieldSerialize = function(successful) {
var a = [];
this.each(function() {
var n = this.name;
if (!n) {
return;
}
var v = $.fieldValue(this, successful);
if (v && v.constructor == Array) {
for (var i=0,max=v.length; i < max; i++) {
a.push({name: n, value: v[i]});
}
}
else if (v !== null && typeof v != 'undefined') {
a.push({name: this.name, value: v});
}
});
//hand off to jQuery.param for proper encoding
return $.param(a);
};
/**
* Returns the value(s) of the element in the matched set. For example, consider the following form:
*
* <form><fieldset>
* <input name="A" type="text" />
* <input name="A" type="text" />
* <input name="B" type="checkbox" value="B1" />
* <input name="B" type="checkbox" value="B2"/>
* <input name="C" type="radio" value="C1" />
* <input name="C" type="radio" value="C2" />
* </fieldset></form>
*
* var v = $(':text').fieldValue();
* // if no values are entered into the text inputs
* v == ['','']
* // if values entered into the text inputs are 'foo' and 'bar'
* v == ['foo','bar']
*
* var v = $(':checkbox').fieldValue();
* // if neither checkbox is checked
* v === undefined
* // if both checkboxes are checked
* v == ['B1', 'B2']
*
* var v = $(':radio').fieldValue();
* // if neither radio is checked
* v === undefined
* // if first radio is checked
* v == ['C1']
*
* The successful argument controls whether or not the field element must be 'successful'
* (per http://www.w3.org/TR/html4/interact/forms.html#successful-controls).
* The default value of the successful argument is true. If this value is false the value(s)
* for each element is returned.
*
* Note: This method *always* returns an array. If no valid value can be determined the
* array will be empty, otherwise it will contain one or more values.
*/
$.fn.fieldValue = function(successful) {
for (var val=[], i=0, max=this.length; i < max; i++) {
var el = this[i];
var v = $.fieldValue(el, successful);
if (v === null || typeof v == 'undefined' || (v.constructor == Array && !v.length)) {
continue;
}
v.constructor == Array ? $.merge(val, v) : val.push(v);
}
return val;
};
/**
* Returns the value of the field element.
*/
$.fieldValue = function(el, successful) {
var n = el.name, t = el.type, tag = el.tagName.toLowerCase();
if (successful === undefined) {
successful = true;
}
if (successful && (!n || el.disabled || t == 'reset' || t == 'button' ||
(t == 'checkbox' || t == 'radio') && !el.checked ||
(t == 'submit' || t == 'image') && el.form && el.form.clk != el ||
tag == 'select' && el.selectedIndex == -1)) {
return null;
}
if (tag == 'select') {
var index = el.selectedIndex;
if (index < 0) {
return null;
}
var a = [], ops = el.options;
var one = (t == 'select-one');
var max = (one ? index+1 : ops.length);
for(var i=(one ? index : 0); i < max; i++) {
var op = ops[i];
if (op.selected) {
var v = op.value;
if (!v) { // extra pain for IE...
v = (op.attributes && op.attributes['value'] && !(op.attributes['value'].specified)) ? op.text : op.value;
}
if (one) {
return v;
}
a.push(v);
}
}
return a;
}
return $(el).val();
};
/**
* Clears the form data. Takes the following actions on the form's input fields:
* - input text fields will have their 'value' property set to the empty string
* - select elements will have their 'selectedIndex' property set to -1
* - checkbox and radio inputs will have their 'checked' property set to false
* - inputs of type submit, button, reset, and hidden will *not* be effected
* - button elements will *not* be effected
*/
$.fn.clearForm = function() {
return this.each(function() {
$('input,select,textarea', this).clearFields();
});
};
/**
* Clears the selected form elements.
*/
$.fn.clearFields = $.fn.clearInputs = function() {
return this.each(function() {
var t = this.type, tag = this.tagName.toLowerCase();
if (t == 'text' || t == 'password' || tag == 'textarea') {
this.value = '';
}
else if (t == 'checkbox' || t == 'radio') {
this.checked = false;
}
else if (tag == 'select') {
this.selectedIndex = -1;
}
});
};
/**
* Resets the form data. Causes all form elements to be reset to their original value.
*/
$.fn.resetForm = function() {
return this.each(function() {
// guard against an input with the name of 'reset'
// note that IE reports the reset function as an 'object'
if (typeof this.reset == 'function' || (typeof this.reset == 'object' && !this.reset.nodeType)) {
this.reset();
}
});
};
/**
* Enables or disables any matching elements.
*/
$.fn.enable = function(b) {
if (b === undefined) {
b = true;
}
return this.each(function() {
this.disabled = !b;
});
};
/**
* Checks/unchecks any matching checkboxes or radio buttons and
* selects/deselects and matching option elements.
*/
$.fn.selected = function(select) {
if (select === undefined) {
select = true;
}
return this.each(function() {
var t = this.type;
if (t == 'checkbox' || t == 'radio') {
this.checked = select;
}
else if (this.tagName.toLowerCase() == 'option') {
var $sel = $(this).parent('select');
if (select && $sel[0] && $sel[0].type == 'select-one') {
// deselect all other options
$sel.find('option').selected(false);
}
this.selected = select;
}
});
};
// helper fn for console logging
// set $.fn.ajaxSubmit.debug to true to enable debug logging
function log() {
if ($.fn.ajaxSubmit.debug) {
var msg = '[jquery.form] ' + Array.prototype.join.call(arguments,'');
if (window.console && window.console.log) {
window.console.log(msg);
}
else if (window.opera && window.opera.postError) {
window.opera.postError(msg);
}
}
};
})(jQuery);
| JavaScript |
$(function(){
// console.log('iam loaded');
// console.log($('#save-and-go-back-button').data('updated'));
$('#save-and-go-back-button').data('updated',new Date());
var save_and_close = false;
$('.ptogtitle').click(function(){
if($(this).hasClass('vsble'))
{
$(this).removeClass('vsble');
$('#main-table-box #crudForm').slideDown("slow");
}
else
{
$(this).addClass('vsble');
$('#main-table-box #crudForm').slideUp("slow");
}
});
$('#save-and-go-back-button').click(function(){
//save_and_close = true;
//console.log('iam called')
//$('#crudForm').trigger('submit');
return false;
});
$('#crudForm').submit(function(){
var my_crud_form = $(this);
//console.log('iam called guys here')
$(this).ajaxSubmit({
url: validation_url,
dataType: 'json',
cache: 'false',
beforeSend: function(){
$("#FormLoading").show();
},
success: function(data){
$("#FormLoading").hide();
if(data.success)
{
var param = $('#crudForm').serializeArray();
$('#crudForm').ajaxSubmit({
dataType: 'text',
cache: 'false',
beforeSend: function(){
$("#FormLoading").show();
},
success: function(result){
$("#FormLoading").fadeOut("slow");
data = $.parseJSON( result );
if(typeof window.gcConf.afterSubmit == 'function')
{
window.gcConf.afterSubmit_param = param;
window.gcConf.afterSubmit_data = data;
}
if(data.success)
{
var data_unique_hash = my_crud_form.closest(".flexigrid").attr("data-unique-hash");
$('.flexigrid[data-unique-hash='+data_unique_hash+']').find('.ajax_refresh_and_loading').trigger('click');
if(true)
{
if ($('#save-and-go-back-button').closest('.ui-dialog').length === 0) {
success_message(data.success_message);
} else {
$(".ui-dialog-content").dialog("close");
success_message(data.success_message);
}
//return true;
// if(typeof window.gcConf.afterSubmit == 'function')
// {
// window.gcConf.afterSubmit(param,data);
// }
}
form_success_message(data.success_message);
}
else
{
form_error_message(message_update_error);
}
},
error: function(){
form_error_message( message_update_error );
}
});
}
else
{
$('.field_error').each(function(){
$(this).removeClass('field_error');
});
$('#report-error').slideUp('fast');
$('#report-error').html(data.error_message);
$.each(data.error_fields, function(index,value){
$('input[name='+index+']').addClass('field_error');
});
$('#report-error').slideDown('normal');
$('#report-success').slideUp('fast').html('');
}
},
error: function(){
error_alert( message_update_error );
$("#FormLoading").hide();
}
});
return false;
});
if( $('#cancel-button').closest('.ui-dialog').length === 0 ) {
$('#cancel-button').click(function(){
if($(this).data('dont_reload'))
{
//$(this).data('dont_reload',false);
return false;
}
// if($('#cancel-button').attr('mt') == 'read')
// {
window.location = list_url;
return false;
// }
// try{
// confirm_alert('Confirmation',message_alert_edit_form,function(){
// window.location = list_url;
// },function(){
// });
// }
// catch(e)
// {
// //console.log(e);
// }
// return false;
});
}
});
| JavaScript |
/// <reference path="http://code.jquery.com/jquery-1.4.1-vsdoc.js" />
/*
* Print Element Plugin 1.2
*
* Copyright (c) 2010 Erik Zaadi
*
* Inspired by PrintArea (http://plugins.jquery.com/project/PrintArea) and
* http://stackoverflow.com/questions/472951/how-do-i-print-an-iframe-from-javascript-in-safari-chrome
*
* Home Page : http://projects.erikzaadi/jQueryPlugins/jQuery.printElement
* Issues (bug reporting) : http://github.com/erikzaadi/jQueryPlugins/issues/labels/printElement
* jQuery plugin page : http://plugins.jquery.com/project/printElement
*
* Thanks to David B (http://github.com/ungenio) and icgJohn (http://www.blogger.com/profile/11881116857076484100)
* For their great contributions!
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
* Note, Iframe Printing is not supported in Opera and Chrome 3.0, a popup window will be shown instead
*/
; (function (window, undefined) {
var document = window["document"];
var $ = window["jQuery"];
$.fn["printElement"] = function (options) {
var mainOptions = $.extend({}, $.fn["printElement"]["defaults"], options);
//iframe mode is not supported for opera and chrome 3.0 (it prints the entire page).
//http://www.google.com/support/forum/p/Webmasters/thread?tid=2cb0f08dce8821c3&hl=en
if (mainOptions["printMode"] == 'iframe') {
if ($.browser.opera || (/chrome/.test(navigator.userAgent.toLowerCase())))
mainOptions["printMode"] = 'popup';
}
//Remove previously printed iframe if exists
$("[id^='printElement_']").remove();
return this.each(function () {
//Support Metadata Plug-in if available
var opts = $.meta ? $.extend({}, mainOptions, $(this).data()) : mainOptions;
_printElement($(this), opts);
});
};
$.fn["printElement"]["defaults"] = {
"printMode": 'iframe', //Usage : iframe / popup
"pageTitle": '', //Print Page Title
"overrideElementCSS": null,
/* Can be one of the following 3 options:
* 1 : boolean (pass true for stripping all css linked)
* 2 : array of $.fn.printElement.cssElement (s)
* 3 : array of strings with paths to alternate css files (optimized for print)
*/
"printBodyOptions": {
"styleToAdd": 'padding:10px;margin:10px;', //style attributes to add to the body of print document
"classNameToAdd": '' //css class to add to the body of print document
},
"leaveOpen": false, // in case of popup, leave the print page open or not
"iframeElementOptions": {
"styleToAdd": 'border:none;position:absolute;width:0px;height:0px;bottom:0px;left:0px;', //style attributes to add to the iframe element
"classNameToAdd": '' //css class to add to the iframe element
}
};
$.fn["printElement"]["cssElement"] = {
"href": '',
"media": ''
};
function _printElement(element, opts) {
//Create markup to be printed
var html = _getMarkup(element, opts);
var popupOrIframe = null;
var documentToWriteTo = null;
if (opts["printMode"].toLowerCase() == 'popup') {
popupOrIframe = window.open('about:blank', 'printElementWindow', 'width=650,height=440,scrollbars=yes');
documentToWriteTo = popupOrIframe.document;
}
else {
//The random ID is to overcome a safari bug http://www.cjboco.com.sharedcopy.com/post.cfm/442dc92cd1c0ca10a5c35210b8166882.html
var printElementID = "printElement_" + (Math.round(Math.random() * 99999)).toString();
//Native creation of the element is faster..
var iframe = document.createElement('IFRAME');
$(iframe).attr({
style: opts["iframeElementOptions"]["styleToAdd"],
id: printElementID,
className: opts["iframeElementOptions"]["classNameToAdd"],
frameBorder: 0,
scrolling: 'no',
src: 'about:blank'
});
document.body.appendChild(iframe);
documentToWriteTo = (iframe.contentWindow || iframe.contentDocument);
if (documentToWriteTo.document)
documentToWriteTo = documentToWriteTo.document;
iframe = document.frames ? document.frames[printElementID] : document.getElementById(printElementID);
popupOrIframe = iframe.contentWindow || iframe;
}
focus();
documentToWriteTo.open();
documentToWriteTo.write(html);
documentToWriteTo.close();
_callPrint(popupOrIframe);
};
function _callPrint(element) {
if (element && element["printPage"])
element["printPage"]();
else
setTimeout(function () {
_callPrint(element);
}, 50);
}
function _getElementHTMLIncludingFormElements(element) {
var $element = $(element);
//Radiobuttons and checkboxes
$(":checked", $element).each(function () {
this.setAttribute('checked', 'checked');
});
//simple text inputs
$("input[type='text']", $element).each(function () {
this.setAttribute('value', $(this).val());
});
$("select", $element).each(function () {
var $select = $(this);
$("option", $select).each(function () {
if ($select.val() == $(this).val())
this.setAttribute('selected', 'selected');
});
});
$("textarea", $element).each(function () {
//Thanks http://blog.ekini.net/2009/02/24/jquery-getting-the-latest-textvalue-inside-a-textarea/
var value = $(this).attr('value');
//fix for issue 7 (http://plugins.jquery.com/node/13503 and http://github.com/erikzaadi/jQueryPlugins/issues#issue/7)
if ($.browser.mozilla && this.firstChild)
this.firstChild.textContent = value;
else
this.innerHTML = value;
});
//http://dbj.org/dbj/?p=91
var elementHtml = $('<div></div>').append($element.clone()).html();
return elementHtml;
}
function _getBaseHref() {
var port = (window.location.port) ? ':' + window.location.port : '';
return window.location.protocol + '//' + window.location.hostname + port + window.location.pathname;
}
function _getMarkup(element, opts) {
var $element = $(element);
var elementHtml = _getElementHTMLIncludingFormElements(element);
var html = new Array();
html.push('<html><head><title>' + opts["pageTitle"] + '</title>');
if (opts["overrideElementCSS"]) {
if (opts["overrideElementCSS"].length > 0) {
for (var x = 0; x < opts["overrideElementCSS"].length; x++) {
var current = opts["overrideElementCSS"][x];
if (typeof (current) == 'string')
html.push('<link type="text/css" rel="stylesheet" href="' + current + '" >');
else
html.push('<link type="text/css" rel="stylesheet" href="' + current["href"] + '" media="' + current["media"] + '" >');
}
}
}
else {
$("link", document).filter(function () {
return $(this).attr("rel").toLowerCase() == "stylesheet";
}).each(function () {
html.push('<link type="text/css" rel="stylesheet" href="' + $(this).attr("href") + '" media="' + $(this).attr('media') + '" >');
});
}
//Ensure that relative links work
html.push('<base href="' + _getBaseHref() + '" />');
html.push('</head><body style="' + opts["printBodyOptions"]["styleToAdd"] + '" class="' + opts["printBodyOptions"]["classNameToAdd"] + '">');
html.push('<div class="' + $element.attr('class') + '">' + elementHtml + '</div>');
html.push('<script type="text/javascript">function printPage(){focus();print();' + ((!$.browser.opera && !opts["leaveOpen"] && opts["printMode"].toLowerCase() == 'popup') ? 'close();' : '') + '}</script>');
html.push('</body></html>');
return html.join('');
};
})(window);
| JavaScript |
function createCookie(name,value,days) {
if (days) {
var date = new Date();
date.setTime(date.getTime()+(days*24*60*60*1000));
var expires = "; expires="+date.toGMTString();
}
else var expires = "";
document.cookie = name+"="+escape(value)+expires+"; path=/";
}
function readCookie(name) {
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for(var i=0;i < ca.length;i++) {
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0)
return unescape(c.substring(nameEQ.length,c.length));
}
return null;
}
function eraseCookie(name) {
createCookie(name,"",-1);
} | JavaScript |
var searchData=
[
['antenna',['Antenna',['../class_physical_node_1_1_antenna.html',1,'PhysicalNode']]],
['antennaparameters',['AntennaParameters',['../class_parameters_1_1_antenna_parameters.html',1,'Parameters']]]
];
| JavaScript |
var searchData=
[
['parameters',['Parameters',['../class_parameters_1_1_parameters.html',1,'Parameters']]],
['physicallayer',['PhysicalLayer',['../class_physical_layer_1_1_physical_layer.html',1,'PhysicalLayer']]],
['physicallayerparameters',['PhysicalLayerParameters',['../class_parameters_1_1_physical_layer_parameters.html',1,'Parameters']]],
['physicalnode',['PhysicalNode',['../class_physical_node_1_1_physical_node.html',1,'PhysicalNode']]],
['physicalresourceblock',['PhysicalResourceBlock',['../class_physical_layer_1_1_physical_resource_block.html',1,'PhysicalLayer']]],
['position',['Position',['../class_basic_1_1_position.html',1,'Basic']]],
['proportionalfairalgorithm',['ProportionalFairAlgorithm',['../class_scheduler_1_1_proportional_fair_algorithm.html',1,'Scheduler']]]
];
| JavaScript |
var searchData=
[
['enodeb',['ENodeB',['../class_physical_node_1_1_e_node_b.html#ad15f75f973745caae604b4fac2724ef3',1,'PhysicalNode::ENodeB::ENodeB()'],['../class_physical_node_1_1_e_node_b.html#a789ffae9f22054261bec28738b9db8c1',1,'PhysicalNode::ENodeB::ENodeB(Basic::Position p, int id)']]]
];
| JavaScript |
var searchData=
[
['bestcqialgorithm',['BestCQIAlgorithm',['../class_scheduler_1_1_best_c_q_i_algorithm.html#aa75bb5645120b7985e898f2ed947ec0f',1,'Scheduler::BestCQIAlgorithm']]]
];
| JavaScript |
var searchData=
[
['j1_5fr',['j1_R',['../class_scheduler_1_1_scheduling_algorithm.html#a09558e28515daca204a6bd48d88da7ce',1,'Scheduler::SchedulingAlgorithm']]]
];
| JavaScript |
var searchData=
[
['grid',['Grid',['../namespace_grid.html',1,'']]]
];
| JavaScript |
var searchData=
[
['radiochannel',['RadioChannel',['../class_radio_channel_1_1_radio_channel.html',1,'RadioChannel']]],
['randomalgorithm',['RandomAlgorithm',['../class_scheduler_1_1_random_algorithm.html',1,'Scheduler']]],
['rayleighchannel',['RayleighChannel',['../class_radio_channel_1_1_rayleigh_channel.html',1,'RadioChannel']]],
['receiver',['Receiver',['../class_physical_node_1_1_receiver.html',1,'PhysicalNode']]],
['reciever',['Reciever',['../class_physical_node_1_1_reciever.html',1,'PhysicalNode']]],
['resourceelement',['ResourceElement',['../class_physical_layer_1_1_resource_element.html',1,'PhysicalLayer']]],
['results',['Results',['../class_results_1_1_results.html',1,'Results']]]
];
| JavaScript |
var searchData=
[
['largescalefading',['LargeScaleFading',['../class_radio_channel_1_1_large_scale_fading.html#ac7ca540f10d15ab3d3241d40180fd397',1,'RadioChannel::LargeScaleFading']]]
];
| JavaScript |
var searchData=
[
['device_5f',['device_',['../class_physical_node_1_1_physical_node.html#aa54252970d37aec20f8249fd39c32500',1,'PhysicalNode::PhysicalNode']]],
['direction',['Direction',['../class_parameters_1_1_simulation_parameters.html#a81a3a73049c101d1bfb1faedaee2275c',1,'Parameters::SimulationParameters']]],
['direction_5f',['Direction_',['../class_physical_layer_1_1_subcarrier.html#afacddeede59d45c7c64a611824190226',1,'PhysicalLayer::Subcarrier']]],
['dropspersimulation',['DropsPerSimulation',['../class_parameters_1_1_simulation_parameters.html#ab316f8897a39292beaf2a3baedb8e865',1,'Parameters::SimulationParameters']]]
];
| JavaScript |
var searchData=
[
['grid_5f',['grid_',['../class_simulation_1_1_simulation.html#a3edbedb7f07ccef4cca2aa95301b4f6a',1,'Simulation::Simulation']]]
];
| JavaScript |
var searchData=
[
['bandwidth_5f',['bandWidth_',['../class_radio_channel_1_1_small_scale_fading.html#a1da2b8e28c54aa9a49c84033b89efff3',1,'RadioChannel::SmallScaleFading']]],
['bandwidthsubcarrier_5f',['bandWidthSubcarrier_',['../class_radio_channel_1_1_small_scale_fading.html#a24ad7b3f2261086661fa5a09152564ee',1,'RadioChannel::SmallScaleFading']]],
['basic',['Basic',['../namespace_basic.html',1,'']]],
['ber_5f',['BER_',['../class_physical_layer_1_1_physical_resource_block.html#ae69b0a0f380c203e07dbbd0ea6ec5ed9',1,'PhysicalLayer::PhysicalResourceBlock']]],
['bert',['BERt',['../class_parameters_1_1_link_adaptation_parameters.html#a853d1d78406646ae46c04646c7c94282',1,'Parameters::LinkAdaptationParameters']]],
['bestcqialgorithm',['BestCQIAlgorithm',['../class_scheduler_1_1_best_c_q_i_algorithm.html#aa75bb5645120b7985e898f2ed947ec0f',1,'Scheduler::BestCQIAlgorithm']]],
['bestcqialgorithm',['BestCQIAlgorithm',['../class_scheduler_1_1_best_c_q_i_algorithm.html',1,'Scheduler']]],
['bestcqialgorithm_2ecpp',['BestCQIAlgorithm.cpp',['../_best_c_q_i_algorithm_8cpp.html',1,'']]],
['bestcqialgorithm_2eh',['BestCQIAlgorithm.h',['../_best_c_q_i_algorithm_8h.html',1,'']]],
['beta0',['beta0',['../class_parameters_1_1_link_adaptation_parameters.html#ad05de726cf95c84f410299cfab0f26d9',1,'Parameters::LinkAdaptationParameters']]],
['beta1',['beta1',['../class_parameters_1_1_link_adaptation_parameters.html#a31f1e319cf1b3b83769617e0fad642d5',1,'Parameters::LinkAdaptationParameters']]],
['beta2',['beta2',['../class_parameters_1_1_link_adaptation_parameters.html#a4ba6574c8e6fbcb139059fc8f7ac4599',1,'Parameters::LinkAdaptationParameters']]]
];
| JavaScript |
var searchData=
[
['main_2ecpp',['main.cpp',['../main_8cpp.html',1,'']]],
['mathfunctions_2ecpp',['MathFunctions.cpp',['../_math_functions_8cpp.html',1,'']]],
['mathfunctions_2eh',['MathFunctions.h',['../_math_functions_8h.html',1,'']]],
['mobility_2ecpp',['Mobility.cpp',['../_mobility_8cpp.html',1,'']]],
['mobility_2eh',['Mobility.h',['../_mobility_8h.html',1,'']]],
['mobilityparameters_2ecpp',['MobilityParameters.cpp',['../_mobility_parameters_8cpp.html',1,'']]],
['mobilityparameters_2eh',['MobilityParameters.h',['../_mobility_parameters_8h.html',1,'']]]
];
| JavaScript |
var searchData=
[
['vectorfunctions',['VectorFunctions',['../class_basic_1_1_vector_functions.html',1,'Basic']]]
];
| JavaScript |
var searchData=
[
['id_5f',['id_',['../class_physical_node_1_1_physical_node.html#a2dbd388acdf7fcbb7dfa2ca2e347a46d',1,'PhysicalNode::PhysicalNode']]],
['initialfrequency_5f',['initialFrequency_',['../class_physical_layer_1_1_physical_resource_block.html#abcbf6ef15230344820f741f7c251fc95',1,'PhysicalLayer::PhysicalResourceBlock']]],
['initialusers',['initialUsers',['../class_parameters_1_1_simulation_parameters.html#a7249e4d01382de3c7271aa916509304b',1,'Parameters::SimulationParameters']]],
['interlimit',['InterLimit',['../class_parameters_1_1_simulation_parameters.html#a07d5844b6922173b563ce1ae4736cc40',1,'Parameters::SimulationParameters']]],
['intersitedistance',['interSiteDistance',['../class_parameters_1_1_grid_parameters.html#a194fb7a1b8ca0741d85755a0cb9c0cce',1,'Parameters::GridParameters']]]
];
| JavaScript |
var searchData=
[
['largescalefading',['LargeScaleFading',['../class_radio_channel_1_1_large_scale_fading.html',1,'RadioChannel']]],
['link',['Link',['../class_link_1_1_link.html',1,'Link']]],
['linkadaptation',['LinkAdaptation',['../class_link_adaptation_1_1_link_adaptation.html',1,'LinkAdaptation']]],
['linkadaptationparameters',['LinkAdaptationParameters',['../class_parameters_1_1_link_adaptation_parameters.html',1,'Parameters']]]
];
| JavaScript |
var searchData=
[
['orientation_5f',['orientation_',['../class_physical_node_1_1_device.html#ae6dfc34ae592db3db237bfe9fc9d89ed',1,'PhysicalNode::Device']]]
];
| JavaScript |
var searchData=
[
['device_2ecpp',['Device.cpp',['../_device_8cpp.html',1,'']]],
['device_2eh',['Device.h',['../_device_8h.html',1,'']]]
];
| JavaScript |
var searchData=
[
['validatetime',['validateTime',['../class_time_manager_1_1_time_manager.html#ab7e136d889466c629e80f6bd60806f05',1,'TimeManager::TimeManager']]],
['vectorfunctions',['VectorFunctions',['../class_basic_1_1_vector_functions.html#ae14585ed0825afbc6627520b540e12c8',1,'Basic::VectorFunctions']]]
];
| JavaScript |
var searchData=
[
['j1_5fr',['j1_R',['../class_scheduler_1_1_scheduling_algorithm.html#a09558e28515daca204a6bd48d88da7ce',1,'Scheduler::SchedulingAlgorithm']]]
];
| JavaScript |
var searchData=
[
['channel',['Channel',['../class_radio_channel_1_1_channel.html',1,'RadioChannel']]],
['channelparameters',['ChannelParameters',['../class_parameters_1_1_channel_parameters.html',1,'Parameters']]],
['clarkechannel',['ClarkeChannel',['../class_radio_channel_1_1_clarke_channel.html',1,'RadioChannel']]]
];
| JavaScript |
var searchData=
[
['link_5f',['link_',['../class_simulation_1_1_simulation.html#a3f215be3b98611171f77b8521a14e104',1,'Simulation::Simulation']]],
['linkadaptation_5f',['linkAdaptation_',['../class_scheduler_1_1_scheduling_algorithm.html#aa0a3c32bce2ae7fc5025b6320dc30d00',1,'Scheduler::SchedulingAlgorithm::linkAdaptation_()'],['../class_simulation_1_1_simulation.html#a6aba5f5b0b14d6eaad13369fa2ff5533',1,'Simulation::Simulation::linkAdaptation_()']]],
['linkedusers_5f',['linkedUsers_',['../class_physical_node_1_1_e_node_b.html#a1e09f6288a4ffe76b809e31dbd7c8fa9',1,'PhysicalNode::ENodeB']]]
];
| JavaScript |
var searchData=
[
['enodeb',['ENodeB',['../class_physical_node_1_1_e_node_b.html',1,'PhysicalNode']]]
];
| JavaScript |
var searchData=
[
['vectorfunctions_2ecpp',['VectorFunctions.cpp',['../_vector_functions_8cpp.html',1,'']]],
['vectorfunctions_2eh',['VectorFunctions.h',['../_vector_functions_8h.html',1,'']]]
];
| JavaScript |
var searchData=
[
['device',['Device',['../class_physical_node_1_1_device.html',1,'PhysicalNode']]],
['device',['Device',['../class_physical_node_1_1_device.html#a01fccbb1c5a95536039c4e8b309dbef5',1,'PhysicalNode::Device']]],
['device_2ecpp',['Device.cpp',['../_device_8cpp.html',1,'']]],
['device_2eh',['Device.h',['../_device_8h.html',1,'']]],
['device_5f',['device_',['../class_physical_node_1_1_physical_node.html#aa54252970d37aec20f8249fd39c32500',1,'PhysicalNode::PhysicalNode']]],
['direction',['Direction',['../class_parameters_1_1_simulation_parameters.html#a81a3a73049c101d1bfb1faedaee2275c',1,'Parameters::SimulationParameters']]],
['direction_5f',['Direction_',['../class_physical_layer_1_1_subcarrier.html#afacddeede59d45c7c64a611824190226',1,'PhysicalLayer::Subcarrier']]],
['displayresults',['displayResults',['../class_results_1_1_results.html#aba533506585136c1010f758919ba802c',1,'Results::Results']]],
['dropspersimulation',['DropsPerSimulation',['../class_parameters_1_1_simulation_parameters.html#ab316f8897a39292beaf2a3baedb8e865',1,'Parameters::SimulationParameters']]]
];
| JavaScript |
var searchData=
[
['parameters',['Parameters',['../namespace_parameters.html',1,'']]],
['physicallayer',['PhysicalLayer',['../namespace_physical_layer.html',1,'']]],
['physicalnode',['PhysicalNode',['../namespace_physical_node.html',1,'']]]
];
| JavaScript |
var searchData=
[
['device',['Device',['../class_physical_node_1_1_device.html#a01fccbb1c5a95536039c4e8b309dbef5',1,'PhysicalNode::Device']]],
['displayresults',['displayResults',['../class_results_1_1_results.html#aba533506585136c1010f758919ba802c',1,'Results::Results']]]
];
| JavaScript |
var searchData=
[
['fading',['Fading',['../class_radio_channel_1_1_fading.html#a15efcbc2373a1bef27a15f9fe29601ab',1,'RadioChannel::Fading']]],
['file',['File',['../class_parameters_1_1_file.html#a15f18b6be1b2262e8028850792d581fb',1,'Parameters::File']]],
['finalizedrop',['finalizeDrop',['../class_results_1_1_results.html#afd0c37d4d062df0be9d0756124266021',1,'Results::Results::finalizeDrop()'],['../class_simulation_1_1_simulation.html#a2265c56d4fba3d5b31d2b40c583a7769',1,'Simulation::Simulation::finalizeDrop()']]],
['finalizesimulation',['finalizeSimulation',['../class_results_1_1_results.html#a3558a456235890bd3ce095cc65f6601f',1,'Results::Results']]],
['frame',['Frame',['../class_physical_layer_1_1_frame.html#a13f070ea3c1b05a98d8e6bcbafc6135c',1,'PhysicalLayer::Frame']]]
];
| JavaScript |
var searchData=
[
['validatetime',['validateTime',['../class_time_manager_1_1_time_manager.html#ab7e136d889466c629e80f6bd60806f05',1,'TimeManager::TimeManager']]],
['vectorfunctions',['VectorFunctions',['../class_basic_1_1_vector_functions.html#ae14585ed0825afbc6627520b540e12c8',1,'Basic::VectorFunctions']]],
['vectorfunctions',['VectorFunctions',['../class_basic_1_1_vector_functions.html',1,'Basic']]],
['vectorfunctions_2ecpp',['VectorFunctions.cpp',['../_vector_functions_8cpp.html',1,'']]],
['vectorfunctions_2eh',['VectorFunctions.h',['../_vector_functions_8h.html',1,'']]]
];
| JavaScript |
var searchData=
[
['channel_2ecpp',['Channel.cpp',['../_channel_8cpp.html',1,'']]],
['channel_2eh',['Channel.h',['../_channel_8h.html',1,'']]],
['channelparameters_2ecpp',['ChannelParameters.cpp',['../_channel_parameters_8cpp.html',1,'']]],
['channelparameters_2eh',['ChannelParameters.h',['../_channel_parameters_8h.html',1,'']]],
['clarkechannel_2ecpp',['ClarkeChannel.cpp',['../_clarke_channel_8cpp.html',1,'']]],
['clarkechannel_2eh',['ClarkeChannel.h',['../_clarke_channel_8h.html',1,'']]]
];
| JavaScript |
var searchData=
[
['mapsinrs',['mapSINRs',['../class_link_adaptation_1_1_link_adaptation.html#a2672be55c02ba0206950fc20e0b777a0',1,'LinkAdaptation::LinkAdaptation']]],
['mathfunctions',['MathFunctions',['../class_basic_1_1_math_functions.html#ad0686eef5dacf481ecad39e7993250cf',1,'Basic::MathFunctions']]]
];
| JavaScript |
var searchData=
[
['abs',['abs',['../class_basic_1_1_position.html#aa9b5b0e9b35feb76399d3c2cfc609d74',1,'Basic::Position']]],
['adduser',['addUser',['../class_physical_node_1_1_e_node_b.html#a5fe75248ae4857f119b4705606a926d6',1,'PhysicalNode::ENodeB']]],
['adduserid',['addUserId',['../class_results_1_1_results.html#aea8decccc7858d71d4c9aa0eff71a971',1,'Results::Results']]],
['adjustcqi',['adjustCQI',['../class_physical_node_1_1_user.html#ad75cd70683a88e6d0bf5f4fdb5a7c7c2',1,'PhysicalNode::User']]],
['allocatefrequencies',['allocateFrequencies',['../class_frequency_planning_1_1_frequency_planning.html#afa1a455615e84098437df80f6e0baf7d',1,'FrequencyPlanning::FrequencyPlanning']]],
['antenna',['Antenna',['../class_physical_node_1_1_antenna.html#a15173c682b42f974b6dc0daa2de195dd',1,'PhysicalNode::Antenna']]],
['arg',['arg',['../class_basic_1_1_position.html#a06b31cd86861f9f3a15d8d6d3c844385',1,'Basic::Position']]]
];
| JavaScript |
var searchData=
[
['operator_3c_3c',['operator<<',['../class_basic_1_1_position.html#a14d89ec2c15e82ce10902fcd138637f4',1,'Basic::Position']]]
];
| JavaScript |
var searchData=
[
['hasresolutionstepchanged',['hasResolutionStepChanged',['../class_time_manager_1_1_time_manager.html#aac0d7fa5bbb2d937cc357122f1e906ea',1,'TimeManager::TimeManager']]]
];
| JavaScript |
var searchData=
[
['fading',['Fading',['../class_radio_channel_1_1_fading.html',1,'RadioChannel']]],
['fading',['Fading',['../class_radio_channel_1_1_fading.html#a15efcbc2373a1bef27a15f9fe29601ab',1,'RadioChannel::Fading']]],
['fading_2ecpp',['Fading.cpp',['../_fading_8cpp.html',1,'']]],
['fading_2eh',['Fading.h',['../_fading_8h.html',1,'']]],
['fading_5f',['fading_',['../class_radio_channel_1_1_small_scale_fading.html#a7fd2db2525b9de1ac75cc666326a653e',1,'RadioChannel::SmallScaleFading']]],
['file',['File',['../class_parameters_1_1_file.html#a15f18b6be1b2262e8028850792d581fb',1,'Parameters::File']]],
['file',['File',['../class_parameters_1_1_file.html',1,'Parameters']]],
['file_2ecpp',['File.cpp',['../_file_8cpp.html',1,'']]],
['file_2eh',['File.h',['../_file_8h.html',1,'']]],
['filename_5f',['fileName_',['../class_parameters_1_1_parameters.html#a8d6a4b286b4f3eb84c1cbd8c605528ab',1,'Parameters::Parameters']]],
['finalizedrop',['finalizeDrop',['../class_results_1_1_results.html#afd0c37d4d062df0be9d0756124266021',1,'Results::Results::finalizeDrop()'],['../class_simulation_1_1_simulation.html#a2265c56d4fba3d5b31d2b40c583a7769',1,'Simulation::Simulation::finalizeDrop()']]],
['finalizesimulation',['finalizeSimulation',['../class_results_1_1_results.html#a3558a456235890bd3ce095cc65f6601f',1,'Results::Results']]],
['finalusers',['finalUsers',['../class_parameters_1_1_simulation_parameters.html#a1feccb0828fbc417d5f15e301a917d0d',1,'Parameters::SimulationParameters']]],
['frame',['Frame',['../class_physical_layer_1_1_frame.html#a13f070ea3c1b05a98d8e6bcbafc6135c',1,'PhysicalLayer::Frame']]],
['frame',['Frame',['../class_physical_layer_1_1_frame.html',1,'PhysicalLayer']]],
['frame_2ecpp',['Frame.cpp',['../_frame_8cpp.html',1,'']]],
['frame_2eh',['Frame.h',['../_frame_8h.html',1,'']]],
['frequencies_5f',['frequencies_',['../class_physical_layer_1_1_physical_layer.html#adbabfb3384ed75114edbfeab9553e1f7',1,'PhysicalLayer::PhysicalLayer::frequencies_()'],['../class_physical_node_1_1_user.html#aa7c1e226b93ab9839d93705f39a040d6',1,'PhysicalNode::User::frequencies_()']]],
['frequency_5f',['frequency_',['../class_physical_layer_1_1_subcarrier.html#ad626f998e406adbb6e3a348084883dfe',1,'PhysicalLayer::Subcarrier']]],
['frequencyplanning',['FrequencyPlanning',['../class_frequency_planning_1_1_frequency_planning.html',1,'FrequencyPlanning']]],
['frequencyplanning',['FrequencyPlanning',['../namespace_frequency_planning.html',1,'']]],
['frequencyplanning_2ecpp',['FrequencyPlanning.cpp',['../_frequency_planning_8cpp.html',1,'']]],
['frequencyplanning_2eh',['FrequencyPlanning.h',['../_frequency_planning_8h.html',1,'']]],
['frequencyplanning_5f',['frequencyPlanning_',['../class_simulation_1_1_simulation.html#a082e7aff820a4a39a14d09d409f25927',1,'Simulation::Simulation']]],
['frequencyselectivechannel',['FrequencySelectiveChannel',['../class_radio_channel_1_1_frequency_selective_channel.html',1,'RadioChannel']]],
['frequencyselectivechannel_2ecpp',['FrequencySelectiveChannel.cpp',['../_frequency_selective_channel_8cpp.html',1,'']]],
['frequencyselectivechannel_2eh',['FrequencySelectiveChannel.h',['../_frequency_selective_channel_8h.html',1,'']]],
['frequencystep',['frequencyStep',['../class_parameters_1_1_channel_parameters.html#a9707e209b20de466891396eff585809a',1,'Parameters::ChannelParameters']]],
['frequencystep_5f',['frequencyStep_',['../class_radio_channel_1_1_small_scale_fading.html#a1e2bfe0ff96454102c581b70f4e3b91c',1,'RadioChannel::SmallScaleFading']]]
];
| JavaScript |
var searchData=
[
['x',['x',['../class_basic_1_1_position.html#acf7520d40b7a067e36dff0663903d122',1,'Basic::Position::x()'],['../class_basic_1_1_position.html#a31a9dbb2158bec0e7b3c51d6c00effc8',1,'Basic::Position::x(double x_arg)']]],
['xy',['xy',['../class_basic_1_1_position.html#afe01f5a63a7cd0d4af4180b30d57588a',1,'Basic::Position']]]
];
| JavaScript |
var searchData=
[
['physicallayer_5f',['physicalLayer_',['../class_physical_node_1_1_e_node_b.html#a8e6217e125ce323fd5918d6f3c19ac63',1,'PhysicalNode::ENodeB']]],
['position_5f',['position_',['../class_basic_1_1_position.html#ae865e460abf4c8c0b61c2245f856a55f',1,'Basic::Position::position_()'],['../class_physical_node_1_1_physical_node.html#aeaea24f8b3a2a7733606116884691fe4',1,'PhysicalNode::PhysicalNode::position_()']]],
['prbs_5f',['PRBs_',['../class_physical_layer_1_1_slot.html#a968c26fae312d3eac02cc4b60132f063',1,'PhysicalLayer::Slot']]],
['profile',['profile',['../class_parameters_1_1_channel_parameters.html#a2c3e1a4251c9cd988b258aafd47bff70',1,'Parameters::ChannelParameters']]]
];
| JavaScript |
var searchData=
[
['device',['Device',['../class_physical_node_1_1_device.html',1,'PhysicalNode']]]
];
| JavaScript |
var searchData=
[
['bestcqialgorithm_2ecpp',['BestCQIAlgorithm.cpp',['../_best_c_q_i_algorithm_8cpp.html',1,'']]],
['bestcqialgorithm_2eh',['BestCQIAlgorithm.h',['../_best_c_q_i_algorithm_8h.html',1,'']]]
];
| JavaScript |
var searchData=
[
['fading',['Fading',['../class_radio_channel_1_1_fading.html',1,'RadioChannel']]],
['file',['File',['../class_parameters_1_1_file.html',1,'Parameters']]],
['frame',['Frame',['../class_physical_layer_1_1_frame.html',1,'PhysicalLayer']]],
['frequencyplanning',['FrequencyPlanning',['../class_frequency_planning_1_1_frequency_planning.html',1,'FrequencyPlanning']]],
['frequencyselectivechannel',['FrequencySelectiveChannel',['../class_radio_channel_1_1_frequency_selective_channel.html',1,'RadioChannel']]]
];
| JavaScript |
var searchData=
[
['radiochannel_2ecpp',['RadioChannel.cpp',['../_radio_channel_8cpp.html',1,'']]],
['radiochannel_2eh',['RadioChannel.h',['../_radio_channel_8h.html',1,'']]],
['randomalgorithm_2ecpp',['RandomAlgorithm.cpp',['../_random_algorithm_8cpp.html',1,'']]],
['randomalgorithm_2eh',['RandomAlgorithm.h',['../_random_algorithm_8h.html',1,'']]],
['rayleighchannel_2ecpp',['RayleighChannel.cpp',['../_rayleigh_channel_8cpp.html',1,'']]],
['rayleighchannel_2eh',['RayleighChannel.h',['../_rayleigh_channel_8h.html',1,'']]],
['receiver_2ecpp',['Receiver.cpp',['../_receiver_8cpp.html',1,'']]],
['receiver_2eh',['Receiver.h',['../_receiver_8h.html',1,'']]],
['reciever_2ecpp',['Reciever.cpp',['../_reciever_8cpp.html',1,'']]],
['reciever_2eh',['Reciever.h',['../_reciever_8h.html',1,'']]],
['resourceelement_2ecpp',['ResourceElement.cpp',['../_resource_element_8cpp.html',1,'']]],
['resourceelement_2eh',['ResourceElement.h',['../_resource_element_8h.html',1,'']]],
['results_2ecpp',['Results.cpp',['../_results_8cpp.html',1,'']]],
['results_2eh',['Results.h',['../_results_8h.html',1,'']]]
];
| JavaScript |
var searchData=
[
['userparameters_2ecpp',['UserParameters.cpp',['../_user_parameters_8cpp.html',1,'']]],
['userparameters_2eh',['UserParameters.h',['../_user_parameters_8h.html',1,'']]]
];
| JavaScript |
var searchData=
[
['operator_2b',['operator+',['../class_basic_1_1_position.html#a6004db73e0d762f72a911a17eaf8ef20',1,'Basic::Position']]]
];
| JavaScript |
var searchData=
[
['scheduler',['Scheduler',['../class_scheduler_1_1_scheduler.html',1,'Scheduler']]],
['schedulerparameters',['SchedulerParameters',['../class_parameters_1_1_scheduler_parameters.html',1,'Parameters']]],
['schedulingalgorithm',['SchedulingAlgorithm',['../class_scheduler_1_1_scheduling_algorithm.html',1,'Scheduler']]],
['simulation',['Simulation',['../class_simulation_1_1_simulation.html',1,'Simulation']]],
['simulationenvironment',['SimulationEnvironment',['../class_simulation_environment_1_1_simulation_environment.html',1,'SimulationEnvironment']]],
['simulationparameters',['SimulationParameters',['../class_parameters_1_1_simulation_parameters.html',1,'Parameters']]],
['slot',['Slot',['../class_physical_layer_1_1_slot.html',1,'PhysicalLayer']]],
['smallscalefading',['SmallScaleFading',['../class_radio_channel_1_1_small_scale_fading.html',1,'RadioChannel']]],
['statistics',['Statistics',['../class_basic_1_1_statistics.html',1,'Basic']]],
['subcarrier',['Subcarrier',['../class_physical_layer_1_1_subcarrier.html',1,'PhysicalLayer']]],
['subframe',['Subframe',['../class_physical_layer_1_1_subframe.html',1,'PhysicalLayer']]],
['systemparameters',['SystemParameters',['../class_parameters_1_1_system_parameters.html',1,'Parameters']]]
];
| JavaScript |
var searchData=
[
['antenna_2ecpp',['Antenna.cpp',['../_antenna_8cpp.html',1,'']]],
['antenna_2eh',['Antenna.h',['../_antenna_8h.html',1,'']]],
['antennaparameters_2ecpp',['AntennaParameters.cpp',['../_antenna_parameters_8cpp.html',1,'']]],
['antennaparameters_2eh',['AntennaParameters.h',['../_antenna_parameters_8h.html',1,'']]]
];
| JavaScript |
var searchData=
[
['mobility',['Mobility',['../namespace_mobility.html',1,'']]]
];
| JavaScript |
var searchData=
[
['y',['y',['../class_basic_1_1_position.html#af82aa750d8f6f3c2c8b90b5b299b4d40',1,'Basic::Position::y()'],['../class_basic_1_1_position.html#a97569d5ba867724e82ce39cc2e5358e7',1,'Basic::Position::y(double y_arg)']]]
];
| JavaScript |
var searchData=
[
['timemanager',['TimeManager',['../class_time_manager_1_1_time_manager.html',1,'TimeManager']]],
['transmission',['Transmission',['../class_transmission_1_1_transmission.html',1,'Transmission']]],
['transmitter',['Transmitter',['../class_physical_node_1_1_transmitter.html',1,'PhysicalNode']]]
];
| JavaScript |
var searchData=
[
['link',['Link',['../namespace_link.html',1,'']]],
['linkadaptation',['LinkAdaptation',['../namespace_link_adaptation.html',1,'']]]
];
| JavaScript |
var searchData=
[
['frequencyplanning',['FrequencyPlanning',['../namespace_frequency_planning.html',1,'']]]
];
| JavaScript |
var searchData=
[
['abs',['abs',['../class_basic_1_1_position.html#aa9b5b0e9b35feb76399d3c2cfc609d74',1,'Basic::Position']]],
['adduser',['addUser',['../class_physical_node_1_1_e_node_b.html#a5fe75248ae4857f119b4705606a926d6',1,'PhysicalNode::ENodeB']]],
['adduserid',['addUserId',['../class_results_1_1_results.html#aea8decccc7858d71d4c9aa0eff71a971',1,'Results::Results']]],
['adjustcqi',['adjustCQI',['../class_physical_node_1_1_user.html#ad75cd70683a88e6d0bf5f4fdb5a7c7c2',1,'PhysicalNode::User']]],
['allocatefrequencies',['allocateFrequencies',['../class_frequency_planning_1_1_frequency_planning.html#afa1a455615e84098437df80f6e0baf7d',1,'FrequencyPlanning::FrequencyPlanning']]],
['antenna',['Antenna',['../class_physical_node_1_1_antenna.html',1,'PhysicalNode']]],
['antenna',['Antenna',['../class_physical_node_1_1_antenna.html#a15173c682b42f974b6dc0daa2de195dd',1,'PhysicalNode::Antenna']]],
['antenna_2ecpp',['Antenna.cpp',['../_antenna_8cpp.html',1,'']]],
['antenna_2eh',['Antenna.h',['../_antenna_8h.html',1,'']]],
['antenna_5f',['antenna_',['../class_physical_node_1_1_device.html#a2cf2bed708094a94fe625e77eae411c7',1,'PhysicalNode::Device']]],
['antennaparameters',['AntennaParameters',['../class_parameters_1_1_antenna_parameters.html',1,'Parameters']]],
['antennaparameters_2ecpp',['AntennaParameters.cpp',['../_antenna_parameters_8cpp.html',1,'']]],
['antennaparameters_2eh',['AntennaParameters.h',['../_antenna_parameters_8h.html',1,'']]],
['arg',['arg',['../class_basic_1_1_position.html#a06b31cd86861f9f3a15d8d6d3c844385',1,'Basic::Position']]]
];
| JavaScript |
var searchData=
[
['radiochannel',['RadioChannel',['../namespace_radio_channel.html',1,'']]]
];
| JavaScript |
var searchData=
[
['bestcqialgorithm',['BestCQIAlgorithm',['../class_scheduler_1_1_best_c_q_i_algorithm.html',1,'Scheduler']]]
];
| JavaScript |
var searchData=
[
['enodeb_2ecpp',['ENodeB.cpp',['../_e_node_b_8cpp.html',1,'']]],
['enodeb_2eh',['ENodeB.h',['../_e_node_b_8h.html',1,'']]]
];
| JavaScript |
var searchData=
[
['timemanager_2ecpp',['TimeManager.cpp',['../_time_manager_8cpp.html',1,'']]],
['timemanager_2eh',['TimeManager.h',['../_time_manager_8h.html',1,'']]],
['transmission_2ecpp',['Transmission.cpp',['../_transmission_8cpp.html',1,'']]],
['transmission_2eh',['Transmission.h',['../_transmission_8h.html',1,'']]],
['transmitter_2ecpp',['Transmitter.cpp',['../_transmitter_8cpp.html',1,'']]],
['transmitter_2eh',['Transmitter.h',['../_transmitter_8h.html',1,'']]]
];
| JavaScript |
var searchData=
[
['genericantenna_2ecpp',['GenericAntenna.cpp',['../_generic_antenna_8cpp.html',1,'']]],
['genericantenna_2eh',['GenericAntenna.h',['../_generic_antenna_8h.html',1,'']]],
['grid_2ecpp',['Grid.cpp',['../_grid_8cpp.html',1,'']]],
['grid_2eh',['Grid.h',['../_grid_8h.html',1,'']]],
['gridparameters_2ecpp',['GridParameters.cpp',['../_grid_parameters_8cpp.html',1,'']]],
['gridparameters_2eh',['GridParameters.h',['../_grid_parameters_8h.html',1,'']]]
];
| JavaScript |
var searchData=
[
['effectivebits_5f',['effectiveBits_',['../class_physical_layer_1_1_resource_element.html#ab896af9f43b9397c201643fa92121ca2',1,'PhysicalLayer::ResourceElement::effectiveBits_()'],['../class_physical_node_1_1_physical_node.html#a6e345a627bd97ee2b4597a5ddf227578',1,'PhysicalNode::PhysicalNode::effectiveBits_()']]],
['enodeb',['ENodeB',['../class_physical_node_1_1_e_node_b.html',1,'PhysicalNode']]],
['enodeb',['ENodeB',['../class_physical_node_1_1_e_node_b.html#ad15f75f973745caae604b4fac2724ef3',1,'PhysicalNode::ENodeB::ENodeB()'],['../class_physical_node_1_1_e_node_b.html#a789ffae9f22054261bec28738b9db8c1',1,'PhysicalNode::ENodeB::ENodeB(Basic::Position p, int id)']]],
['enodeb_2ecpp',['ENodeB.cpp',['../_e_node_b_8cpp.html',1,'']]],
['enodeb_2eh',['ENodeB.h',['../_e_node_b_8h.html',1,'']]],
['enodebid_5f',['eNodeBId_',['../class_physical_node_1_1_user.html#a5b5b3de0e7f6d9aa22c3cd5dfb665005',1,'PhysicalNode::User']]]
];
| JavaScript |
var searchData=
[
['antenna_5f',['antenna_',['../class_physical_node_1_1_device.html#a2cf2bed708094a94fe625e77eae411c7',1,'PhysicalNode::Device']]]
];
| JavaScript |
var searchData=
[
['mathfunctions',['MathFunctions',['../class_basic_1_1_math_functions.html',1,'Basic']]],
['mobility',['Mobility',['../class_mobility_1_1_mobility.html',1,'Mobility']]],
['mobilityparameters',['MobilityParameters',['../class_parameters_1_1_mobility_parameters.html',1,'Parameters']]]
];
| JavaScript |
var searchData=
[
['basic',['Basic',['../namespace_basic.html',1,'']]]
];
| JavaScript |
var searchData=
[
['scheduler',['Scheduler',['../namespace_scheduler.html',1,'']]],
['simulation',['Simulation',['../namespace_simulation.html',1,'']]],
['simulationenvironment',['SimulationEnvironment',['../namespace_simulation_environment.html',1,'']]]
];
| JavaScript |
var searchData=
[
['scheduler_2ecpp',['Scheduler.cpp',['../_scheduler_8cpp.html',1,'']]],
['scheduler_2eh',['Scheduler.h',['../_scheduler_8h.html',1,'']]],
['schedulerparameters_2ecpp',['SchedulerParameters.cpp',['../_scheduler_parameters_8cpp.html',1,'']]],
['schedulerparameters_2eh',['SchedulerParameters.h',['../_scheduler_parameters_8h.html',1,'']]],
['schedulingalgorithm_2ecpp',['SchedulingAlgorithm.cpp',['../_scheduling_algorithm_8cpp.html',1,'']]],
['schedulingalgorithm_2eh',['SchedulingAlgorithm.h',['../_scheduling_algorithm_8h.html',1,'']]],
['simulation_2ecpp',['Simulation.cpp',['../_simulation_8cpp.html',1,'']]],
['simulation_2eh',['Simulation.h',['../_simulation_8h.html',1,'']]],
['simulationenvironment_2ecpp',['SimulationEnvironment.cpp',['../_simulation_environment_8cpp.html',1,'']]],
['simulationenvironment_2eh',['SimulationEnvironment.h',['../_simulation_environment_8h.html',1,'']]],
['simulationparameters_2ecpp',['SimulationParameters.cpp',['../_simulation_parameters_8cpp.html',1,'']]],
['simulationparameters_2eh',['SimulationParameters.h',['../_simulation_parameters_8h.html',1,'']]],
['slot_2ecpp',['Slot.cpp',['../_slot_8cpp.html',1,'']]],
['slot_2eh',['Slot.h',['../_slot_8h.html',1,'']]],
['smallscalefading_2ecpp',['SmallScaleFading.cpp',['../_small_scale_fading_8cpp.html',1,'']]],
['smallscalefading_2eh',['SmallScaleFading.h',['../_small_scale_fading_8h.html',1,'']]],
['statistics_2ecpp',['Statistics.cpp',['../_statistics_8cpp.html',1,'']]],
['statistics_2eh',['Statistics.h',['../_statistics_8h.html',1,'']]],
['subcarrier_2ecpp',['Subcarrier.cpp',['../_subcarrier_8cpp.html',1,'']]],
['subcarrier_2eh',['Subcarrier.h',['../_subcarrier_8h.html',1,'']]],
['subframe_2ecpp',['Subframe.cpp',['../_subframe_8cpp.html',1,'']]],
['subframe_2eh',['Subframe.h',['../_subframe_8h.html',1,'']]],
['systemparameters_2ecpp',['SystemParameters.cpp',['../_system_parameters_8cpp.html',1,'']]],
['systemparameters_2eh',['SystemParameters.h',['../_system_parameters_8h.html',1,'']]]
];
| JavaScript |
var searchData=
[
['y',['y',['../class_basic_1_1_position.html#af82aa750d8f6f3c2c8b90b5b299b4d40',1,'Basic::Position::y()'],['../class_basic_1_1_position.html#a97569d5ba867724e82ce39cc2e5358e7',1,'Basic::Position::y(double y_arg)']]]
];
| JavaScript |
var searchData=
[
['fading_2ecpp',['Fading.cpp',['../_fading_8cpp.html',1,'']]],
['fading_2eh',['Fading.h',['../_fading_8h.html',1,'']]],
['file_2ecpp',['File.cpp',['../_file_8cpp.html',1,'']]],
['file_2eh',['File.h',['../_file_8h.html',1,'']]],
['frame_2ecpp',['Frame.cpp',['../_frame_8cpp.html',1,'']]],
['frame_2eh',['Frame.h',['../_frame_8h.html',1,'']]],
['frequencyplanning_2ecpp',['FrequencyPlanning.cpp',['../_frequency_planning_8cpp.html',1,'']]],
['frequencyplanning_2eh',['FrequencyPlanning.h',['../_frequency_planning_8h.html',1,'']]],
['frequencyselectivechannel_2ecpp',['FrequencySelectiveChannel.cpp',['../_frequency_selective_channel_8cpp.html',1,'']]],
['frequencyselectivechannel_2eh',['FrequencySelectiveChannel.h',['../_frequency_selective_channel_8h.html',1,'']]]
];
| JavaScript |
var searchData=
[
['parameters_2ecpp',['Parameters.cpp',['../_parameters_8cpp.html',1,'']]],
['parameters_2eh',['Parameters.h',['../_parameters_8h.html',1,'']]],
['physicallayer_2ecpp',['PhysicalLayer.cpp',['../_physical_layer_8cpp.html',1,'']]],
['physicallayer_2eh',['PhysicalLayer.h',['../_physical_layer_8h.html',1,'']]],
['physicallayerparameters_2ecpp',['PhysicalLayerParameters.cpp',['../_physical_layer_parameters_8cpp.html',1,'']]],
['physicallayerparameters_2eh',['PhysicalLayerParameters.h',['../_physical_layer_parameters_8h.html',1,'']]],
['physicalnode_2ecpp',['PhysicalNode.cpp',['../_physical_node_8cpp.html',1,'']]],
['physicalnode_2eh',['PhysicalNode.h',['../_physical_node_8h.html',1,'']]],
['physicalresourceblock_2ecpp',['PhysicalResourceBlock.cpp',['../_physical_resource_block_8cpp.html',1,'']]],
['physicalresourceblock_2eh',['PhysicalResourceBlock.h',['../_physical_resource_block_8h.html',1,'']]],
['position_2ecpp',['Position.cpp',['../_position_8cpp.html',1,'']]],
['position_2eh',['Position.h',['../_position_8h.html',1,'']]],
['proportionalfairalgorithm_2ecpp',['ProportionalFairAlgorithm.cpp',['../_proportional_fair_algorithm_8cpp.html',1,'']]],
['proportionalfairalgorithm_2eh',['ProportionalFairAlgorithm.h',['../_proportional_fair_algorithm_8h.html',1,'']]]
];
| JavaScript |
var searchData=
[
['largescalefading_2ecpp',['LargeScaleFading.cpp',['../_large_scale_fading_8cpp.html',1,'']]],
['largescalefading_2eh',['LargeScaleFading.h',['../_large_scale_fading_8h.html',1,'']]],
['link_2ecpp',['Link.cpp',['../_link_8cpp.html',1,'']]],
['link_2eh',['Link.h',['../_link_8h.html',1,'']]],
['linkadaptation_2ecpp',['LinkAdaptation.cpp',['../_link_adaptation_8cpp.html',1,'']]],
['linkadaptation_2eh',['LinkAdaptation.h',['../_link_adaptation_8h.html',1,'']]],
['linkadaptationparameters_2ecpp',['LinkAdaptationParameters.cpp',['../_link_adaptation_parameters_8cpp.html',1,'']]],
['linkadaptationparameters_2eh',['LinkAdaptationParameters.h',['../_link_adaptation_parameters_8h.html',1,'']]]
];
| JavaScript |
var searchData=
[
['largescalefading',['LargeScaleFading',['../class_radio_channel_1_1_large_scale_fading.html',1,'RadioChannel']]],
['largescalefading',['LargeScaleFading',['../class_radio_channel_1_1_large_scale_fading.html#ac7ca540f10d15ab3d3241d40180fd397',1,'RadioChannel::LargeScaleFading']]],
['largescalefading_2ecpp',['LargeScaleFading.cpp',['../_large_scale_fading_8cpp.html',1,'']]],
['largescalefading_2eh',['LargeScaleFading.h',['../_large_scale_fading_8h.html',1,'']]],
['link',['Link',['../class_link_1_1_link.html',1,'Link']]],
['link',['Link',['../namespace_link.html',1,'']]],
['link_2ecpp',['Link.cpp',['../_link_8cpp.html',1,'']]],
['link_2eh',['Link.h',['../_link_8h.html',1,'']]],
['link_5f',['link_',['../class_simulation_1_1_simulation.html#a3f215be3b98611171f77b8521a14e104',1,'Simulation::Simulation']]],
['linkadaptation',['LinkAdaptation',['../namespace_link_adaptation.html',1,'']]],
['linkadaptation',['LinkAdaptation',['../class_link_adaptation_1_1_link_adaptation.html',1,'LinkAdaptation']]],
['linkadaptation_2ecpp',['LinkAdaptation.cpp',['../_link_adaptation_8cpp.html',1,'']]],
['linkadaptation_2eh',['LinkAdaptation.h',['../_link_adaptation_8h.html',1,'']]],
['linkadaptation_5f',['linkAdaptation_',['../class_scheduler_1_1_scheduling_algorithm.html#aa0a3c32bce2ae7fc5025b6320dc30d00',1,'Scheduler::SchedulingAlgorithm::linkAdaptation_()'],['../class_simulation_1_1_simulation.html#a6aba5f5b0b14d6eaad13369fa2ff5533',1,'Simulation::Simulation::linkAdaptation_()']]],
['linkadaptationparameters',['LinkAdaptationParameters',['../class_parameters_1_1_link_adaptation_parameters.html',1,'Parameters']]],
['linkadaptationparameters_2ecpp',['LinkAdaptationParameters.cpp',['../_link_adaptation_parameters_8cpp.html',1,'']]],
['linkadaptationparameters_2eh',['LinkAdaptationParameters.h',['../_link_adaptation_parameters_8h.html',1,'']]],
['linkedusers_5f',['linkedUsers_',['../class_physical_node_1_1_e_node_b.html#a1e09f6288a4ffe76b809e31dbd7c8fa9',1,'PhysicalNode::ENodeB']]]
];
| JavaScript |
var searchData=
[
['operator_2b',['operator+',['../class_basic_1_1_position.html#a6004db73e0d762f72a911a17eaf8ef20',1,'Basic::Position']]],
['operator_3c_3c',['operator<<',['../class_basic_1_1_position.html#a14d89ec2c15e82ce10902fcd138637f4',1,'Basic::Position']]],
['orientation_5f',['orientation_',['../class_physical_node_1_1_device.html#ae6dfc34ae592db3db237bfe9fc9d89ed',1,'PhysicalNode::Device']]]
];
| JavaScript |
var searchData=
[
['effectivebits_5f',['effectiveBits_',['../class_physical_layer_1_1_resource_element.html#ab896af9f43b9397c201643fa92121ca2',1,'PhysicalLayer::ResourceElement::effectiveBits_()'],['../class_physical_node_1_1_physical_node.html#a6e345a627bd97ee2b4597a5ddf227578',1,'PhysicalNode::PhysicalNode::effectiveBits_()']]],
['enodebid_5f',['eNodeBId_',['../class_physical_node_1_1_user.html#a5b5b3de0e7f6d9aa22c3cd5dfb665005',1,'PhysicalNode::User']]]
];
| JavaScript |
var searchData=
[
['hasresolutionstepchanged',['hasResolutionStepChanged',['../class_time_manager_1_1_time_manager.html#aac0d7fa5bbb2d937cc357122f1e906ea',1,'TimeManager::TimeManager']]]
];
| JavaScript |
var searchData=
[
['user',['User',['../class_physical_node_1_1_user.html',1,'PhysicalNode']]],
['userparameters',['UserParameters',['../class_parameters_1_1_user_parameters.html',1,'Parameters']]]
];
| JavaScript |
var searchData=
[
['genericantenna',['GenericAntenna',['../class_physical_node_1_1_generic_antenna.html',1,'PhysicalNode']]],
['grid',['Grid',['../class_grid_1_1_grid.html',1,'Grid']]],
['gridparameters',['GridParameters',['../class_parameters_1_1_grid_parameters.html',1,'Parameters']]]
];
| JavaScript |
var searchData=
[
['x',['x',['../class_basic_1_1_position.html#acf7520d40b7a067e36dff0663903d122',1,'Basic::Position::x()'],['../class_basic_1_1_position.html#a31a9dbb2158bec0e7b3c51d6c00effc8',1,'Basic::Position::x(double x_arg)']]],
['xy',['xy',['../class_basic_1_1_position.html#afe01f5a63a7cd0d4af4180b30d57588a',1,'Basic::Position']]]
];
| JavaScript |
var searchData=
[
['timemanager',['TimeManager',['../namespace_time_manager.html',1,'']]],
['transmission',['Transmission',['../namespace_transmission.html',1,'']]]
];
| JavaScript |
var searchData=
[
['antenna',['Antenna',['../class_physical_node_1_1_antenna.html',1,'PhysicalNode']]],
['antennaparameters',['AntennaParameters',['../class_parameters_1_1_antenna_parameters.html',1,'Parameters']]]
];
| JavaScript |
var searchData=
[
['parameters',['Parameters',['../class_parameters_1_1_parameters.html',1,'Parameters']]],
['physicallayer',['PhysicalLayer',['../class_physical_layer_1_1_physical_layer.html',1,'PhysicalLayer']]],
['physicallayerparameters',['PhysicalLayerParameters',['../class_parameters_1_1_physical_layer_parameters.html',1,'Parameters']]],
['physicalnode',['PhysicalNode',['../class_physical_node_1_1_physical_node.html',1,'PhysicalNode']]],
['physicalresourceblock',['PhysicalResourceBlock',['../class_physical_layer_1_1_physical_resource_block.html',1,'PhysicalLayer']]],
['position',['Position',['../class_basic_1_1_position.html',1,'Basic']]],
['proportionalfairalgorithm',['ProportionalFairAlgorithm',['../class_scheduler_1_1_proportional_fair_algorithm.html',1,'Scheduler']]]
];
| JavaScript |
var searchData=
[
['enodeb',['ENodeB',['../class_physical_node_1_1_e_node_b.html#ad15f75f973745caae604b4fac2724ef3',1,'PhysicalNode::ENodeB::ENodeB()'],['../class_physical_node_1_1_e_node_b.html#a789ffae9f22054261bec28738b9db8c1',1,'PhysicalNode::ENodeB::ENodeB(Basic::Position p, int id)']]]
];
| JavaScript |
var searchData=
[
['bestcqialgorithm',['BestCQIAlgorithm',['../class_scheduler_1_1_best_c_q_i_algorithm.html#aa75bb5645120b7985e898f2ed947ec0f',1,'Scheduler::BestCQIAlgorithm']]]
];
| JavaScript |
var searchData=
[
['j1_5fr',['j1_R',['../class_scheduler_1_1_scheduling_algorithm.html#a09558e28515daca204a6bd48d88da7ce',1,'Scheduler::SchedulingAlgorithm']]]
];
| JavaScript |
var searchData=
[
['grid',['Grid',['../namespace_grid.html',1,'']]]
];
| JavaScript |
var searchData=
[
['radiochannel',['RadioChannel',['../class_radio_channel_1_1_radio_channel.html',1,'RadioChannel']]],
['randomalgorithm',['RandomAlgorithm',['../class_scheduler_1_1_random_algorithm.html',1,'Scheduler']]],
['rayleighchannel',['RayleighChannel',['../class_radio_channel_1_1_rayleigh_channel.html',1,'RadioChannel']]],
['receiver',['Receiver',['../class_physical_node_1_1_receiver.html',1,'PhysicalNode']]],
['reciever',['Reciever',['../class_physical_node_1_1_reciever.html',1,'PhysicalNode']]],
['resourceelement',['ResourceElement',['../class_physical_layer_1_1_resource_element.html',1,'PhysicalLayer']]],
['results',['Results',['../class_results_1_1_results.html',1,'Results']]]
];
| JavaScript |
var searchData=
[
['largescalefading',['LargeScaleFading',['../class_radio_channel_1_1_large_scale_fading.html#ac7ca540f10d15ab3d3241d40180fd397',1,'RadioChannel::LargeScaleFading']]]
];
| JavaScript |
var searchData=
[
['device_5f',['device_',['../class_physical_node_1_1_physical_node.html#aa54252970d37aec20f8249fd39c32500',1,'PhysicalNode::PhysicalNode']]],
['direction',['Direction',['../class_parameters_1_1_simulation_parameters.html#a81a3a73049c101d1bfb1faedaee2275c',1,'Parameters::SimulationParameters']]],
['direction_5f',['Direction_',['../class_physical_layer_1_1_subcarrier.html#afacddeede59d45c7c64a611824190226',1,'PhysicalLayer::Subcarrier']]],
['dropspersimulation',['DropsPerSimulation',['../class_parameters_1_1_simulation_parameters.html#ab316f8897a39292beaf2a3baedb8e865',1,'Parameters::SimulationParameters']]]
];
| JavaScript |
var searchData=
[
['grid_5f',['grid_',['../class_simulation_1_1_simulation.html#a3edbedb7f07ccef4cca2aa95301b4f6a',1,'Simulation::Simulation']]]
];
| JavaScript |
var searchData=
[
['bandwidth_5f',['bandWidth_',['../class_radio_channel_1_1_small_scale_fading.html#a1da2b8e28c54aa9a49c84033b89efff3',1,'RadioChannel::SmallScaleFading']]],
['bandwidthsubcarrier_5f',['bandWidthSubcarrier_',['../class_radio_channel_1_1_small_scale_fading.html#a24ad7b3f2261086661fa5a09152564ee',1,'RadioChannel::SmallScaleFading']]],
['basic',['Basic',['../namespace_basic.html',1,'']]],
['ber_5f',['BER_',['../class_physical_layer_1_1_physical_resource_block.html#ae69b0a0f380c203e07dbbd0ea6ec5ed9',1,'PhysicalLayer::PhysicalResourceBlock']]],
['bert',['BERt',['../class_parameters_1_1_link_adaptation_parameters.html#a853d1d78406646ae46c04646c7c94282',1,'Parameters::LinkAdaptationParameters']]],
['bestcqialgorithm',['BestCQIAlgorithm',['../class_scheduler_1_1_best_c_q_i_algorithm.html#aa75bb5645120b7985e898f2ed947ec0f',1,'Scheduler::BestCQIAlgorithm']]],
['bestcqialgorithm',['BestCQIAlgorithm',['../class_scheduler_1_1_best_c_q_i_algorithm.html',1,'Scheduler']]],
['bestcqialgorithm_2ecpp',['BestCQIAlgorithm.cpp',['../_best_c_q_i_algorithm_8cpp.html',1,'']]],
['bestcqialgorithm_2eh',['BestCQIAlgorithm.h',['../_best_c_q_i_algorithm_8h.html',1,'']]],
['beta0',['beta0',['../class_parameters_1_1_link_adaptation_parameters.html#ad05de726cf95c84f410299cfab0f26d9',1,'Parameters::LinkAdaptationParameters']]],
['beta1',['beta1',['../class_parameters_1_1_link_adaptation_parameters.html#a31f1e319cf1b3b83769617e0fad642d5',1,'Parameters::LinkAdaptationParameters']]],
['beta2',['beta2',['../class_parameters_1_1_link_adaptation_parameters.html#a4ba6574c8e6fbcb139059fc8f7ac4599',1,'Parameters::LinkAdaptationParameters']]]
];
| JavaScript |
var searchData=
[
['main_2ecpp',['main.cpp',['../main_8cpp.html',1,'']]],
['mathfunctions_2ecpp',['MathFunctions.cpp',['../_math_functions_8cpp.html',1,'']]],
['mathfunctions_2eh',['MathFunctions.h',['../_math_functions_8h.html',1,'']]],
['mobility_2ecpp',['Mobility.cpp',['../_mobility_8cpp.html',1,'']]],
['mobility_2eh',['Mobility.h',['../_mobility_8h.html',1,'']]],
['mobilityparameters_2ecpp',['MobilityParameters.cpp',['../_mobility_parameters_8cpp.html',1,'']]],
['mobilityparameters_2eh',['MobilityParameters.h',['../_mobility_parameters_8h.html',1,'']]]
];
| JavaScript |
var searchData=
[
['vectorfunctions',['VectorFunctions',['../class_basic_1_1_vector_functions.html',1,'Basic']]]
];
| JavaScript |
var searchData=
[
['id_5f',['id_',['../class_physical_node_1_1_physical_node.html#a2dbd388acdf7fcbb7dfa2ca2e347a46d',1,'PhysicalNode::PhysicalNode']]],
['initialfrequency_5f',['initialFrequency_',['../class_physical_layer_1_1_physical_resource_block.html#abcbf6ef15230344820f741f7c251fc95',1,'PhysicalLayer::PhysicalResourceBlock']]],
['initialusers',['initialUsers',['../class_parameters_1_1_simulation_parameters.html#a7249e4d01382de3c7271aa916509304b',1,'Parameters::SimulationParameters']]],
['interlimit',['InterLimit',['../class_parameters_1_1_simulation_parameters.html#a07d5844b6922173b563ce1ae4736cc40',1,'Parameters::SimulationParameters']]],
['intersitedistance',['interSiteDistance',['../class_parameters_1_1_grid_parameters.html#a194fb7a1b8ca0741d85755a0cb9c0cce',1,'Parameters::GridParameters']]]
];
| JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.