Vergleich admin/modules/style/templates.php - 1.8.13 - 1.8.18

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 102Zeile 102
$query = $db->simple_select("templatesets", "*", "", array('order_by' => 'title', 'order_dir' => 'ASC'));
while($template_set = $db->fetch_array($query))
{

$query = $db->simple_select("templatesets", "*", "", array('order_by' => 'title', 'order_dir' => 'ASC'));
while($template_set = $db->fetch_array($query))
{

	$template_sets[$template_set['sid']] = $template_set['title'];

	$template_sets[$template_set['sid']] = htmlspecialchars_uni($template_set['title']);

}

$plugins->run_hooks("admin_style_templates");

}

$plugins->run_hooks("admin_style_templates");

Zeile 157Zeile 157
	$form = new Form("index.php?module=style-templates&action=add_set", "post", "add_set");

$form_container = new FormContainer($lang->add_set);

	$form = new Form("index.php?module=style-templates&action=add_set", "post", "add_set");

$form_container = new FormContainer($lang->add_set);

	$form_container->output_row($lang->title, "", $form->generate_text_box('title', $mybb->input['title'], array('id' => 'title')), 'title');

	$form_container->output_row($lang->title, "", $form->generate_text_box('title', htmlspecialchars_uni($mybb->input['title']), array('id' => 'title')), 'title');

	$form_container->end();

$buttons = array();
$buttons[] = $form->generate_submit_button($lang->save);

$form->output_submit_wrapper($buttons);

	$form_container->end();

$buttons = array();
$buttons[] = $form->generate_submit_button($lang->save);

$form->output_submit_wrapper($buttons);





	$form->end();

$page->output_footer();

	$form->end();

$page->output_footer();

Zeile 186Zeile 186
			if($db->fetch_field($query, "count") > 0)
{
$errors[] = $lang->error_already_exists;

			if($db->fetch_field($query, "count") > 0)
{
$errors[] = $lang->error_already_exists;

			}

			}

		}

if(!isset($template_sets[$sid]))
{
$errors[] = $lang->error_invalid_set;

		}

if(!isset($template_sets[$sid]))
{
$errors[] = $lang->error_invalid_set;

		}

		}


// Are we trying to do malicious things in our template?
if(check_template($mybb->input['template']))


// Are we trying to do malicious things in our template?
if(check_template($mybb->input['template']))

		{

		{

			$errors[] = $lang->error_security_problem;
}

			$errors[] = $lang->error_security_problem;
}





		if(!$errors)
{
$template_array = array(

		if(!$errors)
{
$template_array = array(

Zeile 210Zeile 210
				'status' => '',
'dateline' => TIME_NOW
);

				'status' => '',
'dateline' => TIME_NOW
);





			$tid = $db->insert_query("templates", $template_array);

			$tid = $db->insert_query("templates", $template_array);





			$plugins->run_hooks("admin_style_templates_add_template_commit");

			$plugins->run_hooks("admin_style_templates_add_template_commit");





			// Log admin action
log_admin_action($tid, $mybb->input['title'], $sid, $template_sets[$sid]);


			// Log admin action
log_admin_action($tid, $mybb->input['title'], $sid, $template_sets[$sid]);


Zeile 270Zeile 270
<script src="./jscripts/codemirror/addon/fold/foldgutter.js?ver=1813"></script>
<link href="./jscripts/codemirror/addon/fold/foldgutter.css?ver=1813" rel="stylesheet">
';

<script src="./jscripts/codemirror/addon/fold/foldgutter.js?ver=1813"></script>
<link href="./jscripts/codemirror/addon/fold/foldgutter.css?ver=1813" rel="stylesheet">
';

	}


	}


	$page->add_breadcrumb_item($lang->add_template);

$page->output_header($lang->add_template);

	$page->add_breadcrumb_item($lang->add_template);

$page->output_header($lang->add_template);

Zeile 328Zeile 328
if($mybb->input['action'] == "add_template_group")
{
$plugins->run_hooks("admin_style_templates_add_template_group");

if($mybb->input['action'] == "add_template_group")
{
$plugins->run_hooks("admin_style_templates_add_template_group");





	if($mybb->get_input('sid', MyBB::INPUT_INT) == -1)
{
admin_redirect("index.php?module=style-templates&amp;sid={$sid}".$expand_str2);

	if($mybb->get_input('sid', MyBB::INPUT_INT) == -1)
{
admin_redirect("index.php?module=style-templates&amp;sid={$sid}".$expand_str2);

Zeile 385Zeile 385
				}

admin_redirect('index.php?module=style-templates');

				}

admin_redirect('index.php?module=style-templates');

			}
}
}

			}
}
}


if($mybb->input['sid'])
{


if($mybb->input['sid'])
{

Zeile 439Zeile 439
	$plugins->run_hooks("admin_style_templates_edit_set");

$sid = $set['sid'];

	$plugins->run_hooks("admin_style_templates_edit_set");

$sid = $set['sid'];


if($mybb->request_method == "post")
{


if($mybb->request_method == "post")
{

		if(!trim($mybb->input['title']))
{
$errors[] = $lang->error_missing_set_title;

		if(!trim($mybb->input['title']))
{
$errors[] = $lang->error_missing_set_title;

Zeile 498Zeile 498

$buttons = array();
$buttons[] = $form->generate_submit_button($lang->save);


$buttons = array();
$buttons[] = $form->generate_submit_button($lang->save);





	$form->output_submit_wrapper($buttons);

$form->end();

	$form->output_submit_wrapper($buttons);

$form->end();

Zeile 555Zeile 555
				$query = $db->simple_select("templates", "sid", "title='".$db->escape_string($mybb->input['title'])."' AND (sid = '-2' OR sid = '{$sid}' OR sid='{$template['sid']}')", array('order_by' => 'sid', 'order_dir' => 'desc'));
$existing_sid = $db->fetch_field($query, "sid");
$existing_rows = $db->num_rows($query);

				$query = $db->simple_select("templates", "sid", "title='".$db->escape_string($mybb->input['title'])."' AND (sid = '-2' OR sid = '{$sid}' OR sid='{$template['sid']}')", array('order_by' => 'sid', 'order_dir' => 'desc'));
$existing_sid = $db->fetch_field($query, "sid");
$existing_rows = $db->num_rows($query);





				if(($existing_sid == -2 && $existing_rows == 1) || $existing_rows == 0)
{
$template['tid'] = $db->insert_query("templates", $template_array);

				if(($existing_sid == -2 && $existing_rows == 1) || $existing_rows == 0)
{
$template['tid'] = $db->insert_query("templates", $template_array);

Zeile 572Zeile 572
			}

$plugins->run_hooks("admin_style_templates_edit_template_commit");

			}

$plugins->run_hooks("admin_style_templates_edit_template_commit");





			$query = $db->simple_select("templatesets", "title", "sid='{$sid}'");
$set = $db->fetch_array($query);

			$query = $db->simple_select("templatesets", "title", "sid='{$sid}'");
$set = $db->fetch_array($query);





			$exploded = explode("_", $template_array['title'], 2);
$prefix = $exploded[0];


			$exploded = explode("_", $template_array['title'], 2);
$prefix = $exploded[0];


Zeile 583Zeile 583
			$group = $db->fetch_field($query, "gid");

if(!$group)

			$group = $db->fetch_field($query, "gid");

if(!$group)

			{

			{

				$group = "-1";
}


				$group = "-1";
}


Zeile 593Zeile 593
			flash_message($lang->success_template_saved, 'success');

if($mybb->input['continue'])

			flash_message($lang->success_template_saved, 'success');

if($mybb->input['continue'])

			{
if($mybb->input['from'] == "diff_report")

			{
if($mybb->input['from'] == "diff_report")

				{
admin_redirect("index.php?module=style-templates&action=edit_template&title=".urlencode($mybb->input['title'])."&sid=".$mybb->get_input('sid', MyBB::INPUT_INT).$expand_str2."&amp;from=diff_report");

				{
admin_redirect("index.php?module=style-templates&action=edit_template&title=".urlencode($mybb->input['title'])."&sid=".$mybb->get_input('sid', MyBB::INPUT_INT).$expand_str2."&amp;from=diff_report");

				}

				}

				else
{
admin_redirect("index.php?module=style-templates&action=edit_template&title=".urlencode($mybb->input['title'])."&sid=".$mybb->get_input('sid', MyBB::INPUT_INT).$expand_str2);

				else
{
admin_redirect("index.php?module=style-templates&action=edit_template&title=".urlencode($mybb->input['title'])."&sid=".$mybb->get_input('sid', MyBB::INPUT_INT).$expand_str2);

				}

				}

			}
else
{
if($mybb->input['from'] == "diff_report")
{
admin_redirect("index.php?module=style-templates&amp;action=find_updated");

			}
else
{
if($mybb->input['from'] == "diff_report")
{
admin_redirect("index.php?module=style-templates&amp;action=find_updated");

				}

				}

				else
{
admin_redirect("index.php?module=style-templates&sid=".$mybb->get_input('sid', MyBB::INPUT_INT).$expand_str2."#group_{$group}");

				else
{
admin_redirect("index.php?module=style-templates&sid=".$mybb->get_input('sid', MyBB::INPUT_INT).$expand_str2."#group_{$group}");

				}
}
}
}

if($errors)

				}
}
}
}

if($errors)

	{
$template = $mybb->input;
}

	{
$template = $mybb->input;
}

Zeile 664Zeile 664
	$page->add_breadcrumb_item($lang->edit_template_breadcrumb.$template['title'], "index.php?module=style-templates&amp;sid={$sid}");

$page->output_header($lang->sprintf($lang->editing_template, $template['title']));

	$page->add_breadcrumb_item($lang->edit_template_breadcrumb.$template['title'], "index.php?module=style-templates&amp;sid={$sid}");

$page->output_header($lang->sprintf($lang->editing_template, $template['title']));



$sub_tabs = array();

if($mybb->input['from'] == "diff_report")



$sub_tabs = array();

if($mybb->input['from'] == "diff_report")

	{
$sub_tabs['find_updated'] = array(
'title' => $lang->find_updated,

	{
$sub_tabs['find_updated'] = array(
'title' => $lang->find_updated,

Zeile 808Zeile 808

$db->update_query('templategroups', $update_array, "gid = '{$template_group['gid']}'");



$db->update_query('templategroups', $update_array, "gid = '{$template_group['gid']}'");


				log_admin_action($template_group['gid'], htmlspecialchars_uni($title));

				log_admin_action($template_group['gid'], $title);

				flash_message($lang->success_template_group_saved, 'success');
admin_redirect("index.php?module=style-templates&amp;sid={$sid}");
}

				flash_message($lang->success_template_group_saved, 'success');
admin_redirect("index.php?module=style-templates&amp;sid={$sid}");
}

Zeile 841Zeile 841

$buttons = array(
$form->generate_submit_button($lang->save_template_group)


$buttons = array(
$form->generate_submit_button($lang->save_template_group)

	);

$form->output_submit_wrapper($buttons);
$form->end();

$page->output_footer();
}


	);

$form->output_submit_wrapper($buttons);
$form->end();

$page->output_footer();
}


if($mybb->input['action'] == "search_replace")
{
$plugins->run_hooks("admin_style_templates_search_replace");

if($mybb->input['action'] == "search_replace")
{
$plugins->run_hooks("admin_style_templates_search_replace");





	if($mybb->request_method == "post")
{
if($mybb->input['type'] == "templates")

	if($mybb->request_method == "post")
{
if($mybb->input['type'] == "templates")

Zeile 867Zeile 867
			else
{
$page->add_breadcrumb_item($lang->search_replace);

			else
{
$page->add_breadcrumb_item($lang->search_replace);





				$page->output_header($lang->search_replace);

$plugins->run_hooks("admin_style_templates_search_replace_find");

				$page->output_header($lang->search_replace);

$plugins->run_hooks("admin_style_templates_search_replace_find");

Zeile 875Zeile 875
				$page->output_nav_tabs($sub_tabs, 'search_replace');

$templates_list = array();

				$page->output_nav_tabs($sub_tabs, 'search_replace');

$templates_list = array();

				$table = new Table;

$template_sets = array();

				$table = new Table;

$template_sets = array();


// Get the names of all template sets
$template_sets[-2] = $lang->master_templates;


// Get the names of all template sets
$template_sets[-2] = $lang->master_templates;

Zeile 885Zeile 885

$query = $db->simple_select("templatesets", "sid, title");
while($set = $db->fetch_array($query))


$query = $db->simple_select("templatesets", "sid, title");
while($set = $db->fetch_array($query))

				{

				{

					$template_sets[$set['sid']] = $set['title'];
}

					$template_sets[$set['sid']] = $set['title'];
}





				$search_string = str_replace(array("\r\n", "\r"), "\n", $mybb->input['find']);
$search_string = str_replace(array(" ", "\t"), "", $search_string);


				$search_string = str_replace(array("\r\n", "\r"), "\n", $mybb->input['find']);
$search_string = str_replace(array(" ", "\t"), "", $search_string);


Zeile 904Zeile 904
				if($db->num_rows($query) == 0)
{
$table->construct_cell($lang->sprintf($lang->search_noresults, htmlspecialchars_uni($mybb->input['find'])), array("class" => "align_center"));

				if($db->num_rows($query) == 0)
{
$table->construct_cell($lang->sprintf($lang->search_noresults, htmlspecialchars_uni($mybb->input['find'])), array("class" => "align_center"));


$table->construct_row();



$table->construct_row();


					$table->output($lang->search_results);
}
else

					$table->output($lang->search_results);
}
else

Zeile 934Zeile 934
							{
// If the template is different, that means the search term has been found.
if(trim($mybb->input['replace']) != "")

							{
// If the template is different, that means the search term has been found.
if(trim($mybb->input['replace']) != "")

								{
if($template['sid'] == -2)

								{
if($template['sid'] == -2)

									{
// The template is a master template. We have to make a new custom template.
$new_template = array(

									{
// The template is a master template. We have to make a new custom template.
$new_template = array(

Zeile 949Zeile 949
										$new_tid = $db->insert_query("templates", $new_template);
$label = $lang->sprintf($lang->search_created_custom, $template['title']);
$url = "index.php?module=style-templates&amp;action=edit_template&amp;title=".urlencode($template['title'])."&amp;sid=1";

										$new_tid = $db->insert_query("templates", $new_template);
$label = $lang->sprintf($lang->search_created_custom, $template['title']);
$url = "index.php?module=style-templates&amp;action=edit_template&amp;title=".urlencode($template['title'])."&amp;sid=1";

									}

									}

									else
{
// The template is a custom template. Replace as normal.

									else
{
// The template is a custom template. Replace as normal.

Zeile 959Zeile 959
										);
$db->update_query("templates", $updatedtemplate, "tid='".$template['tid']."'");
$label = $lang->sprintf($lang->search_updated, $template['title']);

										);
$db->update_query("templates", $updatedtemplate, "tid='".$template['tid']."'");
$label = $lang->sprintf($lang->search_updated, $template['title']);

										$url = "index.php?module=style-templates&amp;action=edit_template&amp;title=".urlencode($template['title'])."&amp;sid={$template['sid']}";
}
}
else
{

										$url = "index.php?module=style-templates&amp;action=edit_template&amp;title=".urlencode($template['title'])."&amp;sid={$template['sid']}";
}
}
else
{

									// Just show that the term was found
if($template['sid'] == -2)
{

									// Just show that the term was found
if($template['sid'] == -2)
{

Zeile 1078Zeile 1078
						if(!$template['customtid'])
{
$template['original'] = true;

						if(!$template['customtid'])
{
$template['original'] = true;

						}

						}

						else
{
$template['modified'] = true;

						else
{
$template['modified'] = true;

Zeile 1324Zeile 1324
		FROM ".TABLE_PREFIX."templates t
LEFT JOIN ".TABLE_PREFIX."templates m ON (m.title=t.title AND m.sid=-2 AND m.version > t.version)
WHERE t.sid > 0 AND m.template != t.template

		FROM ".TABLE_PREFIX."templates t
LEFT JOIN ".TABLE_PREFIX."templates m ON (m.title=t.title AND m.sid=-2 AND m.version > t.version)
WHERE t.sid > 0 AND m.template != t.template

		ORDER BY t.sid ASC, title ASC

		ORDER BY t.sid ASC, t.title ASC

	");
while($template = $db->fetch_array($query))
{

	");
while($template = $db->fetch_array($query))
{

Zeile 1335Zeile 1335
	{
if(!$done_set[$sid])
{

	{
if(!$done_set[$sid])
{

			$table->construct_header($templatesets[$sid]['title'], array("colspan" => 2));

			$table->construct_header(htmlspecialchars_uni($templatesets[$sid]['title']), array("colspan" => 2));


$done_set[$sid] = 1;
++$count;


$done_set[$sid] = 1;
++$count;

Zeile 1400Zeile 1400
		$plugins->run_hooks("admin_style_template_group_delete_commit");

// Log admin action

		$plugins->run_hooks("admin_style_template_group_delete_commit");

// Log admin action

		log_admin_action($template_group['gid'], htmlspecialchars_uni($template_group['title']));

		log_admin_action($template_group['gid'], $template_group['title']);


flash_message($lang->success_template_group_deleted, 'success');
admin_redirect("index.php?module=style-templates&amp;sid={$sid}");


flash_message($lang->success_template_group_deleted, 'success');
admin_redirect("index.php?module=style-templates&amp;sid={$sid}");

Zeile 1541Zeile 1541
		'title' => $lang->diff_report,
'link' => "index.php?module=style-templates&amp;action=diff_report&amp;title=".$db->escape_string($mybb->input['title'])."&amp;from=".htmlspecialchars_uni($mybb->input['from'])."sid1=".$mybb->get_input('sid1', MyBB::INPUT_INT)."&amp;sid2=".$mybb->get_input('sid2', MyBB::INPUT_INT),
'description' => $lang->diff_report_desc

		'title' => $lang->diff_report,
'link' => "index.php?module=style-templates&amp;action=diff_report&amp;title=".$db->escape_string($mybb->input['title'])."&amp;from=".htmlspecialchars_uni($mybb->input['from'])."sid1=".$mybb->get_input('sid1', MyBB::INPUT_INT)."&amp;sid2=".$mybb->get_input('sid2', MyBB::INPUT_INT),
'description' => $lang->diff_report_desc

	);

	);


$plugins->run_hooks("admin_style_templates_diff_report");



$plugins->run_hooks("admin_style_templates_diff_report");


Zeile 1598Zeile 1598
	if($mybb->input['from'])
{
$table->construct_header("<ins>".$lang->master_updated_ins."</ins><br /><del>".$lang->master_updated_del."</del>");

	if($mybb->input['from'])
{
$table->construct_header("<ins>".$lang->master_updated_ins."</ins><br /><del>".$lang->master_updated_del."</del>");

	}
else

	}
else

	{
$table->construct_header("<ins>".$lang->master_updated_del."</ins><br /><del>".$lang->master_updated_ins."</del>");
}

	{
$table->construct_header("<ins>".$lang->master_updated_del."</ins><br /><del>".$lang->master_updated_ins."</del>");
}

Zeile 1608Zeile 1608
	$table->construct_row();

$table->output($lang->template_diff_analysis.": ".$template1['title']);

	$table->construct_row();

$table->output($lang->template_diff_analysis.": ".$template1['title']);





	$page->output_footer();
}

	$page->output_footer();
}





if($mybb->input['action'] == "revert")
{
$query = $db->query("

if($mybb->input['action'] == "revert")
{
$query = $db->query("

Zeile 1626Zeile 1626
	if(!$template)
{
flash_message($lang->error_invalid_template, 'error');

	if(!$template)
{
flash_message($lang->error_invalid_template, 'error');

		admin_redirect("index.php?module=style-templates");
}


		admin_redirect("index.php?module=style-templates");
}


	// User clicked no
if($mybb->input['no'])
{

	// User clicked no
if($mybb->input['no'])
{

Zeile 1646Zeile 1646

// Log admin action
log_admin_action($template['tid'], $template['title'], $template['sid'], $template['set_title']);


// Log admin action
log_admin_action($template['tid'], $template['title'], $template['sid'], $template['set_title']);





		flash_message($lang->success_template_reverted, 'success');

if($mybb->input['from'] == "diff_report")

		flash_message($lang->success_template_reverted, 'success');

if($mybb->input['from'] == "diff_report")

Zeile 1656Zeile 1656
		else
{
admin_redirect("index.php?module=style-templates&sid={$template['sid']}{$expand_str2}");

		else
{
admin_redirect("index.php?module=style-templates&sid={$template['sid']}{$expand_str2}");

		}

		}

	}
else
{

	}
else
{

Zeile 1771Zeile 1771
		$exploded[0] = strtolower($exploded[0]);

if(isset($template_groups[$exploded[0]]))

		$exploded[0] = strtolower($exploded[0]);

if(isset($template_groups[$exploded[0]]))

		{

		{

			$group = $exploded[0];
}
else
{
$group = -1;

			$group = $exploded[0];
}
else
{
$group = -1;

		}

		}


$template['gid'] = -1;
if(isset($template_groups[$exploded[0]]['gid']))
{
$template['gid'] = $template_groups[$exploded[0]]['gid'];


$template['gid'] = -1;
if(isset($template_groups[$exploded[0]]['gid']))
{
$template['gid'] = $template_groups[$exploded[0]]['gid'];

		}

		}


// If this template is not a master template, we simple add it to the list
if($template['sid'] != -2)


// If this template is not a master template, we simple add it to the list
if($template['sid'] != -2)

		{

		{

			$template['original'] = false;

			$template['original'] = false;

			$template['modified'] = false;
$template_groups[$group]['templates'][$template['title']] = $template;

			$template['modified'] = false;
$template_groups[$group]['templates'][$template['title']] = $template;

		}
else if(!in_array($template['gid'], $expand_array) && !isset($expand_array[-1]))
{
$template['original'] = true;
$template['modified'] = false;
$template_groups[$group]['templates'][$template['title']] = $template;

		}
else if(!in_array($template['gid'], $expand_array) && !isset($expand_array[-1]))
{
$template['original'] = true;
$template['modified'] = false;
$template_groups[$group]['templates'][$template['title']] = $template;


// Save some memory!
unset($template_groups[$group]['templates'][$template['title']]['template']);
}


// Save some memory!
unset($template_groups[$group]['templates'][$template['title']]['template']);
}

		// Otherwise, if we are down to master templates we need to do a few extra things
else
{

		// Otherwise, if we are down to master templates we need to do a few extra things
else
{

Zeile 1858Zeile 1858
			$popup = new PopupMenu("template_set_{$group['gid']}", $lang->options);
$popup->add_item($lang->edit_template_group, "index.php?module=style-templates&amp;sid={$sid}&amp;action=edit_template_group&amp;gid={$group['gid']}{$group['expand_str']}");
$popup->add_item($lang->delete_template_group, "index.php?module=style-templates&amp;sid={$sid}&amp;action=delete_template_group&amp;gid={$group['gid']}&amp;my_post_key={$mybb->post_code}{$group['expand_str']}", "return AdminCP.deleteConfirmation(this, '{$lang->confirm_template_group_delete}')");

			$popup = new PopupMenu("template_set_{$group['gid']}", $lang->options);
$popup->add_item($lang->edit_template_group, "index.php?module=style-templates&amp;sid={$sid}&amp;action=edit_template_group&amp;gid={$group['gid']}{$group['expand_str']}");
$popup->add_item($lang->delete_template_group, "index.php?module=style-templates&amp;sid={$sid}&amp;action=delete_template_group&amp;gid={$group['gid']}&amp;my_post_key={$mybb->post_code}{$group['expand_str']}", "return AdminCP.deleteConfirmation(this, '{$lang->confirm_template_group_delete}')");





			$set_popup = "<div class=\"float_right\">{$popup->fetch()}</div>";
}


			$set_popup = "<div class=\"float_right\">{$popup->fetch()}</div>";
}


Zeile 1869Zeile 1869
			$table->construct_cell("<a href=\"index.php?module=style-templates&amp;sid={$sid}{$group['expand_str']}#group_{$group['gid']}\">{$expand}</a>", array("class" => "align_center"));
$table->construct_row(array("class" => "alt_row", "id" => "group_".$group['gid'], "name" => "group_".$group['gid']));


			$table->construct_cell("<a href=\"index.php?module=style-templates&amp;sid={$sid}{$group['expand_str']}#group_{$group['gid']}\">{$expand}</a>", array("class" => "align_center"));
$table->construct_row(array("class" => "alt_row", "id" => "group_".$group['gid'], "name" => "group_".$group['gid']));


			if(isset($group['templates']) && count($group['templates']) > 0)

			if(isset($group['templates']) && is_array($group['templates']) && count($group['templates']) > 0)

			{
$templates = $group['templates'];
ksort($templates);

			{
$templates = $group['templates'];
ksort($templates);

Zeile 2003Zeile 2003

$actions = $popup->fetch();
}


$actions = $popup->fetch();
}

 

$set['title'] = htmlspecialchars_uni($set['title']);


$table->construct_cell("<strong><a href=\"index.php?module=style-templates&amp;sid={$set['sid']}\">{$set['title']}</a></strong><br /><small>{$used_by_note}</small>");
$table->construct_cell($actions, array("class" => "align_center"));


$table->construct_cell("<strong><a href=\"index.php?module=style-templates&amp;sid={$set['sid']}\">{$set['title']}</a></strong><br /><small>{$used_by_note}</small>");
$table->construct_cell($actions, array("class" => "align_center"));