function jQueryPluginRequired($plugin) { //protect against double inclusions if (cache_getvalue("jquery_plugin_" . $plugin) == '') { cache_addvalue("jquery_plugin_" . $plugin, "loaded"); ob_start(); ?> <script type="text/javascript" src="js/<?php echo $plugin; ?> .js?1"></script> <?php cache_addvalue("head", ob_get_contents()); ob_end_clean(); if (file_exists("js/" . $plugin . ".css")) { ob_start(); ?> <style><?php include "js/" . $plugin . ".css"; ?> </style> <?php cache_addvalue("finalhead", ob_get_contents()); ob_end_clean(); } } }
y=parseInt($(this).attr("posy")); $(this).append('<td><input type="text" class="sheet_'+(x+1)+'_'+y+'" name="'+elname+'_'+(x+1)+'_'+y+'" value="" posx="'+(x+1)+'" posy="'+y+'">'); }); ref=true; } if(!$("#"+elname+" tr.sheet_"+(y+1)).length) { var st='<tr class="sheet_'+(y+1)+'" posy="'+(y+1)+'">'; $("#"+elname+" tr.sheet_"+y+' td input').each(function(){ var x; x=parseInt($(this).attr("posx")); st=st+'<td><input type="text" class="sheet_'+x+'_'+(y+1)+'" name="'+elname+'_'+x+'_'+(y+1)+'" value="" posx="'+x+'" posy="'+(y+1)+'">'; }); el.parent().parent().parent().append(st); ref=true; } if(ref) { $("#"+elname+" tr td input").unbind("keydown").bind("keydown",function(){ $(this).autoGrowInput({comfortZone:20,updateparent:$("#"+elname)}); checkSheetBounderies($(this),elname); return true; }); } return true; } </script> <?php cache_addvalue("head", ob_get_contents()); ob_end_clean();
if (getUserConfig("datepicker") != "yes") { ?> <DIV ID="calendardiv" STYLE="position:absolute;visibility:hidden;background-color:white;z-index:100;"></DIV> <script> var global_cal = new CalendarPopup("calendardiv"); //global_cal.showNavigationDropdowns(); global_cal.setCssPrefix(""); global_cal.setMonthNames(<?php echo getLT('months'); ?> ); global_cal.setDayHeaders(<?php echo getLT('shortdays'); ?> ); global_cal.setWeekStartDay(<?php echo getLT('startingday'); ?> ); global_cal.setTodayText("<?php echo getLT('today'); ?> "); global_cal.showYearNavigation(); global_cal.showYearNavigationInput(); </script> <?php } require_once "dateutils.php"; cache_addvalue("body", ob_get_contents()); ob_end_clean();
include cache_getvalue("load_in_template"); } cache_addvalue("body", ob_get_contents()); ob_end_clean(); if (cache_getvalue("load_in_css") != "") { ob_start(); ?> <style> <?php include cache_getvalue("load_in_css"); ?> </style> <?php cache_addvalue("finalhead", ob_get_contents()); ob_end_clean(); } global $mycheader; global $mycbody; if ($mycheader != "") { cache_addvalue("finalhead", $mycheader); } if ($mycbody != "") { $myb = str_replace("[body]", cache_getvalue("body"), $mycbody); cache_setvalue("body", $myb); } //html if (file_exists("extensions/justhtml.php")) { include "extensions/justhtml.php"; } else { include "design/justhtml.php"; }