#110 Update change priority style

merge-requests/2/head
Mike Koch 9 years ago
parent cc778262a6
commit 91366130bc

@ -123,9 +123,8 @@ else {return false;}
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="priority" class="col-sm-4 control-label"><?php echo $hesklang['def_pri']; ?> <a href="#" onclick="alert('<?php echo hesk_makeJsString($hesklang['cat_pri']); ?>')"><i class="fa fa-question-circle settingsquestionmark"></i> </a> </label> <label for="priority" class="col-sm-4 control-label" style="font-size: .87em"><?php echo $hesklang['def_pri']; ?> <a href="#" onclick="alert('<?php echo hesk_makeJsString($hesklang['cat_pri']); ?>')"><i class="fa fa-question-circle settingsquestionmark"></i> </a> </label>
<div class="col-sm-8"> <div class="col-sm-8">
<p><b></b> [<b><a href="javascript:void(0)" onclick="javascript:alert('<?php echo hesk_makeJsString($hesklang['cat_pri']); ?>')">?</a></b>]<br />
<select name="priority" class="form-control"> <select name="priority" class="form-control">
<?php <?php
// Default priority: low // Default priority: low
@ -194,37 +193,41 @@ else {return false;}
</div> </div>
<div class="tab-pane fade" id="changePriority"> <div class="tab-pane fade" id="changePriority">
<form action="manage_categories.php" method="post" role="form" class="form-horizontal"> <form action="manage_categories.php" method="post" role="form" class="form-horizontal">
<!-- TODO Restyle this -->
<h4><?php echo $hesklang['ch_cat_pri']; ?></h4> <h4><?php echo $hesklang['ch_cat_pri']; ?></h4>
<div class="footerWithBorder blankSpace"></div>
<table border="0" style="margin-top:10px;"> <div class="form-group">
<tr> <label for="catid" class="col-sm-4 control-label"><?php echo $hesklang['category']; ?></label>
<td><?php echo $hesklang['category']; ?>:</td> <div class="col-sm-8">
<td><select name="catid"><?php echo $options; ?></select></td> <select name="catid" class="form-control"><?php echo $options; ?></select>
</tr> </div>
<tr> </div>
<td><?php echo $hesklang['priority']; ?>:</td> <div class="form-group">
<td><select name="priority"> <label for="priority" class="col-sm-4 control-label"><?php echo $hesklang['priority']; ?></label>
<?php <div class="col-sm-8">
// Default priority: low <select name="priority" class="form-control">
if ( ! isset($_SESSION['cat_ch_priority']) ) <?php
{ // Default priority: low
$_SESSION['cat_ch_priority'] = 3; if ( ! isset($_SESSION['cat_ch_priority']) )
} {
$_SESSION['cat_ch_priority'] = 3;
// List possible priorities }
foreach ($priorities as $value => $info)
{ // List possible priorities
echo '<option value="'.$value.'"'.($_SESSION['cat_ch_priority'] == $value ? ' selected="selected"' : '').'>'.$info['text'].'</option>'; foreach ($priorities as $value => $info)
} {
?> echo '<option value="'.$value.'"'.($_SESSION['cat_ch_priority'] == $value ? ' selected="selected"' : '').'>'.$info['text'].'</option>';
</select></td> }
</tr> ?>
</table> </select>
</div>
<p><input type="hidden" name="a" value="priority" /> </div>
<input type="hidden" name="token" value="<?php hesk_token_echo(); ?>" /> <div class="form-group">
<input type="submit" value="<?php echo $hesklang['ch_cat_pri']; ?>" class="orangebutton" onmouseover="hesk_btn(this,'orangebuttonover');" onmouseout="hesk_btn(this,'orangebutton');" /></p> <div class="col-sm-8 col-sm-offset-4">
<input type="hidden" name="a" value="priority" />
<input type="hidden" name="token" value="<?php hesk_token_echo(); ?>" />
<input type="submit" value="<?php echo $hesklang['ch_cat_pri']; ?>" class="btn btn-default">
</div>
</div>
</form> </form>
</div> </div>
</div> </div>
@ -252,8 +255,8 @@ else {return false;}
<tr> <tr>
<th><?php echo $hesklang['id']; ?></th> <th><?php echo $hesklang['id']; ?></th>
<th><?php echo $hesklang['cat_name']; ?></th> <th><?php echo $hesklang['cat_name']; ?></th>
<th><?php echo $hesklang['not']; ?></th>
<th><?php echo $hesklang['priority']; ?></th> <th><?php echo $hesklang['priority']; ?></th>
<th><?php echo $hesklang['not']; ?></th>
<th><?php echo $hesklang['graph']; ?></th> <th><?php echo $hesklang['graph']; ?></th>
<th><?php echo $hesklang['opt']; ?></th> <th><?php echo $hesklang['opt']; ?></th>
</tr> </tr>

Loading…
Cancel
Save