當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。