Beispiel #1
0
?>
</td>
                <td colspan="2"><?php 
echo CHtml::activeTextArea($model_lang, 'key_words');
?>
</td>
        </tr>
        <tr>
            <td width="180" style="padding-top: 10px;"><?php 
echo CHtml::activeLabelEx($model, 'banner');
?>
</td>
            <td colspan="2">
            <p>Учитывайте, пользователи увидят данный блок с фиксированной шириной 715</p>
            <?php 
echo FSmarty::ckeditor(array('name' => 'UploadsCategories[banner]', 'type' => 'content', 'ckfinder' => true, 'value' => $model->banner, 'width' => 715));
?>
</td>
        </tr>
        
        

	
	
</tbody>
</table><!-- form -->
	
		<?php 
echo CHtml::submitButton($model->isNewRecord ? 'Создать' : 'Сохранить');
?>
	
Beispiel #2
0
?>
 ">
					<?php 
$ckeditorconfigtext = array('name' => 'BlogPostsLang[text]', 'type' => 'content', 'ckfinder' => true, 'value' => $postLang->text);
?>
					<?php 
if (Yii::app()->isPackageInstall('Ckeditor', '1.0.7')) {
    ?>
						<?php 
    echo CkeditorHelper::init($ckeditorconfigtext);
    ?>
					<?php 
} else {
    ?>
						<?php 
    echo FSmarty::ckeditor($ckeditorconfigtext);
    ?>
					<?php 
}
?>
					
					<p class="help-block text-error" style="color:red"><?php 
echo $postLang->getError('text');
?>
</p>
				</div>
			</div>	
			<div class="clear"></div>			
			<div class="form-group">
				
				<label for="" class="col-md-3 control-label" style='float:left;padding:5px;width:15%' >
Beispiel #3
0
                    <?php 
if (Yii::app()->user->checkAccess('AdminContentContentsSwitchMode')) {
    ?>
                        <div style="width: 100%; text-align: left; margin-left: 25px;"><?php 
    echo CHtml::checkBox('useCkeditor', (int) TRUE, array('onChange' => 'showEditor()', 'id' => 'showEditorBox', 'style' => 'text-align: left;'));
    ?>
&nbsp;&nbsp;<?php 
    echo Yii::t('app', 'Использовать визуальный редактор');
    ?>
</div>
                    <?php 
}
?>
                
                    <?php 
echo FSmarty::ckeditor(array('name' => 'area[textareackeditor]', 'type' => 'content', 'ckfinder' => true, 'height' => '380px', 'width' => '100%'));
?>
<br />
                    <?php 
echo CHtml::textArea('area[textareablock]', '', array('id' => 'textareablock', 'style' => 'display: none;'));
?>
                    <div class="contenterrors" id="texterror" style="color: red; display: none; text-align: left;"></div>
                </td>
            </tr>
        </table>
        <input type="button" value="<?php 
echo Yii::t('app', 'Сохранить');
?>
" class="btn100" onClick="block.content_save()" />
        <input type="button" value="<?php 
echo Yii::t('app', 'Отмена');