Zeile 102 | Zeile 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 157 | Zeile 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();
| $form_container->end();
$buttons = array();
|
Zeile 198 | Zeile 198 |
---|
if(check_template($mybb->input['template'])) { $errors[] = $lang->error_security_problem;
|
if(check_template($mybb->input['template'])) { $errors[] = $lang->error_security_problem;
|
}
| }
|
if(!$errors) { $template_array = array(
| if(!$errors) { $template_array = array(
|
Zeile 240 | Zeile 240 |
---|
if(!$sid) { $sid = -1;
|
if(!$sid) { $sid = -1;
|
}
| }
|
$template['template'] = ""; $template['sid'] = $sid; }
| $template['template'] = ""; $template['sid'] = $sid; }
|
Zeile 254 | Zeile 254 |
---|
if($admin_options['codepress'] != 0) { $page->extra_header .= '
|
if($admin_options['codepress'] != 0) { $page->extra_header .= '
|
<link href="./jscripts/codemirror/lib/codemirror.css" rel="stylesheet"> <link href="./jscripts/codemirror/theme/mybb.css?ver=1804" rel="stylesheet"> <script src="./jscripts/codemirror/lib/codemirror.js"></script> <script src="./jscripts/codemirror/mode/xml/xml.js"></script> <script src="./jscripts/codemirror/mode/javascript/javascript.js"></script> <script src="./jscripts/codemirror/mode/css/css.js"></script> <script src="./jscripts/codemirror/mode/htmlmixed/htmlmixed.js"></script> <link href="./jscripts/codemirror/addon/dialog/dialog-mybb.css" rel="stylesheet"> <script src="./jscripts/codemirror/addon/dialog/dialog.js"></script> <script src="./jscripts/codemirror/addon/search/searchcursor.js"></script> <script src="./jscripts/codemirror/addon/search/search.js?ver=1808"></script> <script src="./jscripts/codemirror/addon/fold/foldcode.js"></script> <script src="./jscripts/codemirror/addon/fold/xml-fold.js"></script> <script src="./jscripts/codemirror/addon/fold/foldgutter.js"></script> <link href="./jscripts/codemirror/addon/fold/foldgutter.css" rel="stylesheet">
| <link href="./jscripts/codemirror/lib/codemirror.css?ver=1813" rel="stylesheet"> <link href="./jscripts/codemirror/theme/mybb.css?ver=1813" rel="stylesheet"> <script src="./jscripts/codemirror/lib/codemirror.js?ver=1813"></script> <script src="./jscripts/codemirror/mode/xml/xml.js?ver=1813"></script> <script src="./jscripts/codemirror/mode/javascript/javascript.js?ver=1813"></script> <script src="./jscripts/codemirror/mode/css/css.js?ver=1813"></script> <script src="./jscripts/codemirror/mode/htmlmixed/htmlmixed.js?ver=1813"></script> <link href="./jscripts/codemirror/addon/dialog/dialog-mybb.css?ver=1813" rel="stylesheet"> <script src="./jscripts/codemirror/addon/dialog/dialog.js?ver=1813"></script> <script src="./jscripts/codemirror/addon/search/searchcursor.js?ver=1813"></script> <script src="./jscripts/codemirror/addon/search/search.js?ver=1813"></script> <script src="./jscripts/codemirror/addon/fold/foldcode.js?ver=1813"></script> <script src="./jscripts/codemirror/addon/fold/xml-fold.js?ver=1813"></script> <script src="./jscripts/codemirror/addon/fold/foldgutter.js?ver=1813"></script> <link href="./jscripts/codemirror/addon/fold/foldgutter.css?ver=1813" rel="stylesheet">
|
'; }
| '; }
|
Zeile 341 | Zeile 341 |
---|
if(!$prefix) { $errors[] = $lang->error_missing_group_prefix;
|
if(!$prefix) { $errors[] = $lang->error_missing_group_prefix;
|
| }
if(strpos($prefix, "_") !== false) { $errors[] = $lang->error_invalid_group_title;
|
}
$title = trim($mybb->input['title']);
| }
$title = trim($mybb->input['title']);
|
Zeile 626 | Zeile 631 |
---|
if($admin_options['codepress'] != 0) { $page->extra_header .= '
|
if($admin_options['codepress'] != 0) { $page->extra_header .= '
|
<link href="./jscripts/codemirror/lib/codemirror.css" rel="stylesheet"> <link href="./jscripts/codemirror/theme/mybb.css?ver=1804" rel="stylesheet"> <script src="./jscripts/codemirror/lib/codemirror.js"></script> <script src="./jscripts/codemirror/mode/xml/xml.js"></script> <script src="./jscripts/codemirror/mode/javascript/javascript.js"></script> <script src="./jscripts/codemirror/mode/css/css.js"></script> <script src="./jscripts/codemirror/mode/htmlmixed/htmlmixed.js"></script> <link href="./jscripts/codemirror/addon/dialog/dialog-mybb.css" rel="stylesheet"> <script src="./jscripts/codemirror/addon/dialog/dialog.js"></script> <script src="./jscripts/codemirror/addon/search/searchcursor.js"></script> <script src="./jscripts/codemirror/addon/search/search.js?ver=1808"></script> <script src="./jscripts/codemirror/addon/fold/foldcode.js"></script> <script src="./jscripts/codemirror/addon/fold/xml-fold.js"></script> <script src="./jscripts/codemirror/addon/fold/foldgutter.js"></script> <link href="./jscripts/codemirror/addon/fold/foldgutter.css" rel="stylesheet">
| <link href="./jscripts/codemirror/lib/codemirror.css?ver=1813" rel="stylesheet"> <link href="./jscripts/codemirror/theme/mybb.css?ver=1813" rel="stylesheet"> <script src="./jscripts/codemirror/lib/codemirror.js?ver=1813"></script> <script src="./jscripts/codemirror/mode/xml/xml.js?ver=1813"></script> <script src="./jscripts/codemirror/mode/javascript/javascript.js?ver=1813"></script> <script src="./jscripts/codemirror/mode/css/css.js?ver=1813"></script> <script src="./jscripts/codemirror/mode/htmlmixed/htmlmixed.js?ver=1813"></script> <link href="./jscripts/codemirror/addon/dialog/dialog-mybb.css?ver=1813" rel="stylesheet"> <script src="./jscripts/codemirror/addon/dialog/dialog.js?ver=1813"></script> <script src="./jscripts/codemirror/addon/search/searchcursor.js?ver=1813"></script> <script src="./jscripts/codemirror/addon/search/search.js?ver=1813"></script> <script src="./jscripts/codemirror/addon/fold/foldcode.js?ver=1813"></script> <script src="./jscripts/codemirror/addon/fold/xml-fold.js?ver=1813"></script> <script src="./jscripts/codemirror/addon/fold/foldgutter.js?ver=1813"></script> <link href="./jscripts/codemirror/addon/fold/foldgutter.css?ver=1813" rel="stylesheet">
|
'; }
| '; }
|
Zeile 764 | Zeile 769 |
---|
if(!$prefix) { $errors[] = $lang->error_missing_group_prefix;
|
if(!$prefix) { $errors[] = $lang->error_missing_group_prefix;
|
| }
if(strpos($prefix, "_") !== false) { $errors[] = $lang->error_invalid_group_title;
|
}
$title = trim($mybb->input['title']); if(!$title)
|
}
$title = trim($mybb->input['title']); if(!$title)
|
{
| {
|
$errors[] = $lang->error_missing_group_title; }
if(!$errors)
|
$errors[] = $lang->error_missing_group_title; }
if(!$errors)
|
{
| {
|
if($prefix != $template_group['prefix']) { $query = $db->simple_select("templategroups", "COUNT(gid) AS gid", "prefix = '".$db->escape_string($mybb->input['prefix'])."'");
| if($prefix != $template_group['prefix']) { $query = $db->simple_select("templategroups", "COUNT(gid) AS gid", "prefix = '".$db->escape_string($mybb->input['prefix'])."'");
|
Zeile 783 | Zeile 793 |
---|
{ $errors[] = $lang->error_duplicate_group_prefix; }
|
{ $errors[] = $lang->error_duplicate_group_prefix; }
|
}
| }
|
if(!$errors) { // Add template group
| if(!$errors) { // Add template group
|
Zeile 795 | Zeile 805 |
---|
);
$plugins->run_hooks('admin_style_templates_edit_template_group_commit');
|
);
$plugins->run_hooks('admin_style_templates_edit_template_group_commit');
|
|
|
$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)); flash_message($lang->success_template_group_saved, 'success'); admin_redirect("index.php?module=style-templates&sid={$sid}"); } }
|
log_admin_action($template_group['gid'], htmlspecialchars_uni($title)); flash_message($lang->success_template_group_saved, 'success'); admin_redirect("index.php?module=style-templates&sid={$sid}"); } }
|
}
$lang->editing_template_group = $lang->sprintf($lang->editing_template_group, htmlspecialchars_uni($template_group['title']));
| }
$lang->editing_template_group = $lang->sprintf($lang->editing_template_group, htmlspecialchars_uni($template_group['title']));
|
$page->add_breadcrumb_item($template_sets[$sid], "index.php?module=style-templates&sid={$sid}{$expand_str}"); $page->add_breadcrumb_item($lang->editing_template_group, "index.php?module=style-templates&sid={$sid}");
| $page->add_breadcrumb_item($template_sets[$sid], "index.php?module=style-templates&sid={$sid}{$expand_str}"); $page->add_breadcrumb_item($lang->editing_template_group, "index.php?module=style-templates&sid={$sid}");
|
Zeile 828 | Zeile 838 |
---|
$form_container->output_row($lang->template_group_prefix, $lang->template_group_prefix_desc, $form->generate_text_box('prefix', $template_group['prefix'], array('id' => 'prefix')), 'prefix'); $form_container->output_row($lang->template_group_title, $lang->template_group_title_desc, $form->generate_text_box('title', $template_group['title'], array('id' => 'title')), 'title'); $form_container->end();
|
$form_container->output_row($lang->template_group_prefix, $lang->template_group_prefix_desc, $form->generate_text_box('prefix', $template_group['prefix'], array('id' => 'prefix')), 'prefix'); $form_container->output_row($lang->template_group_title, $lang->template_group_title_desc, $form->generate_text_box('title', $template_group['title'], array('id' => 'title')), 'title'); $form_container->end();
|
|
|
$buttons = array( $form->generate_submit_button($lang->save_template_group) );
| $buttons = array( $form->generate_submit_button($lang->save_template_group) );
|
Zeile 850 | Zeile 860 |
---|
// Search and replace in templates
if(!$mybb->input['find'])
|
// Search and replace in templates
if(!$mybb->input['find'])
|
{ flash_message($lang->search_noneset, "error"); admin_redirect("index.php?module=style-templates&action=search_replace"); } else { $page->add_breadcrumb_item($lang->search_replace);
| { flash_message($lang->search_noneset, "error"); admin_redirect("index.php?module=style-templates&action=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_nav_tabs($sub_tabs, 'search_replace');
|
$page->output_header($lang->search_replace);
$plugins->run_hooks("admin_style_templates_search_replace_find");
$page->output_nav_tabs($sub_tabs, 'search_replace');
|
|
|
$templates_list = array(); $table = new Table;
| $templates_list = array(); $table = new Table;
|
Zeile 878 | Zeile 888 |
---|
{ $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);
|
// Select all templates with that search term $query = $db->query(" SELECT t.tid, t.title, t.sid, t.template
|
// Select all templates with that search term $query = $db->query(" SELECT t.tid, t.title, t.sid, t.template
|
FROM ".TABLE_PREFIX."templates t LEFT JOIN ".TABLE_PREFIX."templatesets s ON (t.sid=s.sid) LEFT JOIN ".TABLE_PREFIX."templates t2 ON (t.title=t2.title AND t2.sid='1') WHERE t.template LIKE '%".$db->escape_string_like($mybb->input['find'])."%' AND NOT (t.sid = -2 AND (t2.tid) IS NOT NULL)
| FROM ".TABLE_PREFIX."templates t LEFT JOIN ".TABLE_PREFIX."templatesets s ON (t.sid=s.sid) LEFT JOIN ".TABLE_PREFIX."templates t2 ON (t.title=t2.title AND t2.sid='1') WHERE REPLACE(REPLACE(REPLACE(REPLACE(t.template, '\r\n', '\n'), '\r', '\n'), ' ', ''), '\t', '') LIKE '%".$db->escape_string_like($search_string)."%' AND NOT (t.sid = -2 AND (t2.tid) IS NOT NULL)
|
ORDER BY t.title ASC "); if($db->num_rows($query) == 0)
| ORDER BY t.title ASC "); if($db->num_rows($query) == 0)
|
Zeile 967 | Zeile 980 |
---|
{ // Just show that the term was found if($template['sid'] == -2)
|
{ // Just show that the term was found if($template['sid'] == -2)
|
{ $label = $lang->sprintf($lang->search_found, $template['title']); }
| { $label = $lang->sprintf($lang->search_found, $template['title']); }
|
else { $label = $lang->sprintf($lang->search_found, $template['title']); $url = "index.php?module=style-templates&action=edit_template&title=".urlencode($template['title'])."&sid={$template['sid']}";
|
else { $label = $lang->sprintf($lang->search_found, $template['title']); $url = "index.php?module=style-templates&action=edit_template&title=".urlencode($template['title'])."&sid={$template['sid']}";
|
} }
| } }
|
$table->construct_cell($label, array("width" => "85%"));
if($sid == -2)
|
$table->construct_cell($label, array("width" => "85%"));
if($sid == -2)
|
{
| {
|
$popup = new PopupMenu("template_{$template['tid']}", $lang->options);
foreach($template_sets as $set_sid => $title)
| $popup = new PopupMenu("template_{$template['tid']}", $lang->options);
foreach($template_sets as $set_sid => $title)
|
Zeile 997 | Zeile 1010 |
---|
{ $table->construct_cell("<a href=\"{$url}\">{$lang->edit}</a>", array("class" => "align_center")); }
|
{ $table->construct_cell("<a href=\"{$url}\">{$lang->edit}</a>", array("class" => "align_center")); }
|
|
|
$table->construct_row(); }
if($count == 1) { $table->output($lang->search_results);
|
$table->construct_row(); }
if($count == 1) { $table->output($lang->search_results);
|
}
| }
|
else { $table->output(); } }
|
else { $table->output(); } }
|
}
| }
|
if(trim($mybb->input['replace']) != "") { // Log admin action - only if replace
| if(trim($mybb->input['replace']) != "") { // Log admin action - only if replace
|
Zeile 1025 | Zeile 1038 |
---|
else { if(!$mybb->input['title'])
|
else { if(!$mybb->input['title'])
|
{
| {
|
flash_message($lang->search_noneset, "error"); admin_redirect("index.php?module=style-templates&action=search_replace"); }
| flash_message($lang->search_noneset, "error"); admin_redirect("index.php?module=style-templates&action=search_replace"); }
|
Zeile 1077 | Zeile 1090 |
---|
$template['modified'] = false; } $templatessets[$template['sid']][$template['title']] = $template;
|
$template['modified'] = false; } $templatessets[$template['sid']][$template['title']] = $template;
|
}
$page->add_breadcrumb_item($lang->search_replace);
| }
$page->add_breadcrumb_item($lang->search_replace);
|
$page->output_header($lang->search_replace);
$page->output_nav_tabs($sub_tabs, 'search_replace');
| $page->output_header($lang->search_replace);
$page->output_nav_tabs($sub_tabs, 'search_replace');
|
Zeile 1161 | Zeile 1174 |
---|
exit; } }
|
exit; } }
|
}
if($admin_options['codepress'] != 0) {
| }
if($admin_options['codepress'] != 0) {
|
$page->extra_header .= '
|
$page->extra_header .= '
|
<link href="./jscripts/codemirror/lib/codemirror.css" rel="stylesheet"> <link href="./jscripts/codemirror/theme/mybb.css?ver=1804" rel="stylesheet"> <script src="./jscripts/codemirror/lib/codemirror.js"></script> <script src="./jscripts/codemirror/mode/xml/xml.js"></script> <script src="./jscripts/codemirror/mode/javascript/javascript.js"></script> <script src="./jscripts/codemirror/mode/css/css.js"></script> <script src="./jscripts/codemirror/mode/htmlmixed/htmlmixed.js"></script> <link href="./jscripts/codemirror/addon/dialog/dialog-mybb.css" rel="stylesheet"> <script src="./jscripts/codemirror/addon/dialog/dialog.js"></script> <script src="./jscripts/codemirror/addon/search/searchcursor.js"></script> <script src="./jscripts/codemirror/addon/search/search.js?ver=1808"></script> <script src="./jscripts/codemirror/addon/fold/foldcode.js"></script> <script src="./jscripts/codemirror/addon/fold/xml-fold.js"></script> <script src="./jscripts/codemirror/addon/fold/foldgutter.js"></script> <link href="./jscripts/codemirror/addon/fold/foldgutter.css" rel="stylesheet">
| <link href="./jscripts/codemirror/lib/codemirror.css?ver=1813" rel="stylesheet"> <link href="./jscripts/codemirror/theme/mybb.css?ver=1813" rel="stylesheet"> <script src="./jscripts/codemirror/lib/codemirror.js?ver=1813"></script> <script src="./jscripts/codemirror/mode/xml/xml.js?ver=1813"></script> <script src="./jscripts/codemirror/mode/javascript/javascript.js?ver=1813"></script> <script src="./jscripts/codemirror/mode/css/css.js?ver=1813"></script> <script src="./jscripts/codemirror/mode/htmlmixed/htmlmixed.js?ver=1813"></script> <link href="./jscripts/codemirror/addon/dialog/dialog-mybb.css?ver=1813" rel="stylesheet"> <script src="./jscripts/codemirror/addon/dialog/dialog.js?ver=1813"></script> <script src="./jscripts/codemirror/addon/search/searchcursor.js?ver=1813"></script> <script src="./jscripts/codemirror/addon/search/search.js?ver=1813"></script> <script src="./jscripts/codemirror/addon/fold/foldcode.js?ver=1813"></script> <script src="./jscripts/codemirror/addon/fold/xml-fold.js?ver=1813"></script> <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->search_replace);
$page->output_header($lang->search_replace);
$page->output_nav_tabs($sub_tabs, 'search_replace');
|
$page->add_breadcrumb_item($lang->search_replace);
$page->output_header($lang->search_replace);
$page->output_nav_tabs($sub_tabs, 'search_replace');
|
|
|
$form = new Form("index.php?module=style-templates&action=search_replace", "post", "do_template"); echo $form->generate_hidden_field('type', "templates");
| $form = new Form("index.php?module=style-templates&action=search_replace", "post", "do_template"); echo $form->generate_hidden_field('type', "templates");
|
Zeile 1197 | Zeile 1210 |
---|
$form_container->output_row($lang->search_for, "", $form->generate_text_area('find', $mybb->input['find'], array('id' => 'find', 'class' => '', 'style' => 'width: 100%; height: 200px;')));
$form_container->output_row($lang->replace_with, "", $form->generate_text_area('replace', $mybb->input['replace'], array('id' => 'replace', 'class' => '', 'style' => 'width: 100%; height: 200px;')));
|
$form_container->output_row($lang->search_for, "", $form->generate_text_area('find', $mybb->input['find'], array('id' => 'find', 'class' => '', 'style' => 'width: 100%; height: 200px;')));
$form_container->output_row($lang->replace_with, "", $form->generate_text_area('replace', $mybb->input['replace'], array('id' => 'replace', 'class' => '', 'style' => 'width: 100%; height: 200px;')));
|
$form_container->end();
$buttons[] = $form->generate_submit_button($lang->find_and_replace);
$form->output_submit_wrapper($buttons);
$form->end();
echo "<br />";
| $form_container->end();
$buttons[] = $form->generate_submit_button($lang->find_and_replace);
$form->output_submit_wrapper($buttons);
$form->end();
echo "<br />";
|
$form = new Form("index.php?module=style-templates&action=search_replace", "post", "do_title"); echo $form->generate_hidden_field('type', "titles");
$form_container = new FormContainer($lang->search_template_names);
$form_container->output_row($lang->search_for, "", $form->generate_text_box('title', $mybb->input['title'], array('id' => 'title')), 'title');
|
$form = new Form("index.php?module=style-templates&action=search_replace", "post", "do_title"); echo $form->generate_hidden_field('type', "titles");
$form_container = new FormContainer($lang->search_template_names);
$form_container->output_row($lang->search_for, "", $form->generate_text_box('title', $mybb->input['title'], array('id' => 'title')), 'title');
|
|
|
$form_container->end();
$buttons = array();
| $form_container->end();
$buttons = array();
|
Zeile 1229 | Zeile 1242 |
---|
{ echo '<script type="text/javascript"> var editor1 = CodeMirror.fromTextArea(document.getElementById("find"), {
|
{ echo '<script type="text/javascript"> var editor1 = CodeMirror.fromTextArea(document.getElementById("find"), {
|
lineNumbers: true, lineWrapping: true, foldGutter: true, gutters: ["CodeMirror-linenumbers", "CodeMirror-foldgutter"], viewportMargin: Infinity, indentWithTabs: true, indentUnit: 4, mode: "text/html", theme: "mybb" });
| lineNumbers: true, lineWrapping: true, foldGutter: true, gutters: ["CodeMirror-linenumbers", "CodeMirror-foldgutter"], viewportMargin: Infinity, indentWithTabs: true, indentUnit: 4, mode: "text/html", theme: "mybb" });
|
var editor2 = CodeMirror.fromTextArea(document.getElementById("replace"), { lineNumbers: true, lineWrapping: true,
| var editor2 = CodeMirror.fromTextArea(document.getElementById("replace"), { lineNumbers: true, lineWrapping: true,
|
Zeile 1253 | Zeile 1266 |
---|
}); </script>'; }
|
}); </script>'; }
|
|
|
$page->output_footer(); }
| $page->output_footer(); }
|
Zeile 1263 | Zeile 1276 |
---|
$compare_version = $mybb->version_code; $query = $db->query(" SELECT COUNT(*) AS updated_count
|
$compare_version = $mybb->version_code; $query = $db->query(" SELECT COUNT(*) AS updated_count
|
FROM ".TABLE_PREFIX."templates t
| 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 ");
| 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 ");
|
Zeile 1319 | Zeile 1332 |
---|
}
foreach($templates as $sid => $templates)
|
}
foreach($templates as $sid => $templates)
|
{
| {
|
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 1990 | Zeile 2003 |
---|
$actions = $popup->fetch(); }
|
$actions = $popup->fetch(); }
|
| $set['title'] = htmlspecialchars_uni($set['title']);
|
$table->construct_cell("<strong><a href=\"index.php?module=style-templates&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&sid={$set['sid']}\">{$set['title']}</a></strong><br /><small>{$used_by_note}</small>"); $table->construct_cell($actions, array("class" => "align_center"));
|