<?php
!function_exists('html') && exit('ERR');
if($action=='mod'){
	
	$code="<SCRIPT src=\'http://www_php168_com/do/vote.php?job=js&cid=$voteid\'></SCRIPT>";

	$div_db[voteid]=$voteid;

	$div_db[div_w]=$div_w;
	$div_db[div_h]=$div_h;
	$div_db[div_bgcolor]=$div_bgcolor;
	$div=addslashes(serialize($div_db));
	$typesystem=0;

	//插入或更新標簽庫
	do_post();


}



$rsdb=get_label();
$rsdb[hide]?$hide_1='checked':$hide_0='checked';
if($rsdb[js_time]){
	$js_time='checked';
}

@extract(unserialize($rsdb[divcode]));
$div_width && $div_w=$div_width;
$div_height && $div_h=$div_height;

$query = $db->query("SELECT * FROM `{$pre}vote_config` ORDER BY cid DESC");
while($rs = $db->fetch_array($query)){
	if(!$voteid){
		$voteid=$rs[cid];
	}
	$rs[ckcid]=$voteid==$rs[cid]?" checked ":"";
	$listdb[]=$rs;
}

require("head.php");
require("template/label/hack_vote.htm");
require("foot.php");
?>