<?xml version="1.0" encoding="ISO-8859-1"?>

<product productid="bdr130" active="1">
	<title>الصندوق الماسي</title>
	<description><![CDATA[الاصدار الخامس الحقوق محفوظة ولانسمح بالتعديل او الاقتباس كليا]]></description>
	<version>5.0</version>
	<url>https://www.bdr130.net</url>
	<versioncheckurl />
	<dependencies>
	</dependencies>
	<codes>
		<code version="4.0">
			<installcode><![CDATA[$db->query_write("CREATE TABLE `bdr130_massy` (`SID` int(10) unsigned NOT NULL auto_increment,`UID` int(10) unsigned NOT NULL,`Short1` varchar(225) NOT NULL,`Short2` varchar(225) NOT NULL,`Short3` varchar(225) NOT NULL,`Short4` varchar(225) NOT NULL,`Short5` varchar(225) NOT NULL,`Short6` varchar(225) NOT NULL,`Short7` varchar(225) NOT NULL,`Short8` varchar(225) NOT NULL,`Short9` varchar(225) NOT NULL,`Short10` varchar(225) NOT NULL,`Short11` varchar(225) NOT NULL,`Short12` varchar(225) NOT NULL,PRIMARY KEY  (`SID`)) ENGINE=MyISAM;");
$db->query_write("DELETE FROM " . TABLE_PREFIX . "bbcode WHERE bbcodetag = 'table' LIMIT 1");
$db->query_write("DELETE FROM " . TABLE_PREFIX . "bbcode WHERE bbcodetag = 'td' LIMIT 1");
$db->query_write("DELETE FROM " . TABLE_PREFIX . "bbcode WHERE bbcodetag = 'tr' LIMIT 1");
$db->query_write("UPDATE " . TABLE_PREFIX . "user SET showvbcode = 2");
	build_bbcode_cache();]]></installcode>
			<uninstallcode><![CDATA[$db->query_write("DROP TABLE `bdr130_massy`");]]></uninstallcode>
		</code>
	</codes>
	<templates>
		<template name="bdr130_editor_on" templatetype="template" date="1228251948" username="" version="5.0"><![CDATA[<!-- الرجاء ثم الرجاء ثم الرجاء عدم التعديل على الهاك او الاقتباس منه ولانسمح بذلك كليا اخوكم ابو عمر -->
$vBeditTemplate[clientscript]
<script type="text/javascript">
        var shortoptions = new Array("$sdefault[1]","$sdefault[2]","$sdefault[3]","$sdefault[4]","$sdefault[5]","$sdefault[6]","$sdefault[7]","$sdefault[8]","$sdefault[9]","$sdefault[10]","$sdefault[11]","$sdefault[12]");
function bdr130cmd(tag,prompt,button,dflt,typ){
    if(typ == "flat"){
        result = vB_Editor['$editorid'].show_prompt(prompt, dflt);
        if(result){
            var text = '['+tag+']' + result + '[/'+tag+']';
        }else{
            return false
        }
    }else if(typ == "color"){
        selection = vB_Editor['$editorid'].get_selection();
        if (selection == "") {
            alert("يجب تضليل أو تحديد النص أولا");
            return;
        }
        code = showModalDialog("massy/color.html","","help:no; center:yes; status:no; dialogHeight:176px; dialogWidth:356px");
        if(code){
            var text = '['+tag+'='+code+']' + selection + '[/'+tag+']';
        }else{
            return false
        }
    }else if(typ == "flash"){
        flink = vB_Editor['$editorid'].show_prompt('يرجى ادخال رابط الفلاش :', 'https://');
        fw    = vB_Editor['$editorid'].show_prompt('يرجى ادخال عرض الفلاش :', '350');
        fh    = vB_Editor['$editorid'].show_prompt('يرجى ادخال طول الفلاش :', '400');
        if(flink && fw && fh){
            var text = '['+tag+'='+flink+']WIDTH='+fw+' HEIGHT='+fh+'[/'+tag+']';
        }else{
            return false
        }
    }else{
        selection = vB_Editor['$editorid'].get_selection();
        if (selection == "") {
            alert("يجب تضليل أو تحديد النص أولا");
            return;
        }
        result = vB_Editor['$editorid'].show_prompt(prompt, dflt);
        if(result){
            var text = '['+tag+'='+result+']' + selection + '[/'+tag+']';
        }else{
            return false
        }
    }
    vB_Editor['$editorid'].insert_text(text, false);

    return false;
}
function addKeys(buttons) {
    var tbl, newRow;
    document.write('<table dir="rtl" id="keyboardTable" border="0" cellpadding="0" cellspacing="0" width="1px" style="display:none">');
    document.write('<tr><td>');
    newRow = 1;
    for (var i = 0; i < buttons.length; i++) {
        if (i % 15 == 0) {
            document.write('<table dir="rtl" align="center" background="images/toolbox/key_1.gif" border="0" cellpadding="0" cellspacing="0" width="1px"><tr>');
            newRow = 0;
        }
        tbl = '<td height="29px"><div onmouseout="this.parentNode.background = \'images/toolbox/key_1.gif\';this.style.color = \'black\';" onmouseover="this.parentNode.background = \'images/toolbox/key_2.gif\';this.style.color = \'white\';" onclick="vB_Editor[\'$editorid\'].insert_text(\'' + buttons[i] + '\',false);" style="font-size:x-small;font-family:tahoma;font-weight:bold;cursor:hand;text-align:center;width:30px;height:20px;color:black" tag="qkeys_' + buttons[i] + '|||qkeys">';
        if (buttons[i] == " ") buttons[i] = "&nbsp;";
        tbl = tbl + buttons[i] + '</div>';
        tbl = tbl + '</td>';
        document.write(tbl);
        if ((i + 1) % 15 == 0) {
            document.write('</tr></table>');
            newRow = 1;
        }
    }
    if (newRow == 0) {
        document.write('</tr></table>');
    }
    document.write('</td></tr></table>');
}
    bdr130_option_onclick = function(e)
    {
    	var arg = this.title;
    	if (arg != '')
    	{
            vB_Editor['$editorid'].insert_text(' '+arg+' ', false);
    	}
        vBmenu.hide();
    }
    bdr130_select_onchange = function(e)
    {
    	var arg = this.options[this.selectedIndex].value;
    	if (arg != '')
    	{
            vB_Editor['$editorid'].insert_text(' '+arg+' ', false);
    	}
    	this.selectedIndex = 0;
    }
    vB_Text_Editor.prototype.table = function(e)
    {
        code = window.open("massy.php?action=table&e=$editorid", "table", "toolbar=no,scrollbars=yes,resizable=yes,width=600,height=450");
    };
      function _sndReplaceReq(action, file, param) {
            http = _createRequestObject();
          http.open(action, 'massy/rpc.php?action='+file, true);
          if(action=='POST'){
              http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
              http.setRequestHeader("Content-length", param.length);
              http.setRequestHeader("Connection", "close");
          }
          http.onreadystatechange = function(){if(http.readyState == 4){vB_Editor['{$editorid}'].insert_text(http.responseText, false);}};
          http.send(param);
      }
        vB_Text_Editor.prototype.keyboard = function(e)
        {
            keyboardTabl = fetch_object('keyboardTable');
            if (keyboardTabl.style.display == "none") {
                keyboardTabl.style.display = "inline";
                fetch_object('{$editorid}_cmd_keyboard').state = true;
            }else {
                keyboardTabl.style.display = "none";
                fetch_object('{$editorid}_cmd_keyboard').state = false;
            }
        };
        vB_Text_Editor.prototype.colo = function(e)
        {
            code = showModalDialog("massy/color.html","","help:no; center:yes; status:no; dialogHeight:176px; dialogWidth:356px");
        	if (!code)
        		return;
            	fetch_object('{$editorid}_color_bar').style.backgroundColor = code;
            	vB_Editor['{$editorid}'].format(e, 'forecolor', code);
        };
        vB_Text_Editor.prototype.upload = function(e)
        {
            code = window.open("$vboptions[upload_site]", "", "toolbar=no,scrollbars=yes,resizable=yes,width=800,height=450");
        };
</script>
<script type="text/javascript" src="massy/massy.js"></script>
<table cellpadding="0" cellspacing="0" border="0">
<tr>
	<td id="$editorid" class="vBulletin_editor" width="100%">
		<div id="{$editorid}_controls" class="controlbar">
			<table cellpadding="0" cellspacing="0" border="0">
			<tr>
				<td><div class="imagebutton" id="{$editorid}_cmd_removeformat"><img src="$stylevar[imgdir_editor]/removeformat.gif" width="21" height="20" alt="$vbphrase[remove_text_formatting]" /></div></td>
			<if condition="$show['font_bbcode'] OR $show['size_bbcode']">
				<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
			</if>
			<if condition="$show['font_bbcode']">
				<td><div class="imagebutton" id="{$editorid}_popup_fontname" title="$vbphrase[fonts]">
					<table cellpadding="0" cellspacing="0" border="0">
					<tr>
						<td class="popup_feedback"><div id="{$editorid}_font_out" style="width:91px">&nbsp;</div></td>
						<td class="popup_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" width="11" height="16" alt="" /></td>
					</tr>
					</table>
				</div></td>
			</if>
				<td><div class="imagebutton" id="{$editorid}_popbdr_shorts" title="الاختصارات">
					<table cellpadding="0" cellspacing="0" border="0">
					<tr>
						<td class="popup_feedback"><div id="{$editorid}_short_out" style="width:55px">&nbsp;</div></td>
						<td class="popup_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" width="11" height="16" alt="" /></td>
					</tr>
					</table>
				</div></td>
			<if condition="$show['size_bbcode']">
				<td><div class="imagebutton" id="{$editorid}_popup_fontsize" title="$vbphrase[sizes]">
					<table cellpadding="0" cellspacing="0" border="0">
					<tr>
						<td class="popup_feedback"><div id="{$editorid}_size_out" style="width:25px">&nbsp;</div></td>
						<td class="popup_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" width="11" height="16" alt="" /></td>
					</tr>
					</table>
				</div></td>
			</if>
			<if condition="$show['color_bbcode']">
				<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
				<td><div class="imagebutton" id="{$editorid}_popup_forecolor" title="$vbphrase[colors]">
					<table cellpadding="0" cellspacing="0" border="0">
					<tr>
						<td id="{$editorid}_color_out"><img src="images/toolbox/color.gif" width="21" height="16" alt="" /><br /><img src="$vboptions[cleargifurl]" id="{$editorid}_color_bar" alt="" style="background-color:black" width="21" height="4" /></td>
						<td class="alt_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" width="11" height="16" alt="" /></td>
					</tr>
					</table>
				</div></td>
			</if>
                <td><div class="imagebutton" id="{$editorid}_cmd_colo"><img src="images/toolbox/colorpicker.gif" width="21" height="20" alt="اختيار لون" /></div></td>
			<if condition="$show['wysiwygsmilies']">
				<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
				<td><div class="imagebutton" id="{$editorid}_popup_smilie" title="$vbphrase[smilies]">
					<table cellpadding="0" cellspacing="0" border="0">
					<tr>
						<td><img src="$stylevar[imgdir_editor]/smilie.gif" alt="" width="21" height="20" /></td>
						<td class="alt_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" width="11" height="16" alt="" /></td>
					</tr>
					</table>
				</div></td>
			</if>
			<if condition="$show['attach']">
				<td><div class="imagebutton" id="{$editorid}_popup_attach" title="$vbphrase[attachments]">
					<table cellpadding="0" cellspacing="0" border="0">
					<tr>
						<td><img src="$stylevar[imgdir_editor]/attach.gif" alt="" width="21" height="20" /></td>
						<td class="alt_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" width="11" height="16" alt="" /></td>
					</tr>
					</table>
				</div></td>
			</if>

				<!--
				<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
				<td><div class="imagebutton" id="{$editorid}_cmd_cut"><img src="$stylevar[imgdir_editor]/cut.gif" width="21" height="20" alt="$vbphrase[cut]" /></div></td>
				<td><div class="imagebutton" id="{$editorid}_cmd_copy"><img src="$stylevar[imgdir_editor]/copy.gif" width="21" height="20" alt="$vbphrase[copy]" /></div></td>
				<td><div class="imagebutton" id="{$editorid}_cmd_paste"><img src="$stylevar[imgdir_editor]/paste.gif" width="21" height="20" alt="$vbphrase[paste]" /></div></td>
				-->

				<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
				<td><div class="imagebutton" id="{$editorid}_cmd_undo"><img src="images/toolbox/undo.gif" width="21" height="20" alt="$vbphrase[undo]" /></div></td>
				<td><div class="imagebutton" id="{$editorid}_cmd_redo"><img src="images/toolbox/redo.gif" width="21" height="20" alt="$vbphrase[redo]" /></div></td>
    			<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
                <td><div class="imagebutton" id="{$editorid}_cmd_keyboard"><img src="images/toolbox/zkharf.gif" width="21" height="20" alt="زخرفة النص" /></div></td>
			<td width="100%">&nbsp;</td>
			<if condition="is_browser('ie') AND !is_browser('mac')">
				<td><div class="imagebutton" id="{$editorid}_cmd_spelling"><img src="images/toolbox/spelling.gif" width="21" height="20" alt="$vbphrase[check_spelling]" /></div></td>
			</if>
				<td>
					<div class="imagebutton" id="{$editorid}_cmd_resize_0_100"><img src="$stylevar[imgdir_editor]/resize_0.gif" width="21" height="9" alt="$vbphrase[decrease_size]" /></div>
					<div class="imagebutton" id="{$editorid}_cmd_resize_1_100"><img src="$stylevar[imgdir_editor]/resize_1.gif" width="21" height="9" alt="$vbphrase[increase_size]" /></div>
				</td>
			<if condition="$show['wysiwyg_compatible']">
				<td><div class="imagebutton" id="{$editorid}_cmd_switchmode"><img src="$stylevar[imgdir_editor]/switchmode.gif" width="21" height="20" alt="$vbphrase[switch_editor_mode]" /></div></td>
			</if>
			</tr>
			</table>

			<if condition="!$show['basicbbcodeonly']">
			<table cellpadding="0" cellspacing="0" border="0">
			<tr>
			<if condition="$show['basic_bbcode']">
				<td><div class="imagebutton" id="{$editorid}_cmd_bold"><img src="images/toolbox/bold.gif" width="21" height="20" alt="$vbphrase[bold]" /></div></td>
				<td><div class="imagebutton" id="{$editorid}_cmd_italic"><img src="images/toolbox/italic.gif" width="21" height="20" alt="$vbphrase[italic]" /></div></td>
				<td><div class="imagebutton" id="{$editorid}_cmd_underline"><img src="images/toolbox/underline.gif" width="21" height="20" alt="$vbphrase[underline]" /></div></td>
                <td><div class="imagebutton" id="{$editorid}_cmd_wrap0_overline"><img src="images/toolbox/overline.gif" width="21" height="20" alt="خط بالاعلى" /></div></td>
			</if>
			<if condition="$show['align_bbcode']">
				<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
				<if condition="$stylevar['textdirection'] == 'ltr'">
				<td><div class="imagebutton" id="{$editorid}_cmd_justifyleft"><img src="$stylevar[imgdir_editor]/justifyleft.gif" width="21" height="20" alt="$vbphrase[align_left]" /></div></td>
				<td><div class="imagebutton" id="{$editorid}_cmd_justifycenter"><img src="$stylevar[imgdir_editor]/justifycenter.gif" width="21" height="20" alt="$vbphrase[align_center]" /></div></td>
				<td><div class="imagebutton" id="{$editorid}_cmd_justifyright"><img src="$stylevar[imgdir_editor]/justifyright.gif" width="21" height="20" alt="$vbphrase[align_right]" /></div></td>
				<else />
				<td><div class="imagebutton" id="{$editorid}_cmd_justifyright"><img src="$stylevar[imgdir_editor]/justifyright.gif" width="21" height="20" alt="$vbphrase[align_right]" /></div></td>
				<td><div class="imagebutton" id="{$editorid}_cmd_justifycenter"><img src="$stylevar[imgdir_editor]/justifycenter.gif" width="21" height="20" alt="$vbphrase[align_center]" /></div></td>
				<td><div class="imagebutton" id="{$editorid}_cmd_justifyleft"><img src="$stylevar[imgdir_editor]/justifyleft.gif" width="21" height="20" alt="$vbphrase[align_left]" /></div></td>
				<td><div class="bdr130button" id="{$editorid}_bdr130_wrap0_justify"><img src="images/toolbox/justify.gif" width="21" height="20" alt="محاذاة إلى الأطراف" /></div></td>
				</if>
			</if>
			<if condition="$show['align_bbcode'] OR $show['list_bbcode']">
				<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
			</if>
			<if condition="$show['list_bbcode']">
				<td><div class="imagebutton" id="{$editorid}_cmd_insertorderedlist"><img src="images/toolbox/insertorderedlist.gif" width="21" height="20" alt="$vbphrase[ordered_list]" /></div></td>
				<td><div class="imagebutton" id="{$editorid}_cmd_insertunorderedlist"><img src="images/toolbox/insertunorderedlist.gif" width="21" height="20" alt="$vbphrase[unordered_list]" /></div></td>
			</if>
			<if condition="$show['align_bbcode'] OR $show['list_bbcode']">
				<if condition="$stylevar['textdirection'] == 'ltr'">
				<td><div class="imagebutton" id="{$editorid}_cmd_outdent"><img src="$stylevar[imgdir_editor]/outdent.gif" width="21" height="20" alt="$vbphrase[decrease_indent]" /></div></td>
				<td><div class="imagebutton" id="{$editorid}_cmd_indent"><img src="$stylevar[imgdir_editor]/indent.gif" width="21" height="20" alt="$vbphrase[increase_indent]" /></div></td>
				<else />
				<td><div class="imagebutton" id="{$editorid}_cmd_outdent"><img src="images/toolbox/indent.gif" width="21" height="20" alt="$vbphrase[decrease_indent]" /></div></td>
				<td><div class="imagebutton" id="{$editorid}_cmd_indent"><img src="images/toolbox/outdent.gif" width="21" height="20" alt="$vbphrase[increase_indent]" /></div></td>
				</if>
			</if>
			<if condition="$show['url_bbcode'] OR $show['img_bbcode']">
				<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
				<if condition="$show['url_bbcode']">
					<td><div class="imagebutton" id="{$editorid}_cmd_createlink"><img src="images/toolbox/createlink.gif" width="21" height="20" alt="$vbphrase[insert_link]" /></div></td>
					<td><div class="imagebutton" id="{$editorid}_cmd_unlink"><img src="$stylevar[imgdir_editor]/unlink.gif" width="21" height="20" alt="$vbphrase[remove_link]" /></div></td>
					<td><div class="imagebutton" id="{$editorid}_cmd_email"><img src="images/toolbox/email.gif" width="21" height="20" alt="$vbphrase[insert_email_link]" /></div></td>
				</if>
				<if condition="$show['img_bbcode']">
					<td><div class="imagebutton" id="{$editorid}_cmd_insertimage"><img src="images/toolbox/insertimage.gif" width="21" height="20" alt="$vbphrase[insert_image]" /></div></td>
				</if>
			</if>
			<if condition="$show['quote_bbcode']">
				<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
				<td><div class="imagebutton" id="{$editorid}_cmd_wrap0_quote"><img src="images/toolbox/quote.gif" width="21" height="20" alt="$vbphrase[wrap_quote_tags]" /></div></td>
			</if>
			<if condition="$show['code_bbcode'] OR $show['html_bbcode'] OR $show['php_bbcode']">
				<if condition="$show['code_bbcode']">
					<td><div class="imagebutton" id="{$editorid}_cmd_wrap0_code"><img src="$stylevar[imgdir_editor]/code.gif" width="21" height="20" alt="$vbphrase[wrap_code_tags]" /></div></td>
				</if>
				<if condition="$show['html_bbcode']">
					<td><div class="imagebutton" id="{$editorid}_cmd_wrap0_html"><img src="$stylevar[imgdir_editor]/html.gif"  width="21" height="20" alt="$vbphrase[wrap_html_tags]" /></div></td>
				</if>
				<if condition="$show['php_bbcode']">
					<td><div class="imagebutton" id="{$editorid}_cmd_wrap0_php"><img src="images/toolbox/php.gif" width="21" height="20" alt="$vbphrase[wrap_php_tags]" /></div></td>
				</if>
			</if>
                    <td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
                    <td><div class="imagebutton" id="{$editorid}_cmd_wrap0_s"><img src="images/toolbox/strike.gif" width="21" height="20" alt="يتوسطه خط" /></div></td>
                    <td><div class="bdr130button" id="{$editorid}_bdr130_wrap0_hide"><img src="images/toolbox/hide.gif" width="21" height="20" alt="كتابة مخفية" /></div></td>
			<if condition="$vBeditTemplate['extrabuttons'] != '' ">
				<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
				$vBeditTemplate[extrabuttons]
			</if>
			</tr>
			</table>
			</if>
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<!-- سطر 3 -->
<td><div class="imagebutton" id="{$editorid}_cmd_poem"><img src="images/toolbox/poem.gif" width="21" height="20" alt="قصيدة شعرية" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_gradient"><img src="images/toolbox/gradient.gif" width="21" height="20" alt="نص بالوان متدرجة" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_frame"><img src="images/toolbox/frame.gif" width="21" height="20" alt="إنشاء إطار" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_marq"><img src="images/toolbox/marq.gif" width="21" height="20" alt="النص المتحرك" /></div></td>
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<td><div class="imagebutton" id="{$editorid}_cmd_hcal"><img src="images/toolbox/h_calendar.gif" width="21" height="20" alt="إضافة تاريخ اليوم الهجري" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_numbers"><img src="images/toolbox/numbers.gif" width="21" height="20" alt="تحويل الارقام إلى كتابة مثل 15 &raquo; خمسة عشر" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_keyb"><img src="images/toolbox/keyb.gif" width="21" height="20" alt="تصحيح الكيبورد مثل hgsghl ugd;l &raquo; السلام عليكم" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_terms"><img src="images/toolbox/terms.gif" width="21" height="20" alt="ترجمة لفظية للنص مثل Google &raquo; غوغل" /></div></td>
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<td><div class="imagebutton" id="{$editorid}_cmd_table"><img src="images/toolbox/table.gif" width="21" height="20" alt="اضافة جدول" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_textformat"><img src="images/toolbox/text.gif" width="21" height="20" alt="منسق النصوص" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_bor" onclick="bdr130cmd('bor','',this,'','color');"><img src="images/toolbox/bor.gif" width="21" height="20" alt="جدول متقطع بخيار اللون" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_wrap0_gdwl"><img src="images/toolbox/gdwl.gif" width="21" height="20" alt="اضافة اطار صورة ملون بالوان متحركه" /></div></td>
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_wrap1_info"><img src="images/toolbox/info.gif" width="21" height="20" alt="ملاحظة" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_wrap1_caution"><img src="images/toolbox/caution.gif" width="21" height="20" alt="تنبيه" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_wrap1_warning"><img src="images/toolbox/warning.gif" width="21" height="20" alt="تحذير" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_upload"><img src="images/toolbox/upload.gif" width="21" height="20" alt="مركز تحميل الصور والملفات" /></div></td>
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_wrap0_motfrk"><img src="images/toolbox/motfrk.gif" width="21" height="20" alt="حروف متفرقة غير متشابكة مثال : أبـ و عـ مـ ر" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_wrap0_mklb1"><img src="images/toolbox/mklb1.gif" width="21" height="20" alt="نص مقلوب أفقي" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_wrap0_mklb2"><img src="images/toolbox/mklb2.gif" width="21" height="20" alt="نص مقلوب للاعلى" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_wrap0_mklb"><img src="images/toolbox/mklb.gif" width="21" height="20" alt="نص مقلوب عمودي" /></div></td>
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_wrap0_blur1"><img src="images/toolbox/blur1.gif" width="21" height="20" alt="نص مشوش بدرجة عالية" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_wrap0_blur"><img src="images/toolbox/blur.gif" width="21" height="20" alt="نص مشوش بدرجة متوسطة" /></div></td>
</tr>
<tr>
<!-- سطر 2 -->
<td><div class="bdr130button" id="{$editorid}_bdr130_wrap0_fot1"><img src="images/toolbox/fot1.gif" width="21" height="20" alt="نص بالوان عشوائية متحركه لكل حرف : ملاحظة لابد من اختيار هذه الميزة قبل اختيار الحجم ونوع الخط" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_3mr" onclick="bdr130cmd('3mr','يرجى ادخال رابط الصورة',this,'backgrounds/16.gif');"><img src="images/toolbox/3mr.gif" width="21" height="20" alt="خلفية صورية للموضوع" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_mark" onclick="bdr130cmd('mark','',this,'','color');"><img src="images/toolbox/mark.gif" width="21" height="20" alt="تظليل النص" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_wrap0_caps"><img src="images/toolbox/caps.gif" width="21" height="20" alt="تحويل الحروف الإنجليزية الصغيرة إلى كبيرة مثل abc &raquo; ABC ولاتعمل مع العربية" /></div></td>
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_wrap0_Unload"><img src="images/toolbox/unload.gif" width="21" height="20" alt="ضع الرسالة التي تحب ان تودع قارىء موضوعك بها اثناء خروجه من الموضوع" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_msg"><img src="images/toolbox/msg.gif" width="21" height="20" alt="يمكنك وضع رسالة تخرج تلقائياً بمجرد دخول الزائر لموضوعك" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_shr71"><img src="images/toolbox/shr71.gif" width="21" height="20" alt="بالون حوار وشرح لاي صورة تختارها ملاحظه لاتحدد عنوان الصورة قبل النقر على الزر" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_shr7" onclick="bdr130cmd('shr7','ادخل الشرح الذي تريد ظهوره عند المرور بالماوس',this,'مثل شرح او رساله او تعليق الخ');"><img src="images/toolbox/shr7.gif" width="21" height="20" alt="بالون حوار او شرح لاي كلمة تحددها" /></div></td>
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_shr72" onclick="bdr130cmd('shr72','ادخل الشرح الذي تريد ظهوره عند المرور بالماوس',this,'مثل شرح او رساله او تعليق الخ');"><img src="images/toolbox/shr72.gif" width="21" height="20" alt="شرح كلمة تختارها اسفل المتصفح انظر اسفل المتصفح بعد وضع الماوس على الكلمة 42 حرف فقط" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_button" onclick="bdr130cmd('button','ادخل الشرح الذي تريد ظهوره عند النقر بالماوس',this,'مثل شرح او رساله او تعليق الخ');"><img src="images/toolbox/button.gif" width="21" height="20" alt="زر شرح برسالة مستقله  ملاحظه يجب ان تكون الرسالة غير طويله" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_click" onclick="bdr130cmd('click','ادخل الشرح الذي تريد ظهوره عند النقر بالماوس',this,'مثل شرح او رساله او تعليق الخ');"><img src="images/toolbox/click.gif" width="21" height="20" alt="يمكنك وضع رسالة على اي كلمة تريد وتخرج بمجرد النقر عليها" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_mouseover" onclick="bdr130cmd('mouseover','ادخل الشرح الذي تريد ظهوره عند المرور بالماوس',this,'مثل شرح او رساله او تعليق الخ');"><img src="images/toolbox/mouseover.gif" width="21" height="20" alt="يمكنك وضع رسالة على اي نص تخرج بمجرد مرور الماوس على الكلمة المراده" /></div></td>
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_glow" onclick="bdr130cmd('glow','',this,'','color');"><img src="images/toolbox/glow.gif" width="21" height="20" alt="وضع اشعاعي" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_wrap0_blink"><img src="images/toolbox/blink.gif" width="21" height="20" alt="وميض" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_wrap0_glint"><img src="images/toolbox/glint.gif" width="21" height="20" alt="بريق" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_glow1" onclick="bdr130cmd('glow1','',this,'','color');"><img src="images/toolbox/glow1.gif" width="21" height="20" alt="نص محدد بلون" /></div></td>
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<td><div class="imagebutton" id="{$editorid}_cmd_youtube"><img src="images/toolbox/youtube.gif" width="21" height="20" alt="إضافة مقطع يوتوب YouTube" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_rams" onclick="bdr130cmd('rams','ادخل رابط الملف',this,'https://','flat');"><img src="images/toolbox/rplayer.gif" width="21" height="20" alt="تشغيل ملف رييل بلاير (rm,ra,ram)" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_flash1" onclick="bdr130cmd('flash1','',this,'','flash');"><img src="images/toolbox/flash1.gif" width="21" height="20" alt="فلاش شفاف" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_flash" onclick="bdr130cmd('flash','',this,'','flash');"><img src="images/toolbox/flash.gif" width="21" height="20" alt="تشغيل ملف فلاش (swf)" /></div></td>
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_media" onclick="bdr130cmd('media','ادخل رابط الملف',this,'https://','flat');"><img src="images/toolbox/media.gif" width="21" height="20" alt="تشغيل ملفات الصوت والصورة (mp3,wav,au,wma,mpg,mpeg,wmv,avi)" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_inserthr"><img src="images/toolbox/hr.gif" width="21" height="20" alt="إضافة خط أفقي ملون" /></div></td>


</tr>
<!-- lin1 -->
<tr>
<td><div class="bdr130button" id="{$editorid}_bdr130_cc" onclick="bdr130cmd('cc','ادخل اسم الزر',this,'مثلا انقر هنا لمشاهدة المحتوى المخفي');"><img src="images/toolbox/cc.gif" width="21" height="20" alt="زر لاخراج محتوى مخفي" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_a7la1" onclick="bdr130cmd('a7la1','',this,'','color');"><img src="images/toolbox/a7la1.gif" width="21" height="20" alt="ظل ثابت للنص" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_all1" onclick="bdr130cmd('all1','',this,'','color');"><img src="images/toolbox/all1.gif" width="21" height="20" alt="ظل متدرج للنص" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_img2" onclick="bdr130cmd('img2','يرجى ادخال رابط الصورة',this,'https://','flat');"><img src="images/toolbox/img2.gif" width="21" height="20" alt="صورة بمؤثر التلاشي وبمجرد وضع الماوس عليها تتضح بشكلها الحقيقي" /></div></td>
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_img3" onclick="bdr130cmd('img3','يرجى ادخال رابط الصورة',this,'https://','flat');"><img src="images/toolbox/img3.gif" width="21" height="20" alt="مؤثر اهتزاز عشوائي على اي صورة تختارها حاول ان لاتكون الصورة كبيره" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_sor2" onclick="bdr130cmd('sor2','يرجى ادخال رابط الصورة',this,'https://','flat');"><img src="images/toolbox/sor2.gif" width="21" height="20" alt="صورة مقلوبه عموديا" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_sor1" onclick="bdr130cmd('sor1','يرجى ادخال رابط الصورة',this,'https://','flat');"><img src="images/toolbox/sor1.gif" width="21" height="20" alt="صورة مقلوبه افقيا" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_m3kos" onclick="bdr130cmd('m3kos','يرجى ادخال رابط الصورة',this,'https://','flat');"><img src="images/toolbox/m3kos.gif" width="21" height="20" alt="عكس الوان الصورة" /></div></td>
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_shfaf" onclick="bdr130cmd('shfaf','يرجى ادخال رابط الصورة',this,'https://','flat');"><img src="images/toolbox/shfaf.gif" width="21" height="20" alt="صورة شفافة من اليمين" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_ash3h" onclick="bdr130cmd('ash3h','يرجى ادخال رابط الصورة',this,'https://','flat');"><img src="images/toolbox/ash3h.gif" width="21" height="20" alt="صورة اشعه سينيه" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_rmade" onclick="bdr130cmd('rmade','يرجى ادخال رابط الصورة',this,'https://','flat');"><img src="images/toolbox/rmade.gif" width="21" height="20" alt="صورة بدرجات رمادي" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_shfaf1" onclick="bdr130cmd('shfaf1','يرجى ادخال رابط الصورة',this,'https://','flat');"><img src="images/toolbox/shfaf1.gif" width="21" height="20" alt="صورة شفافه من اليسار" /></div></td>
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_shfaf2" onclick="bdr130cmd('shfaf2','يرجى ادخال رابط الصورة',this,'https://','flat');"><img src="images/toolbox/shfaf2.gif" width="21" height="20" alt="صورة شفافه من الاطراف" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_aldl" onclick="bdr130cmd('aldl','يرجى ادخال رابط الصورة',this,'https://','flat');"><img src="images/toolbox/aldl.gif" width="21" height="20" alt="صورة بظل" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_mn7ot1" onclick="bdr130cmd('mn7ot1','يرجى ادخال رابط الصورة',this,'https://','flat');"><img src="images/toolbox/mn7ot1.gif" width="21" height="20" alt="صورة منحوته1" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_mn7ot2" onclick="bdr130cmd('mn7ot2','يرجى ادخال رابط الصورة',this,'https://','flat');"><img src="images/toolbox/mn7ot2.gif" width="21" height="20" alt="صورة منحوته2" /></div></td>
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<td><div class="imagebutton" id="{$editorid}_cmd_mtohg"><img src="images/toolbox/mtohg.gif" width="21" height="20" alt="صورة متوهجه" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_mshosh1" onclick="bdr130cmd('mshosh1','يرجى ادخال رابط الصورة',this,'https://','flat');"><img src="images/toolbox/mshosh1.gif" width="21" height="20" alt="صورة بتشويش ضبابي" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_mshosh2" onclick="bdr130cmd('mshosh2','يرجى ادخال رابط الصورة',this,'https://','flat');"><img src="images/toolbox/mshosh2.gif" width="21" height="20" alt="صورة بتشويش ازاحه" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_mshosh3" onclick="bdr130cmd('mshosh3','يرجى ادخال رابط الصورة',this,'https://','flat');"><img src="images/toolbox/mshosh3.gif" width="21" height="20" alt="صورة بتأثير ريح" /></div></td>
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_mshosh4" onclick="bdr130cmd('mshosh4','يرجى ادخال رابط الصورة',this,'https://','flat');"><img src="images/toolbox/mshosh4.gif" width="21" height="20" alt="صورة بتأثير اسقاط" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_mtmoeg" onclick="bdr130cmd('mtmoeg','يرجى ادخال رابط الصورة',this,'https://','flat');"><img src="images/toolbox/mtmoeg.gif" width="21" height="20" alt="صورة متموجه" /></div></td>

</tr>
</table>
<script type="text/javascript">
showKeyboard();
</script>
</div>

<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr valign="top">
<td class="controlbar">
<textarea name="message" id="{$editorid}_textarea" rows="10" cols="60" style="display:block; width:$stylevar[messagewidth]; height:{$editor_height}px" tabindex="1" dir="$stylevar[textdirection]">$newpost[message]</textarea>
</td>
<if condition="$smiliebox"><td class="controlbar">$smiliebox</td></if>
</tr>
<tr>
<td colspan="2" class="controlbar">
<div id="massybar" style="font-size:10px;font-family:Tahoma">الصندوق الماسي الخامس -  Massy Version 5</div>
</td>
</tr>
</table>
</td>
</tr>
</table>

<input type="hidden" name="wysiwyg" id="{$editorid}_mode" value="$editortype" />

<script type="text/javascript">
<!--
vB_Editor['$editorid'] = new vB_Text_Editor('$editorid', $editortype, '$forumid', '$parsesmilie', undefined, '$ajax_extra');
vB_Editor['$editorid'].init_bdr130_button();
//-->
</script>]]></template>
		<template name="bdr130_headinclude" templatetype="template" date="1227979895" username="" version="5.0"><![CDATA[<!-- الرجاء ثم الرجاء ثم الرجاء عدم التعديل على الهاك او الاقتباس منه ولانسمح بذلك كليا اخوكم ابو عمر -->
<!--Javascript-->
<script type="text/javascript" src="massy/poem.js"></script>
<script type="text/javascript" src="massy/gradient.js"></script>
<style type="text/css">
.bdr130button {
	padding: 1px;
	border: none;
}
.rainbow{ behavior: url('massy/rainbow.htc') } 
.saleh-info {
	font-family: Arial;
	font-size: 15px;
	font-weight: bold;
	color: #000000;
	background-image: url('images/toolbox/info.png');
	background-color: #EAEEFB;
	background-repeat: no-repeat;
	background-position: right 10px;
	border: 1px solid #203FAA;
	padding: 15px 65px 10px 5px;
	display: block;
}
.saleh-caution {
	font-family: Arial;
	font-size: 15px;
	font-weight: bold;
	color: #000000;
	background-image: url('images/toolbox/caution.png');
	background-repeat: no-repeat;
	background-color: #FFFFCC;
	background-position: right 10px;
	border: 1px solid #990000;
	padding: 15px 65px 10px 5px;
}
.saleh-warning {
	font-family: Arial;
	font-size: 15px;
	font-weight: bold;
	color: #000000;
	background-image: url('images/toolbox/warning.png');
	background-color: #FFCCCC;
	background-repeat: no-repeat;
	background-position: right 10px;
	border: 1px solid #FF0000;
	padding: 15px 65px 10px 5px;
}

</style>
<!-- /  www.bdr130.net الجقوق محفوظة ولااسمح بازالتها او التعديل على الملفات اخوكم الدربيل  - ابو عمر -->
<script language="JavaScript">
<!--
function stopError() {
return true;
}
window.onerror = stopError;
// -->
</script>
<script>
nereidFadeObjects = new Object();
nereidFadeTimers = new Object();
function nereidFade(object, destOp, rate, delta){
if (!document.all)
return
if (object != "[object]"){  
setTimeout("nereidFade("+object+","+destOp+","+rate+","+delta+")",0);
return;
}
clearTimeout(nereidFadeTimers[object.sourceIndex]);
    diff = destOp-object.filters.alpha.opacity;
    direction = 1;
    if (object.filters.alpha.opacity > destOp){
    direction = -1;
    }
    delta=Math.min(direction*diff,delta);
    object.filters.alpha.opacity+=direction*delta;
    if (object.filters.alpha.opacity != destOp){
        nereidFadeObjects[object.sourceIndex]=object;
        nereidFadeTimers[object.sourceIndex]=setTimeout("nereidFade(nereidFadeObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate);
    }
}
</script>
<style>
.shakeimage{
position:relative
}
</style>
<script language="JavaScript1.2">
var rector=3
var stopit=0 
var a=1
function init(which){
stopit=0
shake=which
shake.style.left=0
shake.style.top=0
}
function rattleimage(){
if ((!document.all&&!document.getElementById)||stopit==1)
return
if (a==1){
shake.style.top=parseInt(shake.style.top)+rector
}
else if (a==2){
shake.style.left=parseInt(shake.style.left)+rector
}
else if (a==3){
shake.style.top=parseInt(shake.style.top)-rector
}
else{
shake.style.left=parseInt(shake.style.left)-rector
}
if (a<4)
a++
else
a=1
setTimeout("rattleimage()",50)
}
function stoprattle(which){
stopit=1
which.style.left=0
which.style.top=0
}
</script>

<script language="JavaScript1.2">
function flashit(){
if (!document.all)
return
if (myexample.style.borderColor=="blue")
myexample.style.borderColor="red"
else
myexample.style.borderColor="blue"
}
setInterval("flashit()", 200)
</script>
<!-- /  www.bdr130.net الجقوق محفوظة ولااسمح بازالتها او التعديل على الملفات اخوكم الدربيل  - ابو عمر -->
				<!--hide-addon-->
		<if condition="$vboptions[disable_ajax] != 2">
			<script type="text/javascript"><!--
			var hpostid = 0;
			var hmax = 0;
			function findposts(obj,call){
				ruf = call;
				var laenge = obj.innerHTML.length;
				if (hmax == '0'){
					hmax = laenge;
				} else if (hmax < laenge){
					hmax = laenge;
					Rufen(ruf);
				}
			}
			var hide_aktiv = null;
			var unhide = null;
			var zahl = 0;
			var old;
			var postid
			function Rufen(posting){
				if (window.XMLHttpRequest) {
					unhide = new XMLHttpRequest();
				} else if (window.ActiveXObject) {
					unhide = new ActiveXObject("Microsoft.XMLHTTP");
				}
				old = posting
				var postids = posting.split(",");
				if ( zahl < postids.length){
					postid = postids[zahl];
					unhide.open("POST", "showthread.php", true);
					unhide.onreadystatechange = ausgeben;
					unhide.setRequestHeader(
						"Content-Type",
						"application/x-www-form-urlencoded");
					unhide.send("do=whatever&p="+postid+"&all="+old);
				} else zahl = 0;
			}

			function ausgeben() {
				if (unhide.readyState == 4) {
					if (unhide.responseText != 'sid_hide_still_active'){
						document.getElementById("post_message_"+postid).innerHTML =
							unhide.responseText;
						zahl++;
						Rufen(old);
					} else {
						zahl++;
						Rufen(old);
					}
				}
				else setTimeout('ausgeben()', 200);
			}
			//-->
			</script>
		</if>
<!-- الرجاء ثم الرجاء ثم الرجاء عدم التعديل على الهاك او الاقتباس منه ولانسمح بذلك كليا اخوكم ابو عمر -->]]></template>
		<template name="bdr130_marq_form" templatetype="template" date="1228262828" username="" version="5.0"><![CDATA[<html dir="rtl">

<head>
<meta http-equiv="Content-Language" content="ar-sa">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
<title>إضافة نص متحرك</title>
<!-- الرجاء ثم الرجاء ثم الرجاء عدم التعديل على الهاك او الاقتباس منه ولانسمح بذلك كليا اخوكم ابو عمر -->
<style>
  html, body, td, button, div, input, select, fieldset { font-family: MS Shell Dlg; font-size: 8pt; };
.style1 {
	color: #FF0000;
}
.style3 {
	text-align: center;
}
.style4 {
	font-family: "Times New Roman";
}
</style>
<SCRIPT>

window.onerror = HandleError

function HandleError(message, url, line) {
  var str = "حصل خطأ في هذا الصندوق." + "\n\n"
  + "الخطأ: " + line + "\n" + message;
  alert(str);
  window.returnValue = "Error";
  window.close();
  return true;
}
function DoPreview(){
  fd1 = document.all["ff1"].value;
  fd2 = document.all["ff2"].value;
  fd4 = document.all["ff4"].value;
 for (var i=0; i < document.all["ff3"].length; i++)
   {
   if (document.all["ff3"][i].checked)
      {
      var fd3 = document.all["ff3"][i].value;
      }
   }
   if(fd3==1){
        var pre = '<marquee direction="'+fd2+'" onmouseover="this.stop()" onmouseout="this.start()" scrollamount="'+fd1+'" scrolldelay="3" behavior="'+fd4+'">نموذج</marquee>';
   }else if(fd3==2){
        var pre = '<marquee direction="'+fd2+'" onmouseover="this.scrollAmount=2" onmouseout="this.scrollAmount='+fd1+'" scrollamount="'+fd1+'" scrolldelay="3" behavior="'+fd4+'">نموذج</marquee>';
   }else{
        var pre = '<marquee direction="'+fd2+'" scrollamount="'+fd1+'" scrolldelay="3" behavior="'+fd4+'">نموذج</marquee>';
   }
   document.getElementById('preview').innerHTML = pre
}
function DoMarq(){
  var Result="Error";
  fd1 = document.all["ff1"].value;
  fd2 = document.all["ff2"].value;
  fd4 = document.all["ff4"].value;
 for (var i=0; i < document.all["ff3"].length; i++)
   {
   if (document.all["ff3"][i].checked)
      {
      var fd3 = document.all["ff3"][i].value;
      }
   }
  window.returnValue = fd1+';'+fd2+';'+fd3+';'+fd4;
  window.close();
}
</SCRIPT>
</head>

<body onload="DoPreview()" style="background: threedface; color: windowtext;" scroll="no" topmargin="0" leftmargin="0" bottommargin="0" rightmargin="0">

<table border="0" width="100%" cellspacing="0" cellpadding="0">
	<tr>
		<td align="center">
	<fieldset style="padding: 2; width:350">
	<legend>نموذج إضافة نص متحرك :</legend>
	<table border="0" width="100%">
		<tr>
			<td width="25%">نوع التحرك :</td>
			<td width="75%" class="style1">
				<select name="ff4" onchange="DoPreview()">
				<option selected="" value="scroll">تمرير</option>
				<option value="alternate">متأرجح</option>
				</select>
				</td>
		</tr>
		<tr>
			<td width="25%">السـرعــة:</td>
			<td width="75%" class="style1">
				<select name="ff1" onchange="DoPreview()">
				<option value="1">بطيء جداً</option>
				<option value="2">بطيء</option>
				<option selected="" value="3">متوسط</option>
				<option value="4">سريع</option>
				<option value="6">سريع جداً</option>
				</select>
				</td>
		</tr>
		<tr>
			<td width="25%">الإتجــاه:</td>
			<td width="75%">
				<select name="ff2" onchange="DoPreview()">
				<option selected="" value="right">إلى اليمين</option>
				<option value="left">إلى اليسار</option>
				<option value="up">إلى الإعلى</option>
				<option value="down">إلى الأسفل</option>
				</select>
				</td>
		</tr>
		<tr>
			<td width="25%">الحدث عند مرور الماوس :</td>
			<td width="75%">
				<input name="ff3" type="radio" onclick="DoPreview()" value="1" id="over1"><label for="over1"> تو قف عند مرور
				الماوس .</label><br /><input name="ff3" type="radio" onclick="DoPreview()"  value="2" id="over2"><label for="over2"> إبطاء
				السرعة عند مرور الماوس .</label><br />
				<input checked="checked" name="ff3" type="radio" onclick="DoPreview()"  value="3" id="over3"><label for="over3">
			&nbsp;لا شيء</label></td>
		</tr>
	</table>
	</fieldset><br />
	<fieldset style="padding: 2; width:350">
	<legend>معاينة :</legend>
    <div style="background-color: #ffffff;font-family: Arial;font-size: 14pt;font-weight: bold;" id="preview">
    </div>
    </fieldset>
    <p align="center"><button onclick="DoMarq();" type="submit" name="B1" style="height: 25px">
		تنفيــــــــذ</button>&nbsp;
	<button onClick="window.close();" name="B2" style="height: 25px" type="reset">
	&nbsp;إلغاء الأمــــر</button></p>
</td>
	</tr>
</table>
<p class="style3">الصندوق الماسي <span class="style4">™</span></p>

</body>

</html>]]></template>
		<template name="bdr130_quickreply" templatetype="template" date="1228262700" username="" version="5.0"><![CDATA[<script type="text/javascript">
        var shortoptions = new Array("$sdefault[1]","$sdefault[2]","$sdefault[3]","$sdefault[4]","$sdefault[5]","$sdefault[6]","$sdefault[7]","$sdefault[8]","$sdefault[9]","$sdefault[10]","$sdefault[11]","$sdefault[12]");
    bdr130_option_onclick = function(e)
    {
     var arg = this.title;
     if (arg != '')
     {
            vB_Editor['$editorid'].insert_text(' '+arg+' ', false);
     }
        vBmenu.hide();
    }
    bdr130_select_onchange = function(e)
    {
     var arg = this.options[this.selectedIndex].value;
     if (arg != '')
     {
            vB_Editor['$editorid'].insert_text(' '+arg+' ', false);
     }
     this.selectedIndex = 0;
    }
    vB_Text_Editor.prototype.table = function(e)
    {
        code = window.open("massy.php?action=table&e=$editorid", "table", "toolbar=no,scrollbars=yes,resizable=yes,width=600,height=450");
    };
      function _sndReplaceReq(action, file, param) {
            http = _createRequestObject();
          http.open(action, 'massy/rpc.php?action='+file, true);
          if(action=='POST'){
              http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
              http.setRequestHeader("Content-length", param.length);
              http.setRequestHeader("Connection", "close");
          }
          http.onreadystatechange = function(){if(http.readyState == 4){vB_Editor['{$editorid}'].insert_text(http.responseText, false);}};
          http.send(param);
      }
        vB_Text_Editor.prototype.colo = function(e)
        {
            code = showModalDialog("massy/color.html","","help:no; center:yes; status:no; dialogHeight:176px; dialogWidth:356px");
         if (!code)
          return;
             fetch_object('{$editorid}_color_bar').style.backgroundColor = code;
             vB_Editor['{$editorid}'].format(e, 'forecolor', code);
        };
</script>
<script type="text/javascript" src="massy/massy.js"></script>
<if condition="$show['editor_toolbar']">
<!-- هاك عام ـ توسيط أزرار محرر الرد السريع -->
<!-- لحذف الهاك نحذف السطر التالي -->
<center>
<div id="{$editorid}_controls" class="controlbar">
 $vBeditTemplate[clientscript]
<script type="text/javascript">
        var shortoptions = new Array("$sdefault[1]","$sdefault[2]","$sdefault[3]","$sdefault[4]","$sdefault[5]","$sdefault[6]","$sdefault[7]","$sdefault[8]","$sdefault[9]","$sdefault[10]","$sdefault[11]","$sdefault[12]");
function bdr130cmd(tag,prompt,button,dflt,typ){
    if(typ == "flat"){
        result = vB_Editor['$editorid'].show_prompt(prompt, dflt);
        if(result){
            var text = '['+tag+']' + result + '[/'+tag+']';
        }else{
            return false
        }
    }else if(typ == "color"){
        selection = vB_Editor['$editorid'].get_selection();
        if (selection == "") {
            alert("يجب تضليل أو تحديد النص أولا");
            return;
        }
        code = showModalDialog("massy/color.html","","help:no; center:yes; status:no; dialogHeight:176px; dialogWidth:356px");
        if(code){
            var text = '['+tag+'='+code+']' + selection + '[/'+tag+']';
        }else{
            return false
        }
    }else if(typ == "flash"){
        flink = vB_Editor['$editorid'].show_prompt('يرجى ادخال رابط الفلاش :', 'https://');
        fw    = vB_Editor['$editorid'].show_prompt('يرجى ادخال عرض الفلاش :', '350');
        fh    = vB_Editor['$editorid'].show_prompt('يرجى ادخال طول الفلاش :', '400');
        if(flink && fw && fh){
            var text = '['+tag+'='+flink+']WIDTH='+fw+' HEIGHT='+fh+'[/'+tag+']';
        }else{
            return false
        }
    }else{
        selection = vB_Editor['$editorid'].get_selection();
        if (selection == "") {
            alert("يجب تضليل أو تحديد النص أولا");
            return;
        }
        result = vB_Editor['$editorid'].show_prompt(prompt, dflt);
        if(result){
            var text = '['+tag+'='+result+']' + selection + '[/'+tag+']';
        }else{
            return false
        }
    }
    vB_Editor['$editorid'].insert_text(text, false);
    return false;
}
function addKeys(buttons) {
    var tbl, newRow;
    document.write('<table dir="rtl" id="keyboardTable" border="0" cellpadding="0" cellspacing="0" width="1px" style="display:none">');
    document.write('<tr><td>');
    newRow = 1;
    for (var i = 0; i < buttons.length; i++) {
        if (i % 15 == 0) {
            document.write('<table dir="rtl" align="center" background="images/toolbox/key_1.gif" border="0" cellpadding="0" cellspacing="0" width="1px"><tr>');
            newRow = 0;
        }
        tbl = '<td height="29px"><div onmouseout="this.parentNode.background = \'images/toolbox/key_1.gif\';this.style.color = \'black\';" onmouseover="this.parentNode.background = \'images/toolbox/key_2.gif\';this.style.color = \'white\';" onclick="vB_Editor[\'$editorid\'].insert_text(\'' + buttons[i] + '\',false);" style="font-size:x-small;font-family:tahoma;font-weight:bold;cursor:hand;text-align:center;width:30px;height:20px;color:black" tag="qkeys_' + buttons[i] + '|||qkeys">';
        if (buttons[i] == " ") buttons[i] = "&nbsp;";
        tbl = tbl + buttons[i] + '</div>';
        tbl = tbl + '</td>';
        document.write(tbl);
        if ((i + 1) % 15 == 0) {
            document.write('</tr></table>');
            newRow = 1;
        }
    }
    if (newRow == 0) {
        document.write('</tr></table>');
    }
    document.write('</td></tr></table>');
}
    bdr130_option_onclick = function(e)
    {
     var arg = this.title;
     if (arg != '')
     {
            vB_Editor['$editorid'].insert_text(' '+arg+' ', false);
     }
        vBmenu.hide();
    }
    bdr130_select_onchange = function(e)
    {
     var arg = this.options[this.selectedIndex].value;
     if (arg != '')
     {
            vB_Editor['$editorid'].insert_text(' '+arg+' ', false);
     }
     this.selectedIndex = 0;
    }
    vB_Text_Editor.prototype.table = function(e)
    {
        code = window.open("massy.php?action=table&e=$editorid", "table", "toolbar=no,scrollbars=yes,resizable=yes,width=600,height=450");
    };
      function _sndReplaceReq(action, file, param) {
            http = _createRequestObject();
          http.open(action, 'massy/rpc.php?action='+file, true);
          if(action=='POST'){
              http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
              http.setRequestHeader("Content-length", param.length);
              http.setRequestHeader("Connection", "close");
          }
          http.onreadystatechange = function(){if(http.readyState == 4){vB_Editor['{$editorid}'].insert_text(http.responseText, false);}};
          http.send(param);
      }
        vB_Text_Editor.prototype.keyboard = function(e)
        {
            keyboardTabl = fetch_object('keyboardTable');
            if (keyboardTabl.style.display == "none") {
                keyboardTabl.style.display = "inline";
                fetch_object('{$editorid}_cmd_keyboard').state = true;
            }else {
                keyboardTabl.style.display = "none";
                fetch_object('{$editorid}_cmd_keyboard').state = false;
            }
        };
        vB_Text_Editor.prototype.colo = function(e)
        {
            code = showModalDialog("massy/color.html","","help:no; center:yes; status:no; dialogHeight:176px; dialogWidth:356px");
         if (!code)
          return;
             fetch_object('{$editorid}_color_bar').style.backgroundColor = code;
             vB_Editor['{$editorid}'].format(e, 'forecolor', code);
        };
        vB_Text_Editor.prototype.upload = function(e)
        {
            code = window.open("$vboptions[upload_site]", "", "toolbar=no,scrollbars=yes,resizable=yes,width=800,height=450");
        };
</script>
<script type="text/javascript" src="massy/massy.js"></script>
<table cellpadding="0" cellspacing="0" border="0">
<tr>
 <td id="$editorid" class="vBulletin_editor" width="100%">
  <div id="{$editorid}_controls0" class="controlbar">
   <table cellpadding="0" cellspacing="0" border="0">
   <tr>
    <td><div class="imagebutton" id="{$editorid}_cmd_removeformat"><img src="$stylevar[imgdir_editor]/removeformat.gif" width="21" height="20" alt="$vbphrase[remove_text_formatting]" /></div></td>
   <if condition="$show['font_bbcode'] OR $show['size_bbcode']">
    <td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
   </if>
   <if condition="$show['font_bbcode']">
    <td><div class="imagebutton" id="{$editorid}_popup_fontname" title="$vbphrase[fonts]">
     <table cellpadding="0" cellspacing="0" border="0">
     <tr>
      <td class="popup_feedback"><div id="{$editorid}_font_out" style="width:91px">&nbsp;</div></td>
      <td class="popup_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" width="11" height="16" alt="" /></td>
     </tr>
     </table>
    </div></td>
   </if>
    <td><div class="imagebutton" id="{$editorid}_popbdr_shorts" title="الاختصارات">
     <table cellpadding="0" cellspacing="0" border="0">
     <tr>
      <td class="popup_feedback"><div id="{$editorid}_short_out" style="width:55px">&nbsp;</div></td>
      <td class="popup_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" width="11" height="16" alt="" /></td>
     </tr>
     </table>
    </div></td>
   <if condition="$show['size_bbcode']">
    <td><div class="imagebutton" id="{$editorid}_popup_fontsize" title="$vbphrase[sizes]">
     <table cellpadding="0" cellspacing="0" border="0">
     <tr>
      <td class="popup_feedback"><div id="{$editorid}_size_out" style="width:25px">&nbsp;</div></td>
      <td class="popup_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" width="11" height="16" alt="" /></td>
     </tr>
     </table>
    </div></td>
   </if>
   <if condition="$show['color_bbcode']">
    <td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
    <td><div class="imagebutton" id="{$editorid}_popup_forecolor" title="$vbphrase[colors]">
     <table cellpadding="0" cellspacing="0" border="0">
     <tr>
      <td id="{$editorid}_color_out"><img src="images/toolbox/color.gif" width="21" height="16" alt="" /><img src="$vboptions[cleargifurl]" id="{$editorid}_color_bar" alt="" style="background-color:black" width="21" height="4" /></td>
      <td class="alt_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" width="11" height="16" alt="" /></td>
     </tr>
     </table>
    </div></td>
   </if>
                <td><div class="imagebutton" id="{$editorid}_cmd_colo"><img src="images/toolbox/colorpicker.gif" width="21" height="20" alt="اختيار لون" /></div></td>
   <if condition="$show['wysiwygsmilies']">
    <td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
    <td><div class="imagebutton" id="{$editorid}_popup_smilie" title="$vbphrase[smilies]">
     <table cellpadding="0" cellspacing="0" border="0">
     <tr>
      <td><img src="$stylevar[imgdir_editor]/smilie.gif" alt="" width="21" height="20" /></td>
      <td class="alt_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" width="11" height="16" alt="" /></td>
     </tr>
     </table>
    </div></td>
   </if>
   <if condition="$show['attach']">
    <td><div class="imagebutton" id="{$editorid}_popup_attach" title="$vbphrase[attachments]">
     <table cellpadding="0" cellspacing="0" border="0">
     <tr>
      <td><img src="$stylevar[imgdir_editor]/attach.gif" alt="" width="21" height="20" /></td>
      <td class="alt_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" width="11" height="16" alt="" /></td>
     </tr>
     </table>
    </div></td>
   </if>
    <!--
    <td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
    <td><div class="imagebutton" id="{$editorid}_cmd_cut"><img src="$stylevar[imgdir_editor]/cut.gif" width="21" height="20" alt="$vbphrase[cut]" /></div></td>
    <td><div class="imagebutton" id="{$editorid}_cmd_copy"><img src="$stylevar[imgdir_editor]/copy.gif" width="21" height="20" alt="$vbphrase[copy]" /></div></td>
    <td><div class="imagebutton" id="{$editorid}_cmd_paste"><img src="$stylevar[imgdir_editor]/paste.gif" width="21" height="20" alt="$vbphrase[paste]" /></div></td>
    -->
    <td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
    <td><div class="imagebutton" id="{$editorid}_cmd_undo"><img src="images/toolbox/undo.gif" width="21" height="20" alt="$vbphrase[undo]" /></div></td>
    <td><div class="imagebutton" id="{$editorid}_cmd_redo"><img src="images/toolbox/redo.gif" width="21" height="20" alt="$vbphrase[redo]" /></div></td>
       <td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
                <td><div class="imagebutton" id="{$editorid}_cmd_keyboard"><img src="images/toolbox/zkharf.gif" width="21" height="20" alt="زخرفة النص" /></div></td>
                 <td width="1%"><div>&nbsp;<a href="#" onclick="vB_Editor['$editorid'].open_smilie_window(smiliewindow_x, smiliewindow_y); return false"><img border="0" src="images/smilies/smile.gif" width="16" height="16" alt="الإبتسامات"></a></div>
   <td width="100%">&nbsp;</td>
   <if condition="is_browser('ie') AND !is_browser('mac')">
    <td><div class="imagebutton" id="{$editorid}_cmd_spelling"><img src="images/toolbox/spelling.gif" width="21" height="20" alt="$vbphrase[check_spelling]" /></div></td>
   </if>
    <td>
     <div class="imagebutton" id="{$editorid}_cmd_resize_0_100"><img src="$stylevar[imgdir_editor]/resize_0.gif" width="21" height="9" alt="$vbphrase[decrease_size]" /></div>
     <div class="imagebutton" id="{$editorid}_cmd_resize_1_100"><img src="$stylevar[imgdir_editor]/resize_1.gif" width="21" height="9" alt="$vbphrase[increase_size]" /></div>
    </td>
   <if condition="$show['wysiwyg_compatible']">
    <td><div class="imagebutton" id="{$editorid}_cmd_switchmode"><img src="$stylevar[imgdir_editor]/switchmode.gif" width="21" height="20" alt="$vbphrase[switch_editor_mode]" /></div></td>
   </if>
   </tr>
   </table>
   <if condition="!$show['basicbbcodeonly']">
   <table cellpadding="0" cellspacing="0" border="0">
   <tr>
   <if condition="$show['basic_bbcode']">
    <td><div class="imagebutton" id="{$editorid}_cmd_bold0"><img src="images/toolbox/bold.gif" width="21" height="20" alt="$vbphrase[bold]" /></div></td>
    <td><div class="imagebutton" id="{$editorid}_cmd_italic0"><img src="images/toolbox/italic.gif" width="21" height="20" alt="$vbphrase[italic]" /></div></td>
    <td><div class="imagebutton" id="{$editorid}_cmd_underline0"><img src="images/toolbox/underline.gif" width="21" height="20" alt="$vbphrase[underline]" /></div></td>
                <td><div class="imagebutton" id="{$editorid}_cmd_wrap0_overline"><img src="images/toolbox/overline.gif" width="21" height="20" alt="خط بالاعلى" /></div></td>
   </if>
   <if condition="$show['align_bbcode']">
    <td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
    <if condition="$stylevar['textdirection'] == 'ltr'">
    <td><div class="imagebutton" id="{$editorid}_cmd_justifyleft"><img src="$stylevar[imgdir_editor]/justifyleft.gif" width="21" height="20" alt="$vbphrase[align_left]" /></div></td>
    <td><div class="imagebutton" id="{$editorid}_cmd_justifycenter"><img src="$stylevar[imgdir_editor]/justifycenter.gif" width="21" height="20" alt="$vbphrase[align_center]" /></div></td>
    <td><div class="imagebutton" id="{$editorid}_cmd_justifyright"><img src="$stylevar[imgdir_editor]/justifyright.gif" width="21" height="20" alt="$vbphrase[align_right]" /></div></td>
    <else />
    <td><div class="imagebutton" id="{$editorid}_cmd_justifyright"><img src="$stylevar[imgdir_editor]/justifyright.gif" width="21" height="20" alt="$vbphrase[align_right]" /></div></td>
    <td><div class="imagebutton" id="{$editorid}_cmd_justifycenter"><img src="$stylevar[imgdir_editor]/justifycenter.gif" width="21" height="20" alt="$vbphrase[align_center]" /></div></td>
    <td><div class="imagebutton" id="{$editorid}_cmd_justifyleft"><img src="$stylevar[imgdir_editor]/justifyleft.gif" width="21" height="20" alt="$vbphrase[align_left]" /></div></td>
    <td><div class="bdr130button" id="{$editorid}_bdr130_wrap0_justify"><img src="images/toolbox/justify.gif" width="21" height="20" alt="محاذاة إلى الأطراف" /></div></td>
    </if>
   </if>
   <if condition="$show['align_bbcode'] OR $show['list_bbcode']">
    <td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
   </if>
   <if condition="$show['list_bbcode']">
    <td><div class="imagebutton" id="{$editorid}_cmd_insertorderedlist"><img src="images/toolbox/insertorderedlist.gif" width="21" height="20" alt="$vbphrase[ordered_list]" /></div></td>
    <td><div class="imagebutton" id="{$editorid}_cmd_insertunorderedlist"><img src="images/toolbox/insertunorderedlist.gif" width="21" height="20" alt="$vbphrase[unordered_list]" /></div></td>
   </if>
    <if condition="$stylevar['textdirection'] == 'ltr'">
    <td><div class="imagebutton" id="{$editorid}_cmd_outdent"><img src="$stylevar[imgdir_editor]/outdent.gif" width="21" height="20" alt="$vbphrase[decrease_indent]" /></div></td>
    <td><div class="imagebutton" id="{$editorid}_cmd_indent"><img src="$stylevar[imgdir_editor]/indent.gif" width="21" height="20" alt="$vbphrase[increase_indent]" /></div></td>
    <else />
    <td><div class="imagebutton" id="{$editorid}_cmd_outdent"><img src="images/toolbox/indent.gif" width="21" height="20" alt="$vbphrase[decrease_indent]" /></div></td>
    <td><div class="imagebutton" id="{$editorid}_cmd_indent"><img src="images/toolbox/outdent.gif" width="21" height="20" alt="$vbphrase[increase_indent]" /></div></td>
    </if>
 <if condition="$show['url_bbcode'] OR $show['img_bbcode']">
  <td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
 </if>
 <if condition="$show['url_bbcode']">
  <td><div class="imagebutton" id="{$editorid}_cmd_createlink"><img src="images/toolbox/createlink.gif" width="21" height="20" alt="$vbphrase[insert_link]" /></div></td>
 </if>
 <if condition="$show['img_bbcode']">
  <td><div class="imagebutton" id="{$editorid}_cmd_insertimage"><img src="images/toolbox/insertimage.gif" width="21" height="20" alt="$vbphrase[insert_image]" /></div></td>
 </if>
 <if condition="$show['quote_bbcode']">
    <td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
    <td><div class="imagebutton" id="{$editorid}_cmd_wrap0_quote0"><img src="images/toolbox/quote.gif" width="21" height="20" alt="$vbphrase[wrap_quote_tags]" /></div></td>
   </if>
   <if condition="$show['code_bbcode'] OR $show['html_bbcode'] OR $show['php_bbcode']">
    <if condition="$show['code_bbcode']">
     <td><div class="imagebutton" id="{$editorid}_cmd_wrap0_code"><img src="$stylevar[imgdir_editor]/code.gif" width="21" height="20" alt="$vbphrase[wrap_code_tags]" /></div></td>
    </if>
    <if condition="$show['html_bbcode']">
     <td><div class="imagebutton" id="{$editorid}_cmd_wrap0_html"><img src="$stylevar[imgdir_editor]/html.gif"  width="21" height="20" alt="$vbphrase[wrap_html_tags]" /></div></td>
    </if>
    <if condition="$show['php_bbcode']">
     <td><div class="imagebutton" id="{$editorid}_cmd_wrap0_php"><img src="images/toolbox/php.gif" width="21" height="20" alt="$vbphrase[wrap_php_tags]" /></div></td>
    </if>
   </if>
                    <td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
                    <td><div class="imagebutton" id="{$editorid}_cmd_wrap0_s"><img src="images/toolbox/strike.gif" width="21" height="20" alt="يتوسطه خط" /></div></td>
                    <td><div class="bdr130button" id="{$editorid}_bdr130_wrap0_hide"><img src="images/toolbox/hide.gif" width="21" height="20" alt="كتابة مخفية" /></div></td>
   <if condition="$vBeditTemplate['extrabuttons'] != '' ">
    <td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
    $vBeditTemplate[extrabuttons]
   </if>
   </tr>
   </table>
   </if>
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td><div class="imagebutton" id="{$editorid}_cmd_poem"><img src="images/toolbox/poem.gif" width="21" height="20" alt="قصيدة شعرية" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_gradient"><img src="images/toolbox/gradient.gif" width="21" height="20" alt="نص بالوان متدرجة" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_frame"><img src="images/toolbox/frame.gif" width="21" height="20" alt="إنشاء إطار" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_marq"><img src="images/toolbox/marq.gif" width="21" height="20" alt="النص المتحرك" /></div></td>
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<td><div class="imagebutton" id="{$editorid}_cmd_hcal"><img src="images/toolbox/h_calendar.gif" width="21" height="20" alt="إضافة تاريخ اليوم الهجري" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_numbers"><img src="images/toolbox/numbers.gif" width="21" height="20" alt="تحويل الارقام إلى كتابة" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_keyb"><img src="images/toolbox/keyb.gif" width="21" height="20" alt="تصحيح الكيبورد" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_terms"><img src="images/toolbox/terms.gif" width="21" height="20" alt="ترجمة لفظية للنص" /></div></td>
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
 <td><div class="imagebutton" id="{$editorid}_cmd_table"><img src="images/toolbox/table.gif" width="21" height="20" alt="اضافة جدول" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_textformat"><img src="images/toolbox/text.gif" width="21" height="20" alt="منسق النصوص" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_bor" onclick="bdr130cmd('bor','',this,'','color');"><img src="images/toolbox/bor.gif" width="21" height="20" alt="جدول متقطع بخيار اللون" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_wrap0_gdwl"><img src="images/toolbox/gdwl.gif" width="21" height="20" alt="اضافة اطار صورة ملون بالوان متحركه" /></div></td>
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_wrap1_info"><img src="images/toolbox/info.gif" width="21" height="20" alt="ملاحظة" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_wrap1_caution"><img src="images/toolbox/caution.gif" width="21" height="20" alt="تنبيه" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_wrap1_warning"><img src="images/toolbox/warning.gif" width="21" height="20" alt="تحذير" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_upload"><img src="images/toolbox/upload.gif" width="21" height="20" alt="مركز تحميل الصور والملفات" /></div></td>
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_wrap0_motfrk"><img src="images/toolbox/motfrk.gif" width="21" height="20" alt="حروف متفرقة غير متشابكة مثال : أبـ و عـ مـ ر" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_wrap0_mklb1"><img src="images/toolbox/mklb1.gif" width="21" height="20" alt="نص مقلوب أفقي" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_wrap0_mklb2"><img src="images/toolbox/mklb2.gif" width="21" height="20" alt="نص مقلوب للاعلى" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_wrap0_mklb"><img src="images/toolbox/mklb.gif" width="21" height="20" alt="نص مقلوب عمودي" /></div></td>
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_wrap0_blur1"><img src="images/toolbox/blur1.gif" width="21" height="20" alt="نص مشوش بدرجة عالية" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_wrap0_blur"><img src="images/toolbox/blur.gif" width="21" height="20" alt="نص مشوش بدرجة متوسطة" /></div></td>
</tr>
<tr>
<td><div class="bdr130button" id="{$editorid}_bdr130_wrap0_fot1"><img src="images/toolbox/fot1.gif" width="21" height="20" alt="نص بالوان عشوائية متحركه لكل حرف : ملاحظة لابد من اختيار هذه الميزة قبل اختيار الحجم ونوع الخط" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_3mr" onclick="bdr130cmd('3mr','يرجى ادخال رابط الصورة',this,'backgrounds/16.gif');"><img src="images/toolbox/3mr.gif" width="21" height="20" alt="خلفية صورية للموضوع" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_mark" onclick="bdr130cmd('mark','',this,'','color');"><img src="images/toolbox/mark.gif" width="21" height="20" alt="تظليل النص" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_wrap0_caps"><img src="images/toolbox/caps.gif" width="21" height="20" alt="تحويل الحروف الإنجليزية الصغيرة إلى كبيرة مثل abc &raquo; ABC ولاتعمل مع العربية" /></div></td>
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_wrap0_Unload"><img src="images/toolbox/unload.gif" width="21" height="20" alt="ضع الرسالة التي تحب ان تودع قارىء موضوعك بها اثناء خروجه من الموضوع" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_msg"><img src="images/toolbox/msg.gif" width="21" height="20" alt="يمكنك وضع رسالة تخرج تلقائياً بمجرد دخول الزائر لموضوعك" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_shr71"><img src="images/toolbox/shr71.gif" width="21" height="20" alt="بالون حوار وشرح لاي صورة تختارها ملاحظه لاتحدد عنوان الصورة قبل النقر على الزر" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_shr7" onclick="bdr130cmd('shr7','ادخل الشرح الذي تريد ظهوره عند المرور بالماوس',this,'مثل شرح او رساله او تعليق الخ');"><img src="images/toolbox/shr7.gif" width="21" height="20" alt="بالون حوار او شرح لاي كلمة تحددها" /></div></td>
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_shr72" onclick="bdr130cmd('shr72','ادخل الشرح الذي تريد ظهوره عند المرور بالماوس',this,'مثل شرح او رساله او تعليق الخ');"><img src="images/toolbox/shr72.gif" width="21" height="20" alt="شرح كلمة تختارها اسفل المتصفح انظر اسفل المتصفح بعد وضع الماوس على الكلمة 42 حرف فقط" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_button" onclick="bdr130cmd('button','ادخل الشرح الذي تريد ظهوره عند النقر بالماوس',this,'مثل شرح او رساله او تعليق الخ');"><img src="images/toolbox/button.gif" width="21" height="20" alt="زر شرح برسالة مستقله  ملاحظه يجب ان تكون الرسالة غير طويله" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_click" onclick="bdr130cmd('click','ادخل الشرح الذي تريد ظهوره عند النقر بالماوس',this,'مثل شرح او رساله او تعليق الخ');"><img src="images/toolbox/click.gif" width="21" height="20" alt="يمكنك وضع رسالة على اي كلمة تريد وتخرج بمجرد النقر عليها" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_mouseover" onclick="bdr130cmd('mouseover','ادخل الشرح الذي تريد ظهوره عند المرور بالماوس',this,'مثل شرح او رساله او تعليق الخ');"><img src="images/toolbox/mouseover.gif" width="21" height="20" alt="يمكنك وضع رسالة على اي نص تخرج بمجرد مرور الماوس على الكلمة المراده" /></div></td>
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_glow" onclick="bdr130cmd('glow','',this,'','color');"><img src="images/toolbox/glow.gif" width="21" height="20" alt="وضع اشعاعي" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_wrap0_blink"><img src="images/toolbox/blink.gif" width="21" height="20" alt="وميض" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_wrap0_glint"><img src="images/toolbox/glint.gif" width="21" height="20" alt="بريق" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_glow1" onclick="bdr130cmd('glow1','',this,'','color');"><img src="images/toolbox/glow1.gif" width="21" height="20" alt="نص محدد بلون" /></div></td>
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<td><div class="imagebutton" id="{$editorid}_cmd_youtube"><img src="images/toolbox/youtube.gif" width="21" height="20" alt="إضافة مقطع يوتوب YouTube" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_rplayer" onclick="bdr130cmd('rplayer','ادخل رابط الملف',this,'https://','flat');"><img src="images/toolbox/rplayer.gif" width="21" height="20" alt="تشغيل ملف رييل بلاير (rm,ra,ram)" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_flash1" onclick="bdr130cmd('flash1','',this,'','flash');"><img src="images/toolbox/flash1.gif" width="21" height="20" alt="فلاش شفاف" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_flash" onclick="bdr130cmd('flash','',this,'','flash');"><img src="images/toolbox/flash.gif" width="21" height="20" alt="تشغيل ملف فلاش (swf)" /></div></td>
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_media" onclick="bdr130cmd('media','ادخل رابط الملف',this,'https://','flat');"><img src="images/toolbox/media.gif" width="21" height="20" alt="تشغيل ملفات الصوت والصورة (mp3,wav,au,wma,mpg,mpeg,wmv,avi)" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_inserthr"><img src="images/toolbox/hr.gif" width="21" height="20" alt="إضافة خط أفقي ملون" /></div></td>
</tr>
<tr>
<td><div class="bdr130button" id="{$editorid}_bdr130_cc" onclick="bdr130cmd('cc','ادخل اسم الزر',this,'مثلا انقر هنا لمشاهدة المحتوى المخفي');"><img src="images/toolbox/cc.gif" width="21" height="20" alt="زر لاخراج محتوى مخفي" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_a7la1" onclick="bdr130cmd('a7la1','',this,'','color');"><img src="images/toolbox/a7la1.gif" width="21" height="20" alt="ظل ثابت للنص" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_all1" onclick="bdr130cmd('all1','',this,'','color');"><img src="images/toolbox/all1.gif" width="21" height="20" alt="ظل متدرج للنص" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_img2" onclick="bdr130cmd('img2','يرجى ادخال رابط الصورة',this,'https://','flat');"><img src="images/toolbox/img2.gif" width="21" height="20" alt="صورة بمؤثر التلاشي وبمجرد وضع الماوس عليها تتضح بشكلها الحقيقي" /></div></td>
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_img3" onclick="bdr130cmd('img3','يرجى ادخال رابط الصورة',this,'https://','flat');"><img src="images/toolbox/img3.gif" width="21" height="20" alt="مؤثر اهتزاز عشوائي على اي صورة تختارها حاول ان لاتكون الصورة كبيره" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_sor2" onclick="bdr130cmd('sor2','يرجى ادخال رابط الصورة',this,'https://','flat');"><img src="images/toolbox/sor2.gif" width="21" height="20" alt="صورة مقلوبه عموديا" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_sor1" onclick="bdr130cmd('sor1','يرجى ادخال رابط الصورة',this,'https://','flat');"><img src="images/toolbox/sor1.gif" width="21" height="20" alt="صورة مقلوبه افقيا" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_m3kos" onclick="bdr130cmd('m3kos','يرجى ادخال رابط الصورة',this,'https://','flat');"><img src="images/toolbox/m3kos.gif" width="21" height="20" alt="عكس الوان الصورة" /></div></td>
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_shfaf" onclick="bdr130cmd('shfaf','يرجى ادخال رابط الصورة',this,'https://','flat');"><img src="images/toolbox/shfaf.gif" width="21" height="20" alt="صورة شفافة من اليمين" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_ash3h" onclick="bdr130cmd('ash3h','يرجى ادخال رابط الصورة',this,'https://','flat');"><img src="images/toolbox/ash3h.gif" width="21" height="20" alt="صورة اشعه سينيه" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_rmade" onclick="bdr130cmd('rmade','يرجى ادخال رابط الصورة',this,'https://','flat');"><img src="images/toolbox/rmade.gif" width="21" height="20" alt="صورة بدرجات رمادي" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_shfaf1" onclick="bdr130cmd('shfaf1','يرجى ادخال رابط الصورة',this,'https://','flat');"><img src="images/toolbox/shfaf1.gif" width="21" height="20" alt="صورة شفافه من اليسار" /></div></td>
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_shfaf2" onclick="bdr130cmd('shfaf2','يرجى ادخال رابط الصورة',this,'https://','flat');"><img src="images/toolbox/shfaf2.gif" width="21" height="20" alt="صورة شفافه من الاطراف" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_aldl" onclick="bdr130cmd('aldl','يرجى ادخال رابط الصورة',this,'https://','flat');"><img src="images/toolbox/aldl.gif" width="21" height="20" alt="صورة بظل" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_mn7ot1" onclick="bdr130cmd('mn7ot1','يرجى ادخال رابط الصورة',this,'https://','flat');"><img src="images/toolbox/mn7ot1.gif" width="21" height="20" alt="صورة منحوته1" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_mn7ot2" onclick="bdr130cmd('mn7ot2','يرجى ادخال رابط الصورة',this,'https://','flat');"><img src="images/toolbox/mn7ot2.gif" width="21" height="20" alt="صورة منحوته2" /></div></td>
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<td><div class="imagebutton" id="{$editorid}_cmd_mtohg"><img src="images/toolbox/mtohg.gif" width="21" height="20" alt="صورة متوهجه" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_mshosh1" onclick="bdr130cmd('mshosh1','يرجى ادخال رابط الصورة',this,'https://','flat');"><img src="images/toolbox/mshosh1.gif" width="21" height="20" alt="صورة بتشويش ضبابي" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_mshosh2" onclick="bdr130cmd('mshosh2','يرجى ادخال رابط الصورة',this,'https://','flat');"><img src="images/toolbox/mshosh2.gif" width="21" height="20" alt="صورة بتشويش ازاحه" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_mshosh3" onclick="bdr130cmd('mshosh3','يرجى ادخال رابط الصورة',this,'https://','flat');"><img src="images/toolbox/mshosh3.gif" width="21" height="20" alt="صورة بتأثير ريح" /></div></td>
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_mshosh4" onclick="bdr130cmd('mshosh4','يرجى ادخال رابط الصورة',this,'https://','flat');"><img src="images/toolbox/mshosh4.gif" width="21" height="20" alt="صورة بتأثير اسقاط" /></div></td>
<td><div class="bdr130button" id="{$editorid}_bdr130_mtmoeg" onclick="bdr130cmd('mtmoeg','يرجى ادخال رابط الصورة',this,'https://','flat');"><img src="images/toolbox/mtmoeg.gif" width="21" height="20" alt="صورة متموجه" /></div></td>
</tr>
</table>
<script type="text/javascript">
showKeyboard();
</script>
</div>
</td>
</tr>
</table>
</div>
<!-- هاك عام ـ توسيط أزرار محرر الرد السريع -->
<!-- لحذف الهاك نحذف السطر التالي -->
</center>
</if>
<div class="controlbar" style="padding-$stylevar[right]:8px">
 <fieldset style="border:0px; padding:0px; margin:0px">
 <if condition="$show['qr_require_click']">
 <textarea name="message" id="{$editorid}_textarea" rows="10" cols="60" style="width:100%; height:{$editor_height}px" tabindex="1" dir="$stylevar[textdirection]" disabled="disabled">$vbphrase[click_quick_reply_icon]</textarea>
 <else />
 <textarea name="message" id="{$editorid}_textarea" rows="10" cols="60" style="width:100%; height:{$editor_height}px" tabindex="1" dir="$stylevar[textdirection]"></textarea>
 </if>
 </fieldset>
 <!--width:$stylevar[messagewidth]-->
</div>
<div class="controlbar" style="padding-$stylevar[right]:8px">
<div id="massybar" style="font-size:10px;font-family:Tahoma">الصندوق الماسي الخامس -  Massy Version 5</div>
</div>
<input type="hidden" name="wysiwyg" id="{$editorid}_mode" value="$editortype" />
<input type="hidden" name="styleid" value="$session[styleid]" />
<script type="text/javascript">
<!--
vB_Editor['$editorid'] = new vB_Text_Editor('$editorid', $editortype, '$forumid', '$parsesmilie');
vB_Editor['$editorid'].init_bdr130_button();
var QR_EditorID = '$editorid';
//-->
</script>  </script>]]></template>
		<template name="bdr130_sid_hide_noaccess" templatetype="template" date="1227888551" username="" version="5.0"><![CDATA[		<if condition="$vboptions[disable_ajax] != 2 AND $vboptions[sid_hide_ajax_on] == 1">
		<script type="text/javascript">
			if (hide_aktiv) window.clearInterval(hide_aktiv);
			var hide_aktiv = window.setInterval("findposts(fetch_object('posts'),'$hide_call')", 3000);
		</script>
		</if>
		<div id="hide_fieldset"><fieldset>
			<legend><span class="highlight">$vbphrase[sid_hide_post_hide]</span></legend>
			$hide_img
		</fieldset></div>]]></template>
		<template name="bdr130_table" templatetype="template" date="1228262836" username="" version="5.0"><![CDATA[$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle] - نموذج إنشاء جدول</title>
$headinclude
</head>
<body>

<form action="massy.php?action=table" method="post" name="table">
<input type="hidden" name="acti" value="weiter">
<input type="hidden" name="s" value="$session[sessionhash]">
<input type="hidden" name="wed" value="$_REQUEST[wed]">
<input type="hidden" name="do" value="bbcodepopup">
<input type="hidden" name="e" value="$_REQUEST[e]">
<table cellpadding="2" cellspacing="1" border="0" style="width:100%" class="tborder">
 <tr>
  <td colspan="2" class="tborder" id="tabletitle" align="center">
   <normalfont><b>إضافة جدول</b></font>
  </td>
 </tr>
 <tr>
  <td class="alt2" align="center"><normalfont><b>عرض الجدول</b></font></td>
  <td class="alt1"><input class="input" type="text" name="width" value="99%" size="4" maxlength="4" /></td>
 </tr>
 <tr>
  <td class="alt2" align="center"><normalfont><b>عدد الصفوف</b></font></td>
  <td class="alt1"><input class="input" type="text" name="split" value="1" size="2" maxlength="2" /></td>
 </tr>
 <tr>
  <td class="alt2" align="center"><normalfont><b>عدد الأعمدة</b></font></td>
  <td class="alt1"><input class="input" type="text" name="lines" value="2" size="2" maxlength="2" /></td>
 </tr>
 <tr>
  <td class="alt2" align="center"><normalfont><b>جعل الصف الأول كعنوان للأعمدة</b></font></td>
  <td class="alt1">
   <select name="r_title">
   <option value="1"$usetitle[1]>نعم</option>
   <option value="0"$usetitle[0]>لا</option>
   </select>
  </td>
 </tr>
 <tr>
  <td colspan="2" class="tcat" align="center">
   <input class="input" type="submit" name="submit" accesskey="w" value="متابعة">
  </td>
 </tr>
</table>
</form>

</body>
</html>]]></template>
		<template name="bdr130_table_2nd" templatetype="template" date="1228262839" username="" version="5.0"><![CDATA[$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle] - نموذج إنشاء جدول</title>
<!-- الرجاء ثم الرجاء ثم الرجاء عدم التعديل على الهاك او الاقتباس منه ولانسمح بذلك كليا اخوكم ابو عمر -->
$headinclude


<if condition="$_REQUEST[wed]">
<script type="text/javascript">
<!--
function replace_script() {
 var insert = this.document.bbformtable.inhalt.value;
 var count = this.document.bbformtable.zahl.value;
 var cols = this.document.bbformtable.cols.value;
 var rows = this.document.bbformtable.rows.value;
 var loop = 0;
 for (var i=0; i < rows;i++) {
  for (var j=0; j < cols;j++) {
   insert = insert.replace("<table cellpadding='0' cellspacing='1' border='0' class='tborder'>", "[table=$width]");
   insert = insert.replace("<tr class=alt2>", "[tr=alt2]");
   insert = insert.replace("<tr class=alt1>", "[tr=alt1]");
   insert = insert.replace("<tr class='thead'>", "[tr=tcat]");
   insert = insert.replace("<td align='center'>", "[td]");
   insert = insert.replace("</td>", "[/td]");
   insert = insert.replace("</tr>", "[/tr]");
   insert = insert.replace("</table>", "[/table]");
   var deli = "<input class='bginput' type='text' id='ein" + loop + "' name='ein" + loop + "' value='' size='10' maxlength='50'>";
   var inp = document.getElementById('ein' + loop).value;
   insert = insert.replace(deli, inp);
   loop++;
  }
 }
/*var bname = navigator.appName;
 if (bname == "Microsoft Internet Explorer")
 {
 var newins = opener.document.frames["htmlwindow"].innerHTML + insert;
 opener.document.frames["htmlwindow"].innerHTML = newins;
 opener.document.frames["htmlwindow"].focus();
 self.close();
 }
 else
 {
 var newins = opener.htmlbox.body.innerHTML + insert;
 opener.htmlbox.body.innerHTML = newins;
 opener.htmlbox.body.focus();
 self.close();
 }*/
 opener.vB_Editor['$_REQUEST[e]'].insert_text(insert,false);
 window.close();
}
//-->
</script>
<else />
<script type="text/javascript">
<!--
function replace_script() {
 var insert = this.document.bbformtable.inhalt.value;
 var count = this.document.bbformtable.zahl.value;
 var cols = this.document.bbformtable.cols.value;
 var rows = this.document.bbformtable.rows.value;
 var loop = 0;
 for (var i=0; i < rows;i++) {
  for (var j=0; j < cols;j++) {
   insert = insert.replace("<table cellpadding='0' cellspacing='1' border='0' class='tborder'>", "[table=$width]");
   insert = insert.replace("<tr class=alt2>", "[tr=alt2]");
   insert = insert.replace("<tr class=alt1>", "[tr=alt1]");
   insert = insert.replace("<tr class='thead'>", "[tr=tcat]");
   insert = insert.replace("<td align='center'>", "[td]");
   insert = insert.replace("</td>", "[/td]");
   insert = insert.replace("</tr>", "[/tr]");
   insert = insert.replace("</table>", "[/table]");
   var deli = "<input class='bginput' type='text' id='ein" + loop + "' name='ein" + loop + "' value='' size='10' maxlength='50'>";
   var inp = document.getElementById('ein' + loop).value;
   insert = insert.replace(deli, inp);
   loop++;
  }
 }
 /*var newins = opener.document.vbform.message.value + insert;
 opener.document.vbform.message.value = newins;
 opener.document.vbform.message.focus();
 self.close();*/
 opener.vB_Editor['$_REQUEST[e]'].insert_text(insert,false);
 window.close();
}
//-->
</script>
</if>

</head>
<body>
<table cellpadding="0" cellspacing="1" border="0" width="100%" class="tborder">
 <tr>
  <td class="tcat" id="tabletitle" align="center">
   <normalfont><b>إنشاء جدول بعرض</b> $width</font>
  </td>
 </tr>
</table>
<form action="massy.php" method="post" name="bbformtable">
<input type="hidden" name="action" value="final">
<input type="hidden" name="s" value="$session[sessionhash]">
<table cellpadding="0" cellspacing="1" border="0" width="100%" class="tborder">
 $table_new_bit
 <tr class="tcat">
  <td colspan="$lines" align="center">
   <input type="hidden" name="inhalt" value="$uebergabe">
   <input type="hidden" name="zahl" value="$si">
   <input type="hidden" name="in" value="$in">
   <input type="hidden" name="rows" value="$split">
   <input type="hidden" name="cols" value="$lines">
   <input class="input" type="button" value="موافق" onclick="replace_script();">
  </td>
 </tr>
</table>
</form>
</body>
</html>]]></template>
		<template name="bdr130_table_error" templatetype="template" date="1228262843" username="" version="5.0"><![CDATA[$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle] - $vbphrase[bbcode_table_error]</title>
$headinclude
<script type="text/javascript">
<!--
function replace_script() {
 self.close();
 }
//-->
</script>
</head>
<body>

<hr size="1" color="#FF0000" noshade />
<div align="center" class="normalfont">$vbphrase[bbcode_table_error]<br /><br /><input class="input" type="button" value="أغلق النافذة" onclick="replace_script();"></div>
<hr size="1" color="#FF0000" noshade />


</body>
</html>]]></template>
		<template name="bdr130_table_output" templatetype="template" date="1228262847" username="" version="5.0"><![CDATA[<table cellpadding='0' cellspacing='1' border='0' class='tborder'>$table_new_bit</table>]]></template>
		<template name="bdr130_table_td" templatetype="template" date="1228262850" username="" version="5.0"><![CDATA[<td align='center'><input class='bginput' type='text' id='ein$si' name='ein$si' value='$in' size='10' maxlength='50'></td>]]></template>
		<template name="bdr130_table_tr" templatetype="template" date="1228262853" username="" version="5.0"><![CDATA[<tr class=$tdclass>$td_bit</tr>]]></template>
		<template name="bdr130_text_form" templatetype="template" date="1228262856" username="" version="5.0"><![CDATA[$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
	<title>منسّق النص</title>
<!-- الرجاء ثم الرجاء ثم الرجاء عدم التعديل على الهاك او الاقتباس منه ولانسمح بذلك كليا اخوكم ابو عمر -->
    $headinclude $headinsert
<script>
  function preview() {
    frms = fetch_object('frm');
    window.dialogLeft = parseFloat(window.dialogLeft) - (frms.clientWidth - parseFloat(window.dialogWidth)) / 2 + "px";
    window.dialogTop = parseFloat(window.dialogTop) - (frms.clientHeight - parseFloat(window.dialogHeight)) / 4 + "px";
    window.dialogWidth = frms.clientWidth + 50 + "px";
    window.dialogHeight = frms.clientHeight + 180 + "px";
  }
  var MaxImages = 24;
    </script>
</head>

<body onload="preview();acceptubb(0);">
<table class="tborder" align="center" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" width="100%">
<tr>
	<td class="tcat" height="13">منسّق النص</td>
</tr>
<tr>
	<td class="panelsurround" align="center">
			<fieldset class="fieldset">
				<legend>خيارات منسّق النص</legend>
				<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" align="center">
  <tr>

	<!-- start of format box -->
		<table border="0" cellpadding="2" cellspacing="0" width="100%" align="center">
			<tr>

<table id="frm" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="100%" valign="top">
<!-- Preview -->
<div align="center" id="here">
</div>
<div>
<!-- Preview -->
	<input type="hidden" name="txtText">
<table border="0" align="$stylevar[left]">
 <tr><td>
<table border="0" align="$stylevar[left]" width="80%" height="1" cellpadding="2">
   <tr>
      <td nowrap>
		<font class="smallfont">الخط</font></td>
      <td nowrap>
        <p align="right">
        <select size="1" onchange="selectFont(this);acceptubb(0);" name="cbFontFamily" id="cbFontFamily">
          <option>(Simplified Arabic)
          <option>Custom ...
          <option>Andalus
          <option>Arabic Transparent
          <option>Arial
          <option>Courier
          <option>Courier New
          <option>MS Dialog
          <option>MS Sans Serif
          <option>Simplified Arabic
          <option>Tahoma
          <option>Times New Roman
          <option>Traditional Arabic
        </select>
      </td>
      <td nowrap align="center">
        <p align="right">
        <select size="1" name="cbFontSize" id="cbFontSize" onchange="acceptubb(0);">
          <option>1</option>
          <option>2</option>
          <option>3</option>
          <option selected>4</option>
          <option>5</option>
          <option>6</option>
          <option>7</option>
        </select>
      </td>
      <td nowrap align="center">
        <p align="right">
        <select size="1" name="cbFontColor" id="cbFontColor" onchange="document.body.focus();acceptubb(0);">
            <option style="background-color:black" selected>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</option>
            <option style="background-color:white"></option>
            <option style="background-color:skyblue"></option>
			<option style="background-color:royalblue"></option>
			<option style="background-color:blue"></option>
			<option style="background-color:darkblue"></option>
			<option style="background-color:orange"></option>
			<option style="background-color:tomato"></option>
			<option style="background-color:coral"></option>
			<option style="background-color:orangered"></option>
			<option style="background-color:crimson"></option>
			<option style="background-color:red"></option>
			<option style="background-color:firebrick"></option>
			<option style="background-color:darkred"></option>
			<option style="background-color:green"></option>
			<option style="background-color:limegreen"></option>
			<option style="background-color:seagreen"></option>
			<option style="background-color:deeppink"></option>
			<option style="background-color:purple"></option>
			<option style="background-color:indigo"></option>
			<option style="background-color:burlywood"></option>
			<option style="background-color:sandybrown"></option>
			<option style="background-color:sienna"></option>
			<option style="background-color:chocolate"></option>
			<option style="background-color:teal"></option>
			<option style="background-color:silver"></option>
            <option style="background-color:gray"></option>
        </select>
      </td>
      <td nowrap>
         <select size="1" onchange="pAlign=this.options(this.selectedIndex).value;acceptubb(0);" id="cbAlign" name="cbAlign">
            <option value="right">محاذاة إلى اليمين
            <option value="center" selected>توسيط
            <option value="left">محاذاة إلى اليسار
            <option value="justify">ضبط
         </select>
       </td>
   </tr>
</table>
</td></tr>
<tr><td>
<table border="0" cellpadding="2" align="$stylevar[left]">
   <tr>
      <td valign="top" nowrap>
      <p align="right"><font class="smallfont">عرض التنسيق:</font> <select size="1" name="cbWidth" id="saWidth" onchange="acceptubb(0);">
        <option value="50%">50%</option>
        <option value="60%">60%</option>
        <option value="70%" selected>70%</option>
        <option value="80%">80%</option>
        <option value="90%">90%</option>
        <option value="100%">100%</option>
        </select></p></td>
   </tr>
</table>
</td></tr>
<tr><td>
<table border="0" cellpadding="2" align="$stylevar[left]">
   <tr>
      <td nowrap height="22">
	<font class="smallfont">الخلفية</font></td>
      <td nowrap height="22">
        <p align="right">
        <select id="selImg" size="1" onchange="bkimage=selImages(this);acceptubb(0);">
          <option>...
          <option selected>بدون
          <option>رابط
        </select>
      </td>
      <td nowrap height="22">
        <p align="right">
        <select size="1" name="cbBackColor" id="saBackColor" onchange="document.body.focus();acceptubb(0);">
            <option style="background-color:transparent" selected>
            اللون</option>
            <option style="background-color:black"></option>
            <option style="background-color:white"></option>
            <option style="background-color:skyblue"></option>
			<option style="background-color:royalblue"></option>
			<option style="background-color:blue"></option>
			<option style="background-color:darkblue"></option>
			<option style="background-color:orange"></option>
			<option style="background-color:tomato"></option>
			<option style="background-color:coral"></option>
			<option style="background-color:orangered"></option>
			<option style="background-color:crimson"></option>
			<option style="background-color:red"></option>
			<option style="background-color:firebrick"></option>
			<option style="background-color:darkred"></option>
			<option style="background-color:green"></option>
			<option style="background-color:limegreen"></option>
			<option style="background-color:seagreen"></option>
			<option style="background-color:deeppink"></option>
			<option style="background-color:purple"></option>
			<option style="background-color:indigo"></option>
			<option style="background-color:burlywood"></option>
			<option style="background-color:sandybrown"></option>
			<option style="background-color:sienna"></option>
			<option style="background-color:chocolate"></option>
			<option style="background-color:teal"></option>
			<option style="background-color:silver"></option>
            <option style="background-color:gray"></option>
        </select>
      </td>
   </tr>
</table>
</td></tr>
<tr><td>
<table border="0" width="1" cellpadding="2" height="24" align="$stylevar[left]">
   <tr>
      <td nowrap height="20">
	<font class="smallfont">نوع الحد:</font></td>
      <td nowrap height="20">
         <p align="right">
         <select size="1" name="cbBorderStyle" id="cbBorderStyle" onchange="acceptubb(0);">
         	<option value="none" selected>بدون
            <option value="solid">مصمت
            <option value="double">مزدوج
            <option value="groove">أخدود
            <option value="ridge">تل
            <option value="inset">مغروز
            <option value="outset">مرتفع
         </select>
      </td>
      <td nowrap height="20">
         <p align="right">
         <select size="1" name="cbBorderWidth" id="cbBorderWidth" onchange="acceptubb(0);">
            <option selected>1
            <option>2
            <option>3
            <option>4
            <option>5
            <option>6
            <option>7
            <option>8
            <option>9
            <option>10
         </select>
      </td>
      <td nowrap height="20">
        <p align="right">
        <select size="1" name="cbBorderColor" id="cbBorderColor" onchange="document.body.focus();acceptubb(0);">
            <option style="background-color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</option>
            <option style="background-color:white"></option>
            <option style="background-color:skyblue"></option>
			<option style="background-color:royalblue"></option>
			<option style="background-color:blue"></option>
			<option style="background-color:darkblue"></option>
			<option style="background-color:orange"></option>
			<option style="background-color:tomato"></option>
			<option style="background-color:coral"></option>
			<option style="background-color:orangered"></option>
			<option style="background-color:crimson"></option>
			<option style="background-color:red"></option>
			<option style="background-color:firebrick"></option>
			<option style="background-color:darkred"></option>
			<option style="background-color:green" selected></option>
			<option style="background-color:limegreen"></option>
			<option style="background-color:seagreen"></option>
			<option style="background-color:deeppink"></option>
			<option style="background-color:purple"></option>
			<option style="background-color:indigo"></option>
			<option style="background-color:burlywood"></option>
			<option style="background-color:sandybrown"></option>
			<option style="background-color:sienna"></option>
			<option style="background-color:chocolate"></option>
			<option style="background-color:teal"></option>
			<option style="background-color:silver"></option>
            <option style="background-color:gray"></option>
        </select>
     </td>
   </tr>
</table>
</td></tr></table>
</div>
    </td>
  </tr>
  <tr><td align="center">
  <div>
  <input class="button" type="button" value="موافق" onclick="acceptubb(1)">
  <input class="button" type="button" value="إغلاق النافذة" onclick="window.close()">
</div>
  </td></tr>
</table>
</body>
            </tr>
		  </table>
	<!-- end of format box -->

  </td></tr>
  </table>

  </center>
</div>
</table>
<script>
  var bkimage="", imageCount = 24
  var selImgs = fetch_object('selImg');
  for (var seli = 1; seli <= imageCount; seli++) {
    var oOption = document.createElement("OPTION");
    selImgs.options.add(oOption);
    oOption.innerText = seli;
  }

  function selImages(ob) {
    var i = ob.selectedIndex, img = "";
    if (i <= 1)
      img = "";
    else if (i == 2) {
      img = window.prompt("ادخل رابط الصورة:", "https://");
      if (img == null)
       {
        img = "";
      ob.selectedIndex = 0;
       }
    }
    else
      img = "backgrounds/" + ob.options(i).text + ".gif";
    return img;
  }

  function selectFont(ob) {
    var i = ob.selectedIndex, f = "";
    if (i == 0) return;
    if (i == 1) {
      f = window.prompt("ادخل اسم الخط:", ob.options[0].text.replace(/\(([a-z ]*)\)/i,"$1"));
      if (f == null) f = fn;
    }
    else
      f = ob.options(i).text;
    ob.options(0).text = "(" + f + ")";
    ob.selectedIndex = 0;
  }

  function imageBrowse() {
    var img = showModalDialog("backgrounds.htm", imageCount , "help:no; status:no; dialogHeight:800px; dialogWidth:400px");
    if (img!="") {
      selImgs.selectedIndex=parseFloat(img)+2;
      img = "$vboptions[bburl]/backgrounds/" + img + ".gif";
      bkimage = img;
   }
  }

  function getColor(o) {
    return (o.options[o.selectedIndex].style.backgroundColor);
  }

  function getText(o) {
    return (o.options[o.selectedIndex].text);
  }

  function acceptubb(flag) {
    var tstyle="", ubb = "", filter="";

// new

	if (selImgs.selectedIndex > 2)
	 {
	  img = selImgs.selectedIndex-2;
	  selImgs.selectedIndex=parseFloat(img)+2;
	  img = "$vboptions[bburl]/backgrounds/" + img + ".gif";
	  bkimage = img;
	 }

// new
    saWidths = fetch_object('saWidth');
    tstyle += "width:" + saWidths.value + ";";


// new
    saBackColors   = fetch_object('saBackColor');
    cbBorderStyles = fetch_object('cbBorderStyle');
    cbBorderWidths = fetch_object('cbBorderWidth');
    cbBorderColors = fetch_object('cbBorderColor');
        if (selImgs.selectedIndex >= 2)
         tstyle += "background-image:url('" + bkimage + "');";
      	if (saBackColors.selectedIndex > 0)
	     tstyle += "background-color:"+ getColor(saBackColors) + ";";
		if (cbBorderStyles.selectedIndex > 0 )
         tstyle += "border:"+ getText(cbBorderWidths) + "px" + " " +  cbBorderStyles.value + " " + getColor(cbBorderColors) + ";";
// new


    filter = "filter:";
    filter += ";";
    cbFontFamilys = fetch_object('cbFontFamily');
    cbFontColors = fetch_object('cbFontColor');
    cbFontSizes = fetch_object('cbFontSize');
    cbAligns   = fetch_object('cbAlign');
    heres     = fetch_object('here');
    if (flag == 0) {
      ubb = "<div align='center'>";
      ubb += "<table style=\"" + tstyle + "\"><tr>";
      ubb += "<td style=\"" + filter + "\">";
      ubb += "<font face='" + getText(cbFontFamilys).replace(/\(([a-z ]*)\)/i,"$1") + "'";
      ubb += " size='" + getText(cbFontSizes) + "' color='" + getColor(cbFontColors) + "'>";
      ubb += "<div align='" + cbAligns.value + "'>";
      ubb += "نموذج";
      ubb += "</div>";
      ubb += "</font>";
      ubb += "</td></tr></table></div>";

      heres.innerHTML = ubb;

       return false;
   }

   ubb = "[ALIGN=CENTER]";
   ubb += "[TABLETEXT=\"" + tstyle + "\"]";
   ubb += "[CELL=\"" + filter + "\"]";
   ubb += "[FONT=" + getText(cbFontFamilys).replace(/\(([a-z ]*)\)/i,"$1") + "]";
   ubb += "[SIZE=" + getText(cbFontSizes) + "]";
   ubb += "[COLOR=" + getColor(cbFontColors) + "]";
   ubb += "[ALIGN=" + cbAligns.value + "]";
   window.dialogArguments.text = ubb;
   window.returnValue = ubb;
   window.close();
 }
 //txtText.value=window.dialogArguments.text;

</script>
</html>]]></template>
		<template name="bdr130_usercp" templatetype="template" date="1228262861" username="" version="5.0"><![CDATA[<br />
<form action="usercp.php?do=massy" method="post">
    <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
    <input type="hidden" name="do" value="massy" />
    <input type="hidden" name="s" value="$session[sessionhash]" />
    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
        <thead>
            <tr>
                <td class="tcat">
                    <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('massy')"><img id="collapseimg_massy" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_massy].gif" alt="" border="0" /></a>
                    &nbsp;التحكم بإختصارات صندوق المشاركات
                </td>
            </tr>
        </thead>
        <tbody id="collapseobj_massy" style="$vbcollapse[collapseobj_massy]">
            <tr valign="top">
                    <td class="panelsurround" align="center">
                        <div class="panel">
                                <div style="width:480px" align="right">
                                    <fieldset class="fieldset">
                                    	<legend>الإختصار الأول</legend>
                                    	<input type="text" class="bginput" name="saleh_01" id="saleh_001" value="$sdefault[1]" maxlength="225" />
                                    </fieldset><fieldset class="fieldset">
                                    	<legend>الإختصار الثاني</legend>
                                    	<input type="text" class="bginput" name="saleh_02" id="saleh_002" value="$sdefault[2]" maxlength="225" />
                                    </fieldset><fieldset class="fieldset">
                                    	<legend>الإختصار الثالث</legend>
                                    	<input type="text" class="bginput" name="saleh_03" id="saleh_003" value="$sdefault[3]" maxlength="225" />
                                    </fieldset><fieldset class="fieldset">
                                    	<legend>الإختصار الرابع</legend>
                                    	<input type="text" class="bginput" name="saleh_04" id="saleh_004" value="$sdefault[4]" maxlength="225" />
                                    </fieldset><fieldset class="fieldset">
                                    	<legend>الإختصار الخامس</legend>
                                    	<input type="text" class="bginput" name="saleh_05" id="saleh_005" value="$sdefault[5]" maxlength="225" />
                                    </fieldset><fieldset class="fieldset">
                                    	<legend>الإختصار السادس</legend>
                                    	<input type="text" class="bginput" name="saleh_06" id="saleh_006" value="$sdefault[6]" maxlength="225" />
                                    </fieldset><fieldset class="fieldset">
                                    	<legend>الإختصار السابع</legend>
                                    	<input type="text" class="bginput" name="saleh_07" id="saleh_007" value="$sdefault[7]" maxlength="225" />
                                    </fieldset><fieldset class="fieldset">
                                    	<legend>الإختصار الثامن</legend>
                                    	<input type="text" class="bginput" name="saleh_08" id="saleh_008" value="$sdefault[8]" maxlength="225" />
                                    </fieldset><fieldset class="fieldset">
                                    	<legend>الإختصار التاسع</legend>
                                    	<input type="text" class="bginput" name="saleh_09" id="saleh_009" value="$sdefault[9]" maxlength="225" />
                                    </fieldset><fieldset class="fieldset">
                                    	<legend>الإختصار العاشر</legend>
                                    	<input type="text" class="bginput" name="saleh_10" id="saleh_010" value="$sdefault[10]" maxlength="225" />
                                    </fieldset><fieldset class="fieldset">
                                    	<legend>الإختصار الحادي عشر</legend>
                                    	<input type="text" class="bginput" name="saleh_11" id="saleh_011" value="$sdefault[11]" maxlength="225" />
                                    </fieldset><fieldset class="fieldset">
                                    	<legend>الإختصار الثاني عشر</legend>
                                    	<input type="text" class="bginput" name="saleh_12" id="saleh_012" value="$sdefault[12]" maxlength="225" />
                                    </fieldset>
                                </div>
                        </div>
                    </td>
            </tr>
            <tr>
                <td class="tfoot" align="center">
                    <input type="submit"  class="button" tabindex="1"  value="  حفظ   " accesskey="s" />
                </td>
            </tr>
        </tbody>
    </table>
</form>
<br />]]></template>
	</templates>
	<plugins>
		<plugin active="1" executionorder="5">
			<title>النص المخفي 5</title>
			<hookname>archive_thread_post</hookname>
			<phpcode><![CDATA[$post['pagetext_simp'] = strip_bbcode(preg_replace('/\\[hide\\](.*)\\[\/hide\\]/siU', $vbphrase[sid_hide_has_hidden], $post['pagetext']));
			if ($vbulletin->options['wordwrap'] != 0){
				$post['pagetext_simp'] = fetch_word_wrapped_string($post['pagetext_simp']);
			}
			$post['pagetext_simp'] = fetch_censored_text($post['pagetext_simp']);]]></phpcode>
		</plugin>
		<plugin active="1" executionorder="5">
			<title>BBCode_UnParsed</title>
			<hookname>bbcode_create</hookname>
			<phpcode><![CDATA[if ($this->is_wysiwyg())
{

$this->unparsed_tags = array(
                'poem',
                'hide',
                'rams',
                'ramv',
                'media',
                'flash1',
                'flash',
                'bimg',
                'blink',
                'grade',
                'marq',
                'glint',
                'glow',
                'glow1',
                'move',
                'frame',
                'mark',
                'table',
                'td',
                'tr',
                'line',
                'overline',
                's',
                'shr72',
                'click',
                'bor',
                'mouseover',
                'mklb1',
                'mshosh4',
                'mshosh3',
                'shfaf2',
                'mshosh2',
                'mtmoeg',
                'mn7ot2',
                'mn7ot1',
                'mshosh1',
                'aldl',
                'm3kos',
                'rmade',
                'ash3h',
                'shfaf',
                'mklb2',
                'mklb',
                'img2',
                'img3',
                'unload',
                'gdwl',
                'shfaf1',
                'motfrk',
                'msg',
                'moveo',
                'movet',
                'movek',
                'align',
                'cc',
                'a7la1',
                'bdr',
                'hr',
                'p5s',
                'button',
                'mtohg',
                'blur',
                'blur1',
                '3mr',
                'rrr',
                'motr1',
                'motr',
                'sor2',
                'sor1',
                'shr7',
                'sor1',
                'foq',
                'foq1',
                'shr71',
                'fot1',
                'm3ft1',
                'm3ft2',
                'all1',
                'tabletext',
                'cell',
                'justify',
                'info',
                'caution',
                'warning'
);

}]]></phpcode>
		</plugin>
		<plugin active="1" executionorder="5">
			<title>البي بي كود</title>
			<hookname>bbcode_fetch_tags</hookname>
			<phpcode><![CDATA[if(!$MASY_EDITOR){
    include('massybbcode.php');
}]]></phpcode>
		</plugin>
		<plugin active="1" executionorder="5">
			<title>Templates Cache</title>
			<hookname>cache_templates</hookname>
			<phpcode><![CDATA[$globaltemplates = array_merge($globaltemplates, array('bdr130_editor_on','bdr130_editor_off','bdr130_headinclude','bdr130_quickreply'));
if(THIS_SCRIPT=='usercp'){
$globaltemplates = array_merge($globaltemplates, array('bdr130_usercp'));
}elseif (THIS_SCRIPT === 'showthread'){
$globaltemplates  = array_merge($globaltemplates, array('bdr130_sid_hide_noaccess'));
}]]></phpcode>
		</plugin>
		<plugin active="1" executionorder="5">
			<title>الصندوق</title>
			<hookname>editor_toolbar_start</hookname>
			<phpcode><![CDATA[if($editor_type=='fe' or $editor_type=='qr' or $editor_type=='qr_small'){
global $db;
$sdefault = array (
        'Programmed By Saleh AlMatrafe',
        'بسم الله الرحمن الرحيم',
        'هلا والله ومليون غلا تو مانور المنتدى',
        'اللهم صل على محمد وعلى آله وصحبه أجمعين',
        'السلام عليكم ورحمة الله وبركاته',
        'وعليكم السلام ورحمة الله وبركاته',
        'مشكوووووور والله يعطيك الف عافيه',
        'مبرووووووك من الاعماق والى الامام وبالتوفيق يارب',
        'هههههههههه والله موتني ضحك اضحك الله سنك',
        'شكرا لمرورك على موضوعي وهذا شرف لي ووسام على صدري',
        'اسمح لي ابدي اعجابي بقلمك وتميزك واسلوبك الراقي وتالقك',
        'اتمنى ان نبتعد عن المشادات فالاختلاف لايفسد للود قضية',
        'سبحانك اللهم وبحمدك ، أشهد أن لا إله إلا أنت أستغفرك وأتوب إليك'
    );
	$shorts = $db->query_write("
		SELECT *
		FROM " . TABLE_PREFIX . "bdr130_massy AS shorts
		WHERE shorts.UID = " . $vbulletin->userinfo['userid'] . "
		LIMIT 1
	");

    if ($db->num_rows($shorts))
	{
        $ushort = $db->fetch_array($shorts);
        for ($i=1; $i<=12; $i++)  {
            if(!empty($ushort['Short'.$i])){
                $sdefault[$i] = $ushort['Short'.$i];
            }
        }
	}
if($editor_type=='fe'){
$editor_template_name = 'bdr130_editor_on';
}else{
$editor_template_name = 'bdr130_quickreply';
}
}]]></phpcode>
		</plugin>
		<plugin active="1" executionorder="5">
			<title>النص المخفي 3.1</title>
			<hookname>forumdisplay_query</hookname>
			<phpcode><![CDATA[if ($vbulletin->options['threadpreview'] > 0){
				$hook_query_fields .= ", post.pagetext AS previewbbcode";
			}]]></phpcode>
		</plugin>
		<plugin active="1" executionorder="5">
			<title>head_include</title>
			<hookname>global_setup_complete</hookname>
			<phpcode><![CDATA[eval('$headinclude .= "' . fetch_template('bdr130_headinclude') . '";');]]></phpcode>
		</plugin>
		<plugin active="1" executionorder="5">
			<title>Videos</title>
			<hookname>global_start</hookname>
			<phpcode><![CDATA[if ((in_array(THIS_SCRIPT,array('showthread','editpost','newreply','newthread','showpost','private','announcement','member','blog','adv_index','usernote')))) {
    $customstring = '$PASSIVEEMBED';
	// YouTube
	$passiveVid[] = array (
		'string' => '#(?:<a[^\<\>]+href=\")?(?:https://)?(?:[a-zA-Z]{1,4}\.)?youtube.com/watch\?v=(.{11}?)[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
		'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<object width="425" height="350"><param name="movie" value="https://www.youtube.com/v/\'.$matches[1].\'&rel=0"></param><param name="wmode" value="transparent"></param><embed src="https://www.youtube.com/v/\'.$matches[1].\'&rel=0" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>\'; return "'.$customstring.'";',
		'id' => 1
		);
	$passiveVid[] = array (
		'string' => '#\[youtube\]([^\[\]]+)\[/youtube\]#',
		'replacement' => 'return \'<object width="425" height="350"><param name="movie" value="https://www.youtube.com/v/\'.$matches[1].\'&rel=0"></param><param name="wmode" value="transparent"></param><embed src="https://www.youtube.com/v/\'.$matches[1].\'&rel=0" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>\';',
		'id' => 1
		);
	// Google
	$passiveVid[] = array (
		'string' => '#(?:<a[^\<\>]+href=\")?(?:https://)?video.google.(?:[A-Za-z\.]{2,5})/videoplay\?docid=([0-9\-]+)(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
		'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<embed style="width:400px; height:326px;" id="VideoPlayback" type="application/x-shockwave-flash" src="https://video.google.com/googleplayer.swf?docId=\'.$matches[1].\'&hl=en" flashvars=""> </embed>\'; return "'.$customstring.'";',
		'id' => 2
		);
	$passiveVid[] = array (
		'string' => '#\[googlevideo\]([^\[\]]+)\[/googlevideo\]#',
		'replacement' => 'return \'<embed style="width:400px; height:326px;" id="VideoPlayback" type="application/x-shockwave-flash" src="https://video.google.com/googleplayer.swf?docId=\'.$matches[1].\'&hl=en" flashvars=""> </embed>\';',
		'id' => 2
		);
	// MySpace
	$passiveVid[] = array (
		'string' => '#(?:<a[^\<\>]+href=\")?(?:https://)?vids.myspace.com/index.cfm\?fuseaction=vids\.individual&amp;videoid=(\d{8,15})(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
		'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<embed src="https://lads.myspace.com/videos/vplayer.swf" flashvars="m=\'.$matches[1].\'&v=2&type=video" type="application/x-shockwave-flash" width="430" height="346"></embed>\'; return "'.$customstring.'";',
		'id' => 4
		);
	$passiveVid[] = array (
		'string' => '#\[myspace\]([^\[\]]+)\[/myspace\]#',
		'replacement' => 'return \'<embed src="https://lads.myspace.com/videos/vplayer.swf" flashvars="m=\'.$matches[1].\'&v=2&type=video" type="application/x-shockwave-flash" width="430" height="346"></embed>\';',
		'id' => 4
		);
	// MetaCafe
	$passiveVid[] = array (
		'string' => '#(?:<a[^\<\>]+href=\")?(?:https://)?(?:www\.)?metacafe.com/watch/([0-9]*\/[A-Za-z0-9_]*)(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
		'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<embed src="https://www.metacafe.com/fplayer/\'.$matches[1].\'.swf" width="400" height="345" wmode="transparent" pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>\'; return "'.$customstring.'";',
		'id' => 8
		);
	$passiveVid[] = array (
		'string' => '#\[metacafe\]([^\[\]]+)\[/metacafe\]#',
		'replacement' => 'return \'<embed src="https://www.metacafe.com/fplayer/\'.$matches[1].\'.swf" width="400" height="345" wmode="transparent" pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>\';',
		'id' => 8
		);
	// Yahoo
	$passiveVid[] = array (
		'string' => '#(?:<a[^\<\>]+href=\")?(?:https://)?video.yahoo.com/video/play\?vid=(\d+)&amp;matchid=(\d+)(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
		'replacement' => '$PASSIVETITLE = $matches[3]; $PASSIVEEMBED = \'<embed src="https://us.i1.yimg.com/cosmos.bcst.yahoo.com/player/media/swf/FLVVideoSolo.swf" flashvars="vid=\'.$matches[1].\'&id=\'.$matches[2].\'" type="application/x-shockwave-flash" width="425" height="350"></embed>\'; return "'.$customstring.'";',
		'id' => 16
		);
	$passiveVid[] = array (
		'string' => '#(?:<a[^\<\>]+href=\")?(?:https://)?video.yahoo.com/watch/(\d+)/(\d+)(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
		'replacement' => '$PASSIVETITLE = $matches[3]; $PASSIVEEMBED = \'<object width="512" height="322"><param name="movie" value="https://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.30" /><param name="allowFullScreen" value="true" /><param name="AllowScriptAccess" VALUE="always" /><param name="bgcolor" value="#000000" /><param name="flashVars" value="id=\'.$matches[1].\'&vid=\'.$matches[2].\'&embed=1" /><embed src="https://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.30" type="application/x-shockwave-flash" width="512" height="322" allowFullScreen="true" AllowScriptAccess="always" bgcolor="#000000" flashVars="id=\'.$matches[1].\'&vid=\'.$matches[2].\'&embed=1" ></embed></object>\'; return "'.$customstring.'";',
		'id' => 16
		);
}]]></phpcode>
		</plugin>
		<plugin active="1" executionorder="5">
			<title>النص المخفي - الاخفاء في رسائل البريد</title>
			<hookname>newpost_notification_message</hookname>
			<phpcode><![CDATA[$pagetext = preg_replace('/\\[hide\\](.*)\\[\/hide\\]/siU', $vbphrase[sid_hide_has_hidden], $pagetext);]]></phpcode>
		</plugin>
		<plugin active="1" executionorder="5">
			<title>النص المخفي الاستبدال في صفحة الرد</title>
			<hookname>newreply_form_reviewbit</hookname>
			<phpcode><![CDATA[$reviewmessage =preg_replace('/\\[hide\\](.*)\\[\/hide\\]/siU', $vbphrase[sid_hide_has_hidden], $reviewmessage);]]></phpcode>
		</plugin>
		<plugin active="1" executionorder="5">
			<title>النص المخفي 1</title>
			<hookname>newreply_post_quote</hookname>
			<phpcode><![CDATA[$newpost['message'] = preg_replace('/\\[hide\\](.*)\\[\/hide\\]/siU', '', $newpost['message']);]]></phpcode>
		</plugin>
		<plugin active="1" executionorder="5">
			<title>النص المخفي 2</title>
			<hookname>newreply_quote</hookname>
			<phpcode><![CDATA[global $vbphrase;
			$pagetext = preg_replace('/\\[hide\\](.*)\\[\/hide\\]/siU', $vbphrase[sid_hide_post_noquote], $pagetext);]]></phpcode>
		</plugin>
		<plugin active="1" executionorder="5">
			<title>Video Replace</title>
			<hookname>postbit_display_complete</hookname>
			<phpcode><![CDATA[global $passiveVid;
foreach ($passiveVid as $k => $v) {
    $this->post['message'] = preg_replace_callback($v['string'],create_function('$matches',$v['replacement']),$this->post['message']);
}]]></phpcode>
		</plugin>
		<plugin active="1" executionorder="5">
			<title>النص المخفي - استبدال الوسم</title>
			<hookname>postbit_display_complete</hookname>
			<phpcode><![CDATA[if ($this->registry->options['sid_hide_active'] == '1' AND stristr($post['message'],'[hide]')){
			global $vbulletin, $vboptions, $bbuserinfo, $db, $threadid, $hide_call, $postid;
			$bbuserinfo = $this->registry->userinfo;
			$post = $this->post;
			$hide_read = false;
			$hide_img_set = 0;
			$hide_replied = '';
			$hide_thanked = '';
			$hide_stop = 0;
			if (!empty($this->registry->options['sid_hide_notforum'])){
				$sid_hide_forum_stop = explode(",",$this->registry->options['sid_hide_notforum']);
				if(in_array($thread['forumid'],$sid_hide_forum_stop)){
					$post['message'] = preg_replace('/\\[hide\\](.*)\\[\/hide\\]/siU', '\\1', $post['message']);
					$hide_stop = 1;
				}
			}
			if($post['userid'] == $bbuserinfo['userid'] AND $hide_stop == 0){
				$post['message'] = preg_replace('/\\[hide\\](.*)\\[\/hide\\]/siU', '<fieldset><legend><span class="highlight">'.$vbphrase[sid_hide_post_own].'</span></legend>\\1</fieldset>', $post['message']);
				$hide_stop = 1;
			}
			if ($hide_stop != 1){
				if ($this->registry->options['sid_hide_showadmin'] AND $bbuserinfo[usergroupid]==6){
					$hide_read = true;
				}elseif ($this->registry->options['sid_hide_showmod'] AND can_moderate($thread['forumid'])){
					$hide_read = true;
				}elseif (!empty($this->registry->options['sid_hide_showusergroup'])){
					$hide_groups_see = explode(",",$this->registry->options['sid_hide_showusergroup']);
					if (in_array($bbuserinfo['usergroupid'], $hide_groups_see)){
						$hide_read = true;
					}
				}
				if ($this->registry->options['sid_hide_showthanked'] AND $hide_read==false){
					$hide_img_set = $hide_img_set + 1;
					if($this->registry->options['post_thanks_forum_first_all'] == 1){
						$hide_thanked = $db->query_first("SELECT userid FROM ". TABLE_PREFIX ."post_thanks WHERE postid='$thread[firstpostid]' AND userid='$bbuserinfo[userid]'");
						if($hide_thanked !=''){
							$hide_read = true;
						}
					} elseif (!empty($this->registry->options['post_thanks_forum_first'])){
						$post_thanks_forums1_first = explode("|",$this->registry->options['post_thanks_forum_first']);
						if (in_array($this->thread['forumid'], $post_thanks_forums1_first)){
							$hide_thanked = $db->query_first("SELECT userid FROM ". TABLE_PREFIX ."post_thanks WHERE postid='$thread[firstpostid]' AND userid='$bbuserinfo[userid]'");
							if($hide_thanked !=''){
								$hide_read = true;
							}
						}else{
							if($bbuserinfo['userid']==$thank['userid']){
								$hide_read = true;
							}
						}
					} else{
						if($bbuserinfo['userid']==$thank['userid']){
							$hide_read = true;
						}
					}
				}
				if ($this->registry->options['sid_hide_showposted'] AND $hide_read==false){
					$hide_img_set = $hide_img_set + 2 ;
					$hide_replied = $db->query("SELECT COUNT(postid) AS count FROM ". TABLE_PREFIX . "post WHERE userid='$bbuserinfo[userid]' AND visible = 1 AND threadid='$post[threadid]'");
					$myreplies = 0;
					if($db->num_rows($hide_replied)){
						while ($h_post = $db->fetch_array($hide_replied)){
							$myreplies += $h_post['count'];
						}
						$myreplies = vb_number_format($myreplies);
					}
					if($myreplies > 0){
						$hide_read['userid'] = true;
					}
				}
				if (!$hide_call){
					$hide_call =$post['postid'];
				} else {
					$hide_call .=",".$post['postid'];
				}
				if($hide_img_set == 3){
					$hide_img = $vbphrase[sid_hide_img_pot];
				} elseif ($hide_img_set == 2){
					$hide_img = $vbphrase[sid_hide_img_post];
				} elseif ($hide_img_set == 1){
					$hide_img = $vbphrase[sid_hide_img_thank];
				} else {
					$hide_img = $vbphrase[sid_hide_img_sorry];
				}
				if(!$bbuserinfo[userid]){
					$hide_read = false;
				}
				if ($hide_read == true){
					$post['message'] = preg_replace('/\\[hide\\](.*)\\[\/hide\\]/siU', '<fieldset><legend><span class="highlight">'.$vbphrase[sid_hide_post_show].'</span></legend>\\1</fieldset>', $post['message']);
				} else {
					eval('$hide_fetch = "' . fetch_template('bdr130_sid_hide_noaccess') . '";');
					$post['message'] = preg_replace('/\\[hide\\](.*)\\[\/hide\\]/siU', $hide_fetch, $post['message']);
				}
			}
		}]]></phpcode>
		</plugin>
		<plugin active="1" executionorder="5">
			<title>النص المخفي - الاستبدال في الاجاكس</title>
			<hookname>postbit_display_complete</hookname>
			<phpcode><![CDATA[if ($_REQUEST['do'] == 'whatever'){
			global $vbulletin, $vboptions, $bbuserinfo, $db, $threadid, $postid;
			$bbuserinfo = $this->registry->userinfo;
			$postid = $_REQUEST['p'];
			$hide_call = $_REQUEST['all'];
			$hide_read = false;
			$hide_replied = '';
			$hide_thanked = '';
			if ($this->registry->options['sid_hide_showthanked']){
				if($this->registry->options['post_thanks_forum_first_all'] == 1){
					$hide_thanked = $db->query_first("SELECT userid FROM ". TABLE_PREFIX ."post_thanks WHERE postid='$thread[firstpostid]' AND userid='$bbuserinfo[userid]'");
					if($hide_thanked !=''){
						$hide_read = true;
					}
				} elseif (!empty($this->registry->options['post_thanks_forum_first'])){
					$post_thanks_forums1_first = explode("|",$this->registry->options['post_thanks_forum_first']);
					if (in_array($this->thread['forumid'], $post_thanks_forums1_first)){
						$hide_thanked = $db->query_first("SELECT userid FROM ". TABLE_PREFIX ."post_thanks WHERE postid='$thread[firstpostid]' AND userid='$bbuserinfo[userid]'");
						if($hide_thanked !=''){
							$hide_read = true;
						}
					}else{
						$hide_thanked = $db->query_first("SELECT userid FROM ". TABLE_PREFIX ."post_thanks WHERE postid='$postid' AND userid='$bbuserinfo[userid]'");
						if($hide_thanked !=''){
							$hide_read = true;
						}
					}
				} else{
					$hide_thanked = $db->query_first("SELECT userid FROM ". TABLE_PREFIX ."post_thanks WHERE postid='$postid' AND userid='$bbuserinfo[userid]'");
					if($hide_thanked !=''){
						$hide_read = true;
					}
				}
			}
			if ($this->registry->options['sid_hide_showposted'] AND $hide_read==false){
				$hide_replied = $db->query("SELECT COUNT(postid) AS count FROM ". TABLE_PREFIX . "post WHERE userid='$bbuserinfo[userid]' AND visible = 1 AND threadid='$post[threadid]'");
				$myreplies = 0;
				if($db->num_rows($hide_replied)){
					while ($h_post = $db->fetch_array($hide_replied)){
						$myreplies += $h_post['count'];
					}
					$myreplies = vb_number_format($myreplies);
				}
				if($myreplies > 0){
					$hide_read = true;
				}
			}
			if(!$bbuserinfo[userid]){
				$hide_read = false;
			}
			if( $hide_read == true){
				$hide_post = $db->query_first("SELECT pagetext as 'message' FROM ". TABLE_PREFIX ."post WHERE postid='$postid'");
				$hide_string = "#\[hide\](.*)\[\/hide\]#siU";
	            require_once(DIR . '/includes/class_bbcode.php');
	            $parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
	            $hide_post['message'] = $parser->do_parse($hide_post['message'],true);
				if(preg_match_all($hide_string, $hide_post['message'], $hide_match)) {
					for($i=0; $i<count($hide_match[0]); $i++) {
						$hide_replace[$i] ="<fieldset><legend><span class=\"highlight\">".$vbphrase[sid_hide_post_show]."</span></legend>".$hide_match[1][$i]."</fieldset>";
						$hide_post['message']= str_replace($hide_match[0][$i],$hide_replace[$i],$hide_post['message']);
					}
				}
			}else{
				$hide_post['message'] = 'sid_hide_still_active';
			}
			$ajax_on = true;
			$output = $hide_post['message'];
			echo "$output";
			exit;
		}]]></phpcode>
		</plugin>
		<plugin active="1" executionorder="5">
			<title>النص المخفي - صفحة الطباعة</title>
			<hookname>printthread_post</hookname>
			<phpcode><![CDATA[if($vbulletin->options['sid_hide_active']AND stristr($post['message'],'[hide]')){
			global $vbulletin, $vboptions, $bbuserinfo, $db;
			$bbuserinfo = $vbulletin->userinfo;
			$hide_read = false;
			$hide_img_set = 0;
			$hide_replied = '';
			$hide_thanked = '';
			$hide_stop = 0;
			if (!empty($vbulletin->options['sid_hide_notforum'])){
				$sid_hide_forum_stop = explode(",",$vbulletin->options['sid_hide_notforum']);
				if(in_array($threadinfo['forumid'],$sid_hide_forum_stop)){
					$post['message'] = preg_replace('/\\[hide\\](.*)\\[\/hide\\]/siU', '\\1', $post['message']);
					$hide_stop = 1;
				}
			}
			if($post['userid'] == $bbuserinfo['userid'] AND $hide_stop == 0){
				$post['message'] = preg_replace('/\\[hide\\](.*)\\[\/hide\\]/siU', '\\1', $post['message']);
				$hide_stop = 1;
			} 
			if ($hide_stop != 1){
				if ($vbulletin->options['sid_hide_showadmin'] AND $bbuserinfo[usergroupid]==6){
						$hide_read = true;
				}elseif ($vbulletin->options['sid_hide_showmod'] AND can_moderate($threadinfo['forumid'])){
					$hide_read = true;
				}elseif (!empty($vbulletin->options['sid_hide_showusergroup'])){
					$hide_groups_see = explode(",",$vbulletin->options['sid_hide_showusergroup']);
					if (in_array($bbuserinfo['usergroupid'], $hide_groups_see)){
						$hide_read = true;
					}
				}
				if ($vbulletin->options['sid_hide_showthanked'] AND $hide_read==false){
					$hide_img_set = $hide_img_set + 1;
					if($vbulletin->options['post_thanks_forum_first_all'] == 1){
						$hide_thanked = $db->query_first("SELECT userid FROM ". TABLE_PREFIX ."post_thanks WHERE postid='$threadinfo[firstpostid]' AND userid='$bbuserinfo[userid]'");
						if($hide_thanked !=''){
							$hide_read = true;
						}
					} elseif (!empty($vbulletin->options['post_thanks_forum_first'])){
						$post_thanks_only_first = explode("|",$vbulletin->options['post_thanks_forum_first']);
						if (in_array($threadinfo['forumid'], $post_thanks_only_first)){
							$hide_thanked = $db->query_first("SELECT userid FROM ". TABLE_PREFIX ."post_thanks WHERE postid='$threadinfo[firstpostid]' AND userid='$bbuserinfo[userid]'");
							if($hide_thanked !=''){
								$hide_read = true;
							}
						}else{
							$hide_thanked = $db->query_first("SELECT userid FROM ". TABLE_PREFIX ."post_thanks WHERE postid='$post[postid]' AND userid='$bbuserinfo[userid]'");
							if($hide_thanked !=''){
								$hide_read = true;
							}
						}
					} else{
						$hide_thanked = $db->query_first("SELECT userid FROM ". TABLE_PREFIX ."post_thanks WHERE postid='$post[postid]' AND userid='$bbuserinfo[userid]'");
						if($hide_thanked !=''){
							$hide_read = true;
						}
					}
				}
				if ($vbulletin->options['sid_hide_showposted'] AND $hide_read==false){
					$hide_img_set = $hide_img_set + 2 ;
					$hide_replied = $db->query("SELECT COUNT(postid) AS count FROM ". TABLE_PREFIX . "post WHERE userid='$bbuserinfo[userid]' AND visible = 1 AND threadid='$post[threadid]'");
					$myreplies = 0;
					if($db->num_rows($hide_replied)){
						while ($h_post = $db->fetch_array($hide_replied)){
							$myreplies += $h_post['count'];
						}
						$myreplies = vb_number_format($myreplies);
					}
					if($myreplies > 0){
						$hide_read['userid'] = true;
					}
				}
				if($hide_img_set == 3){
					$hide_img = $vbphrase[sid_hide_txt_pot];
				} elseif ($hide_img_set == 2){
					$hide_img = $vbphrase[sid_hide_txt_post];
				} elseif ($hide_img_set == 1){
					$hide_img = $vbphrase[sid_hide_txt_thank];
				} else {
					$hide_img = $vbphrase[sid_hide_txt_sorry];
				}
				if(!$bbuserinfo[userid]){
					$hide_read = false;
				}
				if($hide_read == true){
					$post['message'] = preg_replace('/\\[hide\\](.*)\\[\/hide\\]/siU', '\\1', $post['message']);
				} else {
					$post['message'] = preg_replace('/\\[hide\\](.*)\\[\/hide\\]/siU', $hide_img, $post['message']);
				}
			}
		}]]></phpcode>
		</plugin>
		<plugin active="1" executionorder="5">
			<title>النص المخفي 4</title>
			<hookname>search_results_prebits</hookname>
			<phpcode><![CDATA[if ($search['showposts']){
				foreach ($itemids AS $postid => $post){
					$itemids["$postid"]['pagetext'] = preg_replace('/\\[hide\\](.*)\\[\/hide\\]/siU', $vbphrase[sid_hide_has_hidden], $post['pagetext']); 
				}
			}]]></phpcode>
		</plugin>
		<plugin active="1" executionorder="5">
			<title>النص المخفي 3.4</title>
			<hookname>search_results_query_threads</hookname>
			<phpcode><![CDATA[if ($vbulletin->options['threadpreview'] > 0){
				$hook_query_fields .= ", post.pagetext AS previewbbcode";
			}]]></phpcode>
		</plugin>
		<plugin active="1" executionorder="5">
			<title>مجموعة القوالب</title>
			<hookname>template_groups</hookname>
			<phpcode><![CDATA[$only = array_merge($only, array('bdr130' => 'الصندوق الماسي'));]]></phpcode>
		</plugin>
		<plugin active="1" executionorder="5">
			<title>النص المخفي 3</title>
			<hookname>threadbit_process</hookname>
			<phpcode><![CDATA[if (isset($thread['previewbbcode']) AND !empty($thread['preview'])){
				$thread['preview'] = strip_quotes($thread['previewbbcode']);
				$thread['preview'] = htmlspecialchars_uni(fetch_censored_text(fetch_trimmed_title(
					strip_bbcode(preg_replace('/\\[hide\\](.*)\\[\/hide\\]/siU', $vbphrase['sid_hide_has_hidden'] , $thread['preview']), false, true),
					$vbulletin->options['threadpreview']
				)));
			}]]></phpcode>
		</plugin>
		<plugin active="1" executionorder="5">
			<title>لوحة تحكم العضو</title>
			<hookname>usercp_complete</hookname>
			<phpcode><![CDATA[$sdefault = array (
        'Programmed By Saleh AlMatrafe',
        'بسم الله الرحمن الرحيم',
        'هلا والله ومليون غلا تو مانور المنتدى',
        'اللهم صل على محمد وعلى آله وصحبه أجمعين',
        'السلام عليكم ورحمة الله وبركاته',
        'وعليكم السلام ورحمة الله وبركاته',
        'مشكوووووور والله يعطيك الف عافيه',
        'مبرووووووك من الاعماق والى الامام وبالتوفيق يارب',
        'هههههههههه والله موتني ضحك اضحك الله سنك',
        'شكرا لمرورك على موضوعي وهذا شرف لي ووسام على صدري',
        'اسمح لي ابدي اعجابي بقلمك وتميزك واسلوبك الراقي وتالقك',
        'اتمنى ان نبتعد عن المشادات فالاختلاف لايفسد للود قضية',
        'سبحانك اللهم وبحمدك ، أشهد أن لا إله إلا أنت أستغفرك وأتوب إليك'
    );
	$shorts = $db->query_write("
		SELECT *
		FROM " . TABLE_PREFIX . "bdr130_massy AS shorts
		WHERE shorts.UID = " . $vbulletin->userinfo['userid'] . "
		LIMIT 1
	");
if ($_REQUEST['do'] == 'massy')
{
	$vbulletin->input->clean_array_gpc('p', array(
		'saleh_01'        => TYPE_NOHTML,
		'saleh_02'        => TYPE_NOHTML,
		'saleh_03'        => TYPE_NOHTML,
		'saleh_04'        => TYPE_NOHTML,
		'saleh_05'        => TYPE_NOHTML,
		'saleh_06'        => TYPE_NOHTML,
		'saleh_07'        => TYPE_NOHTML,
		'saleh_08'        => TYPE_NOHTML,
		'saleh_09'        => TYPE_NOHTML,
		'saleh_10'        => TYPE_NOHTML,
		'saleh_11'        => TYPE_NOHTML,
		'saleh_12'        => TYPE_NOHTML,
	));
    if ($db->num_rows($shorts))
	{
        $db->query("UPDATE bdr130_massy SET
                                    Short1='".$vbulletin->GPC['saleh_01']."',
                                    Short2='".$vbulletin->GPC['saleh_02']."',
                                    Short3='".$vbulletin->GPC['saleh_03']."',
                                    Short4='".$vbulletin->GPC['saleh_04']."',
                                    Short5='".$vbulletin->GPC['saleh_05']."',
                                    Short6='".$vbulletin->GPC['saleh_06']."',
                                    Short7='".$vbulletin->GPC['saleh_07']."',
                                    Short8='".$vbulletin->GPC['saleh_08']."',
                                    Short9='".$vbulletin->GPC['saleh_09']."',
                                    Short10='".$vbulletin->GPC['saleh_10']."',
                                    Short11='".$vbulletin->GPC['saleh_11']."',
                                    Short12='".$vbulletin->GPC['saleh_12']."'
                                     WHERE UID='".$vbulletin->userinfo['userid']."'");
    }else{
        $db->query("INSERT INTO bdr130_massy SET
                                    Short1='".$vbulletin->GPC['saleh_01']."',
                                    Short2='".$vbulletin->GPC['saleh_02']."',
                                    Short3='".$vbulletin->GPC['saleh_03']."',
                                    Short4='".$vbulletin->GPC['saleh_04']."',
                                    Short5='".$vbulletin->GPC['saleh_05']."',
                                    Short6='".$vbulletin->GPC['saleh_06']."',
                                    Short7='".$vbulletin->GPC['saleh_07']."',
                                    Short8='".$vbulletin->GPC['saleh_08']."',
                                    Short10='".$vbulletin->GPC['saleh_10']."',
                                    Short11='".$vbulletin->GPC['saleh_11']."',
                                    Short12='".$vbulletin->GPC['saleh_12']."',
                                    UID='".$vbulletin->userinfo['userid']."'");
    }


$vbulletin->url = 'usercp.php' . $vbulletin->session->vars['sessionurl_q'];
    eval(print_standard_redirect('تم حفظ اختصارات صندوق المشاركات بنجاح', false, true));


}
    if ($db->num_rows($shorts))
	{
        $ushort = $db->fetch_array($shorts);
        for ($i=1; $i<=12; $i++)  {
            if(!empty($ushort['Short'.$i])){
                $sdefault[$i] = $ushort['Short'.$i];
            }
        }
	}
$patern = '$template_hook[usercp_main_pos6]';
$vbulletin->templatecache['USERCP'] = str_replace($patern,fetch_template('bdr130_usercp').$patern,$vbulletin->templatecache['USERCP']);]]></phpcode>
		</plugin>
		<plugin active="1" executionorder="5">
			<title>النص المخفي 3.2</title>
			<hookname>usercp_threads_query</hookname>
			<phpcode><![CDATA[if ($vbulletin->options['threadpreview'] > 0){
				$hook_query_fields .= ", post.pagetext AS previewbbcode";
			}]]></phpcode>
		</plugin>
		<plugin active="1" executionorder="5">
			<title>النص المخفي 3.3</title>
			<hookname>usersub_view_query</hookname>
			<phpcode><![CDATA[if ($vbulletin->options['threadpreview'] > 0){
				$hook_query_fields .= ", post.pagetext AS previewbbcode";
			}]]></phpcode>
		</plugin>
	</plugins>
	<phrases>
		<phrasetype name="GLOBAL" fieldname="global">
			<phrase name="sid_hide_has_hidden" date="1227887506" username="" version="5.0"><![CDATA[هذه المشاركة تحتوي على محتوى مخفي]]></phrase>
			<phrase name="sid_hide_img_post" date="1227887531" username="" version="5.0"><![CDATA[يجب عليك الرد لرؤية النص المخفي]]></phrase>
			<phrase name="sid_hide_img_pot" date="1227904867" username="" version="5.0"><![CDATA[<img border="0" src="images/toolbox/hidecontent.gif">]]></phrase>
			<phrase name="sid_hide_img_sorry" date="1227887660" username="" version="5.0"><![CDATA[Admin refused to unhide hidden content<br /> nothing will help to see hidden content]]></phrase>
			<phrase name="sid_hide_img_thank" date="1227904904" username="" version="5.0"><![CDATA[<img border="0" src="images/toolbox/hidecontent.gif">]]></phrase>
			<phrase name="sid_hide_post_hide" date="1227888175" username="" version="5.0"><![CDATA[محتوى مخفي]]></phrase>
			<phrase name="sid_hide_post_noquote" date="1227888203" username="" version="5.0"><![CDATA[المحتوى المخفي لايقتبس]]></phrase>
			<phrase name="sid_hide_post_own" date="1227888223" username="" version="5.0"><![CDATA[هذا الجزء من المحتوى مخفي]]></phrase>
			<phrase name="sid_hide_post_show" date="1227888242" username="" version="5.0"><![CDATA[المحتوى الان غير مخفي]]></phrase>
			<phrase name="sid_hide_txt_post" date="1227888262" username="" version="5.0"><![CDATA[يجب ان ترد لمشاهدة المحتوى المخفي]]></phrase>
			<phrase name="sid_hide_txt_pot" date="1227888280" username="" version="5.0"><![CDATA[يجب ان ترد لمشاهدة المحتوى المخفي]]></phrase>
			<phrase name="sid_hide_txt_sorry" date="1227888312" username="" version="5.0"><![CDATA[الادارة منعت مشاهدة المحتوى<br /> لايوجد وسيلة لمشاهدة المحتوى المخفي]]></phrase>
			<phrase name="sid_hide_txt_thank" date="1227888330" username="" version="5.0"><![CDATA[يجب ان تقوم بشكر صاحب الموضوع لمشاهدة المحتوى المخفي]]></phrase>
		</phrasetype>
		<phrasetype name="vBulletin Settings" fieldname="vbsettings">
			<phrase name="setting_sid_hide_active_desc" date="1228237146" username="" version="5.0"><![CDATA[إذا فعّلت هذا الخيار فسيصبح بإمكان الأعضاء منع بعض محتويات الموضوع ولا يمكن مشاهدتها إلا بعد الرد على الموضوع]]></phrase>
			<phrase name="setting_sid_hide_active_title" date="1228237146" username="" version="5.0"><![CDATA[تفعيل زر النص المخفي]]></phrase>
			<phrase name="setting_sid_hide_ajax_on_desc" date="1228237146" username="" version="5.0"><![CDATA[هل تود تفعيل ميزة الاجاكس ajax  هذا قد يتسبب في جهد على السيرفر والمنتدى!]]></phrase>
			<phrase name="setting_sid_hide_ajax_on_title" date="1228237146" username="" version="5.0"><![CDATA[اعدادات الاجاكس]]></phrase>
			<phrase name="setting_sid_hide_notforum_desc" date="1228237146" username="" version="5.0"><![CDATA[ادخل ارقام المنتديات اللتي لاتريد ان يعمل الهاك بها <br /> مثال: 2,11,33]]></phrase>
			<phrase name="setting_sid_hide_notforum_title" date="1228237146" username="" version="5.0"><![CDATA[منتديات مستثناه]]></phrase>
			<phrase name="setting_sid_hide_showadmin_desc" date="1228237146" username="" version="5.0"><![CDATA[اختر نعم لجعل الاداريين يشاهدون المحتوى المخفي بدون الرد]]></phrase>
			<phrase name="setting_sid_hide_showadmin_title" date="1228237146" username="" version="5.0"><![CDATA[الاداريين]]></phrase>
			<phrase name="setting_sid_hide_showmod_desc" date="1228237146" username="" version="5.0"><![CDATA[اختر نعم كي يستطيع المشرفين مشاهدة المواضيع المخفيه]]></phrase>
			<phrase name="setting_sid_hide_showmod_title" date="1228237146" username="" version="5.0"><![CDATA[المشرفين]]></phrase>
			<phrase name="setting_sid_hide_showposted_desc" date="1228237146" username="" version="5.0"><![CDATA[اختر نعم لعرض الاعضاء الذين شكروا الكاتب]]></phrase>
			<phrase name="setting_sid_hide_showposted_title" date="1228237146" username="" version="5.0"><![CDATA[الاعضاء الذين ردوا]]></phrase>
			<phrase name="setting_sid_hide_showthanked_desc" date="1228237146" username="" version="5.0"><![CDATA[اختر نعم لعرض الاعضاء الذين شكروا صاحب الموضوع]]></phrase>
			<phrase name="setting_sid_hide_showthanked_title" date="1228237146" username="" version="5.0"><![CDATA[من شكر صاحب الموضوع]]></phrase>
			<phrase name="setting_sid_hide_showusergroup_desc" date="1228237146" username="" version="5.0"><![CDATA[ادخل ارقام المجموعات المسموح لها بمشاهدة المحتوى المخفي <br /> مثال: 13,17,20]]></phrase>
			<phrase name="setting_sid_hide_showusergroup_title" date="1228237146" username="" version="5.0"><![CDATA[مجموعات مستثناه]]></phrase>
			<phrase name="setting_upload_site_desc" date="1228237353" username="" version="5.0"><![CDATA[يرجى تحديد مركز تحميل الملفات الذي يمكن للأعضاء من خلاله تحميل الصور للموضوع]]></phrase>
			<phrase name="setting_upload_site_title" date="1228237353" username="" version="5.0"><![CDATA[رابط مركز تحميل الملفات :]]></phrase>
			<phrase name="settinggroup_bbcode_sid_hide" date="1228237146" username="" version="5.0"><![CDATA[اعدادات الصندوق الماسي و المحتوى المخفي]]></phrase>
		</phrasetype>
	</phrases>
	<options>
		<settinggroup name="bbcode_sid_hide" displayorder="610">
			<setting varname="upload_site" displayorder="1">
				<datatype>free</datatype>
				<defaultvalue>https://up.bdr130.net</defaultvalue>
			</setting>
			<setting varname="sid_hide_active" displayorder="10">
				<datatype>bitfield</datatype>
				<optioncode>yesno</optioncode>
				<defaultvalue>1</defaultvalue>
			</setting>
			<setting varname="sid_hide_ajax_on" displayorder="20">
				<datatype>bitfield</datatype>
				<optioncode>yesno</optioncode>
				<defaultvalue>0</defaultvalue>
			</setting>
			<setting varname="sid_hide_notforum" displayorder="30">
				<datatype>free</datatype>
			</setting>
			<setting varname="sid_hide_showadmin" displayorder="40">
				<datatype>bitfield</datatype>
				<optioncode>yesno</optioncode>
				<defaultvalue>1</defaultvalue>
			</setting>
			<setting varname="sid_hide_showmod" displayorder="50">
				<datatype>bitfield</datatype>
				<optioncode>yesno</optioncode>
				<defaultvalue>1</defaultvalue>
			</setting>
			<setting varname="sid_hide_showusergroup" displayorder="60">
				<datatype>free</datatype>
			</setting>
			<setting varname="sid_hide_showthanked" displayorder="70">
				<datatype>bitfield</datatype>
				<optioncode>yesno</optioncode>
				<defaultvalue>0</defaultvalue>
			</setting>
			<setting varname="sid_hide_showposted" displayorder="80">
				<datatype>bitfield</datatype>
				<optioncode>yesno</optioncode>
				<defaultvalue>1</defaultvalue>
			</setting>
		</settinggroup>
	</options>
	<helptopics>
	</helptopics>
	<cronentries>
	</cronentries>
	<faqentries>
	</faqentries>
</product>
