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


PHP deditor函数代码示例

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


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

示例1: deditor

<?php 
}
?>
<tr>
<td class="tl">受理结果</td>
<td id="status">
<input type="radio" name="status" value="6"/> 将交易金额退还给买家<br/>
<input type="radio" name="status" value="4"/> 将交易金额支付给卖家 <span id="dstatus" class="f_red"></span>
</td>
</tr>
<tr>
<td class="tl">操作理由</td>
<td>
<textarea name="content" id="content" class="dsn"></textarea>
<?php 
echo deditor($moduleid, 'content', 'Simple', '100%', 200);
?>
<br/>请在和买卖双方沟通后谨慎填写,一经提交将不可更改 <span id="dcontent" class="f_red"></span>
</td>
</tr>
<tr>
<td class="tl">通知双方</td>
<td>
<input type="checkbox" name="msg" id="msg" value="1" onclick="Dn();" checked/><label for="msg"> 站内通知</label>
<input type="checkbox" name="eml" id="eml" value="1" onclick="Dn();"/><label for="eml"> 邮件通知</label>
<input type="checkbox" name="sms" id="sms" value="1" onclick="Dn();"/><label for="sms"> 短信通知</label>
<input type="checkbox" name="wec" id="wec" value="1" onclick="Dn();"/><label for="wec"> 微信通知</label>
</td>
</tr>
</table>
<div class="sbt"><input type="submit" name="submit" value=" 确 定 " class="btn"/>&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" value=" 返 回 " class="btn" onclick="history.back(-1);"/></div>
开发者ID:hiproz,项目名称:zhaotaoci.cc,代码行数:31,代码来源:order_refund.tpl.php

示例2: deditor

?>
image/img_delete.gif" width="12" height="12" title="删除"/></span></td>
	</tr>
	</table>
	<span id="dthumb" class="f_red"></span>
</td>
</tr>

<tr>
<td class="tl"><span class="f_red">*</span> 商品详情</td>
<td><textarea name="post[content]" id="content" class="dsn"><?php 
echo $content;
?>
</textarea>
<?php 
echo deditor($moduleid, 'content', $MOD['editor'], '100%', 350);
?>
<br/><span id="dcontent" class="f_red"></span>
</td>
</tr>
<?php 
if ($MOD['swfu'] && DT_EDITOR == 'fckeditor') {
    include DT_ROOT . '/api/swfupload/editor.inc.php';
}
?>
<tr>
<td class="tl"><span class="f_hid">*</span> 可选属性</td>
<td>
<table cellpadding="4" cellspacing="1" bgcolor="#FFFFFF">
<tr bgcolor="#EFF5FB" align="center">
<td>属性名称</td>
开发者ID:hiproz,项目名称:zhaotaoci.cc,代码行数:31,代码来源:edit.tpl.php

示例3: deditor

</tr>
<tr>
<td class="tl"><span class="f_hid">*</span> 链接至</td>
<td><input name="post[linkto]" type="text" id="linkto" size="50" value="<?php 
echo $linkto;
?>
"/></td>
</tr>
<tr>
<td class="tl"><span class="f_hid">*</span> 投票说明</td>
<td><textarea name="post[content]" id="content" class="dsn"><?php 
echo $content;
?>
</textarea>
<?php 
echo deditor($moduleid, 'content', 'Destoon', '98%', 350);
?>
<span id="dcontent" class="f_red"></span>
</td>
</tr>
<tr>
<td class="tl"><span class="f_red">*</span> 投票类别</td>
<td>
<input type="radio" name="post[choose]" value="0" id="choose_0"<?php 
if (!$choose) {
    echo ' checked';
}
?>
 onclick="Dh('vote_num');"/><label for="choose_0"> 单选</label>
<input type="radio" name="post[choose]" value="1" id="choose_1"<?php 
if ($choose) {
开发者ID:hcd2008,项目名称:destoon,代码行数:31,代码来源:vote_edit.tpl.php

示例4: deditor

</a></td>
</tr>
<tr>
<td class="tl"><span class="f_hid">*</span> 提交时间</td>
<td><?php 
echo $addtime;
?>
</td>
</tr>
<tr>
<td class="tl"><span class="f_hid">*</span> 问题回复</td>
<td><textarea name="reply" id="reply" class="dsn"><?php 
echo $reply;
?>
</textarea><?php 
echo deditor($moduleid, 'reply', 'Destoon', '98%', 300);
?>
</td>
</tr>
<tr>
<td class="tl"><span class="f_hid">*</span> 受理状态</td>
<td>
<input type="radio" name="status" value="0"<?php 
echo $status == 0 ? ' checked' : '';
?>
/> 待受理
<input type="radio" name="status" value="1"<?php 
echo $status == 1 ? ' checked' : '';
?>
/> 受理中
<input type="radio" name="status" value="2"<?php 
开发者ID:hcd2008,项目名称:destoon,代码行数:31,代码来源:ask_edit.tpl.php

示例5: deditor

<tr id="member" style="display:none;">
<td class="tl"><span class="f_red">*</span> 收件人</td>
<td><input type="text" size="50" name="message[touser]" id="touser" value="<?php 
echo $touser;
?>
"/>&nbsp;多个收件人请用空格分隔</td>
</tr>
<tr>
<td class="tl"><span class="f_red">*</span> 标题</td>
<td><input type="text" size="50" name="message[title]" id="title"/> <span id="dtitle" class="f_red"></span></td>
</tr>
<tr>
<td class="tl"><span class="f_red">*</span> 内容</td>
<td><textarea name="message[content]" id="content" class="dsn"></textarea>
<?php 
echo deditor($moduleid, 'content', 'Message', '100%', 350);
?>
<br/><span id="dcontent" class="f_red"></span>
</td>
</tr>
</tbody>
</table>
<div class="sbt"><input type="submit" name="submit" value=" 确 定 " class="btn">&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" name="reset" value=" 重 置 " class="btn"/></div>
</form>
<?php 
load('clear.js');
?>
<script type="text/javascript">
<?php 
if ($touser) {
    ?>
开发者ID:hiproz,项目名称:zhaotaoci.cc,代码行数:31,代码来源:message_send.tpl.php

示例6: deditor

</tr>
<tr>
<td class="tl"><span class="f_hid">*</span> 采购的产品(服务)</td>
<td><input type="text" size="50" name="member[buy]" id="buy" value="<?php 
echo $buy;
?>
"/> <span class="f_gray">多个产品或服务请用'|'号隔开</span></td>
</tr>
<tr>
<td class="tl"><span class="f_red">*</span> 公司介绍</td>
<td><textarea name="member[introduce]" id="introduce" class="dsn"><?php 
echo $introduce;
?>
</textarea>
<?php 
echo deditor($moduleid, 'introduce', $MOD['editor'], '95%', 300);
?>
<br/><span id="dintroduce" class="f_red"></span></td>
</tr>
<?php 
echo $CFD ? fields_html('<td class="tl">', '<td>', $user, $CFD) : '';
?>
</table>
<div class="tt">资料认证</div>
<table cellpadding="2" cellspacing="1" class="tb">
<tr>
<td class="tl"><span class="f_hid">*</span> 企业资料是否通过认证</td>
<td>
<input type="radio" name="member[validated]" value="1" <?php 
if ($validated) {
    echo 'checked';
开发者ID:hcd2008,项目名称:destoon,代码行数:31,代码来源:member_edit.tpl.php

示例7: deditor

echo $linkurl;
?>
"/> <span id="dlinkurl" class="f_red"></span></td>
</tr>
<tbody id="basic" style="display:<?php 
echo $islink ? 'none' : '';
?>
;">
<tr>
<td class="tl"><span class="f_hid">*</span> 单页内容</td>
<td><textarea name="post[content]" id="content" class="dsn"><?php 
echo $content;
?>
</textarea>
<?php 
echo deditor($moduleid, 'content', 'Default', '98%', 350);
?>
<span id="dcontent" class="f_red"></span>
</td>
</tr>
<tr>
<td class="tl"><span class="f_hid">*</span> 保存路径</td>
<td><input name="post[filepath]" type="text" size="20" value="<?php 
echo $filepath;
?>
"/> <span class="f_gray">如不填写则生成在网站根目录,否则请以‘/’结尾,例如‘about/’</span></td>
</tr>
<tr>
<td class="tl"><span class="f_hid">*</span> 文件名称</td>
<td><input name="post[filename]" type="text" size="20" value="<?php 
echo $filename;
开发者ID:hcd2008,项目名称:destoon,代码行数:31,代码来源:webpage_edit.tpl.php

示例8: fields_show


//.........这里部分代码省略.........
    $v = $FD[$itemid];
    $value = $v['default_value'];
    if (isset($values[$v['name']])) {
        $value = $values[$v['name']];
    } else {
        if ($v['default_value']) {
            eval('$value = "' . $v['default_value'] . '";');
        }
    }
    if ($v['html'] == 'hidden') {
        $html .= '<input type="hidden" name="post_fields[' . $v['name'] . ']" id="' . $v['name'] . '" value="' . $value . '" ' . $v['addition'] . '/>';
    } else {
        $html .= '<tr>' . $left;
        if ($v['input_limit']) {
            $html .= '<span class="f_red">*</span> ';
        } else {
            $html .= defined('DT_ADMIN') ? '<span class="f_hid">*</span> ' : '';
        }
        $html .= $v['title'];
        $html .= '</td>';
        $html .= $right;
        switch ($v['html']) {
            case 'text':
                $html .= '<input type="text" name="post_fields[' . $v['name'] . ']" id="' . $v['name'] . '" value="' . $value . '" ' . $v['addition'] . '/> <span class="f_red" id="d' . $v['name'] . '"></span>';
                break;
            case 'textarea':
                $html .= '<textarea name="post_fields[' . $v['name'] . ']" id="' . $v['name'] . '" ' . $v['addition'] . '>' . $value . '</textarea> <span class="f_red" id="d' . $v['name'] . '"></span>';
                break;
            case 'select':
                if ($v['option_value']) {
                    $html .= '<select name="post_fields[' . $v['name'] . ']" id="' . $v['name'] . '" ' . $v['addition'] . '><option value="">' . $L['choose'] . '</option>';
                    $rows = explode("*", $v['option_value']);
                    foreach ($rows as $row) {
                        if ($row) {
                            $cols = explode("|", trim($row));
                            $html .= '<option value="' . $cols[0] . '"' . ($cols[0] == $value ? ' selected' : '') . '>' . $cols[1] . '</option>';
                        }
                    }
                    $html .= '</select> <span class="f_red" id="d' . $v['name'] . '"></span>';
                }
                break;
            case 'radio':
                if ($v['option_value']) {
                    $html .= '<span id="' . $v['name'] . '">';
                    $rows = explode("*", $v['option_value']);
                    foreach ($rows as $rw => $row) {
                        if ($row) {
                            $cols = explode("|", trim($row));
                            $html .= '<input type="radio" name="post_fields[' . $v['name'] . ']" value="' . $cols[0] . '" id="' . $v['name'] . '_' . $rw . '"' . ($cols[0] == $value ? ' checked' : '') . '> ' . $cols[1] . '&nbsp;&nbsp;&nbsp;';
                        }
                    }
                    $html .= '</span> <span class="f_red" id="d' . $v['name'] . '"></span>';
                }
                break;
            case 'checkbox':
                if ($v['option_value']) {
                    $html .= '<span id="' . $v['name'] . '">';
                    $value = explode(',', $value);
                    $rows = explode("*", $v['option_value']);
                    foreach ($rows as $rw => $row) {
                        if ($row) {
                            $cols = explode("|", trim($row));
                            $html .= '<input type="checkbox" name="post_fields[' . $v['name'] . '][]" value="' . $cols[0] . '" id="' . $v['name'] . '_' . $rw . '"' . (in_array($cols[0], $value) ? ' checked' : '') . '> ' . $cols[1] . '&nbsp;&nbsp;&nbsp;';
                        }
                    }
                    $html .= '</span> <span class="f_red" id="d' . $v['name'] . '"></span>';
                }
                break;
            case 'date':
                $html .= dcalendar('post_fields[' . $v['name'] . ']', $value);
                $html .= ' <span class="f_red" id="post_dfields' . $v['name'] . '"></span>';
                break;
            case 'thumb':
                $html .= '<input name="post_fields[' . $v['name'] . ']" type="text" size="60" id="' . $v['name'] . '" value="' . $value . '" ' . $v['addition'] . '/>&nbsp;&nbsp;<span onclick="Dthumb(' . $moduleid . ',' . $v['width'] . ',' . $v['height'] . ', Dd(\'' . $v['name'] . '\').value,\'' . (defined('DT_ADMIN') ? '' : '1') . '\',\'' . $v['name'] . '\');" class="jt">[' . $L['upload'] . ']</span>&nbsp;&nbsp;<span onclick="_preview(Dd(\'' . $v['name'] . '\').value);" class="jt">[' . $L['preview'] . ']</span>&nbsp;&nbsp;<span onclick="Dd(\'' . $v['name'] . '\').value=\'\';" class="jt">[' . $L['delete'] . ']</span>';
                $html .= ' <span class="f_red" id="d' . $v['name'] . '"></span>';
                break;
            case 'file':
                $html .= '<input name="post_fields[' . $v['name'] . ']" type="text" size="60" id="' . $v['name'] . '" value="' . $value . '" ' . $v['addition'] . '/>&nbsp;&nbsp;<span onclick="Dfile(' . $moduleid . ', Dd(\'' . $v['name'] . '\').value, \'' . $v['name'] . '\');" class="jt">[' . $L['upload'] . ']</span>&nbsp;&nbsp;<span onclick="if(Dd(\'' . $v['name'] . '\').value) window.open(Dd(\'' . $v['name'] . '\').value);" class="jt">[' . $L['preview'] . ']</span>';
                $html .= ' <span class="f_red" id="d' . $v['name'] . '"></span>&nbsp;&nbsp;<span onclick="Dd(\'' . $v['name'] . '\').value=\'\';" class="jt">[' . $L['delete'] . ']</span>';
                $html .= ' <span class="f_red" id="d' . $v['name'] . '"></span>';
                break;
            case 'editor':
                $toolbar = isset($group_editor) ? $group_editor : 'Destoon';
                if (DT_EDITOR == 'fckeditor') {
                    $html .= '<textarea name="post_fields[' . $v['name'] . ']" id="' . $v['name'] . '" style="display:none">' . $value . '</textarea><iframe id="' . $v['name'] . '___Frame" src="' . $MODULE[2]['linkurl'] . 'editor/fckeditor/editor/fckeditor.html?InstanceName=' . $v['name'] . '&Toolbar=' . $toolbar . '" width="' . $v['width'] . '" height="' . $v['height'] . '" frameborder="no" scrolling="no"></iframe>';
                    $html .= '<br/><span class="f_red" id="d' . $v['name'] . '"></span>';
                } else {
                    $html .= '<textarea name="post_fields[' . $v['name'] . ']" id="' . $v['name'] . '" style="display:none">' . $value . '</textarea>' . deditor($moduleid, $v['name'], $toolbar, $v['width'], $v['height']) . '<span class="f_red" id="d' . $v['name'] . '"></span>';
                }
                break;
            case 'area':
                $html .= ajax_area_select('post_fields[' . $v['name'] . ']', $GLOBALS['L']['choose'], $value);
                $html .= ' <span class="f_red" id="d' . $v['name'] . '"></span>';
                break;
        }
        $html .= $v['note'];
        $html .= '</td></tr>';
    }
    return $html;
}
开发者ID:hiproz,项目名称:zhaotaoci.cc,代码行数:101,代码来源:fields.func.php


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