Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Paneles

Parašė 123456788999999999· 2008 Gru. 13 13:12:32
#1

side_right:

<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2006 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location: index.php"); exit; }

$p_res = dbquery("SELECT * FROM ".$db_prefix."panels WHERE panel_side='3' AND panel_status='1' ORDER BY panel_order");
if (dbrows($p_res) != 0) {
   while ($p_data = dbarray($p_res)) {
      if (checkgroup($p_data['panel_access'])) {
         if ($p_data['panel_display'] == 1 || eregi($settings['opening_page']."$", FUSION_REQUEST.(FUSION_QUERY ? "?".FUSION_QUERY : ""))) {
            tablebreak();
            if ($p_data['panel_type'] == "file") {
               $panel_name = $p_data['panel_filename'];
               include INFUSIONS.$panel_name."/".$panel_name.".php";
            } else {
               eval(stripslashes($p_data['panel_content']));
            }
         }
      }
   }
}

echo "</td>\n";


?>




Side left:

<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2006 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location: index.php"); exit; }

// Display left side panels
$p_res = dbquery("SELECT * FROM ".$db_prefix."panels WHERE panel_side='1' AND panel_status='1' ORDER BY panel_order");
if (dbrows($p_res) != 0) {
   $pc = 0;
   while ($p_data = dbarray($p_res)) {
      if (checkgroup($p_data['panel_access'])) {
         if ($pc == 0) echo "<td width='$theme_width_l' valign='top' class='side-border-left'>\n";
         if ($p_data['panel_type'] == "file") {
            $panel_name = $p_data['panel_filename'];
            include INFUSIONS.$panel_name."/".$panel_name.".php";
         } else {
            eval(stripslashes($p_data['panel_content']));
         }
         $pc++;
      }
   }
   if ($pc > 0) echo "</td>\n";
}
$p_res = dbquery("SELECT * FROM ".$db_prefix."panels WHERE panel_side='4' AND panel_status='1' ORDER BY panel_order");
if (dbrows($p_res) != 0) {
   $pc = 0;
   while ($p_data = dbarray($p_res)) {
      if (checkgroup($p_data['panel_access'])) {
         if ($pc == 0) echo "<td width='$theme_width_r' valign='top' class='side-border-right'>\n";
         if ($p_data['panel_type'] == "file") {
            $panel_name = $p_data['panel_filename'];
            include INFUSIONS.$panel_name."/".$panel_name.".php";
         } else {
            eval(stripslashes($p_data['panel_content']));
         }
         $pc++;
      }
   }
   if ($pc > 0) echo "</td>\n";
}
echo "<td valign='top' class='main-bg'>\n";
if (file_exists(BASEDIR."setup.php")) echo "<center>".$locale['198']."</center><br>";

$p_res = dbquery("SELECT * FROM ".$db_prefix."panels WHERE panel_side='2' AND panel_status='1' ORDER BY panel_order");
if (dbrows($p_res) != 0) {
   while ($p_data = dbarray($p_res)) {
      if (checkgroup($p_data['panel_access'])) {
         if ($p_data['panel_display'] == 1 || eregi($settings['opening_page']."$", FUSION_REQUEST.(FUSION_QUERY ? "?".FUSION_QUERY : ""))) {
            if ($p_data['panel_type'] == "file") {
               $panel_name = $p_data['panel_filename'];
               include INFUSIONS.$panel_name."/".$panel_name.".php";
            } else {
               eval(stripslashes($p_data['panel_content']));
            }
            tablebreak();
         }
      }
   }
}
?>



Gal kas galite sita dalyka padaryt kad naujienos butu kaireje puseje o nea desineje?|?|

Parašė WantedBoy· 2008 Gru. 13 13:12:18
#2

Išjunk kaires paneles isijunk tik desines ir tau viskas bus ;)

Parašė 123456788999999999· 2008 Gru. 13 14:12:20
#3

nu bet tada bus tik viena panele:p:p

Parašė WantedBoy· 2008 Gru. 13 14:12:11
#4

cia kodas kad paneles butu vienoj pusej?>

Parašė 123456788999999999· 2008 Gru. 13 14:12:47
#5

Lempa kaip suprast ta isjiunk kaire paaiskinaj taj ..

Redagavo 123456788999999999· 2008 Gru. 13 14:12:31

Parašė 123456788999999999· 2008 Gru. 13 14:12:52
#6

taj zino kaip padaryt kas