<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>eklog &#187; PHP</title>
	<atom:link href="http://www.ekstasis.net/log/category/php/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ekstasis.net/log</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Tue, 29 Nov 2011 16:15:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>DHTML tree menu testing</title>
		<link>http://www.ekstasis.net/log/css/dhtml-tree-menu-testing.html</link>
		<comments>http://www.ekstasis.net/log/css/dhtml-tree-menu-testing.html#comments</comments>
		<pubDate>Tue, 19 Dec 2006 20:49:02 +0000</pubDate>
		<dc:creator>mat</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.ekstasis.net/log/2006/12/19/dhtml-tree-menu-testing/</guid>
		<description><![CDATA[Testing and evaluating DHTML menu trees. Each menu included in the list (below) has it&#8217;s own testing area. They&#8217;ve been tested for full functionality within a working &#8216;mini site&#8217; and adapted to demonstrate whether it&#8217;s possible to open nested levels and display the current location without altering the body tag. Here&#8217;s the list of menus [...]]]></description>
			<content:encoded><![CDATA[<div align="center"><img alt="menu tree" title="menu tree" class="reflect rheight20 ropacity40" src="/images/logpics/menutree.jpg" /></div>
<h4>Testing and evaluating DHTML menu trees.</h4>
<p>Each menu included in the list (below) has it&#8217;s own testing area. They&#8217;ve been tested for full functionality within a working &#8216;mini site&#8217; and adapted to demonstrate whether it&#8217;s possible to open nested levels and display the current location without altering the body tag.</p>
<p>Here&#8217;s the list of menus with a link to the test and a link to the original sites:</p>
<table width="100%" cellpadding="0" border="0">
<tr>
<td><strong>Link to test area</strong></td>
<td><strong>Link to original site</strong></td>
</tr>
<tr>
<td><a href="/tests/menu08/">ECMA menu test</a><a href="/tests/menu12/" /></td>
<td><a href="http://juicystudio.com/article/ecmascriptmenu.php">Juicystudio.com menu</a></td>
</tr>
<tr>
<td><a href="/tests/menu08/">Ecommnet menu test</a></td>
<td><a href="http://www.ecommnet.co.uk/test/juicymenu/testthis4.asp">Ecommnet.co.uk menu</a></td>
</tr>
<tr>
<td><a href="/tests/menu12/">PDE menu test</a></td>
<td><a href="http://onlinetools.org/tools/dom-tree-menu-puredom/">Onlinetools.org menu</a></td>
</tr>
<tr>
<td><a href="/tests/menu09/">Splintered menu test</a></td>
<td><a href="http://www.splintered.co.uk/experiments/archives/menu_replace/">Splintered.co.uk menu</a></td>
</tr>
<tr>
<td><a href="/tests/menu03/">DNolan menu test</a></td>
<td><a href="http://www.dnolan.com/code/js/listmenu/">DNolan.com menu</a></td>
</tr>
<tr>
<td><a href="/tests/menu13/">MKTree menu test</a></td>
<td><a href="http://www.mattkruse.com/javascript/mktree/">Mattkruse.com MKTree menu</a></td>
</tr>
<tr>
<td><a href="/tests/menu10/">Simple Tree menu test</a></td>
<td><a href="http://www.dynamicdrive.com/dynamicindex1/navigate1.htm">Dynamicdrive.com menu</a></td>
</tr>
<tr>
<td><a href="/tests/menu05/">Click drop menu test</a></td>
<td><a href="http://bonrouge.com/br.php?page=clickdrop">Bonrouge.com Clickdrop menu</a></td>
</tr>
<tr>
<td><a href="/tests/menu01/">CreateMenu menu test</a></td>
<td><a href="http://www.codingforums.com/showthread.php?t=42084&#038;page=5">Codingforums.com Mike&#8217;s tree</a></td>
</tr>
<tr>
<td><a href="/tests/menu11/">Gazingus menu test</a></td>
<td>Site no longer available</td>
</tr>
</table>
<p>
<span id="more-32"></span></p>
<p>Displaying the &#8216;current location&#8217; is vital for clear site navigation. This feature is not usually included with the original menu source code. In order to test whether it is possible to adapt the menus to include this feature each menu has been set up &#8211; where possible &#8211; to indicate the &#8216;current location&#8217; and automatically open the tree at that level.</p>
<p>Links below include the local test area and the original URL providing the source code.</p>
<p>Only free-of-charge menu systems are included in this evaluation.</p>
<p>Overview of evaluation criteria:</p>
<ul>
<li>Is it accessible? Driveable by keyboard only?</li>
<li>How separate is the content, presentation, and behaviour.</li>
<li>Does it degrade well without JavaScript or CSS?</li>
<li>How easy is it to indicate the &#8216;current location&#8217; of the page selected?</li>
<li>Does it opens and displays current status for an included page &#8211; [e.g. HTML: main.php?page=page1.] i.e. cannot use body tags or code in  section of page?</li>
<li>When clicking on the parent item / title of the section do the nested list items open &#8211; i.e. not just clicking on the graphic which can cause confusion?</li>
<li>Is it xhtml 1.0 strict valid?</li>
</ul>
<p>In order to keep the nested levels visible at a specific location I have used one of two types of server-side functions:</p>
<pre><code><</code>?php
$theuri = $_SERVER['REQUEST_URI']; ?>
<code><</code>?php
if ( ($theuri =="/s01sub1a01.php") or ($theuri ==
"/tests/menu13/section1pages/s01sub1a02.php"))
echo " class="liOpen"";
else echo " class="liClosed""; ?>
</pre>
<p>or</p>
<pre><code><</code><code>?php
if ( ($thisPage=="s01sub1b01")
or ($thisPage=="s01sub1b02") or ($thisPage=="s01sub1b03") )
echo " rel="open""; ?></code></pre>
<p>A better method to use is demonstrated below.<br />
This has not been used in these tests because of the need for<br />
modRewrite using the RewriteEngine:</p>
<pre><code>$lines = split("n", $menu);
foreach ($lines as $line) {
$current = false;
preg_match('/href="([^" mce_href="([^"]+)"/', $line, $url);
if (substr($_SERVER["REQUEST_URI"], 0, 5) == substr($url[1], 0, 5)) {
$line = str_replace('</code><code><</code>a h', '<code><</code>
<code>a id="current" h', $line); }
echo $line."n";
}
</code>
</pre>
<p>[Full source code available at: <a title="pregmatch code" href="http://photomatt.net/scripts/intellimenu">http://photomatt.net/</a> ]</p>
<p></p>
<p>or</p>
<pre><code><</code><code>?php
$menu =
file_get_contents("/inc/menu.htm");
$menu = preg_replace("|</code><code><</code>li><code><</code>
<code>a xhref="" .
basename($_SERVER['PHP_SELF']) . "">(.*),/code><code><</code><code>!--[^-->]+></code>
<code><</code><code>/li>|U","</code><code><</code>
<code>li class="current">$1</code><code><</code><code>/li>", $menu);
echo $menu;</code>
<code>?></code></pre>
<p>[Full source code currently lost and code not tested. ]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ekstasis.net/log/css/dhtml-tree-menu-testing.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP style switcher</title>
		<link>http://www.ekstasis.net/log/css/php-style-switcher.html</link>
		<comments>http://www.ekstasis.net/log/css/php-style-switcher.html#comments</comments>
		<pubDate>Thu, 18 May 2006 04:10:35 +0000</pubDate>
		<dc:creator>mat</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.ekstasis.net/log/?p=27</guid>
		<description><![CDATA[Rob Ballou&#8217;s (Style-switcher at Contrastweb.com) has published a clarification and improvement on Chris Clark&#8217;s (A List Apart PHP style sheet switcher). The Styleswitcher V2, allows you to give the user control over any individual attribute. Another good solution is the A List Apart PHP style switcher which is used in this site&#8217;s PHP tests section. [...]]]></description>
			<content:encoded><![CDATA[<div style="text-align: center"><img alt="tst" title="tst" src="/images/logpics/styleswitch.jpg" /></div>
<p>Rob Ballou&#8217;s (<a href="http://contrastsweb.com/switcher/">Style-switcher at Contrastweb.com</a>) has published a clarification and improvement on Chris Clark&#8217;s (<a href="http://www.alistapart.com/stories/phpswitch/">A List Apart PHP style sheet switcher</a>).  The <a href="http://contrastsweb.com/switcher/v2/">Styleswitcher V2</a>, allows you to give the user control over any individual attribute. Another good solution is the <a href="http://www.alistapart.com/stories/alternate/">A List Apart PHP style switcher</a> which is used in this site&#8217;s <a href="http://www.ekstasis.net/php/phptests.php?p=phpexamples">PHP tests</a> section.</p>
<p><a href="http://www.sitepoint.com/article/css-simple-style-switcher">Sitepoint style switcher</a> is another, more simplified method.</p>
<p>Invasion of the Body Switchers (IOTBS) from <a href="http://www.brothercake.com/site/resources/scripts/iotbs/">Brothercake</a> is an efficient object-oriented style sheet switcher, which offers independent switching of multiple media types, and supports an unlimited number of options and controls. <a href="http://alterior.net/archives/000021.php">Alterior.net</a> has also created a nice PHP solution.</p>
<p>The main area where style switching becomes really practical is for offering a print and visual impairment style. Another good application as would a fast download setting with minimal images and ornamentation.</p>
<p>This site&#8217;s <a href="http://www.ekstasis.net/">main page</a> has style-switching options in the top right corner. It gives the option of a liquid or elastic layout. There&#8217;s also a preview of how the print style will look (the print style needs updating &#8211; to include collapsible DIVs so the menu system doesn&#8217;t need to be printed yet the style can also be used as a &#8216;minimal images&#8217; style.) A few site designs that were created in the past have also been included.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ekstasis.net/log/css/php-style-switcher.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

