From e2ae392d3b184154225ad7abf13b8be6bc8c4200 Mon Sep 17 00:00:00 2001 From: pete_morgan Date: Mon, 13 Mar 2006 23:13:38 +0000 Subject: [PATCH] even more tweaks --- .../language-function-html-checkboxes.xml | 18 +++++++------ .../language-function-html-image.xml | 6 ++--- .../language-function-html-options.xml | 9 ++++--- .../language-function-html-radios.xml | 20 +++++++------- .../language-function-mailto.xml | 26 +++++++++---------- .../language-function-popup-init.xml | 2 +- .../language-function-popup.xml | 10 ++++--- 7 files changed, 49 insertions(+), 42 deletions(-) diff --git a/docs/en/designers/language-custom-functions/language-function-html-checkboxes.xml b/docs/en/designers/language-custom-functions/language-function-html-checkboxes.xml index 67445d53..b964b27a 100644 --- a/docs/en/designers/language-custom-functions/language-function-html-checkboxes.xml +++ b/docs/en/designers/language-custom-functions/language-function-html-checkboxes.xml @@ -9,7 +9,7 @@ group with provided data. It takes care of which item(s) are selected by default as well. Required attributes are values and output, unless you use options instead. All output is XHTML - compatible. + compliant. @@ -117,8 +117,8 @@ where template is "} +{html_checkboxes name='id' values=$cust_ids output=$cust_names + selected=$customer_id separator='
'} ]]>
@@ -144,7 +144,7 @@ $smarty->assign('customer_id', 1001); "} +{html_checkboxes name='id' options=$cust_checkboxes selected=$customer_id separator='
'} ]]>
@@ -168,10 +168,11 @@ $smarty->assign('customer_id', 1001); assign('types',$db->getAssoc($sql)); +$sql = 'select type_id, types from contact_types order by type'; +$smarty->assign('contact_types',$db->getAssoc($sql)); -$sql = 'select * from contacts where contact_id=12'; +$sql = 'select contact_id, contact_type_id, contact ' + ,'from contacts where contact_id=12'; $smarty->assign('contact',$db->getRow($sql)); ?> @@ -179,7 +180,8 @@ $smarty->assign('contact',$db->getRow($sql)); "} +{html_checkboxes name='contact_type_id' options=$contact_types + selected=$contact.contact_type_id separator='
'} ]]>
diff --git a/docs/en/designers/language-custom-functions/language-function-html-image.xml b/docs/en/designers/language-custom-functions/language-function-html-image.xml index 4491d69b..ea316db8 100644 --- a/docs/en/designers/language-custom-functions/language-function-html-image.xml +++ b/docs/en/designers/language-custom-functions/language-function-html-image.xml @@ -117,9 +117,9 @@ diff --git a/docs/en/designers/language-custom-functions/language-function-html-options.xml b/docs/en/designers/language-custom-functions/language-function-html-options.xml index e8d76da3..8df63ba9 100644 --- a/docs/en/designers/language-custom-functions/language-function-html-options.xml +++ b/docs/en/designers/language-custom-functions/language-function-html-options.xml @@ -159,10 +159,10 @@ where template is: assign('types',$db->getAssoc($sql)); +$sql = 'select type_id, types from contact_types order by type'; +$smarty->assign('contact_types',$db->getAssoc($sql)); -$sql = 'select contact_id, name, email, type_id +$sql = 'select contact_id, name, email, contact_type_id from contacts where contact_id='.$contact_id; $smarty->assign('contact',$db->getRow($sql)); @@ -176,7 +176,8 @@ where the template is: - {html_options name="type" options=$types selected=$contact.type_id} + {html_options name='contact_type_type' options=$contact_types + selected=$contact.type_id} ]]> diff --git a/docs/en/designers/language-custom-functions/language-function-html-radios.xml b/docs/en/designers/language-custom-functions/language-function-html-radios.xml index 36271cc8..5cd3551d 100644 --- a/docs/en/designers/language-custom-functions/language-function-html-radios.xml +++ b/docs/en/designers/language-custom-functions/language-function-html-radios.xml @@ -8,7 +8,7 @@ that creates html radio button group with provided data. It takes care of which item is selected by default as well. Required attributes are values and output, - unless you use options instead. All output is XHTML compatible. + unless you use options instead. All output is XHTML compliant. @@ -80,7 +80,7 @@
- {html_radios} : Example 1 + {html_radios} example 1 assign('customer_id', 1001); "} +{html_radios name='id' values=$cust_ids output=$cust_names + selected=$customer_id separator='
'} ]]>
- {html_radios} : Example 2 + {html_radios} example 2 assign('customer_id', 1001); "} +{html_radios name='id' options=$cust_radios + selected=$customer_id separator='
'} ]]>
@@ -145,7 +146,7 @@ $smarty->assign('customer_id', 1001);
- {html_radios}- Database example (eg PEAR or ADODB): + {html_radios} - Database example (eg PEAR or ADODB): assign('customer_id', 1001); $sql = 'select type_id, types from types order by type'; $smarty->assign('types',$db->getAssoc($sql)); -$sql = 'select contact_id, name, email, type_id +$sql = 'select contact_id, name, email, contact_type_id from contacts where contact_id='.$contact_id; $smarty->assign('contact',$db->getRow($sql)); @@ -165,7 +166,8 @@ $smarty->assign('contact',$db->getRow($sql)); "} +{html_radios name='contact_type_type' options=$types + selected=$contact.contact_type_id separator='
'} ]]>
diff --git a/docs/en/designers/language-custom-functions/language-function-mailto.xml b/docs/en/designers/language-custom-functions/language-function-mailto.xml index 6438bb3d..f2de905c 100644 --- a/docs/en/designers/language-custom-functions/language-function-mailto.xml +++ b/docs/en/designers/language-custom-functions/language-function-mailto.xml @@ -105,38 +105,38 @@ - {mailto} + {mailto} example lines followed by the result me@example.com - {mailto address="me@example.com" text="send me some mail"} +{mailto address="me@example.com" text="send me some mail"} send me some mail - {mailto address="me@example.com" encode="javascript"} +{mailto address="me@example.com" encode="javascript"} - {mailto address="me@example.com" encode="hex"} +{mailto address="me@example.com" encode="hex"} m&..snipped...#x6f;m - {mailto address="me@example.com" subject="Hello to you!"} - me@example.com +mailto address="me@example.com" subject="Hello to you!"} +me@example.com {mailto address="me@example.com" cc="you@example.com,they@example.com"} - me@example.com +me@example.com {mailto address="me@example.com" extra='class="email"'} - + {mailto address="me@example.com" encode="javascript_charcode"} - +//--> + ]]> diff --git a/docs/en/designers/language-custom-functions/language-function-popup-init.xml b/docs/en/designers/language-custom-functions/language-function-popup-init.xml index 77330073..582648a5 100644 --- a/docs/en/designers/language-custom-functions/language-function-popup-init.xml +++ b/docs/en/designers/language-custom-functions/language-function-popup-init.xml @@ -23,7 +23,7 @@ {* popup_init must be called once at the top of the page *} -{popup_init src="javascripts/overlib.js"} +{popup_init src='javascripts/overlib/overlib.js'} ]]> diff --git a/docs/en/designers/language-custom-functions/language-function-popup.xml b/docs/en/designers/language-custom-functions/language-function-popup.xml index 3f955d1e..dde8726c 100644 --- a/docs/en/designers/language-custom-functions/language-function-popup.xml +++ b/docs/en/designers/language-custom-functions/language-function-popup.xml @@ -402,18 +402,20 @@ mypage +mypage {* you can use html, links, etc in your popup text *} -mypage +snapx=10 snapy=10 trigger='onClick'}>mypage ]]> + There is another good example on the + {capture} page. See also {popup_init}