Thank you!. Uploading to trunk.

On Saturday, 16 February 2013 00:55:52 UTC-6, 黄祥 wrote:
>
> please find attached file.
> the change that i've made is just for website and email address for 
> telephone there is a different parameter and i don't know how to make it in 
> that file (maybe must add some parameter in qr : for example for website, 
> email, phone, vcard, mecard, etc)
> *website and email address*
>         return '<img style="width:100px" src="
> http://chart.apis.google.com/chart?cht=qr&chs=100x100&chl=%s&choe=UTF-8&chld=H";
>  
> alt="QR Code" title="QR Code" />'%url
>
>     >>> render("qr: (qr:http://example.com/)")
>     '<p>qr: (<img style="width:100px" src="
> http://chart.apis.google.com/chart?cht=qr&chs=100x100&chl=http://example.com/&choe=UTF-8&chld=H";
>  
> alt="QR Code" title="QR Code" />)</p>'
>
> *phone number (not yet changed)*
>         return '<img style="width:100px" src="
> http://chart.apis.google.com/chart?cht=qr&chs=100x100&chl=tel:%s&choe=UTF-8&chld=H";
>  
> alt="QR Code" title="QR Code" />'%url
>
>     >>> render("qr: (qr:+62999999999)")
>     '<p>qr: (<img style="width:100px" src="
> http://chart.apis.google.com/chart?cht=qr&chs=100x100&chl=tel:+62999999999&choe=UTF-8&chld=H";
>  
> alt="QR Code" title="QR Code" />)</p>'
>
>
> *detail change in file:*
> from
>         return '<img style="width:80px" src="
> http://qrcode.kaywa.com/img.php?s=8&amp;d=%s"; alt="qr code" />'%url
>         
> into (chs=100x100 is the default output generate in pixels, so that i've 
> change the width in img too)
>         return '<img style="width:100px" src="
> http://chart.apis.google.com/chart?cht=qr&chs=100x100&chl=%s&choe=UTF-8&chld=H";
>  
> alt="QR Code" title="QR Code" />'%url
>
>
> and
>
> from
>     >>> render("qr: (qr:http://example.com/image.jpeg)")
>     '<p>qr: (<img style="width:80px" src="
> http://qrcode.kaywa.com/img.php?s=8&amp;d=http://example.com/image.jpeg<http://qrcode.kaywa.com/img.php?s=8&d=http://example.com/image.jpeg>"
>  
> alt="qr code" />)</p>'
>     
> into
>     >>> render("qr: (qr:http://example.com/)")
>     '<p>qr: (<img style="width:100px" src="
> http://chart.apis.google.com/chart?cht=qr&chs=100x100&chl=http://example.com/&choe=UTF-8&chld=H";
>  
> alt="QR Code" title="QR Code" />)</p>'
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to