<tr <?php if($val["a"] == 1 ) echo 'style="color:red;"';?>>
<select name="channel_code" id="channel_code" class="input_class1"> <?php foreach($platformdata as $k=>$v){ ?> <option value="<?=$k?>" <?php if($k == $channel_code): ?>selected="selected"<?php endif; ?>><?=$v?></option> <?php }?> </select>
<td height="30" width="80" <?php if($val['hand_type'] ==8): ?>style="color:red;"<?php endif; ?>>
echo '<span οnclick="showDetail(\'' . $val['type'] . '\');">操作</span>';
//οnclick="layer_show('game_player_info.php?id=<?=$val["uid"];?>','玩家信息',75,80)" echo '<label οnclick="layer_show(\'game_player_info.php?id='.$val['uid'].'\',\''.$val['uid'].'玩家详情\',75,80)">'.$val['uid'].'('.$value.')</label>'. " ";
<?php $isA = ($rs["a"] == 1) ? '<span style="color: red">是</span>' : '否'; ?> <?=$isA ?>
//ajax 提交 function addAppealListBtn(){ layer.confirm('确定操作吗?', { btn: ['确定','取消'] //按钮 }, function(){ $.ajax({ url : '?', type : 'post', data : {'name':name, 'action':'1'}, success : function(result) { layer.msg('成功', {icon:1}); }, error : function() { console.log('操作错误!'); } }) }, function(){ layer.closeAll(); }); }
$.post("xx.php?action=click",{id:id},function(res){ console.log(res); $(this).css("color","red"); });
function edit() { var chk_value = ''; $('input[name="chkId[]"]:checked').each(function(){ // chk_value.push($(this).val()); chk_value += $(this).val()+','; }); if(chk_value ==''){ alert('请选择后提交'); return; } chk_value = chk_value.substring(0, chk_value.lastIndexOf(',')); $.ajax({ url : '?', type : 'get', data : {'id':chk_value,'type':3}, success : function(result) { alert('操作成功'); window.location.reload(); }, error : function() { console.log('操作错误!'); } }) }
// 全选 全不选 <button id="onchkall">全选</button> <button οnclick="edit();">封号</button> <input type="checkbox" form="from" value="<?=$rs["id"]?>" name="chkId[]" > <script language="javascript"> $("#onchkall").click(function(){ if($("input[name='chkId[]']").is(":checked")==false){ $("input[name='chkId[]']").prop("checked",true); $('#onchkall').html('全不选'); }else{ $("input[name='chkId[]']").prop("checked",false); $('#onchkall').html('全选'); } }); function edit() { var chk_value =[]; $('input[name="chkId[]"]:checked').each(function(){ chk_value.push($(this).val()); }); // alert(chk_value.length==0 ?'你还没有选择任何内容!':chk_value); $('input[name=postId]').val(''); $('input[name=postId]').val(chk_value); layer.open({ type: 1, title: "封号原因", area: ['450px', '350px'], shadeClose: true, //点击遮罩关闭 content: $("#edit-content") }); } </script>