$app_log = array('app_id' => $app_id, 'app_option_id' => $app_option_id, 'user' => $user, 'content' => $content, 'date' => $date); insert_db('app_log', $app_log); $id = $db->insert_id(); $content = serialize($app_log); $title = '参与投票'; get_logadd($id, $content, $title, 31, $_USER->id); show_msg('你己成功参与 "' . get_inc_app_types($app_id) . '"的投票!', 'admin.php?ac=' . $ac . '&fileurl=' . $fileurl . '&do=views&id=' . $app_id . ''); } else { $app_id = getGP('id', 'G', 'int'); global $db; $sql = "SELECT * FROM " . DB_TABLEPRE . "app_log WHERE app_id = '" . $app_id . "' and user='******' "; $app_log = $db->fetch_one_array($sql); if ($app_log["user"] == '') { $name = '在线投票 "' . get_inc_app_types($app_id) . '"'; } else { $name = '查看 "' . get_inc_app_types($app_id) . '"投票记录'; } $sql = "SELECT * FROM " . DB_TABLEPRE . "app_option where app_id='" . $app_id . "' ORDER BY id Asc"; $result = $db->fetch_all($sql); $sql = "SELECT * FROM " . DB_TABLEPRE . "app_log where app_id='" . $app_id . "' ORDER BY id Asc"; $relog = $db->fetch_all($sql); $appadmin = $db->fetch_one_array("SELECT id FROM " . DB_TABLEPRE . "app WHERE id = '" . $app_id . "' and (user like '%" . get_realname($_USER->id) . "%' or user='') "); include_once 'template/views.php'; } } elseif ($do == 'app_log') { $app_id = getGP('app_id', 'G', 'int'); $wheresql = ''; $page = max(1, getGP('page', 'G', 'int')); $pagesize = $_CONFIG->config_data('pagenum'); $offset = ($page - 1) * $pagesize; $url = 'admin.php?ac=' . $ac . '&fileurl=' . $fileurl . '&do=app_log';
<html> <head> <title>信息添加编辑</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <link rel="stylesheet" type="text/css" href="template/default/content/css/style.css"> <script language="javascript" type="text/javascript" src="DatePicker/WdatePicker.js"></script> <script src="template/default/tree/js/admincp.js?SES" type="text/javascript"></script> <script type="text/javascript"> </script> </head> <body class="bodycolor"> <table width="90%" border="0" align="center" cellpadding="3" cellspacing="0" class="small"> <tr> <td class="Big"><img src="template/default/content/images/notify_new.gif" align="absmiddle"><span class="big3"> 投票”<?php echo get_inc_app_types($app_id); ?> “明细列表</span> <span style="font-size:12px;"> <a href="admin.php?ac=<?php echo $ac; ?> &fileurl=<?php echo $fileurl; ?> " style="font-size:12px;">返回列表页</a><img src="template/default/content/images/f_ico.png" align="absmiddle"></span> </td> </tr> </table>