Пример #1
0
$urlva='?page=news'; //url du lien
$txte='test'; //text 
$parse = '?txtcol='.$txtcol.'&txtcol2='.$txtcol2.'&urlva='.$urlva.'&txte='.$txte.'';

print ('
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
 codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
 WIDTH="100" HEIGHT="20" id="lob" ALIGN="">
 <PARAM NAME=movie VALUE="themes/phptournois/test.swf'.$parse.'&chaine2=30"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE='.$bgcol.'> <EMBED src="themes/phptournois/lob.swf" quality=high bgcolor=#FFFFFF  WIDTH="600" HEIGHT="400" NAME="lob" ALIGN=""
 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT>');
*/
if ($mods['customtheme']) {
    echo "<form name=\"formgg\" method=\"post\" action=\"?page=skin\"><p align=\"center\">{$custheme}<br /><select name=\"theme\">";
    $fd = opendir("themes/");
    while ($file = readdir($fd)) {
        if ($file != "." && $file != ".." && is_dir("themes/{$file}") && file_exists("themes/{$file}/theme.php")) {
            echo "<option value=\"{$file}\"";
            if ($file == $configuration->default_theme) {
                echo " selected=\"selected\"";
            }
            echo ">{$file}";
        }
    }
    closedir($fd);
    echo "</select><input type=\"submit\" name=\"Submit\" value=\"";
    echo "OK";
    echo "\"></P></form>";
}
theme_closeblock();
Пример #2
0
function theme_menu_right()
{
    global $mods;
    echo "<!-- Menu Droit[start] -------------------------------------------------->\n";
    echo '<td valign="top" align="center">';
    echo '<div id="menudiv_d">';
    echo '<table cellpadding="0" cellspacing="0" width="140" border="0"><tr><td valign="top">';
    //include("include/blocks/block_joueur.php");
    include "include/blocks/block_admin_tournois.php";
    //include("include/blocks/block_admin.php");
    // module des 10 dernière news à placer ou vous voulez ^^
    if ($mods['lastnews'] == 1) {
        include "include/blocks/block_10news.php";
    }
    include "include/blocks/block_partenaires.php";
    include "include/blocks/block_sponsors.php";
    global $config, $db, $dbprefix, $s_membre;
    if ($config['phpt_type'] != 'lan') {
        $sql = "SELECT * FROM {$dbprefix}menu WHERE titre!='' AND align='D' ORDER BY orde";
        $req = mysql_query($sql) or die('Erreur SQL !<br>' . $sql . '<br>' . mysql_error());
        while ($data = mysql_fetch_array($req)) {
            $titre = $data['titre'];
            theme_openblock("{$titre}");
            $sql2 = "SELECT * FROM {$dbprefix}page WHERE lien!='' AND nmenu='{$titre}' ORDER BY orde";
            $req2 = mysql_query($sql2) or die('Erreur SQL !<br>' . $sql2 . '<br>' . mysql_error());
            while ($data2 = mysql_fetch_array($req2)) {
                $rubrique = $data2['rubrique'];
                $lien = $data2['lien'];
                $npage = $data2['npage'];
                $id = $data2['id'];
                echo "<li class=\"lib\"><a href=\"?page=page&op=see&rubrique={$rubrique}&npage={$npage}&id={$id}\">{$lien}</a><br>";
            }
            theme_closeblock();
        }
    }
    echo '</td></tr></table>';
    echo '</div>';
    echo "<!-- Menu Droit [end] ---------------------------------------------------->\n";
    echo '</td>';
}