• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP template_control_richedit函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: template_announcement

function template_announcement()
{
    global $context, $scripturl, $txt, $settings;
    echo '
	<div id="admincenter">
		<div class="cat_bar">
			<h3 class="catbg">
				<img alt="" style="vertical-align: middle;" width="16" height="16" border="0" src="' . $settings['default_images_url'] . '/ultimate-portal/information.png"/>
					', $txt['ultport_admin_announcements_title'], '
			</h3>
		</div>
		<form name="newsform" method="post" action="', $scripturl, '?action=adminportal;area=up-news;sa=announcements" accept-charset="', $context['character_set'], '">											
			<div class="windowbg2">
				<span class="topslice"><span></span></span>
				<div class="content">
					', $txt['ultport_global_annoucements'], '
					<div id="bbcBox_message"></div>
					<div id="smileyBox_message"></div>
					', template_control_richedit($context['post_box_name'], 'smileyBox_message', 'bbcBox_message'), '
				</div>
				<div class="righttext">
					<input type="hidden" name="save" value="ok" />
					<input type="hidden" name="sc" value="', $context['session_id'], '" />
					<input type="submit" name="', $txt['ultport_button_save'], '" value="', $txt['ultport_button_save'], '" />	
				</div>
			</div>
		</form>
	</div>';
}
开发者ID:4kstore,项目名称:UltimatePortal-0.4,代码行数:29,代码来源:UltimatePortalModules.template.php


示例2: pmxc_AdmBlock_content

    /**
     * AdmBlock_content().
     * Open a the richtext editor, to create or edit the content.
     * Returns the AdmBlock_settings
     */
    function pmxc_AdmBlock_content()
    {
        global $context, $txt;
        // show the content area
        echo '
					<td valign="top" colspan="2" style="padding:4px;">
						<div class="cat_bar catbg_grid" style="margin-right:1px;">
							<h4 class="catbg catbg_grid"><span class="cat_left_title">' . $txt['pmx_edit_content'] . '</span></h4>
						</div>
						<input type="hidden" id="smileyset" value="PortaMx" />
						<div id="bbcBox_message"></div>
						<div id="smileyBox_message"></div>
						<div style="padding-right:3px;margin-top:-10px;margin-right:-9px;">', template_control_richedit($context['pmx']['editorID'], 'smileyBox_message', 'bbcBox_message'), '</div>
					</td>
				</tr>
				<tr>';
        // return the default settings
        return $this->pmxc_AdmBlock_settings();
    }
开发者ID:thunderamur,项目名称:PortaMx-Virgo-2.0-Beta-2,代码行数:24,代码来源:bbc_script_adm.php


示例3: template_main


//.........这里部分代码省略.........
									<label for="poll_guest_vote">', $txt['poll_guest_vote'], ':</label>
								</dt>
								<dd>
									<input type="checkbox" id="poll_guest_vote" name="poll_guest_vote"', !empty($context['poll_options']['guest_vote']) ? ' checked="checked"' : '', ' class="input_check" />
								</dd>';
        }
        echo '
								<dt>
									', $txt['poll_results_visibility'], ':
								</dt>
								<dd>
									<input type="radio" name="poll_hide" id="poll_results_anyone" value="0"', $context['poll_options']['hide'] == 0 ? ' checked="checked"' : '', ' class="input_radio" /> <label for="poll_results_anyone">', $txt['poll_results_anyone'], '</label><br />
									<input type="radio" name="poll_hide" id="poll_results_voted" value="1"', $context['poll_options']['hide'] == 1 ? ' checked="checked"' : '', ' class="input_radio" /> <label for="poll_results_voted">', $txt['poll_results_voted'], '</label><br />
									<input type="radio" name="poll_hide" id="poll_results_expire" value="2"', $context['poll_options']['hide'] == 2 ? ' checked="checked"' : '', empty($context['poll_options']['expire']) ? 'disabled="disabled"' : '', ' class="input_radio" /> <label for="poll_results_expire">', $txt['poll_results_after'], '</label>
								</dd>
							</dl>
						</fieldset>
					</div>';
    }
    echo '		<div class="bwgrid">
						<div class="bwcell16">';
    // Show the actual posting area...
    if ($context['show_bbc']) {
        echo '
					<div id="bbcBox_message"></div>';
    }
    // What about smileys?
    if (!empty($context['smileys']['postform']) || !empty($context['smileys']['popup'])) {
        echo '
					<div id="smileyBox_message"></div>';
    }
    echo '			</div>
						<div class="bwcell16">
					', template_control_richedit($context['post_box_name'], 'smileyBox_message', 'bbcBox_message'), '<br>
						</div>
					</div>
					<div class="bwgrid">
						<div class="bwcell4"><div class="inner_right"> ';
    // If this message has been edited in the past - display when it was.
    if (isset($context['last_modified'])) {
        echo '
					<div class="padding smalltext">
						<strong>', $txt['last_edit'], ':</strong>
						', $context['last_modified'], '
					</div>';
    }
    echo '
						</div></div>
						<div class="bwcell12">';
    // If the admin has enabled the hiding of the additional options - show a link and image for it.
    if (!empty($settings['additional_options_collapsable'])) {
        echo '
					<div id="postAdditionalOptionsHeader">
						<img src="', $settings['images_url'], '/collapse.gif" alt="-" id="postMoreExpand" style="display: none;" /> <strong><a href="#" id="postMoreExpandLink">', $txt['post_additionalopt'], '</a></strong>
					</div>';
    }
    // Display the check boxes for all the standard options - if they are available to the user!
    echo '
					<div id="postMoreOptions" class="smalltext">
						<ul class="post_options nolist">
							', $context['can_notify'] ? '<li><input type="hidden" name="notify" value="0" /><label for="check_notify"><input type="checkbox" name="notify" id="check_notify"' . ($context['notify'] || !empty($options['auto_notify']) ? ' checked="checked"' : '') . ' value="1" class="input_check" /> ' . $txt['notify_replies'] . '</label></li>' : '', '
							', $context['can_lock'] ? '<li><input type="hidden" name="lock" value="0" /><label for="check_lock"><input type="checkbox" name="lock" id="check_lock"' . ($context['locked'] ? ' checked="checked"' : '') . ' value="1" class="input_check" /> ' . $txt['lock_topic'] . '</label></li>' : '', '
							<li><label for="check_back"><input type="checkbox" name="goback" id="check_back"' . ($context['back_to_topic'] || !empty($options['return_to_post']) ? ' checked="checked"' : '') . ' value="1" class="input_check" /> ' . $txt['back_to_topic'] . '</label></li>
							', $context['can_sticky'] ? '<li><input type="hidden" name="sticky" value="0" /><label for="check_sticky"><input type="checkbox" name="sticky" id="check_sticky"' . ($context['sticky'] ? ' checked="checked"' : '') . ' value="1" class="input_check" /> ' . $txt['sticky_after'] . '</label></li>' : '', '
							<li><label for="check_smileys"><input type="checkbox" name="ns" id="check_smileys"', $context['use_smileys'] ? '' : ' checked="checked"', ' value="NS" class="input_check" /> ', $txt['dont_use_smileys'], '</label></li>', '
							', $context['can_move'] ? '<li><input type="hidden" name="move" value="0" /><label for="check_move"><input type="checkbox" name="move" id="check_move" value="1" class="input_check" ' . (!empty($context['move']) ? 'checked="checked" ' : '') . '/> ' . $txt['move_after2'] . '</label></li>' : '', '
开发者ID:Bloc67,项目名称:ShelfLife,代码行数:67,代码来源:Post.template.php


示例4: template_main


//.........这里部分代码省略.........
							<input type="hidden" name="goback" value="', empty($options['return_to_post']) ? '0' : '1', '" />
							<input type="hidden" name="last_msg" value="', $context['topic_last_message'], '" />
							<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
							<input type="hidden" name="seqnum" value="', $context['form_sequence_number'], '" />';
        // Guests just need more.
        if ($context['user']['is_guest']) {
            echo '
							<strong>', $txt['name'], ':</strong> <input type="text" name="guestname" value="', $context['name'], '" size="25" class="input_text" tabindex="', $context['tabindex']++, '" />
							<strong>', $txt['email'], ':</strong> <input type="text" name="email" value="', $context['email'], '" size="25" class="input_text" tabindex="', $context['tabindex']++, '" /><br />';
        }
        // Is visual verification enabled?
        if ($context['require_verification']) {
            echo '
							<strong>', $txt['verification'], ':</strong>', template_control_verification($context['visual_verification_id'], 'quick_reply'), '<br />';
        }
        // Using the full editor
        if (empty($options['use_editor_quick_reply'])) {
            echo '
							<div class="quickReplyContent">
								<textarea cols="600" rows="7" name="message" tabindex="', $context['tabindex']++, '"></textarea>
							</div>';
        } else {
            // Show the actual posting area...
            if ($context['show_bbc']) {
                echo '
							<div id="bbcBox_message"></div>';
            }
            // What about smileys?
            if (!empty($context['smileys']['postform']) || !empty($context['smileys']['popup'])) {
                echo '
							<div id="smileyBox_message"></div>';
            }
            echo '
							', template_control_richedit($context['post_box_name'], 'smileyBox_message', 'bbcBox_message'), '
							<script><!-- // --><![CDATA[
								var post_box_name = "', $context['post_box_name'], '";
							// ]]></script>';
        }
        echo '
							<div class="padding">
								<input type="submit" name="post" value="', $txt['post'], '" onclick="return submitThisOnce(this);" accesskey="s" tabindex="', $context['tabindex']++, '" class="button_submit" />
								<input type="submit" name="preview" value="', $txt['preview'], '" onclick="return submitThisOnce(this);" accesskey="p" tabindex="', $context['tabindex']++, '" class="button_submit" />';
        if ($context['show_spellchecking']) {
            echo '
								<input type="button" value="', $txt['spell_check'], '" onclick="spellCheck(\'postmodify\', \'message\', ', empty($options['use_editor_quick_reply']) ? 'false' : 'true', ')" tabindex="', $context['tabindex']++, '" class="button_submit" />';
        }
        if ($context['drafts_save'] && !empty($options['display_quick_reply'])) {
            echo '
								<input type="submit" name="save_draft" value="', $txt['draft_save'], '" onclick="return confirm(' . JavaScriptEscape($txt['draft_save_note']) . ') && submitThisOnce(this);" accesskey="d" tabindex="', $context['tabindex']++, '" class="button_submit" />
								<input type="hidden" id="id_draft" name="id_draft" value="', empty($context['id_draft']) ? 0 : $context['id_draft'], '" />';
            if (!empty($context['drafts_autosave']) && !empty($options['drafts_autosave_enabled'])) {
                echo '
								<div class="clear righttext padding"><span id="throbber" style="display:none"><img src="' . $settings['images_url'] . '/loading_sm.gif" alt="" class="centericon" />&nbsp;</span><span id="draft_lastautosave"></span></div>';
            }
        }
        echo '
							</div>
						</form>
					</div>
				</div>
			</div>';
    } else {
        echo '
		<br class="clear" />';
    }
    // draft autosave available and the user has it enabled?
开发者ID:ahrasis,项目名称:themes,代码行数:67,代码来源:Display.template.php


示例5: template_send


//.........这里部分代码省略.........
						<div id="to_item_list_container"></div>';
    echo '
					</dd>';
    // This BCC row will be hidden by default if JavaScript is enabled.
    echo '
					<dt id="bcc_div">
						<span', isset($context['post_error']['no_to']) || isset($context['post_error']['bad_bcc']) ? ' class="error"' : '', '>', $txt['pm_bcc'], ':</span>
					</dt>
					<dd id="bcc_div2">
						<input type="text" name="bcc" id="bcc_control" value="', $context['bcc_value'], '" tabindex="', $context['tabindex']++, '" size="40" style="width: 130px;" class="input_text" />
						<div id="bcc_item_list_container"></div>
					</dd>';
    // The subject of the PM.
    echo '
					<dt>
						<span', isset($context['post_error']['no_subject']) ? ' class="error"' : '', '>', $txt['subject'], ':</span>
					</dt>
					<dd>
						<input type="text" name="subject" value="', $context['subject'], '" tabindex="', $context['tabindex']++, '" size="40" maxlength="50" />
					</dd>
				</dl>';
    // Showing BBC?
    if ($context['show_bbc']) {
        echo '
				<div id="bbcBox_message"></div>';
    }
    // What about smileys?
    if (!empty($context['smileys']['postform']) || !empty($context['smileys']['popup'])) {
        echo '
				<div id="smileyBox_message"></div>';
    }
    // Show BBC buttons, smileys and textbox.
    echo '
				', template_control_richedit($context['post_box_name'], 'smileyBox_message', 'bbcBox_message');
    // Require an image to be typed to save spamming?
    if ($context['require_verification']) {
        echo '
				<div class="post_verification">
					<strong>', $txt['pm_visual_verification_label'], ':</strong>
					', template_control_verification($context['visual_verification_id'], 'all'), '
				</div>';
    }
    // Send, Preview, spellcheck buttons.
    echo '
				<p><label for="outbox"><input type="checkbox" name="outbox" id="outbox" value="1" tabindex="', $context['tabindex']++, '"', $context['copy_to_outbox'] ? ' checked="checked"' : '', ' class="input_check" /> ', $txt['pm_save_outbox'], '</label></p>
				<p id="shortcuts" class="smalltext">
					', $context['browser']['is_firefox'] ? $txt['shortcuts_firefox'] : $txt['shortcuts'], '
				</p>
				<p id="post_confirm_strip" class="righttext">
					', template_control_richedit_buttons($context['post_box_name']), '
				</p>
				<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
				<input type="hidden" name="seqnum" value="', $context['form_sequence_number'], '" />
				<input type="hidden" name="replied_to" value="', !empty($context['quoted_message']['id']) ? $context['quoted_message']['id'] : 0, '" />
				<input type="hidden" name="pm_head" value="', !empty($context['quoted_message']['pm_head']) ? $context['quoted_message']['pm_head'] : 0, '" />
				<input type="hidden" name="f" value="', isset($context['folder']) ? $context['folder'] : '', '" />
				<input type="hidden" name="l" value="', isset($context['current_label_id']) ? $context['current_label_id'] : -1, '" />
			</div>
			<span class="lowerframe"><span></span></span>
		</div>
	</form>';
    // Show the message you're replying to.
    if ($context['reply']) {
        echo '
	<br />
	<br />
开发者ID:valek0972,项目名称:hackits,代码行数:67,代码来源:PersonalMessage.template.php


示例6: template_edittopic

function template_edittopic()
{
    global $context, $scripturl, $txt, $settings, $modSettings;
    // Load the spell checker?
    if ($context['show_spellchecking']) {
        echo '
									<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/scripts/spellcheck.js"></script>';
    }
    echo '<div class="tborder">
<form method="post" name="cprofile" id="cprofile" action="', $scripturl, '?action=welcome&sa=edit2" onsubmit="submitonce(this);">
<div class="cat_bar">
		<h3 class="catbg">
        ', $txt['welcome_edittopic'], '
        </h3>
  </div>
	<table class="tborder" align="center" border="0" cellpadding="4" cellspacing="0" width="100%">
  <tr>
    <tr>
    <td width="28%"  valign="top" class="windowbg2" align="right"><span class="gen"><b>' . $txt['welcome_subject'] . '</b>&nbsp;</span></td>
    <td width="72%"  class="windowbg2"><input type="text"  size="50" name="topicsubject" value="' . $context['welcome_topic']['SUBJECT'] . '" /></td>
  </tr>
  <td class="windowbg2" align="center" colspan="2"><table>
	   ';
    if (!function_exists('getLanguages')) {
        // Showing BBC?
        if ($context['show_bbc']) {
            echo '
								<tr class="windowbg2">

									<td colspan="2" align="center">
										', template_control_richedit($context['post_box_name'], 'bbc'), '
									</td>
								</tr>';
        }
        // What about smileys?
        if (!empty($context['smileys']['postform'])) {
            echo '
								<tr class="windowbg2">

									<td colspan="2" align="center">
										', template_control_richedit($context['post_box_name'], 'smileys'), '
									</td>
								</tr>';
        }
        // Show BBC buttons, smileys and textbox.
        echo '
								<tr class="windowbg2">

									<td colspan="2" align="center">
										', template_control_richedit($context['post_box_name'], 'message'), '
									</td>
								</tr>';
    } else {
        echo '
								<tr class="windowbg2">
		<td>';
        // Showing BBC?
        if ($context['show_bbc']) {
            echo '
					<div id="bbcBox_message"></div>';
        }
        // What about smileys?
        if (!empty($context['smileys']['postform']) || !empty($context['smileys']['popup'])) {
            echo '
					<div id="smileyBox_message"></div>';
        }
        // Show BBC buttons, smileys and textbox.
        echo '
					', template_control_richedit($context['post_box_name'], 'smileyBox_message', 'bbcBox_message');
        echo '</td></tr>';
    }
    echo '
	   </table>
	     <br />
    ', $txt['welcome_topicnote'], '

	   </td></tr>



  <tr>
    <td width="28%" colspan="2" height="26" align="center" class="windowbg2">
    <input type="hidden" name="id" value="' . $context['welcome_topic']['ID'] . '" />
    ';
    if ($context['show_spellchecking']) {
        echo '
   									<input type="button" value="', $txt['spell_check'], '" onclick="spellCheck(\'cprofile\', \'topicbody\');" />';
    }
    echo '
    <input type="submit" value="', $txt['welcome_edittopic'], '" name="submit" /></td>

  </tr>
</table>
</form></div>';
    if ($context['show_spellchecking']) {
        echo '<form action="', $scripturl, '?action=spellcheck" method="post" accept-charset="', $context['character_set'], '" name="spell_form" id="spell_form" target="spellWindow"><input type="hidden" name="spellstring" value="" /></form>';
    }
    // Copryright link must remain. To remove you need to purchase link removal at smfhacks.com
    echo '<div align="center"><a href="http://www.smfhacks.com" target="blank">Welcome Topic Mod</a></div>';
}
开发者ID:VBGAMER45,项目名称:SMFMods,代码行数:100,代码来源:WelcomeTopic2.template.php


示例7: template_quickreply_below

/**
 * This is quick reply area below all the message body's
 */
function template_quickreply_below()
{
    global $context, $options, $settings, $txt, $modSettings, $scripturl;
    // Yeah, I know, though at the moment is the only way...
    global $removableMessageIDs, $ignoredMsgs;
    // Using the quick reply box below the messages and you can reply?
    if ($context['can_reply'] && !empty($options['display_quick_reply'])) {
        echo '
			<a id="quickreply"></a>
			<div class="forumposts" id="quickreplybox">
				<h2 class="category_header">
					<span id="category_toggle">&nbsp;
						<a href="javascript:oQuickReply.swap();">
							<span id="quickReplyExpand" class="', empty($context['minmax_preferences']['qreply']) ? 'collapse' : 'expand', '" title="', $txt['hide'], '"></span>
						</a>
					</span>
					<a href="javascript:oQuickReply.swap();">', $txt['quick_reply'], '</a>
				</h2>
				<div id="quickReplyOptions" class="windowbg"', empty($context['minmax_preferences']['qreply']) ? '' : ' style="display: none"', '>
					<div class="editor_wrapper">
						', $context['is_locked'] ? '<p class="alert smalltext">' . $txt['quick_reply_warning'] . '</p>' : '', $context['oldTopicError'] ? '<p class="alert smalltext">' . sprintf($txt['error_old_topic'], $modSettings['oldTopicDays']) . '</p>' : '', '
						', $context['can_reply_approved'] ? '' : '<em>' . $txt['wait_for_approval'] . '</em>', '
						', !$context['can_reply_approved'] && $context['require_verification'] ? '<br />' : '', '
						<form action="', $scripturl, '?board=', $context['current_board'], ';action=post2" method="post" accept-charset="UTF-8" name="postmodify" id="postmodify" onsubmit="submitonce(this);', !empty($modSettings['mentions_enabled']) ? 'revalidateMentions(\'postmodify\', \'' . (empty($options['use_editor_quick_reply']) ? 'message' : $context['post_box_name']) . '\');' : '', '">
							<input type="hidden" name="topic" value="', $context['current_topic'], '" />
							<input type="hidden" name="subject" value="', $context['response_prefix'], $context['subject'], '" />
							<input type="hidden" name="icon" value="xx" />
							<input type="hidden" name="from_qr" value="1" />
							<input type="hidden" name="notify" value="', $context['is_marked_notify'] || !empty($options['auto_notify']) ? '1' : '0', '" />
							<input type="hidden" name="not_approved" value="', !$context['can_reply_approved'], '" />
							<input type="hidden" name="goback" value="', empty($options['return_to_post']) ? '0' : '1', '" />
							<input type="hidden" name="last_msg" value="', $context['topic_last_message'], '" />
							<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
							<input type="hidden" name="seqnum" value="', $context['form_sequence_number'], '" />';
        // Guests just need more.
        if ($context['user']['is_guest']) {
            echo '
							<dl>
								<dt>
									<strong><label for="guestname">', $txt['name'], '</label>:</strong> <input type="text" name="guestname" id="guestname" value="', $context['name'], '" size="25" class="input_text" tabindex="', $context['tabindex']++, '" />
								</dd>
								<dt>
									<strong><label for="email">', $txt['email'], '</label>:</strong> <input type="text" name="email" id="email" value="', $context['email'], '" size="25" class="input_text" tabindex="', $context['tabindex']++, '" />
								</dd>
							</dl>';
        }
        // Is visual verification enabled?
        if ($context['require_verification']) {
            template_verification_controls($context['visual_verification_id'], '
							<strong>' . $txt['verification'] . ':</strong>', '<br />');
        }
        // Using the full editor or a plain text box?
        if (empty($options['use_editor_quick_reply'])) {
            echo '
							<div class="quickReplyContent">
								<textarea cols="600" rows="7" class="quickreply" name="message" id="message" tabindex="', $context['tabindex']++, '"></textarea>
							</div>';
        } else {
            echo '
							', template_control_richedit($context['post_box_name'], 'smileyBox_message', 'bbcBox_message');
        }
        echo '
							<div id="post_confirm_buttons" class="submitbutton">
								<input type="submit" name="post" value="', $txt['post'], '" onclick="return submitThisOnce(this);" accesskey="s" tabindex="', $context['tabindex']++, '" class="button_submit" />
								<input type="submit" name="preview" value="', $txt['preview'], '" onclick="return submitThisOnce(this);" accesskey="p" tabindex="', $context['tabindex']++, '" class="button_submit" />';
        // Spellcheck button?
        if ($context['show_spellchecking']) {
            echo '
								<input type="button" value="', $txt['spell_check'], '" onclick="spellCheck(\'postmodify\', \'message\', ', empty($options['use_editor_quick_reply']) ? 'false' : 'true', ')" tabindex="', $context['tabindex']++, '" class="button_submit" />';
        }
        // Draft save button?
        if (!empty($context['drafts_save'])) {
            echo '
								<input type="submit" name="save_draft" value="', $txt['draft_save'], '" onclick="return confirm(' . JavaScriptEscape($txt['draft_save_note']) . ') && submitThisOnce(this);" accesskey="d" tabindex="', $context['tabindex']++, '" class="button_submit" />
								<input type="hidden" id="id_draft" name="id_draft" value="', empty($context['id_draft']) ? 0 : $context['id_draft'], '" />';
        }
        echo '
							</div>';
        // Show the draft last saved on area
        if (!empty($context['drafts_autosave']) && !empty($options['drafts_autosave_enabled'])) {
            echo '
							<div class="draftautosave">
								<span id="throbber" style="display:none"><i class="fa fa-spinner fa-spin"></i>&nbsp;</span>
								<span id="draft_lastautosave"></span>
							</div>';
        }
        echo '
						</form>
					</div>
				</div>
			</div>';
        // Using the plain text box we need to load in some additonal javascript
        if (empty($options['use_editor_quick_reply'])) {
            echo '
			<script><!-- // --><![CDATA[';
            // Draft autosave available and the user has it enabled?
            if (!empty($context['drafts_autosave']) && !empty($options['drafts_autosave_enabled'])) {
//.........这里部分代码省略.........
开发者ID:KeiroD,项目名称:Elkarte,代码行数:101,代码来源:Display.template.php


示例8: template_post_page

/**
 * The main template for the post page.
 */
function template_post_page()
{
    global $context, $txt;
    // Show the actual posting area...
    echo '
					', template_control_richedit($context['post_box_name'], 'smileyBox_message', 'bbcBox_message');
    // A placeholder for our mention box if needed
    if (!empty($context['member_ids'])) {
        echo '
							<div id="mentioned" style="display:none">';
        foreach ($context['member_ids'] as $id) {
            echo '
								<input type="hidden" name="uid[]" value="', $id, '" />';
        }
        echo '
							</div>';
    }
    // Show our submit buttons before any more options
    echo '
						<div id="post_confirm_buttons" class="submitbutton">
							', template_control_richedit_buttons($context['post_box_name']);
    // Option to delete an event if user is editing one.
    if ($context['make_event'] && !$context['event']['new']) {
        echo '
							<input type="submit" name="deleteevent" value="', $txt['event_delete'], '" onclick="return confirm(\'', $txt['event_delete_confirm'], '\');" class="button_submit" />';
    }
    // Option to add a poll (javascript if enabled, otherwise preview with poll)
    if (!$context['make_poll'] && $context['can_add_poll']) {
        echo '
							<input type="submit" name="poll" value="', $txt['add_poll'], '" onclick="return loadAddNewPoll(this, ', empty($context['current_board']) ? '0' : $context['current_board'], ', \'postmodify\');" class="button_submit" />';
    }
    echo '
						</div>';
}
开发者ID:scripple,项目名称:Elkarte,代码行数:37,代码来源:Post.template.php


示例9: TP_bbcbox

function TP_bbcbox($input)
{
    echo '<div id="tp_messbox"></div>';
    echo '<div id="tp_smilebox"></div>';
    echo template_control_richedit($input, 'tp_messbox', 'tp_smilebox');
}
开发者ID:DiegoCortes,项目名称:TinyPortal,代码行数:6,代码来源:TPSubs.php


示例10: template_block_edit

/**
 * Used to edit a blocks details when using the block on the portal
 */
function template_block_edit()
{
    global $context, $settings, $options, $scripturl, $txt, $helptxt, $modSettings;
    // Want to take a look before you save?
    if (!empty($context['SPortal']['preview'])) {
        if (!empty($context['SPortal']['error'])) {
            echo '
	<div class="errorbox">', $context['SPortal']['error'], '</div>';
        }
        echo '
	<div class="sp_auto_align" style="width: ', $context['widths'][$context['SPortal']['block']['column']], ';">';
        template_block($context['SPortal']['block']);
        echo '
	</div>';
    }
    echo '
	<div id="sp_edit_block">
		<form id="admin_form_wrapper" name="sp_edit_block_form" id="sp_edit_block_form" action="', $scripturl, '?action=admin;area=portalblocks;sa=edit" method="post" accept-charset="UTF-8" onsubmit="submitonce(this);">
			<h3 class="category_header">
				<a class="hdicon cat_img_helptopics help" href="', $scripturl, '?action=quickhelp;help=sp-blocks', $context['SPortal']['is_new'] ? 'Add' : 'Edit', '" onclick="return reqOverlayDiv(this.href);" title="', $txt['help'], '"></a>
				', $context['SPortal']['is_new'] ? $txt['sp-blocksAdd'] : $txt['sp-blocksEdit'], '
			</h3>
			<div class="windowbg">
				<div class="sp_content_padding">
					<dl class="sp_form">
						<dt>
							', $txt['sp-adminColumnType'], ':
						</dt>
						<dd>
							', $context['SPortal']['block']['type_text'], '
						</dd>
						<dt>
							<label for="block_name">', $txt['sp-adminColumnName'], ':</label>
						</dt>
						<dd>
							<input type="text" name="block_name" id="block_name" value="', $context['SPortal']['block']['label'], '" size="30" class="input_text" />
						</dd>
						<dt>
							<label for="block_permissions">', $txt['sp_admin_blocks_col_permissions'], ':</label>
						</dt>
						<dd>
							<select name="permissions" id="block_permissions">';
    foreach ($context['SPortal']['block']['permission_profiles'] as $profile) {
        echo '
									<option value="', $profile['id'], '"', $profile['id'] == $context['SPortal']['block']['permissions'] ? ' selected="selected"' : '', '>', $profile['label'], '</option>';
    }
    echo '
							</select>
						</dd>';
    // Display any options that are available for this block
    foreach ($context['SPortal']['block']['options'] as $name => $type) {
        if (empty($context['SPortal']['block']['parameters'][$name])) {
            $context['SPortal']['block']['parameters'][$name] = '';
        }
        echo '
						<dt>';
        if (!empty($helptxt['sp_param_' . $context['SPortal']['block']['type'] . '_' . $name])) {
            echo '
							<a class="help" href="', $scripturl, '?action=quickhelp;help=sp_param_', $context['SPortal']['block']['type'], '_', $name, '" onclick="return reqOverlayDiv(this.href);">
								<img class="icon" src="', $settings['images_url'], '/helptopics.png" alt="', $txt['help'], '" />
							</a>';
        }
        echo '
							<label for="', $type == 'bbc' ? 'bbc_content' : $name, '">', $txt['sp_param_' . $context['SPortal']['block']['type'] . '_' . $name], ':</label>
						</dt>
						<dd>';
        if ($type == 'bbc') {
            echo '
						</dd>
					</dl>
					<div id="sp_rich_editor">
						<div id="sp_rich_bbc"></div>
						<div id="sp_rich_smileys"></div>
						', template_control_richedit($context['SPortal']['bbc'], 'sp_rich_smileys', 'sp_rich_bbc'), '
						<input type="hidden" name="bbc_name" value="', $name, '" />
						<input type="hidden" name="bbc_parameter" value="', $context['SPortal']['bbc'], '" />
					</div>
					<dl class="sp_form">';
        } elseif ($type == 'boards' || $type == 'board_select') {
            echo '
							<input type="hidden" name="parameters[', $name, ']" value="" />';
            if ($type == 'boards') {
                echo '
							<select name="parameters[', $name, '][]" id="', $name, '" size="7" multiple="multiple">';
            } else {
                echo '
							<select name="parameters[', $name, '][]" id="', $name, '">';
            }
            foreach ($context['SPortal']['block']['board_options'][$name] as $option) {
                echo '
								<option value="', $option['value'], '"', $option['selected'] ? ' selected="selected"' : '', ' >', $option['text'], '</option>';
            }
            echo '
							</select>';
        } elseif ($type == 'int') {
            echo '
							<input type="text" name="parameters[', $name, ']" id="', $name, '" value="', $context['SPortal']['block']['parameters'][$name], '" size="7" class="input_text" />';
//.........这里部分代码省略.........
开发者ID:kode54,项目名称:hydrogenaudio-elkarte-theme,代码行数:101,代码来源:PortalAdminBlocks.template.php


示例11: template_add_a_new_download

function template_add_a_new_download()
{
    global $context, $txt, $scripturl, $modSettings, $adkportal, $boardurl, $adkFolder;
    $category = $context['id_cat_'];
    $rest = $adkportal['download_max_attach_download'] - $context['important_info']['rest'];
    //Multi Files
    echo '
		<script type="text/javascript"><!-- // --><![CDATA[
			var allowed_attachments = ' . $rest . ';
			function addAttachment()
			{
				allowed_attachments = allowed_attachments - 1;
				if (allowed_attachments <= 0)
					return alert("' . $txt['adkdown_not_add_more'] . '");
	
				setOuterHTML(document.getElementById("moreAttachments"), \'<input type="file" size="60" name="download[]" class="input_file" /><br /><dd class="smalltext" id="moreAttachments" style="color: ' . $adkportal['Designeds']['letra'] . '; ">( <a style="color: ' . $adkportal['Designeds']['link'] . '; " href="#" onclick="addAttachment(); return false;">' . $txt['adkdown_add_more'] . '<\' + \'/a> )<\' + \'/dd>\');
				return true;
			}
		// ]]></script>';
    echo '
		<div class="eds_cat_bar" style="background: ' . $adkportal['Designeds']['borde'] . ';">
			<h3 class="eds_catbg" style="padding-top: 3px; background: ' . $adkportal['Designeds']['borde'] . '; color: ' . $adkportal['Designeds']['titulo'] . ';">
				<img src="' . $adkFolder['images'] . '/stats_s_green.png" style="vertical-align: text-bottom;" alt="' . $context['page_title'] . '" />&nbsp;' . $context['page_title'] . '
			</h3>
		</div>
		<div class="eds_down" style="border-color: ' . $adkportal['Designeds']['borde'] . '; background: ' . $adkportal['Designeds']['fondo'] . ';">
			<form method="post" enctype="multipart/form-data" action="' . $scripturl . '?action=downloads;sa=', $context['save_action'], '">
				<div class="tborder">
					<table cellspacing="0" style="width: 100%;">
						<tr>
							<td style="text-align: left; width: 100px; color: ' . $adkportal['Designeds']['letra'] . '; ">
								<strong>' . $txt['adkdown_title'] . ' </strong>
							</td>
							<td style="text-align: left;">
								<input type="text" size="50" name="title" value="', $context['important_info']['title'], '" />
							</td>
						</tr>
						<tr>
							<td style="color: ' . $adkportal['Designeds']['letra'] . '; ">
								<strong>', $txt['adkdown_desc'], '</strong>
							</td>
							<td>
								<input type="text" size="50" maxlength="200" name="short_desc" value="', $context['important_info']['short_desc'], '" />
							</td>
						</tr>';
    if ($context['save_action'] == 'saveeditdownload') {
        echo '
						<tr>
							<td style="text-align: left; color: ' . $adkportal['Designeds']['letra'] . ';">
								<strong>' . $txt['adkdown_category'] . ' </strong>
							</td>
							<td style="text-align: left;">
								<select name="cat">';
        foreach ($context['downloads_cat'] as $cat) {
            echo '				
									<option value="' . $cat['id'] . '"', $cat['id'] == $context['important_info']['id_cat'] ? ' selected="selected"' : '', '>' . $cat['title'] . '</option>';
        }
        echo '
								</select>
							</td>
						</tr>';
    }
    echo '
						<tr>
							<td colspan="2">
								<hr />
							</td>
						</tr>
						<tr>
							<td colspan="2">
								<table>';
    if (!function_exists('getLanguages')) {
        // Showing BBC?
        if ($context['show_bbc']) {
            echo '
									<tr>
										<td colspan="2" align="center">
											', template_control_richedit($context['post_box_name'], 'bbc'), '
										</td>
									</tr>';
        }
        // What about smileys?
        if (!empty($context['smileys']['postform'])) {
            echo '
									<tr>
										<td colspan="2" align="center">
											', template_control_richedit($context['post_box_name'], 'smileys'), '
										</td>
									</tr>';
        }
        // Show BBC buttons, smileys and textbox.
        echo '
									<tr>
										<td colspan="2" align="center">
											', template_control_richedit($context['post_box_name'], 'message'), '
										</td>
									</tr>';
    } else {
        echo '
									<tr>
//.........这里部分代码省略.........
开发者ID:lucasruroken,项目名称:adkportal,代码行数:101,代码来源:Adk-Downloads.template.php


示例12: template_char_template_edit

function template_char_template_edit()
{
    global $context, $txt, $scripturl;
    echo '
		<form method="post" action="', $scripturl, '?action=admin;area=templates;sa=save;', $context['session_var'], '=', $context['session_id'], '">
			<div class="cat_bar">
				<h3 class="catbg">', $txt['char_templates'], '</h3>
			</div>
			<div class="windowbg2">
				 ', $txt['char_template_name'], ' <input type="text" name="template_name" value="', $context['template_name'], '"><br><br>';
    template_control_richedit('message', null, 'bbcBox');
    echo '
				<br>
				<div>
					<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '">
					<input type="hidden" name="template_id" value="', $context['template_id'], '">
					<input type="submit" value="', $txt['save'], '" class="button_submit">
				</div>
			</div>
		</form>';
}
开发者ID:Arantor,项目名称:smf-characters,代码行数:21,代码来源:Admin-Chars.template.php


示例13: template_main


//.........这里部分代码省略.........
			</li>
			<li><strong><a href="javascript:addPollOption(); void(0);">(', $txt['poll_add_option'], ')</a></strong></li>
			
			<li>	
				<fieldset id="poll_options">
					<legend>', $txt['poll_options'], '</legend>

					<label for="poll_max_votes">', $txt['poll_max_votes'], ':</label>
					<input type="text" name="poll_max_votes" id="poll_max_votes" size="2" value="', $context['poll_options']['max_votes'], '" class="input_text" />

					<label for="poll_expire">', $txt['poll_run'], ': (', $txt['days_word'], ')</label>
					<span>', $txt['poll_run_limit'], '</span>
					<input type="text" name="poll_expire" id="poll_expire" size="2" value="', $context['poll_options']['expire'], '" onchange="pollOptions();" maxlength="4" class="input_text" />

					<label for= 

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP template_control_verification函数代码示例发布时间:2022-05-23
下一篇:
PHP template_compile函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap