Exemplo n.º 1
0
?>
<!DOCTYPE html>
<html lang="ja">
<head>
    <meta charset="UTF-8">
    <!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"><![endif]-->
    <!--[if lt IE 9]><script src="<?php 
echo XHtml::jsUrl('html5shiv.js');
?>
"</script><![endif]-->
   <link rel="stylesheet" type="text/css" href="<?php 
echo XHtml::cssUrl('main.css');
?>
" />
   <link rel="stylesheet" type="text/css" href="<?php 
echo XHtml::cssUrl('960.css');
?>
" />
   <script type="text/javascript" src="<?php 
echo XHtml::jsUrl('jquery-1.4a2.min.js');
?>
"></script>
   <script type="text/javascript" src="<?php 
echo XHtml::jsUrl('jquery.KinSlideshow-1.1.js');
?>
"></script>
   <link rel="shortcut icon" type="image/x-icon" href="<?php 
echo XHtml::imageUrl('favicon.ico');
?>
" />
    <title></title>
Exemplo n.º 2
0
                <?php 
$this->widget('ext.widgets.xheditor.XHeditor', array('model' => $model, 'modelAttribute' => 'desc_en', 'config' => array('id' => 'xheditor_1', 'tools' => 'mfull', 'skin' => 'default', 'width' => '700px', 'height' => '300px', 'loadCSS' => XHtml::cssUrl('editor.css'), 'upLinkUrl' => $this->createUrl('request/uploadFile'), 'upLinkExt' => 'zip,rar,txt,pdf', 'upImgUrl' => $this->createUrl('request/uploadFile'), 'upImgExt' => 'jpg,jpeg,gif,png')));
?>
                
		<?php 
echo $form->error($model, 'desc_en');
?>
	</div>

	<div class="row"><br/>
		<?php 
echo $form->labelEx($model, 'desc_th');
?>
<br/>
                 <?php 
$this->widget('ext.widgets.xheditor.XHeditor', array('model' => $model, 'modelAttribute' => 'desc_th', 'config' => array('id' => 'xheditor_2', 'tools' => 'mfull', 'skin' => 'default', 'width' => '700px', 'height' => '300px', 'loadCSS' => XHtml::cssUrl('editor.css'), 'upLinkUrl' => $this->createUrl('request/uploadFile'), 'upLinkExt' => 'zip,rar,txt,pdf', 'upImgUrl' => $this->createUrl('request/uploadFile'), 'upImgExt' => 'jpg,jpeg,gif,png')));
?>
		<?php 
echo $form->error($model, 'desc_th');
?>
	</div>
        
	<div class="row">
		<?php 
echo $form->labelEx($model, 'pdf_en');
?>
<br/>
                <?php 
if (!$model->isNewRecord) {
    echo $model->pdf_en . " ";
    if ($model->pdf_en) {
Exemplo n.º 3
0
                
		<?php echo $form->error($model,'desc_en'); ?>
	</div>

	<div class="row"><br/>
		<?php echo $form->labelEx($model,'desc_th'); ?><br/>
                 <?php $this->widget('ext.widgets.xheditor.XHeditor',array(
                        'model'=>$model,
                        'modelAttribute'=>'desc_th',
                        'config'=>array(
                                'id'=>'xheditor_2',
                                'tools'=>'mfull', // mini, simple, mfull, full or from XHeditor::$_tools, tool names are case sensitive
                                'skin'=>'default', // default, nostyle, o2007blue, o2007silver, vista
                                'width'=>'700px',
                                'height'=>'300px',
                                'loadCSS'=>XHtml::cssUrl('editor.css'),
                                'upLinkUrl'=>$this->createUrl('request/uploadFile'),
                                'upLinkExt'=>'zip,rar,txt,pdf',
                                'upImgUrl'=>$this->createUrl('request/uploadFile'),
                                'upImgExt'=>'jpg,jpeg,gif,png',
                        ),
                )); ?>
		<?php echo $form->error($model,'desc_th'); ?>
	</div>       

        <?php
        $icon_list = array('new'=>'new','hot'=>'hot','update'=>'update');
        ?>        
	<div class="row"  style="margin-top: 20px;vertical-align: middle;">
		<?php echo $form->labelEx($model,'news_icon'); ?>
		<?php echo $form->dropDownList($model,'news_icon',$icon_list,array(
Exemplo n.º 4
0
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="language" content="en" />
<link rel="shortcut icon" href="<?php 
echo XHtml::imageUrl('favicon.ico');
?>
" />
<link rel="stylesheet" type="text/css" href="<?php 
echo XHtml::cssUrl('960.css');
?>
" />
<link rel="stylesheet" type="text/css" href="<?php 
echo XHtml::cssUrl('main.css');
?>
" />
<link rel="stylesheet" type="text/css" href="<?php 
echo XHtml::cssUrl('form.css');
?>
" />

<title><?php 
echo $this->pageTitle;
?>
</title>
</head>

<body>

<div id="page">

	<div id="header">
Exemplo n.º 5
0
$this->pageTitle = Yii::app()->name . ' - ' . Yii::t('ui', 'WYSIWYG Editor');
$this->layout = 'leftbar';
$this->leftPortlets['ptl.ExtensionMenu'] = array();
?>

<h2><?php 
echo Yii::t('ui', 'WYSIWYG Editor');
?>
</h2>

<?php 
$model = Content::model()->findbyPk(1);
?>

<?php 
$this->widget('ext.widgets.xheditor.XHeditor', array('model' => $model, 'modelAttribute' => 'content', 'config' => array('id' => 'xheditor_1', 'tools' => 'mfull', 'skin' => 'o2007blue', 'width' => '740px', 'height' => '400px', 'loadCSS' => XHtml::cssUrl('editor.css'), 'upImgUrl' => $this->createUrl('request/uploadFile'), 'upImgExt' => 'jpg,jpeg,gif,png')));
?>



<div class="tpanel">
<div class="toggle"><?php 
echo Yii::t('ui', 'View code');
?>
</div>
<?php 
$this->beginWidget('CTextHighlighter', array('language' => 'PHP'));
?>
$this->widget('ext.widgets.xheditor.XHeditor',array(
	'model'=>$model,
	'modelAttribute'=>'content',