"; echo "

"; echo "
"; echo "

"; } date_default_timezone_set('Asia/Taipei'); // 設定時區 error_reporting(0); // 錯誤訊息關閉 //define('DEBUG_INFO',''); // Debug 資訊顯示 //define('NO_BIG5',''); // BIG5 檢查 //define('SITE','本机'); // 來源網站 //define('SITE','q3dbase'); // 來源網站 define('SITE','善緣站'); // 來源網站 //define('SITE','真相部落'); // 來源網站 // 初始化資料庫 //$link_ID = mysqli_connect("169.254.1.1", "remote", "dafa0802remote", "stdata"); $link_ID = mysqli_connect("q3dbase.ddns.net", "remote", "dafa0802remote", "stdata"); //$link_ID = mysqli_connect("localhost", "u540806568_root", "dafa0802st", "u540806568_st"); //$link_ID = mysqli_connect("mysql.hostinger.com.hk", "u540806568_root", "dafa0802st", "u540806568_st"); mysqli_query($link_ID, "SET NAMES 'UTF8'"); define('WIDTH_ID', '6%'); define('WIDTH_NAME', '18%'); define('WIDTH_CHECK', '11%'); define('WIDTH_NUMBER', '5%'); define('WIDTH_REGION', '8%'); define('WIDTH_ST_DATE', '8%'); define('WIDTH_ST_TIME', '8%'); define('WIDTH_CONTENT', '8%'); define('WIDTH_PROGRESS', '8%'); define('WIDTH_CERT_NO', '12%'); define('WIDTH_NOTE', '8%'); if($action == 'set_query') { $_SESSION['QUERY_STRING_ST'] = ''; $query_string = mb_substr(addslashes(stripslashes(trim($_POST['query_string']))),0,16,'UTF-8'); if($query_string) $_SESSION['QUERY_STRING_ST'] = $query_string; } /* $set_length = $_GET['set_length']; if($set_length) $_SESSION['SET_LENGTH'] = $set_length; if($set_length == '') { if($_SESSION['SET_LENGTH']) $set_length = $_SESSION['SET_LENGTH']; else $_SESSION['SET_LENGTH'] = $set_length = 'full'; } if($set_length == 'full') $show_string_length = 255; if($set_length == 'short') $show_string_length = 20; */ $region = array('请选择', '中国大陆', '北京市', '上海市', '天津市', '重庆市', '河北', '山西', '内蒙古', '辽宁', '吉林', '黑龙江', '江苏', '浙江', '安徽', '福建', '江西', '山东', '河南', '湖北', '湖南', '广东', '广西', '海南', '四川', '贵州', '云南', '西藏', '陕西', '甘肃', '青海', '宁夏', '新疆', '香港', '澳门', '台湾', '日本', '韩国', '新马泰', '澳洲', '美国', '加拿大', '欧洲', '俄罗斯' ); $total_region = count($region); if($show_box != '') { echo '姓 名:
'; if($_SESSION['NAME'][$show_box]) { echo $_SESSION['NAME'][$show_box]; echo '
'; } echo '
'; echo '内 容:
'; if($_SESSION['CONTENT'][$show_box]) { // echo $_SESSION['CONTENT'][$show_box]; echo str_replace(chr(13).chr(10), '
', $_SESSION['CONTENT'][$show_box]); echo '
'; } echo '
'; echo '编辑留言:
'; if($_SESSION['NOTE'][$show_box]) { echo $_SESSION['NOTE'][$show_box]; echo '
'; } echo '
'; echo "

"; exit; } if($action == 'add_record') { // 新增纪录 $input_name = stripslashes(trim($_POST['input_name'])); $input_check1 = stripslashes(trim($_POST['input_check1'])); $input_check2 = stripslashes(trim($_POST['input_check2'])); $input_check3 = stripslashes(trim($_POST['input_check3'])); // $st_check = (($input_check1 == 'on')?'退党 ':'').(($input_check2 == 'on')?'退团 ':'').(($input_check3 == 'on')?'退队':'').chr(13).chr(10); $input_number = stripslashes(trim($_POST['input_number'])); $input_region = stripslashes(trim($_POST['input_region'])); $input_content = stripslashes(trim($_POST['input_content'])); // $input_content = $st_check.stripslashes(trim($_POST['input_content'])); $input_contact = stripslashes(trim($_POST['input_contact'])); $input_cert_no = ''; $input_note = ''; $input_st_date = date('Y-m-d H:i:s'); // 最新的日期时间 $input_progress = 0; $input_claimer = ''; $input_claim_date = ''; $input_status = ''; $input_site = ($site = CheckSite())?$site:SITE; $client_info = array(); $client_info['version'] = VERSION; $client_info['server_name'] = $_SERVER['SERVER_NAME']; $client_info['server_ip'] = $_SERVER['SERVER_ADDR']; $client_info['client_ip'] = $_SERVER['REMOTE_ADDR']; $client_info['time'] = time(); $input_client_info = serialize($client_info); // 過濾垃圾信息 $sql = "SELECT * FROM table_filter"; // 過濾文字 $result = mysqli_query($link_ID, $sql); if($result) { // 有過濾文字 $record = mysqli_fetch_array($result); $filter_text = unserialize($record['filter_text']); } else { // 預設過濾文字 $filter_text = array(' 200) $error_flag++; if($find_filter_text) $error_flag++; if(defined('NO_BIG5')) { if(CheckText($input_name) == false) { echo '

姓 名: 有繁体字, 请输入简体字!

'; $error_flag++; } if(CheckText($input_content) == false) { echo '

内 容: 有繁体字, 请输入简体字!

'; $error_flag++; } } if($error_flag) { if($find_filter_text) { // echo '

过滤文字! 修正输入后再搜寻!

'; exit; } else { echo '

修正输入后再搜寻!

'; echo "

返回上一页

"; } } if($error_flag == 0) { if($link_ID) { // 資料庫連結成功 $sql = "INSERT INTO table_st (name, check1, check2, check3, number, region, content, contact, cert_no, note, st_date, progress, claimer, claim_date, status, site, client_info) VALUES ('$input_name', '$input_check1', '$input_check2', '$input_check3', '$input_number', '$input_region', '$input_content', '$input_contact', '$input_cert_no', '$input_note', '$input_st_date', '$input_progress', '$input_claimer', '$input_claim_date', '$input_status', '$input_site', '$input_client_info')"; $result = mysqli_query($link_ID, $sql); $act_insert_id = mysqli_insert_id($link_ID); // 新增 id } $message = '编 号:'.(($act_insert_id)?$act_insert_id:'待审核').'\n'; $message .= '姓 名:'.$input_name.'\n'; $message .= '类 别:'.(($input_check1 == 'on')?'退党 ':'').(($input_check2 == 'on')?'退团 ':'').(($input_check3 == 'on')?'退队':'').'\n'; $message .= '人 数:'.$input_number.'\n'; $message .= '来 自:'.$input_region.'\n'; $message .= '日 期:'.$input_st_date.'\n'; $message .= '内 容:'.$input_content.'\n'; $message .= '联 系:'.$input_contact.'\n'; $message .= '来 源:'.$input_site.'\n'; $message .= '信 息:'.$input_client_info.'\n'; $log_text = $message.str_repeat('----------', 10).'\n'; $log_text = str_replace('\n', PHP_EOL, $log_text); $message .= '\n'.'资料审查中,请声明人记住自己的姓名和声明日期,并关注编号里的编辑留言。'.'\n'; $_SESSION['MESSAGE_ALERT'] = $message; $message = ""; $message .= ''; $message .= ''; $message .= ''; $message .= ''; $message .= ''; $message .= ''; $message .= ''; $message .= ''; $message .= ''; $message .= ''; $message .= ''; $message .= ''; $message .= ''; $message .= ''; $message .= ''; $message .= ''; $message .= ''; $message .= ''; // $message .= ''; // $message .= ''; $message .= '
编 号:'.(($act_insert_id)?$act_insert_id:'待审核').'
姓 名:'.$input_name.'
类 别:'.(($input_check1 == 'on')?" ":'').(($input_check2 == 'on')?" ":'').(($input_check3 == 'on')?"":'').'
人 数:'.$input_number.'
来 自:'.$input_region.'
日 期:'.$input_st_date.'
内 容:'.str_replace(chr(13).chr(10), '
', $input_content).'
联 系:'.str_repeat('*', mb_strlen($input_contact,'UTF-8')).'
来 源:'.$input_site.'
信 息:'.$input_client_info.'
'; $message .= '
资料审查中,请声明人记住自己的姓名和声明日期,并关注编号里的编辑留言。'; $_SESSION['MESSAGE_HTML'] = $message; if($error_flag == 0) { $ok = $act_insert_id; ($ok)?header('location:index.php?action=show&ok=1'):header('location:index.php?action=show&ok=0'); } } if(!$link_ID) { // 建立输出目录 & 档案名称 if(!file_exists(dirname(__FILE__).DIRECTORY_SEPARATOR.'log')) mkdir(dirname(__FILE__).DIRECTORY_SEPARATOR.'log', 0777); $link_name = 'st_'.date('Y-m-d').'.txt'; $output_file_name = dirname(__FILE__).DIRECTORY_SEPARATOR.'log'.DIRECTORY_SEPARATOR.$link_name; // 输出档案 UTF-8 文字档 $handle = fopen($output_file_name, "ab+"); fputs($handle, $log_text); fclose($handle); } } if($action == 'show') { // 顯示結果 $ok = $_GET['ok']; echo "

"; if($ok == 1) { echo "发布成功!".'
'; echo $_SESSION['MESSAGE_HTML']; } elseif($ok == 0 OR $ok == '') { echo "

"; echo "发布成功!".'
'; echo $_SESSION['MESSAGE_HTML']; ?> 参数错误!"; } echo "

回到上一页面"; echo '

'; echo '
'; } if($show_cert_gif) { $gif_file_name = 'CERTA'.$show_cert_gif.'.gif'; ShowImage($show_cert_gif, 0, $gif_file_name); exit; } // 顯示證書圖片或存檔 function ShowImage($number, $showflag, $filename) { if($number) { $url = 'http://tuidang.epochtimes.com/certimg/CERTA'.$number.'.gif'; $file_ext = end(explode('.', $url)); if($showflag) { if($file_ext == 'jpg' or $file_ext == 'jpeg') header('Content-Type: image/jpeg'); elseif($file_ext == 'png') header('Content-Type: image/png'); elseif($file_ext == 'gif') header('Content-Type: image/gif'); else exit('Not supported image format!'); } $cache_expire = 60*60*24*365; header("Pragma: public"); header("Cache-Control: maxage=". $cache_expire); header('Expires: '.gmdate('D, d M Y H:i:s', time() + $cache_expire).' GMT'); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_BINARYTRANSFER,1); $picture = curl_exec($ch); curl_close($ch); if($showflag) echo $picture; // 顯示圖片 if($filename) { // 存成檔案 if(!file_exists(dirname(__FILE__).DIRECTORY_SEPARATOR.'cert_gif')) mkdir(dirname(__FILE__).DIRECTORY_SEPARATOR.'cert_gif', 0777); $output_file_name = dirname(__FILE__).DIRECTORY_SEPARATOR.'cert_gif'.DIRECTORY_SEPARATOR.$filename; $file_handle = @fopen($output_file_name,"w"); fwrite($file_handle, $picture); fclose($file_handle); } echo "证书"; } } // 處理姓名顯示 function CheckName($name) { $split_array = array(':', '、', ',', ' ', ' ', ' ',' ', ',', '.', '-'); foreach($split_array as $value) { $first_name = explode($value, $name); $name = $first_name[0]; } return $name; } // 處理來源網站設定檔 function CheckSite() { $site_file = dirname(__FILE__).DIRECTORY_SEPARATOR.'site.txt'; if(file_exists($site_file)) { $handle_site = fopen($site_file, "r"); if($handle_site) { $line_string = fgets($handle_site, 64); define('UTF8_BOM', chr(0xEF).chr(0xBB).chr(0xBF)); if(substr($line_string, 0, 3) == UTF8_BOM) { $line_string = str_replace(UTF8_BOM, '', $line_string); // 移除 BOM } $pattern = '/^site:/u'; if(preg_match($pattern, $line_string)) { $site = trim(mb_substr($line_string, 5, mb_strlen($line_string,'UTF-8') - 5,'UTF-8')); return $site; } } } return false; } // 测试文字串是否全部为简体, 全简体 -> true , 有繁体 -> false function CheckText($text) { $strGbk = @iconv("UTF-8", "GBK//IGNORE", $text); $strGb2312 = @iconv("UTF-8", "GB2312//IGNORE", $text); if($strGbk == $strGb2312) return(true); // 全简体 else return(false); // 有繁体 } // 判断目录是否为空 function is_empty_dir($dir_path) { if (!is_dir($dir_path)) return true; $handle = opendir($dir_path); $is_empty = true; while ($item = readdir($handle)) { if($item == '.' || $item == '..') continue; $is_empty = false; break; } closedir($handle); return $is_empty; } function CheckLog() { // 檢查 log 檔 global $link_ID; $total_record = 0; if($link_ID) { $handle = opendir(dirname(__FILE__).DIRECTORY_SEPARATOR.'log'); while(false !== ($file_name = readdir($handle))) { if($file_name == '.' || $file_name == '..') continue; $log_file = dirname(__FILE__).DIRECTORY_SEPARATOR.'log'.DIRECTORY_SEPARATOR.$file_name; if(defined('DEBUG_INFO')) { echo str_repeat('==========', 10).'
'; echo 'log file: '.$log_file.'
'; echo str_repeat('==========', 10).'
'; } if(!is_dir($log_file)) { // 處理文字檔 $handle_log = fopen($log_file, "ab+"); $find_content_first = 0; $find_seperate_end = 0; while(!feof($handle_log)) { $line_string = fgets($handle_log, 512); if(preg_match('/^编 号:/u', $line_string)) { $act_id = trim(mb_substr($line_string, 4, mb_strlen($line_string,'UTF-8') - 4,'UTF-8')); if($act_id == '' OR $act_id == '待审核') $act_id = 0; //echo $act_id.'
'; $find_content_first = 0; $find_seperate_end = 0; } elseif(preg_match('/^姓 名:/u', $line_string)) { $act_name = trim(mb_substr($line_string, 4, mb_strlen($line_string,'UTF-8') - 4,'UTF-8')); //echo $act_name.'
'; } elseif(preg_match('/^类 别:/u', $line_string)) { $check_array = explode(' ', trim(mb_substr($line_string, 4, mb_strlen($line_string,'UTF-8') - 4,'UTF-8'))); $act_check1 = $act_check2 = $act_check3 = ''; foreach($check_array as $v) { if($v == '退党') $act_check1 = 'on'; if($v == '退团') $act_check2 = 'on'; if($v == '退队') $act_check3 = 'on'; } // echo '('.$act_check1.')'.'('.$act_check2.')'.'('.$act_check3.')'.'
'; } elseif(preg_match('/^人 数:/u', $line_string)) { $act_number = trim(mb_substr($line_string, 4, mb_strlen($line_string,'UTF-8') - 4,'UTF-8')); //echo $act_number.'
'; } elseif(preg_match('/^来 自:/u', $line_string)) { $act_region = trim(mb_substr($line_string, 4, mb_strlen($line_string,'UTF-8') - 4,'UTF-8')); //echo $act_region.'
'; } elseif(preg_match('/^日 期:/u', $line_string)) { $act_st_date = trim(mb_substr($line_string, 4, mb_strlen($line_string,'UTF-8') - 4,'UTF-8')); //echo $act_st_date.'
'; } elseif(preg_match('/^内 容:/u', $line_string)) { $act_content = trim(mb_substr($line_string, 4, mb_strlen($line_string,'UTF-8') - 4,'UTF-8')); $find_content_first = 1; } elseif(preg_match('/^联 系:/u', $line_string)) { $act_contact = trim(mb_substr($line_string, 4, mb_strlen($line_string,'UTF-8') - 4,'UTF-8')); //echo $act_contact.'
'; } elseif(preg_match('/^来 源:/u', $line_string)) { $act_site = trim(mb_substr($line_string, 4, mb_strlen($line_string,'UTF-8') - 4,'UTF-8')); } elseif(preg_match('/^信 息:/u', $line_string)) { $act_client_info = trim(mb_substr($line_string, 4, mb_strlen($line_string,'UTF-8') - 4,'UTF-8')); //echo $act_client_info.'
'; } elseif(preg_match('/^'.str_repeat('----------', 10).'/u', $line_string)) { $act_seperate = $line_string; $find_seperate_end = 1; if($find_seperate_end == 1) { //$act_id //$act_name //$act_check1 //$act_check2 //$act_check3 //$act_number //$act_region //$act_content //$act_contact $act_cert_no = ''; $act_note = ''; //$act_st_date $act_progress = 0; $act_claimer = ''; $act_claim_date = ''; $act_status = ''; //$act_site //$act_client_info //$act_seperate $sql = "INSERT INTO table_st (name, check1, check2, check3, number, region, content, contact, cert_no, note, st_date, progress, claimer, claim_date, status, site, client_info) VALUES ('$act_name', '$act_check1', '$act_check2', '$act_check3', '$act_number', '$act_region', '$act_content', '$act_contact', '$act_cert_no', '$act_note', '$act_st_date', '$act_progress', '$act_claimer', '$act_claim_date', '$act_status', '$act_site', '$act_client_info')"; //echo $sql.'
'; $result = mysqli_query($link_ID, $sql); $act_insert_id = mysqli_insert_id($link_ID); // 新增 id if($act_insert_id) $total_record++; if(defined('DEBUG_INFO')) { echo '('.$act_insert_id.')'.'
'; echo $act_name.'
'; echo '('.$act_check1.')'.'('.$act_check2.')'.'('.$act_check3.')'.'
'; echo $act_number.'
'; echo $act_region.'
'; echo $act_st_date.'
'; echo $act_content.'
'; echo $act_contact.'
'; echo $act_site.'
'; echo $act_client_info.'
'; echo $act_seperate.'
'; } } } elseif($find_content_first == 1 ) { $act_content .= $line_string; //echo $act_content.'
'; } else { } } } fclose($handle_log); // 建立输出目录 & 档案名称 if(!file_exists(dirname(__FILE__).DIRECTORY_SEPARATOR.'log_uploaded')) mkdir(dirname(__FILE__).DIRECTORY_SEPARATOR.'log_uploaded', 0777); $log_file = dirname(__FILE__).DIRECTORY_SEPARATOR.'log'.DIRECTORY_SEPARATOR.$file_name; $target_file = dirname(__FILE__).DIRECTORY_SEPARATOR.'log_uploaded'.DIRECTORY_SEPARATOR.'st_'.date('Y-m-d_H_i_s').rand(1000,9999).'.txt'; $result = copy($log_file, $target_file); if($result) { if(defined('DEBUG_INFO')) { echo str_repeat('==========', 10).'
'; echo 'target file: '.$target_file.' 处理成功!
'; echo str_repeat('==========', 10).'

'; } unlink($log_file); // 刪除 log 檔案 } else { if(defined('DEBUG_INFO')) { echo str_repeat('==========', 10).'
'; echo 'target file: '.$target_file.' 处理失败!
'; echo str_repeat('==========', 10).'

'; } } } closedir($handle); } if(defined('DEBUG_INFO')) { echo "

返回上一页

"; } return $total_record; } ?>

回到主页
* 为必须填写  跳到下方
* 姓 名: 请看姓名填写说明,以免变成无效声明!
此栏空间有限,请将全部人名填入内容,
否则可能会丢失或导致人数无效。
可用化名
* 类 别: 入过都要退
* 人 数: 此处请只填写数字,不要写中文/标点等。
多人共同声明请注明人数,并请在内容列出每一位声明人的化名或真名与退出类别。
最高200人
* 来 自: 选择地区
* 内 容: 可以选填
最多1000个字
* 联 系:
此栏不公开,可填入要传送的私密信息或连系方式,如:QQ、email等等
可以选填
最多256个字





'; // 查询字串 $sql_query_string = ''; $sql_query_string .= "AND (id = '%$_SESSION[QUERY_STRING_ST]%' ". "OR name LIKE '%$_SESSION[QUERY_STRING_ST]%' ". // "OR check1 = '$query_check1' ". // "OR check2 = '$query_check2' ". // "OR check3 = '$query_check3' ". "OR region LIKE '%$_SESSION[QUERY_STRING_ST]%' ". "OR content LIKE '%$_SESSION[QUERY_STRING_ST]%' ". "OR cert_no LIKE '%$_SESSION[QUERY_STRING_ST]%' ". "OR note LIKE '%$_SESSION[QUERY_STRING_ST]%' ". "OR st_date LIKE '%$_SESSION[QUERY_STRING_ST]%') "; if($_SESSION['QUERY_STRING_ST']) { // 有输入查询字串 $sql = $sql_start.$sql_progress.$sql_query_string.$sql_end; } else { $sql = $sql_start.$sql_progress.$sql_end; } $result = mysqli_query($link_ID, $sql); $total_data = mysqli_num_rows($result); // echo $total_data.'
'; // echo $sql.'
'; $list_data = $total_data; $start = 0; $total=ceil($list_data/$page_show_num); $last_page = $total; if($page == '' OR $page == 1) { $page = 1; $start= 0; $pre = -1; $next1 = 2; if($next1 > $total) $next1 = -1; $pre10 = -1; $next10 = 1 * 10 + 1; if($next10 > $total) $next10 = -1; $page_start = 1; $page_end = 10; } else { $start = ($page - 1) * $page_show_num; $pre = $page - 1; $next1 = $page + 1; if($next1 > $total) $next1 = -1; $pre10 = floor(($page - 1) / 10) * 10 - 10 + 1; $next10 = floor(($page - 1) / 10) * 10 + 10 + 1; if($pre10 < 0) $pre10 = -1; if($next10 > $total) $next10 = -1; if($pre10 < 0) $page_start = 1; else $page_start = $pre10 + 10; $page_end = $page_start + 9; if($page_end > $total) $page_end = $total; } if($pre10 != -1) { $page_link .= '第一页'; $page_link .= ' '; $page_link .= "上10页"; $page_link .= ' '; } else { $page_link .= '第一页'; $page_link .= ' '; } if($pre != -1) { $page_link .= "前一页"; $page_link .= ' '; } else { $page_link .= '前一页'; $page_link .= ' '; } for($i=$page_start; $i <= $page_end; $i++) { if($i > $total) continue; if($i == $page) $page_link .= ' '.""; else $page_link .= ' '.""; $page_link .= sprintf("%02d", $i); $page_link .= ''.' '; } if($next1 != -1) { $page_link .= ' '; $page_link .= "下一页"; } else { $page_link .= ' '; $page_link .= '下一页'; } if($next10 != -1) { $page_link .= ' '; $page_link .= "下10页"; $page_link .= ' '; $page_link .= "最末页"; } else { $page_link .= ' '; $page_link .= '下10页'; $page_link .= ' '; } ?>
'.$_SESSION['QUERY_STRING_ST'].''; ?>   * '; echo ''.CheckLog().''; } ?>
跳到上方"; ?>
跳到上方".'
'; $sql_limit = "LIMIT $start, $page_show_num"; // 限制分页 if($_SESSION['QUERY_STRING_ST']) { // 有输入查询字串 $sql = $sql_start.$sql_progress.$sql_query_string.$sql_end.$sql_limit; } else { $sql = $sql_start.$sql_progress.$sql_end.$sql_limit; } $result = mysqli_query($link_ID, $sql); $total_record = $today_record = 0; $output_string = ''; if($total_data) { $output_string = ''; $output_string .= ''; $output_string .= ''; $output_string .= ''; $output_string .= ''; $output_string .= ''; $output_string .= ''; $output_string .= ''; $output_string .= ''; $output_string .= ''; $output_string .= ''; $output_string .= ''; $output_string .= ''; $output_string .= ''; while($record = mysqli_fetch_array($result)) { $act_id = $record['id']; $act_name = $record['name']; $act_check1 = $record['check1']; $act_check2 = $record['check2']; $act_check3 = $record['check3']; $act_number = $record['number']; $act_region = $record['region']; $act_content = $record['content']; $act_cert_no = $record['cert_no']; $act_note = $record['note']; $act_st_date = $record['st_date']; $act_progress = $record['progress']; $act_claimer = $record['claimer']; $act_claim_date = $record['claim_date']; $act_status = $record['status']; $act_site = $record['site']; $output_string .= ''; $output_string .= ''; $_SESSION['NAME'][$act_id] = $act_name; $act_first_name = CheckName($act_name); $output_string .= ''; // $act_check = (($act_check1 == 'on')?'退党 ':'').(($act_check2 == 'on')?'退团 ':'').(($act_check3 == 'on')?'退队':''); $act_check = (($act_check1 == 'on')?" ":'').(($act_check2 == 'on')?" ":'').(($act_check3 == 'on')?"":''); $output_string .= ''; $output_string .= ''; $output_string .= ''; $output_string .= ''; $output_string .= ''; $_SESSION['CONTENT'][$act_id] = $act_content; $output_string .= '"; if($act_progress == 2) { $output_string .= ''; } else { $output_string .= ''; } $output_string .= ''; $output_string .= ' '; } else { $output_string .= ''.htmlspecialchars($act_cert_no).''; } } $_SESSION['NOTE'][$act_id] = $act_note; $output_string .= ''; } $output_string .= ''; $output_string .= ''; /* if(mb_strlen($act_content,'UTF-8') > $show_string_length) $act_content = mb_substr($act_content, 0, $show_string_length,'UTF-8').'。。。'; if(mb_strlen($act_note,'UTF-8') > $show_string_length) $act_note = mb_substr($act_note, 0, $show_string_length,'UTF-8').'。。。'; */ // $output_string .= ''; $output_string .= ''; $output_string .= ''; $output_string .= ''; } $output_string .= '
编 号姓 名类 别人 数来 自日 期时 间内 容进 度证 号编辑留言
'.htmlspecialchars($act_id).''; if(mb_strlen($act_name,'UTF-8') <= 12) { // 長度 <= 12 直接顯示 $output_string .= ''.htmlspecialchars($act_name).(($act_number > 1)?'等':'').''; } elseif(mb_strlen($act_first_name,'UTF-8') <= 12) { // 抓第一個姓名, 長度 <= 12 直接顯示 $output_string .= ''.htmlspecialchars($act_first_name).(($act_number > 1)?'等 ':''). "". "详细". ''; } elseif($act_first_name) { // 長度超過, 顯示連結 $output_string .= ''. "". "详细". ''; } $output_string .= ''.$act_check.''.htmlspecialchars($act_number).''.htmlspecialchars($act_region).''.htmlspecialchars(substr($act_st_date,0,10)).''.htmlspecialchars(substr($act_st_date,11,8)).''; if($act_content) { $output_string .= ''. "". "详细内容". ""; } $output_string .= "'."".''.htmlspecialchars($progress[$act_progress]).''; if($act_cert_no) { if($act_progress == 2) { $output_string .= ""; $output_string .= ''.htmlspecialchars($act_cert_no).''; if(mb_strlen($act_note,'UTF-8') > 5) { $output_string .= ''. "". "留言内容". ''; } elseif($act_note) { $output_string .= ''.htmlspecialchars($act_note).'
'.'  '.'
'; } echo $output_string; ?>