<?php
/*======================================================================*\
|| #################################################################### ||
|| #                     الشامل اتلوين المجموعات                        ||
|| # ----------------------------------------------------------------   ||
|| #                          تطوير أبو راشد                            ||
|| #                      مشرف عام منتديات المودة                       ||
|| #            http://www.mwadah.com    mrs@mwadah.com                 ||
|| #################################################################### ||
\*======================================================================*/

// ########################################################################
// ######################### PRE-CACHE TEMPLATES AND DATA #################
// ########################################################################
define('THIS_SCRIPT', 'mwamwausergroupcolors');
$phrasegroups = array('style');
$specialtemplates = array('products');
$specialtemplates = array();

// ########################################################################
// ######################### SET PHP ENVIRONM ENT #########################
// ########################################################################
error_reporting(E_ALL & ~E_NOTICE);

// ########################################################################
// ######################### PRE-CACHE TEMPLATES AND DATA #################
// ########################################################################
$phrasegroups = array();
$specialtemplates = array();
$globaltemplates = array();
$actiontemplates = array();

// ########################################################################
// ######################### REQUIRE BACK-END #############################
// ########################################################################
require_once('./global.php');
require_once(DIR . '/includes/functions_file.php');
require_once(DIR . '/includes/adminfunctions_template.php');
print_cp_header('');

// ########################################################################
// ######################### function script  #############################
// ########################################################################
global $id;
function squreomwa($color)
{
         $open = '<input type="text" name="T1" style="'.$color.'" value="';
         $final = $open;
         return $final ;
}

function squrecmwa()
{
         $final = '">';
         return $final ;
}

// ########################################################################
// ######################### start script  ################################
// ########################################################################
print_description_row("$vbphrase[alchemy_display_func1]");
if ( empty($_REQUEST['do']) )
{
         print_cp_header($vbphrase['mwausergroupcolors']);
         print_form_header($vbphrase['mwausergroupcolors_g']);
         print_table_header($vbphrase['mwausergroupcolors_g'], 10);
         //print_description_row("$vbphrase[alchemy_display_func1]");
         print_cells_row(array(
                       $vbphrase['mwausergroupcolors_ug'],
                       $vbphrase['mwausergroupcolors_c'],
                       $vbphrase['mwausergroupcolors_xxx']
                       ), 1, 'tcat');
         //print_description_row("$vbphrase[alchemy_display_func2]");

         $usergroups = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "usergroup");
         while ($usergroup = $db->fetch_array($usergroups))
         {
	   $usergroup[opentag] = str_replace('mwaextrastatus/bak/', '../mwaextrastatus/bak/', $usergroup[opentag]);
         $cell = array();
         $cell[] = $usergroup[title];
         $cell[] = "$usergroup[opentag] $usergroup[title] $usergroup[closetag]";
         $cell[] = construct_button_code($vbphrase['mwausergroupcolors_x'], '?do=x&id='.$usergroup[usergroupid]);
         print_cells_row($cell);
         }
	   print_table_footer(4,construct_button_code('حذف التلوين من جميع المجموعات', '?do=xall').construct_button_code('تعديل الوان المجموعات', 'mwausergroupcolors.php?do=add&id=1'));
}
$action =$_GET['action'];
$id = $_GET['id'];

if ($_REQUEST['do'] == 'add')
{
$usergroups = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "usergroup where usergroupid =" .$id);
$usergroup = $db->fetch_array($usergroups);
        echo '<form action="mwausergroupcolors.php" method="post">';
        echo '<input type="hidden" name="groupid" size="20"  value="'.$id.'">';
        echo '<input type="hidden" name="adminhash" value="' . ADMINHASH . '" />';
$id = $usergroup['usergroupid'] ;
$usergroups = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "usergroup where usergroupid =" .$id);
$usergroup = $db->fetch_array($usergroups);
print_form_header($vbphrase['mwausergroupcolors_g']);
print_table_header($vbphrase['mwausergroupcolors_cm']);
$usergroup[opentag] = str_replace('mwaextrastatus/bak/', '../mwaextrastatus/bak/', $usergroup[opentag]);

$mwacolorsel = "<SELECT id=sel_nlp_usertextformatting_background onchange=nlp_usertextformatting('set'); name=nlp_usertextformatting_background>
<OPTION style=' ' value=>بدون صورة خلفية</OPTION>
<OPTION selected style='BACKGROUND-COLOR: black' value=url(../mwaextrastatus/bak/1.gif)>&nbsp;صورة رقم 1&nbsp;</OPTION>";
for ($i = 2; $i <= 476; $i++)
{
$mwacolorsel .= "<OPTION style='BACKGROUND-COLOR: black' value=url(../mwaextrastatus/bak/" . $i . ".gif)>&nbsp;صورة رقم " . $i . "&nbsp;</OPTION>\n";
}
$mwacolorsel .= "</SELECT>";

print_description_row('<br /><br />
لون الخلفية :
<SELECT id=sel_nlp_usertextformatting_background1 onchange="nlp_usertextformatting(\'set\');" name=nlp_usertextformatting_background1>
<OPTION style="BACKGROUND-COLOR: black" selected value=transparent>بدون لون خلفية ــ شفافية</OPTION>
<OPTION style="BACKGROUND-COLOR: #FF0000" value=FF0000>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #0000FF" value=0000FF>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #00FF00" value=00FF00>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #FF00FF" value=FF00FF>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #FFFF00" value=FFFF00>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #01B3FC" value=01B3FC>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #00FFFF" value=00FFFF>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #FFAA1E" value=FFAA1E>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #C958AF" value=C958AF>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #FFFFFF" value=FFFFFF>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #B9B9B9" value=B9B9B9>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #B0E651" value=B0E651>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #C696C2" value=C696C2>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #7C9EAB" value=7C9EAB>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #E0AA1C" value=E0AA1C>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #E10000" value=E10000>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #0000E1" value=0000E1>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #00E100" value=00E100>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #F000F0" value=F000F0>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #F0F000" value=F0F000>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #00A9F2" value=00A9F2>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #00F0F0" value=00F0F0>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #F5A014" value=F5A014>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #BF4EA5" value=BF4EA5>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #F5F5F5" value=F5F5F5>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #9B9B9B" value=9B9B9B>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #9CD23D" value=9CD23D>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #B282AE" value=B282AE>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #7294A1" value=7294A1>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #D6A012" value=D6A012>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #C30000" value=C30000>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #0000C3" value=0000C3>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #00C300" value=00C300>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #E100E1" value=E100E1>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #E1E100" value=E1E100>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #009AE3" value=009AE3>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #00E1E1" value=00E1E1>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #EB960A" value=EB960A>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #B5449B" value=B5449B>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #EBEBEB" value=EBEBEB>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #7D7D7D" value=7D7D7D>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #88BE29" value=88BE29>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #9E6E9A" value=9E6E9A>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #688A97" value=688A97>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #CC9608" value=CC9608>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #A50000" value=A50000>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #0000A5" value=0000A5>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #00A500" value=00A500>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #D200D2" value=D200D2>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #D2D200" value=D2D200>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #008BD4" value=008BD4>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #00D2D2" value=00D2D2>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #E18C00" value=E18C00>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #AB3A91" value=AB3A91>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #E1E1E1" value=E1E1E1>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #696969" value=696969>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #74AA15" value=74AA15>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #8A5A86" value=8A5A86>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #5E808D" value=5E808D>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #C28C00" value=C28C00>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #870000" value=870000>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #000087" value=000087>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #008700" value=008700>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #C300C3" value=C300C3>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #C3C300" value=C3C300>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #007CC5" value=007CC5>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #00C3C3" value=00C3C3>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #D27D00" value=D27D00>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #A13087" value=A13087>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #D7D7D7" value=D7D7D7>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #5F5F5F" value=5F5F5F>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #609601" value=609601>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #764672" value=764672>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #547683" value=547683>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #B37D00" value=B37D00>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #690000" value=690000>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #000069" value=000069>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #006900" value=006900>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #B400B4" value=B400B4>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #B4B400" value=B4B400>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #006DB6" value=006DB6>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #00B4B4" value=00B4B4>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #C36E00" value=C36E00>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #97267D" value=97267D>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #CDCDCD" value=CDCDCD>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #000000" value=000000>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #477D00" value=477D00>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #62325E" value=62325E>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #4A6C79" value=4A6C79>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #A46E00" value=A46E00>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #B2BB7F" value=B2BB7F>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #9EA76B" value=9EA76B>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #8A9357" value=8A9357>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #767F43" value=767F43>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #E34BDC" value=E34BDC>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #EC8953" value=EC8953>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #B0FDA0" value=B0FDA0>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #645C14" value=645C14>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #878FD7" value=878FD7>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #738075" value=738075>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #405E94" value=405E94>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #5472A8" value=5472A8>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #6886BC" value=6886BC>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #7C9AD0" value=7C9AD0>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #90AEE4" value=90AEE4>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #A4C2F8" value=A4C2F8>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #B18EE0" value=B18EE0>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #9370C2" value=9370C2>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #7F5CAE" value=7F5CAE>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #80A351" value=80A351>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #B2D5BF" value=B2D5BF>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #94B7A1" value=94B7A1>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #80A38D" value=80A38D>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #6C8F79" value=6C8F79>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #587B65" value=587B65>&nbsp;&nbsp;</OPTION>
</SELECT>
<br><br>صورة الخلفية : ' . $mwacolorsel .'<br> 

<SCRIPT language=javascript type=text/javascript>
<!--
function nlp_usertextformatting(req) {
	var prefix = \'sel_nlp_usertextformatting_\';

	switch(req) {
		case \'color\':
			fetch_object(prefix + \'fontcolor\').style.backgroundColor = fetch_object(prefix + \'fontcolor\').value;
			nlp_usertextformatting(\'set\');
		break;
		case \'set\':
			fetch_object(prefix + \'preveiw\').style.font = (fetch_object(prefix + \'fontweight\').checked == 1 ? \'bold\' : \'normal\') + \' \' + (fetch_object(prefix + \'fontsize\').value != -1 ? fetch_object(prefix + \'fontsize\').value : \'\') + \' \' + (fetch_object(prefix + \'fonttype\').value != -1 ? fetch_object(prefix + \'fonttype\').value : \'\');
			fetch_object(prefix + \'preveiw\').style.color = (fetch_object(prefix + \'fontcolor\').value != -1 ? fetch_object(prefix + \'fontcolor\').value : \'\');
			var mwabackground = fetch_object(prefix + \'background1\').value + \' \' + fetch_object(prefix + \'background\').value;
			fetch_object(prefix + \'preveiw\').style.background = mwabackground;
			var mwaborder = fetch_object(prefix + \'border\').value + \' \' + fetch_object(prefix + \'borderkind\').value + \' \' + fetch_object(prefix + \'bordercolor\').value;
			fetch_object(prefix + \'preveiw\').style.border = mwaborder;
			fetch_object(prefix + \'preveiw\').style.width = (fetch_object(prefix + \'width\').value != -1 ? fetch_object(prefix + \'width\').value : \'\');
			fetch_object(prefix + \'preveiw\').style.height = (fetch_object(prefix + \'height\').value != -1 ? fetch_object(prefix + \'height\').value : \'\');
			fetch_object(prefix + \'preveiw\').style.padding = (fetch_object(prefix + \'padding\').value != -1 ? fetch_object(prefix + \'padding\').value : \'\');
			fetch_object(prefix + \'preveiw\').style.width1 = (fetch_object(prefix + \'width1\').value != -1 ? fetch_object(prefix + \'width1\').value : \'\');
		break;
	}
}
//-->
</SCRIPT>
<br />
نوع الخط :
<SELECT id=sel_nlp_usertextformatting_fonttype onchange="nlp_usertextformatting(\'set\');" name=nlp_usertextformatting_fonttype>
<OPTION value=Times New Roman>إستخدام الإفتراضي</OPTION>
<OPTION selected value="Times New Roman">Times New Roman</OPTION>
<OPTION value="Microsoft Sans Serif">Microsoft Sans Serif</OPTION>
<OPTION value="Mudir MT">Mudir MT</OPTION>
<OPTION value="Arabic Transparent">Arabic Transparent</OPTION>
<OPTION value="Monotype Koufi">Monotype Koufi</OPTION>
<OPTION value="Traditional Arabic">Traditional Arabic</OPTION>
<OPTION value="MS Sans Serif">MS Sans Serif</OPTION>
<OPTION value=Arial>Arial</OPTION>
<OPTION value=Tahoma>Tahoma</OPTION>
<OPTION value="Trebuchet MS">Trebuchet MS</OPTION>
<OPTION value=Verdana>Verdana</OPTION>
<OPTION value="Comic Sans MS">Comic Sans MS</OPTION>
<OPTION value="Courier New">Courier New</OPTION>
</SELECT>

<LABEL for=sel_nlp_usertextformatting_fontweight>خط سميك :</LABEL>

<INPUT id=sel_nlp_usertextformatting_fontweight onchange="nlp_usertextformatting(\'set\');" value=1 CHECKED type=checkbox name=nlp_usertextformatting_fontweight>

<br /><br />
حجم الخط :
<SELECT id=sel_nlp_usertextformatting_fontsize onchange="nlp_usertextformatting(\'set\');" name=nlp_usertextformatting_fontsize>
<OPTION value=12pt>إستخدام الإفتراضي</OPTION>
<OPTION value=6pt>6pt</OPTION>
<OPTION value=8pt>8pt</OPTION>
<OPTION value=10pt>10pt</OPTION>
<OPTION selected value=12pt>12pt</OPTION>
<OPTION value=14pt>14pt</OPTION>
<OPTION value=16pt>16pt</OPTION>
<OPTION value=18pt>18pt</OPTION>
</SELECT>

<br /><br />
لون الكتابة : 

<SELECT style="BACKGROUND-COLOR: orange" id=sel_nlp_usertextformatting_fontcolor onchange="nlp_usertextformatting(\'color\');" name=nlp_usertextformatting_fontcolor>
<OPTION style="BACKGROUND-COLOR: Red" value=Red>إستخدام الإفتراضي</OPTION>
<OPTION style="BACKGROUND-COLOR: #FF0000" value=FF0000>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #0000FF" value=0000FF>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #00FF00" value=00FF00>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #FF00FF" value=FF00FF>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #FFFF00" value=FFFF00>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #01B3FC" value=01B3FC>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #00FFFF" value=00FFFF>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #FFAA1E" value=FFAA1E>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #C958AF" value=C958AF>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #FFFFFF" value=FFFFFF>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #B9B9B9" value=B9B9B9>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #B0E651" value=B0E651>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #C696C2" value=C696C2>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #7C9EAB" value=7C9EAB>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #E0AA1C" value=E0AA1C>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #E10000" value=E10000>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #0000E1" value=0000E1>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #00E100" value=00E100>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #F000F0" value=F000F0>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #F0F000" value=F0F000>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #00A9F2" value=00A9F2>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #00F0F0" value=00F0F0>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #F5A014" value=F5A014>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #BF4EA5" value=BF4EA5>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #F5F5F5" value=F5F5F5>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #9B9B9B" value=9B9B9B>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #9CD23D" value=9CD23D>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #B282AE" value=B282AE>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #7294A1" value=7294A1>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #D6A012" value=D6A012>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #C30000" value=C30000>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #0000C3" value=0000C3>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #00C300" value=00C300>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #E100E1" value=E100E1>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #E1E100" value=E1E100>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #009AE3" value=009AE3>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #00E1E1" value=00E1E1>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #EB960A" value=EB960A>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #B5449B" value=B5449B>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #EBEBEB" value=EBEBEB>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #7D7D7D" value=7D7D7D>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #88BE29" value=88BE29>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #9E6E9A" value=9E6E9A>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #688A97" value=688A97>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #CC9608" value=CC9608>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #A50000" selected value=A50000>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #0000A5" value=0000A5>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #00A500" value=00A500>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #D200D2" value=D200D2>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #D2D200" value=D2D200>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #008BD4" value=008BD4>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #00D2D2" value=00D2D2>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #E18C00" value=E18C00>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #AB3A91" value=AB3A91>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #E1E1E1" value=E1E1E1>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #696969" value=696969>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #74AA15" value=74AA15>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #8A5A86" value=8A5A86>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #5E808D" value=5E808D>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #C28C00" value=C28C00>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #870000" value=870000>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #000087" value=000087>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #008700" value=008700>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #C300C3" value=C300C3>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #C3C300" value=C3C300>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #007CC5" value=007CC5>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #00C3C3" value=00C3C3>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #D27D00" value=D27D00>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #A13087" value=A13087>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #D7D7D7" value=D7D7D7>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #5F5F5F" value=5F5F5F>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #609601" value=609601>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #764672" value=764672>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #547683" value=547683>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #B37D00" value=B37D00>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #690000" value=690000>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #000069" value=000069>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #006900" value=006900>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #B400B4" value=B400B4>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #B4B400" value=B4B400>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #006DB6" value=006DB6>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #00B4B4" value=00B4B4>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #C36E00" value=C36E00>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #97267D" value=97267D>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #CDCDCD" value=CDCDCD>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #000000" value=000000>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #477D00" value=477D00>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #62325E" value=62325E>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #4A6C79" value=4A6C79>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #A46E00" value=A46E00>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #B2BB7F" value=B2BB7F>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #9EA76B" value=9EA76B>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #8A9357" value=8A9357>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #767F43" value=767F43>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #E34BDC" value=E34BDC>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #EC8953" value=EC8953>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #B0FDA0" value=B0FDA0>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #645C14" value=645C14>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #878FD7" value=878FD7>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #738075" value=738075>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #405E94" value=405E94>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #5472A8" value=5472A8>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #6886BC" value=6886BC>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #7C9AD0" value=7C9AD0>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #90AEE4" value=90AEE4>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #A4C2F8" value=A4C2F8>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #B18EE0" value=B18EE0>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #9370C2" value=9370C2>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #7F5CAE" value=7F5CAE>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #80A351" value=80A351>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #B2D5BF" value=B2D5BF>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #94B7A1" value=94B7A1>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #80A38D" value=80A38D>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #6C8F79" value=6C8F79>&nbsp;&nbsp;</OPTION>
<OPTION style="BACKGROUND-COLOR: #587B65" value=587B65>&nbsp;&nbsp;</OPTION>
</SELECT>

<br /><br />
عرض الإطار :
<SELECT id=sel_nlp_usertextformatting_border onchange="nlp_usertextformatting(\'set\');" name=nlp_usertextformatting_border>
<OPTION selected value=0>بدون إطار</OPTION>
<OPTION value=1px>1</OPTION>
<OPTION value=2px>2</OPTION>
<OPTION value=3px>3</OPTION>
<OPTION value=4px>4</OPTION>
<OPTION value=5px>5</OPTION>
<OPTION value=6px>6</OPTION>
<OPTION value=7px>7</OPTION>
<OPTION value=8px>8</OPTION>
</SELECT>
<br /><br />
نوع الإطار :
<SELECT id=sel_nlp_usertextformatting_borderkind onchange="nlp_usertextformatting(\'set\');" name=nlp_usertextformatting_borderkind>
<OPTION selected value=solid>عادي</OPTION>
<OPTION value=dotted>منقط</OPTION>
<OPTION value=dashed>متقطع</OPTION>
<OPTION value=groove>محفور</OPTION>
<OPTION value=double>مزدوج</OPTION>
</SELECT>
<br /><br />
لون اإطار :
<SELECT id=sel_nlp_usertextformatting_bordercolor onchange="nlp_usertextformatting(\'set\');" name=nlp_usertextformatting_bordercolor>
<OPTION selected value=transparent>بدون لون ــ شفافية</OPTION <OPTION 
                          style="BACKGROUND-COLOR: black" 
                          value=Black>&nbsp;&nbsp;</OPTION> <OPTION 
                          style="BACKGROUND-COLOR: sienna" 
                          value=Sienna>&nbsp;&nbsp;</OPTION> <OPTION 
                          style="BACKGROUND-COLOR: darkolivegreen" 
                          value=DarkOliveGreen>&nbsp;&nbsp;</OPTION> <OPTION 
                          style="BACKGROUND-COLOR: darkgreen" 
                          value=DarkGreen>&nbsp;&nbsp;</OPTION> <OPTION 
                          style="BACKGROUND-COLOR: darkslateblue" 
                          value=DarkSlateBlue>&nbsp;&nbsp;</OPTION> <OPTION 
                          style="BACKGROUND-COLOR: navy" 
                          value=Navy>&nbsp;&nbsp;</OPTION> <OPTION 
                          style="BACKGROUND-COLOR: indigo" 
                          value=Indigo>&nbsp;&nbsp;</OPTION> <OPTION 
                          style="BACKGROUND-COLOR: darkslategray" 
                          value=DarkSlateGray>&nbsp;&nbsp;</OPTION> <OPTION 
                          style="BACKGROUND-COLOR: darkred" 
                          value=DarkRed>&nbsp;&nbsp;</OPTION> <OPTION 
                          style="BACKGROUND-COLOR: darkorange" 
                          value=DarkOrange>&nbsp;&nbsp;</OPTION> <OPTION 
                          style="BACKGROUND-COLOR: olive" 
                          value=Olive>&nbsp;&nbsp;</OPTION> <OPTION 
                          style="BACKGROUND-COLOR: green" 
                          value=Green>&nbsp;&nbsp;</OPTION> <OPTION 
                          style="BACKGROUND-COLOR: teal" 
                          value=Teal>&nbsp;&nbsp;</OPTION> <OPTION 
                          style="BACKGROUND-COLOR: blue" 
                          value=Blue>&nbsp;&nbsp;</OPTION> <OPTION 
                          style="BACKGROUND-COLOR: slategray" 
                          value=SlateGray>&nbsp;&nbsp;</OPTION> <OPTION 
                          style="BACKGROUND-COLOR: dimgray" 
                          value=DimGray>&nbsp;&nbsp;</OPTION> <OPTION 
                          style="BACKGROUND-COLOR: red" 
                          value=Red>&nbsp;&nbsp;</OPTION> <OPTION 
                          style="BACKGROUND-COLOR: sandybrown" 
                          value=SandyBrown>&nbsp;&nbsp;</OPTION> <OPTION 
                          style="BACKGROUND-COLOR: yellowgreen" 
                          value=YellowGreen>&nbsp;&nbsp;</OPTION> <OPTION 
                          style="BACKGROUND-COLOR: seagreen" 
                          value=SeaGreen>&nbsp;&nbsp;</OPTION> <OPTION 
                          style="BACKGROUND-COLOR: mediumturquoise" 
                          value=MediumTurquoise>&nbsp;&nbsp;</OPTION> <OPTION 
                          style="BACKGROUND-COLOR: royalblue" 
                          value=RoyalBlue>&nbsp;&nbsp;</OPTION> <OPTION 
                          style="BACKGROUND-COLOR: purple" 
                          value=Purple>&nbsp;&nbsp;</OPTION> <OPTION 
                          style="BACKGROUND-COLOR: gray" 
                          value=Gray>&nbsp;&nbsp;</OPTION> <OPTION 
                          style="BACKGROUND-COLOR: magenta" 
                          value=Magenta>&nbsp;&nbsp;</OPTION> <OPTION 
                          style="BACKGROUND-COLOR: orange" 
                          value=Orange>&nbsp;&nbsp;</OPTION> <OPTION 
                          style="BACKGROUND-COLOR: yellow" 
                          value=Yellow>&nbsp;&nbsp;</OPTION> <OPTION 
                          style="BACKGROUND-COLOR: lime" 
                          value=Lime>&nbsp;&nbsp;</OPTION> <OPTION 
                          style="BACKGROUND-COLOR: cyan" 
                          value=Cyan>&nbsp;&nbsp;</OPTION> <OPTION 
                          style="BACKGROUND-COLOR: deepskyblue" 
                          value=DeepSkyBlue>&nbsp;&nbsp;</OPTION> <OPTION 
                          style="BACKGROUND-COLOR: darkorchid" 
                          value=DarkOrchid>&nbsp;&nbsp;</OPTION> <OPTION 
                          style="BACKGROUND-COLOR: silver" 
                          value=Silver>&nbsp;&nbsp;</OPTION> <OPTION 
                          style="BACKGROUND-COLOR: pink" 
                          value=Pink>&nbsp;&nbsp;</OPTION> <OPTION 
                          style="BACKGROUND-COLOR: wheat" 
                          value=Wheat>&nbsp;&nbsp;</OPTION> <OPTION 
                          style="BACKGROUND-COLOR: lemonchiffon" 
                          value=LemonChiffon>&nbsp;&nbsp;</OPTION> <OPTION 
                          style="BACKGROUND-COLOR: palegreen" 
                          value=PaleGreen>&nbsp;&nbsp;</OPTION> <OPTION 
                          style="BACKGROUND-COLOR: paleturquoise" 
                          value=PaleTurquoise>&nbsp;&nbsp;</OPTION> <OPTION 
                          style="BACKGROUND-COLOR: lightblue" 
                          value=LightBlue>&nbsp;&nbsp;</OPTION> <OPTION 
                          style="BACKGROUND-COLOR: plum" 
                          value=Plum>&nbsp;&nbsp;</OPTION> <OPTION 
                          style="BACKGROUND-COLOR: white" 
                          value=White>&nbsp;&nbsp;</OPTION>
</SELECT>

<br /><br />
العرض :
<SELECT id=sel_nlp_usertextformatting_width onchange="nlp_usertextformatting(\'set\');" name=nlp_usertextformatting_width>
<OPTION value=50px>50</OPTION>
<OPTION value=60px>60</OPTION>
<OPTION value=70px>70</OPTION>
<OPTION value=80px>80</OPTION>
<OPTION value=90px>90</OPTION>
<OPTION value=100px>100</OPTION>
<OPTION value=101px>101</OPTION>
<OPTION value=102px>102</OPTION>
<OPTION value=103px>103</OPTION>
<OPTION value=104px>104</OPTION>
<OPTION value=105px>105</OPTION>
<OPTION value=106px>106</OPTION>
<OPTION selected value=107px>107</OPTION>
<OPTION value=108px>108</OPTION>
<OPTION value=109px>109</OPTION>
<OPTION value=110px>110</OPTION>
<OPTION value=111px>111</OPTION>
<OPTION value=112px>112</OPTION>
<OPTION value=113px>113</OPTION>
<OPTION value=114px>114</OPTION>
<OPTION value=115px>115</OPTION>
<OPTION value=120px>120</OPTION>
<OPTION value=130px>130</OPTION>
<OPTION value=140px>140</OPTION>
<OPTION value=150px>150</OPTION>
</SELECT>

<br /><br />
الإرتفاع :
<SELECT id=sel_nlp_usertextformatting_height onchange="nlp_usertextformatting(\'set\');" name=nlp_usertextformatting_height>
<OPTION value=10px>10</OPTION>
<OPTION value=11px>11</OPTION>
<OPTION value=12px>12</OPTION>
<OPTION value=13px>13</OPTION>
<OPTION value=14px>14</OPTION>
<OPTION value=15px>15</OPTION>
<OPTION value=16px>16</OPTION>
<OPTION value=17px>17</OPTION>
<OPTION value=18px>18</OPTION>
<OPTION value=19px>19</OPTION>
<OPTION value=20px>20</OPTION>
<OPTION value=21px>21</OPTION>
<OPTION selected value=22px>22</OPTION>
<OPTION value=23px>23</OPTION>
<OPTION value=24px>24</OPTION>
<OPTION value=25px>25</OPTION>
<OPTION value=26px>26</OPTION>
<OPTION value=27px>27</OPTION>
<OPTION value=28px>28</OPTION>
<OPTION value=29px>29</OPTION>
<OPTION value=30px>30</OPTION>
<OPTION value=32px>32</OPTION>
<OPTION value=34px>34</OPTION>
<OPTION value=36px>36</OPTION>
<OPTION value=38px>38</OPTION>
<OPTION value=40px>40</OPTION>
</SELECT>
<br /><br />
الهوامش :
<SELECT id=sel_nlp_usertextformatting_padding onchange="nlp_usertextformatting(\'set\');" name=nlp_usertextformatting_padding>
<OPTION value=0px>0</OPTION>
<OPTION value=1px>1</OPTION>
<OPTION selected value=2px>2</OPTION>
<OPTION value=3px>3</OPTION>
<OPTION value=4px>4</OPTION>
<OPTION value=5px>5</OPTION>
<OPTION value=6px>6</OPTION>
<OPTION value=7px>7</OPTION>
<OPTION value=8px>8</OPTION>
<OPTION value=9px>9</OPTION>
</SELECT>

<br /><br /><br /><br /><br /><br />
شكل التصميم الجديد : <input type="text" style="width1:55; padding:2px; text-align:center; width:107px; height:22px; FONT-SIZE:12pt; FONT-FAMILY: Times New Roman; COLOR: white; FONT-WEIGHT: bold" id="sel_nlp_usertextformatting_preveiw" value="منتديات المودة" readonly>
<br /><br />

<script>
nlp_usertextformatting(\'set\');
function nlp_mwasave(mwareq)
{
var prefix = \'sel_nlp_usertextformatting_\';
var mwafontcolor = fetch_object(prefix + \'fontcolor\').value;
var mwafont = (fetch_object(prefix + \'fontweight\').checked == 1 ? \'bold\' : \'normal\') + \' \' + (fetch_object(prefix + \'fontsize\').value != -1 ? fetch_object(prefix + \'fontsize\').value : \'\') + \' \' + (fetch_object(prefix + \'fonttype\').value != -1 ? fetch_object(prefix + \'fonttype\').value : \'\');
var mwaborder = fetch_object(prefix + \'border\').value + \' \' + fetch_object(prefix + \'borderkind\').value + \' \' + fetch_object(prefix + \'bordercolor\').value;
var mwawidth = fetch_object(prefix + \'width\').value;
var mwaheight = fetch_object(prefix + \'height\').value;
var mwapadding = fetch_object(prefix + \'padding\').value;
var mwabackground = fetch_object(prefix + \'background1\').value + \' \' + fetch_object(prefix + \'background\').value;
var mwaall = \'<input readonly type="text" name="T1" style="cursor:hand; text-align:center; font:\'+mwafont+\'; padding:\'+mwapadding+\'; color:\'+mwafontcolor+\'; border:\'+mwaborder+\'; width:\'+mwawidth+\'; height:\'+mwaheight+\'; background:\'+mwabackground+\';" value="\';
var id = fetch_object(prefix + \'width1\').value;
//window.location = \'mwausergroupcolors.php?do=endmwa&id=\'+id+\'&color=\'+mwaall;

window.open(\'mwausergroupcolors.php?do=endmwa&id=\'+id+\'&color=\'+mwaall+\'&mwafontcolor=\'+mwafontcolor);

}
</script>

<br /><br /></center>
');

         $usergroups = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "usergroup");
	   $mwagroupssel = "<SELECT id=sel_nlp_usertextformatting_width1 onchange=nlp_usertextformatting(\'set\'); name=nlp_usertextformatting_width1>";
         while ($usergroup = $db->fetch_array($usergroups))
         {
	   $mwagroupssel .= "<OPTION selected value=".$usergroup[usergroupid].">".$usergroup[title]."</OPTION>";
         }
	   $mwagroupssel .= "</SELECT>";

print_description_row("<br><input type=hidden name=mwasgroupid size=10  value=99> المجموعة المطلوب تغيير لونها : $mwagroupssel <INPUT class=button onclick=javascript:nlp_mwasave($id) value='حفظ التصميم الجديد للمجموعة المختارة' type=button><INPUT class=button onclick=javascript:window.open('mwausergroupcolors.php'); value='مشاهدة وحذف الوان المجموعات' type=button><br><br>");

}

// do insert
if ($_REQUEST['do'] == 'endmwa')
{

      if($_REQUEST['id'] && $_REQUEST['color'])
      {
		$mwatagstart = $_REQUEST['color'];
		$mwatagstart = str_replace('../mwaextrastatus', 'mwaextrastatus', $mwatagstart);
		$mwasemp = "\'";
		$mwatagstart = str_replace('"', $mwasemp, $mwatagstart);
		$mwatagstart = str_replace('color:', 'color:#', $mwatagstart);
		if (!strpos ($mwatagstart, "background:transparent"))
		{
		$mwatagstart = str_replace('background:', 'background:#', $mwatagstart);
		}
		$mwatagend = squrecmwa();
		$mwatagend = str_replace('"', $mwasemp, $mwatagend);

		if ((strpos ($mwatagstart, "background:transparent ;")) and (strpos ($mwatagstart, "border:0")))
		{
		$mwatagstart = '<font color=#'.$_REQUEST['mwafontcolor'].'>';
		$mwatagend = '</font>';
		}
            $db->query_write("UPDATE " . TABLE_PREFIX . "usergroup SET opentag = '".$mwatagstart."', closetag = '".$mwatagend."' where usergroupid = '".$_REQUEST['id']."'");
            require_once(DIR . '/includes/functions_databuild.php');
            build_forum_permissions();
            print_cp_header($vbphrase['vbulletin_message']);
            print_form_header('', '', 0, 1, 'messageform', '50%');
            print_table_header($vbphrase['vbulletin_message']);
            print_description_row("<center>".$vbphrase['mwausergroupcolors_done']."</center>");
            print_table_footer(2, construct_button_code($vbphrase['go_back'], 'mwausergroupcolors.php'));
      }
}
if ($_REQUEST['do'] == 'x')
{
      if($_REQUEST['id'])
      {
            $db->query_write("UPDATE " . TABLE_PREFIX . "usergroup SET opentag = '', closetag = '' where usergroupid = '".$_REQUEST['id']."'");
            require_once(DIR . '/includes/functions_databuild.php');
            build_forum_permissions();
            print_cp_header($vbphrase['vbulletin_message']);
            print_form_header('', '', 0, 1, 'messageform', '50%');
            print_table_header($vbphrase['vbulletin_message']);
            print_description_row("<center>".$vbphrase['mwausergroupcolors_xx']."</center>");
            print_table_footer(2, construct_button_code($vbphrase['go_back'], 'mwausergroupcolors.php'));
      }
}

if ($_REQUEST['do'] == 'xall')
{
            $db->query_write("UPDATE " . TABLE_PREFIX . "usergroup SET opentag = '', closetag = ''");
            require_once(DIR . '/includes/functions_databuild.php');
            build_forum_permissions();
            print_cp_header($vbphrase['vbulletin_message']);
            print_form_header('', '', 0, 1, 'messageform', '50%');
            print_table_header($vbphrase['vbulletin_message']);
            print_description_row("<center>تم حذف التلوين من جميع المجموعات بنجاح</center>");
            print_table_footer(2, construct_button_code($vbphrase['go_back'], 'mwausergroupcolors.php'));
}

// ########################################################################
// ######################### footer #######################################
// ########################################################################

$mwausergroupcolors_ver = 1.0;
$mwausergroupcolors_useover_fontcolor = '#D04850';
function da_print_footer ()
{
       global $mwausergroupcolors_ver;
       echo '<p align="center"><a href="http://www.mwadah.com" target="_blank">الشامل لتلوين المجموعات الإصدار '.$mwausergroupcolors_ver.' بواسطة ابو راشد مشرف عام منتديات المودة </a>';
}

echo '<center><table><tr><td></p>';
echo '<br>';
echo '</td></tr></table></p>';
print_description_row("$vbphrase[alchemy_display_func2]");
da_print_footer();
print_cp_footer();

/*======================================================================*\
|| #################################################################### ||
|| #                     الشامل اتلوين المجموعات                        ||
|| # ----------------------------------------------------------------   ||
|| #                          تطوير أبو راشد                            ||
|| #                      مشرف عام منتديات المودة                       ||
|| #            http://www.mwadah.com    mrs@mwadah.com                 ||
|| #################################################################### ||
\*======================================================================*/
?>