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


PHP cmsCore::insertEditor方法代码示例

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


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

示例1:

?>
 value="0" /> <?php 
echo $_LANG['NO'];
?>
                </label>
                <div style="clear:both;"></div>
                <div class="help-block"><?php 
echo $_LANG['AD_PUBLISH_CLUB_HINT'];
?>
</div>
            </div>
        </div>
        
        <div class="form-group">
            <?php 
cmsCore::insertEditor('content', $mod['content'], '250', '100%');
?>
        </div>
    </div>
    <div>
        <input type="submit" class="btn btn-primary" name="add_mod" value="<?php 
echo $_LANG['SAVE'];
?>
" />
        <input type="button" class="btn btn-default" name="back" value="<?php 
echo $_LANG['CANCEL'];
?>
" onclick="window.location.href='index.php?view=components';"/>
        
        <input type="hidden" name="opt" value="update" />
        <input type="hidden" name="item_id" value="<?php 
开发者ID:CMS-RuDi,项目名称:CMS-RuDi,代码行数:31,代码来源:comments_edit.php

示例2: fenom_function_wysiwyg

function fenom_function_wysiwyg($params)
{
    ob_start();
    cmsCore::insertEditor($params['name'], $params['value'], $params['height'], $params['width'], !empty($params['toolbar']) ? $params['toolbar'] : 'full');
    return ob_get_clean();
}
开发者ID:myinstantcms,项目名称:dev-component,代码行数:6,代码来源:function.wysiwyg.php

示例3:

.
            </div>
            <div class="params-buttons">
                <input type="submit" name="save" value="<?php 
            echo $_LANG['SAVE'];
            ?>
" />
            </div>
        <?php 
        } else {
            ?>
            <input type="hidden" name="csrf_token" value="<?php 
            echo cmsUser::getCsrfToken();
            ?>
" />
            <?php 
            cmsCore::insertEditor('content', $mod['content'], '500', '99%');
            ?>
            <div class="params-buttons">
               <input type="submit" name="save" value="<?php 
            echo $_LANG['SAVE'];
            ?>
" />
            </div>
        <?php 
        }
    }
}
?>
    </div>
</form>
开发者ID:CMS-RuDi,项目名称:CMS-RuDi,代码行数:31,代码来源:modconfig.php

示例4:

 value="0" /> <?php 
echo $_LANG['NO'];
?>
                </label>
            </div>
        </div>
<?php 
if (cmsCore::getArrVal($mod, 'user', 1) == 1) {
    ?>
        <div class="form-group">
            <label><?php 
    echo $_LANG['AD_DESCR_CATEGORY'];
    ?>
:</label>
            <?php 
    echo cmsCore::insertEditor('description', $mod['description'], '260', '605');
    ?>
        </div>
<?php 
}
?>
    </div>
    
    <div>
        <input type="submit" class="btn btn-primary" name="add_mod" value="<?php 
echo $_LANG['SAVE'];
?>
" />
        <input type="button" class="btn btn-default" name="back3" value="<?php 
echo $_LANG['CANCEL'];
?>
开发者ID:CMS-RuDi,项目名称:CMS-RuDi,代码行数:31,代码来源:faq_add_cat.php

示例5: renderHtml

 private function renderHtml($param)
 {
     ob_start();
     cmsCore::insertEditor($param['name'], $param['value'], $param['height'], $param['width'], $param['toolbar']);
     return ob_get_clean();
 }
开发者ID:CMS-RuDi,项目名称:CMS-RuDi,代码行数:6,代码来源:formgen.class.php

示例6: if

        </tr>
        <?php } ?>
        <?php if ($do == 'editarticle') { ?>
            <input type="hidden" name="category_id" value="<?php echo $mod['category_id']; ?>" />
        <?php } ?>
    </table>
    </div>

    <table width="100%" border="0">
            <tr>
                <td>
                    <h3><?php echo $_LANG['ARTICLE_ANNOUNCE']; ?></h3>
                    <div><?php cmsCore::insertEditor('description', $mod['description'], 200, '100%'); ?></div>

                    <h3><?php echo $_LANG['ARTICLE_TEXT']; ?></h3>
                    <div><?php cmsCore::insertEditor('content', $mod['content'], 450, '100%'); ?></div>
                </td>
            </tr>
    </table>

    <?php if ($cfg['img_on'] && $ajaxUploader) { ?>
    <div class="bar" style="padding:10px 10px;margin-top: 10px;">
    <table width="100%" cellspacing="5" cellpadding="3" class="proptable">
        <tr valign="top">
            <td width="230" style="padding-top:8px">
                <strong><?php echo $_LANG['IMAGES']; ?>:</strong>
                <div class="hinttext">
                    <?php echo $_LANG['IMAGES_INSERT_HINT_TEXT']; ?>
                </div>
            </td>
            <td>
开发者ID:Acsac,项目名称:CMS-RuDi,代码行数:31,代码来源:com_content_edit.php

示例7:

         </tr>
         <tr>
             <td width="48">
                 <div style="padding:2px; border: solid 1px silver">
                     <img src="/images/clubs/small/<?php echo $club['f_imageurl']; ?>" border="0" alt="<?php echo $this->escape($club['title']); ?>"/>
                 </div>
             </td>
             <td width="120">
                 <label><?php echo $_LANG['UPLOAD_LOGO']; ?>:</label>
             </td>
             <td>
                 <input class="text-input" name="picture" type="file" id="picture" style="width:270px;" />
             </td>
         </tr>
     </table>
     <?php cmsCore::insertEditor('description', $club['description'], 350, '100%'); ?>
 </div>
 
 <div id="moders">
     <table width="500" border="0" cellspacing="0" cellpadding="10" id="multiuserscfg">
         <tr>
             <td colspan="3">
                 <div class="hint"><?php echo $_LANG['MODERATE_TEXT']; ?></div>
             </td>
         </tr>
         <tr>
             <td align="center" valign="top">
                 <p><strong><?php echo $_LANG['CLUB_MODERATORS']; ?>: </strong></p>
                 <select class="text-input" name="moderslist[]" size="10" multiple id="moderslist" style="width:200px">
                     <?php echo $moders_list; ?>
                 </select>
开发者ID:Acsac,项目名称:CMS-RuDi,代码行数:31,代码来源:com_clubs_config.php

示例8:

?>
:</label>
                <select id="user_id" class="form-control" name="user_id">
                    <?php 
echo $users_opt;
?>
                </select>
            </div>
            
            <div class="form-group">
                <label><?php 
echo $_LANG['AD_FORM_EXPLANT'];
?>
:</label>
                <?php 
cmsCore::insertEditor('description', $mod['description'], '280', '100%');
?>
            </div>
            
            <?php 
if ($opt == 'add') {
    echo '<p><b>' . $_LANG['AD_NOTE'] . ': </b>' . $_LANG['AD_AFTER_CREATE'] . '. </p>';
} else {
    echo '<p><b>' . $_LANG['AD_NOTE'] . ': </b>' . $_LANG['AD_TO_INSERT'];
}
?>

            <div>
                <input type="submit" class="btn btn-primary" name="add_mod" value="<?php 
echo $_LANG['SAVE'];
?>
开发者ID:CMS-RuDi,项目名称:CMS-RuDi,代码行数:31,代码来源:forms_add.php

示例9:

echo $_LANG['AD_SECTION'];
?>
</option>
                        <?php 
echo $category_opt;
?>
                    </select>
                </div>

                <div class="form-group">
                    <label><?php 
echo $_LANG['AD_SECTION_DESCRIPT'];
?>
</label>
                    <?php 
cmsCore::insertEditor('description', cmsCore::getArrVal($mod, 'description', ''), '250', '100%');
?>
                </div>
            </td>

            <!-- боковая -->
            <td valign="top" style="width:500px;">
                <div class="uitabs">
                    <ul id="tabs">
                        <li><a href="#upr_publish"><span><?php 
echo $_LANG['AD_TAB_PUBLISH'];
?>
</span></a></li>
                        <li><a href="#upr_seo"><span>SEO</span></a></li>
                        <li><a href="#upr_editors"><span><?php 
echo $_LANG['AD_EDITORS'];
开发者ID:CMS-RuDi,项目名称:CMS-RuDi,代码行数:31,代码来源:cats_edit.php

示例10:

echo $_LANG['AD_TEXT_QUESTION'];
?>
:</label>
            <textarea id="quest" class="form-control" name="quest" rows="6"><?php 
echo cmsCore::getArrVal($mod, 'quest', '');
?>
</textarea>
        </div>
        
        <div class="form-group">
            <label><?php 
echo $_LANG['AD_ANSWER_QUESTION'];
?>
:</label>
            <?php 
cmsCore::insertEditor('answer', $mod['answer'], '300', '605');
?>
        </div>
    </div>

    <div>
        <input type="submit" class="btn btn-primary" name="add_mod" value="<?php 
echo $_LANG['SAVE'];
?>
" />
        <input type="button" class="btn btn-default" name="back2" value="<?php 
echo $_LANG['CANCEL'];
?>
" onclick="window.location.href='index.php?view=components&do=config&link=faq';" />
        
        <input type="hidden" id="do" name="opt" value="<?php 
开发者ID:CMS-RuDi,项目名称:CMS-RuDi,代码行数:31,代码来源:faq_add.php

示例11: htmlspecialchars

<form action="<?php 
echo $action;
?>
" method="post" target="_self" id="lang_form">
    <input type="hidden" name="csrf_token" value="<?php 
echo cmsUser::getCsrfToken();
?>
" />
    <input type="hidden" name="save" value="1" />
    <?php 
if ($type == 'html') {
    ?>
        <?php 
    cmsCore::insertEditor('field_data', $value, '500', '99%');
    ?>
    <?php 
} else {
    ?>
    <input type="text" style="width: 99%" placeholder="<?php 
    echo $_LANG['AD_HINT_DEFAULT'];
    ?>
" name="field_data" value="<?php 
    echo htmlspecialchars($value);
    ?>
" />
    <?php 
}
?>
    <div class="lang_submit">
        <input type="submit" name="save" class="button" value="<?php 
echo $_LANG['SAVE'];
开发者ID:deltas1,项目名称:icms1,代码行数:31,代码来源:translations.php

示例12: foreach

     </tr>
 <?php foreach($fields as $field) { ?>
     <tr>
         <?php if ($field['ftype'] == 'link' || $field.ftype == 'text') { ?>
         <td valign="top">
             <strong><?php echo $field['title']; ?>:</strong>
             <?php if ($field['ftype'] == 'link') { ?> <br/><span class="hint"><?php echo $_LANG['TYPE_LINK']; ?></span><?php } ?>
             <?php if ($field['makelink']) { ?> <br/><span class="hint"><?php echo $_LANG['COMMA_SEPARATE']; ?></span><?php } ?>
         </td>
         <td>
             <input style="width:300px" name="fdata[<?php echo $id; ?>]" type="text" class="text-input" value="<?php if ($field['value']) { ?><?php echo $this->escape($field['value']); ?><?php } ?>"/>
         </td>
         <?php } else { ?>
             <td valign="top"><strong><?php echo $field['title']; ?>:</strong></td>
             <td>
                 <?php cmsCore::insertEditor('fdata['. $id .']', $field['value'], 300, '98%'); ?>
             </td>
         <?php } ?>
     </tr>
 <?php } ?>
 <?php if ($is_admin) { ?>
     <tr>
         <td width="">
             <strong><?php echo $_LANG['SEO_KEYWORDS']; ?>:</strong><br/>
             <span class="hint"><?php echo $_LANG['SEO_KEYWORDS_HINT']; ?></span>
         </td>
         <td>
             <input type="text" name="meta_keys" class="text-input" value="<?php echo $this->escape($item['meta_keys']); ?>" style="width:300px"/>
         </td>
     </tr>
     <tr>
开发者ID:Acsac,项目名称:CMS-RuDi,代码行数:31,代码来源:com_catalog_add.php

示例13: cmsSmartyWysiwyg

function cmsSmartyWysiwyg($params)
{
    ob_start();
    cmsCore::insertEditor($params['name'], $params['value'], $params['height'], $params['width']);
    return ob_get_clean();
}
开发者ID:4uva4ek,项目名称:svato,代码行数:6,代码来源:smartyTpl.php

示例14:

?>
">
                        <input type="radio" name="send_greetmsg" <?php 
if (!$cfg['send_greetmsg']) {
    echo 'checked="checked"';
}
?>
 value="0" /> <?php 
echo $_LANG['NO'];
?>
                    </label>
                </div>
            </div>
            <div class="form-group">
                <?php 
cmsCore::insertEditor('greetmsg', $cfg['greetmsg'], '300', '600');
?>
            </div>
        </div>
    </div>

    <div>
        <input type="hidden" name="opt" value="saveconfig" />
        
        <input type="submit" class="btn btn-primary" name="save" value="<?php 
echo $_LANG['SAVE'];
?>
" />
        <input type="button" class="btn btn-default" name="back" value="<?php 
echo $_LANG['CANCEL'];
?>
开发者ID:CMS-RuDi,项目名称:CMS-RuDi,代码行数:31,代码来源:registration_config.php


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