| <?php |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function startBloc($title='',$id='') |
| { |
| |
| static $i; |
| |
| $id = $id != '' ? $id : $i; |
| |
| $res = ''; |
| $res .= "\t".'<div class="block" id="'.$id.'">'."\n"; |
| |
| if ($title!='') |
| $res .= "\t".'<h2><span>'.$title.'</span></h2>'."\n"; |
| |
| $res .= |
| "\t\t".'<div class="box" id="box_'.$id.'">'."\n". |
| "\t\t\t".'<div class="inbox">'."\n"; |
| |
| echo $res; |
| $i++; |
| } |
| |
| |
| |
| |
| |
| |
| |
| function endBloc() |
| { |
| echo |
| "\t\t\t".'</div>'."\n". |
| "\t\t".'</div>'."\n". |
| "\t".'</div>'; |
| } |
| |
| |
| |
| |
| |
| |
| |
| function headJsIe() |
| { |
| $user_agent = isset($_SERVER['HTTP_USER_AGENT']) ? strtolower($_SERVER['HTTP_USER_AGENT']) : ''; |
| if (strpos($user_agent, 'msie') !== false && strpos($user_agent, 'windows') !== false && strpos($user_agent, 'opera') === false) |
| echo '<script type="text/javascript" src="'.pt_forum_url.'style/imports/minmax.js"></script>'; |
| } |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function startBlocStatic($title='',$id='') |
| { |
| |
| static $i; |
| |
| $id = $id != '' ? $id : $i; |
| |
| $res = ''; |
| $res .= "\t".'<div class="block" id="'.$id.'">'."\n"; |
| |
| if ($title!='') |
| $res .= "\t".'<h2><span>'.$title.'</span></h2>'."\n"; |
| |
| $res .= |
| "\t\t".'<div class="box" id="box_'.$id.'">'."\n". |
| "\t\t\t".'<div class="inbox">'."\n"; |
| |
| return $res; |
| $i++; |
| } |
| |
| |
| |
| |
| |
| function endBlocStatic() |
| { |
| return |
| "\t\t\t".'</div>'."\n". |
| "\t\t".'</div>'."\n". |
| "\t".'</div>'; |
| } |
| |
| ?> |