summaryrefslogtreecommitdiff
path: root/protected/extensions/ddeditor/views/editor.php
blob: e8ab7be69538b4e21bf93eeb7fb3472d36f231fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<div class="ddeditor">
<button
    type="button"
    id="<?php echo $editorId ?>-editor-bold"><b><?php echo Yii::t('ddeditor','B'); ?></b></button>
<button
    type="button"
    id="<?php echo $editorId ?>-editor-italic"><i><?php echo Yii::t('ddeditor','I'); ?></i></button>
<select id="<?php echo $editorId ?>-editor-h">
    <option value=""><?php echo Yii::t('ddeditor','H'); ?></option>
    <?php for($i=1; $i<=5; $i++ ) : ?>
    <option value="<?php echo $i ?>"><?php echo Yii::t('ddeditor','H'); ?><?php echo $i ?></option>
    <?php endfor; ?>
</select>
<button
    type="button"
    id="<?php echo $editorId ?>-editor-link">URL</button>
<!--
<button
    type="button"
    id="<?php echo $editorId ?>-editor-img">IMG</button>
-->
<select id="<?php echo $editorId ?>-editor-img2">
    <option value=""><?php echo Yii::t('ddeditor','IMG'); ?></option>
    <option value="!"><?php echo Yii::t('ddeditor','Inline'); ?></option>
    <option value="*"><?php echo Yii::t('ddeditor','Highslide'); ?></option>
</select>
<button
    type="button"
    id="<?php echo $editorId ?>-editor-li">&bull;</button>
<button
    type="button"
    id="<?php echo $editorId ?>-editor-hr"><?php echo Yii::t('ddeditor','HR'); ?></button>
<button
    type="button"
    id="<?php echo $editorId ?>-editor-code">Code</button>
<select id="<?php echo $editorId ?>-editor-code2">
    <option value=""><?php echo Yii::t('ddeditor','Code'); ?></option>
    <?php foreach(explode(", ","ABAP, CPP, CSS, DIFF, DTD, HTML, JAVA, JAVASCRIPT, MYSQL, PERL, PHP, PYTHON, RUBY, SQL, XML") as $language) : ?>
    <option value="<?php echo strtolower($language) ?>"><?php echo $language; ?></option>
    <?php endforeach; ?>
</select>
<button
    type="button"
    id="<?php echo $editorId ?>-editor-table"><?php echo Yii::t('ddeditor','Table'); ?></button>
<button
    type="button" 
    id="<?php echo $editorId; ?>-editor-addlines">+</button>
<button
    type="button" 
    id="<?php echo $editorId; ?>-editor-remlines">-</button>
<button
    type="button" 
    id="<?php echo $editorId; ?>-editor-preview"><?php echo Yii::t('ddeditor','Preview'); ?></button>
<br/>
<?php if(sizeof($additionalSnippets)>0) : ?>
<?php $n=0; foreach($additionalSnippets as $name=>$additionalSnippet) : $additionalSnippet = array_merge(array($name),$additionalSnippet); ?>
<?php echo CHtml::dropDownList($editorId.'-editor-addS-'.$n,'',$additionalSnippet); ?>
<?php $n++; endforeach; ?>
<br/>
<?php endif; ?>
<?php echo CHtml::activeTextArea($model,$attribute,$htmlOptions); ?>
<div id="<?php echo $editorId; ?>-preview" class="preview"><?php echo Yii::t('ddeditor','Loading Preview...'); ?></div>
</div>