<?php if(!defined('EMLOG_ROOT')) {exit('error!');} ?>
<script>setTimeout(hideActived,2600);</script>
<div class=containertitle><b>å类管ç</b>
<?php if(isset($_GET['active_taxis'])):?><span class="actived">æåºæ´æ°æå</span><?php endif;?>
<?php if(isset($_GET['active_del'])):?><span class="actived">å é¤åç±»æå</span><?php endif;?>
<?php if(isset($_GET['active_edit'])):?><span class="actived">ä¿®æ¹åç±»æå</span><?php endif;?>
<?php if(isset($_GET['active_add'])):?><span class="actived">æ·»å åç±»æå</span><?php endif;?>
<?php if(isset($_GET['error_a'])):?><span class="error">åç±»åç§°ä¸è½ä¸ºç©º</span><?php endif;?>
<?php if(isset($_GET['error_b'])):?><span class="error">没æå¯æåºçåç±»</span><?php endif;?>
</div>
<div class=line></div>
<form method="post" action="sort.php?action=taxis">
<table width="100%" id="adm_sort_list" class="item_list">
<thead>
<tr>
<th width="55"><b>åºå·</b></th>
<th width="500"><b>åç±»åç§°</b></th>
<th width="50" class="tdcenter"><b>æ¥å¿</b></th>
<th width="300"></th>
</tr>
</thead>
<tbody>
<?php foreach($sorts as $key=>$value): ?>
<tr>
<td>
<input type="hidden" value="<?php echo $value['sid'];?>" class="sort_id" />
<input maxlength="4" class="num_input" name="sort[<?php echo $value['sid']; ?>]" value="<?php echo $value['taxis']; ?>" /></td>
<td class="sortname"><?php echo $value['sortname']; ?></td>
<td class="tdcenter"><a href="./admin_log.php?sid=<?php echo $value['sid']; ?>"><?php echo $value['lognum']; ?></a></td>
<td><a href="javascript: em_confirm(<?php echo $value['sid']; ?>, 'sort');">å é¤</a></td>
</tr>
<?php endforeach;?>
</tbody>
</table>
<div class="list_footer"><input type="submit" value="æ¹åæåº" class="submit" /></div>
</form>
<form action="sort.php?action=add" method="post">
<div style="margin:50px 0px 0px 3px">
<input maxlength="200" size="15" name="sortname" /> <input type="submit" value="æ·»å æ°åç±»" class="submit"/>
</div>
</form>
<script type='text/javascript'>
$(document).ready(function(){
$("#adm_sort_list tbody tr:odd").addClass("tralt_b");
$("#adm_sort_list tbody tr")
.mouseover(function(){$(this).addClass("trover")})
.mouseout(function(){$(this).removeClass("trover")});
$(".sortname").click(function aaa(){
if($(this).find(".sort_input").attr("type") == "text"){return false;}
var name = $.trim($(this).html());
var m = $.trim($(this).text());
$(this).html("<input type=text value="+name+" class=sort_input>");
$(this).find(".sort_input").focus();
$(this).find(".sort_input").bind("blur", function(){
var n = $.trim($(this).val());
if(n != m && n != ""){
window.location = "sort.php?action=update&sid="+$(this).parent().parent().find(".sort_id").val()+"&name="+encodeURIComponent(n);
}else{
$(this).parent().html(name);
}
});
});
$("#menu_sort").addClass('sidebarsubmenu1');
});
</script>