Вход Регистрация
Файл: apwa/cache/tpl_red-gold_quickreply_editor.html.php
Строк: 152
<?php if (!defined('IN_PHPBB')) exit; ?><script type="text/javascript">
// <![CDATA[
    function hide_qr(show)
    {
        dE('qr_editor_div');
        dE('qr_showeditor_div');
        if (show && document.getElementById('qr_editor_div').style.display != 'none')
        {
            document.getElementsByName('message')[0].focus();
        }
        return true;
    }
    function init_qr()
    {
        dE('qr_showeditor_div');
        return true;
    }
    onload_functions.push('init_qr();');
// ]]>
</script>
<form method="post" id="postform" action="<?php echo (isset($this->_rootref['U_QR_ACTION'])) ? $this->_rootref['U_QR_ACTION'] : ''?>">
    <div id="qr_editor_div">
    <h2 class="panel-header"><span class="panel-icon"><i class="icon-reply"></i></span><?php echo ((isset($this->_rootref['L_QUICKREPLY'])) ? $this->_rootref['L_QUICKREPLY'] : ((isset($user->lang['QUICKREPLY'])) ? $user->lang['QUICKREPLY'] : '{ QUICKREPLY }')); ?></h2>
        <div class="panel">
            <fieldset class="fields1">
                <?php if ($this->_rootref['S_DISPLAY_USERNAME']) {  ?>

                <dl style="clear: left;">
                    <dt><label for="username"><?php echo ((isset($this->_rootref['L_USERNAME'])) ? $this->_rootref['L_USERNAME'] : ((isset($user->lang['USERNAME'])) ? $user->lang['USERNAME'] : '{ USERNAME }')); ?>:</label></dt>
                    <dd><input type="text" tabindex="1" name="username" id="username" size="25" value="<?php echo (isset($this->_rootref['USERNAME'])) ? $this->_rootref['USERNAME'] : ''?>" class="inputbox autowidth" /></dd>
                </dl>
                <?php ?>

                <dl style="clear: left;">
                    <dt><label for="subject"><?php echo ((isset($this->_rootref['L_SUBJECT'])) ? $this->_rootref['L_SUBJECT'] : ((isset($user->lang['SUBJECT'])) ? $user->lang['SUBJECT'] : '{ SUBJECT }')); ?>:</label></dt>
                    <dd><input type="text" name="subject" id="subject" size="45" maxlength="64" tabindex="2" value="<?php echo (isset($this->_rootref['SUBJECT'])) ? $this->_rootref['SUBJECT'] : ''?>" class="inputbox autowidth" /></dd>
                </dl>
                <?php if ($this->_rootref['CAPTCHA_TEMPLATE'] && $this->_rootref['S_CONFIRM_CODE']) {  $this->_tpldata['DEFINE']['.']['CAPTCHA_TAB_INDEX'] = 3; if (isset($this->_rootref['CAPTCHA_TEMPLATE'])) { $this->_tpl_include($this->_rootref['CAPTCHA_TEMPLATE']); } } $this->_tpl_include('posting_buttons.html'); ?>

                <div id="smiley-box">
                    <?php if ($this->_rootref['S_SMILIES_ALLOWED'] && sizeof($this->_tpldata['smiley'])) {  ?>

                    <strong><?php echo ((isset($this->_rootref['L_SMILIES'])) ? $this->_rootref['L_SMILIES'] : ((isset($user->lang['SMILIES'])) ? $user->lang['SMILIES'] : '{ SMILIES }')); ?></strong><br />
                    <?php $_smiley_count = (isset($this->_tpldata['smiley'])) ? sizeof($this->_tpldata['smiley']) : 0;if ($_smiley_count) {for ($_smiley_i 0$_smiley_i $_smiley_count; ++$_smiley_i){$_smiley_val = &$this->_tpldata['smiley'][$_smiley_i]; ?>

                    <a href="#" onclick="insert_text('<?php echo $_smiley_val['A_SMILEY_CODE']; ?>', true); return false;"><img src="<?php echo $_smiley_val['SMILEY_IMG']; ?>" width="<?php echo $_smiley_val['SMILEY_WIDTH']; ?>" height="<?php echo $_smiley_val['SMILEY_HEIGHT']; ?>" alt="<?php echo $_smiley_val['SMILEY_CODE']; ?>" title="<?php echo $_smiley_val['SMILEY_DESC']; ?>" /></a>
                    <?php }} } if ($this->_rootref['S_SHOW_SMILEY_LINK'] && $this->_rootref['S_SMILIES_ALLOWED']) {  ?>

                    <br /><a href="<?php echo (isset($this->_rootref['U_MORE_SMILIES'])) ? $this->_rootref['U_MORE_SMILIES'] : ''?>" onclick="popup(this.href, 300, 350, '_phpbbsmilies'); return false;"><?php echo ((isset($this->_rootref['L_MORE_SMILIES'])) ? $this->_rootref['L_MORE_SMILIES'] : ((isset($user->lang['MORE_SMILIES'])) ? $user->lang['MORE_SMILIES'] : '{ MORE_SMILIES }')); ?></a>
                    <?php ?>

                </div>
                <div id="message-box">
                    <textarea<?php if (! $this->_rootref['S_SMILIES_ALLOWED'] && ! sizeof($this->_tpldata['smiley'])) {  ?> style="height: 9em;"<?php ?> name="message" id="message" rows="7" cols="76" tabindex="3" class="inputbox"></textarea>
                </div>
            </fieldset>
            <fieldset class="submit-buttons">
                <?php echo (isset($this->_rootref['S_FORM_TOKEN'])) ? $this->_rootref['S_FORM_TOKEN'] : ''?>

                <?php echo (isset($this->_rootref['QR_HIDDEN_FIELDS'])) ? $this->_rootref['QR_HIDDEN_FIELDS'] : ''?>

                <input type="submit" accesskey="s" tabindex="6" name="post" value="<?php echo ((isset($this->_rootref['L_SUBMIT'])) ? $this->_rootref['L_SUBMIT'] : ((isset($user->lang['SUBMIT'])) ? $user->lang['SUBMIT'] : '{ SUBMIT }')); ?>" class="button1" />&nbsp;
                <input type="submit" accesskey="f" tabindex="7" name="full_editor" value="<?php echo ((isset($this->_rootref['L_FULL_EDITOR'])) ? $this->_rootref['L_FULL_EDITOR'] : ((isset($user->lang['FULL_EDITOR'])) ? $user->lang['FULL_EDITOR'] : '{ FULL_EDITOR }')); ?>" class="button2" />&nbsp;
            </fieldset>
            <span class="right-box up" onclick="hide_qr(false);return false;" title="<?php echo ((isset($this->_rootref['L_COLLAPSE_QR'])) ? $this->_rootref['L_COLLAPSE_QR'] : ((isset($user->lang['COLLAPSE_QR'])) ? $user->lang['COLLAPSE_QR'] : '{ COLLAPSE_QR }')); ?>"><?php echo ((isset($this->_rootref['L_COLLAPSE_QR'])) ? $this->_rootref['L_COLLAPSE_QR'] : ((isset($user->lang['COLLAPSE_QR'])) ? $user->lang['COLLAPSE_QR'] : '{ COLLAPSE_QR }')); ?></span>
        </div>
    </div>

    <div style="text-align:left;margin:2px;" id="qr_showeditor_div">
        <input type="submit" name="show_qr" tabindex="1" class="button2" value="<?php echo ((isset($this->_rootref['L_SHOW_QR'])) ? $this->_rootref['L_SHOW_QR'] : ((isset($user->lang['SHOW_QR'])) ? $user->lang['SHOW_QR'] : '{ SHOW_QR }')); ?>" onclick="hide_qr(true);return false;"/>
    </div>
</form>
<script type="text/javascript">
// <![CDATA[
    var tid, tid2;
    function getsel() {
        pt = $(this).parents("table.tablebg");
        dE('qr_editor_div', 1);
        dE('qr_showeditor_div',-1);
        if (window.getSelection)
        {
            theSelection = window.getSelection().toString();
        }
        else if (document.getSelection)
        {
            theSelection = document.getSelection();
        }
        else if (document.selection)
        {
            theSelection = document.selection.createRange().text;
        }
        return theSelection;
    }
    function quick_quote(pid, e) {
        clearTimeout(tid);
        clearTimeout(tid2);
        tid = setTimeout(function() {
            var pageX = e.pageX || e.clientX + document.documentElement.scrollLeft;
            var pageY = e.pageY || e.clientY + document.documentElement.scrollTop;
            var theSelection = getsel();
            if (theSelection)
            {
                $("#addQuote").remove();
                $("body").append('<div id="addQuote" class="panel" style="border: 1px solid #8FBC8F;cursor: pointer;position:absolute;z-index:100;left: ' + (e.pageX + 15) + 'px; top: ' + (e.pageY + 15) + 'px; opacity: 0;"><?php echo ((isset($this->_rootref['L_PLACE_INLINE'])) ? $this->_rootref['L_PLACE_INLINE'] : ((isset($user->lang['PLACE_INLINE'])) ? $user->lang['PLACE_INLINE'] : '{ PLACE_INLINE }')); ?></div>');
                $("#addQuote").animate({opacity: 1}, 350);
                $("#addQuote").click(function() {
                    $("#addQuote").animate({opacity: 0}, 350);
                    insert_text('[quote="' + pid + '"]' + theSelection + '[/quote]');
                });
                tid2 = setTimeout(function() {
                    if ($("#addQuote").is(':visible')) {
                        $("#addQuote").animate({opacity: 0}, 350)
                    }
                    ;
                }, 5000);

            } else {
                clearTimeout(tid);
                clearTimeout(tid2);
                $("#addQuote").animate({opacity: 0}, 350);
            }
        }, 100);
    };
// ]]>
</script>
Онлайн: 0
Реклама