Location: PHPKode > projects > PWhere > pwhere-0.4/pwhere-yui.php
<!--
 Copyright 2008-2009 - Domenico Ferrari <hide@address.com>

 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 3 of the License, or
 (at your option) any later version.

 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/>.

-->
<html>
<title>PWhere</title>
<?
error_reporting(E_ALL);

include("pwhere-conf.php");
include("lang/$LANG.php");

$YUI="js/yui/build";
?>
<head>
<style type="text/css">
</style>
<!-- YUI loader -->
<script type="text/javascript" src="<? echo $YUI."/yuiloader/yuiloader-min.js"?>"></script>
<script type="text/javascript" src="<? echo $YUI."/event/event-min.js"?>"></script>
<script type="text/javascript" src="<? echo $YUI."/yahoo-dom-event/yahoo-dom-event.js"?>"></script>
<script type="text/javascript" src="<? echo $YUI."/logger/logger-min.js"?>"></script>
<script type="text/javascript" src="<? echo $YUI."/element/element-min.js"?>"></script>
<script type="text/javascript" src="<? echo $YUI."/layout/layout-min.js"?>"></script>
<script type="text/javascript" src="<? echo $YUI."/container/container_core-min.js"?>"></script>
<script type="text/javascript" src="<? echo $YUI."/menu/menu-min.js"?>"></script>
<script type="text/javascript" src="<? echo $YUI."/datasource/datasource-min.js"?>"></script>
<script type="text/javascript" src="<? echo $YUI."/json/json-min.js"?>"></script>
<script type="text/javascript" src="<? echo $YUI."/connection/connection-min.js"?>"></script>
<script type="text/javascript" src="<? echo $YUI."/get/get-min.js"?>"></script>
<script type="text/javascript" src="<? echo $YUI."/dragdrop/dragdrop-min.js"?>"></script>
<script type="text/javascript" src="<? echo $YUI."/calendar/calendar-min.js"?>"></script>
<script type="text/javascript" src="<? echo $YUI."/datatable/datatable-min.js"?>"></script>

<script type="text/javascript">
var loader = new YAHOO.util.YUILoader({ 
  base: "js/yui/build/",
  require: ["container","editor","reset-fonts","reset-fonts-grids","utilities","yahoo-dom-event", "yuiloader", "yuiloader-dom-event"], 
  loadOptional: true, 
  insertBefore: document.body,
  filter: "DEBUG",

  onSuccess: function(o) { 
  }, 

  onFailure: function(o) { 
    alert(o.msg);
  } 
}); 
 
loader.insert(); 
</script>
</head>
<body class="yui-skin-sam">

<div id="mainmenu" class="yuimenubar">
    <div class="bd">
        <ul class="first-of-type">
            <li class="yuimenubaritem first-of-type">
                <a class="yuimenubaritemlabel" href="#" onClick="showCatView()"><?echo _STR_CATEGORIES?></a>
            </li>
            <li class="yuimenubaritem first-of-type">
                <a class="yuimenubaritemlabel" href="#" onClick="showSearchView()"><?echo _STR_SEARCH?></a>
            </li>
        </ul>            
    </div>
</div>

<div id="catview">
<div class="bd">
	<div id="catgrid" style="position: relative; top: 20px; left: 20px"></div>
</div>
</div>

<div id="searchview">
<div class="bd">
	This is SearchView
</div>
</div>

</body>
<script type="text/javascript" src="Application-yui.js"></script>
</html>

Return current item: PWhere