<?php session_start(); include_once '../../frame.php'; $role = judge_role(); $yh_id = intval($_POST['id']); $db = get_db(); $info = $db->query("select id from fb_yh_xx where yh_id={$yh_id}"); if ($db->record_count == 1) { $id = $info[0]->id; } else { $id = 0; } $info = new table_class('fb_yh_xx'); if ($id != 0) { $info->find($id); } $info->update_attributes($_POST['info'], false); if ($_FILES['tx']['name'] != null) { $upload = new upload_file_class(); $upload->save_dir = "/upload/user/"; $img = $upload->handle('tx', 'filter_pic'); if ($img === false) { alert('上传文件失败 !'); redirect($_SERVER['HTTP_REFERER']); } $info->tx = "/upload/user/{$img}"; } $info->yh_id = $yh_id; $info->save(); redirect('index.php');
<?php session_start(); include_once '../../frame.php'; judge_role(); $search = $_REQUEST['search']; $db = get_db(); $sql = "SELECT * FROM fb_investor_sign f where 1=1"; $sea = $_REQUEST['sea']; if ($sea != '') { if ($sea == '风险投资') { $sea = 1; } else { if ($sea == '出售投资') { $sea = 2; } else { if ($sea == '天使投资') { $sea = 3; } } } $sql .= " and name like '%{$sea}%' or item_type like '%{$sea}%' or company_name like '%{$sea}%' or item_name like '%{$sea}%' or email like '%{$sea}%'"; } $record = $db->paginate($sql, 30); $count = count($record); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv=Content-Type content="text/html; charset=utf-8">
<?php require_once '../frame.php'; judge_role('admin'); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv=Content-Type content="text/html; charset=utf-8"> <meta http-equiv=Content-Language content=zh-CN> <title>迅傲信息</title> <?php css_include_tag('admin'); use_jquery(); js_include_tag('jquery.cookie.js', 'pubfun'); ?> </head> <body style="background:url(/images/admin/bg.jpg) repeat-x;"> <div id=admin_body> <div id=part1> <div id=nav style="width:360px;">欢迎你: <?php echo $_SESSION["nick_name"]; ?> </div> <div id=title><?php echo $site_name; ?> 后台管理</div> <div id=index><a href="/index.php" target="_blank">动态主页</a></div> </div> <div id=part2>