Ejemplo n.º 1
0
function make_user_style_combo($dstyle = '')
{
    // retourne le combo des styles avec le style $style selectionné
    global $msg;
    $style = get_styles();
    $combo = "<select name='form_style' id='form_style' class='saisie-20em'>";
    while (list($cle, $valeur) = each($style)) {
        $libelle = $valeur;
        if (strcmp($valeur, $dstyle) == 0) {
            $combo .= "<option value=\"{$valeur}\" selected='selected'>{$libelle}</option>";
        } else {
            $combo .= "<option value=\"{$valeur}\">{$libelle}</option>";
        }
    }
    $combo .= "</select>";
    return $combo;
}
Ejemplo n.º 2
0
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<title><?php 
echo $sPageTitle;
?>
 - <?php 
echo $sPageTitleSuffix;
?>
</title>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<?php 
get_styles($aAdditionalStyles);
?>

<?php 
get_javascript($aAdditionalScripts);
Ejemplo n.º 3
0
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title><?php 
echo $pageTitle ? $pageTitle . " :: " . $pageTitleSuffix : $pageTitleSuffix;
?>
</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
    <link rel="icon" href="<?php 
echo base_url();
?>
assets/templates/common/images/favicon.png" type="image/png" sizes="16x16">
    <?php 
get_styles();
?>
</head>
<body class="skin-blue sidebar-mini">
    <div class="wrapper">
        <?php 
get_mainmenu();
?>
        <!-- Content Wrapper. Contains page content -->
        <div class="content-wrapper">
            <!-- Content Header (Page header) -->
            <?php 
echo $this->session->flashdata('feedback') ? $this->session->flashdata('feedback') : '';
?>
            <?php 
//echo ($this->session->flashdata('temp')) ? $this->session->flashdata('temp') : '';
Ejemplo n.º 4
0
<link href="<?php 
echo $base_uri;
?>
assets/plugins/metisMenu/dist/metisMenu.min.css" rel="stylesheet" type="text/css"/>
<script src="<?php 
echo $base_uri;
?>
assets/plugins/jquery/dist/jquery.min.js" type="text/javascript"></script>

<link rel="shortcut icon" href="favicon.ico"/>


<?php 
if (isset($styles)) {
    echo $styles;
}
?>


<?php 
echo get_styles();
?>

<link href="<?php 
echo $base_uri;
?>
assets/css/sb-admin-2.css" rel="stylesheet" type="text/css"/>
<link href="<?php 
echo $base_uri;
?>
assets/css/custom.css" rel="stylesheet" type="text/css"/>
Ejemplo n.º 5
0
/* modify it under the terms of the GNU General Public License          */
/* as published by the Free Software Foundation.                        */
/************************************************************************/
define('AT_INCLUDE_PATH', 'include/');
require AT_INCLUDE_PATH . 'vitals.inc.php';
// hack for eXe content, remove now
header('content-type: text/css');
echo '@import url(exestyles.css);';
exit;
if (isset($_GET['cid'])) {
    $cid = intval($_GET['cid']);
    $sql = "SELECT * FROM " . TABLE_PREFIX . "head WHERE course_id={$_SESSION['course_id']} AND content_id={$cid}";
    $result = mysql_query($sql, $db);
    if ($result != 0 && ($row = mysql_fetch_assoc($result))) {
        // get the CSS used
        $styleText = get_styles($row['text'], $_GET['path']);
        header('content-type: text/css');
        echo $styleText;
    }
}
// Takes the contents of the 'head' section and returns the 'style' and 'link' elements.
function get_styles($headText, $path)
{
    $styleText = '';
    // get the contents of all the 'style' elements
    $styleStartPos = strpos($headText, '<style');
    while ($styleStartPos !== false) {
        // remove the start and end 'style' elements
        // (we're using just the contents of the 'style' element)
        $styleStartPos = strPos($headText, '>', $styleStartPos) + 1;
        $styleEndPos = strPos($headText, '</style', $styleStartPos) - 1;