Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/prbsiste/public_html/formtools/global/code/Files.class.php on line 280

Warning: Cannot modify header information - headers already sent by (output started at /home/prbsiste/public_html/formtools/global/code/Files.class.php:280) in /home/prbsiste/public_html/formtools/global/scripts/field_types.php on line 9

Warning: Cannot modify header information - headers already sent by (output started at /home/prbsiste/public_html/formtools/global/code/Files.class.php:280) in /home/prbsiste/public_html/formtools/global/scripts/field_types.php on line 10
$(function() { $(".fancybox").fancybox(); }); /** * The following code provides a simple text/word counter option for any * textarea. It either just keeps counting up, or limits the results to a * certain number - all depending on what the user has selected via the * field type settings. */ var cf_counter = {}; cf_counter.get_max_count = function(el) { var classes = $(el).attr('class').split(" ").slice(-1); var max = null; for (var i=0; i max) { var allowed_words = val.split(/[\s]+/, max); truncated_str = allowed_words.join(" "); $(this).val(truncated_str); } else { $("#" + field_name + "_counter").find("span").html(parseInt(max) - parseInt(num_words)); } }); $(this).trigger("keydown"); }); $("textarea[class~='cf_textcounter']").each(function() { var max = cf_counter.get_max_count(this); if (max == null) { return; } $(this).bind("keydown", function() { var field_name = $(this).attr("name"); if (this.value.length > max) { this.value = this.value.substring(0, max); } else { $("#" + field_name + "_counter").find("span").html(max - this.value.length); } }); $(this).trigger("keydown"); }); }); $(function() { // the datetimepicker has a bug that prevents the icon from appearing. So // instead, we add the image manually into the page and assign the open event // handler to the image var default_settings = { changeYear: true, changeMonth: true } $(".cf_datepicker").each(function() { var field_name = $(this).attr("name"); var settings = default_settings; if ($("#" + field_name + "_id").length) { settings.dateFormat = $("#" + field_name + "_format").val(); } $(this).datepicker(settings); $("#" + field_name + "_icon_id").bind("click", { field_id: "#" + field_name + "_id" }, function(e) { $.datepicker._showDatepicker($(e.data.field_id)[0]); }); }); $(".cf_datetimepicker").each(function() { var field_name = $(this).attr("name"); var settings = default_settings; if ($("#" + field_name + "_id").length) { var settings_str = $("#" + field_name + "_format").val(); settings_str = settings_str.replace(/datetime:/, ""); var settings_list = settings_str.split("|"); var settings = {}; settings.dateFormat = settings_list[0]; settings.timeFormat = settings_list[1]; for (var i=2; i 0) { settings.timeFormat = settings_list[0]; for (var i=1; i