<?php
/*======================================================================*\
|| #################################################################### ||
|| #                        usergroup color                             ||
|| # ----------------------------------------------------------------   ||
|| #                          by dr-php                                 ||
|| #             http://www.dr-php.ws    dr_php@msn.com                 ||
|| #################################################################### ||
\*======================================================================*/

// ########################################################################
// ######################### PRE-CACHE TEMPLATES AND DATA #################
// ########################################################################
define('THIS_SCRIPT', 'mwaugc');
$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');
?>
<link rel="stylesheet" href="../clientscript/ugc.css" type="text/css" />
<link rel="stylesheet" href="../clientscript/ugcmwa.css" type="text/css" />
<?php
print_cp_header('');
print_description_row('<link rel="stylesheet" href="../clientscript/ugc.css" type="text/css" /><link rel="stylesheet" href="../clientscript/ugcmwa.css" type="text/css" />');

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

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

function squreo($color)
{
         $open = '<input type="text" name="T1" size="17" class="'.$color.'" value="';
         $final = $open;
         return $final ;
}
function squrec()
{
         $final = '" readonly style="width: 90">';
         return $final ;
}
function squrho($color)
{
         $open = '<input type="text" name="T1" size="17" class="'.$color.'" value="';
         $final = $open;
         return $final ;
}
function squrgec()
{
         $final = '" readonly style="border-style:double; border-width:3px; padding:0; width: 70">';
         return $final ;
}
function squrecm()
{
         $final1 = '" readonly style="border-style:dotted; border-width:1px; width: 90">';
         return $final1 ;
}
function coloro($c)
{
         $opc = '<font color="#'.$c.'">';
         return $opc ;
}
function colorc()
{
         $clc = '</font>';
         return $clc ;
}
function suiteo2($m1)
{
         $file = "<font color=\"#000000\"><SCRIPT language=\"JavaScript\"> var scolor='#ffffff'; var a_speed='4'; var shimmercount=shimmercount+1; eval('var shimmerspeed' +shimmercount+ '=\"' +a_speed+ '\"'); eval('var shimmercolor' +shimmercount+ '=\"' +scolor+ '\"');  document.write(\"<b><span id='\" + shimmercount + \"shine'>\"); </SCRIPT>";
         $file = str_replace("000000",$m1,$file);
         return $file ;
}
function suiteo($m1)
{
         $file = "<font color=\"#000000\"><SCRIPT language=\"JavaScript\"> var scolor=\'#ffffff\'; var a_speed=\'2\'; var shimmercount=shimmercount+1; eval(\'var shimmerspeed\' +shimmercount+ \'=\"\' +a_speed+ \'\"\'); eval(\'var shimmercolor\' +shimmercount+ \'=\"\' +scolor+ \'\"\');  document.write(\"<b><span id=\'\" + shimmercount + \"shine\'>\"); </SCRIPT>";
         $file = str_replace("000000",$m1,$file);
         return $file ;
}
function suitec()
{
         $suc = "</span></b></font>";
         return $suc ;
}
function kzo()
{
         $muo = "<SCRIPT language=\"JavaScript\">var rainbowcount=(rainbowcount+1); document.write(\"<span id=\'rain\"+rainbowcount+\"\'>\"); </SCRIPT>";
         return $muo ;
}
function kzc()
{
         $muc = "</span>";
         return $muc ;
}
// ########################################################################
// ######################### start script  ################################
// ########################################################################
print_description_row("$vbphrase[alchemy_display_func1]");
if ( empty($_REQUEST['do']) )
{
         print_cp_header($vbphrase['ugc']);
         print_form_header($vbphrase['ugc_g']);
         print_table_header($vbphrase['ugc_g'], 10);
         //print_description_row("$vbphrase[alchemy_display_func1]");
         print_cells_row(array(
                       $vbphrase['ugc_ug'],
                       $vbphrase['ugc_c'],
                       $vbphrasr['ugc_add'],
                       $vbphrase['ugc_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))
         {


         $cell = array();
         $cell[] = $usergroup[title];
         $cell[] = "$usergroup[opentag] $usergroup[title] $usergroup[closetag]";
         $cell[] = construct_button_code($vbphrase['ugc_add'], '?do=add&id='.$usergroup[usergroupid]);
         $cell[] = construct_button_code($vbphrase['ugc_x'], '?do=x&id='.$usergroup[usergroupid]);
         print_cells_row($cell);
         }
}
$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);
        print_table_start();
        print_table_header($vbphrase['ugc_nol']);
        echo '<form action="ugc.php" method="post">';
        echo '<input type="hidden" name="groupid" size="20"  value="'.$id.'">';
        echo '<input type="hidden" name="adminhash" value="' . ADMINHASH . '" />';
        print_radio_row($vbphrase['ugc_cho'], 'do',
              array(
              '1' => $vbphrase['ugc_a3'],
              '2' => $vbphrase['ugc_m3'],
              '3' => $vbphrase['ugc_am'],
              '4' => $vbphrase['ugc_mm'],
              '5' => $vbphrase['ugc_a7'],
              '6' => $vbphrase['ugc_a3_mwa'],
        ));
        print_submit_row('إستمرار', '');
}
if ($_REQUEST['do'] == '1')
{
$id = $_POST['groupid'] ;
$usergroups = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "usergroup where usergroupid =" .$id);
$usergroup = $db->fetch_array($usergroups);
            print_form_header($vbphrase['ugc_g']);
            print_table_header($vbphrase['ugc_a3']);
            print_description_row("اللون الحالي :  $usergroup[opentag] $usergroup[title] $usergroup[closetag]");
            print_description_row('
                                    <center>
                                            <table border="0" width="100%" cellspacing="0" cellpadding="0">
                                                    <tr>
                                                            <td align="center"><a href=?do=endc&&id='.$id.'&&c=FF1515>'.coloro("FF1515").$usergroup[title].colorc().'</a><br>&nbsp;</td>
                                                            <td align="center"><a href=?do=endc&&id='.$id.'&&c=008000>'.coloro("008000").$usergroup[title].colorc().'</a><br>&nbsp;</td>
                                                            <td align="center"><a href=?do=endc&&id='.$id.'&&c=0000FF>'.coloro("0000FF").$usergroup[title].colorc().'</a><br>&nbsp;</td>
                                                            <td align="center"><a href=?do=endc&&id='.$id.'&&c=CCCCCC>'.coloro("CCCCCC").$usergroup[title].colorc().'</a><br>&nbsp;</td>
                                                    </tr>
                                                    <tr>
                                                            <td align="center"><a href=?do=endc&&id='.$id.'&&c=FF66CC>'.coloro("FF66CC").$usergroup[title].colorc().'</a><br>&nbsp;</td>
                                                            <td align="center"><a href=?do=endc&&id='.$id.'&&c=FF9900>'.coloro("FF9900").$usergroup[title].colorc().'</a><br>&nbsp;</td>
                                                            <td align="center"><a href=?do=endc&&id='.$id.'&&c=008080>'.coloro("008080").$usergroup[title].colorc().'</a><br>&nbsp;</td>
                                                            <td align="center"><a href=?do=endc&&id='.$id.'&&c=BF0000>'.coloro("BF0000").$usergroup[title].colorc().'</a><br>&nbsp;</td>
                                                    </tr>
                                                    <tr>
                                                            <td align="center"><a href=?do=endc&&id='.$id.'&&c=CC33FF>'.coloro("CC33FF").$usergroup[title].colorc().'</a><br>&nbsp;</td>
                                                            <td align="center"><a href=?do=endc&&id='.$id.'&&c=000000>'.coloro("000000").$usergroup[title].colorc().'</a><br>&nbsp;</td>
                                                            <td align="center"><a href=?do=endc&&id='.$id.'&&c=ffffff>'.coloro("ffffff").$usergroup[title].colorc().'</a><br>&nbsp;</td>
                                                            <td align="center"><a href=?do=endc&&id='.$id.'&&c=00FFFF>'.coloro("00FFFF").$usergroup[title].colorc().'</a><br>&nbsp;</td>
                                                    </tr>
                                                    <tr>
                                                            <td align="center"><a href=?do=endc&&id='.$id.'&&c=808000>'.coloro("808000").$usergroup[title].colorc().'</a><br>&nbsp;</td>
                                                            <td align="center"><a href=?do=endc&&id='.$id.'&&c=00D139>'.coloro("00D139").$usergroup[title].colorc().'</a><br>&nbsp;</td>
                                                            <td align="center"><a href=?do=endc&&id='.$id.'&&c=FFE900>'.coloro("FFE900").$usergroup[title].colorc().'</a><br>&nbsp;</td>
                                                            <td align="center"><a href=?do=endc&&id='.$id.'&&c=800080>'.coloro("800080").$usergroup[title].colorc().'</a><br>&nbsp;</td>
                                                    </tr>
                                            </table>
                                    </center>

                                    ');
}

if ($_REQUEST['do'] == '2')
{
$id = $_POST['groupid'] ;
$usergroups = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "usergroup where usergroupid =" .$id);
$usergroup = $db->fetch_array($usergroups);
            print_form_header($vbphrase['ugc_g']);
            print_table_header($vbphrase['ugc_cm']);
            print_description_row("اللون الحالي :  $usergroup[opentag] $usergroup[title] $usergroup[closetag]");
            print_description_row('
            <center>
                    <table border="0" width="100%" cellspacing="0" cellpadding="0">
                         <tr>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=red>'.squreo("red").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=green>'.squreo("green").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=blue>'.squreo("blue").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=gray>'.squreo("gray").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                         </tr>
                         <tr>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=fushia>'.squreo("fushia").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=orang>'.squreo("orang").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=teal>'.squreo("teal").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=brown>'.squreo("brown").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                         </tr>
                         <tr>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=bluef>'.squreo("bluef").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=zete>'.squreo("zete").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=laimon>'.squreo("laimon").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=bnfs>'.squreo("bnfs").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                         </tr>
                         <tr>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=pink>'.squreo("pink").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=black>'.squreo("black").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=yellow>'.squreo("yellow").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=white>'.squreo("white").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                         </tr>                         <tr>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=rtfws>'.squreo("rtfws").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=gryujgh>'.squreo("gryujgh").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=asdfgh>'.squreo("asdfgh").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=yuiop>'.squreo("yuiop").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                         </tr>
                         <tr>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=ffrdt>'.squreo("ffrdt").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=qrthj>'.squreo("qrthj").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=tyyty>'.squreo("tyyty").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=cvvcvc>'.squreo("cvvcvc").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                         </tr>
                         <tr>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=ggggg>'.squreo("ggggg").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=zzzz>'.squreo("zzzz").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=lllllll>'.squreo("lllllll").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=bbbbbb>'.squreo("bbbbbb").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                         </tr>
                         <tr>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=kkkkk>'.squreo("kkkkk").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=hahs>'.squreo("hahs").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=ppppp>'.squreo("ppppp").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=ooooo>'.squreo("ooooo").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                         </tr>                         <tr>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=muser>'.squreo("muser").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=gjkgfl>'.squreo("gjkgfl").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=dbgf>'.squreo("dbgf").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=dfghjer>'.squreo("dfghjer").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                         </tr>
                         <tr>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=kfvhjfk>'.squreo("kfvhjfk").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=hgdfasj>'.squreo("hgdfasj").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=tteerr>'.squreo("tteerr").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=drrer>'.squreo("drrer").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                         </tr>
                         <tr>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=lkjfsdah>'.squreo("lkjfsdah").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=kjylde>'.squreo("kjylde").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=wwwety>'.squreo("wwwety").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=hdkgdg>'.squreo("hdkgdg").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                         </tr>
                         <tr>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=asdghvj>'.squreo("asdghvj").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=hgjhdkg>'.squreo("hgjhdkg").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&v=zxcvbfe>'.squreo("zxcvbfe").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=gdshfguj>'.squreo("gdshfguj").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                         </tr>
 </tr>                         <tr>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=mrhjmkl>'.squreo("mrhjmkl").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=gdsafv>'.squreo("gdsafv").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=qtr3>'.squreo("qtr3").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=qtr7>'.squreo("qtr7").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                         </tr>
                         <tr>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=qtr9>'.squreo("qtr9").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=qtr10>'.squreo("qtr10").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=qtr11>'.squreo("qtr11").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=qtr14>'.squreo("qtr14").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                         </tr>
                         <tr>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=qtr16>'.squreo("qtr16").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=qtr17>'.squreo("qtr17").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=qtr18>'.squreo("qtr18").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=qtr20>'.squreo("qtr20").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                         </tr>
                         <tr>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=qtr21>'.squreo("qtr21").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=qtr22>'.squreo("qtr22").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=qtr23>'.squreo("qtr23").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=qtr24>'.squreo("qtr24").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                         </tr>
 </tr>
 </tr>                         <tr>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=hvyftyf>'.squreo("hvyftyf").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=xchyu>'.squreo("xchyu").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=hhhhhhhhf>'.squreo("hhhhhhhhf").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=vgrh>'.squreo("vgrh").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                         </tr>
                         <tr>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=ghtedxors>'.squreo("ghtedxors").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=qtr50>'.squreo("qtr50").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=qtr46>'.squreo("qtr46").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=ewa6554>'.squreo("ewa6554").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                         </tr>
                         <tr>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=fyhtui5>'.squreo("fyhtui5").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=tu5g>'.squreo("tu5g").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=yddfi588>'.squreo("yddfi588").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=b22>'.squreo("b22").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                         </tr>
                         <tr>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=qtr99>'.squreo("qtr99").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=dcfk5>'.squreo("dcfk5").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=ertgl77>'.squreo("ertgl77").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=hart2>'.squreo("hart2").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                         </tr>
 </tr>

</tr>                         <tr>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=s67412>'.squreo("s67412").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=s58521>'.squreo("s58521").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=s4855>'.squreo("s4855").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=s3577>'.squreo("s3577").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                         </tr>
                         <tr>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=s23588>'.squreo("s23588").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=s7822>'.squreo("s7822").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=d785>'.squreo("d785").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=duj7dj>'.squreo("duj7dj").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                         </tr>
                         <tr>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=szxk7>'.squreo("szxk7").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=gj5hu>'.squreo("gj5hu").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=hhhhhhcf>'.squreo("hhhhhhcf").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=adfg7>'.squreo("adfg7").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                         </tr>
                         <tr>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=hhjjgg>'.squreo("hhjjgg").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=rrooyy>'.squreo("rrooyy").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=bnfgi>'.squreo("bnfgi").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=ffthff>'.squreo("ffthff").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                         </tr>
                         </tr>
                         <tr>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=sbr963>'.squreo("sbr963").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=b954684>'.squreo("b954684").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=ba87435>'.squreo("ba87435").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=b45737b>'.squreo("b45737b").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                         </tr>
                         <tr>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=b75735>'.squreo("b75735").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=bf161578>'.squreo("bf161578").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=b108657>'.squreo("b108657").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=end&&id='.$id.'&&color=b67656>'.squreo("b67656").$usergroup[title].squrec().'</a><br>&nbsp;</td>
                         </tr>
                     </table>
            </center>
');
}

if ($_REQUEST['do'] == '3')
{
$id = $_POST['groupid'] ;
$usergroups = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "usergroup where usergroupid =" .$id);
$usergroup = $db->fetch_array($usergroups);
            print_form_header($vbphrase['ugc_g']);
            print_table_header($vbphrase['ugc_am']);
            print_description_row("اللون الحالي :  $vbphrase[alchemy_display_func1] $usergroup[opentag] $usergroup[title] $usergroup[closetag]");
            print_description_row('
                                    <center>
                                            <table border="0" width="100%" cellspacing="0" cellpadding="0">
                                                   <tr>
                                                         <td align="center"><a href=?do=ends&&id='.$id.'&&m1=FF1515>'.suiteo2("FF1515").$usergroup[title].suitec().'</a><br>&nbsp;</td>
                                                         <td align="center"><a href=?do=ends&&id='.$id.'&&m1=008000>'.suiteo2("008000").$usergroup[title].suitec().'</a><br>&nbsp;</td>
                                                         <td align="center"><a href=?do=ends&&id='.$id.'&&m1=0000FF>'.suiteo2("0000FF").$usergroup[title].suitec().'</a><br>&nbsp;</td>
                                                         <td align="center"><a href=?do=ends&&id='.$id.'&&m1=CCCCCC>'.suiteo2("CCCCCC").$usergroup[title].suitec().'</a><br>&nbsp;</td>
                                                   </tr>
                                                   <tr>
                                                         <td align="center"><a href=?do=ends&&id='.$id.'&&m1=FF66CC>'.suiteo2("FF66CC").$usergroup[title].suitec().'</a><br>&nbsp;</td>
                                                         <td align="center"><a href=?do=ends&&id='.$id.'&&m1=FF9900>'.suiteo2("FF9900").$usergroup[title].suitec().'</a><br>&nbsp;</td>
                                                         <td align="center"><a href=?do=ends&&id='.$id.'&&m1=008080>'.suiteo2("008080").$usergroup[title].suitec().'</a><br>&nbsp;</td>
                                                         <td align="center"><a href=?do=ends&&id='.$id.'&&m1=BF0000>'.suiteo2("BF0000").$usergroup[title].suitec().'</a><br>&nbsp;</td>
                                                   </tr>
                                                   <tr>
                                                         <td align="center"><a href=?do=ends&&id='.$id.'&&m1=CC33FF>'.suiteo2("CC33FF").$usergroup[title].suitec().'</a><br>&nbsp;</td>
                                                         <td align="center"><a href=?do=ends&&id='.$id.'&&m1=000000>'.suiteo2("000000").$usergroup[title].suitec().'</a><br>&nbsp;</td>
                                                         <td align="center"><a href=?do=endkz&&id='.$id.'>'.kzo().$usergroup[title].kzc().'</a><br>&nbsp;</td>
                                                         <td align="center"><a href=?do=ends&&id='.$id.'&&m1=00FFFF>'.suiteo2("00FFFF").$usergroup[title].suitec().'</a><br>&nbsp;</td>
                                                   </tr>
                                                   <tr>
                                                         <td align="center"><a href=?do=ends&&id='.$id.'&&m1=808000>'.suiteo2("808000").$usergroup[title].suitec().'</a><br>&nbsp;</td>
                                                         <td align="center"><a href=?do=ends&&id='.$id.'&&m1=6EDC51>'.suiteo2("6EDC51").$usergroup[title].suitec().'</a><br>&nbsp;</td>
                                                         <td align="center"><a href=?do=ends&&id='.$id.'&&m1=FFE756>'.suiteo2("FFE756").$usergroup[title].suitec().'</a><br>&nbsp;</td>
                                                         <td align="center"><a href=?do=ends&&id='.$id.'&&m1=800080>'.suiteo2("800080").$usergroup[title].suitec().'</a><br>&nbsp;</td>
                                                  </tr>
                                             </table>
                                    </center>
            ');
            print_description_row("$vbphrase[alchemy_display_func2]");
}

if ($_REQUEST['do'] == '4')
{
$id = $_POST['groupid'] ;
$usergroups = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "usergroup where usergroupid =" .$id);
$usergroup = $db->fetch_array($usergroups);
            print_form_header($vbphrase['ugc_g']);
            print_table_header($vbphrase['ugc_mm']);
            print_description_row("اللون الحالي :  $usergroup[opentag] $usergroup[title] $usergroup[closetag]");
            print_description_row('
                                    <center>
                                            <table border="0" width="100%" cellspacing="0" cellpadding="0">
                                                  <tr>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=red>'.squreo("red").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=green>'.squreo("green").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=blue>'.squreo("blue").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=gray>'.squreo("gray").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                  </tr>
                                                  <tr>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=fushia>'.squreo("fushia").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=orang>'.squreo("orang").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=teal>'.squreo("teal").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=brown>'.squreo("brown").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                  </tr>
                                                  <tr>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=bluef>'.squreo("bluef").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=zete>'.squreo("zete").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=laimon>'.squreo("laimon").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=bnfs>'.squreo("bnfs").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                  </tr>
                                                  <tr>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=pink>'.squreo("pink").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=black>'.squreo("black").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=yellow>'.squreo("yellow").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=white>'.squreo("white").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                 </tr>                                                  <tr>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=rtfws>'.squreo("rtfws").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=gryujgh>'.squreo("gryujgh").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=asdfgh>'.squreo("asdfgh").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=yuiop>'.squreo("yuiop").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                  </tr>
                                                  <tr>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=ffrdt>'.squreo("ffrdt").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=qrthj>'.squreo("qrthj").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=tyyty>'.squreo("tyyty").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=cvvcvc>'.squreo("cvvcvc").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                  </tr>
                                                  <tr>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=ggggg>'.squreo("ggggg").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=zzzz>'.squreo("zzzz").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=lllllll>'.squreo("lllllll").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=bbbbbb>'.squreo("bbbbbb").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                  </tr>
                                                  <tr>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=kkkkk>'.squreo("kkkkk").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=hahs>'.squreo("hahs").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=ppppp>'.squreo("ppppp").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=ooooo>'.squreo("ooooo").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                 </tr>
                                                 </tr>                                                  <tr>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=muser>'.squreo("muser").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=gjkgfl>'.squreo("gjkgfl").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=dbgf>'.squreo("dbgf").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=dfghjer>'.squreo("dfghjer").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                  </tr>
                                                  <tr>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=kfvhjfk>'.squreo("kfvhjfk").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=hgdfasj>'.squreo("hgdfasj").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=tteerr>'.squreo("tteerr").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=drrer>'.squreo("drrer").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                  </tr>
                                                  <tr>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=lkjfsdah>'.squreo("lkjfsdah").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=kjylde>'.squreo("kjylde").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=wwwety>'.squreo("wwwety").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=hdkgdg>'.squreo("hdkgdg").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                  </tr>
                                                  <tr>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=asdghvj>'.squreo("asdghvj").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=hgjhdkg>'.squreo("hgjhdkg").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=zxcvbfe>'.squreo("zxcvbfe").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=gdshfguj>'.squreo("gdshfguj").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                 </tr>
  </tr>                                                  <tr>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=mrhjmkl>'.squreo("mrhjmkl").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=gdsafv>'.squreo("gdsafv").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=qtr3>'.squreo("qtr3").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=qtr7>'.squreo("qtr7").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                  </tr>
                                                  <tr>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=qtr9>'.squreo("qtr9").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=qtr10>'.squreo("qtr10").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=qtr11>'.squreo("qtr11").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=qtr14>'.squreo("qtr14").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                  </tr>
                                                  <tr>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=qtr16>'.squreo("qtr16").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=qtr17>'.squreo("qtr17").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=qtr18>'.squreo("qtr18").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=qtr20>'.squreo("qtr20").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                  </tr>
                                                  <tr>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=qtr21>'.squreo("qtr21").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=qtr22>'.squreo("qtr22").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=qtr23>'.squreo("qtr23").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=qtr24>'.squreo("qtr24").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                 </tr>
                                                 </tr>
  </tr>                                                  <tr>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=hvyftyf>'.squreo("hvyftyf").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=xchyu>'.squreo("xchyu").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=hhhhhhhhf>'.squreo("hhhhhhhhf").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=vgrh>'.squreo("vgrh").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                  </tr>
                                                  <tr>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=ghtedxors>'.squreo("ghtedxors").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=qtr50>'.squreo("qtr50").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=qtr46>'.squreo("qtr46").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=ewa6554>'.squreo("ewa6554").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                  </tr>
                                                  <tr>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=fyhtui5>'.squreo("fyhtui5").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=tu5g>'.squreo("tu5g").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=yddfi588>'.squreo("yddfi588").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=b22>'.squreo("b22").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                  </tr>
                                                  <tr>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=qtr99>'.squreo("qtr99").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=dcfk5>'.squreo("dcfk5").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=ertgl77>'.squreo("ertgl77").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=hart2>'.squreo("hart2").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                 </tr>
  </tr>                                                  <tr>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=s67412>'.squreo("s67412").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=s58521>'.squreo("s58521").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=s4855>'.squreo("s4855").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=s3577>'.squreo("s3577").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                  </tr>
                                                  <tr>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=s23588>'.squreo("s23588").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=s7822>'.squreo("s7822").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=d785>'.squreo("d785").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=duj7dj>'.squreo("duj7dj").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                  </tr>
                                                  <tr>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=szxk7>'.squreo("szxk7").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=gj5hu>'.squreo("gj5hu").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=hhhhhhcf>'.squreo("hhhhhhcf").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=adfg7>'.squreo("adfg7").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                  </tr>
                                                  <tr>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=hhjjgg>'.squreo("hhjjgg").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=rrooyy>'.squreo("rrooyy").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=bnfgi>'.squreo("bnfgi").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=ffthff>'.squreo("ffthff").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                 </tr>
                                                  <tr>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=sbr963>'.squreo("sbr963").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=b954684>'.squreo("b954684").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=ba87435>'.squreo("ba87435").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=b45737b>'.squreo("b45737b").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                  </tr>
                                                  <tr>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=b75735>'.squreo("b75735").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=bf161578>'.squreo("bf161578").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=b108657>'.squreo("b108657").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                       <td align="center"><a href=?do=endm&&id='.$id.'&&color=b67656>'.squreo("b67656").$usergroup[title].squrecm().'</a><br>&nbsp;</td>
                                                 </tr>
                                         </table>
                                    </center>
            ');
}

if ($_REQUEST['do'] == '5')
{
$id = $_POST['groupid'] ;
$usergroups = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "usergroup where usergroupid =" .$id);
$usergroup = $db->fetch_array($usergroups);
            print_form_header($vbphrase['ugc_g']);
            print_table_header($vbphrase['ugc_a7']);
            print_description_row("اللون الحالي :  $usergroup[opentag] $usergroup[title] $usergroup[closetag]");
            print_description_row('
            <center>
                    <table border="0" width="100%" cellspacing="0" cellpadding="0">
                         <tr>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=red>'.squreo("red").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=green>'.squreo("green").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=blue>'.squreo("blue").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=gray>'.squreo("gray").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                         </tr>
                         <tr>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&mr=fushia>'.squreo("fushia").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=orang>'.squreo("orang").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=teal>'.squreo("teal").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=brown>'.squreo("brown").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                         </tr>
                         <tr>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=bluef>'.squreo("bluef").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=zete>'.squreo("zete").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=laimon>'.squreo("laimon").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=bnfs>'.squreo("bnfs").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                         </tr>
                         <tr>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=pink>'.squreo("pink").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=black>'.squreo("black").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=yellow>'.squreo("yellow").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=white>'.squreo("white").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                         </tr>                         <tr>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=rtfws>'.squreo("rtfws").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=gryujgh>'.squreo("gryujgh").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=asdfgh>'.squreo("asdfgh").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=yuiop>'.squreo("yuiop").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                         </tr>
                         <tr>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=ffrdt>'.squreo("ffrdt").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=qrthj>'.squreo("qrthj").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=tyyty>'.squreo("tyyty").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=cvvcvc>'.squreo("cvvcvc").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                         </tr>
                         <tr>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=ggggg>'.squreo("ggggg").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=zzzz>'.squreo("zzzz").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=lllllll>'.squreo("lllllll").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=bbbbbb>'.squreo("bbbbbb").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                         </tr>
                         <tr>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=kkkkk>'.squreo("kkkkk").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=hahs>'.squreo("hahs").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=ppppp>'.squreo("ppppp").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=ooooo>'.squreo("ooooo").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                         </tr>                         <tr>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=muser>'.squreo("muser").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=gjkgfl>'.squreo("gjkgfl").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=dbgf>'.squreo("dbgf").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=dfghjer>'.squreo("dfghjer").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                         </tr>
                         <tr>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=kfvhjfk>'.squreo("kfvhjfk").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=hgdfasj>'.squreo("hgdfasj").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=tteerr>'.squreo("tteerr").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=drrer>'.squreo("drrer").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                         </tr>
                         <tr>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=lkjfsdah>'.squreo("lkjfsdah").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=kjylde>'.squreo("kjylde").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=wwwety>'.squreo("wwwety").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=hdkgdg>'.squreo("hdkgdg").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                         </tr>
                         <tr>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=asdghvj>'.squreo("asdghvj").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=hgjhdkg>'.squreo("hgjhdkg").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=zxcvbfe>'.squreo("zxcvbfe").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=gdshfguj>'.squreo("gdshfguj").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                         </tr>
 </tr>                         <tr>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=mrhjmkl>'.squreo("mrhjmkl").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=gdsafv>'.squreo("gdsafv").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=qtr3>'.squreo("qtr3").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=qtr7>'.squreo("qtr7").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                         </tr>
                         <tr>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=qtr9>'.squreo("qtr9").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=qtr10>'.squreo("qtr10").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=qtr11>'.squreo("qtr11").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=qtr14>'.squreo("qtr14").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                         </tr>
                         <tr>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=qtr16>'.squreo("qtr16").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=qtr17>'.squreo("qtr17").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=qtr18>'.squreo("qtr18").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=qtr20>'.squreo("qtr20").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                         </tr>
                         <tr>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=qtr21>'.squreo("qtr21").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=qtr22>'.squreo("qtr22").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=qtr23>'.squreo("qtr23").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=qtr24>'.squreo("qtr24").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                         </tr>
 </tr>
 </tr>                         <tr>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=hvyftyf>'.squreo("hvyftyf").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=xchyu>'.squreo("xchyu").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=hhhhhhhhf>'.squreo("hhhhhhhhf").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=vgrh>'.squreo("vgrh").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                         </tr>
                         <tr>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=ghtedxors>'.squreo("ghtedxors").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=qtr50>'.squreo("qtr50").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=qtr46>'.squreo("qtr46").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=ewa6554>'.squreo("ewa6554").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                         </tr>
                         <tr>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=fyhtui5>'.squreo("fyhtui5").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=tu5g>'.squreo("tu5g").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=yddfi588>'.squreo("yddfi588").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=b22>'.squreo("b22").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                         </tr>
                         <tr>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=qtr99>'.squreo("qtr99").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=dcfk5>'.squreo("dcfk5").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=ertgl77>'.squreo("ertgl77").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=hart2>'.squreo("hart2").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                         </tr>
 </tr>

</tr>                         <tr>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=s67412>'.squreo("s67412").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=s58521>'.squreo("s58521").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=s4855>'.squreo("s4855").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=s3577>'.squreo("s3577").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                         </tr>
                         <tr>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=s23588>'.squreo("s23588").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=s7822>'.squreo("s7822").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=d785>'.squreo("d785").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=duj7dj>'.squreo("duj7dj").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                         </tr>
                         <tr>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=szxk7>'.squreo("szxk7").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=gj5hu>'.squreo("gj5hu").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=hhhhhhcf>'.squreo("hhhhhhcf").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=adfg7>'.squreo("adfg7").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                         </tr>
                         <tr>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=hhjjgg>'.squreo("hhjjgg").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=rrooyy>'.squreo("rrooyy").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=bnfgi>'.squreo("bnfgi").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=ffthff>'.squreo("ffthff").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                         </tr>
                         <tr>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=sbr963>'.squreo("sbr963").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=b954684>'.squreo("b954684").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=ba87435>'.squreo("ba87435").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=b45737b>'.squreo("b45737b").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                         </tr>
                         <tr>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=b75735>'.squreo("b75735").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=bf161578>'.squreo("bf161578").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=b108657>'.squreo("b108657").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                               <td align="center"><a href=?do=endn&&id='.$id.'&&color=b67656>'.squreo("b67656").$usergroup[title].squrgec().'</a><br>&nbsp;</td>
                         </tr>

                     </table>
            </center>

            ');
}

if ($_REQUEST['do'] == '6')
{
$id = $_POST['groupid'] ;
$usergroups = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "usergroup where usergroupid =" .$id);
$usergroup = $db->fetch_array($usergroups);
print_form_header($vbphrase['ugc_g']);
print_table_header($vbphrase['ugc_cm']);
print_description_row("أنت هنا لإختيار لون الكتابة فقط اما الصورة فسيتم استخدام المحددة في خيارات الشامل لتنسيق الإحصائيات<br><br>اللون الحالي :  $usergroup[opentag] $usergroup[title] $usergroup[closetag]<br><br>");
print_description_row(' 
<center> 
<table border="0" width="100%" cellspacing="0" cellpadding="0"> 
<tr> 
<td align="center"><a href=?do=endmwa&&id='.$id.'&&color=mwacolor1>'.squreomwa("mwacolor1").$usergroup[title].squrecmwa().'</a><br>&nbsp;</td> 
<td align="center"><a href=?do=endmwa&&id='.$id.'&&color=mwacolor2>'.squreomwa("mwacolor2").$usergroup[title].squrecmwa().'</a><br>&nbsp;</td> 
<td align="center"><a href=?do=endmwa&&id='.$id.'&&color=mwacolor3>'.squreomwa("mwacolor3").$usergroup[title].squrecmwa().'</a><br>&nbsp;</td> 
<td align="center"><a href=?do=endmwa&&id='.$id.'&&color=mwacolor4>'.squreomwa("mwacolor4").$usergroup[title].squrecmwa().'</a><br>&nbsp;</td> 
</tr> 
<tr> 
<td align="center"><a href=?do=endmwa&&id='.$id.'&&color=mwacolor5>'.squreomwa("mwacolor5").$usergroup[title].squrecmwa().'</a><br>&nbsp;</td> 
<td align="center"><a href=?do=endmwa&&id='.$id.'&&color=mwacolor6>'.squreomwa("mwacolor6").$usergroup[title].squrecmwa().'</a><br>&nbsp;</td> 
<td align="center"><a href=?do=endmwa&&id='.$id.'&&color=mwacolor7>'.squreomwa("mwacolor7").$usergroup[title].squrecmwa().'</a><br>&nbsp;</td> 
<td align="center"><a href=?do=endmwa&&id='.$id.'&&color=mwacolor8>'.squreomwa("mwacolor8").$usergroup[title].squrecmwa().'</a><br>&nbsp;</td> 
</tr> 
<tr> 
<td align="center"><a href=?do=endmwa&&id='.$id.'&&color=mwacolor9>'.squreomwa("mwacolor9").$usergroup[title].squrecmwa().'</a><br>&nbsp;</td> 
<td align="center"><a href=?do=endmwa&&id='.$id.'&&color=mwacolor10>'.squreomwa("mwacolor10").$usergroup[title].squrecmwa().'</a><br>&nbsp;</td> 
<td align="center"><a href=?do=endmwa&&id='.$id.'&&color=mwacolor11>'.squreomwa("mwacolor11").$usergroup[title].squrecmwa().'</a><br>&nbsp;</td> 
<td align="center"><a href=?do=endmwa&&id='.$id.'&&color=mwacolor12>'.squreomwa("mwacolor12").$usergroup[title].squrecmwa().'</a><br>&nbsp;</td> 
</tr> 
<tr> 
<td align="center"><a href=?do=endmwa&&id='.$id.'&&color=mwacolor13>'.squreomwa("mwacolor13").$usergroup[title].squrecmwa().'</a><br>&nbsp;</td> 
<td align="center"><a href=?do=endmwa&&id='.$id.'&&color=mwacolor14>'.squreomwa("mwacolor14").$usergroup[title].squrecmwa().'</a><br>&nbsp;</td> 
<td align="center"><a href=?do=endmwa&&id='.$id.'&&color=mwacolor15>'.squreomwa("mwacolor15").$usergroup[title].squrecmwa().'</a><br>&nbsp;</td> 
<td align="center"><a href=?do=endmwa&&id='.$id.'&&color=mwacolor16>'.squreomwa("mwacolor16").$usergroup[title].squrecmwa().'</a><br>&nbsp;</td> 
</tr>
</table> </center>
');
}

// do insert
if ($_REQUEST['do'] == 'end')
{
      if($_REQUEST['id'] && $_REQUEST['color'])
      {
            $db->query_write("UPDATE " . TABLE_PREFIX . "usergroup SET opentag = '".squreo($_REQUEST['color'])."', closetag = '".squrec()."' 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['ugc_done']."</center>");
            print_table_footer(2, construct_button_code($vbphrase['go_back'], 'ugc.php'));
      }
}
if ($_REQUEST['do'] == 'endmwa')
{
      if($_REQUEST['id'] && $_REQUEST['color'])
      {
            $db->query_write("UPDATE " . TABLE_PREFIX . "usergroup SET opentag = '".squreomwa($_REQUEST['color'])."', closetag = '".squrecmwa()."' 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['ugc_done']."</center>");
            print_table_footer(2, construct_button_code($vbphrase['go_back'], 'ugc.php'));
      }
}
if ($_REQUEST['do'] == 'endn')
{
      if($_REQUEST['id'] && $_REQUEST['color'])
      {
            $db->query_write("UPDATE " . TABLE_PREFIX . "usergroup SET opentag = '".squrho($_REQUEST['color'])."', closetag = '".squrgec()."' 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['ugc_done']."</center>");
            print_table_footer(2, construct_button_code($vbphrase['go_back'], 'ugc.php'));
      }
}
if ($_REQUEST['do'] == 'endm')
{
      if($_REQUEST['id'] && $_REQUEST['color'])
      {
            $db->query_write("UPDATE " . TABLE_PREFIX . "usergroup SET opentag = '".squreo($_REQUEST['color'])."', closetag = '".squrecm()."' 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['ugc_done']."</center>");
            print_table_footer(2, construct_button_code($vbphrase['go_back'], 'ugc.php'));
      }
}
if ($_REQUEST['do'] == 'endc')
{
      if($_REQUEST['id'] && $_REQUEST['c'])
      {
            $db->query_write("UPDATE " . TABLE_PREFIX . "usergroup SET opentag = '".coloro($_REQUEST['c'])."', closetag = '".colorc()."' 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['ugc_done']."</center>");
            print_table_footer(2, construct_button_code($vbphrase['go_back'], 'ugc.php'));
      }
}

if ($_REQUEST['do'] == 'ends')
{
      if($_REQUEST['id'] && $_REQUEST['m1'])
      {
            $db->query_write("UPDATE " . TABLE_PREFIX . "usergroup SET opentag = '".suiteo($_REQUEST['m1'])."', closetag = '".suitec()."' 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['ugc_done']."</center>");
            print_table_footer(2, construct_button_code($vbphrase['go_back'], 'ugc.php'));
      }
}
if ($_REQUEST['do'] == 'endkz')
{
      if($_REQUEST['id'])
      {
            $db->query_write("UPDATE " . TABLE_PREFIX . "usergroup SET opentag = '".kzo()."', closetag = '".kzc()."' 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['ugc_done']."</center>");
            print_table_footer(2, construct_button_code($vbphrase['go_back'], 'ugc.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['ugc_xx']."</center>");
            print_table_footer(2, construct_button_code($vbphrase['go_back'], 'ugc.php'));
      }
}

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

$ugc_ver = 1.0;
$ugc_sbg = 2.0;
$ugc_useover_fontcolor = '#D04850';
function da_print_footer ()
{
       global $ugc_ver;
       global $ugc_sbg;
       echo '<p align="center"><a href="http://www.dr-php.ws" target="_blank" class="copyright">usergroup color v'.$ugc_ver.' By dr-php </a>';       echo '<p align="center"><a href="http://www.saihat-boys.com/vb" target="_blank" class="copyright">تطوير v'.$ugc_sbg.' saihat-boys </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();

/*======================================================================*\
|| #################################################################### ||
|| #                        usergroup color                             ||
|| # ----------------------------------------------------------------   ||
|| #                          by dr-php                                 ||
|| #             http://www.dr-php.ws    dr_php@msn.com                 ||
|| #################################################################### ||
\*======================================================================*/