can you think of another way to do this? This is where aikimarkup just
looks horrible.

Jon

On Tue, Aug 30, 2011 at 12:35 AM, Jakub Jankiewicz
<[email protected]> wrote:
> Public bug reported:
>
> php is not working inside inline sql
>
> example from ocal
>
> <select id="permission_((userid))">
> (sql(
> (SELECT * from aiki_users_groups||
> <option value="[-[group_level]-]" <php if [-[group_level]-] == ((usergroup)) 
> then selected="selected" php>>[-[group_permissions]-]
> <php str_replace(foo,bar,foobar) php></option>)
> )sql)
> </select>
>
> it displays
>
> <select id="permission_655411">
>
> <option value="1" >SystemGOD </option>
> <option value="2" >librarian </option>
> <option value="3" >ViewPublished </option>
>
> <option value="101" >nothing </option>
> <option value="4" >normal </option>
> <option value="3" >employees </option>
> </select>
>
> no selected="selected" and no barbar
>
> ** Affects: aikiframework
>     Importance: Undecided
>         Status: New
>
> ** Description changed:
>
>  php is not working inside inline sql
>
>  example from ocal
>
>  <select id="permission_((userid))">
>  (sql(
>  (SELECT * from aiki_users_groups||
> - <option value="[-[group_level]-]" <php if [-[group_level]-] == 
> ((usergroup)) then selected="selected" php>>[-[group_permissions]-] <php 
> str_replace(foo,bar,foobar) php></option>)
> + <option value="[-[group_level]-]" <php if [-[group_level]-] == 
> ((usergroup)) then selected="selected" php>>[-[group_permissions]-]
> + <php str_replace(foo,bar,foobar) php></option>)
>  )sql)
>  </select>
>
>  it displays
>
>  <select id="permission_655411">
>
>  <option value="1" >SystemGOD </option>
>  <option value="2" >librarian </option>
>  <option value="3" >ViewPublished </option>
>
>  <option value="101" >nothing </option>
>  <option value="4" >normal </option>
>  <option value="3" >employees </option>
>  </select>
>
>  no selected="selected" and no barbar
>
> --
> You received this bug notification because you are subscribed to
> aikiframework.
> https://bugs.launchpad.net/bugs/836828
>
> Title:
>  php is not working inside sql
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/aikiframework/+bug/836828/+subscriptions
>


-- 
Jon Phillips
http://rejon.org/ | http://fabricatorz.com/
chat/skype: kidproto | irc: rejon
+1.415.830.3884 (global) | +1-510-499-0894 (sf)
+86-187-1003-9974 (beijing)

-- 
You received this bug notification because you are a member of Aiki
Framework Admins, which is subscribed to aikiframework.
https://bugs.launchpad.net/bugs/836828

Title:
  php is not working inside sql

Status in Aiki Framework:
  New

Bug description:
  php is not working inside inline sql

  example from ocal

  <select id="permission_((userid))">
  (sql(
  (SELECT * from aiki_users_groups||
  <option value="[-[group_level]-]" <php if [-[group_level]-] == ((usergroup)) 
then selected="selected" php>>[-[group_permissions]-]
  <php str_replace(foo,bar,foobar) php></option>)
  )sql)
  </select>

  it displays

  <select id="permission_655411">

  <option value="1" >SystemGOD </option>
  <option value="2" >librarian </option>
  <option value="3" >ViewPublished </option>

  <option value="101" >nothing </option>
  <option value="4" >normal </option>
  <option value="3" >employees </option>
  </select>

  no selected="selected" and no barbar

To manage notifications about this bug go to:
https://bugs.launchpad.net/aikiframework/+bug/836828/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~aikiframework.admins
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~aikiframework.admins
More help   : https://help.launchpad.net/ListHelp

Reply via email to