Ejemplo n.º 1
0
<?php

#update_pos("陆家嘴早餐",3,"index_bf");
update_pos("创业", 4, "index_bus", true);
update_pos("商业", 5, "index_business", true);
update_pos("科技", 5, "index_tech", true);
update_column('author', 5, 'index_author', 4, '_r');
update_pos("投资", 6, "index_invest", true);
update_pos("奢华", 2, "index_luxu", true);
update_click(6, 'index_pop');
update_column('journalist', 8, 'index_jour');
Ejemplo n.º 2
0
<?php

update_pos("投资", 15, "invest_acticle", true);
update_news_column("投资", 3, 'author', 'invest_column');
update_pos("创业", 15, "initiate_acticle", true);
update_news_column("创业", 3, 'author', 'initiate_column');
update_pos("商业", 15, "business_acticle", true);
update_news_column("商业", 3, 'author', 'business_column');
update_pos("科技", 15, "tech_acticle", true);
update_news_column("科技", 3, 'author', 'tech_column');
update_pos("城市", 15, "city_acticle", true);
update_news_column("城市", 3, 'author', 'city_column');
Ejemplo n.º 3
0
<?php

update_pos("创业", 4, 'index_bus', true, true);
update_pos("商业", 5, "index_business", true, true);
update_pos("科技", 5, "index_tech", true, true);
update_pos("投资", 6, "index_invest", true, true);
update_click(6, 'index_pop');
#update_column('column_editor',8,'index_jour');
#update_column2('column_editor',8,'index_author',4,'_r');
update_pos("财经词典", 1, 'dictionary_r_content1', true, true);
$db = get_db();
$sql = "select t1.* from fb_user t1 join (select * from fb_news where is_adopt=1 order by created_at desc) t2 on t1.id=t2.publisher where t1.role_name='column_writer' and t1.image_src is not null group by t1.id order by t2.created_at desc limit 9";
$column = $db->query($sql);
$count = $db->record_count;
for ($i = 0; $i < $count; $i++) {
    $pos_name = 'index_author' . $i;
    $record = $db->query("select id,end_time from fb_page_pos where name='{$pos_name}'");
    if ($db->record_count == 1) {
        $pos = new table_class('fb_page_pos');
        $pos->find($record[0]->id);
        $end_time = date('Y-m-d H:00:00', strtotime("+1hours", time()));
        $pos->end_time = $end_time;
        $pos->display = $column[$i]->nick_name;
        $pos->title = $column[$i]->nick_name;
        $pos->image1 = $column[$i]->image_src;
        $pos->href = "/column/{$column[$i]->name}";
        $pos->static_href = "/column/{$column[$i]->name}";
        $pos->alias = $column[$i]->name;
        $pos->save();
    } else {
        $pos = new table_class('fb_page_pos');
Ejemplo n.º 4
0
    $table->display = $news[0]->title;
    $table->description = $news[0]->description;
    $table->image1 = $items[$i]->image_src;
    $table->alias = $items[$i]->column_name ? $items[$i]->column_name : $items[$i]->nick_name;
    $table->reserve = "/column/{$items[$i]->name}";
    $table->href = dynamic_news_url($news[0]);
    $table->static_href = column_article_url($news[0]->name, $news[0], 'static');
    $table->save();
    $selected_news[] = $news[0]->id;
    for ($j = 1; $j < 3; $j++) {
        $pos = 'column_recommend_top_r_t2_' . $i . '_' . $j;
        $table->find('first', array("conditions" => "name = '{$pos}'"));
        #if(strtotime($table->end_time) && strtotime($table->end_time) >= time()){
        #	continue;
        #}
        $table->name = $pos;
        $table->display = $news[$j]->title;
        $table->href = dynamic_news_url($news[$j]);
        $table->static_href = column_article_url($news[$j]->name, $news[$j], 'static');
        $table->save();
        if ($news[$j]->id) {
            $selected_news[] = $news[$j]->id;
        }
    }
}
update_pos("城市", 3, "index_city", true, true);
#update_pos("早餐资讯",3,"index_zczx_",true,true);
#update_pos("基金经理看市",1,"index_jjjl",true,true);
#update_pos("股票之选",1,"index_gpzx",true,true);
update_pos("阳光财富观察", 2, "index_dyn_list", true, true);
Ejemplo n.º 5
0
<?php

update_pos('富豪报道', 6, 'richindex_news_');
#update_pos('创富者说',3,'richindex_news1_');
Ejemplo n.º 6
0
<?php

update_pos("服饰钟表", 1, "liftindex_news_1", false, false);
update_pos("豪车", 1, "liftindex_news_2", false, false);
update_pos("游艇飞机", 1, "liftindex_news_3", false, false);
update_pos("名利场", 1, "lifeindex_news_mlc", false, false);
update_pos("美酒美食", 1, "liftindex_news_4", false, false);
update_pos("体面", 1, "liftindex_news_5", false, false);
update_pos("文化娱乐", 1, "liftindex_news_6", false, false);
update_pos("旅游", 1, "lifeindex_ly", false, false);
update_pos("豪宅", 1, "lifeindex_hz", false, false);
update_pos("关注", 5, "lifeindex");
Ejemplo n.º 7
0
<?php

update_click(6, 'right_pop');
update_pos("创业", 7, "right_create", true);
update_pos("商业", 7, "right_business", true);
update_pos("科技", 7, "right_ology", true);
update_pos("投资", 7, "right_invest", true);
update_column('author', 5, 'right_popcolumn', 1, 'right_pcnews', false);