Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
osticket
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
docker
osticket
Commits
b90b5681
Commit
b90b5681
authored
9 years ago
by
Jared Hancock
Browse files
Options
Downloads
Patches
Plain Diff
topics: Uncomment sorting mode option
parent
3e403fe3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
include/staff/helptopics.inc.php
+11
-8
11 additions, 8 deletions
include/staff/helptopics.inc.php
include/staff/profile.inc.php
+2
-1
2 additions, 1 deletion
include/staff/profile.inc.php
scp/dashboard.php
+2
-2
2 additions, 2 deletions
scp/dashboard.php
with
15 additions
and
11 deletions
include/staff/helptopics.inc.php
+
11
−
8
View file @
b90b5681
...
@@ -19,7 +19,8 @@ $order_by = 'sort';
...
@@ -19,7 +19,8 @@ $order_by = 'sort';
</div>
</div>
<div
class=
"pull-right flush-right"
>
<div
class=
"pull-right flush-right"
>
<?php
if
(
$cfg
->
getTopicSortMode
()
!=
'a'
)
{
?>
<?php
if
(
$cfg
->
getTopicSortMode
()
!=
'a'
)
{
?>
<input
class=
"button no-confirm"
type=
"submit"
name=
"sort"
value=
"Save"
/>
<button
class=
"button no-confirm"
type=
"submit"
name=
"sort"
><i
class=
"icon-save"
></i>
<?php
echo
__
(
'Save'
);
?>
</button>
<?php
}
?>
<?php
}
?>
<a
href=
"helptopics.php?a=add"
class=
"green button action-button"
><i
class=
"icon-plus-sign"
></i>
<?php
echo
__
(
'Add New Help Topic'
);
?>
</a>
<a
href=
"helptopics.php?a=add"
class=
"green button action-button"
><i
class=
"icon-plus-sign"
></i>
<?php
echo
__
(
'Add New Help Topic'
);
?>
</a>
<span
class=
"action-button"
data-dropdown=
"#action-dropdown-more"
>
<span
class=
"action-button"
data-dropdown=
"#action-dropdown-more"
>
...
@@ -57,18 +58,20 @@ $order_by = 'sort';
...
@@ -57,18 +58,20 @@ $order_by = 'sort';
<input
type=
"hidden"
id=
"action"
name=
"a"
value=
"sort"
>
<input
type=
"hidden"
id=
"action"
name=
"a"
value=
"sort"
>
<table
class=
"list"
border=
"0"
cellspacing=
"1"
cellpadding=
"0"
width=
"940"
>
<table
class=
"list"
border=
"0"
cellspacing=
"1"
cellpadding=
"0"
width=
"940"
>
<!-- <div class="pull-right">
<?php
//echo __('Sorting Mode'); ?>:
<thead>
<tr><td
colspan=
"7"
>
<div
style=
"padding:3px"
class=
"pull-right"
>
<?php
echo
__
(
'Sorting Mode'
);
?>
:
<select
name=
"help_topic_sort_mode"
onchange=
"javascript:
<select
name=
"help_topic_sort_mode"
onchange=
"javascript:
var $form = $(this).closest('form');
var $form = $(this).closest('form');
$form.find('input[name=a]').val('sort');
$form.find('input[name=a]').val('sort');
$form.submit();
$form.submit();
"
>
"
>
<?
php
//
foreach (OsticketConfig::allTopicSortModes() as $i=>$m)
<?php
foreach
(
OsticketConfig
::
allTopicSortModes
()
as
$i
=>
$m
)
//
echo sprintf('<option value="%s"%s>%s</option>',
echo
sprintf
(
'<option value="%s"%s>%s</option>'
,
//
$i, $i == $cfg->getTopicSortMode() ? ' selected="selected"' : '', $m); ?>
$i
,
$i
==
$cfg
->
getTopicSortMode
()
?
' selected="selected"'
:
''
,
$m
);
?>
</select>
</select>
</
div
>
-->
</div>
<
thead
>
</td></tr
>
<tr>
<tr>
<th
width=
"4%"
style=
"height:20px;"
>
</th>
<th
width=
"4%"
style=
"height:20px;"
>
</th>
<th
style=
"padding-left:4px;vertical-align:middle"
width=
"36%"
>
<?php
echo
__
(
'Help Topic'
);
?>
</th>
<th
style=
"padding-left:4px;vertical-align:middle"
width=
"36%"
>
<?php
echo
__
(
'Help Topic'
);
?>
</th>
...
@@ -124,7 +127,7 @@ $order_by = 'sort';
...
@@ -124,7 +127,7 @@ $order_by = 'sort';
<td>
<td>
<?php
<?php
if
(
$cfg
->
getTopicSortMode
()
==
'm'
)
{
?>
if
(
$cfg
->
getTopicSortMode
()
==
'm'
)
{
?>
<i class="icon-sort"></i>
<i
class=
"icon-sort
faded
"
></i>
<?php
}
?>
<?php
}
?>
<a
href=
"helptopics.php?id=
<?php
echo
$id
;
?>
"
>
<?php
<a
href=
"helptopics.php?id=
<?php
echo
$id
;
?>
"
>
<?php
echo
Topic
::
getTopicName
(
$id
);
?>
</a>
echo
Topic
::
getTopicName
(
$id
);
?>
</a>
...
...
This diff is collapsed.
Click to expand it.
include/staff/profile.inc.php
+
2
−
1
View file @
b90b5681
...
@@ -314,7 +314,8 @@ if ($avatar->isChangeable()) { ?>
...
@@ -314,7 +314,8 @@ if ($avatar->isChangeable()) { ?>
<p
style=
"text-align:center;"
>
<p
style=
"text-align:center;"
>
<button
class=
"button action-button"
type=
"submit"
name=
"submit"
><i
class=
"icon-save"
></i>
<?php
echo
__
(
'Save Changes'
);
?>
</button>
<button
class=
"button action-button"
type=
"submit"
name=
"submit"
><i
class=
"icon-save"
></i>
<?php
echo
__
(
'Save Changes'
);
?>
</button>
<button
class=
"button action-button"
type=
"reset"
name=
"reset"
>
<?php
echo
__
(
'Reset'
);
?>
</button>
<button
class=
"button action-button"
type=
"reset"
name=
"reset"
><i
class=
"icon-undo"
></i>
<?php
echo
__
(
'Reset'
);
?>
</button>
<button
class=
"red button action-button"
type=
"button"
name=
"cancel"
onclick=
"window.history.go(-1);"
><i
class=
"icon-remove-circle"
></i>
<?php
echo
__
(
'Cancel'
);
?>
</button>
<button
class=
"red button action-button"
type=
"button"
name=
"cancel"
onclick=
"window.history.go(-1);"
><i
class=
"icon-remove-circle"
></i>
<?php
echo
__
(
'Cancel'
);
?>
</button>
</p>
</p>
<div
class=
"clear"
></div>
<div
class=
"clear"
></div>
...
...
This diff is collapsed.
Click to expand it.
scp/dashboard.php
+
2
−
2
View file @
b90b5681
...
@@ -35,9 +35,9 @@ if ($_POST['export']) {
...
@@ -35,9 +35,9 @@ if ($_POST['export']) {
Http
::
download
(
"stats-
$group
-
$ts
.csv"
,
'text/csv'
);
Http
::
download
(
"stats-
$group
-
$ts
.csv"
,
'text/csv'
);
$output
=
fopen
(
'php://output'
,
'w'
);
$output
=
fopen
(
'php://output'
,
'w'
);
fputs
(
$output
,
chr
(
0xEF
)
.
chr
(
0xBB
)
.
chr
(
0xBF
));
fputs
(
$output
,
chr
(
0xEF
)
.
chr
(
0xBB
)
.
chr
(
0xBF
));
fputcsv
(
$output
,
$data
[
'columns'
],
$delim
e
ter
);
fputcsv
(
$output
,
$data
[
'columns'
],
$delim
i
ter
);
foreach
(
$data
[
'data'
]
as
$row
)
foreach
(
$data
[
'data'
]
as
$row
)
fputcsv
(
$output
,
$row
,
$delim
e
ter
);
fputcsv
(
$output
,
$row
,
$delim
i
ter
);
exit
;
exit
;
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment