[ingo] Re: adding a default "stop" to Sieve rules

Liam Hoekenga liamr at umich.edu
Fri Apr 8 11:47:50 PDT 2005


Yay!  You rock, Jan.  Thanks much!

Liam

On Fri, 8 Apr 2005, Jan Schneider wrote:

> Zitat von Liam Hoekenga <liamr at umich.edu>:
>
>> I haven't messed around with this in a few weeks.  Still haven't got
>> anywhere.  Any suggestions?
>
> Did you look how other fields are populated? The rule name for example
> has a "New Rule" if creating a new rule.
>
>> On Wed, 30 Mar 2005, liam hoekenga wrote:
>>
>>> Our helpdesk has requested that when creating new rules in Ingo, that "Stop
>>> checking if this rule matches?" be checked by default.
>>>
>>> It looks like this is set in templates/rule/footer.php.  I tried this..
>>>
>>> --- footer.inc- 2005-03-30 11:23:36.000000000 -0500
>>> +++ footer.inc  2005-03-30 11:24:07.000000000 -0500
>>> @@ -59,5 +59,5 @@
>>>   <tr class="item1">
>>>     <td align="left" style="padding:5px">
>>> -      <input type="checkbox" name="stop" value="1"<?php echo
>>> ($rule['stop']) ?
>>> 'checked="checked"' : '' ?>> <?php echo _("Stop checking if this rule
>>> matches?") ?>
>>> +      <input type="checkbox" name="stop" value="1"<?php echo
>>> (!$rule['stop']) ?
>>> '' : 'checked="checked"' ?>> <?php echo _("Stop checking if this
>>> rule matches?")
>>> ?>
>>>     </td>
>>>     <td width="40px" align="right">
>>>
>>> I'm guessing that this doesn't work because with a fresh rule $rule
>>> is probably
>>> unpopulated.
>>>
>>> So.. how do I set this default w/o breaking people's ability to
>>> uncheck this if
>>> they wish?
>
> Jan.
>
> -- 
> Do you need professional PHP or Horde consulting?
> http://horde.org/consulting/
> -- 
> Ingo mailing list - Join the hunt: http://horde.org/bounties/#ingo
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: ingo-unsubscribe at lists.horde.org
>
> !DSPAM:4256c53554881647820138!
>
>
>
>


More information about the ingo mailing list