#110 Miscellaneous UI tweaks

merge-requests/2/head
Mike Koch 9 years ago
parent 5da1782806
commit 8fd8d2345b

@ -446,7 +446,7 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
<th><?php echo $hesklang['category']; ?></th> <th><?php echo $hesklang['category']; ?></th>
<th><?php echo $hesklang['tickets']; ?></th> <th><?php echo $hesklang['tickets']; ?></th>
<th><?php echo $hesklang['topen']; ?></th> <th><?php echo $hesklang['topen']; ?></th>
<th><?php echo $hesklang['closed']; ?></th> <th><?php echo $hesklang['closed_title']; ?></th>
<th><?php echo $hesklang['replies'] . ' (' . $hesklang['all'] .')'; ?></th> <th><?php echo $hesklang['replies'] . ' (' . $hesklang['all'] .')'; ?></th>
<th><?php echo $hesklang['replies'] . ' (' . $hesklang['staff'] .')'; ?></th> <th><?php echo $hesklang['replies'] . ' (' . $hesklang['staff'] .')'; ?></th>
<?php <?php
@ -635,7 +635,7 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
<th><?php echo $hesklang['user']; ?></th> <th><?php echo $hesklang['user']; ?></th>
<th><?php echo $hesklang['ticass']; ?></th> <th><?php echo $hesklang['ticass']; ?></th>
<th><?php echo $hesklang['topen']; ?></th> <th><?php echo $hesklang['topen']; ?></th>
<th><?php echo $hesklang['closed']; ?></th> <th><?php echo $hesklang['closed_title']; ?></th>
<th><?php echo $hesklang['ticall']; ?></th> <th><?php echo $hesklang['ticall']; ?></th>
<th><?php echo $hesklang['replies']; ?></th> <th><?php echo $hesklang['replies']; ?></th>
<?php <?php
@ -764,7 +764,7 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
<th><?php echo $hesklang['month']; ?></th> <th><?php echo $hesklang['month']; ?></th>
<th><?php echo $hesklang['atik']; ?></th> <th><?php echo $hesklang['atik']; ?></th>
<th><?php echo $hesklang['topen']; ?></th> <th><?php echo $hesklang['topen']; ?></th>
<th><?php echo $hesklang['closed']; ?></th> <th><?php echo $hesklang['closed_title']; ?></th>
<?php <?php
if ($hesk_settings['time_worked']) if ($hesk_settings['time_worked'])
{ {
@ -884,7 +884,7 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
<th><?php echo $hesklang['date']; ?></th> <th><?php echo $hesklang['date']; ?></th>
<th><?php echo $hesklang['atik']; ?></th> <th><?php echo $hesklang['atik']; ?></th>
<th><?php echo $hesklang['topen']; ?></th> <th><?php echo $hesklang['topen']; ?></th>
<th><?php echo $hesklang['closed']; ?></th> <th><?php echo $hesklang['closed_title']; ?></th>
<?php <?php
if ($hesk_settings['time_worked']) if ($hesk_settings['time_worked'])
{ {

@ -161,10 +161,10 @@ $more2 = empty($_GET['more2']) ? 0 : 1;
</table> </table>
<div id="topSubmit" style="display:<?php echo $more ? 'none' : 'block' ; ?>"> <div id="topSubmit" style="display:<?php echo $more ? 'none' : 'block' ; ?>">
&nbsp;<br /> <div class="btn-group">
<input class="btn btn-default" type="submit" value="<?php echo $hesklang['show_tickets']; ?>" /> <input class="btn btn-default" type="submit" value="<?php echo $hesklang['show_tickets']; ?>" />
<a class="btn btn-default" href="javascript:void(0)" onclick="Javascript:hesk_toggleLayerDisplay('divShow');Javascript:hesk_toggleLayerDisplay('topSubmit');document.showt.more.value='1';"><?php echo $hesklang['mopt']; ?></a> <a class="btn btn-default" href="javascript:void(0)" onclick="Javascript:hesk_toggleLayerDisplay('divShow');Javascript:hesk_toggleLayerDisplay('topSubmit');document.showt.more.value='1';"><?php echo $hesklang['mopt']; ?></a>
<br />&nbsp;<br /> </div>
</div> </div>
<div id="divShow" style="display:<?php echo $more ? 'block' : 'none' ; ?>"> <div id="divShow" style="display:<?php echo $more ? 'block' : 'none' ; ?>">
@ -339,9 +339,11 @@ $more2 = empty($_GET['more2']) ? 0 : 1;
</table> </table>
<p><input class="btn btn-default" type="submit" value="<?php echo $hesklang['show_tickets']; ?>" /> <div class="btn-group">
<input type="hidden" name="more" value="<?php echo $more ? 1 : 0 ; ?>" /><a class="btn btn-default" href="javascript:void(0)" onclick="Javascript:hesk_toggleLayerDisplay('divShow');Javascript:hesk_toggleLayerDisplay('topSubmit');document.showt.more.value='0';"><?php echo $hesklang['lopt']; ?></a></p> <input class="btn btn-default" type="submit" value="<?php echo $hesklang['show_tickets']; ?>" />
<a class="btn btn-default" href="javascript:void(0)" onclick="Javascript:hesk_toggleLayerDisplay('divShow');Javascript:hesk_toggleLayerDisplay('topSubmit');document.showt.more.value='0';"><?php echo $hesklang['lopt']; ?></a>
</div>
<input type="hidden" name="more" value="<?php echo $more ? 1 : 0 ; ?>" />
</div> </div>
</form> </form>
@ -369,26 +371,26 @@ $more2 = empty($_GET['more2']) ? 0 : 1;
<table class="table" style="width: auto" border="0" cellpadding="3" cellspacing="0"> <table class="table" style="width: auto" border="0" cellpadding="3" cellspacing="0">
<tr> <tr>
<td class="text-left" style="border-top: 0px"> <td class="text-left" style="border-top: 0px;padding-right:0">
<b style="color: #000"><?php echo $hesklang['s_for']; ?></b><br /> <b style="color: #000"><?php echo $hesklang['s_for']; ?></b><br />
<input class="form-control" type="text" name="q" size="30" <?php if (isset($q)) {echo 'value="'.$q.'"';} ?> /> <input class="form-control" style="border-bottom-right-radius: 0;border-top-right-radius: 0; border-right: 0" type="text" name="q" size="30" <?php if (isset($q)) {echo 'value="'.$q.'"';} ?> />
</td> </td>
<td class="text-left" style="border-top: 0px"> <td class="text-left" style="border-top: 0px;padding-left:0">
<b style="color: #000"><?php echo $hesklang['s_in']; ?></b><br /> <b style="color: #000"><?php echo $hesklang['s_in']; ?></b><br />
<select class="form-control" name="what"> <select class="form-control btn btn-default" name="what" style="border-bottom-left-radius: 0; border-top-left-radius: 0">
<option value="trackid" <?php if ($what=='trackid') {echo 'selected="selected"';} ?> ><?php echo $hesklang['trackID']; ?></option> <option style="background: #ffffff" value="trackid" <?php if ($what=='trackid') {echo 'selected="selected"';} ?> ><?php echo $hesklang['trackID']; ?></option>
<?php <?php
if ($hesk_settings['sequential']) if ($hesk_settings['sequential'])
{ {
?> ?>
<option value="seqid" <?php if ($what=='seqid') {echo 'selected="selected"';} ?> ><?php echo $hesklang['seqid']; ?></option> <option style="background: #ffffff" value="seqid" <?php if ($what=='seqid') {echo 'selected="selected"';} ?> ><?php echo $hesklang['seqid']; ?></option>
<?php <?php
} }
?> ?>
<option value="name" <?php if ($what=='name') {echo 'selected="selected"';} ?> ><?php echo $hesklang['name']; ?></option> <option style="background: #ffffff" value="name" <?php if ($what=='name') {echo 'selected="selected"';} ?> ><?php echo $hesklang['name']; ?></option>
<option value="email" <?php if ($what=='email') {echo 'selected="selected"';} ?> ><?php echo $hesklang['email']; ?></option> <option style="background: #ffffff" value="email" <?php if ($what=='email') {echo 'selected="selected"';} ?> ><?php echo $hesklang['email']; ?></option>
<option value="subject" <?php if ($what=='subject') {echo 'selected="selected"';} ?> ><?php echo $hesklang['subject']; ?></option> <option style="background: #ffffff" value="subject" <?php if ($what=='subject') {echo 'selected="selected"';} ?> ><?php echo $hesklang['subject']; ?></option>
<option value="message" <?php if ($what=='message') {echo 'selected="selected"';} ?> ><?php echo $hesklang['message']; ?></option> <option style="background: #ffffff" value="message" <?php if ($what=='message') {echo 'selected="selected"';} ?> ><?php echo $hesklang['message']; ?></option>
<?php <?php
foreach ($hesk_settings['custom_fields'] as $k=>$v) foreach ($hesk_settings['custom_fields'] as $k=>$v)
{ {
@ -401,21 +403,21 @@ $more2 = empty($_GET['more2']) ? 0 : 1;
} }
$v['name'] = (strlen($v['name']) > 30) ? substr($v['name'],0,30) . '...' : $v['name']; $v['name'] = (strlen($v['name']) > 30) ? substr($v['name'],0,30) . '...' : $v['name'];
echo '<option value="'.$k.'" '.$selected.'>'.$v['name'].'</option>'; echo '<option style="background: #ffffff" value="'.$k.'" '.$selected.'>'.$v['name'].'</option>';
} }
} }
?> ?>
<option value="notes" <?php if ($what=='notes') {echo 'selected="selected"';} ?> ><?php echo $hesklang['notes']; ?></option> <option style="background: #ffffff" value="notes" <?php if ($what=='notes') {echo 'selected="selected"';} ?> ><?php echo $hesklang['notes']; ?></option>
</select> </select>
</td> </td>
</tr> </tr>
</table> </table>
<div id="topSubmit2" style="display:<?php echo $more2 ? 'none' : 'block' ; ?>"> <div id="topSubmit2" style="display:<?php echo $more2 ? 'none' : 'block' ; ?>">
&nbsp;<br /> <div class="btn-group">
<input class="btn btn-default" type="submit" value="<?php echo $hesklang['find_ticket']; ?>" /> <input class="btn btn-default" type="submit" value="<?php echo $hesklang['find_ticket']; ?>" />
<a class="btn btn-default" href="javascript:void(0)" onclick="Javascript:hesk_toggleLayerDisplay('divShow2');Javascript:hesk_toggleLayerDisplay('topSubmit2');document.findby.more2.value='1';"><?php echo $hesklang['mopt']; ?></a> <a class="btn btn-default" href="javascript:void(0)" onclick="Javascript:hesk_toggleLayerDisplay('divShow2');Javascript:hesk_toggleLayerDisplay('topSubmit2');document.findby.more2.value='1';"><?php echo $hesklang['mopt']; ?></a>
<br />&nbsp;<br /> </div>
</div> </div>
<div id="divShow2" style="display:<?php echo $more2 ? 'block' : 'none' ; ?>"> <div id="divShow2" style="display:<?php echo $more2 ? 'block' : 'none' ; ?>">
@ -439,7 +441,7 @@ $more2 = empty($_GET['more2']) ? 0 : 1;
<tr> <tr>
<td class="alignMiddle"><b><?php echo $hesklang['owner']; ?></b>: &nbsp; </td> <td class="alignMiddle"><b><?php echo $hesklang['owner']; ?></b>: &nbsp; </td>
<td class="alignMiddle"> <td class="alignMiddle">
<select name="owner"> <select class="form-control" name="owner">
<option value="0" ><?php echo $hesklang['anyown']; ?></option> <option value="0" ><?php echo $hesklang['anyown']; ?></option>
<?php <?php
foreach ($admins as $id => $name) foreach ($admins as $id => $name)
@ -489,12 +491,12 @@ $more2 = empty($_GET['more2']) ? 0 : 1;
<td><div class="col-md-2 text-right" style="padding-left: 0px; padding-right: 0px;"><input class="form-control" type="text" name="limit" value="<?php echo $maxresults; ?>" size="4" /></div><div class="col-md-10" style="line-height: 40px"><?php echo $hesklang['results_page']; ?></div></td> <td><div class="col-md-2 text-right" style="padding-left: 0px; padding-right: 0px;"><input class="form-control" type="text" name="limit" value="<?php echo $maxresults; ?>" size="4" /></div><div class="col-md-10" style="line-height: 40px"><?php echo $hesklang['results_page']; ?></div></td>
</tr> </tr>
</table> </table>
<div class="btn-group">
<p><input class="btn btn-default" type="submit" value="<?php echo $hesklang['find_ticket']; ?>" /> <input class="btn btn-default" type="submit" value="<?php echo $hesklang['find_ticket']; ?>" />
<input type="hidden" name="more2" value="<?php echo $more2 ? 1 : 0 ; ?>" /><a class="btn btn-default" href="javascript:void(0)" onclick="Javascript:hesk_toggleLayerDisplay('divShow2');Javascript:hesk_toggleLayerDisplay('topSubmit2');document.findby.more2.value='0';"><?php echo $hesklang['lopt']; ?></a></p> <a class="btn btn-default" href="javascript:void(0)" onclick="Javascript:hesk_toggleLayerDisplay('divShow2');Javascript:hesk_toggleLayerDisplay('topSubmit2');document.findby.more2.value='0';"><?php echo $hesklang['lopt']; ?></a>
</div>
<input type="hidden" name="more2" value="<?php echo $more2 ? 1 : 0 ; ?>" />
</div> </div>
</form> </form>
</td> </td>
</tr> </tr>

@ -519,11 +519,11 @@ else
if (isset($is_search) || $href == 'find_tickets.php') if (isset($is_search) || $href == 'find_tickets.php')
{ {
hesk_show_notice($hesklang['no_tickets_crit'].'<span style="float: right"><a href="new_ticket.php">'.$hesklang['nti'].'</a></span>'); hesk_show_notice($hesklang['no_tickets_crit']);
} }
else else
{ {
hesk_show_notice($hesklang['no_tickets_open'].'<span style="float: right"><a href="new_ticket.php">'.$hesklang['nti'].'</a></span>'); hesk_show_notice($hesklang['no_tickets_open']);
} }
echo '</div></div>'; echo '</div></div>';

@ -929,6 +929,23 @@ function print_start()
<li><a href="<?php echo $hesk_settings['site_url']; ?>"><?php echo $hesk_settings['site_title']; ?></a></li> <li><a href="<?php echo $hesk_settings['site_url']; ?>"><?php echo $hesk_settings['site_title']; ?></a></li>
<li class="active"><?php echo $hesk_settings['hesk_title']; ?></li> <li class="active"><?php echo $hesk_settings['hesk_title']; ?></li>
</ol> </ol>
<?php
// Service messages
$res = hesk_dbQuery('SELECT `title`, `message`, `style` FROM `'.hesk_dbEscape($hesk_settings['db_pfix'])."service_messages` WHERE `type`='0' ORDER BY `order` ASC");
if (hesk_dbNumRows($res) > 0)
{
?>
<div class="row">
<div class="col-md-12">
<?php
while ($sm=hesk_dbFetchAssoc($res))
{
hesk_service_message($sm);
}
?>
</div>
</div>
<?php } ?>
<div class="row"> <div class="row">
<div class="col-md-4"> <div class="col-md-4">
<div class="panel panel-default"> <div class="panel panel-default">
@ -963,13 +980,6 @@ function print_start()
</div> </div>
<div class="col-md-8"> <div class="col-md-8">
<?php <?php
// Service messages
$res = hesk_dbQuery('SELECT `title`, `message`, `style` FROM `'.hesk_dbEscape($hesk_settings['db_pfix'])."service_messages` WHERE `type`='0' ORDER BY `order` ASC");
while ($sm=hesk_dbFetchAssoc($res))
{
hesk_service_message($sm);
}
// Print small search box // Print small search box
if ($hesk_settings['kb_enable']) if ($hesk_settings['kb_enable'])
{ {

@ -25,6 +25,7 @@ $hesklang['EMAIL_HR']='------ Reply above this line ------';
$hesklang['saved_ticket_tpl'] = 'Saved Templates'; $hesklang['saved_ticket_tpl'] = 'Saved Templates';
$hesklang['new_ticket_tpl']='Add or Edit a Ticket Template'; $hesklang['new_ticket_tpl']='Add or Edit a Ticket Template';
$hesklang['and_change_status_to'] = 'and change status to'; // Used in combination with $hesklang['submit_reply'] (Reads as "Submit reply and change status to") $hesklang['and_change_status_to'] = 'and change status to'; // Used in combination with $hesklang['submit_reply'] (Reads as "Submit reply and change status to")
$hesklang['closed_title'] = 'Closed';
// ADDED OR MODIFIED IN Mods For HESK 1.7.0 // ADDED OR MODIFIED IN Mods For HESK 1.7.0

Loading…
Cancel
Save