Example #1
0
function html__header()
{
    global $pagetitle, $settings, $color, $lang_icons_prepare;
    global $jquery;
    echo '<HTML>
<HEAD>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta http-equiv="expires" content="0">
<TITLE>' . $pagetitle . '</TITLE>
<link rel="stylesheet" type="text/css" href="../style/' . $settings['style'] . '/stylesheet.css">
<link rel="stylesheet" href="../tagsets/icons.fa.css">
<link rel="stylesheet" href="../tagsets/icons.css">
';
    if (thisdoc() == "admin_login.php") {
        script__login_page();
    }
    if (isset($jquery) && is_array($jquery)) {
        include_jquery('', false);
        include_jquery('json2', false);
        if (in_array('datepicker', $jquery)) {
            include_jquery('datepick');
        }
        if (in_array('clockpicker', $jquery)) {
            include_jquery('clockpick');
        }
        if (in_array('arraypicker', $jquery)) {
            include_jquery('arraypick');
        }
        if (in_array('colorpicker', $jquery)) {
            include_jquery('colorpicker');
        }
        if (in_array('textext', $jquery)) {
            include_jquery('textext');
        }
        if (in_array('dropit', $jquery)) {
            include_jquery('dropit');
        }
        if (in_array('listtool', $jquery)) {
            include_jquery('listtool');
        }
        if (in_array('switchy', $jquery)) {
            include_jquery('switchy');
        }
        if (in_array('queryform', $jquery)) {
            include_jquery('queryform');
        }
        if (in_array('popup', $jquery)) {
            include_jquery('bpopup');
        }
    }
    echo '<style type="text/css">';
    if (isset($lang_icons_prepare) && $lang_icons_prepare) {
        lang_icons_prepare();
    }
    echo '</style>';
    echo '
</HEAD>
<body';
    if (isset($color['body_text'])) {
        echo ' text="' . $color['body_text'] . '"';
    }
    if (isset($color['body_link'])) {
        echo ' link="' . $color['body_link'] . '"';
    }
    if (isset($color['body_vlink'])) {
        echo ' vlink="' . $color['body_vlink'] . '"';
    }
    if (isset($color['body_alink'])) {
        echo ' alink="' . $color['body_alink'] . '"';
    }
    if (isset($color['shade_around_content'])) {
        echo ' bgcolor="' . $color['shade_around_content'] . '"';
    }
    echo ' TOPMARGIN=0 LEFTMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0';
    if (thisdoc() == "admin_login.php") {
        echo ' onload="gotoUsername();"';
    }
    echo '>
';
}

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php 
echo $title;
?>
 | Admin</title>
<?php 
echo include_jquery();
echo include_jquery_ui();
echo include_jquery_ui_css();
echo admin_main_css();
?>
<link href='http://fonts.googleapis.com/css?family=Cuprum' rel='stylesheet' type='text/css' />


<script type="text/javascript" src="<?php 
echo base_url();
?>
assets/js/wysiwyg/jquery.wysiwyg.js"></script>
<script type="text/javascript" src="<?php 
echo base_url();
?>
assets/js/wysiwyg/wysiwyg.image.js"></script>
<script type="text/javascript" src="<?php 
echo base_url();
?>
assets/js/wysiwyg/wysiwyg.link.js"></script>