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


PHP editor函数代码示例

本文整理汇总了PHP中editor函数的典型用法代码示例。如果您正苦于以下问题:PHP editor函数的具体用法?PHP editor怎么用?PHP editor使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: array

	<?= @helper('accordion.startPane', array('id' => 'menu-pane')) ?>
		<?= @template('form_accordion', array('params' => $module->params, 'id' => 'param-page', 'title' => 'Module Parameters')) ?>

		<? if($module->params->getNumParams('advanced')) : ?>
		<?= @template('form_accordion', array('params' => $module->params, 'group' => 'advanced')) ?>
		<? endif ?>
	
		<? if($module->params->getNumParams('other')) : ?>
		<?= @template('form_accordion', array('params' => $module->params, 'group' => 'other')) ?>
		<? endif ?>
	<?= @helper('accordion.endPane') ?>
</div>
<div class="clr"></div>

<? if(!$module->type || $module->type == 'custom' || $module->type == 'mod_custom') : ?>
<fieldset class="adminform">
	<legend><?= @text('Custom Output') ?></legend>
	
	<?= @editor(array(
		'name'		=> 'content',
		//@TODO is escaping the module content really necessary?
		'content'	=> @escape($module->content),
		'height'	=> 400,
		'cols'		=> 60,
		'buttons'	=> array('pagebreak', 'readmore')
	)) ?>
</fieldset>
<? endif ?>

<input type="hidden" name="type" value="<?= $module->type ?>" />
</form>
开发者ID:raeldc,项目名称:com_learn,代码行数:31,代码来源:form.php

示例2: array

                <input required class="input-block-level" id="package-title" name="title" value="<?php 
echo @escape($package->title);
?>
" size="50" maxlength="255" type="text" />
            </div>
        </div>
        
        <div class="control-group">
            <label class="control-label" for="package-body">
                <?php 
echo @text('LIB-AN-ENTITY-DESCRIPTION');
?>
            </label>
            <div class="controls">
                <?php 
echo @editor(array('name' => 'body', 'content' => @escape($package->body), 'html' => array('maxlength' => '20000', 'cols' => '10', 'rows' => '5', 'class' => 'input-block-level', 'id' => 'package-body')));
?>
            </div>
        </div>
        
        <div class="control-group">
            <label class="control-label" for="package-price">
                <?php 
echo @text('COM-SUBSCRIPTIONS-PACKAGE-PRICE');
?>
            </label> 
            <div class="controls">
                <div class="input-append">
                    <input class="span2" id="package-price" required type="text" placeholder="00.00" value="<?php 
echo $package->price;
?>
开发者ID:walteraries,项目名称:anahita,代码行数:31,代码来源:_form.php

示例3: parse_htmltext

 function parse_htmltext($params, $value = '')
 {
     import_func('content');
     return editor($params['name'], $value, 480);
 }
开发者ID:jinguanio,项目名称:swoole_websocket,代码行数:5,代码来源:AutoForm.php

示例4: array

?>
" />
            <label for="slug"><?php 
echo @text('Slug');
?>
</label>
            <input class="inputbox" type="text" name="slug" id="slug" size="40" maxlength="255" value="<?php 
echo $category->slug;
?>
" placeholder="<?php 
echo @text('Slug');
?>
" /> 
        </div>
        <?php 
echo @editor(array('name' => 'description', 'editor' => null, 'width' => '100%', 'height' => '300', 'cols' => '60', 'rows' => '20', 'buttons' => true, 'options' => array('theme' => 'simple', 'pagebreak', 'readmore')));
?>
    </div>

    <div class="grid_4">
        <div class="panel">
            <h3><?php 
echo @text('Publish');
?>
</h3>
            <table class="admintable">
                <tr>
                    <td class="key">
                        <?php 
echo @text('Published');
?>
开发者ID:JSWebdesign,项目名称:intranet-platform,代码行数:31,代码来源:form.php

示例5: array

?>
</label>
					<div class="controls">
						<?php 
echo @editor(array('name' => 'message_success', 'width' => '100%', 'buttons' => false, 'options' => array('theme' => 'simple', 'pagebreak', 'readmore')));
?>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label" for="name"><?php 
echo @text('ERROR_MESSAGE');
?>
</label>
					<div class="controls">
						<?php 
echo @editor(array('name' => 'message_error', 'width' => '100%', 'buttons' => false, 'options' => array('theme' => 'simple', 'pagebreak', 'readmore')));
?>
					</div>
				</div>
			</fieldset>
			<? if($form->cck_fieldset_id) : ?>
				<fieldset>
					<legend><?php 
echo @text('FIELDS');
?>
</legend>
					<?php 
echo @service('com://admin/cck.controller.element')->cck_fieldset_id($form->cck_fieldset_id)->row($form->id)->table('wufoo_forms')->getView()->assign('row', $form)->layout('list')->display();
?>
				</fieldset>
			<? endif; ?>
开发者ID:kedweber,项目名称:com_wufoo,代码行数:31,代码来源:form.php

示例6: htmlspecialchars

echo $_SERVER['REQUEST_URI'];
?>
" method="post">
  <input type="hidden" name="_IS_POST_BACK_" value=""/>
  <div style="margin:0 0 20px;">
    <input name="title" type="text" class="edit_textbox edit_view" style="font-size:18px;" placeholder="在此输入标题" value="<?php 
echo htmlspecialchars($page_title);
?>
"/>
  </div>
  <div style="margin-bottom:20px;">
    <?php 
require 'editor.php';
?>
    <?php 
editor($page_content);
?>
  </div>
  <div>
    <input name="path" type="text" class="edit_textbox" placeholder="在此修改固定链接" value="<?php 
echo htmlspecialchars($page_path);
?>
"/>
  </div>
  <div style="margin-bottom:20px;">
    时间:
    <select name="year">
      <option value=""></option>
<?php 
$year = substr($page_date, 0, 4);
for ($i = date("Y") - 3; $i <= date("Y") + 3; $i++) {
开发者ID:Tokinx,项目名称:McBlog,代码行数:31,代码来源:page-edit.php

示例7: array

</label>
			<div class="controls">
				<input id="article-title" class="input-block-level" name="title" value="" maxlength="255" type="text" required autofocus />
			</div>
		</div>
		
		<div class="control-group">
            <label class="control-label" for="article-description">
                <?php 
echo @text('COM-ARTICLES-ARTICLE-DESCRIPTION');
?>
            </label> 
            
            <div class="controls">
                <?php 
echo @editor(array('name' => 'description', 'content' => '', 'html' => array('maxlength' => '20000', 'cols' => '5', 'rows' => '5', 'class' => 'input-block-level', 'id' => 'article-description')));
?>
            </div>
        </div>
		
		<div class="control-group">
			<label class="control-label" for="article-excerpt"><?php 
echo @text('COM-ARTICLES-ARTICLE-EXCERPT');
?>
</label>
			<div class="controls">
				<input id="article-excerpt" class="input-block-level" name="excerpt" maxlength="250" type="text" required />
			</div>
		</div>
		
		<div class="control-group">
开发者ID:NicholasJohn16,项目名称:anahita,代码行数:31,代码来源:composer.php

示例8: editor

echo $article->filename;
?>
" />&nbsp;&nbsp;设置为http://开头,将链接到指定的地址。</td></tr>
<tr><td class="label">默认模板</td><td class="input"><input type="text" class="txt" name="articletemplets" value="{style}/<?php 
echo $article->templets;
?>
" /></td></tr>
<tr><td class="label">文章内容</td><td class="input">
<textarea id="contentform" rows="1" cols="1" style="width:580px;height:360px;" name="articlecontent"><?php 
echo $article->content;
?>
</textarea>
<!-- Load TinyMCE -->
<?php 
require_once "editor.php";
editor('kindeditor', 'articlecontent');
?>
<script type="text/javascript">
	$().ready(function() {
		var formoptions = {
			beforeSubmit: function() {
				$("#submitbtn").val("正在处理...");
				$("#submitbtn").attr("disabled","disabled");
			},
            success: function (msg) {
                alert(msg);
				var now = new Date();
				$("#pubdate").val(now.format("yyyy-mm-dd HH:MM:ss"));
				$("#submitbtn").val("提交");
				$("#submitbtn").attr("disabled","");
            }
开发者ID:Fengtalk,项目名称:yiqicms,代码行数:31,代码来源:article-edit.php

示例9: send_newsletter

 function send_newsletter($id)
 {
     $this->load->model('admin/settings_model');
     //$data['mail_settings']=$this->settings_model->get_email_settings();
     $mail_settings = $this->settings_model->get_email_settings();
     $this->form_validation->set_rules('subject', 'Subject', 'required|xss_clean|trim');
     $this->form_validation->set_rules('receiver_options', 'Receiver', 'required|xss_clean|trim');
     if ($this->input->post('receiver_options') == '1') {
         $this->form_validation->set_rules('receiver', 'Receiver Email', 'required|xss_clean|trim|valid_email|callback_validate_receiver');
     }
     $this->form_validation->set_rules('content', 'Content', 'required|xss_clean');
     editor();
     if ($this->form_validation->run() == FALSE) {
         $data['info'] = $this->newsletter_model->get_newsletter($id);
         $data['title'] = 'Send Newsletter';
         $data['main'] = 'admin/newsletter/send_newsletter';
         $this->load->view('admin/admin', $data);
     } else {
         if ($this->input->post('receiver_options') == '1') {
             $to = $this->input->post('receiver');
         } else {
             $receivers = $this->newsletter_model->get_receivers();
             //echo '<pre>',print_r($receivers,1),'</pre>';
             foreach ($receivers as $receiver) {
                 $emails[] = $receiver["email"];
             }
             // echo '<pre>',print_r($emails,1),'</pre>'; exit;
         }
         $mail_params = array("subject" => $this->input->post('subject'), "message" => $this->input->post('content'), "to" => $emails);
         if (send_email($mail_settings, $mail_params)) {
             $this->session->set_userdata('flash_msg_type', "success");
             $this->session->set_flashdata('flash_msg', 'Newsletter Sent Successfully.');
             redirect(ADMIN_PATH . '/newsletter/send_newsletter' . '/' . $id, 'refresh');
         } else {
             $this->session->set_userdata('flash_msg_type', "danger");
             $this->session->set_flashdata('flash_msg', "Newsletter Can't be sent. Please try again later. Click <a target='_blank' href='" . base_url('admin/error_log') . "'>here</a> to view the error log.");
             redirect(ADMIN_PATH . '/newsletter/send_newsletter' . '/' . $id, 'refresh');
         }
     }
 }
开发者ID:rajanpkr,项目名称:jobportal,代码行数:40,代码来源:newsletter.php

示例10: write

 function write()
 {
     $_m = model('UserLogs');
     $_l = model('UserLogCat');
     if ($_POST) {
         //如果没得到id,说明提交的是添加操作
         if (empty($_POST['title'])) {
             return Swoole\JS::js_back('标题不能为空!');
         }
         Swoole\Filter::safe($_POST['content']);
         $_POST['content'] = Swoole\Filter::remove_xss($_POST['content']);
         Swoole\Filter::addslash($_POST['content']);
         $blog['title'] = $_POST['title'];
         $blog['content'] = $_POST['content'];
         $blog['c_id'] = (int) $_POST['c_id'];
         if (isset($_POST['act']) and $_POST['act'] == 'draft') {
             $blog['dir'] = 1;
         } else {
             $blog['dir'] = 0;
         }
         if (!empty($_POST['id'])) {
             //如果得到id,说明提交的是修改的操作
             $id = (int) $_POST['id'];
             $det = $_m->get($id)->get();
             if ($det['uid'] != $this->uid) {
                 exit('access deny!not your blog!');
             }
             $_m->set($id, $blog);
             if (isset($_POST['autosave'])) {
                 return 1;
             } else {
                 return Swoole\JS::js_back('修改成功', -2);
             }
         } else {
             $blog['uid'] = $this->uid;
             $bid = $_m->put($blog);
             $_l->set($blog['c_id'], array('num' => '`num`+1'));
             if (isset($_POST['autosave'])) {
                 return $bid;
             } else {
                 return Swoole\JS::js_back('添加成功');
             }
         }
     } else {
         require_once WEBPATH . '/swoole_plugin/fckeditor/Swoole.plugin.php';
         $cat = $_l->getMap(array('uid' => $this->uid), 'name');
         if (empty($cat)) {
             $cat = array();
         }
         if (!empty($_GET['id'])) {
             $id = $_GET['id'];
             $det = $_m->get($id)->get();
             Swoole\Filter::deslash($det['content']);
             $form = Swoole\Form::select('c_id', $cat, $det['c_id']);
             $this->swoole->tpl->assign('det', $det);
             $editor = editor("content", $det['content'], 480, false, false, array('empty' => '请选择日志分类'));
         } else {
             $form = Swoole\Form::select('c_id', $cat, '', false, array('empty' => '请选择日志分类'));
             $editor = editor("content", '', 480, false);
         }
         $this->swoole->tpl->assign('form', $form);
         $this->swoole->tpl->assign('editor', $editor);
         $this->swoole->tpl->display();
     }
 }
开发者ID:netstao,项目名称:swoole.com,代码行数:65,代码来源:myblog.php

示例11: FCKeditor_OnComplete

    $mid = $_SESSION['valid_user'];
    $pw = $_SESSION['pw'];
    ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php 
    echo $page_title;
    ?>
 - BenFund</title>
<?php 
    include $ROOT . "/includes/head.php";
    ?>
<script type="text/javascript">womOn();</script>
<?php 
    @editor(simple);
    ?>
<script type="text/javascript">
function FCKeditor_OnComplete( elm1 ){
 tb_remove();
}
</script>
<script type="text/javascript" src="https://www.benfund.com/includes/js/thickbox.js"></script>
<link rel="stylesheet" href="https://www.benfund.com/includes/css/thickbox.css" type="text/css" media="screen" />
<?php 
    include $ROOT . '/functions/page_loading.php';
    ?>
</head>
<body>
<img src="https://www.benfund.com/images/elements/blank.gif" onload="pageloading();">
<div class="container">
开发者ID:centaurustech,项目名称:BenFund,代码行数:31,代码来源:template_manager_adv.php

示例12: date_default_timezone_set

<?php

date_default_timezone_set("asia/kuala_lumpur");
//require_once("./include/xhtml.php");
if ($_GET['do'] == "") {
    browser();
} else {
    if ($_GET['do'] == "editor") {
        if ($_GET['action'] == "") {
            editor();
        } else {
            if ($_GET['action'] == "load") {
                load($_GET['file']);
            } else {
                if ($_GET['action'] == "save") {
                    save($_GET['file']);
                } else {
                    if ($_GET['action'] == "download") {
                        download($_GET['file']);
                    }
                }
            }
        }
    } else {
        if ($_GET['do'] == "getfile") {
            if ($_GET['file'] == "zepto.min.js") {
                file_zepto();
            } else {
                if ($_GET['file'] == "codemirror-compressed.js") {
                    file_codemirror();
                } else {
开发者ID:razier,项目名称:Littlechief,代码行数:31,代码来源:littlechief.php

示例13: date

<tr><td class="label">SEO标题</td><td class="input"><input type="text" class="txt" name="productseotitle" /></td></tr>
<tr><td class="label">SEO关键词</td><td class="input"><input type="text" class="txt" name="productkeywords" /></td></tr>
<tr><td class="label">SEO描述</td><td class="input"><textarea class="txt" name="productdescription" style="width:200px;height:110px;"></textarea></td></tr>
<tr><td class="label">缩略图</td><td class="input"><div id="ptinfo"><input class="upfile txt" type="file" style="width:280px;" name="productthumb" /> 或者 <a href="javascript:void(0);" onclick="setinput();" style="color:#0000cc;">输入地址</a></div></td></tr>
<tr><td class="label">发布时间</td><td class="input"><input id="pubdate" type="text" class="txt" name="productadddate" value="<?php 
echo date("Y-m-d H:i:s");
?>
"  />&nbsp;&nbsp;定时发布产品,该时间为北京时间。</td></tr>
<tr><td class="label">自定义文件名</td><td class="input"><input type="text" class="txt" name="productfilename" />&nbsp;&nbsp;设置为http://开头,将链接到指定的地址。</td></tr>
<tr><td class="label">默认模板</td><td class="input"><input type="text" class="txt" name="producttemplets" value="{style}/product.tpl" /></td></tr>
<tr><td class="label">产品介绍</td><td class="input">
<textarea id="contentform" rows="1" cols="1" style="width:580px;height:360px;" name="productcontent"></textarea>
<!-- Load TinyMCE -->
<?php 
require_once "editor.php";
editor('kindeditor', 'productcontent');
?>
<script type="text/javascript">
	$().ready(function() {
		var formoptions = {
			beforeSubmit: function() {
				$("#submitbtn").val("正在处理...");
				$("#submitbtn").attr("disabled","disabled");
			},
            success: function (msg) {
                alert(msg);
				if(msg == "产品添加成功!")
				{
					$("#sform").resetForm();
					var now = new Date();
					$("#pubdate").val(now.format("yyyy-mm-dd HH:MM:ss"));
开发者ID:Fengtalk,项目名称:yiqicms,代码行数:31,代码来源:product-add.php

示例14: editor

			<td colspan="2"><input type="text" name="name" id="name" class="textinput" size="30" maxlength="80" value="<?php 
echo $EV['name'];
?>
">&nbsp;&nbsp;&nbsp;&nbsp;</td>
		</tr>
		<tr class="b" nowrap>
			<td>分类排序:</td>
			<td colspan="2"><input type="text" name="sortorder" id="sortorder" size="10" class="textinput" value="<?php 
echo $EV['sort_order'] ? $EV['sort_order'] : '0';
?>
">&nbsp;&nbsp;数值大的在前,默认为0不排序</td>
		</tr>
		<tr class="b" nowrap>
			<td>分类介绍:</td>
			<td colspan="2"><?php 
echo editor('content', $EV['content'], array('toolbar' => 'Default', 'height' => '200'));
?>
</td>
		</tr>
		<tr class="b" nowrap>
			<td>上传图片:</td>
			<!--<td width="1%"><input type="checkbox" id="isimgad" value="1" name="isimgad" onclick="isimg()"></td>-->
			<td colspan="2"><input type="file"  id="img" name="img">&nbsp;<?php 
if ($EV['img']) {
    ?>
<img src="/<?php 
    echo $EV['img'];
    ?>
"><?php 
}
?>
开发者ID:haseok86,项目名称:millkencode,代码行数:31,代码来源:category.php

示例15: array

" />
            <label for="slug"><?php 
echo @text('Slug');
?>
</label>
            <input class="inputbox" type="text" name="slug" id="slug" size="40" maxlength="255" value="<?php 
echo $taxonomy->slug;
?>
" placeholder="<?php 
echo @text('Slug');
?>
" />
        </div>

        <?php 
echo @editor(array('name' => 'description', 'id' => 'description', 'width' => '100%', 'height' => '391', 'cols' => '100', 'rows' => '20', 'buttons' => array('pagebreak', 'readmore')));
?>
    </div>
    <div id="panels" class="grid_4">
        <div class="panel">
            <h3><?php 
echo @text('Details');
?>
</h3>
            <table class="paramlist admintable">
                <tr>
                    <td class="paramlist_key">
                        <label><?php 
echo @text('Parent');
?>
</label>
开发者ID:kedweber,项目名称:com_taxonomy,代码行数:31,代码来源:form.php


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