--TEST--
Template Test: namespaces.html
--FILE--
<?php
require_once 'testsuite.php';
compilefile('namespaces.html');
--EXPECTF--
===Compiling namespaces.html===
===Compiled file: namespaces.html===
<?php echo "<"; ?>?xml version="1.0" ?>
<?php echo "<"; ?>?xml-stylesheet href="chrome://global/skin/" type="text/css" ?>
<?php echo "<"; ?>?xml-stylesheet href="/myproject/images/css/test.css" type="text/css" ?>
<window id="wndUserResults" title="User Search Results" persist="screenX screenY width height" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:html="http://www.w3.org/1999/xhtml">
<tree id="userSearchResults" flex="1" height="300" enableColumnDrag="true" ondblclick="parent.parent.userEditPopup();">
<treecols>
<treecol flex="2" id="trcName" label="Name" primary="true" persist="width ordinal hidden" />
<splitter class="tree-splitter" />
<treecol flex="1" id="trcGroupName" label="Group Name" persist="width ordinal hidden" />
</treecols>
<treechildren>
<?php if ($this->options['strict'] || (is_array($t->sresult) || is_object($t->sresult))) foreach($t->sresult as $id => $data) {?><treeitem>
<treerow>
<treecell label="<?php echo htmlspecialchars($data->name);?>" />
<treecell label="<?php echo htmlspecialchars($data->group_name);?>" />
<treecell label="<?php echo htmlspecialchars($data->user_id);?>" />
</treerow>
</treeitem><?php }?>
</treechildren>
</tree>
<?php echo $this->elements['test']->toHtmlnoClose();?>
<?php echo $this->elements['test2']->toHtml();?>
<html:table>
<html:tr>
<html:td>
<label style="text-align: left;" control="listItemSubCat" value="Item Subcategory" />
</html:td>
</html:tr>
</html:table>
</html:form>
<?php $_attributes_used = array();
echo $this->elements['atest']->toHtml();
if (isset($_attributes_used)) { foreach($_attributes_used as $_a) {
unset($this->elements['atest']->attributes[$_a]);
}}
?>
<!-- example of how to make the above work correctly.. -->
<html:select name="atest">
<?php if ($this->options['strict'] || (is_array($t->categories) || is_object($t->categories))) foreach($t->categories as $data) {?><html:option value="<?php echo htmlspecialchars($data->value);?>" onselect="parent.onSelect_ProdCat();"><?php echo htmlspecialchars($data->name);?></html:option><?php }?>
</html:select>
<!-- test toElement -->
<?php echo $this->elements['supplier_id']->toHtml();?>
<!-- test using flexy stuff -->
<menulist id="supplier_id2">
<menupopup>
<?php if ($this->options['strict'] || (is_array($t->x) || is_object($t->x))) foreach($t->x as $y) {?><menuitem id="itemSubCatAll" label="<?php echo htmlspecialchars($y->name);?>" value="<?php echo htmlspecialchars($y->value);?>" /><?php }?>
</menupopup>
</menulist>
<!-- test args on menupopup -->
<?php echo $this->elements['product_category']->toHtml();?>
</window>
===With data file: namespaces.html===
<?xml version="1.0" ?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css" ?>
<?xml-stylesheet href="/myproject/images/css/test.css" type="text/css" ?>
<window id="wndUserResults" title="User Search Results" persist="screenX screenY width height" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:html="http://www.w3.org/1999/xhtml">
<tree id="userSearchResults" flex="1" height="300" enableColumnDrag="true" ondblclick="parent.parent.userEditPopup();">
<treecols>
<treecol flex="2" id="trcName" label="Name" primary="true" persist="width ordinal hidden" />
<splitter class="tree-splitter" />
<treecol flex="1" id="trcGroupName" label="Group Name" persist="width ordinal hidden" />
</treecols>
<treechildren>
</treechildren>
</tree>
<html:form name="test"> <html:input name="test2"> <html:table>
<html:tr>
<html:td>
<label style="text-align: left;" control="listItemSubCat" value="Item Subcategory" />
</html:td>
</html:tr>
</html:table>
</html:form>
<html:select name="atest">
<html:option onselect="parent.onSelect_ProdCat();">data.name</html:option>
</html:select> <!-- example of how to make the above work correctly.. -->
<html:select name="atest">
</html:select>
<!-- test toElement -->
<menulist id="supplier_id"><menupopup><menuitem id="itemSubCatAll" label="-- Select --" value="0" /></menupopup></menulist>
<!-- test using flexy stuff -->
<menulist id="supplier_id2">
<menupopup>
</menupopup>
</menulist>
<!-- test args on menupopup -->
<menulist id="product_category"><menupopup onpopuphiding="cTree.categorySelect(this.parentNode.value,1);"><menuitem id="prodCatAll" label="-- All --" value="0" /></menupopup></menulist>
</window>
Copyright 2K16 - 2K18 Indonesian Hacker Rulez