preparation release

This commit is contained in:
nojhan 2008-01-31 21:24:09 +00:00
commit f5e3a62ee8
196 changed files with 64314 additions and 0 deletions

View file

@ -0,0 +1,11 @@
<span id="block1">
This is block 1
</span>
<span id="block2">
This is block 2
</span>

View file

@ -0,0 +1,122 @@
-------------------------
Dear Administrator,
-- Automatically Generated Email from XXXXXXXXXX --
{if:hasmessage}
*NOTE*: {message:h}.
{end:}
O R D E R A W A I T I N G A U T H O R I S A T I O N
_________________________________________________________________
ORDER:
ID: {order.h}
*Edit*: http://{host}/admin/sales/orders/edit?id={order}
_________________________________________________________________
CUSTOMER DETAILS:
Name: {customer.firstname:h} {customer.lastname:h}
Email: mailto:{customer.email:h}
*Edit*: http://{host}/admin/sales/customers/edit?id={customer.id}
_________________________________________________________________
SHIPPING TO:
*{deliveryname:h}*
{deliveryaddress:h}
_________________________________________________________________
XXXXXXXXXXXXXXXXXXX:
*{post.transactionstatus:h}*
{if:post.dubious}
*WARNING*! - This may not be a bona fide order! - *WARNING*!
*Reason*: {post.dubiousreason:h}
/Contact tech support/ before proceeding with this order!
{end:}
Total (currency?): {post.total:h}
Client ID (XXXXXXXX): {post.clientid:h}
Order ID: {post.oid:h}
Charge type: {post.chargetype:h}
Timestamp (from XXXXXXXX): {post.datetime:h}
VbV Status: {post.ecistatus:h}
https://XXXXX.XXXXXXXX.XXXXXX.com/XXXXX/XXXXXXX/XXXXXx
_________________________________________________________________
{foreach:orderlines,i,o}
{if:i}
- - - - - - - - - - - - - - - - - - - - - - - -
{end:}
*PRODUCT*:{o.productname:h}
({o.producttypename:h})
*Edit*: http://{host}/admin/catalog/products/edit?id={o.product:u}
FABRIC: {o.fabricname:h}
SIZE: {o.sizename:h}
Eurostop: {o.altid:h}
QUANTITY: {o.quantity:h}
Price ea: {o.eachprice:h}
Tax each: {o.eachtax:h}
Sub-total: {o.totalinctax:h}
{if:o.isgift}
*GIFT MESSAGE* FOR THIS ITEM:
{o.giftmessage}{end:}{end:}
_________________________________________________________________
Item total (ex tax): {totals.itemstotal:h}
Item taxes: {totals.itemstax:h}
Shipping:
{totals.shippingcharges:h}
Tax on shipping: {totals.shippingtax:h}
*GRAND TOTAL*: {totals.grandtotal:h}
_________________________________________________________________
{totals.itemsdiscountinfo:h}
{totals.itemstaxinfo:h}
{totals.shippinginfo:h}
{totals.shippingtaxinfo:h}
_________________________________________________________________
blah blah
--------------------------

View file

@ -0,0 +1,46 @@
<H2>Conditions</H2>
<p>a condition {if:condition} hello {else:} world {end:}</p>
<p>a negative condition {if:!condition} hello {else:} world {end:}</p>
<p>a conditional method {if:condition()} hello {else:} world {end:}</p>
<p>a negative conditional method {if:!condition()} hello {else:} world {end:}</p>
<span flexy:if="test">test</span>
<span flexy:if="test()">test</span>
<span flexy:if="test(#aaa bbb#,ccc,#asdfasdf asdf #)">test</span>
<H2>Notices and errros</H2>
<table flexy:if="notices" class="tablenotice" width="70%" align="center">
<tbody>
<tr>
<td class="tdheadernotice" height="20" width="526">Thanks</td>
</tr>
<tr>
<td class="tdbodynotice" height="33">
<p flexy:if="notices[ok]">Submitted data is ok</p>
</td>
</tr>
</tbody>
</table>
<table flexy:if="errors" class="tablewarning" width="100%">
<tbody>
<tr>
<td class="tdheaderwarning" height="20" width="526">Sorry</td>
</tr>
<tr>
<td class="tdbodywarning">
<li flexy:if="errors[lastname]">Please fill in your last name</li>
</td>
</tr>
</tbody>
</table>

View file

@ -0,0 +1,8 @@
<!-- Bugs: 739
<td flexy:foreach="xxxx">xxx</td>
{foreach:xxxx} {end:}
-->

View file

@ -0,0 +1,40 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<flexy:toJavascript
flexy:prefix="test_abc_"
abcg="xyz"
abcd="xyz"
srcXxx="xyz"
>
<script type="text/javascript">
var test_abc_abcg = '123';
var test_abc_abcd = '123';
var test_abc_srcXxx = '123';
</script>
</flexy:toJavascript>
<flexy:toJavascript abcg="xyz">
<script type="text/javascript">
var xyz = '123';
</script>
</flexy:toJavascript>
<body>
<p>Example of flexy:toJavascript with default values.</p>
</body></html>

View file

@ -0,0 +1,107 @@
<h2>Form Not Parsed</h2>
<form name="test" flexy:ignore>
<input name=test123>
<select name="aaa">
<option>bb</option>
</select>
</form>
<h2>Parsed</h2>
<form name="test">
Input<input name=test123>
Checkbox <input name=test123a id=test123ab type='checkbox' checked>
Hidden <input name=test123ab type='hidden' value='123'>
<textarea name="fred">some text</textarea>
<select name="aaa1">
<option>aa</option>
<option selected>bb</option>
<option>cc</option>
</select>
<select name="aaa2" flexy:ignore>
<option>aa</option>
<option selected>bb</option>
<option>cc</option>
</select>
<select name="aaa3">
<option>aa</option>
<option selected>bb</option>
<option>cc</option>
</select>
<!-- bug 5267 -->
<input id="opt_1" type="checkbox" name="opt[]" value="1" />
<label for="opt_1">option 1</label>
<input id="opt_2" type="checkbox" name="opt[]" value="2" />
<label for="opt_3">option 2</label>
<input id="opt_3" type="checkbox" name="opt[]" value="3" />
<label for="opt_3">option 3</label>
<select name="List">
<option value="2000">2000</option>
<option value="2001">2001</option>
<option value="2002">2002</option>
</select>
<input type="submit" name="_submit[4]" value="Next >>">
<input type="submit" name="_submit[5]" value="Next &gt;&gt;">
<input type="file" name="testupload">
#bug bug6058
<br /><input type="radio" name="payment_1_type" id="1" value="cc" />
Credit card
<br /><input type="radio" name="payment_1_type" id="2" value="cq" />
Cheque
<br /><input type="radio" name="payment_2_type" id="3" value="cc" />
Credit card
<br /><input type="radio" name="payment_2_type" id="4" value="cq" />
Cheque
</form>
<img name="picture" id="picture" flexy:dynamic>
<h2>Bug 1120:</h2>
<form action="test">
<input name="testing" value="test">
<input type="submit" value="x" name="_submit[2]">
</form>
<form action="{someurl}">
<input name="testing2" value="{somevalue}">
<input type="submit" name="_submit[1]">
</form>
<H2> Bug 1275 XHTML output </H2>
<input type="checkbox" name="testingxhtml" flexy:xhtml="true" checked>
<select name="xhtmllisttest" flexy:xhtml="true">
</select>
<H2> Bug 4005 Checkboxes </H2>
<input type="checkbox" name="testingcheckbox" value="123">
<form name="test_mix" action="{someurl}">
<input name="testing5" value="{somevalue}">
<input type="submit" name="_submit[3]">
</form>

View file

@ -0,0 +1,17 @@
<H1>Example of function block definitions</H1>
<table flexy:if="false">
<tr><td>
<flexy:function name="test1">this is the contents of test1</flexy:function>
</td></tr>
</table>
<table>
<tr><td>
<flexy:function call="test1"></flexy:function>
<flexy:function call="{a_value}"></flexy:function>
</td></tr>
</table>

View file

@ -0,0 +1,26 @@
<H2>GLOBALS:</H2>
{_SESSION[hello]} <BR>
{_GET[fred]} <BR>
{GLOBALS[abc]} <BR>
<H2>Privates:</H2>
{_somemethod()} <BR>
{_somevar} <BR>
<H2>Global methods </H2>
{GLOBALS.date(#d/m/y#)} <BR>
{if:GLOBALS.is_array(test)} <BR>
{end:} <BR>
<BR>
{foreach:atest,k,v} <BR>
{if:GLOBALS.is_array(v)} <BR>
{end:} <BR>
{end:} <BR>

View file

@ -0,0 +1,22 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"><title>image_view.html</title></head>
<body flexy:startchildren="yes">
<table cellpadding="2" cellspacing="2" border="0" bgcolor="black" style="text-align: left; width: 100%;">
<tbody>
<tr flexy:foreach="images,row">
<td flexy:foreach="row,col" align="center" valign="middle"
background="{rootURL}/FlexyWiki/templates/negative.jpg"><a
href="%7Bcol.link%7D"><img
border="0" height="{col.info[1]}" width="{col.info[0]}" src="%7Bcol.url%7D"></a><br>
<font color="white">[{col.name}] {col.size}Mb</font>
</td>
</tr>
</tbody>
</table>
</body></html>

View file

@ -0,0 +1,13 @@
<html>
<body>
the variable is {foo}
<table>
<tr flexy:foreach="range,key,value">
<flexy:include src="include_block.html" />
</tr>
</table>
</body>
</html>

View file

@ -0,0 +1,78 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script src='somefile/{js_file}'></script>
</head>
<script language="javascript">
// some sample javascript that might cause problemss
function CheckDuplicates (AddListContainer, RemoveListContainer) {
var AddList = eval('document.main_form.'+AddListContainer);
var RemoveList = eval('document.main_form.'+RemoveListContainer);
var TempAddList = AddList.value;
var TempRemoveList = RemoveList.value;
if (TempAddList>''&&TempRemoveList>'') {
TempAddList = TempAddList.substring(0,TempAddList.length-1);
}
}
//<!--
function CheckDuplicates2 (AddListContainer, RemoveListContainer) {
var AddList = eval('document.main_form.'+AddListContainer);
var RemoveList = eval('document.main_form.'+RemoveListContainer);
var TempAddList = AddList.value;
var TempRemoveList = RemoveList.value;
if (TempAddList>''&&TempRemoveList>'') {
TempAddList = TempAddList.substring(0,TempAddList.length-1);
}
}
-->
</script>
<!--
// and now just commented out stuff.. that may cause problems
function CheckDuplicates (AddListContainer, RemoveListContainer) {
var AddList = eval('document.main_form.'+AddListContainer);
var RemoveList = eval('document.main_form.'+RemoveListContainer);
var TempAddList = AddList.value;
var TempRemoveList = RemoveList.value;
if (TempAddList>''&&TempRemoveList>'') {
TempAddList = TempAddList.substring(0,TempAddList.length-1);
}
}
-->
<script type="application/x-javascript" src="js/common.js"></script>
<script type="application/x-javascript" src="../searchjs.php"></script>
<script type="application/x-javascript" src="js/catctrl.js"></script>
<script type="application/x-javascript">
function productAddApply() {
req = new phpRequest(URI_CONTROL + "/New/product");
req.add("product_category", get_value("listProdCat"));
req.add("item_category", get_value("listItemCat"));
req.add("item_subcategory", get_value("listItemSubCat"));
req.add("supplier_id", get_value("listSupplier"));
req.add("supplier_model_numb", get_value("txtSupModelNo"));
req.add("article", get_value("txtArtDescr"));
req.add("material", get_value("txtMaterial"));
req.add("color", get_value("txtColor"));
}
</script>
<body>
</body>
</html>

View file

@ -0,0 +1,59 @@
<h2>Looping</h2>
<p>a loop {foreach:loop,a} {a} {end:}</p>
<p>a loop with 2 vars {foreach:loop,a,b}
{a} ,
{b}
{end:}</p>
Bug #84
{foreach:list,i}
{method(i)}
{end:}
{foreach:list,i,j}
{i}:{j}
{end:}
<table>
<tr flexy:foreach="xyz,abcd,def">
<td>{abcd}, {test(def)}</td>
</tr>
</table>
<h2>HTML tags example using foreach=&quot;loop,a,b&quot; or the tr</h2>
<table width="100%" border="0">
<tr flexy:foreach="loop,a,b">
<td>{a}</td>
<td>{b}</td>
</tr>
</table>
<h2>HTML tags example using foreach=&quot;loop,a&quot; or the tr using a highlight class.</h2>
<table width="100%" border="0">
<tr flexy:foreach="loop,a" class="{a.hightlight}">
<td>a is</td>
<td flexy:if="a.showtext">{a.text}</td>
<td flexy:if="!a.showtext">{a.price:n}</td>
</tr>
</table>
<h2>HTML tags example using foreach=&quot;loop,a,b&quot; or the tr</h2>
<table width="100%" border="0">
<tr flexy:foreach="loop,a,b">
<td flexy:foreach="b,c,d">{d}</td>
</tr>
</table>
<h2>Looping in CDATA</h2>
Dont forget that php strips line breaks!
<![CDATA[
{foreach:list,i,j}
{i}:{j}
{end:}
]]>

View file

@ -0,0 +1,69 @@
<h2>Methods</H2>
<p>Calling a method {a.helloWorld()}</p>
<p>or {includeBody():h}</P>
<img src="%7bgetImageDir()%7D/someimage.jpg">
<img src="%7bgetImageDir():h%7D/someimage.jpg">
<img src="%7bgetImageDir():u%7D/someimage.jpg">
<img src="%7bgetImageDir()}/someimage.jpg">
<img src="{getImageDir()%7D/someimage.jpg">
<span class="{t.getBgnd(valueArr[isConfigurable])}"></span>
<h2>Full Method testing</h2>
{abc(abc,def,hij)}
{abc(abc,#def#,#hij#)}
{abc(abc,def,#hij#)}
{abc(#abc#,def,hij)}
{abc(abc,def,hij):h}
{abc(abc,#def#,#hij#):h}
{abc(abc,def,#hij#):h}
{abc(#abc#,def,hij):h}
{abc(abc,def,hij):u}
{abc(abc,#def#,#hij#):u}
{abc(abc,def,#hij#):u}
{abc(#abc#,def,hij):u}
{abc(123,def,hij)}
{abc(abc,#123#,123):u}
{abc(abc,def,123)}
{abc(#abc#,123,hij):u}
<h2>Real life method testing </h2>
Invoice number: {t.getelem(t.invoice,#number#)} Place:
{t.getelem(t.invoice,#place#)} Date: {t.getelem(t.invoice,#date#)} Payment:
{t.getelem(t.invoice,#payment#)} Payment date:
{t.getelem(t.invoice,#payment_date#)} Seller: Name 1:
{t.getelem(t.seller,#name1#)} Name 2: {t.getelem(t.seller,#name2#)} NIP:
{t.getelem(t.seller,#nip#)} Street: {t.getelem(t.seller,#street#)} City:
{t.getelem(t.seller,#code#)} {t.getelem(t.seller,#city#)} Buyer: Name 1:
{t.getelem(t.buyer,#name1#)} Name 2: {t.getelem(t.buyer,#name2#)} NIP:
{t.getelem(t.buyer,#nip#)} Street: {t.getelem(t.buyer,#street#)} City:
{t.getelem(t.buyer,#code#)} {t.getelem(t.buyer,#city#)}
# Name {if:t.show_pkwiu} PKWIU{end:} Count Netto VAT Brutto
{foreach:t.positions,position} {t.getelem(position,#nr#)}
{t.getelem(position,#name#)} {if:t.show_pkwiu}
{t.getelem(position,#pkwiu#)}{end:} {t.getelem(position,#count#)}
{t.getelem(position,#netto#)} {t.getelem(position,#vat#)}
{t.getelem(position,#brutto#)}
{end:} {if:t.edit_positions} # Name {if:t.show_pkwiu} PKWIU{end:} Count
{if:t.getelem(position,#netto_mode#)} Netto{else:} {end:} VAT
{if:t.getelem(position,#netto_mode#)} {else:} Brutto{end:}
{foreach:t.edit_positions,k,position} {t.getelem(position,#nr#)}
{if:t.show_pkwiu} {end:} {if:t.getelem(position,#netto_mode#)} {else:}
{end:} {if:t.getelem(position,#netto_mode#)} {else:} {end:}
{end:} {end:} #
{foreach:t.sum,sum} {t.getelem(sum,#nr#)} {t.getelem(sum,#netto#)}
{t.getelem(sum,#vat#)} {t.getelem(sum,#brutto#)}
{end:}

View file

@ -0,0 +1,68 @@
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="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>
<treeitem flexy:foreach="sresult,id,data">
<treerow>
<treecell label="{data.name}"/>
<treecell label="{data.group_name}"/>
<treecell label="{data.user_id}"/>
</treerow>
</treeitem>
</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 flexy:foreach="categories,data" value="{data.value}"
onselect="parent.onSelect_ProdCat();">{data.name}</html:option>
</html:select>
<!-- example of how to make the above work correctly.. -->
<html:select name="atest" flexy:ignore="yes">
<html:option flexy:foreach="categories,data" value="{data.value}"
onselect="parent.onSelect_ProdCat();">{data.name}</html:option>
</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>
<menuitem flexy:foreach="x,y" id="itemSubCatAll" label="{y.name}" value="{y.value}"/>
</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>

View file

@ -0,0 +1,14 @@
<H1>Testing Plugin Modifiers</H1>
{datetest:dateformat}
{numbertest:numberformat}
Bug #3946 - inside raw!
<input type="checkbox" name="useTextarea3" flexy:ignore="yes"
flexy:raw="{person.useTextarea():checked}">

View file

@ -0,0 +1,12 @@
<? for($i=0;$i<10;$i++) { ?>
number: <?=$i?>
<?php } ?>
<script language="php">
for($i=0;$i<10;$i++) {
echo "hello world\n";
}
</script>

View file

@ -0,0 +1,25 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<body>
<h2>Example Template for HTML_Template_Flexy</h2>
a full string example ~!@#$%^&*() |": ?\][;'/.,=-_+ ~` abcd....
asfasfdas
<h2>Bugs: 809 Comments:</h2>
<!--- this is a comment with alot of stuff.. --# ---->
<!-- this is a comment with alot of stuff.. --# -- -->
</body>
</html>

View file

@ -0,0 +1,31 @@
<link rel="stylesheet" type="text/css" media="print"
href="{ROOT_CSS}/print.css">
<link rel="stylesheet" type="text/css" media="screen"
href="{ROOT_CSS}/compatible.css">
<style type="text/css" media="screen">
<!--
@import url({ROOT_CSS}/main.css);
.tdbodywarningCopy {
background-color: #eecccc;
FONT-FAMILY: arial, geneva, helvetica, sans-serif;
font-size : 10px;
COLOR: #000000;
padding: 0px;
border: 0px dashed #000000;
}
-->
</style>

View file

@ -0,0 +1,39 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<body>
<p>Example Template for HTML_Template_Flexy</p>
<h2>Variables</H2>
<p>Standard variables
{hello}
{world:h}
{test:u}
{object.var}
{array[0]}
{array[entry]}
{multi[array][0]}
{object.var[array][1]}
{object.var[array][1]:r}
{object.var[array][1]:h}
{object.var[array][-1]:h}
{object[array].with[objects]}
Long string with NL2BR + HTMLSPECIALCHARS
{longstring:b}
Everything: {t:r}
an Object: {object:r}
<img src="%7bgetImageDir%7D/someimage.jpg">
<img src="%7bgetImageDir:h%7D/someimage.jpg">
<img src="%7bgetImageDir:u%7D/someimage.jpg">
<img src="%7bgetImageDir}/someimage.jpg">
<img src="{getImageDir%7D/someimage.jpg">
</p>
</body>
</html>