Skip to content
Snippets Groups Projects
Commit b90b5681 authored by Jared Hancock's avatar Jared Hancock
Browse files

topics: Uncomment sorting mode option

parent 3e403fe3
No related branches found
No related tags found
No related merge requests found
...@@ -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;">&nbsp;</th> <th width="4%" style="height:20px;">&nbsp;</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>&nbsp; echo Topic::getTopicName($id); ?></a>&nbsp;
......
...@@ -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>
......
...@@ -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'], $delimeter); fputcsv($output, $data['columns'], $delimiter);
foreach ($data['data'] as $row) foreach ($data['data'] as $row)
fputcsv($output, $row, $delimeter); fputcsv($output, $row, $delimiter);
exit; exit;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment