김예미

update menu1 - sms respond time part

...@@ -384,7 +384,11 @@ ...@@ -384,7 +384,11 @@
384 <input type="text" class="search form-control bg-light border-0 small" placeholder="Search"> 384 <input type="text" class="search form-control bg-light border-0 small" placeholder="Search">
385 </div> 385 </div>
386 </form> 386 </form>
387 - <li class="sort" data-sort="get_date"># 시간순</li> 387 + <div id="myList_in">
388 + <li class="sort" data-sort="get_date"># 보낸 시간순</li>
389 + <li class="sort" data-sort="send_date"># 받은 시간순</li>
390 + <li class="sort" data-sort="ttttt"># 빠른 답장순</li>
391 + </div>
388 </div> 392 </div>
389 <ol class="list"></ol> 393 <ol class="list"></ol>
390 </div> 394 </div>
...@@ -396,7 +400,11 @@ ...@@ -396,7 +400,11 @@
396 <input type="text" class="search form-control bg-light border-0 small" placeholder="Search"> 400 <input type="text" class="search form-control bg-light border-0 small" placeholder="Search">
397 </div> 401 </div>
398 </form> 402 </form>
399 - <li class="sort" data-sort="get_date"># 시간순</li> 403 + <div id="myList_in">
404 + <li class="sort" data-sort="get_date"># 보낸 시간순</li>
405 + <li class="sort" data-sort="send_date"># 받은 시간순</li>
406 + <li class="sort" data-sort="ttttt"># 빠른 답장순</li>
407 + </div>
400 </div> 408 </div>
401 <ol class="list"></ol> 409 <ol class="list"></ol>
402 </div> 410 </div>
......
...@@ -919,6 +919,7 @@ function get_date_analysis(){ ...@@ -919,6 +919,7 @@ function get_date_analysis(){
919 cc.innerHTML='Error-#13'+err; 919 cc.innerHTML='Error-#13'+err;
920 }); 920 });
921 921
922 + menu_name.innerHTML="특정 기간의 통계";
922 changeLabelText(month_b, "연락 수", logcount_b, "통화 수", callcount_b, "문자 수", smscount_b, "통화 시간", durationsum_b, "누적 연락 수", logcount_bnu, "누적 통화 수", callcount_bnu, "누적 문자 수",smscount_bnu, "누적 통화 시간", durationsum_bnu,"특정 기간의 통계"); 923 changeLabelText(month_b, "연락 수", logcount_b, "통화 수", callcount_b, "문자 수", smscount_b, "통화 시간", durationsum_b, "누적 연락 수", logcount_bnu, "누적 통화 수", callcount_bnu, "누적 문자 수",smscount_bnu, "누적 통화 시간", durationsum_bnu,"특정 기간의 통계");
923 window.myChart.destroy(); 924 window.myChart.destroy();
924 925
...@@ -981,6 +982,7 @@ function get_number_analysis(){ ...@@ -981,6 +982,7 @@ function get_number_analysis(){
981 cc.innerHTML='Error-#16'+err; 982 cc.innerHTML='Error-#16'+err;
982 }); 983 });
983 984
985 + menu_name.innerHTML="특정 연락처와의 통계";
984 changeLabelText(month_w, "연락 수", logcount_w, "통화 수", callcount_w, "문자 수", smscount_w, "통화 시간", durationsum_w, "누적 연락 수", logcount_wnu, "누적 통화 수", callcount_wnu, "누적 문자 수",smscount_wnu, "누적 통화 시간", durationsum_wnu,"특정 연락처와의 통계"); 986 changeLabelText(month_w, "연락 수", logcount_w, "통화 수", callcount_w, "문자 수", smscount_w, "통화 시간", durationsum_w, "누적 연락 수", logcount_wnu, "누적 통화 수", callcount_wnu, "누적 문자 수",smscount_wnu, "누적 통화 시간", durationsum_wnu,"특정 연락처와의 통계");
985 window.myChart.destroy(); 987 window.myChart.destroy();
986 //connection.end(); 988 //connection.end();
...@@ -1075,6 +1077,7 @@ function get_date_rank(){ ...@@ -1075,6 +1077,7 @@ function get_date_rank(){
1075 }); 1077 });
1076 } 1078 }
1077 }) 1079 })
1080 + menu_name.innerHTML="특정 기간의 연락 순위";
1078 changeLabelText2(ranking_brnu, "누적 연락 수", logcount_brnu, "누적 통화 수", callcount_brnu, "누적 문자 수", smscount_brnu, ranking_brnuc, "누적 통화 수", callcount_brnuc, ranking_brnus, "누적 문자 수", smscount_brnus, ranking_brnud, "누적 통화 시간", durationsum_brnud, [],"특정 기간의 연락 순위"); 1081 changeLabelText2(ranking_brnu, "누적 연락 수", logcount_brnu, "누적 통화 수", callcount_brnu, "누적 문자 수", smscount_brnu, ranking_brnuc, "누적 통화 수", callcount_brnuc, ranking_brnus, "누적 문자 수", smscount_brnus, ranking_brnud, "누적 통화 시간", durationsum_brnud, [],"특정 기간의 연락 순위");
1079 window.myChart.destroy(); 1082 window.myChart.destroy();
1080 //connection.end(); 1083 //connection.end();
...@@ -1110,6 +1113,7 @@ function get_date_timeline(){ ...@@ -1110,6 +1113,7 @@ function get_date_timeline(){
1110 cc.innerHTML='Error-#24'+err; 1113 cc.innerHTML='Error-#24'+err;
1111 }); 1114 });
1112 1115
1116 + menu_name.innerHTML="특정 기간의 선호 연락 시간대";
1113 changeLabelText(timeline, "누적 연락 수", logcount_tb, "누적 통화 수", callcount_tb, "누적 문자 수", smscount_tb, "수", [], "수", [], "수",[] , "수",[], "수", [],"특정 기간의 선호 연락 시간대"); 1117 changeLabelText(timeline, "누적 연락 수", logcount_tb, "누적 통화 수", callcount_tb, "누적 문자 수", smscount_tb, "수", [], "수", [], "수",[] , "수",[], "수", [],"특정 기간의 선호 연락 시간대");
1114 window.myChart.destroy(); 1118 window.myChart.destroy();
1115 //connection.end(); 1119 //connection.end();
...@@ -1150,6 +1154,7 @@ function get_number_timeline(){ ...@@ -1150,6 +1154,7 @@ function get_number_timeline(){
1150 cc.innerHTML='Error-#26'+err; 1154 cc.innerHTML='Error-#26'+err;
1151 }); 1155 });
1152 1156
1157 + menu_name.innerHTML="특정 연락처와의 선호 연락 시간대";
1153 changeLabelText(timeline, "누적 연락 수", logcount_tw, "누적 통화 수", callcount_tw, "누적 문자 수", smscount_tw, "수", [], "수", [], "수",[] , "수",[], "수", [],"특정 연락처와의 선호 연락 시간대"); 1158 changeLabelText(timeline, "누적 연락 수", logcount_tw, "누적 통화 수", callcount_tw, "누적 문자 수", smscount_tw, "수", [], "수", [], "수",[] , "수",[], "수", [],"특정 연락처와의 선호 연락 시간대");
1154 window.myChart.destroy(); 1159 window.myChart.destroy();
1155 //connection.end(); 1160 //connection.end();
...@@ -1161,7 +1166,7 @@ var options_list = { ...@@ -1161,7 +1166,7 @@ var options_list = {
1161 }; 1166 };
1162 1167
1163 var options_list_res = { 1168 var options_list_res = {
1164 - valueNames: [ 'number','get_body','get_date', 'send_body', 'get_date','timediff' ], 1169 + valueNames: [ 'number','get_body','get_date', 'send_body', 'send_date','timediff', 'ttttt' ],
1165 item: '<div class="col-xl-3 col-md-6 mb-4"><div class="card border-left-success shadow h-100 py-2"><div class="card-body"><div class="row no-gutters align-items-center"><div class="col mr-2"><li id="listrow"><h3 id="listrow_number" class="number"></h3><div id=m3><p id="listrow_get_body" class="get_body"></p><p id="listrow_get_date" class="get_date"></p></div><div id=m3><p id="listrow_send_body" class="send_body"></p><p id="listrow_send_date" class="send_date"></p></div><p id="listrow_timediff" class="timediff"></p></li></div></div></div></div></div>' 1170 item: '<div class="col-xl-3 col-md-6 mb-4"><div class="card border-left-success shadow h-100 py-2"><div class="card-body"><div class="row no-gutters align-items-center"><div class="col mr-2"><li id="listrow"><h3 id="listrow_number" class="number"></h3><div id=m3><p id="listrow_get_body" class="get_body"></p><p id="listrow_get_date" class="get_date"></p></div><div id=m3><p id="listrow_send_body" class="send_body"></p><p id="listrow_send_date" class="send_date"></p></div><p id="listrow_timediff" class="timediff"></p></li></div></div></div></div></div>'
1166 }; 1171 };
1167 1172
...@@ -1481,6 +1486,7 @@ function get_date_list(){ ...@@ -1481,6 +1486,7 @@ function get_date_list(){
1481 } 1486 }
1482 values_list_between.push({type:type_temp, type_cs:type_cs_temp ,type_gs:type_gs_temp,number:number_temp,date:date_temp, body:body_temp, duration:duration_temp, delete:delete_temp}); 1487 values_list_between.push({type:type_temp, type_cs:type_cs_temp ,type_gs:type_gs_temp,number:number_temp,date:date_temp, body:body_temp, duration:duration_temp, delete:delete_temp});
1483 } 1488 }
1489 + menu_name.innerHTML="특정 기간의 목록";
1484 myList3 = new List('listspace3', options_list, values_list_between); 1490 myList3 = new List('listspace3', options_list, values_list_between);
1485 } 1491 }
1486 else 1492 else
...@@ -1566,6 +1572,7 @@ more6.addEventListener('click', function(){ ...@@ -1566,6 +1572,7 @@ more6.addEventListener('click', function(){
1566 chartspace.style="display:none"; 1572 chartspace.style="display:none";
1567 choicespace.style="display:none"; 1573 choicespace.style="display:none";
1568 choosed_menu="more6"; 1574 choosed_menu="more6";
1575 + menu_name.innerHTML="전체 기간의 평균 답장 시간";
1569 window.myChart.destroy(); 1576 window.myChart.destroy();
1570 }); 1577 });
1571 1578
...@@ -1579,6 +1586,7 @@ more7.addEventListener('click', function(){ ...@@ -1579,6 +1586,7 @@ more7.addEventListener('click', function(){
1579 chartspace.style="display:none"; 1586 chartspace.style="display:none";
1580 choicespace.style="display:none"; 1587 choicespace.style="display:none";
1581 choosed_menu="more7"; 1588 choosed_menu="more7";
1589 + menu_name.innerHTML="특정 연락처와의 평균 답장 시간";
1582 window.myChart.destroy(); 1590 window.myChart.destroy();
1583 }); 1591 });
1584 1592
...@@ -1597,7 +1605,7 @@ connection.query('drop table if exists sms_response; create table sms_response ( ...@@ -1597,7 +1605,7 @@ connection.query('drop table if exists sms_response; create table sms_response (
1597 avg_temp=Math.floor(tttt/60)+"분 "+Math.floor(tttt%60)+"초"; 1605 avg_temp=Math.floor(tttt/60)+"분 "+Math.floor(tttt%60)+"초";
1598 else 1606 else
1599 avg_temp=tttt+"초"; 1607 avg_temp=tttt+"초";
1600 - values_list_res.push({get_body:"해당 기간의 평균 답장 시간", send_body:avg_temp}); 1608 + values_list_res.push({get_body:"해당 기간의 평균 답장 시간", send_body:avg_temp, ttttt:tttt});
1601 } 1609 }
1602 else 1610 else
1603 cc.innerHTML='Error-#28'+err; 1611 cc.innerHTML='Error-#28'+err;
...@@ -1620,7 +1628,7 @@ connection.query('drop table if exists sms_response; create table sms_response ( ...@@ -1620,7 +1628,7 @@ connection.query('drop table if exists sms_response; create table sms_response (
1620 else 1628 else
1621 timediff_temp=tttt+"초"; 1629 timediff_temp=tttt+"초";
1622 1630
1623 - values_list_res.push({number:number_temp, get_body:get_body_temp, get_date:get_date_temp, send_body:send_body_temp, send_date:send_date_temp, timediff:timediff_temp}); 1631 + values_list_res.push({number:number_temp, get_body:get_body_temp, get_date:get_date_temp, send_body:send_body_temp, send_date:send_date_temp, timediff:timediff_temp, ttttt:tttt});
1624 } 1632 }
1625 myList4 = new List('listspace4', options_list_res, values_list_res); 1633 myList4 = new List('listspace4', options_list_res, values_list_res);
1626 } 1634 }
...@@ -1663,7 +1671,7 @@ function get_number_restime(){ ...@@ -1663,7 +1671,7 @@ function get_number_restime(){
1663 avg_temp=Math.floor(tttt/60)+"분 "+Math.floor(tttt%60)+"초"; 1671 avg_temp=Math.floor(tttt/60)+"분 "+Math.floor(tttt%60)+"초";
1664 else 1672 else
1665 avg_temp=tttt+"초"; 1673 avg_temp=tttt+"초";
1666 - values_list_res_with.push({get_body:"해당 기간의 평균 답장 시간", send_body:avg_temp}); 1674 + values_list_res_with.push({get_body:"해당 연락처와의 평균 답장 시간", send_body:avg_temp, ttttt:tttt});
1667 } 1675 }
1668 else 1676 else
1669 cc.innerHTML='Error-#30'+err; 1677 cc.innerHTML='Error-#30'+err;
...@@ -1686,8 +1694,9 @@ function get_number_restime(){ ...@@ -1686,8 +1694,9 @@ function get_number_restime(){
1686 else 1694 else
1687 timediff_temp=tttt+"초"; 1695 timediff_temp=tttt+"초";
1688 1696
1689 - values_list_res_with.push({number:number_temp, get_body:get_body_temp, get_date:get_date_temp, send_body:send_body_temp, send_date:send_date_temp, timediff:timediff_temp}); 1697 + values_list_res_with.push({number:number_temp, get_body:get_body_temp, get_date:get_date_temp, send_body:send_body_temp, send_date:send_date_temp, timediff:timediff_temp, ttttt:tttt});
1690 } 1698 }
1699 + menu_name.innerHTML="특정 연락처와의 평균 답장 시간";
1691 myList5 = new List('listspace5', options_list_res, values_list_res_with); 1700 myList5 = new List('listspace5', options_list_res, values_list_res_with);
1692 } 1701 }
1693 else 1702 else
......