Esempio n. 1
0
function chkLogin2()
{
    global $db;
    $m_id = getCookie('adminid');
    ckSql($m_id);
    $m_name = getCookie('adminname');
    ckSql($m_name);
    $m_check = getCookie('admincheck');
    ckSql($m_check);
    $index = 'index.php';
    if (strpos($_SERVER['PHP_SELF'], 'editor') > -1) {
        $index = "../" . $index;
    }
    if (!isN($m_name) && !isNum($m_id)) {
        $row = $db->getRow('SELECT * FROM {pre}manager WHERE m_name=\'' . mysql_real_escape_string($m_name) . '\' AND m_id= \'' . $m_id . '\' AND m_status=1');
        if ($row) {
            $loginValidate = md5($row['m_random'] . $row['m_name'] . $row['m_id']);
            if ($m_check != $loginValidate) {
                sCookie('admincheck', '');
                redirect($index . '?m=admin-login', 'top.');
            }
        } else {
            sCookie('admincheck', '');
            redirect($index . '?m=admin-login', 'top.');
        }
    } else {
        redirect($index . '?m=admin-login', 'top.');
    }
}
function editall()
{
    global $db;
    $t_id = be("arr", "t_id");
    $ids = explode(",", $t_id);
    foreach ($ids as $id) {
        $t_name = be("post", "t_name" . $id);
        $t_enname = be("post", "t_enname" . $id);
        $t_sort = be("post", "t_sort" . $id);
        //		$t_template = be("post","t_template" .$id);
        //		$t_vodtemplate = be("post","t_vodtemplate" .$id);
        //		$t_playtemplate = be("post","t_playtemplate" .$id);
        //		$t_key = be("post","t_key" .$id);
        //		$t_des = be("post","t_des" .$id);
        if (isN($t_name)) {
            echo "名称不能为空";
            exit;
        }
        if (isN($t_enname)) {
            echo "别名不能为空";
            exit;
        }
        if (!isNum($t_sort)) {
            echo "排序号不能为空或不是数字";
            exit;
        }
        //		if (isN($t_template)) { $t_template = "vodlist.html";}
        //		if (isN($t_vodtemplate)) { $t_vodtemplate = "vod.html";}
        //		if (isN($t_playtemplate)) { $t_playtemplate = "vodplay.html";}
        $db->Update("{pre}vod_type", array("t_name", "t_enname", "t_sort"), array($t_name, $t_enname, $t_sort), "t_id=" . $id);
    }
    updateCacheFile();
    echo "修改完毕";
}
 function cell($i = null, $j = null)
 {
     if (isNum($i)) {
         return _(_($this->_('tr'))->eq($i));
     } else {
         return _(_($this->O)->_('tr'));
     }
     if (isNum($j) && isNum($i)) {
         return _($this->cell($i)->eq($j));
     }
 }
function comboBox_range($from, $to, $assign = '', $opt = 0)
{
    if (isNum($from) && isNum($to) && $from <= $to) {
        if (!isStr($assign)) {
            $assign = '';
        }
        $list = createForm()->select->create(array());
        for ($i = $from; $i <= $to; $i++) {
            $list->add_option($i, $opt <= 0 ? $assign . $i : $i . $assign);
        }
        return $list;
    }
}
Esempio n. 5
0
function sendMessage($user_id, $other_user_id, $msg_text)
{
    if (userExistsById($user_id) === true && userExistsById($other_user_id) === true) {
        $msg_text = trim($msg_text);
        if ($msg_text === "") {
            return false;
        }
        $msg_id = insertMsg($msg_text);
        if (isNum($msg_id)) {
            insertUserMessage($msg_id, $user_id, $other_user_id, "Sent");
            insertUserMessage($msg_id, $other_user_id, $user_id, "Inbox");
            return true;
        }
        return false;
    } else {
        return false;
    }
}
function editall()
{
    global $db;
    $t_id = be("arr", "t_id");
    $ids = explode(",", $t_id);
    foreach ($ids as $id) {
        $status = be("post", "status" . $id);
        $disp_order = be("post", "disp_order" . $id);
        if (isN($disp_order)) {
            $t_sort = $db->getOne("SELECT MAX(disp_order) FROM apk_master_items ") + 1;
        }
        if (!isNum($disp_order)) {
            echo "信息填写不完整!";
            exit;
        }
        $db->Update("apk_master_items", array("status", "disp_order"), array($status, $disp_order), "id=" . $id);
    }
    updateCacheFile();
    echo "修改完毕";
}
 function c_cell($d = null)
 {
     $o = array();
     $a = optimize_args(func_get_args());
     if (count($a) && ($c = isset($a[0]) ? $a[0] : false)) {
         if (isNum($c)) {
             unset($a[0]);
             for ($i = 0; $i < $c; $i++) {
                 $o[] = $this->c_cell($a);
             }
         } else {
             foreach ($a as $v) {
                 if (isDrw($v)) {
                     $o[] = $this->c_cell($v);
                 }
             }
         }
         return count($o) == 1 ? $o[0] : $o;
     } else {
         return cEle($this->child_type)->do_method(array('class' => 'frame_cell'), $a)->O;
     }
 }
function updateLetvVideoUrl($pagenum, $endPage)
{
    global $db;
    $sql = "SELECT count(*)  FROM {pre}vod WHERE webUrls IS not NULL and webUrls != ''  and d_hide =0 and d_type in (1,2,3,131)  and d_status = 0 and d_playfrom like '%letv%'  ";
    $nums = $db->getOne($sql);
    $app_pagenum = 10;
    $pagecount = ceil($nums / $app_pagenum);
    if (!isNum($endPage)) {
        $endPage = $pagecount;
    } else {
        $endPage = intval($endPage);
    }
    //	 $pagecount=2;
    for ($i = $pagenum; $i <= $pagecount && $i <= $endPage; $i++) {
        writetofile("updateLetvVideoUrl.log", 'check item for vod type{=}' . $nums . '{=}Total{=}' . $pagecount . '{=}' . $i);
        $sql = "SELECT webUrls,d_downurl, d_playfrom,d_id FROM {pre}vod WHERE webUrls IS not NULL and webUrls != '' and d_hide =0 and d_type in (1,2,3,131)   and d_playfrom like '%letv%' and d_status = 0 order by d_play_num desc limit " . $app_pagenum * ($i - 1) . "," . $app_pagenum;
        //	    var_dump($sql);
        $rs = $db->query($sql);
        parseVodPad($rs);
        unset($rs);
        //sleep(60);
    }
}
function make()
{
    global $template;
    $file = be("get", "file");
    $fname = be("get", "fname");
    $file = be("get", "file");
    $template->html = file_get_contents($file);
    $template->mark();
    $template->vodpagelist();
    $num = $template->page_count;
    if (isNum($template->par_maxpage)) {
        if ($num >= $template->par_maxpage) {
            $num = $template->par_maxpage;
            $template->page_count = intval($num);
        }
    }
    $template->pageshow();
    $template->ifEx();
    $template->run("other");
    $fname = replaceStr($fname, "label_", "");
    $fname = replaceStr($fname, "\$\$", "/");
    fwrite(fopen("../" . $fname, "wb"), $template->html);
    echo " 生成完毕 <a target='_blank' href='" . "../" . $fname . "'>&nbsp;&nbsp;<font color=red>浏览</font></a><br>";
}
function main()
{
    global $db, $cache;
    $tv_id = be("all", "tv_id");
    $day = be("all", "day");
    if (!isNum($tv_id)) {
        $tv_id = 0;
    } else {
        $tv_id = intval($tv_id);
    }
    if (isN($day)) {
        $day = date('Y-m-d', time());
    }
    $where = " 1=1 ";
    $where .= " AND tv_id =" . $tv_id;
    $where .= " AND day ='" . $day . "'";
    $pagenum = be("all", "page");
    if (!isNum($pagenum)) {
        $pagenum = 1;
    } else {
        $pagenum = intval($pagenum);
    }
    if ($pagenum < 1) {
        $pagenum = 1;
    }
    $sql = "SELECT count(*) FROM {pre}tv_program_item as a " . " where " . $where;
    $nums = $db->getOne($sql);
    $pagecount = ceil($nums / app_pagenum);
    $sql1 = "SELECT * FROM {pre}tv_program_item  where  " . $where . " and play_time<='12:00'  order by play_time asc ";
    $sql2 = "SELECT * FROM {pre}tv_program_item  where  " . $where . " and play_time>'12:00'  order by play_time asc ";
    //	var_dump($sql);
    $rs1 = $db->query($sql1);
    $rs2 = $db->query($sql2);
    ?>
<script language="javascript">
function filter(){
	var tv_id=$("#tv_id").val();
	var day  =$("#date").val();
	if(day ==''){
		var url = "admin_program_items_day.php?tv_id="+tv_id+"&day="+day;
	}else {
		var url = "admin_program_items.php?tv_id="+tv_id+"&day="+day;
	}
	
	
	window.location.href=url;
}

function collecProgram(){
	var tv_id=$("#tv_id").val();
	var day  =$("#date").val();
	var url = "admin_program_items.php?action=collecProgram&tv_id="+tv_id+"&day="+day;
	$.get(url,"", function(obj) {
		alert(obj);
	});
	
}

$(document).ready(function(){
	
	$('#form1').form({
		onSubmit:function(){
			if(!$("#form1").valid()) {return false;}
		},
	    success:function(data){
	        $.messager.alert('系统提示', data, 'info',function(){
	        	location.href=location.href;
	        });
	    }
	});
	
	$("#btnDel").click(function(){
			if(confirm('确定要删除吗')){
				$("#form1").attr("action","admin_ajax.php?action=del&flag=batch&tab={pre}vod_topic_items");
				$("#form1").submit();
			}
			else{return false}
	});
	$("#btnEdit").click(function(){
		$("#form1").attr("action","?action=editall");
		$("#form1").submit();
	});
	$("#btnAdd").click(function(){
		$('#form2').form('clear');
		$("#flag").val("add");
		$('#win1').window('open');
		
	});
	$("#btnAdd_down").click(function(){
		$('#form2').form('clear');
		$("#flag").val("add");
		$('#win1').window('open');
		
	});

	$('#form2').form({
		onSubmit:function(){
			if(!$("#form2").valid()) {return false;}
		},
	    success:function(data){
	        $.messager.alert('系统提示', data, 'info');
	    }
	});
	
	
//	$("#btnAdd").click(function(){
//		window.location.href="admin_vod.php?topic_id=<?php 
    echo $topic_id;
    ?>
";
//	});
	$("#btnCancel").click(function(){
		location.href= location.href;
	});
});
function edit(id)
{
	$('#form2').form('clear');
	$("#flag").val("edit");
	$('#win1').window('open');
	$('#form2').form('load','admin_ajax.php?action=getinfo&tab={pre}vod_topic&col=t_id&val='+id);
}
</script>
<script type="text/javascript" src="/js/calendar.js"></script>
<table class="admin_program_items tb">
	<tr>
	<td>
	<table border="0" cellpadding="3" cellspacing="1">
	<tr>
	<td colspan="2">
	过滤条件:频道 <select id="tv_id" name="tv_id" >
	
	<?php 
    echo makeSelectWhere("{pre}tv", "id", "tv_name", "tv_type", "", "&nbsp;|&nbsp;&nbsp;", $tv_id, " where status=1");
    ?>
	</select>
	
	<input id="date" name="date" type="text" onclick="new Calendar().show(this);" value="<?php 
    echo $day;
    ?>
" readonly="readonly"/>
	<input class="input" type="button" value="搜索" id="btnsearch" onClick="filter();">	 |  <input class="input" type="button" value="采集节目单" id="btnsearch1" onClick="collecProgram();">	 | <a class="input" href="admin_program.php">返回电视直播</a>
	</td> 
	</tr>
	
	</table>
	</td>
	</tr>
</table>

<table class="tb">
<form action="" method="post" id="form1" name="form1">
	<tr>
	<td align="left">AM 00:00-12:00节目单</td>
	<td align=""left"" width="50%">AM 12:00-24:00节目单   <input type="button" value="添加" id="btnAdd" class="input" /> </td>
	</tr>
	<?php 
    if ($nums == 0) {
        ?>
    <tr class="formlast"><td align="center" colspan="2">没有任何记录!</td></tr>
    <?php 
    } else {
        ?>
    <tr>
	  <td align="left" valign="top">
	  <?php 
        while ($row1 = $db->fetch_array($rs1)) {
            $t_id1 = $row1["id"];
            ?>
	      <input name="t_id[]" type="checkbox" id="t_id" value="<?php 
            echo $t_id1;
            ?>
" /> 
	       <input type="text" name="play_time<?php 
            echo $t_id1;
            ?>
" value="<?php 
            echo $row1["play_time"];
            ?>
" size="5"/>
	       <input type="text" name="video_name<?php 
            echo $t_id1;
            ?>
" value="<?php 
            echo $row1["video_name"];
            ?>
" size="40"/> 
	       <select id="program_type<?php 
            echo $t_id1;
            ?>
" name="program_type<?php 
            echo $t_id1;
            ?>
" >
	<option value=''>节目类别</option>
	<?php 
            echo makeSelectTV_live("prod_type", $row1["program_type"]);
            ?>
	</select><br/>
	    <?php 
        }
        ?>
	  </td>
	<td align="left">
	    <?php 
        while ($row2 = $db->fetch_array($rs2)) {
            $t_id2 = $row2["id"];
            ?>
	      <input name="t_id[]" type="checkbox" id="t_id" value="<?php 
            echo $t_id2;
            ?>
" />
	       <input type="text" name="play_time<?php 
            echo $t_id2;
            ?>
" value="<?php 
            echo $row2["play_time"];
            ?>
" size="5"/>
	       <input type="text" name="video_name<?php 
            echo $t_id2;
            ?>
" value="<?php 
            echo $row2["video_name"];
            ?>
" size="40"/> 
     <select id="program_type<?php 
            echo $t_id2;
            ?>
" name="program_type<?php 
            echo $t_id2;
            ?>
" >
	<option value=''>节目类别</option>
	<?php 
            echo makeSelectTV_live("prod_type", $row2["program_type"]);
            ?>
	</select><br/>
	    <?php 
        }
        ?>
	  </td>
	 
   
    </tr>
	<?php 
    }
    ?>
	<tr class="formlast">
	<td  colspan="7"><input type="checkbox" name="chkall" id="chkall" class="checkbox" onClick="checkAll(this.checked,'t_id[]')" /> 全选 
<!--	<input type="button" value="批量删除" id="btnDel" class="input"  />-->
	&nbsp;<input type="button" value="批量修改" id="btnEdit" class="input" />
	&nbsp;<input type="button" value="添加" id="btnAdd_down" class="input" />
	</td></tr>
</table>
</form>


<div id="win1" class="easyui-window" title="窗口" style="padding:5px;width:450px;" closed="true" closable="false" minimizable="false" maximizable="false">
<form action="admin_ajax.php?action=save&tab={pre}tv_program_item&tv_id=<?php 
    echo $tv_id;
    ?>
&day=<?php 
    echo $day;
    ?>
" method="post" name="form2" id="form2">
<table class="tb">
	<input id="id" name="id" type="hidden" value="">
	<input id="flag" name="flag" type="hidden" value="">
	<tr>
	<td width="30%">播放时间:</td>
	<td><input id="play_time" size=5 value="" name="play_time">(格式xx:xx, 比如23:20)
	</td>
	</tr>
	<tr>
	<td width="30%">播放节目:</td>
	<td><input id="video_name" size=40 value="" name="video_name">
	</td>
	</tr>
	<tr>
	<td width="30%">节目类别:</td>
	<td> <select id="program_type" name="program_type" >
	<option value=''></option>
	<?php 
    echo makeSelectTV_live("prod_type", '');
    ?>
	</select>
	</td>
	</tr>
	 
    <tr align="center" >
      <td colspan="2"><input class="input" type="submit" value="保存" id="btnSave"> <input class="input" type="button" value="返回" id="btnCancel"></td>
    </tr>
</table>
</form>
</div>
</body>
</html>
<?php 
    unset($rs1);
    unset($rs2);
}
function main()
{
    global $db, $template, $cache;
    $loginname = getCookie("adminname");
    $keyword = be("all", "keyword");
    $stype = be("all", "stype");
    $area = be("all", "area");
    $topic = be("all", "topic");
    $level = be("all", "level");
    $from = be("all", "from");
    $sserver = be("all", "sserver");
    $sstate = be("all", "sstate");
    $repeat = be("all", "repeat");
    $repeatlen = be("all", "repeatlen");
    $order = be("all", "order");
    $pagenum = be("all", "page");
    $sort = be("all", "sort");
    $spic = be("all", "spic");
    $hide = be("all", "hide");
    $d_status = be("all", "d_status");
    $douban_score = be("all", "douban_score");
    $ipadpic = be("all", "ipadpic");
    $d_douban_id = be("all", "d_douban_id");
    $can_search_device = be("all", "can_search_device");
    if (!isNum($level)) {
        $level = 0;
    } else {
        $level = intval($level);
    }
    if (!isNum($sstate)) {
        $sstate = 0;
    } else {
        $sstate = intval($sstate);
    }
    if (!isNum($stype)) {
        $stype = 0;
    } else {
        $stype = intval($stype);
    }
    if (!isNum($area)) {
        $area = 0;
    } else {
        $area = intval($area);
    }
    if (!isNum($topic)) {
        $topic = 0;
    } else {
        $topic = intval($topic);
    }
    if (!isNum($spic)) {
        $spic = 0;
    } else {
        $spic = intval($spic);
    }
    if (!isNum($ipadpic)) {
        $ipadpic = 0;
    } else {
        $ipadpic = intval($ipadpic);
    }
    if (!isNum($hide)) {
        $hide = -1;
    } else {
        $hide = intval($hide);
    }
    if (!isNum($douban_score)) {
        $douban_score = 0;
    } else {
        $douban_score = intval($douban_score);
    }
    if (!isNum($repeatlen)) {
        $repeatlen = 0;
    }
    if (!isNum($d_status)) {
        $d_status = -1;
    } else {
        $d_status = intval($d_status);
    }
    if (isNum($d_douban_id)) {
        $d_douban_id = intval($d_douban_id);
    }
    if (!isNum($pagenum)) {
        $pagenum = 1;
    } else {
        $pagenum = intval($pagenum);
    }
    if ($pagenum < 1) {
        $pagenum = 1;
    }
    $where = " d_type in (1,2,3,131) ";
    $keyword_col = be("all", "keyword_col");
    if (!isN($keyword)) {
        $keyword = trim($keyword);
        if (isN($keyword_col)) {
            $where .= " AND ( d_directed like '%" . $keyword . "%' or d_starring like '%" . $keyword . "%' or d_name like '%" . $keyword . "%' or d_enname like '%" . $keyword . "%'   ) ";
        } else {
            $where .= " AND " . $keyword_col . " like '%" . $keyword . "%' ";
        }
    }
    if ($stype > 0) {
        $typearr = getValueByArray($cache[0], "t_id", $stype);
        if (is_array($typearr)) {
            $where = $where . " and d_type in (" . $typearr["childids"] . ")";
        } else {
            $where .= " AND d_type=" . $stype . " ";
        }
    }
    if ($stype == -1) {
        $where .= " AND d_type=0 ";
    }
    if ($area > 0) {
        $where .= " AND d_area = " . $area . " ";
    }
    if ($topic > 0) {
        $where .= " AND d_topic = " . $topic . " ";
    }
    if ($level > 0) {
        $where .= " AND d_level = " . $level . " ";
    }
    if ($sstate == 1) {
        $where .= " AND d_state>0 ";
    } else {
        if ($sstate == 2) {
            $where .= " AND d_state=0 ";
        }
    }
    if ($hide != -1) {
        $where .= " AND d_hide=" . $hide . " ";
    }
    if ($d_douban_id == -1) {
        $where .= " AND d_douban_id=" . $d_douban_id . " ";
    } else {
        if ($d_douban_id == 1) {
            $where .= " AND d_douban_id >0 ";
        } else {
            if ($d_douban_id == 2) {
                $where .= " AND d_douban_id =0 ";
            }
        }
    }
    if ($d_status != -1) {
        $where .= " AND d_status=" . $d_status . " ";
    }
    if ($douban_score == 1) {
        $where .= " AND d_score >0 ";
    }
    if ($douban_score == 2) {
        $where .= " AND d_score <=0 ";
    }
    if ($stype == 1 || $stype == 2) {
        $douban_scoreT = "block";
    } else {
        $douban_scoreT = "none";
    }
    if (!isN($can_search_device)) {
        //    	if($can_search_device ==='TV'){
        //    		$where .= " AND can_search_device like '%TV%' ";
        //    	}else {
        //    		$where .= " AND (can_search_device like '".$can_search_device."' or can_search_device is null or can_search_device ='' ) ";
        //    	}
        $where .= " AND (can_search_device like '" . $can_search_device . "' or can_search_device is null or can_search_device ='' ) ";
    }
    if ($repeat == "ok") {
        $repeatSearch = " d_name ";
        if ($repeatlen > 0) {
            $repeatSearch = " substring(d_name,1," . $repeatlen . ") ";
        }
        $repeatsql = " , (SELECT " . $repeatSearch . " as d_name1 FROM {pre}vod GROUP BY d_name1 HAVING COUNT(*)>1) as `t2` ";
        $where .= " AND `{pre}vod`.`d_name`=`t2`.`d_name1` ";
        if (isN($order)) {
            $order = "d_name,d_addtime";
        }
    }
    $douban_comment = be("all", "douban_comment");
    if (!isNum($douban_comment)) {
        $douban_comment = 0;
    } else {
        $douban_comment = intval($douban_comment);
    }
    if ($douban_comment == 1) {
        $where .= " and d_id in (SELECT DISTINCT content_id FROM tbl_comments WHERE author_id IS NULL AND thread_id IS NULL) ";
    }
    if ($douban_comment == 2) {
        $where .= " and d_id not in (SELECT DISTINCT content_id FROM tbl_comments WHERE author_id IS NULL AND thread_id IS NULL) ";
    }
    if (isN($order)) {
        $orders = "d_time desc ";
    } else {
        if (!isN($sort)) {
            $orders = $order . ' ' . $sort;
        }
    }
    if (!isN($sserver)) {
        $where .= " AND d_playserver like '%" . $sserver . "%' ";
    }
    if (!isN($from)) {
        $where .= " and d_playfrom like  '%" . $from . "%' ";
    }
    if ($spic == 1) {
        $where .= " AND d_pic = '' ";
    } else {
        if ($spic == 2) {
            $where .= " and  d_pic not like '%joyplus%' and d_pic!=''  ";
        }
    }
    if ($ipadpic == 1) {
        $where .= " AND (d_pic_ipad = ''  or d_pic_ipad is null )";
    } else {
        if ($ipadpic == 2) {
            $where .= " AND d_pic_ipad not like '%joyplus%' and d_pic_ipad != '' ";
        }
    }
    $select_weburl = be("all", "select_weburl");
    $select_videourl = be("all", "select_videourl");
    $select_videourl_play = be("all", "select_videourl_play");
    if (!isNum($select_videourl_play)) {
        $select_videourl_play = -1;
    } else {
        $select_videourl_play = intval($select_videourl_play);
    }
    if ($select_videourl_play == 0) {
        $where .= " AND d_play_check = 0 ";
    }
    if ($select_videourl_play == 2) {
        $where .= " AND d_play_check = 2 ";
    }
    if ($select_videourl_play == 1) {
        $where .= " AND d_play_check = 1 ";
    }
    if ($select_weburl == 1) {
        $where .= " AND webUrls is not null and webUrls !='' ";
    }
    if ($select_weburl == 2) {
        $where .= " AND (webUrls is null or  webUrls ='') ";
    }
    if ($select_videourl == 1) {
        $where .= " AND d_downurl is not null and d_downurl !='' ";
    }
    if ($select_videourl == 2) {
        $where .= " AND (d_downurl is null or d_downurl ='') ";
    }
    $sql = "SELECT count(*) FROM {pre}vod " . $repeatsql . " where " . $where;
    $nums = $db->getOne($sql);
    $pagecount = ceil($nums / app_pagenum);
    //$sql = "SELECT d_year,d_id, d_name, d_enname, d_play_num,d_type,d_state,d_topic, d_level, d_hits, d_time,d_remarks,d_playfrom,d_hide,p.id as popular_id FROM {pre}vod ".$repeatsql." left join {pre}vod_popular as p on p.vod_id=d_id  WHERE" . $where . " ORDER BY " . $orders . "  limit ".(app_pagenum * ($pagenum-1)) .",".app_pagenum;
    $sql = "SELECT d_year,d_id, d_name, d_enname, d_play_num,d_type,d_state,d_topic, d_level, d_hits, d_time,d_remarks,d_playfrom,d_hide FROM {pre}vod " . $repeatsql . "  WHERE" . $where . " ORDER BY " . $orders . "  limit " . app_pagenum * ($pagenum - 1) . "," . app_pagenum;
    // var_dump($sql);
    $rs = $db->query($sql);
    ?>


<script type="text/javascript" src="./resource/thickbox-compressed.js"></script>
<script type="text/javascript" src="./resource/thickbox.js"></script>
<link href="./resource/thickbox.css" rel="stylesheet" type="text/css" />
<script language="javascript">
$(document).ready(function(){
	$("#form1").validate({
		rules:{
			repeatlen:{
				number:true,
				max:10
			}
		}
	});
	
	$("#btnrepeat").click(function(){
		var repeatlen = $("#repeatlen").val();
		var reg = /^\d+$/;
		var re = repeatlen.match(reg);
		if (!re){ repeatlen=0; }
		if (repeatlen >20){ alert("长度最大20");$("#repeatlen").focus();return;}
		var url = "admin_vod.php?repeat=ok&repeatlen=" + repeatlen;
		window.location.href=url;
	});
	$("#btnDel").click(function(){
			if(confirm('确定要删除吗')){
				$("#form1").attr("action","admin_vod.php?action=del");
				$("#form1").submit();
			}
			else{return false}
	});
	$("#plsc").click(function(){
		var ids="",rc=false;
		$("input[name='d_id']").each(function() {
			if(this.checked){
				if(rc)ids+=",";
				ids =  ids + this.value;
				rc=true;
			}
        });
		$("#form1").attr("action","admin_makehtml.php?acton=viewpl&flag=vod&d_id="+ids);
		$("#form1").submit();
	});
});
function filter(){
	var stype=$("#stype").val();
	var order=$("#order").val();
	var from=$("#from").val();
	var sort=$("#sort").val();
	var keyword=$("#keyword").val();
	var keyword_col=$("#keyword_col").val();
	var can_search_device=$("#can_search_device").val();
	var url = "admin_online_subscribe.php?can_search_device="+can_search_device+"&keyword_col="+keyword_col+"&sort="+sort+"&keyword="+encodeURI(keyword)+"&stype="+stype+"&order="+order+"&from="+from; //ipadpic
	window.location.href=url;
}


function prepareWeiboText(type,id,name){
	   document.getElementById( "weiboText").value= name; 
	   document.getElementById( "notify_msg_prod_id").value= id; 
	   document.getElementById( "notify_msg_prod_type").value= type; 
	   $('#SendWeiboMsg').empty();
}


function sendWeiboText(){

	
	var weibotxt= document.getElementById( "weiboText").value;
	var notify_msg_prod_id= document.getElementById( "notify_msg_prod_id").value;
	var notify_msg_prod_type= document.getElementById( "notify_msg_prod_type").value;
	var urlT='admin_vod.php?action=notifyMsg&prod_type='+notify_msg_prod_type+'&prod_id='+notify_msg_prod_id+'&content=' +encodeURIComponent(weibotxt) ;
	var channels= document.getElementById( "channel[]");
	alert(channels);
	for(var i = 0; i < channels.length; i++){
		 if (channels[i].checked == true) {
			  urlT = urlT +'&channels='+channels[i].value;				 		 
		  }
	}
		 $.post(urlT, {Action:"post"}, function (data, textStatus){     
			  if(textStatus == "success"){   
	          //alert(data);
				  $('#SendWeiboMsg').empty().append(data);
	           }else{
	        	   $('#SendWeiboMsg').empty().append('发送失败。');
	           }
	       });
	
    // alert(urlT);
	 
}

</script>
<table class="admin_online_subscribe tb">
	<tr>
	<td>
	<table width="96%" border="0" align="center" cellpadding="3" cellspacing="1">
	<tr>
	<td colspan="2">
	过滤条件:<select id="stype" name="stype" onchange="javascript:{var typeid= this.options[this.selectedIndex].value; if(typeid=='1' ||  typeid=='2'){document.getElementById('btnsearchs').style.display='block';  document.getElementById('btnsearchsThumbs').style.display='block';document.getElementById('btnsearchsComment').style.display='block';}else {document.getElementById('btnsearchs').style.display='none'; document.getElementById('btnsearchsThumbs').style.display='none';document.getElementById('btnsearchsComment').style.display='none';}}">
	<option value="0">视频栏目</option>
	<option value="-1" <?php 
    if ($stype == -1) {
        echo "selected";
    }
    ?>
>没有栏目</option>
	<?php 
    echo makeSelectAll("{pre}vod_type", "t_id", "t_name", "t_pid", "t_sort", 0, "", "&nbsp;|&nbsp;&nbsp;", $stype);
    ?>
	</select>
	&nbsp;
	
	<select id="order" name="order">
	<option value="d_time">视频排序</option>
	<option value="d_id" <?php 
    if ($order == "d_id") {
        echo "selected";
    }
    ?>
>视频编号</option>
	<option value="d_name" <?php 
    if ($order == "d_name") {
        echo "selected";
    }
    ?>
>视频名称</option>
	<option value="d_play_num" <?php 
    if ($order == "d_play_num") {
        echo "selected";
    }
    ?>
>播放次数</option>
	<option value="d_year" <?php 
    if ($order == "d_year") {
        echo "selected";
    }
    ?>
>上映日期</option>
	</select>
	&nbsp;<select id="sort" name="sort">
	<option value="desc" <?php 
    if ($sort == "desc") {
        echo "selected";
    }
    ?>
>视频排序 降序序</option>
	<option value="asc" <?php 
    if ($sort == "asc") {
        echo "selected";
    }
    ?>
>视频排序  升序</option>
	</select>
	
	
	&nbsp;
	<select id="from" name="from">
	<option value="">视频播放器</option>
	<?php 
    echo makeSelectPlayer($from);
    ?>
	</select>
	
	 <select   id="can_search_device" name="can_search_device">
	    <option value="" >投放设备</option>
		<option value="TV" <?php 
    if ($can_search_device === 'TV') {
        echo "selected";
    }
    ?>
>TV版</option>
		<option value="iPad" <?php 
    if ($can_search_device === 'iPad') {
        echo "selected";
    }
    ?>
>iPad版</option>
		<option value="iphone" <?php 
    if ($can_search_device === 'iphone') {
        echo "selected";
    }
    ?>
>iphone版</option>
		<option value="apad" <?php 
    if ($can_search_device === 'apad') {
        echo "selected";
    }
    ?>
>Android-Pad版</option>
		<option value="aphone" <?php 
    if ($can_search_device === 'aphone') {
        echo "selected";
    }
    ?>
>Android-Phone版</option>
		<option value="web" <?php 
    if ($can_search_device === 'web') {
        echo "selected";
    }
    ?>
>网站版</option>
	</select> 
	
	</td>
	</tr>
	<tr>
	<td colspan="4">
	关键字:<input id="keyword" size="40" name="keyword" value="<?php 
    echo $keyword;
    ?>
">&nbsp;
	<select id="keyword_col" name="keyword_col">
	<option value="">关键字的匹配列</option>
	<option value="d_name" <?php 
    if ($keyword_col == "d_name") {
        echo "selected";
    }
    ?>
>视频名称</option>
	<option value="d_starring" <?php 
    if ($keyword_col == "d_starring") {
        echo "selected";
    }
    ?>
>演员</option>
	<option value="d_directed" <?php 
    if ($keyword_col == "d_directed") {
        echo "selected";
    }
    ?>
>导演</option>
	</select>
	<input class="input" type="button" value="搜索" id="btnsearch" onClick="filter();">
	
	</td>
	
	</tr>
	</table>
	</td>
	</tr>
</table>

<form id="form1" name="form1" method="post">
<table class="tb">
	<tr>
	<td width="10%">编号</td>
	<td width="25%">名称</td>
	<td width="10%">播放次数</td>
	<td width="10%">上映日期</td>
	<td width="5%">分类</td>
	<td width="20%">时间</td>
	<td width="20%">操作</td>
	</tr>
	<?php 
    if ($nums == 0) {
        ?>
	<tr><td align="center" colspan="12">没有任何记录!</td></tr>
	<?php 
    } else {
        while ($row = $db->fetch_array($rs)) {
            $d_id = $row["d_id"];
            $tname = "未知";
            $tenname = "";
            $typearr = getValueByArray($cache[0], "t_id", $row["d_type"]);
            if (is_array($typearr)) {
                $tname = $typearr["t_name"];
                $tenname = $typearr["t_enname"];
            }
            ?>
    <tr>
	<td><?php 
            echo $d_id;
            ?>
</td>
	<td><?php 
            echo substring($row["d_name"], 20);
            ?>
	<?php 
            if ($row["d_state"] > 0) {
                echo "<font color=\"red\">[" . $row["d_state"] . "]</font>";
            }
            ?>
	<?php 
            if (!isN($row["d_remarks"])) {
                echo "<font color=\"red\">[" . $row["d_remarks"] . "]</font>";
            }
            ?>
	<?php 
            if ($row["d_hide"] == 1) {
                echo "<font color=\"red\">[隐藏]</font>";
            }
            ?>
	</td>
	<td><?php 
            echo $row["d_play_num"];
            ?>
</td>
	<td><?php 
            echo $row["d_year"];
            ?>
</td>
	<td><?php 
            echo $tname;
            ?>
</td>
	<td><?php 
            echo isToday($row["d_time"]);
            ?>
</td>
	<td><a href="admin_vod_topic.php?action=info&id=<?php 
            echo $d_id;
            ?>
">所在榜单</a> |
	<a class="thickbox" href="#TB_inline?height=400&width=600&inlineId=myOnPageContent" onclick="javascript:{prepareWeiboText('<?php 
            echo $row["d_type"];
            ?>
','<?php 
            echo $d_id;
            ?>
','<?php 
            echo substring($row["d_name"], 20);
            ?>
');}" > 消息推送</a>	 </td>
    </tr>
	<?php 
        }
    }
    ?>
<!--	<tr>-->
<!--	<td colspan="12">-->
<!--	全选<input name="chkall" type="checkbox" id="chkall" value="1" onClick="checkAll(this.checked,'d_id[]');"/>&nbsp;-->
<!--    批量操作:<input type="button" id="btnDel" value="删除" class="input">-->
<!--	<input type="button" id="pltj" value="推荐" onClick="plset('pltj','vod')" class="input">-->
<!--	<input type="button" id="plfl" value="分类" onClick="plset('plfl','vod')" class="input">-->
<!--	<input type="button" id="plzt" value="专题" onClick="plset('plzt','vod')" class="input">-->
<!--	<input type="button" id="plluobo" value="轮播图" onClick="plsetLuobo()" class="input">-->
<!--	<input type="button" id="plbd" value="视频悦单" onClick="plsetBD('plbd','vod','1')" class="input">-->
<!--	<input type="button" id="plbd" value="视频悦榜" onClick="plsetBD('plbd','vod','2')" class="input">-->
<!--	<input type="button" id="plrq" value="人气" onClick="plset('plrq','vod')" class="input">-->
<!--	<input type="button" id="plsc" value="生成" class="input">-->
<!--	<input type="button" id="plyc" value="显隐" onClick="plset('plyc','vod')" class="input">-->
<!--	<span id="plmsg" name="plmsg"></span>-->
<!--	</td>-->
<!--	</tr>-->
	<tr class="formlast">
	<td align="center" colspan="12">
	<?php 
    echo pagelist_manage($pagecount, $pagenum, $nums, app_pagenum, "admin_online_subscribe.php?page={p}&can_search_device=" . $can_search_device . "&keyword=" . urlencode($keyword) . "&keyword_col=" . $keyword_col . "&sort=" . $sort . "&order=" . $order . "&stype=" . $stype . "&from=" . $from);
    ?>
	</td>
	</tr>
</table>

</form>
<div id="myOnPageContent" style="display:none">
<script language="javascript">

$('#form2').form({
	success:function(data){
		$('#SendWeiboMsg').empty().append(data);
		$("#btnEdit").attr("disabled",false); 		
    }
});

$("#btnEdit").click(function(){
	if(confirm('确定要推送消息吗')){
		$("#form2").attr("action","?action=notifyMsg");
		var weibotxt= $("#weiboText").val();
		$("#btnEdit").attr("disabled",true); 
		if(weibotxt ==''){
          alert("发送内容不能为空。");
          $("#btnEdit").attr("disabled",false); 
          return;
		}

		if(weibotxt.length>=110){
	          alert("你发送的内容太长,不能超过110个字符。");
	          $("#btnEdit").attr("disabled",false); 
	          return;
		}
		var prod_id= $("#notify_msg_prod_id").val();
		
		var prod_type= $("#notify_msg_prod_type").val();
		 $('#SendWeiboMsg').empty().append('正在推送消息.....<br/>');
		var urlT='admin_online_subscribe.php?action=notifyMsg&notify_msg_prod_type='+prod_type+'&notify_msg_prod_id='+prod_id+'&content=' +encodeURIComponent(weibotxt) ;
		var channels=document.getElementsByName("channel[]");
		var channelFlag=true;
		var index=0;
		var indexSelect=0;
		for(var i = 0; i < channels.length; i++){
			 if (channels[i].checked == true) {
				  channelFlag=false;
				  indexSelect++;
				  urlTs = urlT +'&channel='+channels[i].value;	
				 // alert(channels[i].value);	
				  $.post(urlTs, {Action:"post"}, function (data, textStatus){     
					  if(textStatus == "success"){ 
						  index++;  
			          //alert(data);
						  $('#SendWeiboMsg').append(data).append('<br/>');
			           }else{
			        	   index++;  
			        	   $('#SendWeiboMsg').append('发送失败。').append('<br/>');
			           }
					  if( index==indexSelect){			  
						     $("#btnEdit").attr("disabled",false); 
						     $('#SendWeiboMsg').append('推送消息完成。').append('<br/>');
				      }
			       });	 		 
			  }
		}
		if(channelFlag){
			alert('你必须要选择一个频道发送');
	    }
	   
	    
		//$("#form2").submit();
		
	}
});
</script>
<form id="form2"  name="form1" method="post">
<table class="table" cellpadding="0" cellspacing="0" width="100%" border="0">

                <thead class="tb-tit-bg">
<!--                   <tr>-->
<!--                        <td > <h3 class="title">    发送设备:<select name="device_type" id="device_type" >                       -->
<!--                             <option value="" >所有设备</option>-->
<!--                             <option value="ios" >IOS</option>-->
<!--                             <option value="android" >Android</option>                          -->
<!--                        </select> -->
<!--                        </h3></td>    -->
<!--                      -->
<!--                    </tr>-->
                    <tr>
                        <td colspan="2"><span><h3>发送信息</h3></span></td>    
                       
                    </tr>
                    <input type="hidden" name="notify_msg_prod_id" id="notify_msg_prod_id" value="">
                    <input type="hidden" name="notify_msg_prod_type" id="notify_msg_prod_type" value="">
                      
                      <tr>
                        <td colspan="2" align="center"><textarea name="wbText" id="weiboText" rows="10" cols="90"></textarea></td>
                    </tr>
                     <tr>
                        <td align="left"> <br/>
                            Parse 云推送<br/>
	                        &nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" id='channel[]' name="channel[]" value="CHANNEL_ANDROID"   />悦视频 Android版<br/>
<!--						    &nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" id='channel[]' name="channel[]" value="CHANNEL_TV"  />悦视频 TV版<br/>-->
						    &nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" id='channel[]' name="channel[]" value="CHANNEL_IOS"  />悦视频 IOS版<br/>
						    &nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" id='channel[]' name="channel[]" value="CHANNEL_IPHONE"  />今晚剧场iphone版<br/>
						    &nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" id='channel[]' name="channel[]" value="CHANNEL_IPAD"  />今晚剧场IPAD版<br/>
                        </td>
                         <td align="left"> <br/>
                                                                         百度云推送<br/>
	                        &nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" id='channel[]' name="channel[]" value="CHANNEL_ANDROID_BAIDU"   />悦视频 Android版<br/>
<!--						    &nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" id='channel[]' name="channel[]" value="CHANNEL_TV_BAIDU"  />悦视频 TV版<br/>-->
						    &nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" id='channel[]' name="channel[]" value="CHANNEL_IOS_BAIDU"  />悦视频 IOS版<br/>
						    &nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" id='channel[]' name="channel[]" value="CHANNEL_IPHONE_BAIDU"  />今晚剧场iphone版<br/>
						    &nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" id='channel[]' name="channel[]" value="CHANNEL_IPAD_BAIDU"  />今晚剧场IPAD版<br/>
                        </td>
                    </tr>
                      <tr>
                         <td align="center" colspan="2"><input type="button" value="发送消息" id="btnEdit"  class="input"  /></td>
                      </tr>
                        <tr>
                        <td align="left" colspan="2">  <font color=red><span id="SendWeiboMsg"></span></font></td>    
                       
                    </tr> 
                    
                </thead>
            </table>
</form>
</div>
<?php 
    if ($pagenum == 1 && $where == " 1=1 ") {
        echo "<script>showpic();</script>";
    }
    unset($rs);
}
Esempio n. 12
0
+--------------------------------------------------------+
| Filename: embed.php
| Author: Domi & fetloser 
| www.venue.nu		
| Embed player functions by Wain Glaister    
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
require_once "../../maincore.php";
if (isset($url) && !isNum($url)) {
    redirect("index.php");
}
if (!isset($p)) {
    require_once THEMES . "templates/header.php";
} else {
    require_once THEME . "theme.php";
    echo "<link rel='stylesheet' href='" . THEME . "styles.css' type='text/css'>";
}
include INFUSIONS . "the_kroax/functions.php";
if ($kroaxsettings['kroax_set_keepalive'] == "1") {
    //add_to_head("<script type='text/javascript' src=".INFUSIONS."the_kroax/onlinestatus.js'></script>");
    echo "<script type='text/javascript' src='" . INFUSIONS . "the_kroax/onlinestatus.js'></script>";
    echo "<body onload=\"ajax(page,'onlinestatus','" . $url . "')\"></body>";
}
function RemoveExtension($strName)
Esempio n. 13
0
    }
    prp_render_cats($catid, $review->id, $path, $cats);
    unset($path, $cats);
    if (!is_null($access_group)) {
        if ($prp->settings['hide_cats']) {
            fallback("error.php?type=access");
        }
        show_info('<img src="icons/lock.png" alt="' . $locale['prp_locked'] . '" /> ' . str_replace('%s', getgroupname($access_group), $locale['PRP215']));
    }
}
/***************************************************************************
 *  DOWNLOADS                                                              *
 ***************************************************************************/
if (is_null($access_group) && !$review->id && (!isset($catid) || $catid != 0)) {
    $rowstart = 0;
    if (isset($_GET['rowstart']) && isNum($_GET['rowstart'])) {
        $rowstart = $_GET['rowstart'];
    }
    $downs = array();
    if (isset($catid)) {
        $get = array('type' => 'cat', 'data' => $catid);
    } else {
        $get = array('type' => 'none');
    }
    $count = prpCore::get_reviews($get, $prp_sorting, $rowstart, $prp->settings['per_page'], false, $downs);
    $link = FUSION_SELF . "?" . (isset($catid) ? "catid={$catid}&amp;" : "");
    prp_render_downs($downs, $rowstart, $prp->settings['per_page'], $count, $link);
    unset($downs);
}
if (is_null($access_group) && $review->id) {
    include 'did.php';
function main()
{
    global $db;
    $pagenum = be("get", "page");
    if (isN($pagenum) || !isNum($pagenum)) {
        $pagenum = 1;
    }
    if ($pagenum < 1) {
        $pagenum = 1;
    }
    $pagenum = intval($pagenum);
    $project = be("get", "{pre}cj_vod_projects");
    $sql = "select * from {pre}cj_change where c_sys=0 ";
    if ($project != "") {
        $sql = $sql . " and c_pid = " . $project;
    }
    $rscount = $db->query($sql);
    $nums = $db->num_rows($rscount);
    //总记录数
    $pagecount = ceil($nums / app_pagenum);
    //总页数
    $sql = $sql . " limit " . app_pagenum * ($pagenum - 1) . "," . app_pagenum;
    $rs = $db->query($sql);
    ?>
<script language="javascript">
$(document).ready(function(){
	$("#form2").validate({
		rules:{
			name:{
				required:true,
				maxlength:32
			},
			toid:{
				required:true
			},
			pid:{
				required:true
			}
		}
	});
	
	$("#btnDel").click(function(){
		if(confirm('确定要删除吗')){
			$("#form1").attr("action","collect_vod_change.php?action=del");
			$("#form1").submit();
		}
		else{return false}
	});
	$("#btnEdit").click(function(){
		if(confirm('确定要保存修改吗')){
			$("#form1").attr("action","collect_vod_change.php?action=save");
			$("#form1").submit();
		}
		else{return false}
	});
	$("#btnAdd").click(function(){
		$('#form2').form('clear');
		$('#win1').window('open'); 
	});
	$("#btnCancel").click(function(){
		location.href = location.href ;
	});	
});
</script>
<table width="96%" border="0" align="center" cellpadding="3" cellspacing="1">
	<tr>
	<td>
		菜单:<a href="collect_vod_manage.php?action=">采集规则列表</a> | <a href="collect_vod_manage.php?action=upexp">导入采集规则</a> | <a href="collect_vod_change.php">分类转换</a> | <a href="collect_vod_filters.php">信息过滤</a>  
	&nbsp; 按项目查看:<select onchange=javascript:window.location.href=this.options[this.selectedIndex].value>
	<option value="?action=">所有转换</option>
	<option value="?action=&{pre}cj_vod_projects=0" <?php 
    if ($project == "0") {
        echo "selected";
    }
    ?>
>全局转换</option>
	<?php 
    echo makeSelect("{pre}cj_vod_projects", "p_id", "p_name", "", "collect_vod_change.php", "&nbsp;|&nbsp;&nbsp;", $project);
    ?>
	</select>
	</td>
	</tr>
</table>

<form id="form1" name="form1" method="post">
<table class="tb">
<tr>
	<td width="10%" >ID</td>
	<td width="30%" >采集分类</td>
	<td width="30%" >系统分类</td>
	<td width="30%" >所属项目</td>
</tr>
	<?php 
    if (!$rs) {
        ?>
	<tr><td align="center" colspan="5">没有任何记录!</td></tr>
    <?php 
    } else {
        $i = 0;
        while ($row = $db->fetch_array($rs)) {
            ?>
    <tr>
	<td><input name="c_id[]" type="checkbox" value="<?php 
            echo $row["c_id"];
            ?>
" /><?php 
            echo $row["c_id"];
            ?>
</td>
	<td><input name="c_name<?php 
            echo $row["c_id"];
            ?>
" type="text" value="<?php 
            echo $row["c_name"];
            ?>
" size="40"></td>
	<td>
	<select name="c_toid<?php 
            echo $row["c_id"];
            ?>
">
	<?php 
            echo makeSelectAll("{pre}vod_type", "t_id", "t_name", "t_pid", "t_sort", 0, "", "&nbsp;|&nbsp;&nbsp;", $row["c_toid"]);
            ?>
	</select>
	</td>
	<td>
	<select name="c_pid<?php 
            echo $row["c_id"];
            ?>
">
	<option value="0">全局过滤项目</option>
	<?php 
            echo makeSelect("{pre}cj_vod_projects", "p_id", "p_name", "", "", "&nbsp;|&nbsp;&nbsp;", $row["c_pid"]);
            ?>
	</select>
	</td>
	</tr>
<?php 
            $i = $i + 1;
        }
    }
    ?>
	<tr>
	<tr>
	<td colspan="5">
	全选<input name="chkall" type="checkbox" id="chkall" value="1" onClick="checkAll(this.checked,'c_id[]');"/>&nbsp;
    <input type="button" id="btnDel" value="批量删除" class="input">
	<input type="button" id="btnEdit" value="批量修改" class="input">
	<input type="button" id="btnAdd" value="添加转换" class="input">
	</td>
	</tr>
	<th colspan="5" align=center>
	<?php 
    echo pagelist_manage($pagecount, $pagenum, $nums, app_pagenum, "collect_vod_change.php?page={p}&{pre}cj_vod_projects=" . $project . "");
    ?>
    </th>
	</tr>
</table>
</form>

<div id="win1" class="easyui-window" title="窗口" style="padding:5px;width:400px;" closed="true" minimizable="false" maximizable="false">
<form action="?action=save" method="post" id="form2" name="form2">
<table class="tb">
<tr>
	<td>
	采集分类:
	<input name="c_name" type="text" size="30">
	</td>
</tr>
<tr>
	<td>
	目标分类:
	<select name="c_toid" style="width:180px;">
	<?php 
    echo makeSelectAll("{pre}vod_type", "t_id", "t_name", "t_pid", "t_sort", 0, "", "&nbsp;|&nbsp;&nbsp;", "");
    ?>
	</select>
	</td>
</tr>
<tr>
	<td>所属项目:
	<select name="c_pid" style="width:180px;">
	<option value="0">全局过滤项目</option>
	  	<?php 
    echo makeSelect("{pre}cj_vod_projects", "p_id", "p_name", "", "", "&nbsp;|&nbsp;&nbsp;", "");
    ?>
	</select>
	</td>
</tr>
<tr>
	<td align=center>
	<input class="input" type="submit" value="保存" id="btnSave">
	<input class="input" type="button" value="返回" id="btnCancel"> 
	</td>
</tr>
</table>
</form>
</div>
<?php 
}
Esempio n. 15
0
| Author: Nick Jones (Digitanium)
| Co Author: WEC
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
require_once "../maincore.php";
if (!checkrights("P") || !defined("iAUTH") || !isset($_GET['aid']) || $_GET['aid'] != iAUTH) {
    redirect("../index.php");
}
if (!isset($_GET['panel_side']) || !isNum($_GET['panel_side']) || $_GET['panel_side'] > 4) {
    $panel_side = 1;
} else {
    $panel_side = $_GET['panel_side'];
}
require_once THEMES . "templates/admin_header.php";
include LOCALE . LOCALESET . "admin/panels.php";
$temp = opendir(INFUSIONS);
while ($folder = readdir($temp)) {
    if (!in_array($folder, array(".", "..")) && strstr($folder, "_panel")) {
        if (is_dir(INFUSIONS . $folder)) {
            $panel_list[] = $folder;
        }
    }
}
closedir($temp);
if (!defined("IN_FUSION")) {
    die("Access Denied");
}
$result = dbquery("SELECT * FROM " . DB_PREFIX . "formulars");
$that = dbarray($result);
/* --------------------------------- CONFIG ------------------------------------------- */
$forum_id = $that['pr_forumid'];
// This is the ID of the boardcategorie where the thread should be posted
$poster_id = $userdata['user_id'];
// The member with this ID is the poster of the thread
$board_type = $that['pr_forumtype'];
// 0=Standard || 1=Fusionboard  // Which Forum you use
/* --------------------------------- CONFIG END --------------------------------------- */
/* --------------------------------- DO NOT CHANGE SOMETHING UNDER THESE LINE --------- */
if (isset($_GET['id'])) {
    if (!isNum($_GET['id'])) {
        die("Access denied");
    }
    $result = dbquery("SELECT * FROM " . DB_PREFIX . "bewerbung WHERE pr_id='" . $_GET['id'] . "'");
    $erg = dbarray($result);
    $thread_titel = "Bewerbung von " . $erg['pr_bname'];
    $nachricht = "Wir haben eine neue Bewerbung: \n";
    $result = dbquery("SELECT * FROM " . DB_PREFIX . "form_fields WHERE pr_toform = '1'");
    while ($data = dbarray($result)) {
        $value_norm = $erg['pr_' . $data['pr_name']];
        $value = htmlspecialchars($value_norm, ENT_QUOTES);
        $value = preg_replace("/&#039;/", "", $value);
        $nachricht .= "\n" . $data['pr_desc'] . ": " . $value . " ";
    }
    /* This Code based on a Code from ghost2k from a post on the board of the German supportsite */
    if ($board_type == "1") {
Esempio n. 17
0
        $tpl->H = str_replace("{maccms:count_gbook_all}", $tpl->getDataCount('gbook', "all"), $tpl->H);
    }
    if (strpos($tpl->H, '{maccms:count_gbook_day}')) {
        $tpl->H = str_replace("{maccms:count_gbook_day}", $tpl->getDataCount('gbook', "day"), $tpl->H);
    }
    $tpl->pageshow();
} elseif ($method == 'save') {
    $g_vid = be("all", "g_vid");
    $g_vid = chkSql($g_vid);
    $g_name = be("all", "g_name");
    $g_name = chkSql($g_name);
    $g_content = be("all", "g_content");
    $g_content = chkSql($g_content);
    $g_code = be("all", "g_code");
    $g_code = chkSql($g_code);
    if (!isNum($g_vid)) {
        $g_vid = 0;
    }
    if (isN($g_name) || isN($g_content)) {
        alert('请输入昵称和内容');
        exit;
    }
    if ($MAC['other']['gbookverify'] == 1 && $_SESSION["code_gbook"] != $g_code) {
        alert('验证码错误');
        exit;
    }
    if (getTimeSpan("last_gbooktime") < $MAC['other']['gbooktime']) {
        alert('请不要频繁操作');
        exit;
    }
    $pattern = '/[^\\x00-\\x80]/';
function main()
{
    global $db, $cache;
    $topic_id = be("all", "topic_id");
    $flag = be("all", "flag");
    if (!isNum($topic_id)) {
        $topic_id = 0;
    } else {
        $topic_id = intval($topic_id);
    }
    if (!isNum($flag)) {
        $flag = -1;
    } else {
        $flag = intval($flag);
    }
    $where = " 1=1 ";
    $where .= " AND a.topic_id =" . $topic_id;
    if ($flag == 1) {
        $where .= " AND a.flag =1 ";
    }
    if ($flag == 0) {
        $where .= " AND a.flag =0 ";
    }
    $pagenum = be("all", "page");
    if (!isNum($pagenum)) {
        $pagenum = 1;
    } else {
        $pagenum = intval($pagenum);
    }
    if ($pagenum < 1) {
        $pagenum = 1;
    }
    $sql = "SELECT count(*) FROM {pre}vod_topic_items as a " . " where " . $where;
    $nums = $db->getOne($sql);
    $pagecount = ceil($nums / app_pagenum);
    //$sql = "SELECT a.id as id, a.flag as flag, a.disp_order as disp_order, vod.d_name as vod_name,vod.d_id as vod_id FROM {pre}vod_topic_items a,{pre}vod vod where ".$where." and a.vod_id=vod.d_id ORDER BY a.disp_order,a.id ASC limit ".(app_pagenum * ($pagenum-1)) .",".app_pagenum;
    //	var_dump($sql);
    $sql = "SELECT a.id as id, a.flag as flag, a.disp_order as disp_order, vod.d_name as vod_name,vod.d_id as vod_id FROM {pre}vod_topic_items AS a LEFT JOIN {pre}vod AS vod ON a.vod_id = vod.d_id WHERE " . $where . " and a.topic_id ={$topic_id} ORDER BY a.disp_order,a.id ASC LIMIT " . app_pagenum * ($pagenum - 1) . "," . app_pagenum;
    $rs = $db->query($sql);
    ?>
<script language="javascript">
function filter(){
	var topic_id=$("#topic_id").val();
	var st_flag  =$("#st_flag").val();
	var url = "admin_vod_topic_items.php?topic_id="+topic_id+"&flag="+st_flag;
	window.location.href=url;
}

$(document).ready(function(){
	
	$('#form1').form({
		onSubmit:function(){
			if(!$("#form1").valid()) {return false;}
		},
	    success:function(data){
	        $.messager.alert('系统提示', data, 'info',function(){
	        	location.href=location.href;
	        });
	    }
	});
	
	$("#btnDel").click(function(){
			if(confirm('确定要删除吗')){
				$("#form1").attr("action","admin_ajax.php?action=del&flag=batch&tab={pre}vod_topic_items");
				$("#form1").submit();
			}
			else{return false}
	});
	$("#btnEdit").click(function(){
		$("#form1").attr("action","?action=editall");
		$("#form1").submit();
	});
//	$("#btnAdd").click(function(){
//		window.location.href="admin_vod.php?topic_id=<?php 
    echo $topic_id;
    ?>
";
//	});
	$("#btnCancel").click(function(){
		location.href= location.href;
	});
});
function edit(id)
{
	$('#form2').form('clear');
	$("#flag").val("edit");
	$('#win1').window('open');
	$('#form2').form('load','admin_ajax.php?action=getinfo&tab={pre}vod_topic&col=t_id&val='+id);
}
</script>

<table class="admin_vod_topic_items tb">
	<tr>
	<td>
	<table border="0" cellpadding="3" cellspacing="1">
	<tr>
	<td colspan="2">
	过滤条件:视频榜单 <select id="topic_id" name="topic_id" >
	
	<?php 
    echo makeSelectWhere("{pre}vod_topic", "t_id", "t_name", "t_sort", "", "&nbsp;|&nbsp;&nbsp;", $topic_id, " where t_id>4");
    ?>
	</select>
	
	 <select id="st_flag" name="st_flag">
	 <option value="-1" <?php 
    if ($flag == -1) {
        echo "selected";
    }
    ?>
>显示到榜单</option>
	<option value="0" <?php 
    if ($flag == 0) {
        echo "selected";
    }
    ?>
>不显示</option>
	<option value="1" <?php 
    if ($flag == 1) {
        echo "selected";
    }
    ?>
>显示</option>
	</select>
	<input class="input" type="button" value="搜索" id="btnsearch" onClick="filter();">	 | <a href="admin_vod_topic.php">返回视频榜单</a>
	</td> 
	</tr>
	
	</table>
	</td>
	</tr>
</table>

<table class="tb">
<form action="" method="post" id="form1" name="form1">
	<tr>
	<td width="5%">&nbsp;</td>
	<td width="10%">编号</td>
	<td>名称</td>
	<td width="5%">排序</td>
	<td width="10%">显示到榜单</td>
	<td width="20%">操作</td>
	</tr>
	<?php 
    if ($nums == 0) {
        ?>
    <tr><td align="center" colspan="7">没有任何记录!</td></tr>
    <?php 
    } else {
        while ($row = $db->fetch_array($rs)) {
            $t_id = $row["id"];
            ?>
    <tr>
	  <td>
	  <input name="ids[]" type="checkbox" id="ids" value="<?php 
            echo $t_id;
            ?>
" /></td>
      <td><?php 
            echo $t_id;
            ?>
</td>
      <td><a href="admin_vod.php?action=edit&id=<?php 
            echo $row["vod_id"];
            ?>
">
      <?php 
            echo $row["vod_name"];
            ?>
</a></td>
	  
	 
	  <td>
	  <input name="disp_order<?php 
            echo $t_id;
            ?>
" type="text" value="<?php 
            echo $row["disp_order"];
            ?>
"  size="5"/></td>
	  <td>
	 
	  <select id="t_flag<?php 
            echo $t_id;
            ?>
" name="t_flag<?php 
            echo $t_id;
            ?>
">
	   <option value="-1" <?php 
            if ($flag == -1) {
                echo "selected";
            }
            ?>
>显示到榜单</option>
	<option value="0" <?php 
            if ($row["flag"] == 0) {
                echo "selected";
            }
            ?>
>不显示</option>
	<option value="1" <?php 
            if ($row["flag"] == 1) {
                echo "selected";
            }
            ?>
>显示</option>
	</select>
	  </td>
      <td>	
	 
	  <a href="admin_ajax.php?action=del&tab={pre}vod_topic_items&ids=<?php 
            echo $t_id;
            ?>
" onClick="return confirm('确定要删除吗?');">删除</a></td>
    </tr>
	<?php 
        }
    }
    ?>
	<tr class="formlast">
	<td  colspan="8"><input type="checkbox" name="chkall" id="chkall" class="checkbox" onClick="checkAll(this.checked,'ids[]')" /> 全选
	<input type="button" value="批量删除" id="btnDel" class="input"  />
	&nbsp;<input type="button" value="批量修改" id="btnEdit" class="input" />
	&nbsp;<input id="addvod" type="button" value="添加视频" class="input" onclick="javascript:window.location.href='admin_vod.php?action=addTopicItems&topic_id=<?php 
    echo $topic_id;
    ?>
'" />
	</td></tr>
    <tr align="center" class="formlast">
	<td colspan="8">
		<?php 
    echo pagelist_manage($pagecount, $pagenum, $nums, app_pagenum, "admin_vod_topic_items.php?page={p}&topic_id=" . $topic_id . "&flag=" . $flag);
    ?>
	</td>
    </tr>
</table>
</form>

</body>
</html>
<?php 
    unset($rs);
}
Esempio n. 19
0
        echo "<option value='{$maya_fey}'>{$maya_fey}</option>";
    }
    echo "</select>";
} else {
    echo "<b>This option is only available while editing an already created species.</b>";
}
echo "</td>\n\n</tr><tr>\n\n<td width='50%' align='right'><b>Pet Species Name:</b></td>\n\n<td width='50%' align='left'>\n<input type='text' name='name' value='{$name}' class='textbox' style='width:120px;' />\n</td>\n\n</tr><tr>\n\n<td width='50%' align='right'><b>\nPet Info:\n</b></td>\n\n<td width='50%' align='left'>\n<textarea rows='2' cols='20' name='info'>{$info}</textarea>\n</td>\n\n</tr><tr>\n\n<td colspan='2' align='center'>\n<input type='submit' name='save_cat' value='Save Pet' class='button'>\n</td></tr>\n</table>\n</form>\n\n</center>";
tblbreak();
echo "<table align='center' width='55%' cellspacing='0'>\n<td class='tbl2' width='30%'><b>" . $locale['VARC351'] . "</b></td>\n<td class='tbl2' align='right' width='10%'><b>" . $locale['VARC352'] . "</b></td>\n</tr>\n";
if (!isset($sortby) || !preg_match("/^[0-9A-Z]\$/", $sortby)) {
    $sortby = "all";
}
$orderby = $sortby == "all" ? "" : " WHERE name LIKE '{$sortby}%'";
$result = dbquery("SELECT * FROM " . DB_UBERPETS_PET_SPECIES . "" . $orderby . "");
$rows = dbrows($result);
if (!isset($rowstart) || !isNum($rowstart)) {
    $rowstart = 0;
}
if ($rows != 0) {
    $result = dbquery("SELECT * FROM " . DB_UBERPETS_PET_SPECIES . "" . $orderby . " ORDER BY name ASC, name LIMIT {$rowstart},25");
    echo "<br><img src='" . PETS . ($folder != '' ? $folder : "") . "/Normal.gif' name='folder_preview' alt=''>";
    while ($data = dbarray($result)) {
        echo "<table align='center' width='55%' cellspacing='0'>";
        echo "<tr><td class='small' width='30%'><img src='" . THEME . "images/bullet.gif' alt=''> <a href='admin.php?a_page=pet_species&step=edit&species_id=" . $data['sid'] . "'><b>" . $data['name'] . "</b></a></td>\n";
        echo "<td class='small' align='right' width='30%'><a href='admin.php?a_page=pet_species&step=delete&species_id=" . $data['sid'] . "'>Delete</a></td></tr>";
        echo "</table>\n";
    }
    echo "<div align='center' style='margin-top:5px;'>" . makePageNav($rowstart, 25, $rows, 3, "{$FUSION_SELF}?a_page=pet_species&sortby={$sortby}&") . "\n</div>\n";
} else {
    echo "<center><br>" . $locale['VARC354'] . " <b>{$sortby}<b><br></center>\n";
}
Esempio n. 20
0
| URL: http://www.prugnator.de
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
require_once "../../../maincore.php";
require_once THEMES . "templates/admin_header.php";
if (!iADMIN || !defined("iAUTH") || $_GET['aid'] != iAUTH) {
    die("Access denied");
}
if (!isset($_GET['id']) || !isNum($_GET['id'])) {
    die("Access denied");
}
$result = dbquery("UPDATE " . $db_prefix . "users SET user_lastvisit='" . time() . "', user_ip='" . USER_IP . "' WHERE user_id='" . $userdata['user_id'] . "'");
$comment = dbarray($result);
opentable("Kommentar bearbeiten");
if (isset($_POST['send'])) {
    $res_save = dbquery("UPDATE " . DB_PREFIX . "bewerbung SET pr_comment='" . $_POST['comment'] . "' WHERE pr_id='" . $_GET['id'] . "'");
    if ($res_save) {
        echo "Kommentar erfolgreich gespeichert!";
    } else {
        echo "Speichern ist fehlgeschlagen!";
    }
} else {
    $result = dbquery("SELECT pr_comment FROM " . DB_PREFIX . "bewerbung WHERE pr_id='" . $_GET['id'] . "' LIMIT 1");
    $erg = dbarray($result);
function main()
{
    global $db, $cache;
    $pagenum = be("get", "page");
    if (isN($pagenum) || !isNum($pagenum)) {
        $pagenum = 1;
    }
    if ($pagenum < 1) {
        $pagenum = 1;
    }
    $pagenum = intval($pagenum);
    $sql = "select * from {pre}cj_vod_projects ";
    $rscount = $db->query($sql);
    $nums = $db->num_rows($rscount);
    //总记录数
    $pagecount = ceil($nums / app_pagenum);
    //总页数
    $sql = $sql . "limit " . app_pagenum * ($pagenum - 1) . "," . app_pagenum;
    $rs = $db->query($sql);
    ?>
<table border="0" cellpadding="3" cellspacing="1">
	<tr>
	<td>
		菜单:<a href="collect_vod_manage.php?action=add">添加采集规则</a> | <a href="collect_vod_manage.php?action=upexp">导入采集规则</a>
	</td>
	</tr>
</table>
<form action="" method="post" name="form1">
<table class="collect_vod_manage tb">
    <tr>
	  <td width="5%">&nbsp;</td>
      <td width="10%">项目名称</td>
      <td width="10%">播放类型</td>
      <td width="10%">入库分类</td>
      <td width="20%">上次采集</td>
      <td width="45%">操作</td>
    </tr>
	<?php 
    if (!$rs) {
        ?>
    <tr><td align="center" colspan="7" >没有任何记录!</td></tr>
    <?php 
    } else {
        while ($row = $db->fetch_array($rs)) {
            ?>
    <tr>
	  <td><input name="p_id[]" type="checkbox" id="p_id" value="<?php 
            echo $row["p_id"];
            ?>
" /></td>
      <td><a href="?action=edit&p_id=<?php 
            echo $row["p_id"];
            ?>
"><?php 
            echo $row["p_name"];
            ?>
</a></td>
      
	  <td><?php 
            echo $row["p_playtype"];
            ?>
</td>
	  <td>
	  <?php 
            if ($row["p_classtype"] == 1) {
                echo "<font color=red>自定义分类</font>";
            } else {
                $typearr = getValueByArray($cache[0], "t_id", $row["p_collect_type"]);
                echo $typearr["t_name"];
            }
            ?>
	  </td>
      <td><?php 
            echo isToDay($row['p_time']);
            ?>
</td>
 	  <td>
 	  <A href="collect_vod_cj.php?ignoreExistM=true&p_id=<?php 
            echo $row["p_id"];
            ?>
">采集</A>|
 	   <A href="collect_vod_cj.php?p_id=<?php 
            echo $row["p_id"];
            ?>
">采集(包括已经采集过)</A>|
 	  <A href="?action=collectSimple&p_id=<?php 
            echo $row["p_id"];
            ?>
&p_name=<?php 
            echo $row["p_name"];
            ?>
">采集单个视频</A>|
 	  <A href="?action=collectVideo&p_id=<?php 
            echo $row["p_id"];
            ?>
&p_name=<?php 
            echo $row["p_name"];
            ?>
">采集视频地址</A>|
 	  <A href="?action=edit&p_id=<?php 
            echo $row["p_id"];
            ?>
">设置</A>|
 	  <A href="?action=copy&p_id=<?php 
            echo $row["p_id"];
            ?>
">复制</A>|
 	  <A href="?action=export&p_id=<?php 
            echo $row["p_id"];
            ?>
">导出</A>|
 	  <A href="?action=del&p_id=<?php 
            echo $row["p_id"];
            ?>
">删除</A>
 	  
 	  </td>
    </tr>
	<?php 
        }
    }
    ?>
	<tr class="formlast">
	<td  colspan="6">
	<input name="chkall" type="checkbox" id="chkall" value="1" onClick="checkAll(this.checked,'p_id[]');"/> 全选
	<input type="submit" value="批量删除" onClick="if(confirm('确定要删除吗')){form1.action='?action=delall';}else{return false}"  class="input"/>
	
	</td>
	</tr>
    <tr align="center" class="formlast">
      <td colspan="7">
        <?php 
    echo pagelist_manage($pagecount, $pagenum, $nums, app_pagenum, "collect_vod_manage.php?page={p}");
    ?>
      </td>
    </tr>
</table>
</form>
<?php 
}
Esempio n. 22
0
    $this_lang = str_replace("/", "", LOCALESET);
    if (file_exists(INFUSIONS . "the_kroax/locale/" . $this_lang . ".php")) {
        include INFUSIONS . "the_kroax/locale/" . $this_lang . ".php";
    } else {
        include INFUSIONS . "the_kroax/locale/English.php";
    }
} else {
    // mFusion environment
    $this_lang = LANGUAGE;
    if (file_exists(INFUSIONS . "the_kroax/locale/" . $this_lang . ".php")) {
        include INFUSIONS . "the_kroax/locale/" . $this_lang . ".php";
    } else {
        include INFUSIONS . "the_kroax/locale/English.php";
    }
}
if (isset($broken_id) && !isNum($broken_id)) {
    fallback("index.php");
}
if (iMEMBER) {
    $broken = dbquery("SELECT * FROM " . $db_prefix . "kroax WHERE kroax_id='{$broken_id}'");
    $broken1 = dbarray($broken);
    $result = dbquery("UPDATE " . $db_prefix . "kroax SET kroax_errorreport='1' WHERE kroax_id='{$broken_id}'");
    $pm_subject = "" . $locale['KROAX501'] . "";
    $pm_message = "<br><b>" . $locale['KROAX502'] . " " . $broken1['kroax_titel'] . "</b><br><b>" . $locale['KROAX503'] . " " . $broken1['kroax_url'] . "</b><br><br>" . $locale['KROAX402'] . " [URL]" . $settings['siteurl'] . "infusions/the_kroax/admin/admin.php?a_page=errors[/URL] " . $locale['KROAX403'] . "";
    $result1 = dbquery("INSERT INTO " . $db_prefix . "messages (message_id, message_to, message_from, message_subject, message_message, message_smileys, message_read, message_datestamp, message_folder) VALUES('', '1', '" . $userdata['user_id'] . "', '{$pm_subject}', '{$pm_message}', 'n', '0', '" . time() . "', '0')");
    opentable($locale['KROAX504']);
    echo "\n<table cellpadding='0' cellspacing='1' border='0' width='100%'align='middle' class='tbl-border'>\n<tr><td width='1%' class='tbl2' style='white-space:nowrap'><b><center>" . $locale['KROAX505'] . " " . $userdata['user_name'] . " !</center></b></td>\n<tr><td class='tbl1' style='white-space:nowrap'>" . $locale['KROAX506'] . " : <b>" . $broken1['kroax_titel'] . "</b></td></tr>\n<tr><td width='1%' class='tbl1' style='white-space:nowrap'>" . $locale['KROAX507'] . " : <b>" . $broken1['kroax_url'] . "</b></td></tr>\n<tr><td width='1%' class='tbl2' style='white-space:nowrap'><b><center>" . $locale['KROAX508'] . "</center></b></td></tr>\n</a></b></td></tr></table><br><br>";
    echo "<center>" . $locale['KROAX509'] . " <a href='javascript:window.close();'><u><b>" . $locale['KROAX510'] . "</u></b></a> " . $locale['KROAX511'] . "</center>";
    closetable();
} else {
    opentable($locale['KROAX411']);
Esempio n. 23
0
     }
     $result = dbquery("SELECT * FROM " . DB_UG3_USAGE . " WHERE id = '" . $_GET['id'] . "'");
     $data = dbarray($result);
     $formaction = FUSION_SELF . $aidlink . "&amp;op=useage&amp;step=edit&amp;id=" . $data['id'];
 } else {
     $formaction = FUSION_SELF . $aidlink . "&amp;op=useage";
     $data['name'] = '';
     $data['description'] = '';
     $data['purchase'] = '';
     $data['cost'] = '';
     $data['stock'] = '';
     $data['active'] = '';
     $data['image'] = '';
 }
 if (isset($_GET['step']) && $_GET['step'] == "c_edit") {
     if (isset($_GET['id']) && !isNum($_GET['id'])) {
         redirect("index.php" . $aidlink . "&amp;op=useage");
     }
     $c_result = dbquery("SELECT * FROM " . DB_UG3_CATEGORIES . " WHERE cat_id = '" . $_GET['id'] . "'");
     $c_data = dbarray($c_result);
     $c_formaction = FUSION_SELF . $aidlink . "&amp;op=useage&amp;step=c_edit&amp;id=" . $c_data['cat_id'];
 } else {
     $c_formaction = FUSION_SELF . $aidlink . "&amp;op=useage";
     $c_data['cat_id'] = '';
     $c_data['cat_name'] = '';
     $c_data['cat_description'] = '';
     $c_data['cat_sorting'] = '';
     $c_data['cat_access'] = '';
 }
 opentable($locale['urg_a_usage_100'], '');
 echo "<table width='100%'>\n<tr>\n";
function main()
{
    global $arrtype;
    ?>
<script language="javascript">
$(document).ready(function(){
	$("#form2").validate({
		rules:{
			name:{
				required:true,
				stringCheck:true,
				maxlength:64
			},
			
			parent_id:{
				required:true
			},
			
			disp_order:{
				number:true
			},
			type_desc:{
				maxlength:254
			},
			type_key:{
				maxlength:254
			}
		}
	});
	$("#form3").validate({
		rules:{
			t_type1:{
				required:true
			},
			t_type2:{
				required:true
			}
		}
	});
	$('#form1').form({
		onSubmit:function(){
			if(!$("#form1").valid()) {return false;}
		},
	    success:function(data){
	        $.messager.alert('系统提示', data, 'info',function(){
	        	location.href=location.href;
	        });
	    }
	});
	$('#form2').form({
		onSubmit:function(){
			if(!$("#form2").valid()) {return false;}
		},
	    success:function(data){
	        $.messager.alert('系统提示', data, 'info');
	    }
	});
	$("#btnEdit").click(function(){
		$("#form1").attr("action","?action=editall");
		$("#form1").submit();
	});
	$("#btnAdd").click(function(){
		$('#form2').form('clear');
		$("#flag").val("add");
		$('#win1').window('open'); 
	});
	$("#btnCancel").click(function(){
		location.href= "admin_apk_category.php?updatecache=1";
	});
	$("#btnMove").click(function(){
		$('#form3').form('clear');
		$('#win2').window('open'); 
	});
});
function ShowPDIV(i,p){
    if($("#type_P_CID_"+i)[0].length==0){
	    var v = $("#type_H_V")[0].innerHTML.split('@|@');
		$("#type_P_CID_"+i)[0].options[0] = new Option("作为顶级","0");
		for(j=1;j<v.length;j++){
		    $("#type_P_CID_"+i)[0].options[j] = new Option(v[j].split('|=|')[1],v[j].split('|=|')[0]);
			if(p==v[j].split('|=|')[0]) $("#type_P_CID_"+i)[0].options[j].selected = true;
		}
	}	
	$("#type_P_DIV_"+i)[0].style.display = ($("#type_P_DIV_"+i)[0].style.display == "none") ? "block" : "none";
}
function SelectPid(p,i){
	window.location.href = '?action=editid&typeid='+i+'&t_pid='+p;
}
</script>
<form action="" method="post" id="form1" name="form1">
<table class="tb2">
	<tr>
	<td>&nbsp;</td>
	<td width="35" align="center">编号</td>
	<td width="15%">名称</td>
	<td width="10%">关键字</td>
	<td width="15%">描述</td>
	<td width="5%">排序</td>
	<td width="25%">操作</td>
	</tr>
	<?php 
    $type = be("all", "type");
    if (isNum($type)) {
        $type = intval($type);
    } else {
        $type = 0;
    }
    getTypeList($type);
    ?>
	<tr>
	<td colspan="8"><input type="checkbox" name="chkall" id="chkall" class="checkbox" onClick="checkAll(this.checked,'t_id[]')" /> 全选
	&nbsp;<input type="button" value="批量修改" id="btnEdit" class="input" />
	&nbsp;<input type="button" value="添加" id="btnAdd" class="input" />
<!--	&nbsp;<input type="button" value="数据转移" id="btnMove" class="input" />-->
	</td>
	</tr>
</table>
</form>
<div id="type_H_V" style="display:none"><?php 
    echo $arrtype;
    ?>
</div>


<div id="win1" class="easyui-window" title="窗口" style="padding:5px;width:400px;" closed="true" closable="false" minimizable="false" maximizable="false">
<form action="admin_ajax.php?action=save&tab=apk_category" method="post" id="form2" name="form2">
<table class="tb">
	<input id="flag" name="flag" type="hidden" value="add">
	<tr>
	<td width="20%">父级分类:</td>
	<td><select id="parent_id" name="parent_id">
      <option value="0">顶级分类</option>
    	<?php 
    echo makeSelectAll("apk_category", "id", "name", "parent_id", "disp_order", 0, "", "&nbsp;|&nbsp;&nbsp;", "");
    ?>
	  </select>
	</td>
	</tr>
	<tr>
	<td>名称:</td>
	<td><input type="text" id="name" name="name" size="25">
	</td>
	</tr>
	
	<tr>
	<td>关键字:</td>
	<td><input type="text" id="type_key" name="type_key" size="25">
	</td>
	</tr>
	<tr>
	<td>描述:</td>
	<td><input type="text" id="type_desc" name="type_desc" size="25">
	</td>
	</tr>
	<tr>
	<td>排序:</td>
	<td><input type="text" id="disp_order" name="disp_order" size="25">
	</td>
	</tr>
	<tr align="center">
      <td colspan="2"><input class="input" type="submit" value="保存" id="btnSave"> <input class="input" type="button" value="返回" id="btnCancel"> </td>
    </tr>
  </form>
</table>
</div>

<div id="win2" class="easyui-window" title="窗口" style="padding:5px;width:400px;" closed="true" minimizable="false" maximizable="false">
<form action="?action=into" method="post" id="form3" name="form3">
<table class="tb">
	<tr>
	<td>
	选择分类:
	<select name="t_type1">
	<?php 
    echo makeSelectAll("{pre}art_type", "t_id", "t_name", "t_pid", "t_sort", 0, "", "&nbsp;|&nbsp;&nbsp;", "");
    ?>
	</select>
	</td>
	</tr>
	<tr>
	<td>
	目标分类:
	<select name="t_type2">
	<?php 
    echo makeSelectAll("{pre}art_type", "t_id", "t_name", "t_pid", "t_sort", 0, "", "&nbsp;|&nbsp;&nbsp;", "");
    ?>
	</select>
	</td>
	</tr>
	<tr>
	<td>
	<input class="input" type="submit" value="保存" id="btnSave">
	
</table>
</form>
</div>

</body>
</html>
<?php 
}
Esempio n. 25
0
        fallback(FUSION_SELF . "?did=" . $download->id);
    }
} elseif (isset($_POST['resetbroken'])) {
    $ok = dbquery("UPDATE " . DB_PDP_DOWNLOADS . "\n\t\tSET\n\t\tdl_broken_count='0'\n\t\tWHERE download_id='" . $download->id . "'");
    if ($ok) {
        $download->log_event(PDP_EV_RESETBROKEN, 0);
        fallback(FUSION_SELF . "?did=" . $download->id);
    }
} elseif (isset($_POST['resetvisitors'])) {
    $ok = dbquery("UPDATE " . DB_PDP_DOWNLOADS . "\n\t\tSET\n\t\tcount_visitors='0'\n\t\tWHERE download_id='" . $download->id . "'");
    if ($ok) {
        $download->log_event(PDP_EV_RESETVISITORS, 0);
        fallback(FUSION_SELF . '?did=' . $download->id);
    }
} elseif (isset($_POST['setcount'])) {
    if (!isNum($_POST['count'])) {
        fallback(FUSION_SELF . "?did=" . $download->id);
    }
    $ok = dbquery("UPDATE " . DB_PDP_DOWNLOADS . "" . " SET dl_count='" . $_POST['count'] . "'" . " WHERE download_id='" . $download->id . "'");
    if ($ok) {
        $download->log_event(PDP_EV_CHEAT, 0);
        fallback(FUSION_SELF . "?did=" . $download->id);
    }
} elseif (isset($_POST['set_max_pics'])) {
    $ok = dbquery("UPDATE " . DB_PDP_DOWNLOADS . "\n\t\tSET\n\t\tmax_pics='" . intval($_POST['max_pics']) . "'\n\t\tWHERE download_id='" . $download->id . "'");
    if ($ok) {
        fallback(FUSION_SELF . '?did=' . $download->id);
    }
} elseif (isset($_POST['set_dir_files'])) {
    if (!in_array($_POST['dir_files'], $upload_file_dirs)) {
        fallback(FUSION_SELF . '?did=' . $download->id);
Esempio n. 26
0
<?php

ob_implicit_flush(true);
ini_set('max_execution_time', '0');
require_once "../admin_conn.php";
require_once "collect_fun.php";
require_once "../score/AutoDouBanParseScore.php";
$pagenum = be("all", "pagenum");
if (!isNum($pagenum)) {
    $pagenum = 1;
} else {
    $pagenum = intval($pagenum);
}
updateVodPic($pagenum);
writetofile("mac_cj_vod.txt", 'finish');
function updateVodPic($pagenum)
{
    global $db;
    $scoreDouban = new AutoDouBanParseScore();
    $sql = "SELECT count(*)  FROM ( SELECT m_name\nFROM mac_cj_vod\nWHERE m_pid =180 AND m_typeid =131\nGROUP BY m_name) as c";
    $nums = $db->getOne($sql);
    $app_pagenum = 10;
    $pagecount = ceil($nums / $app_pagenum);
    //	 $pagecount=2;
    $flag = true;
    for ($i = $pagenum; $i <= $pagecount && $flag; $i++) {
        writetofile("mac_cj_vod.txt", 'check item for vod type{=}' . $nums . '{=}Total{=}' . $pagecount . '{=}' . $i);
        $sql = "SELECT m_name, m_pic, m_pic_ipad, m_year,m_language \nFROM mac_cj_vod\nWHERE m_pid =180 \nAND m_typeid =131\nGROUP BY m_name order by m_name asc  limit " . $app_pagenum * ($i - 1) . "," . $app_pagenum;
        //	    var_dump($sql);
        $rs = $db->query($sql);
        $flag = parseVodPad($rs, $scoreDouban);
Esempio n. 27
0
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
require_once "../../../maincore.php";
require_once THEME . "theme.php";
echo "<link rel='stylesheet' href='" . THEME . "styles.css' type='text/css'>";
if (!checkRights("I")) {
    header("Location:../../../index.php");
    exit;
}
if (isset($game) && !isNum($game)) {
    fallback("index.php");
}
if (!defined("LANGUAGE")) {
    // PHPFusion environment
    $this_lang = str_replace("/", "", LOCALESET);
    if (file_exists(INFUSIONS . "varcade/locale/" . $this_lang . ".php")) {
        include INFUSIONS . "varcade/locale/" . $this_lang . ".php";
    } else {
        include INFUSIONS . "varcade/locale/English.php";
    }
} else {
    // mFusion environment
    $this_lang = LANGUAGE;
    if (file_exists(INFUSIONS . "varcade/locale/" . $this_lang . ".php")) {
        include INFUSIONS . "varcade/locale/" . $this_lang . ".php";
Esempio n. 28
0
function shop_finalize()
{
    //Finalize the buying of an item
    global $userdata, $locale, $golddata, $_GET, $_POST, $_REQUEST;
    if (!isset($_GET['id']) || !isNum($_GET['id'])) {
        redirect("index.php");
    }
    //item information
    $result = dbquery("SELECT cost, stock, name, category FROM " . DB_UG3_USAGE . " WHERE id = " . $_GET['id'] . " LIMIT 1");
    if (dbrows($result)) {
        $item = dbarray($result);
        table_top($locale['urg_shop_147']);
        echo "<table width='100%' cellpadding='5' cellspacing='0' border='0' class='tbl'>\n<tr valign='top' class='tbl12'>\n";
        echo "<td width='100%'>\n";
        if ($golddata['cash'] < $item['cost']) {
            echo sprintf($locale['urg_shop_121'] . " %s", formatMoney($item['cost'] - $golddata['cash']));
        } elseif ($item['stock'] == 0) {
            echo $locale['urg_shop_120'];
        } else {
            //put item in user's inventory
            $sql = "INSERT INTO `" . DB_UG3_INVENTORY . "` ( \n\t\t\t\t`id` , \n\t\t\t\t`ownerid` , \n\t\t\t\t`itemid` , \n\t\t\t\t`itemname` , \n\t\t\t\t`amtpaid` , \n\t\t\t\t`trading` , \n\t\t\t\t`tradecost` \n\t\t\t) VALUES (\n\t\t\t\t'', \n\t\t\t\t'" . $userdata['user_id'] . "', \n\t\t\t\t'" . $_GET['id'] . "', \n\t\t\t\t'" . $item['name'] . "', \n\t\t\t\t'" . $item['cost'] . "', \n\t\t\t\t'0', \n\t\t\t\t'0.00'\n\t\t\t)";
            $result = dbquery($sql);
            //decrease user's money
            takegold2($userdata['user_id'], $item['cost'], 'cash');
            //decrease stock by 1
            $result = dbquery("UPDATE " . DB_UG3_USAGE . " SET stock = stock - 1 WHERE id = " . $_GET['id'] . " LIMIT 1");
            echo sprintf($locale['urg_shop_125'] . ' %s.<br /><br />' . $locale['urg_shop_126'], $item['name']);
        }
        echo "</td>\n";
        echo "</tr>\n</table>\n";
        if (isset($_GET['return'])) {
            pagerefresh('meta', 3, urldecode($_GET['return']));
        } else {
            pagerefresh('meta', 3, FUSION_SELF . '?op=shop_start&category=' . $item['category']);
        }
        closetable();
    } else {
        table_top($locale['urg_shop_147']);
        echo $locale['urg_shop_154'];
        pagerefresh('meta', 3, FUSION_SELF . '?op=shop_start');
        closetable();
    }
}
function main()
{
    global $db, $cache;
    $tv_id = be("all", "tv_id");
    $day = be("all", "day");
    if (!isNum($tv_id)) {
        $tv_id = 0;
    } else {
        $tv_id = intval($tv_id);
    }
    if (isN($day)) {
        $day = date('Y-m-d', time());
    }
    $where = " 1=1 ";
    $where .= " AND tv_id =" . $tv_id;
    $pagenum = be("all", "page");
    if (!isNum($pagenum)) {
        $pagenum = 1;
    } else {
        $pagenum = intval($pagenum);
    }
    if ($pagenum < 1) {
        $pagenum = 1;
    }
    $sql = "SELECT count(*) FROM {pre}tv_play" . " where " . $where;
    $nums = $db->getOne($sql);
    $pagecount = ceil($nums / app_pagenum);
    $sql = "SELECT * FROM {pre}tv_play  where " . $where . " ORDER BY id ASC limit " . app_pagenum * ($pagenum - 1) . "," . app_pagenum;
    $rs = $db->query($sql);
    ?>
<script language="javascript">
function filter(){
	var tv_id=$("#tv_id").val();
	var url = "admin_program_play.php?tv_id="+tv_id;
	window.location.href=url;
}

$(document).ready(function(){
	$("#form2").validate({
		rules:{
			t_name:{
				required:true,
//				stringCheck:true,
				maxlength:64
			},
//			t_enname:{
//				required:true,
////				stringCheck:true,
//				maxlength:128
//			},
//			t_template:{
//				required:true,
//				maxlength:128
//			},
			t_pic:{
				maxlength:254
			},
			t_sort:{
				number:true
			},
			t_des:{
				required:true,
				maxlength:254
			}
		}
	});
	$('#form1').form({
		onSubmit:function(){
			if(!$("#form1").valid()) {return false;}
		},
	    success:function(data){
	        $.messager.alert('系统提示', data, 'info',function(){
	        	location.href=location.href;
	        });
	    }
	});
	$('#form2').form({
		onSubmit:function(){
			if(!$("#form2").valid()) {return false;}
		},
	    success:function(data){
	        $.messager.alert('系统提示', data, 'info');
	    }
	});
	$("#btnDel").click(function(){
			if(confirm('确定要删除吗')){
				$("#form1").attr("action","admin_ajax.php?action=del&flag=batch&tab={pre}vod_topic");
				$("#form1").submit();
			}
			else{return false}
	});

	$("#btnAddLunBo").click(function(){
		if(confirm('确定要添加到轮播图吗')){
			$("#form1").attr("action","admin_ajax.php?action=lunboForTopic&flag=batch&tab={pre}vod_popular");
			$("#form1").submit();
		}
		else{return false}
});

	
	$("#btnEdit").click(function(){
		$("#form1").attr("action","?action=editall");
		$("#form1").submit();
	});
	$("#btnAdd").click(function(){
		$('#form2').form('clear');
		$("#flag").val("add");
		$('#win1').window('open');
		
	});
	$("#btnCancel").click(function(){
		location.href= location.href;
	});
});
function edit(id)
{
	$('#form2').form('clear');
	$("#flag").val("edit");
	$('#win1').window('open');
	$('#form2').form('load','admin_ajax.php?action=getinfo&tab={pre}tv&col=id&val='+id);
}
</script>

<table class="admin_program_play tb">
	<tr>
	<td>
	<table border="0" align="center" cellpadding="3" cellspacing="1">
	<tr>
	<td colspan="2">
	过滤条件:频道<select id="tv_id" name="tv_id" >
	
	<?php 
    echo makeSelectWhere("{pre}tv", "id", "tv_name", "tv_type", "", "&nbsp;|&nbsp;&nbsp;", $tv_id, " where status=1");
    ?>
	</select>
	
	
	<input class="input" type="button" value="搜索" id="btnsearch" onClick="filter();">	| <a href="admin_program.php">返回电视直播</a>
	</td> 
	</tr>
	
	</table>
	</td>
	</tr>
</table>

<table class="tb">
<form action="" method="post" id="form1" name="form1">
	<tr>
	<td width="5%">&nbsp;</td>
	<td width="5%">编号</td>
	<td>播放来源</td>
	<td>显示到app</td>
	<td width="45%">直播地址</td>
	<td>清晰度</td>
	<td width="10%">操作</td>
	</tr>
	<?php 
    if ($nums == 0) {
        ?>
    <tr><td align="center" colspan="7">没有任何记录!</td></tr>
    <?php 
    } else {
        while ($row = $db->fetch_array($rs)) {
            $t_id = $row["id"];
            ?>
    <tr>
	  <td>
	  <input name="t_id[]" type="checkbox" id="t_id" value="<?php 
            echo $t_id;
            ?>
" /></td>
      <td><?php 
            echo $t_id;
            ?>
</td>
 
	<td>
	 <select id="tv_playfrom<?php 
            echo $t_id;
            ?>
" name="tv_playfrom<?php 
            echo $t_id;
            ?>
">
    <option value="">请选择播放来源</option>
    <?php 
            echo makeSelectTV_live("tv_playfrom", $row["tv_playfrom"]);
            ?>
	</select>
	</td>
	
	  
	  <td>
	 
	  <select id="status<?php 
            echo $t_id;
            ?>
" name="status<?php 
            echo $t_id;
            ?>
">
	<option value="0" <?php 
            if ($row["status"] == 0) {
                echo "selected";
            }
            ?>
>不显示</option>
	<option value="1" <?php 
            if ($row["status"] == 1) {
                echo "selected";
            }
            ?>
>显示</option>
	</select>
	  </td>
	  
      <td>
      <input type="text" name="tv_playurl<?php 
            echo $t_id;
            ?>
" value="<?php 
            echo $row["tv_playurl"];
            ?>
" size="100"/></td>
	  
      <td>
	  <select id="tv_definition<?php 
            echo $t_id;
            ?>
" name="tv_definition<?php 
            echo $t_id;
            ?>
">
	  <option value=""> </option>
	<option value="mp4" <?php 
            if ($row["tv_definition"] === 'mp4') {
                echo "selected";
            }
            ?>
>高清</option>
	<option value="flv" <?php 
            if ($row["tv_definition"] === 'flv') {
                echo "selected";
            }
            ?>
>流畅</option>
	</select>
	  </td>
	  
	    <td>
<!--	  <a href="javascript:void(0)" onclick="edit('<?php 
            echo $t_id;
            ?>
');return false;">修改</a> -->
	   <a href="admin_ajax.php?action=del&tab={pre}tv_play&t_id=<?php 
            echo $t_id;
            ?>
" onClick="return confirm('确定要删除吗?');">删除</a> 
	  </td>
    </tr>
	<?php 
        }
    }
    ?>
	<tr class="formlast">
	<td  colspan="7"><input type="checkbox" name="chkall" id="chkall" class="checkbox" onClick="checkAll(this.checked,'t_id[]')" /> 全选
<!--	<input type="button" value="批量删除" id="btnDel" class="input"  />-->
	&nbsp;<input type="button" value="批量修改" id="btnEdit" class="input" />
	&nbsp;<input type="button" value="添加" id="btnAdd" class="input" />
	</td></tr>
    <tr align="center" >
	<td colspan="8">
		<?php 
    echo pagelist_manage($pagecount, $pagenum, $nums, app_pagenum, "admin_program.php?page={p}&tv_type=" . $tv_type . "&keyword=" . urlencode($keyword));
    ?>
	</td>
    </tr>
</table>
</form>

<div id="win1" class="easyui-window" title="窗口" style="padding:5px;width:450px;" closed="true" closable="false" minimizable="false" maximizable="false">
<form action="admin_ajax.php?action=save&tab={pre}tv_play&tv_id=<?php 
    echo $tv_id;
    ?>
" method="post" name="form2" id="form2">
<table class="tb">
	<input id="id" name="id" type="hidden" value="">
	<input id="flag" name="flag" type="hidden" value="">
	
	
	<tr>
	<td>直播地址来源:</td>
	<td><select id="tv_playfrom" name="tv_playfrom">
	<?php 
    echo makeSelectTV_live("tv_playfrom", '');
    ?>
	</select>
	</td>
	</tr>
	
	
	
	 <tr>
     <td>显示到App:</td>
      <td><select id="status" name="status">
	   <option value="0" selected>不显示</option>
	   <option value="1" >显示</option>
	</select>
	  </td>
    </tr>
    
	<tr>
     <td>直播视频地址:</td>
      <td>
      <TEXTAREA id="tv_playurl" NAME="tv_playurl" ROWS="2" style="width:300px;table-layout:fixed; word-wrap:break-word;"></TEXTAREA>
	  </td>
    </tr>
     <tr>
     <td>直播来源清晰度:</td>
      <td>
        <select id="tv_definition" name="tv_definition">
	  <option value=""> </option>
	<option value="mp4" >高清</option>
	<option value="flv">流畅</option>
	</select>
	  </td>
    </tr>
    
    
    <tr align="center" >
      <td colspan="2"><input class="input" type="submit" value="保存" id="btnSave"> <input class="input" type="button" value="返回" id="btnCancel"></td>
    </tr>
</table>
</form>
</div>
</body>
</html>
<?php 
    unset($rs);
}
Esempio n. 30
0
File: make.php Progetto: klarclm/sgv
 }
 $arr = explode(',', $ids);
 $len = count($arr);
 if ($num >= $len) {
     showMsg('专题数据列表页面生成完毕!', '?m=make-option');
     return;
 }
 $id = $arr[$num];
 $tpl->T = $MAC_CACHE[$tab . 'topic'][$id];
 $tpl->P[$tab . 'topicid'] = $id;
 $tpl->P['id'] = $id;
 $tpl->H = loadFile(MAC_ROOT_TEMPLATE . "/" . $tpl->T['t_tpl']);
 if (empty($pagesize)) {
     $pagesize = $tpl->getPageListSizeByCache($tab, 'topic');
 }
 if (!isNum($pagesize)) {
     $pagesize = 10;
 }
 if (empty($datacount)) {
     $sql = 'select count(*) from {pre}' . $tab . ' where ' . $pre . '_id IN ( select r_b from {pre}' . $tab . '_relation where r_type=2 and r_a=' . $id . ')';
     $datacount = $db->getOne($sql);
     $pagecount = ceil($datacount / $pagesize);
 }
 if ($datacount == 0) {
     $pagecount = 1;
 }
 echo '正在开始生成专题<font color=red>' . $tpl->T["t_name"] . '</font>的列表,共<font color=red>' . $pagecount . '</font>页<br>';
 $rc = true;
 $tpl->P['datacount'] = $datacount;
 $tpl->P['make'] = true;
 $tpl->loadtopic($tab);