get(); foreach($info_units as $k=>$v){ if($v["en_i"]){ if($v["allday"]){ $v["en_i"]--; $info_units[$k]["en_i"]--; } if(date("Y",$v["st_i"])==date("Y",$v["en_i"])){ $info_units[$k]["same_y"] = 1; if(date("m",$v["st_i"])==date("m",$v["en_i"])){ $info_units[$k]["same_m"] = 1; if(date("d",$v["st_i"])==date("d",$v["en_i"])){ $info_units[$k]["same_d"] = 1; } } } if($v["st_i"] == $v["en_i"]){$info_units[$k]["noe"] = 1;} } else $info_units[$k]["noe"] = 1; } //if(is_array($info_units)) array_splice($info_units,5); //-------------------------------- // if(!preg_match("/pentagon.local/",$_SERVER["HTTP_HOST"])) ob_start('mb_output_handler'); include_once(SMARTY); $s = new Smarty(); $s->template_dir = ABSDIR; $s->compile_dir = SMARTY_COMPILE_DIR; // $s->config_dir = SMARTY_CONFIG_DIR; $s->cache_dir = SMARTY_CACHE_DIR; $s->caching = SMARTY_CACHING; $s->cache_lifetime = SMARTY_CACHE_LIFETIME; $s->compile_check = SMARTY_COMPILE_CHECK; $s->force_compile = SMARTY_FORCE_COMPILE; // $s->assign("title",$_names[$name]); $s->assign("column_units",$column_units); $s->assign("report_units",$report_units); $s->assign("info_units",$info_units); $s->display(TEMPLATE); ?>