Packageindex Classtrees Modulegroups Elementlist Report XML Files

File: /sitemap/include/insert_radio.inc.php
sitemap - Richy's Site Map

Includes::insert_radio

"insert_radio" module.

 

public module insert_radio

"insert_radio" module.
Module for the insert radio buttons: one to insert before and one to insert_after the current item.

Version$Revision: 1.1.1.1 $
Copyright(c)2002 R.J. Vrijhof

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Magic$Id: insert_radio.inc.php,v 1.1.1.1 2002/01/19 16:46:58 richy Exp $

 

Public Method Summary

string

insert_radio_checked(string $which, int $id)

Make sure the right insert radio button is selected.
string

insert_radio_disabled(integer $id)

Disable the "insert before" radio button when the current item has ID 1.

Public Method Details

insert_radio_checked

public string insert_radio_checked( string $which, int $id )

  Make sure the right insert radio button is selected.
If the current item has ID 1, the "insert after" radio button will be_checked, otherwise the "insert before" radio button will be checked. If you_don't like this behaviour, change it here (make one "false" a "true" and one_"true" a "false" if you get my drift...).

Parameter
string $which
either "before" or "after", nothing else!
int $id
ID of the current item
Returns string

HTML code to check a radio button

Author(s) Richard Vrijhof <R.J.Vrijhof@bigfoot.com>

insert_radio_disabled

public string insert_radio_disabled( integer $id )

  Disable the "insert before" radio button when the current item has ID 1.
There should be only one item on level 1, and that's because you can't_insert an item before the item with ID 1.

Parameter
integer $id
of the current item
Returns string

HTML code to disable the radio button

Author(s) Richard Vrijhof <R.J.Vrijhof@bigfoot.com>


Packageindex Classtrees Modulegroups Elementlist Report XML Files
PHPDoc 1.0beta