Example #1
0
function update_news_pos($pos)
{
    $db = get_db();
    $category = new category_class('news');
    if ($pos == 1) {
        $category_id = $category->find_by_name('富豪报道');
        $category_id = $category_id->id;
        $type = 'richindex_news_';
    } else {
        $category_id = $category->find_by_name('创富者说');
        $category_id = $category_id->id;
        $type = 'richindex_news1_';
    }
    $table = new table_class('fb_page_pos');
    $db->echo_sql = true;
    $items = $db->query("select id,title,created_at,description,author from fb_news where category_id={$category_id} order by created_at desc limit 6");
    $exist_items = $table->find('all', array('conditions' => "name like '{$type}%' and (end_time <= now() or end_time is null)", 'order' => "name"));
    $db->echo_sql = false;
    $len = empty($exist_items) ? 0 : count($exist_items);
    for ($i = 0; $i < $len; $i++) {
        $exist_items[$i]->display = $items[$i]->title;
        $exist_items[$i]->description = $items[$i]->description;
        $exist_items[$i]->href = dynamic_news_url($items[$i]);
        $exist_items[$i]->statci_href = static_news_url($items[$i]);
        $exist_items[$i]->title = $items[$i]->title;
        $exist_items[$i]->alias = $items[$i]->author;
        $exist_items[$i]->end_time = dt_increase(1, 'h', $exist_itmes->end_time);
        $exist_items[$i]->save();
    }
}
Example #2
0
 function __construct($u_id)
 {
     if ($u_id) {
         $member = new table_class('eachbb.member');
         $member->find($u_id);
         $this->id = $u_id;
         $this->name = $member->name;
         $this->password = $member->password;
         $this->email = $member->email;
         $this->birthday = $member->birthday;
         $this->address = $member->address;
         $this->nick_name = $member->ture_name;
         $db = get_db();
         $db->query("select * from member_status where uid={$u_id}");
         if ($db->record_count == 0) {
             $status = new table_class('member_status');
             $status->created_at = $member->created_at;
             $status->last_login = $member->last_login;
             $status->uid = $u_id;
             $status->save();
         }
         $this->score = $status->score;
         $this->visit_count = $status->visit_count;
         $this->level = $status->level;
         $this->last_login = $status->last_login;
     }
 }
Example #3
0
function send_mail($smtp_server, $smtp_user, $smtp_pwd, $from, $to, $title, $content)
{
    $body = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
				<HTML><HEAD>
				<META content="text/html; charset=utf-8" http-equiv=Content-Type>
				<META name=GENERATOR content="MSHTML 8.00.6001.18854"><LINK rel=stylesheet 
				href="BLOCKQUOTE{margin-Top: 0px; margin-Bottom: 0px; margin-Left: 2em}"></HEAD>
				<BODY style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt">';
    $body = $body . addslashes($content);
    $body = $body . '</BODY></HTML>';
    $email = new table_class('forbes_email.fb_email');
    $email->email_to = $to;
    $email->email_status = '0';
    $email->email_subject = "=?UTF-8?B?" . base64_encode($title) . "?=";
    $email->email_content = $body;
    $email->save();
}
Example #4
0
function update_list_pos($pos)
{
    global $db;
    $table = new table_class('fb_page_pos');
    $type = pos_type($pos);
    $items = $db->query("select name,comment,image_src,id from fb_custom_list_type where position = {$pos} order by created_at desc limit 4");
    $exist_items = $table->find('all', array('conditions' => "name like 'listindex_{$type}%' and (end_time <= now() or end_time is null)", 'order' => "name"));
    $len = empty($exist_items) ? 0 : count($exist_items);
    for ($i = 0; $i < $len; $i++) {
        $exist_items[$i]->display = $items[$i]->name;
        $exist_items[$i]->description = $items[$i]->comment;
        $exist_items[$i]->href = '/list/show_list.php?id=' . $items[$i]->id;
        $exist_items[$i]->image1 = $items[$i]->image_src;
        $exist_items[$i]->title = $items[$i]->name;
        $exist_items[$i]->end_time = dt_increase(1, 'h', $exist_itmes->end_time);
        $exist_items[$i]->save();
    }
}
Example #5
0
 function __construct($type = null, $name = null)
 {
     $table = new table_class(get_config('tb_category'));
     if (empty($name)) {
         if (empty($type)) {
             $items = $table->find('all');
         } else {
             $items = $table->find('all', array('conditions' => "category_type = '" . $type . "'", 'order' => 'sort_id ,priority'));
         }
     } else {
         $items = $table->find('all', array('conditions' => "name = '" . $name . "'", 'order' => 'sort_id,priority'));
     }
     if ($items) {
         foreach ($items as $item) {
             $this->items[$item->id] = $item;
             $this->group_items[$item->parent_id][] = $item->id;
             $this->group_items[$item->id] = array();
         }
     }
 }
Example #6
0
function static_news($id)
{
    if (!$id) {
        return false;
    }
    global $url_head;
    $news = new table_class('fb_news');
    $news->find($id);
    $url = "{$url_head}/news/news.php?id={$id}";
    $content = file_get_contents($url);
    $date = date('Ym', strtotime($news->created_at));
    $dir = "./review/{$date}";
    if (!is_dir($dir)) {
        mkdir($dir);
    }
    $file = $dir . "/{$id}.html";
    if (write_to_file($file, $content, 'w')) {
        echo "<a href='{$dir}/{$id}.html'>查看</a>";
        return true;
    } else {
        return false;
    }
}
<!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>forbes</title>
	<?php 
require_once '../../frame.php';
?>
</head>
<?php 
require_once '../../frame.php';
#var_dump($_POST);
$magazine = new table_class("fb_old_magazine");
$id = intval($_POST['id']);
if ($id != '') {
    $magazine->find($id);
}
$magazine->update_attributes($_POST['post']);
redirect('old_magazine_index.php');
Example #8
0
<?php

require "../../frame.php";
$id = $_POST['id'];
$fb_gs = new table_class('fb_company_industry');
$fb_gs->delete($id);
Example #9
0
<!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>forbes</title>
	<?php 
css_include_tag('jquery_ui', 'colorbox', 'admin');
use_jquery_ui();
js_include_tag('admin/edm/edit');
?>
</head>
<?php 
$db = get_db();
$id = $_REQUEST['id'];
$record = new table_class('fb_edm');
if (isset($_REQUEST['id'])) {
    $record->find($id);
}
?>
<body>
	<div id=icaption>
    <div id=title><?php 
if ($id) {
    echo '编辑EDM';
} else {
    echo '添加EDM';
}
?>
</div>
	  <a href="index.php" id=btn_back></a>
Example #10
0
<?php

$s_text = $_REQUEST['s_text'];
include '../../frame.php';
if ($s_text) {
    $conditons = array('conditions' => " name like '%{$s_text}%'");
}
$db = get_db();
$table = new table_class('fb_company');
$items = $table->find('all', $conditons);
$result = array();
if (!$items) {
    $items = array();
}
foreach ($items as $item) {
    unset($temp);
    foreach ($item->fields as $field) {
        $name = $field->name;
        $temp->{$name} = $field->value;
    }
    $result[] = $temp;
}
echo json_encode($result);
Example #11
0
<?php

session_start();
include_once dirname(__FILE__) . '/../frame.php';
require_login();
$db = get_db();
$uid = front_user_id();
$yh_xx = $db->query("select id from fb_yh_xx where yh_id={$uid}");
$user = new table_class('fb_yh_xx');
$user->find($yh_xx[0]->id);
if (isset($_COOKIE['name'])) {
    $uname = $_COOKIE['name'];
} else {
    $uname = $_COOKIE['login_name'];
}
if (!isset($_SESSION['new_user_info'])) {
    $_SESSION['new_user_info'] = rand_str();
}
?>
<!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 
use_jquery();
js_include_tag('public', 'jquery.colorbox-min.js', 'user/user2');
css_include_tag('complete_info', 'public', 'colorbox');
?>
</head>
Example #12
0
<?php 
require_once '../frame.php';
$db = get_db();
$id = intval($_GET['id']);
if (empty($id)) {
    redirect('/error.html');
    die;
}
$investor = new table_class('fb_investor');
$investor->find($id);
$item = $db->query("select t1.*,t2.name from fb_invest_items t1 join fb_invest_industry t2 on t1.invest_industry_id=t2.id where t1.investor_id={$id}");
$item_count = $db->record_count;
$job = $db->query("select * from fb_investor_job_history where investor_id=" . $id);
$job_count = $db->record_count;
$news = $db->query("select t1.title,t1.id,t1.created_at from fb_news t1 join fb_investor_news t2 on t1.id=t2.news_id where t2.investor_id={$id} order by t1.created_at desc");
$news_count = $db->record_count;
?>
<!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>
	<title><?php 
echo $investor->name;
?>
-福布斯中文网</title>
	<meta http-equiv=Content-Type content="text/html; charset=utf-8">
	<meta http-equiv=Content-Language content=zh-cn>
	<meta name="keywords" content="<?php 
echo $investor->name;
?>
 福布斯中文网 投资人" />
Example #13
0
<!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 
include "../../frame.php";
?>
	</head>
	<body>
		<?php 
$menu = new table_class($tb_menu);
if ($_REQUEST['id']) {
    $menu->find($_REQUEST['id']);
}
if ($menu->update_attributes($_POST['post'])) {
    redirect('menu_list.php');
} else {
    display_error('修改菜单失败');
    echo '<a href="menu_list.php">返回</a>';
}
?>
	</body>
</html>
Example #14
0
<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>IPO设置</title>
	<?php 
require_once '../../frame.php';
judge_role();
css_include_tag('admin');
use_jquery();
?>
</head>

<?php 
$db = get_db();
$record = new table_class('fb_ipo_info');
$record->find('first');
?>

<body>
	<div id=icaption>
    <div id=title>IPO设置</div>
</div>
	<form id="ipo_edit" action="ipo_config.post.php"  method="post"> 
<div id=itable>
		<table cellspacing="1"  align="center">
		<tr class=tr4 id="list_name">
			<td class=td1 width=15%>公司名称</td>
			<td width="85%">
				<input type="text" name="ipo[comany_name]" value="<?php 
echo $record->comany_name;
Example #15
0
<?php

session_start();
include_once '../../frame.php';
judge_role();
$id = intval($_REQUEST['id']);
$menu1 = new table_class($tb_menu);
if ($id) {
    $menu = $menu1->find($id);
    $is_root = $menu->is_root;
} else {
    $menu->parent_id = $_REQUEST['parent_id'] ? $_REQUEST['parent_id'] : 0;
    $menu->role_level = 1;
    if ($menu->parent_id == 0) {
        $menu->href = "#";
    }
}
if ($menu->parent_id) {
    $parent_menu = $menu1->find($menu->parent_id);
    if (empty($id)) {
        $menu->role_level = $parent_menu->role_level;
    }
}
$db = get_db();
$roles = $db->query('select * from eb_role');
?>
<!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>
Example #16
0
<?php

require_once '../frame.php';
rights($_SESSION["hoaurights"], '3');
$yywd = new table_class('hoau_yywd');
$id = $_POST['id'];
if ($id != '') {
    $yywd->find($id);
}
$yywd->update_attributes($_POST['post'], false);
$yywd->save();
redirect($_POST['url']);
Example #17
0
<?php

require "../../frame.php";
$id = $_POST['del_id'];
$list = new table_class('fb_city_list');
$list->delete($id);
$db = get_db();
$db->execute("delete from fb_city_list_attribute where list_id=" . $id);
$db->execute("delete from fb_city_list_content where list_id=" . $id);
close_db();
echo $id;
Example #18
0
	<meta http-equiv=Content-Language content=zh-CN>
	<title>富豪编辑</title>
	<?php 
require_once '../../frame.php';
css_include_tag('admin', 'autocomplete');
use_jquery();
validate_form("city_edit");
js_include_tag('admin/city/add', 'autocomplete.jquery');
?>
</head>

<?php 
$id = $_REQUEST['id'];
$list_id = $_REQUEST['list_id'];
if ($id != '') {
    $city = new table_class('fb_city');
    $city->find($id);
}
?>

<body style="background:#E1F0F7">
	<form id="city_edit" action="detail_edit.post.php" method="post"> 
	<table width="795" border="0">
		<tr class=tr1>
			<td colspan="2" width="795">  <?php 
if ($id != '') {
    echo '编辑榜单';
} else {
    echo '添加榜单';
}
?>
Example #19
0
<?php

require_once '../frame.php';
rights($_SESSION["hoaurights"], '3');
//var_dump($_POST);
$id = $_POST['id'];
$price = new table_class('hoau_drd_price');
if ($id != '') {
    $price->find($id);
}
$pid = province_update('hoau_drd_price', '0', $_POST['drd']['startprovince']);
province_update('hoau_drd_price', '1', $_POST['drd']['startcity'], $pid);
$pid = province_update('hoau_drd_price', '0', $_POST['drd']['endprovince']);
province_update('hoau_drd_price', '1', $_POST['drd']['endcity'], $pid);
$price->update_attributes($_POST['drd']);
redirect($_POST['url']);
Example #20
0
array_push($c, "category_id is not null");
if ($title != '') {
    array_push($c, "title like '%" . trim($title) . "%' or keywords like '%" . trim($title) . "%' or description like '%" . trim($title) . "%' or author like '%{$title}%'");
}
if ($category_id > 0) {
    $cate_ids = implode(',', $category->children_map($category_id));
    array_push($c, "category_id in({$cate_ids})");
}
array_push($c, "is_adopt=0");
if ($up != '') {
    array_push($c, "set_up={$up}");
}
if (role_name() == 'column_editor' || role_name() == 'column_writer') {
    $c[] = "publisher={$_SESSION['admin_user_id']}";
}
$news = new table_class($tb_news);
$record = $news->paginate('all', array('conditions' => implode(' and ', $c), 'order' => 'created_at desc,category_id'), 30);
?>

<!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('admin_pub', 'category_class', 'admin/pub/search', 'admin/news/news_list');
$category->echo_jsdata();
?>
Example #21
0
<!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>
</head>
<?php 
require "../../frame.php";
$id = $_POST['id'];
$city = new table_class('fb_city');
if ($id != '') {
    $city->find($id);
}
if ($_FILES['city_photo']['name'] != null) {
    $upload = new upload_file_class();
    $upload->save_dir = "/upload/city/";
    $img = $upload->handle('city_photo', 'filter_pic');
    if ($img === false) {
        alert('上传文件失败 !');
        redirect($_SERVER['HTTP_REFERER']);
    }
    $city->photo = "/upload/city/{$img}";
}
if (!$city->update_attributes($_POST['city'])) {
    alert('城市已存在或执行错误!');
    redirect($_SERVER['HTTP_REFERER']);
}
redirect('index.php');
?>
</html>
Example #22
0
        alert('上传文件失败 !');
        ?>
				<script>
					parent.remove_tb2();
				</script>
				<?php 
        die;
    }
    $vote->photo_url = "/upload/images/" . $img;
}
//如果投票上传图片,做处理
$vote->update_attributes($_POST['vote'], false);
$vote->save();
$count = count($_POST['vote_item']['title']);
$old_count = count($_POST['old_item']['title']);
$item = new table_class("fb_vote_item");
if ($_POST['vote']['vote_type'] == 'image_vote') {
    $upload = new upload_file_class();
    $upload->save_dir = '/upload/images/';
    $img = $upload->handle('vote_item', 'filter_pic');
    $old_img = $upload->handle('old_item', 'filter_pic');
}
for ($i = 0; $i < $count; $i++) {
    $item->id = 0;
    $item->vote_id = $vote->id;
    if ($_POST['vote']['vote_type'] == 'image_vote') {
        if ($img[$i]['result']) {
            $item->photo_url = "/upload/images/" . $img[$i]['name'];
        } else {
            $item->photo_url = "";
        }
Example #23
0
session_start();
include_once '../../frame.php';
judge_role();
?>
<!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>
</head>
<?php 
$type = $_GET['type'];
switch ($type) {
    case 'news':
        $id = intval($_GET['id']);
        $news = new table_class('fb_news');
        if (empty($id)) {
            return false;
        }
        $news->find($id);
        if ($news->id <= 0) {
            return false;
        }
        if (static_news($news, 'page')) {
            echo '静态化新闻成功';
        } else {
            echo '静态化新闻失败';
        }
        break;
    case 'index':
        if (static_index()) {
Example #24
0
<!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('admin_pub', 'admin/list/list');
?>
</head>

<body>
	<?php 
$list = new table_class('fb_custom_list_type');
if ($_REQUEST['s_text']) {
    $conditions[] = "name like '%{$_REQUEST['s_text']}%'";
}
$conditions[] = "list_type=5";
if ($conditions) {
    $conditions = array('conditions' => implode(' and ', $conditions));
}
$order = ' priority asc, created_at desc';
$conditions['order'] = $order;
$record = $list->paginate("all", $conditions);
$count = count($record);
?>
<div id=icaption>
    <div id=title>文章榜单</div>
	  <a href="file_list_edit.php" id=btn_add></a>
Example #25
0
if (strlen($name) > 20) {
    alert('用户名和注册邮箱不匹配');
    redirect('index.php');
    die;
}
$mail = $_POST['email'];
if (strlen($mail) > 30) {
    alert('用户名和注册邮箱不匹配');
    redirect('index.php');
    die;
}
$db = get_db();
$user = $db->query("select id from fb_yh where name='{$name}' and email='{$mail}'");
if ($db->record_count == 1) {
    $verify = rand_str();
    $gp = new table_class('fb_get_pwd');
    $gp->user_id = $user[0]->id;
    $gp->verify = $verify;
    $gp->end_time = dt_increase(4, 'h');
    $gp->save();
    $content = "欢迎进行福布斯中文网密码重置过程,请点击下面的链接:<br/><a href='http://61.129.115.239/getpwd/get_pwd.php?verify={$verify}'>http://61.129.115.239/getpwd/get_pwd.php?verify={$verify}</a><br>如果点击以上链接不起作用,请将此网址复制并粘贴到新的浏览器窗口中。如果您意外地收到此邮件,很可能是其他用户在尝试重设密码时,误输入了您的电子邮件地址。如果您没有提出此请求,则无需做进一步的操作,可以放心地忽略此电子邮件。";
    send_mail('smtp.163.com', 'sauger', 'auden6666', '*****@*****.**', $mail, '福布斯中文网', $content);
    alert("请尽快登录到" . $mail . "完成剩余操作!");
    redirect('/');
} else {
    alert('用户名和注册邮箱不匹配');
    redirect('index.php');
    die;
}
?>
</body>
Example #26
0
<?php

include_once '../frame.php';
include_once '../inc/user.class.php';
$news_id = intval($_POST['news_id']);
$news = new table_class('eb_category');
$news->find($news_id);
if (!$news->id) {
    die('invalid param');
}
$len = count($_POST['mail']);
set_charset();
$news_share = new table_class('eb_news_share');
$user = User::current_user();
echo $user->password;
if (!$user) {
    die('need login');
}
for ($i = 0; $i < $len; $i++) {
    if (empty($_POST['mail'][$i])) {
        continue;
    }
    if (!check_email($_POST['mail'][$i])) {
        die($_POST['mail'][$i] . " 格式不正确");
    }
    $news_share->id = 0;
    $news_share->user = $user->name;
    $news_share->nick_name = htmlspecialchars($_POST['name'][$i]);
    $news_share->email = htmlspecialchars($_POST['mail'][$i]);
    $news_share->created_at = now();
    $news_share->news_id = $news_id;
Example #27
0
<?php

session_start();
include_once '../../frame.php';
judge_role();
$parent_id = $_REQUEST['parent_id'] == '' ? 0 : $_REQUEST['parent_id'];
$id = $_REQUEST['id'];
$level = empty($_REQUEST['level']) ? 1 : $_REQUEST['level'];
if ($id != '') {
    $cate = new table_class($tb_category);
    $cate->find($id);
    $parent_id = $cate->parent_id;
    $level = $cate->level;
}
$type = $_REQUEST['type'];
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<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');
validate_form("category_form");
?>
</head>
<body>
	<div id=icaption>
    <div id=title><?php 
Example #28
0
<!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><meta name="Keywords" content="天地华宇,天地华宇物流,天地华宇物流查询,华宇,华宇物流,华宇物流查询,天地华宇俱乐部,华宇俱乐部"/><meta name="Description" content="天地华宇-中国公路快运领导者"/>
</head>
<?php 
require_once '../frame.php';
$id = $_POST['id'];
echo $id;
$employ = new table_class('hoau_employ');
$employ->find($id);
$employ->is_read = 1;
$employ->save();
?>
</html>
Example #29
0
	<?php 
include_once '../frame.php';
$user = User::current_user();
if (!$user) {
    alert("请您先登录!");
    redirect('/login/');
    exit;
}
$id = $user->id;
$member = new table_class('eachbb_member.member');
$member->find($id);
$db = get_db();
$avatars = $db->query("SELECT id,photo,status FROM eachbb_member.member_avatar where u_id=" . $user->id . ' order by create_at desc limit 3');
$avatar_count = $db->record_count;
$name = $user->name;
js_include_tag('baby_info');
?>
    <div id="c_c" style="float:right">
			<div id="cc_t" style="float:left"></div>
			<div id="cc_c" style="float:left">
				<div id="cc_pg">
					<div class=r_title id="r_log"><span><?php 
echo $member->true_name;
?>
</span>的账户管理</div>
					<div id="r_log_hr">
						<div>个人资料</div>
					</div>
					<div class="c_menu_pg_p" >
					</div>
					<form>
Example #30
0
<?php

session_start();
include_once '../../frame.php';
judge_role();
$activity = new table_class("zzh_activity");
$id = intval($_POST['id']);
if ($id != '') {
    $activity->find($id);
} else {
    $activity->created_at = now();
}
$activity->update_attributes($_POST['post'], false);
$activity->update_file_attributes('post');
if ($_POST['is_old'] == 'on') {
    $activity->is_old = 1;
} else {
    $activity->is_old = 0;
}
$activity->save();
redirect('activity.php');