CMS  Version 3.9
topic_form.inc File Reference

Go to the source code of this file.

Variables

 $menu_item = "Topics"
 
 $topic_id = checkNumeric($_GET["topic_id"])
 
 $topic = new Topic()
 
 $form = new AutoForm($topic)
 
$form allowDelete = true
 
 $redirect = "/admin/topics"
 
 $groups = query(Group, "ORDER BY group_id")
 
 $grpList = new CrossReferenceSelectFieldRenderer($form, "groups", "Associate Groups", $groups, "{title}", GroupTopicXref)
 
$grpList colspan = 2
 
$grpList height = 120
 
if($method=="POST") if($topic_id) else
 
 $script = $form->writeScript()
 

Variable Documentation

◆ $form

$form = new AutoForm($topic)

Definition at line 44 of file topic_form.inc.

◆ $groups

$groups = query(Group, "ORDER BY group_id")

Definition at line 50 of file topic_form.inc.

◆ $grpList

$grpList = new CrossReferenceSelectFieldRenderer($form, "groups", "Associate Groups", $groups, "{title}", GroupTopicXref)

Definition at line 52 of file topic_form.inc.

◆ $menu_item

$menu_item = "Topics"

Definition at line 39 of file topic_form.inc.

◆ $redirect

$redirect = "/admin/topics"

Definition at line 47 of file topic_form.inc.

◆ $script

$script = $form->writeScript()

Definition at line 74 of file topic_form.inc.

◆ $topic

$topic = new Topic()

Definition at line 42 of file topic_form.inc.

◆ $topic_id

$topic_id = checkNumeric($_GET["topic_id"])

Definition at line 40 of file topic_form.inc.

◆ allowDelete

$form allowDelete = true

Definition at line 46 of file topic_form.inc.

◆ colspan

$grpList colspan = 2

Definition at line 53 of file topic_form.inc.

◆ else

if ( $method=="POST") if ( $topic_id) else
Initial value:
{
$title = "Add a New Topic"

Definition at line 69 of file topic_form.inc.

◆ height

$grpList height = 120

Definition at line 54 of file topic_form.inc.