54 $table->column(
"Code Name",
"<a href=\"/admin/contact_topic_form?contact_topic_id={contact_topic_id}\">{topic}</a>")
55 ->column(
"Topic",
"{topic}")
56 ->column(
"Recipients",
"{recipients}");
62 $table->emptyMessage =
"There are no contact topics defined.";
65 $table->enableDragReorder(
"/action/email/reorder_contact_topics");
66 $table->dragText =
"<span style='font-size: 10px'>Click and drag to reorder contact topics</span>";
73 redirect(
"/admin/contact_topics");
79 <p>Contact Us Topics are displayed
to users in a drop down menu when completing the Contact Us form.</p>
80 <form
style=
'display: inline' name=
"contact_topics_form" method=
"POST" action=
"">
85 <br><br><input
class=
'button' type=
"submit" name=
"reorder" value=
" Update Topic Order "/>&
nbsp;&
nbsp;
86 <a
class=
'button' href=
'/admin/contact_topic_form'>Add a Contact Us
Topic</a>
91 return "<input type='text' name='contact_topic_{$contactTopic->contact_topic_id}'
92 value='{$contactTopic->sort_order}' size='4'/>";
99 return formatItems(
$sites,
"{site_name}",
"<br>");
108 if (!strncmp(
$name,
"contact_topic_", 14))
112 $contactTopic->filter =
new InclusionFilter(
"contact_topic_id",
"sort_order");
119 $contactTopics = query(
ContactTopic,
"ORDER BY sort_order");
static usingFeature()
Uses the specified framework feature(s).
static using()
Import the datamodels, views and manifest for the specified component(s).
This class maps the topic table.
$method
Pull out a simple reference to the request method.