当前位置: 首页>>代码示例>>PHP>>正文


PHP Editor::create方法代码示例

本文整理汇总了PHP中Editor::create方法的典型用法代码示例。如果您正苦于以下问题:PHP Editor::create方法的具体用法?PHP Editor::create怎么用?PHP Editor::create使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Editor的用法示例。


在下文中一共展示了Editor::create方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Editor

				<input type="text" readonly="true" name="NewsImage" id="NewsImage" size="50"/>
				
				<button type="button" onClick="open_me('../includes/upload.php?dir=news',600,200)">
				<img src="images/upload.gif"  border="0"> Tải ảnh lên</button>		</td>
		</tr>
		
		
		<tr>	
			<th>
				Nội dung</th>
			<td>
                <?php 
include_once "ckeditor/ckeditor_php5.php";
include "process/class/class.Editor.php";
$newEditor = new Editor();
$newEditor->create("textContent", "", "ckeditor/");
?>
		
			</td>
		</tr>
		<tr>
		<th align="right">Thêm Liên Tục</th>
		<td><input name="continue" type="checkbox" checked="checked" value="OK"> 
		  (bỏ chọn nếu chỉ muốn thêm 1 tin)</td>
	</tr>
		<tr>	
			<td colspan="2">
				<button type="submit" onClick="return check();"><img src="images/add_16x16.gif" border="0"> Thêm</button>
				<button type="reset" ><img src="images/delete_16x16.gif" border="0"> Xoá form</button>		</td>
		</tr>
	</table>
开发者ID:meghv999,项目名称:cdshop-php,代码行数:31,代码来源:addNews.php

示例2: array

" />

                &nbsp;&nbsp; &nbsp;是否分享<input class="np" name="is_share" value="<?php 
echo $info['is_share'];
?>
" type="checkbox" <?php 
echo $info['is_share'] == 1 ? ' checked="checked"' : '';
?>
/></td>
        </tr>

        <tr>
        <tr>
            <th align="left" valign="top"><div style="line-height:22px">专题内容</div></th>
            <td><?php 
echo Editor::create('XH', array('name' => 'content', 'value' => $info['content'], 'width' => '700', 'height' => 500));
?>
                <div style="line-height:22px">
                    <font color="red"><?php 
echo $info['click'];
?>
</font>次浏览,
                    <font color="red"><?php 
echo $info['comment'];
?>
</font> 条评论
            </div>
            </td>
        </tr>
    </table>
    <p style="margin:10px 0 10px 72px;">
开发者ID:BGCX261,项目名称:zhongyycode-svn-to-git,代码行数:31,代码来源:edit.php

示例3: array

}
?>
                        </select>
                    </label>
                    <label class="add_tags"> <span class="name"> 添加标签 <sup>ADD TAGS</sup> </span>
                    <input class="input_text" name="tags" type="text" />
                    <br />
                    <span class="text"> (多个标签以空格分开,英文单词请用双引号括起来) </span> </label>
                        <div id="save_show">
                        <div class="close">关闭</div>
                        <div class="percent_num"></div>
                        <div class="percent_bar"><span id="bar">&nbsp;</span></div>
                         <div class="percent_stat"><span></span></div>
                    </div>
                    <div class="editor">  <?php 
echo Editor::create('XH', array('name' => 'content', 'value' => @$content, 'width' => '650', 'height' => '600'));
?>
 </div>
                    <br /><input type="button"  id="submit_art"value=" 提 交 " class="botton"/>
                </div>

                <div class="ft"></div>
                </form>
            </div>
        </div>
    </div>
</div>
<script language="javascript" type="text/javascript">
$(document).ready(function() {
    $('.close').click(function(){$('#save_show').hide();});
开发者ID:BGCX261,项目名称:zhongyycode-svn-to-git,代码行数:30,代码来源:add.php

示例4: array

            </td></tr>
            <tr>
              <th align="right">文档标题</th><td><input type="text" name="cname" value="<?php 
echo $info['cname'];
?>
" class="txt" /></td>
            <tr><th align="right">文档名</th>

                <td><input type="text" class="txt" name="title" value="<?php 
echo $info['title'];
?>
" /></td>
            </tr>
            <tr><th align="right">内容</th>
                <td> <?php 
echo Editor::create('XH', array('name' => 'content', 'value' => $info['content'], 'width' => '650'));
?>
 </td>
            </tr>
        </table>

        <div class="submit">
            <input type="submit" class="blue_btn" value="保存" name="save_submit" />
            <input type="reset" class="gray_btn" value="重置" />
        </div>
    </form>
</fieldset>
<?php 
include dirname(dirname(__FILE__)) . '/footer.php';
?>
<script language="javascript" type="text/javascript">
开发者ID:BGCX261,项目名称:zhongyycode-svn-to-git,代码行数:31,代码来源:add.php

示例5: Editor

echo $selectnews['image'];
?>
"/><button type="button" onClick="open_me('../includes/upload.php?dir=news',600,200)"><img src="images/upload.gif"  border="0"> Tải ảnh lên</button>
					</td>
		</tr>
		
		
		<tr>	
			<th>
				Nội dung</th>
			<td>
				<?php 
include_once "ckeditor/ckeditor_php5.php";
include "process/class/class.Editor.php";
$newEditor = new Editor();
$newEditor->create("textContent", $selectnews['content'], "ckeditor/");
?>
			</td>
		</tr>
		<tr>	
			<td colspan="2">
				<button type="submit" onClick="return check();"><img src="images/save.png" border="0"> Lưu thay đổi</button>
				<button type="reset" ><img src="images/delete_16x16.gif" border="0"> Xoá form</button></td>
		</tr>
	</table>
	<div align="center" id="errorArea">

	</div>
</form>

开发者ID:meghv999,项目名称:cdshop-php,代码行数:29,代码来源:editNews.php


注:本文中的Editor::create方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。