Wednesday, June 27, 2007

Portal Theme

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
     
    <link rel="stylesheet" type="text/css" href="<? print base_path().path_to_theme()?>/ext/resources/css/ext- all.css" />
    
    <!-- LIBS -->     <script type="text/javascript" src="<? print base_path().path_to_theme()?>/ext/yui-utilities.js"></script>     <script type="text/javascript" src="<? print base_path().path_to_theme()?>/ext/ext- yui-adapter.js"></script>     <!-- ENDLIBS -->
 
    <script type="text/javascript" src="<? print base_path().path_to_theme()?>/ext/ext-core.js"></script>
    <script type="text/javascript" src="<? print base_path().path_to_theme()?>/ext/package/util.js"></script>
    <script type="text/javascript" src="<? print base_path().path_to_theme()?>/ext/package/tabs/tabs.js"></script>
 
    <!-- Tabs Example Files -->
  
 <script  language="javascript" type="text/javascript">

 
<?php
 $voc=taxonomy_get_vocabularies();

  foreach($voc as $vocab)
     {
          if($vocab->vid!=4)
        {
        print("\n var Tab".$vocab->vid."Example = { \n init : function() \n  {");
         print("\n var tab".$vocab->vid."= new Ext.TabPanel('tab".$vocab->vid."'); \n");
       $arrx=taxonomy_get_tree($vocab->vid, $parent = 0, $depth = -1, $max_depth = NULL);
        $activate=True;
       
      foreach ($arrx as $arry)
         {
          print("tab".$vocab->vid.".addTab('".$arry->name."','".$arry->name."'); \n");
         if($activate)
             {
             print("tab".$vocab->vid.".activate('".$arry->name."'); \n");
            $activate=False;
            }
         }
     print("}} \n Ext.EventManager.onDocumentReady(Tab".$vocab->vid."Example.init, Tab".$vocab->vid."Example, true); \n");
   

     }
    }
?>
 



</script>
 
    <!-- Common Styles for the examples -->
<style>

<?php
$voc=taxonomy_get_vocabularies();

 foreach($voc as $vocab)
    print("\n #tab".$vocab->vid." {width:400px;} \n #tab".$vocab->vid." .x-tabs-item-body {display:none;padding:10px; font-size: 15px}");

?>


</style>
<! -----------------------coding related to  Go  Flexible----------------------->
<title> <?php print $head_title ?> </title>
<?php print $styles ?>
</head>
<body>
<div id="wrap">
    <div id="header-section">
            <h1> <?php print $site_name ?> </h1>
            <img id="header-background-right" src=" http://localhost/~space/img/theyyam.jpg" alt=""/>
           
    </div>
<div id="header">
        <ul>
                    <li><a href=<?php print "'".$base_path."'"?>>Home</a></li>

             <li><a href=<?php print "'".$base_path."/?q=en/taxonomy/term/2'"?>>Woman</a></li>
            <li><a href=<?php print "'".$base_path."/?q=en/taxonomy/term/3'"?>>Employment</a></li>
                 </ul>
        </div>

<?php if($sidebar_left):?>
        <div id="left-column">
             <div id="treeDiv1"></div>
            <?php print $sidebar_left ?>
           
        </div>
    <?php endif;?>
<div id="middle-column">

<p>
 
 
 

<?php




    $voc=taxonomy_get_vocabularies();
    foreach($voc as $vocab)
    {
      print("<div id='tab".$vocab->vid."'>");
      $arrx=taxonomy_get_tree($vocab->vid, $parent = 0, $depth = -1, $max_depth = NULL);
      foreach ($arrx as $arry)
        {
        print( "<div id='".$arry->name."' class='tab-content'><ul>");
        $res=taxonomy_select_nodes(array($arry->tid), $operator = 'and', $depth = "all", $pager = TRUE, $order = ' n.created DESC');
        while( $ans=$res->fetch_array())
            {
            print("<li><a href='".$base_path."?q=en/node/$ans[nid]'> $ans[title]</a></li>");            }               
               
        print("</ul></div>");
        }
    print"</div>\n";
 }
   
?>           

   
      </div>
<?php if($sidebar_right):?>
         <div id="right-column">
           
                             <?php print $sidebar_right ?>
           
        </div>
    <?php endif; ?>    
<div id="footer">
            <?php print $footer_message ?>
    </div>
         

 
    
</body>
</html>
 

No comments:

Post a Comment