Exemplo n.º 1
0
    height: <?php 
echo $height . "px;\n";
?>
}
body {
    <?php 
if (!empty($_GET['fg'])) {
    echo 'color: ' . $_GET['fg'] . ";\n";
}
unset($_GET['fg']);
if (!empty($_GET['bgc'])) {
    echo 'background-color: ' . $_GET['bgc'] . ";\n";
}
unset($_GET['bgc']);
if (!empty($_GET['font'])) {
    echo 'font-family: ' . FontPickerInput::getFontCss($_GET['font']) . ";\n";
} else {
    echo "font-family: Arial, Helvetica, sans-serif;\n";
}
unset($_GET['font']);
?>
    font-size:12px;
}

input {
    border: 1px solid #AAA;
    font-family: inherit;
}
.row {
    margin-bottom: 10px;
}
Exemplo n.º 2
0
                    </p>

                    <?php 
echo CHtml::label(Yii::t('marketing', 'Background Color'), 'bgc');
?>
                    <?php 
echo CHtml::textField('bgc', '#f0f0f0');
?>
                    <p class="fieldhelp">
                        <?php 
echo Yii::t('marketing', 'Default') . ': ' . Yii::t('marketing', 'transparent');
?>
                    </p>
                </div>
                <?php 
$fontInput = new FontPickerInput(array('name' => 'font'));
?>
                <div class="cell">
                    <?php 
echo CHtml::label(Yii::t('marketing', 'Font'), 'font');
?>
                    <?php 
echo $fontInput->render();
?>
                    <p class="fieldhelp">
                        <?php 
echo Yii::t('marketing', 'Default') . ': Arial, Helvetica';
?>
                    </p>

                    <?php 
Exemplo n.º 3
0
echo addslashes($padding) . "px;\n";
?>
    height: <?php 
echo addslashes($height) . "px;\n";
?>
}
body {
    <?php 
if (isset($fg)) {
    echo 'color: ' . addslashes($fg) . ";\n";
}
if (isset($bgc)) {
    echo 'background-color: ' . addslashes($bgc) . ";\n";
}
if (isset($font)) {
    echo 'font-family: ' . addslashes(FontPickerInput::getFontCss($font)) . ";\n";
} else {
    echo "font-family: Arial, Helvetica, sans-serif;\n";
}
?>
    font-size:12px;
}

input {
    border: 1px solid #AAA;
    font-family: inherit;
}
.row {
    margin-bottom: 10px;
}
textarea {