/custom/main.php
PHP | 120 lines | 99 code | 2 blank | 19 comment | 9 complexity | 39f98e2bb29958390275a19dd0b34eb2 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1, MPL-2.0-no-copyleft-exception
- <? /* license
- BilugCMS (http://www.bilug.it) - Content Management System for dynamic web sites
- Copyright (C) 2005-2008 Federico Villa and Alessio Loro Piana
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 2 of the License.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-
- For reference, contact bilugcms@vilnet.it
- license */ ?>
- <?
- $stringa="SELECT ID,sez,voce FROM menu order by sez";
- $risulta=mysql_query($stringa);
- if (mysql_num_rows($risulta)>0)
- {
- $i=0;
- while ($control=mysql_fetch_row($risulta))
- {
- $titolo[$i++]= $control[2];
- $str1="SELECT voce,link,stat FROM menuvoci where IDmenu='$control[0]' order by ordine";
- $risultato1=mysql_query($str1);
- if (mysql_num_rows($risultato1)>0)
- {
- $j=0;
- while ($control1 = mysql_fetch_row($risultato1))
- {
- $menu[$control[1]][$j]= $control1[0];
- if ($control1[2]=='si')
- {
- $link[$control[1]][$j]= "index.php?pag=static.php&stat=".$control1[1] ;
- }
- else
- $link[$control[1]][$j]= $control1[1];
- $j++;
- }
- }
- }
- }
- ?>
- <div class="contenitore">
- <div class="float354">
- <div id="menucd">
- <div id="cdalto">
- <div class="bordic">
- <h2><?=$titolo[0]?></h2>
- <div id="menua">
- <ul>
- <?
- for($i=0;$i<count($menu['a']);$i++)
- echo "<li><a href=\"".$link['a'][$i]."\">".$menu['a'][$i]."</a></li>";
- ?>
- </ul>
- </div>
- </div>
- </div>
- <div id="cdsin">
- <div class="bordil">
- <h2><?=$titolo[3]?></h2>
- <div id="menub">
- <ul>
- <?
- for($i=0;$i<count($menu['d']);$i++)
- echo "<li><a href=\"".$link['d'][$i]."\">".$menu['d'][$i]."</a></li>";
- ?>
- </ul>
- </div>
- </div>
- </div>
- <div id="cddes">
- <div class="bordil">
- <h2><?=$titolo[1]?></h2>
- <div id="menuc">
- <ul>
- <?
- for($i=0;$i<count($menu['b']);$i++)
- echo "<li><a href=\"".$link['b'][$i]."\">".$menu['b'][$i]."</a></li>";
- ?>
- </ul>
- </div>
- </div>
- </div>
- <div id="cdbasso">
- <div class="bordic">
- <h2><?=$titolo[2]?></h2>
- <div id="menud">
- <ul>
- <?
- for($i=0;$i<count($menu['c']);$i++)
- echo "<li><a href=\"".$link['c'][$i]."\">".$menu['c'][$i]."</a></li>";
- ?>
- </ul>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="dati">
-
- </div>
- <br/>
- <br/>
- <div class="float168">
- <ul id="news">
- <li><h2>Demo</h2>Demo</li>
- </ul>
- </div>
- <div class="azzerafloat"></div>
- </div>