} </script> <?php if (!isset($msg_show_opacty) || $msg_show_opacty == 1) { ?> <div id="gov_message" style="display:none"><?php } ?> <form method="post" action="" id="form_gov_message"> <table class="tb3"> <?php if (isset($msg_show_opacty) && $msg_show_opacty == 0 && helper::from_mobile()) { show_extern_html_wap($rs['list'][0]['extern_id'], array('nick_name', 'phone', 'content', 'qq', 'gender')); echo '<tr><td> <a onclick="save_message();" id="subtn" class="but" href="javascript:void(0);">给我留言</a></td></tr>'; } else { show_extern_html($rs['list'][0]['extern_id'], array('nick_name', 'phone', 'content', 'qq', 'gender')); echo '<tr><td></td><td><a onclick="save_message();" id="subtn" class="but" href="javascript:void(0);">给我留言</a></td></tr>'; } ?> </table> </form> <?php if (!isset($msg_show_opacty) || $msg_show_opacty == 1) { ?> </div><?php } ?> <style type="text/css"> a.but{text-decoration:none;background:#eee;border:1px solid #ddd;padding:5px;} a.but:hover{background:#aaa;color:#fff;border-color:#aaa;}
function m__extern_html() { global $c; $cate_id = isset($_POST['cate_id']) ? $_POST['cate_id'] : 0; if ($cate_id == 0 || !is_numeric($_POST['cate_id'])) { die; } $cate = $c->categories[$cate_id]; if ($cate['extern_id'] == 0) { die; } show_extern_html($cate['extern_id']); die; }
function m__extern_html() { global $c; $extern_id = isset($_POST['extern_id']) ? $_POST['extern_id'] : 0; if ($extern_id == 0 || !is_numeric($_POST['extern_id'])) { die('{"code":"1","msg":"扩展表ID错误"}'); } show_extern_html($extern_id); die; }