"") { $action_cd = $_GET["cd"]; } else { $action_cd = $_POST["cd"]; } $sql_action_cd = "c.action_cd = '".$action_cd."'"; //顧客種別 if($_GET["type"] <> "") { $customer_type_id = $_GET["type"]; } else { $customer_type_id = $_POST["type"]; } $sql_customer_type_id = "c.customer_type_id ='".$customer_type_id."'"; //経過日数 if($_GET["day"] <> "") { $customer_action_day = $_GET["day"]; } else { $customer_action_day = $_POST["day"]; } $sql_customer_action_day = "c.customer_action_day ='".$customer_action_day."'"; //1ページ数 $pageset = 30; //条件 $strsqlwhere = $sql_customer_type_id." AND ".$sql_customer_action_day; //並び $strsqlorder = " ORDER BY customer_action_flg,buy_last desc,customerid"; $strsql="SELECT c.action_handler, c.customer_action_flg, c.customerid, c.action_handler, c.custname, c.postcode, c.address1, c.address2, c.address3, c.address4, c.buy_first, c.buy_last, c.buy_pay , c.buy_totalamount, c.`buy_times`, YEAR(c.birthday) as y , h.handle_date,h.handle_time,h.handle_memo,h.handle_answer,h.handle_result,h.creater FROM customer as c LEFT JOIN customer_handle as h USING(handle_id) WHERE c.blackflg in (0,7,8,9,10,11,12) and callflg <> 1 and (c.address1 < 43 or c.address1 > 44) and c.customer_action_flg < 9 AND ".$strsqlwhere; $result=@mysql_query($strsql,$my_con); Testecho ($strsql); //全数 $resultall=@mysql_query($strsql,$my_con); $maxrow=@mysql_num_rows($resultall); //レコードの指定 if (($_POST[pagenum] == "") and ($_GET[pagenum] == "")) { $page = 1; } else { if ($_POST[pagenum] <> "") { $page = (int)$_POST[pagenum]; } else { $page = (int)$_GET[pagenum]; } if($page > ceil($maxrow / $pageset)) { $page = 1; } else { } } ?> "") { echo "無操作状態が続いたので画面を自動更新しました。".date("Y/m/d A G:i:s").""; } ?> ''","code",-1); //客対応者handle_answer1 40 $codedata140 = dbselect("cname,code","`".$company."code`","codekind = 140 and code <> ''","code",-1); //ユーザーリスト $userlist = dbselect("name,tid","usermaster as um INNER JOIN userrole as ur USING(tid)",-1,"lastlogon desc",-1); //データ取得数 $limit = " LIMIT ".($pageset*($page - 1)).",$pageset"; //1ページ分 $strsql .= $strsqlorder.$limit; $result=@mysql_query($strsql,$my_con); $order=1; Testecho ("ROWS = ".mysql_affected_rows()." ".$strsql."
"); #debug //更新情報 if (($okcount + $errcount)>0) { if ($okcount > 0 ){ PrintMsg("","$okcount 件 データを更新しました。",700); } if ($errcount > 0 ){ PrintMsg("登録エラーが $errcount 件有りました。","",700); } PrintMsg($errmsg,$worningmsg,700); } ?>



顧客種別: アクション:".$actiondata[0][0]."経過日数:".$customer_action_day."日"; ?>
">
No. 表示 実施状況 本日担当 最新対応 最新回答 最新結果 メモ 最新対応者 顧客ID 氏名 住所 初回取引日 最終取引日 最終本商品購入日 購買 累計 年齢 コール開始
'); return true" class="box1s" value="表示" > ".$data["handle_time"]; ?> 0) echo (date(Y) - $data["y"]); ; ?> '); return true" class="box1s" value="開始" >