function Getquest($shabloni) { $test = Getshabl($res['template_id']); for ($key = 1; $key < 23; $key++) { $rows1 = mysql_query("\tSELECT \tquest_id,\r\n\t\t\t\t\t\t\t\t\t\tnotes,\r\n\t\t\t\t\t\t\t\t\t\tqvota\r\n\t\t\t\t\t\t\t\tFROM \tshabloni\r\n\t\t\t\t\t\t\t\tWHERE \t`name`='{$test}' and quest_id='{$key}'"); $row = mysql_fetch_assoc($rows1); $notes[] = array('id' => $row[quest_id], 'notes' => $row[notes], 'qvota' => $row[qvota]); } $data .= '<div id="seller" class="' . ($notes[0][id] != "" ? "" : "dialog_hidden") . '" > <ul> <li style="margin-left:0;" id="0" onclick="seller(this.id)" class="seller_select">მისალმება</li> <li id="1" onclick="seller(this.id)" class="">შეთავაზება</li> <li id="2" onclick="seller(this.id)" class="">შედეგი</li> </ul> <div id="seller-0" > <fieldset style="width:97%; border: 4px solid #CDCDCD; float:left; overflow-y:scroll; max-height:400px;" class="' . ($notes[0][id] != "" ? "" : "dialog_hidden") . '"> <fieldset style="width:97%;" > <legend>მისალმება</legend> <table class="dialog-form-table"> <tr> <td><textarea style="width: 680px; height:80px; resize: none;" id="content" class="idle" name="content" cols="300" >' . $notes[0][notes] . '</textarea></td> </tr> <tr> <td style="text-align:right;"><span></span></td> </tr> </table> </fieldset> <table class="dialog-form-table" style="width:500px;"> <tr> <td style="text-align:right;"><span>აქვს</span></td> <td><input type="radio" name="hello_quest" value="1" ' . ($res['hello_quest'] == '1' ? "checked" : "") . '></td> <td><span>(ვაგრძელებთ)</span></td> </tr> <tr> <td style="text-align:right;"><span>სურს სხვა დროს</span></td> <td><input type="radio" name="hello_quest" value="2" ' . ($res['hello_quest'] == '2' ? "checked" : "") . '></td> <td><span>(ვიფორმირებთ დავალებას)</span></td> </tr> <tr> <td style="text-align:right;"><span>არ სურს</span></td> <td><input type="radio" name="hello_quest" value="3" ' . ($res['hello_quest'] == '3' ? "checked" : "") . '></td> <td><span>(ვასრულებთ)</span></td> </tr> </table> <fieldset style="width:97%; float:left; "> <legend>კომენტარი</legend> <table class="dialog-form-table"> <tr> <td><textarea style="width: 680px; height:80px; resize: none;" id="hello_comment" class="idle" name="content" cols="300" >' . $res['hello_comment'] . '</textarea></td> </tr> </table> </fieldset> <button style="float:right; margin-top:10px;" onclick="seller(1)" class="next"> >> </button> <button style="float:right; margin-top:10px;" class="done">დასრულება</button> </fieldset> </div> <div id="seller-1" class="dialog_hidden"> <fieldset style="width:97%; float:left; overflow-y:scroll; max-height:400px;"> <fieldset style="width:97%;" class="' . ($notes[1][id] != "" ? "" : "dialog_hidden") . '"> <legend>შეთავაზება</legend> <table class="dialog-form-table"> <tr> <td><textarea style="width: 680px; height:80px; resize: none;" id="content" class="idle" name="content" cols="300" >' . $notes[1][notes] . '</textarea></td> </tr> <tr> <td style="text-align:right;"><span></span></td> </tr> </table> </fieldset> <fieldset style="width:97%;" class="' . ($notes[2][id] != "" ? "" : "dialog_hidden") . '"> <legend>პროდუქტი</legend> <div id="dt_example" class="inner-table"> <div style="width:100%;" id="container" > <div id="dynamic"> <div id="button_area"> <button id="add_button_product">დამატება</button> </div> <table class="" id="sub1" style="width: 100%;"> <thead> <tr id="datatable_header"> <th style="display:none">ID</th> <th style="width:4%;">#</th> <th style="">პაკეტი</th> <th style="">ფასი</th> <th style="">აღწერილობა</th> <th style="">შენიშვნა</th> </tr> </thead> <thead> <tr class="search_header"> <th class="colum_hidden"> <input type="text" name="search_id" value="" class="search_init" style="width: 10px"/> </th> <th> <input style="width:100px;" type="text" name="search_overhead" value="ფილტრი" class="search_init" /> </th> <th> <input style="width:100px;" type="text" name="search_partner" value="ფილტრი" class="search_init" /> </th> <th> <input style="width:100px;" type="text" name="search_overhead" value="ფილტრი" class="search_init" /> </th> <th> <input style="width:100px;" type="text" name="search_partner" value="ფილტრი" class="search_init" /> </th> </tr> </thead> </table> </div> <div class="spacer"> </div> </div> <table class="dialog-form-table" style="margin-top:10px;"> <tr> <td><textarea style="width: 99%; height:80px; resize: none;" id="content" class="idle" name="content" cols="300" >' . $notes[2][notes] . '</textarea></td> </tr> <tr> <td style="text-align:right;"><span></span></td> </tr> </table> </fieldset> <fieldset style="width:97%; float:left; " class="' . ($notes[3][id] != "" ? "" : "dialog_hidden") . '"> <legend>საჩუქარი</legend> <div id="dt_example" class="inner-table"> <div style="width:100%;" id="container" > <div id="dynamic"> <div id="button_area"> <button id="add_button_gift">დამატება</button> </div> <table class="" id="sub2" style="width: 100%;"> <thead> <tr id="datatable_header"> <th style="display:none">ID</th> <th style="width:4%;">#</th> <th style="">პაკეტი</th> <th style="">ფასი</th> <th style="">აღწერილობა</th> <th style="">შენიშვნა</th> </tr> </thead> <thead> <tr class="search_header"> <th class="colum_hidden"> <input type="text" name="search_id" value="" class="search_init" style="width: 10px"/> </th> <th> <input style="width:100px;" type="text" name="search_overhead" value="ფილტრი" class="search_init" /> </th> <th> <input style="width:100px;" type="text" name="search_partner" value="ფილტრი" class="search_init" /> </th> <th> <input style="width:100px;" type="text" name="search_overhead" value="ფილტრი" class="search_init" /> </th> <th> <input style="width:100px;" type="text" name="search_partner" value="ფილტრი" class="search_init" /> </th> </tr> </thead> </table> </div> <div class="spacer"> </div> </div> <table class="dialog-form-table" style="margin-top:10px;"> <tr> <td><textarea style="width: 680px; height:80px; resize: none;" id="content" class="idle" name="content" cols="300" >' . $notes[3][notes] . '</textarea></td> </tr> <tr> <td style="text-align:right;"><span></span></td> </tr> </table> </fieldset> <fieldset class="' . ($notes[20][id] != "" ? "" : "dialog_hidden") . '"> <legend>ინფორმაცია</legend> <table class="dialog-form-table" style="width:250px; float:left;"> <tr> <td style="text-align:right;">მოისმინა ბოლომდე</td> <td><input type="radio" name="info_quest" value="1" ' . ($res['info_quest'] == '1' ? "checked" : "") . '></td> </tr> <tr> <td style="text-align:right;">მოისმინა და კითხვები დაგვისვა</td> <td><input type="radio" name="info_quest" value="2" ' . ($res['info_quest'] == '2' ? "checked" : "") . '></td> </tr> <tr> <td style="text-align:right;">შეგვაწყვეტინა</td> <td><input type="radio" name="info_quest" value="3" ' . ($res['info_quest'] == '3' ? "checked" : "") . '></td> </tr> </table> <table class="dialog-form-table" style="width:350px; float:left; margin-left: 15px;"> <tr> <td>კომენტარი</td> </tr> <tr> <td><textarea style="width: 100%; height:50px; resize: none;" id="info_comment" class="idle" name="content" cols="300" >' . $res['info_comment'] . '</textarea></td> </tr> </table> </fieldset> <button style="float:right; margin-top:10px;" onclick="seller(2)" class="next"> >> </button> <button style="float:right; margin-top:10px;" onclick="seller(0)" class="back"> << </button> </fieldset> </div> <div id="seller-2" class="dialog_hidden"> <fieldset style="width:97%; float:left; overflow-y:scroll; max-height:400px;"> <fieldset style="width:97%;" class="' . ($notes[4][id] != "" ? "" : "dialog_hidden") . '"> <legend>შედეგი</legend> <table class="dialog-form-table"> <tr> <td><textarea style="width: 680px; height:80px; resize: none;" id="content" class="idle" name="content" cols="300" >' . $notes[4][notes] . '</textarea></td> </tr> <tr> <td style="text-align:right;"><span></span></td> </tr> </table> <table class="dialog-form-table"> <tr> <td style="text-align:right;"><span>დადებითი</span></td> <td><input type="radio" name="result_quest" value="1" ' . ($res['result_quest'] == '1' ? "checked" : "") . '></td> <td><span>(ვაგრძელებთ)</span></td> </tr> <tr> <td style="text-align:right;"><span>უარყოფითი</span></td> <td><input type="radio" name="result_quest" value="2" ' . ($res['result_quest'] == '2' ? "checked" : "") . '></td> <td><span>(ვასრულებთ)</span></td> </tr> <tr> <td style="text-align:right;"><span>მოიფიქრებს</span></td> <td><input type="radio" name="result_quest" value="3" ' . ($res['result_quest'] == '3' ? "checked" : "") . '></td> <td><span>(ვუთანხმებთ განმეორებითი ზარის დროს. ვიფორმირებთ დავალებას)</span></td> </tr> </table> <table class="dialog-form-table"> <tr> <td><span style="color:#649CC3">კომენტარი</span></td> </tr> <tr> <td><textarea style="width: 400px; height:60px; resize: none;" id="content" class="idle" name="content" cols="300" >' . $res['result_comment'] . '</textarea></td> <td style="width:250px;text-align:right;"><button id="complete">დაასრულეთ</button></td> </tr> </table> </fieldset> <fieldset style="width:97%; float:left; " class="' . ($notes[5][id] != "" ? "" : "dialog_hidden") . '"> <legend>მიწოდება</legend> <table class="dialog-form-table"> <tr> <td><textarea style="width: 680px; height:80px; resize: none;" id="content" class="idle" name="content" cols="300" >' . $notes[5][notes] . '</textarea></td> </tr> <tr> <td style="text-align:right;"><span></span></td> </tr> </table> <table class="dialog-form-table"> <tr> <td style="width:150px;">მიწოდება დაიწყება</td> <td> <input type="text" id="send_date" class="idle" onblur="this.className=\'idle\'" value="' . $res['send_date'] . '" /> </td> <td> -დან</td> </tr> </table> </fieldset> <fieldset style="width:97%; float:left; " class="' . ($notes[6][id] != "" ? "" : "dialog_hidden") . '"> <legend>ანგარიშსწორება</legend> <table class="dialog-form-table"> <tr> <td><textarea style="width: 680px; height:80px; resize: none;" id="content" class="idle" name="content" cols="300" >' . $notes[6][notes] . '</textarea></td> </tr> <tr> <td style="text-align:right;"><span></span></td> </tr> </table> <table class="dialog-form-table"> <tr> <td><input type="radio" name="payment_quest" value="1" ' . ($res['payment_quest'] == '1' ? "checked" : "") . '></td> <td><span>ნაღდი</span></td> </tr> <tr> <td><input type="radio" name="payment_quest" value="2" ' . ($res['payment_quest'] == '2' ? "checked" : "") . '></td> <td><span>უნაღდო</span></td> </tr> </table> <table class="dialog-form-table"> <tr> <td><span style="color:#649CC3">კომენტარი</span></td> </tr> <tr> <td><textarea style="width: 680px; height:60px; resize: none;" id="content" class="idle" name="content" cols="300" >' . $res['payment_comment'] . '</textarea></td> </tr> </table> </fieldset> <button style="float:right; margin-top:10px;" class="done">დასრულება</button> <button style="float:right; margin-top:10px;" onclick="seller(1)" class="next"> << </button> </fieldset> </div> </div>'; // სატელეფონო გაყიდვები დასასრული // სატელეფონო კვლევა დასაწყისი $data .= '<div id="research" class="' . ($notes[7][id] != "" ? "" : "dialog_hidden") . '"> <ul> <li style="margin-left:0;" id="r0" onclick="research(this.id)" class="seller_select">შესავალი</li> <li id="r1" onclick="research(this.id)" class="">დემოგრაფიული ბლოკი</li> <li id="r2" onclick="research(this.id)" class="">ძირითადი ნაწილი</li> </ul> <div id="research-0"> <fieldset style="width:97%; float:left; overflow-y:scroll; max-height:400px;"> <fieldset style="width:97%;" class="' . ($notes[7][id] != "" ? "" : "dialog_hidden") . '"> <legend>შესავალი</legend> <table class="dialog-form-table"> <tr> <td><textarea style="width: 680px; height:80px; resize: none;" id="content" class="idle" name="content" cols="300" >' . $notes[7][notes] . '</textarea></td> </tr> <tr> <td style="text-align:right;"><span></span></td> </tr> </table> <table class="dialog-form-table" style="width:500px;"> <tr> <td style="text-align:center;"><span>უარი მონაწილეობაზე</span></td> <td><input type="radio" name="preface_quest" value="1" ' . ($res['preface_quest'] == '1' ? "checked" : "") . '></td> <td><button class="done">დასრულება</button></td> </tr> </table> </fieldset> <table class="dialog-form-table" style="width:300px;"> <tr> <td style="font-weight:bold;">თქვენი სახელი, როგორ მოგმართოთ?</td> </tr> <tr> <td><input type="text" style="width:100%;" id="preface_name" class="idle" onblur="this.className=\'idle\'" value="' . $res['preface_name'] . '" /></td> </tr> </table> <button style="float:right; margin-top:10px;" onclick="research(\'r1\')" class="next"> >> </button> </fieldset> </div> <div id="research-1" class="dialog_hidden"> <fieldset style="width:97%; float:left; overflow-y:scroll; max-height:400px;"> <fieldset style="width:97%;"> <legend>დემოგრაფიული ბლოკი</legend> <div class="' . ($notes[8][id] != "" ? "" : "dialog_hidden") . '"> <table class="dialog-form-table"> <tr> <td style="width:30px; font-weight:bold;">D1</td> <td style="font-weight:bold;">თუ შეიძლება მითხარით, მუდმივად ცხოვრობთ თუ არა ამ მისამართზე?<br><span style="font-weight:normal;">(6 თვე მაინც უნდა ცხოვრებდეს)</span></td> <td></td> </tr> </table> <table class="dialog-form-table"> <tr> <td style="width:50px;">დიახ</td> <td><input type="radio" name="d1" value="1" ' . ($res['d1'] == '1' ? "checked" : "") . '></td> <td style="width:150px; text-align:right;">დაიცავით ქვოტა</td> </tr> <tr> <td>არა</td> <td><input type="radio" name="d1" value="2" ' . ($res['d1'] == '2' ? "checked" : "") . '></td> <td style="width:150px; text-align:right;"><button style="" class="done">დაასრულეთ</button></td> </tr> </table> <table class="dialog-form-table" style="margin-top:10px;"> <tr> <td><textarea style="width: 680px; height:60px; resize: none;" id="content" class="idle" name="content" cols="300" >' . $notes[8][notes] . '</textarea></td> </tr> <tr> <td style="text-align:right;"></td> </tr> </table> <hr> </div> <div class="' . ($notes[9][id] != "" ? "" : "dialog_hidden") . '"> <table class="dialog-form-table"> <tr> <td style="width:30px; font-weight:bold;">D2</td> <td style="font-weight:bold;">თუ შეიძლება მითხარით, ხომ არ მიგიღიათ მონაწილეობა რაიმე კვლევაში ბოლო 6 თვის განმავლობაში?</span></td> <td></td> </tr> </table> <table class="dialog-form-table"> <tr> <td style="width:50px;">დიახ</td> <td><input type="radio" name="d2" value="1" ' . ($res['d2'] == '1' ? "checked" : "") . '></td> <td style="width:150px; text-align:right;">დაიცავით ქვოტა</td> </tr> <tr> <td>არა</td> <td><input type="radio" name="d2" value="2" ' . ($res['d2'] == '2' ? "checked" : "") . '></td> <td style="width:150px; text-align:right;"><button style="" class="done">დაასრულეთ</button></td> </tr> </table> <table class="dialog-form-table" style="margin-top:10px;"> <tr> <td><textarea style="width: 680px; height:60px; resize: none;" id="content" class="idle" name="content" cols="300" >' . $notes[9][notes] . '</textarea></td> </tr> <tr> <td style="text-align:right;"></td> </tr> </table> <hr> </div> <div class="' . ($notes[10][id] != "" ? "" : "dialog_hidden") . '"> <table class="dialog-form-table"> <tr> <td style="width:30px; font-weight:bold;">D3</td> <td style="font-weight:bold;">გთხოვთ დამიზუსტოთ, თბილისის რომელ რაიონში ცხოვრობთ?</span></td> <td></td> </tr> </table> <table class="dialog-form-table"> <tr> <td style="width:150px; text-align:right;">ვაკე-საბურთალო</td> <td><input type="radio" name="d3" value="1" ' . ($res['d3'] == '1' ? "checked" : "") . '></td> <td style="width:150px; text-align:right;">გლდანი-ნაძალადევი</td> <td><input type="radio" name="d3" value="2" ' . ($res['d3'] == '2' ? "checked" : "") . '></td> <td style="width:150px; text-align:right;">დაიცავით ქვოტა</td> </tr> <tr> <td style="width:150px; text-align:right;">დიდუბე-ჩუღურეთი</td> <td><input type="radio" name="d3" value="3" ' . ($res['d3'] == '3' ? "checked" : "") . '></td> <td style="width:150px; text-align:right;">ისანი-სამგორი</td> <td><input type="radio" name="d3" value="4" ' . ($res['d3'] == '4' ? "checked" : "") . '></td> </tr> <tr> <td style="width:150px; text-align:right;">ძვ.თბილისი</td> <td><input type="radio" name="d3" value="5" ' . ($res['d3'] == '5' ? "checked" : "") . '></td> <td style="width:150px; text-align:right;">ვდიდგორი</td> <td><input type="radio" name="d3" value="6" ' . ($res['d3'] == '6' ? "checked" : "") . '></td> </tr> </table> <table class="dialog-form-table" style="margin-top:10px;"> <tr> <td><textarea style="width: 680px; height:60px; resize: none;" id="content" class="idle" name="content" cols="300" >' . $notes[10][notes] . '</textarea></td> </tr> <tr> <td style="text-align:right;"></td> </tr> </table> <hr> </div> <div class="' . ($notes[11][id] != "" ? "" : "dialog_hidden") . '"> <table class="dialog-form-table"> <tr> <td style="width:30px; font-weight:bold;">D4</td> <td style="font-weight:bold;">გთხოვთ მითხრათ, ხომ არ მუშაობთ თქვენ ან თქვენი ოჯახის წევრი, ახლობელი/მეგობარი </span></td> <td></td> </tr> </table> <table class="dialog-form-table"> <tr> <td style="width:250px;">ტელევიზია (დაასრულეთ)</td> <td><input type="radio" name="d4" value="1" ' . ($res['d4'] == '1' ? "checked" : "") . '></td> <td style="width:150px; text-align:right;">დაიცავით ქვოტა</td> </tr> <tr> <td>რადიო (დაასრულეთ)</td> <td><input type="radio" name="d4" value="2" ' . ($res['d4'] == '2' ? "checked" : "") . '></td> </tr> <tr> <td>პრესა, ბეჭდვითი მედია (დაასრულეთ)</td> <td><input type="radio" name="d4" value="3" ' . ($res['d4'] == '3' ? "checked" : "") . '></td> </tr> <tr> <td>სარეკლამო (დაასრულეთ)</td> <td><input type="radio" name="d4" value="4" ' . ($res['d4'] == '4' ? "checked" : "") . '></td> </tr> <tr> <td>კვლევითი კომპანია (დაასრულეთ)</td> <td><input type="radio" name="d4" value="5" ' . ($res['d4'] == '5' ? "checked" : "") . '></td> <td style="width:150px; text-align:right;"><button style="" class="done">დაასრულეთ</button></td> </tr> <tr> <td>არცერთი (გააგრძელეთ)</td> <td><input type="radio" name="d4" value="6" ' . ($res['d4'] == '6' ? "checked" : "") . '></td> </tr> </table> <table class="dialog-form-table" style="margin-top:10px;"> <tr> <td><textarea style="width: 680px; height:60px; resize: none;" id="content" class="idle" name="content" cols="300" >' . $notes[11][notes] . '</textarea></td> </tr> <tr> <td style="text-align:right;"></td> </tr> </table> <hr> </div> <div class="' . ($notes[12][id] != "" ? "" : "dialog_hidden") . '"> <table class="dialog-form-table"> <tr> <td style="width:30px; font-weight:bold;">D5</td> <td style="font-weight:bold;">სქესი</span></td> <td></td> </tr> </table> <table class="dialog-form-table"> <tr> <td style="width:50px;">მამაკაცი</td> <td><input type="radio" name="d5" value="1" ' . ($res['d5'] == '1' ? "checked" : "") . '></td> <td style="width:150px; text-align:right;">დაიცავით ქვოტა</td> </tr> <tr> <td>ქალი</td> <td><input type="radio" name="d5" value="2" ' . ($res['d5'] == '2' ? "checked" : "") . '></td> </tr> </table> <table class="dialog-form-table" style="margin-top:10px;"> <tr> <td><textarea style="width: 680px; height:60px; resize: none;" id="content" class="idle" name="content" cols="300" >' . $notes[12][notes] . '</textarea></td> </tr> <tr> <td style="text-align:right;"></td> </tr> </table> <hr> </div> <div class="' . ($notes[13][id] != "" ? "" : "dialog_hidden") . '"> <table class="dialog-form-table"> <tr> <td style="width:30px; font-weight:bold;">D6</td> <td style="font-weight:bold;">ასაკი</span></td> <td></td> </tr> </table> <table class="dialog-form-table"> <tr> <td style="width:50px; text-align:right;">12-17</td> <td><input type="radio" name="d6" value="1" ' . ($res['d6'] == '1' ? "checked" : "") . '></td> <td style="width:50px; text-align:right;">35-44</td> <td><input type="radio" name="d6" value="2" ' . ($res['d6'] == '2' ? "checked" : "") . '></td> <td style="width:150px; text-align:right;">დაიცავით ქვოტა</td> </tr> <tr> <td style="width:50px; text-align:right;">18-24</td> <td><input type="radio" name="d6" value="3" ' . ($res['d6'] == '3' ? "checked" : "") . '></td> <td style="width:50px; text-align:right;">45-54</td> <td><input type="radio" name="d6" value="4" ' . ($res['d6'] == '4' ? "checked" : "") . '></td> </tr> <tr> <td style="width:50px; text-align:right;">25-34</td> <td><input type="radio" name="d6" value="5" ' . ($res['d6'] == '5' ? "checked" : "") . '></td> <td style="width:50px; text-align:right;">55-65</td> <td><input type="radio" name="d6" value="6" ' . ($res['d6'] == '6' ? "checked" : "") . '></td> <td style="width:150px; text-align:right;"><button style="" class="done">დაასრულეთ</button></td> </tr> <tr> <td></td> <td></td> <td style="width:50px; text-align:right;">65 +</td> <td><input type="radio" name="d6" value="7" ' . ($res['d6'] == '7' ? "checked" : "") . '></td> </tr> </table> <table class="dialog-form-table" style="margin-top:10px;"> <tr> <td><textarea style="width: 680px; height:60px; resize: none;" id="content" class="idle" name="content" cols="300" >' . $notes[13][notes] . '</textarea></td> </tr> <tr> <td style="text-align:right;"></td> </tr> </table> <hr> </div> <div class="' . ($notes[14][id] != "" ? "" : "dialog_hidden") . '"> <table class="dialog-form-table"> <tr> <td style="width:30px; font-weight:bold;">D7</td> <td style="font-weight:bold;">ჩამოთვლილთაგან რომელი გამოხატავს ყველაზე უკეთ თქვენი ოჯახის მატერიალურ მდგომარეობას?</span></td> <td></td> </tr> </table> <table class="dialog-form-table"> <tr> <td style="width:150px;">ძალიან დაბალი</td> <td><input type="radio" name="d7" value="1" ' . ($res['d7'] == '1' ? "checked" : "") . '></td> <td style="width:150px; text-align:right;">დაიცავით ქვოტა</td> </tr> <tr> <td>დაბალი</td> <td><input type="radio" name="d7" value="2" ' . ($res['d7'] == '2' ? "checked" : "") . '></td> </tr> <tr> <td>საშუალო</td> <td><input type="radio" name="d7" value="3" ' . ($res['d7'] == '3' ? "checked" : "") . '></td> </tr> <tr> <td>მაღალი</td> <td><input type="radio" name="d7" value="4" ' . ($res['d7'] == '4' ? "checked" : "") . '></td> </tr> <tr> <td>კძალიან მაღალი</td> <td><input type="radio" name="d7" value="5" ' . ($res['d7'] == '5' ? "checked" : "") . '></td> </tr> </table> <table class="dialog-form-table" style="margin-top:10px;"> <tr> <td><textarea style="width: 680px; height:60px; resize: none;" id="content" class="idle" name="content" cols="300" >' . $notes[14][notes] . '</textarea></td> </tr> <tr> <td style="text-align:right;"></td> </tr> </table> <hr> </div> <div class="' . ($notes[15][id] != "" ? "" : "dialog_hidden") . '"> <table class="dialog-form-table"> <tr> <td style="width:30px; font-weight:bold;">D8</td> <td style="font-weight:bold;">თუ შეიძლება მითხარით, რამდენ ლარს შეადგენს თქვენი ოჯახის ყოველთვიური შემოსავალი?</span></td> <td></td> </tr> </table> <table class="dialog-form-table"> <tr> <td style="width:90px; text-align:right;">200 ლარამდე</td> <td><input type="radio" name="d8" value="1" ' . ($res['d8'] == '1' ? "checked" : "") . '></td> <td style="width:80px; text-align:right;">100-1500</td> <td><input type="radio" name="d8" value="2" ' . ($res['d8'] == '2' ? "checked" : "") . '></td> <td style="width:150px; text-align:right;">დაიცავით ქვოტა</td> </tr> <tr> <td style="width:80px; text-align:right;">200-500</td> <td><input type="radio" name="d8" value="3" ' . ($res['d8'] == '3' ? "checked" : "") . '></td> <td style="width:80px; text-align:right;">1500-2000</td> <td><input type="radio" name="d8" value="4" ' . ($res['d8'] == '4' ? "checked" : "") . '></td> </tr> <tr> <td style="width:80px; text-align:right;">500-1000</td> <td><input type="radio" name="d8" value="5" ' . ($res['d8'] == '5' ? "checked" : "") . '></td> <td style="width:80px; text-align:right;">2000+</td> <td><input type="radio" name="d8" value="6" ' . ($res['d8'] == '6' ? "checked" : "") . '></td> </tr> <tr> <td></td> <td></td> <td style="width:80px; text-align:right;">მპგ</td> <td><input type="radio" name="d8" value="7" ' . ($res['d8'] == '7' ? "checked" : "") . '></td> </tr> </table> <table class="dialog-form-table" style="margin-top:10px;"> <tr> <td><textarea style="width: 680px; height:60px; resize: none;" id="content" class="idle" name="content" cols="300" >' . $notes[15][notes] . '</textarea></td> </tr> <tr> <td style="text-align:right;"></td> </tr> </table> <hr> </div> <div class="' . ($notes[16][id] != "" ? "" : "dialog_hidden") . '"> <table class="dialog-form-table"> <tr> <td style="width:30px; font-weight:bold;">D9</td> <td style="font-weight:bold;">თუ შეიძლება მითხარით, რამდენ ლარს შეადგენს თქვენი პირადი ყოველთვიური შემოსავალი?</span></td> <td></td> </tr> </table> <table class="dialog-form-table"> <tr> <td style="width:90px; text-align:right;">200 ლარამდე</td> <td><input type="radio" name="d9" value="1" ' . ($res['d9'] == '1' ? "checked" : "") . '></td> <td style="width:80px; text-align:right;">100-1500</td> <td><input type="radio" name="d9" value="2" ' . ($res['d9'] == '2' ? "checked" : "") . '></td> <td style="width:150px; text-align:right;">დაიცავით ქვოტა</td> </tr> <tr> <td style="width:80px; text-align:right;">200-500</td> <td><input type="radio" name="d9" value="3" ' . ($res['d9'] == '3' ? "checked" : "") . '></td> <td style="width:80px; text-align:right;">1500-2000</td> <td><input type="radio" name="d9" value="4" ' . ($res['d9'] == '4' ? "checked" : "") . '></td> </tr> <tr> <td style="width:80px; text-align:right;">500-1000</td> <td><input type="radio" name="d9" value="5" ' . ($res['d9'] == '5' ? "checked" : "") . '></td> <td style="width:80px; text-align:right;">2000+</td> <td><input type="radio" name="d9" value="6" ' . ($res['d9'] == '6' ? "checked" : "") . '></td> </tr> <tr> <td></td> <td></td> <td style="width:80px; text-align:right;">მპგ</td> <td><input type="radio" name="d9" value="7" ' . ($res['d9'] == '7' ? "checked" : "") . '></td> </tr> </table> <table class="dialog-form-table" style="margin-top:10px;"> <tr> <td><textarea style="width: 680px; height:60px; resize: none;" id="content" class="idle" name="content" cols="300" >' . $notes[16][notes] . '</textarea></td> </tr> <tr> <td style="text-align:right;"></td> </tr> </table> <hr> </div> <div class="' . ($notes[17][id] != "" ? "" : "dialog_hidden") . '"> <table class="dialog-form-table"> <tr> <td style="width:30px; font-weight:bold;">D10</td> <td style="font-weight:bold;">ხართ თუ არა დასაქმებული?</span></td> <td></td> </tr> </table> <table class="dialog-form-table"> <tr> <td style="width:50px; text-align:right;">დიახ</td> <td><input type="radio" name="d10" value="1" ' . ($res['d10'] == '1' ? "checked" : "") . '></td> <td style="width:150px; text-align:right;">დაიცავით ქვოტა</td> </tr> <tr> <td style="width:50px; text-align:right;">არა</td> <td><input type="radio" name="d10" value="2" ' . ($res['d10'] == '2' ? "checked" : "") . '></td> </tr> </table> <table class="dialog-form-table" style="margin-top:10px;"> <tr> <td><textarea style="width: 680px; height:60px; resize: none;" id="content" class="idle" name="content" cols="300" >' . $notes[17][notes] . '</textarea></td> </tr> <tr> <td style="text-align:right;"></td> </tr> </table> <hr> </div> <div class="' . ($notes[18][id] != "" ? "" : "dialog_hidden") . '"> <table class="dialog-form-table"> <tr> <td style="width:30px; font-weight:bold;">D11</td> <td style="font-weight:bold;">თუ შეიძლება მითხარით, რა ტიპის ორგანიზაციაში მუშაობთ?</span></td> <td></td> </tr> </table> <table class="dialog-form-table"> <tr> <td style="width:150px; text-align:right;">კერძო სექტორი</td> <td><input type="radio" name="d11" value="1" ' . ($res['d11'] == '1' ? "checked" : "") . '></td> <td style="width:150px; text-align:right;">თვითდასაქმებული</td> <td><input type="radio" name="d11" value="2" ' . ($res['d11'] == '2' ? "checked" : "") . '></td> <td style="width:150px; text-align:right;">დაიცავით ქვოტა</td> </tr> <tr> <td style="width:150px; text-align:right;">საჯარო სამსახური</td> <td><input type="radio" name="d11" value="3" ' . ($res['d11'] == '3' ? "checked" : "") . '></td> <td style="width:150px; text-align:right;">მპგ</td> <td><input type="radio" name="d11" value="4" ' . ($res['d11'] == '4' ? "checked" : "") . '></td> </tr> <tr> <td style="width:150px; text-align:right;">არასამთავრობო/td> <td><input type="radio" name="d11" value="5" ' . ($res['d11'] == '5' ? "checked" : "") . '></td> </tr> </table> <table class="dialog-form-table" style="margin-top:10px;"> <tr> <td><textarea style="width: 680px; height:60px; resize: none;" id="content" class="idle" name="content" cols="300" >' . $notes[18][notes] . '</textarea></td> </tr> <tr> <td style="text-align:right;"></td> </tr> </table> <hr> </div> <div class="' . ($notes[19][id] != "" ? "" : "dialog_hidden") . '"> <table class="dialog-form-table"> <tr> <td style="width:30px; font-weight:bold;">D12</td> <td style="font-weight:bold;">გყავთ თუ არა ავტომობილი</span></td> <td></td> </tr> </table> <table class="dialog-form-table"> <tr> <td style="width:50px; text-align:right;">დიახ</td> <td><input type="radio" name="d12" value="1" ' . ($res['d12'] == '1' ? "checked" : "") . '></td> <td style="width:150px; text-align:right;">დაიცავით ქვოტა</td> </tr> <tr> <td style="width:50px; text-align:right;">არა</td> <td><input type="radio" name="d12" value="2" ' . ($res['d12'] == '2' ? "checked" : "") . '></td> </tr> </table> <table class="dialog-form-table" style="margin-top:10px;"> <tr> <td><textarea style="width: 680px; height:60px; resize: none;" id="content" class="idle" name="content" cols="300" >' . $notes[19][notes] . '</textarea></td> </tr> <tr> <td style="text-align:right;"></td> </tr> </table> <hr> </div> <button style="float:right; margin-top:10px;" onclick="research(\'r2\')" class="next"> >> </button> <button style="float:right; margin-top:10px;" onclick="research(\'r0\')" class="back"> << </button> </fieldset> </div> <div id="research-2" class="dialog_hidden"> <fieldset style="width:97%; float:left; overflow-y:scroll; max-height:400px;"> <fieldset ' . ($notes[21][id] != "" ? "" : "dialog_hidden") . '> <legend>რადიო</legend> <table class="dialog-form-table"> <tr> <td style="font-weight:bold; width:30px;">Q1</td> <td style="font-weight:bold; font-size:12px;">თუ შეიძლება, მე ჩამოგითვლით რადიოსადგურებს და თქვენ მიპასუხეთ, რომელ რადიოს უსმენდით გუშინ, თუნდაც მხოლოდ 5 წუთით? კიდევ, კიდევ.</td> </tr> </table> <table class="dialog-form-table"> <tr> <td><span>რადიო 1</span></td> <td><input type="radio" name="q1" value="1" ' . ($res['q1'] == '1' ? "checked" : "") . '></td> <td style="width:180px; text-align:right;"><span>არ ვუსმენდი</span></td> <td><input type="radio" name="q1" value="2" ' . ($res['q1'] == '2' ? "checked" : "") . '></td> </tr> <tr> <td><span>რადიო 2</span></td> <td><input type="radio" name="q1" value="3" ' . ($res['q1'] == '3' ? "checked" : "") . '></td> </tr> </table> <table class="dialog-form-table"> <tr> <td><textarea style="width: 400px; height:60px; resize: none;" id="content" class="idle" name="content" cols="300" >' . $res['content'] . '</textarea></td> <td style="width:250px;text-align:right;"><button class="done">დაასრულეთ</button></td> </tr> </table> </fieldset> <button style="float:right; margin-top:10px;" onclick="research(\'r1\')" class="back"> << </button> </fieldset> </div> </div>'; return $data; }
function GetPage($res = '', $shabloni) { $data .= '<div id="dialog-form"> <div style="float: left; width: 710px;"> <fieldset > <legend>ძირითადი ინფორმაცია</legend> <table width="65%" class="dialog-form-table"> <tr> <td style="width: 180px;"><label for="">დავალების №</label></td> <td style="width: 180px;"><label for="">თარიღი</label></td> </tr> <tr> <td> <input type="text" id="id" class="idle" onblur="this.className=\'idle\'" disabled value="' . $res['id'] . '" disabled="disabled" /> </td> <td> <input type="text" id="c_date" class="idle" onblur="this.className=\'idle\'" disabled value="' . $res['date'] . '" disabled="disabled" /> </td> </tr> </table><br> <fieldset style="width:250px; float:left;"> <legend>დავალების ტიპი</legend> <table class="dialog-form-table"> <tr> <td><select style="width: 305px;" id="task_type_id_seller" disabled class="idls object">' . Gettask_type($res['task_type_id']) . '</select></td> </tr> </table> </fieldset> <fieldset style="width:340px; float:left; margin-left:10px;"> <legend>სცენარის დასახელება</legend> <table class="dialog-form-table"> <tr> <td><select style="width: 375px;" id="shabloni" disabled class="idls object">' . Getshablon('', $res['template_id']) . '</select></td> </tr> </table> </fieldset> '; $test = Getshabl($res['template_id']); for ($key = 1; $key < 28; $key++) { $rows1 = mysql_query("\tSELECT \tquest_id,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tnotes,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tqvota\r\n\t\t\t\t\t\t\t\t\t\t\t\tFROM \tshabloni\r\n\t\t\t\t\t\t\t\t\t\t\t\tWHERE \t`name`='{$test}' and quest_id='{$key}'"); $row = mysql_fetch_assoc($rows1); $notes[] = array('id' => $row[quest_id], 'notes' => $row[notes], 'qvota' => $row[qvota]); } // სატელეფონო გაყიდვები დასაწყისი $data .= ' <div id="quest"> <div id="seller" class="' . ($notes[0][id] != "" ? "" : "dialog_hidden") . '" > <ul> <li style="margin-left:0;" id="0" onclick="seller(this.id)" class="seller_select">მისალმება</li> <li id="1" onclick="seller(this.id)" class="">შეთავაზება</li> <li id="2" onclick="seller(this.id)" class="">შედეგი</li> </ul> <div id="seller-0" > <fieldset style="width:97%; float:left; overflow-y:scroll; max-height:400px;" class="' . ($notes[0][id] != "" ? "" : "dialog_hidden") . '"> <fieldset style="width:97%;" > <legend>მისალმება</legend> <table class="dialog-form-table"> <tr> <td><textarea style="width: 680px; height:100px; resize: vertical; background: #EBF9FF;" id="content" disabled class="idle" name="content" cols="300" >' . $notes[0][notes] . '</textarea></td> </tr> <tr> <td style="text-align:right;"><span></span></td> </tr> </table> </fieldset> <table class="dialog-form-table" style="width:500px;"> <tr> <td style="text-align:right;"><span>აქვს</span></td> <td><input type="radio" name="hello_quest1" value="1" ' . ($res['hello_quest'] == '1' ? "checked=\"checked\"" : "") . '></td> <td><span>(ვაგრძელებთ)</span></td> </tr> <tr> <td style="text-align:right;"><span>სურს სხვა დროს</span></td> <td><input type="radio" name="hello_quest1" value="2" ' . ($res['hello_quest'] == '2' ? "checked=\"checked\"" : "") . '></td> <td><span>(ვიფორმირებთ დავალებას)</span></td> </tr> <tr> <td style="text-align:right;"><span>არ სურს</span></td> <td><input type="radio" name="hello_quest1" value="3" ' . ($res['hello_quest'] == '3' ? "checked=\"checked\"" : "") . '></td> <td><span>(ვასრულებთ)</span></td> </tr> </table> <fieldset style="width:97%; float:left; "> <legend>კომენტარი</legend> <table class="dialog-form-table"> <tr> <td><textarea style="width: 680px; height:80px; resize: vertical;" id="hello_comment" class="idle" name="content" cols="300" >' . $res['hello_comment'] . '</textarea></td> </tr> </table> </fieldset> <button style="float:right; margin-top:10px;" onclick="seller(1)" class="next"> >> </button> </fieldset> </div> <div id="seller-1" class="dialog_hidden"> <fieldset style="width:97%; float:left; overflow-y:scroll; max-height:400px;"> <fieldset style="width:97%;" class="' . ($notes[1][id] != "" ? "" : "dialog_hidden") . '"> <legend>შეთავაზება</legend> <table class="dialog-form-table"> <tr> <td><textarea style="width: 680px; height:100px; resize: vertical; background: #EBF9FF;" id="content" disabled class="idle" name="content" cols="300" >' . $notes[1][notes] . '</textarea></td> </tr> <tr> <td style="text-align:right;"><span></span></td> </tr> </table> </fieldset> <fieldset style="width:97%;" class="' . ($notes[2][id] != "" ? "" : "dialog_hidden") . '"> <legend>პროდუქტი</legend> <div id="dt_example" class="inner-table"> <div style="width:100%;" id="container" > <div id="dynamic"> <div id="button_area"> <button id="add_button_product">დამატება</button> <button id="delete_button_product">წაშლა</button> </div> <table class="" id="sub1" style="width: 100%;"> <thead> <tr id="datatable_header"> <th style="width:4%;">#</th> <th style="width:100px;">პროდუქტი</th> <th style="width:30px;">რ-ბა</th> <th style="width:30px;">ერთ. ფასი</th> <th style="width:30px;">სულ ფასი</th> <th style="width:100%">აღწერილობა</th> <th style="width:100%">შენიშვნა</th> <th style="width:5%;">#</th> </tr> </thead> <thead> <tr class="search_header"> <th> <input style="width:20px;" type="text" name="search_overhead" value="" class="search_init" /> </th> <th> <input style="width:100px;" type="text" name="search_overhead" value="ფილტრი" class="search_init" /> </th> <th> <input style="width:20px;" type="text" name="search_partner" value="" class="search_init" /> </th> <th> <input style="width:20px;" type="text" name="search_overhead" value="" class="search_init" /> </th> <th> <input style="width:20px;" type="text" name="search_partner" value="" class="search_init" /> </th> <th> <input style="width:100px;" type="text" name="search_partner" value="ფილტრი" class="search_init" /> </th> <th> <input style="width:100px;" type="text" name="search_partner" value="ფილტრი" class="search_init" /> </th> <th> <input type="checkbox" name="check-all" id="prod_all_p"> </th> </tr> </thead> <tfoot> <tr id="datatable_header" class="search_header"> <th style="width: 150px"></th> <th style="width: 150px"></th> <th style="width: 150px"></th> <th style="width: 150px; text-align: right;">ჯამი<br>სულ</th> <th style="width: 100px; text-align: right;"></th> <th style="width: 150px"></th> <th style="width: 150px"></th> <th style="width: 150px"></th> </tr> </tfoot> </table> </div> <div class="spacer"> </div> </div> <table class="dialog-form-table" style="margin-top:10px;"> <tr> <td><textarea style="width: 680px; height:100px; resize: vertical; background: #EBF9FF;" id="content_3" disabled class="idle" name="content" cols="300" >' . $notes[2][notes] . '</textarea></td> </tr> <tr> <td style="text-align:right;"><span></span></td> </tr> </table> </fieldset> <fieldset style="width:97%; float:left; " class="' . ($notes[3][id] != "" ? "" : "dialog_hidden") . '"> <legend>საჩუქარი</legend> <div id="dt_example" class="inner-table"> <div style="width:100%;" id="container" > <div id="dynamic"> <div id="button_area"> <button id="add_button_gift">დამატება</button> <!--button id="delete_button_gift">წაშლა</button--> </div> <table class="" id="sub2" style="width: 100%;"> <thead> <tr id="datatable_header"> <th style="width:4%;">#</th> <th style="width:100px;">პაკეტი</th> <th style="width:20px;">ფასი</th> <th style="width:100%;">აღწერილობა</th> <th style="width:100%;">შენიშვნა</th> <th style="width:5%;">#</th> </tr> </thead> <thead> <tr class="search_header"> <th> <input style="width:20px;" type="text" name="search_overhead" value="" class="search_init" /> </th> <th> <input style="width:100px;" type="text" name="search_overhead" value="ფილტრი" class="search_init" /> </th> <th> <input style="width:100px;" type="text" name="search_partner" value="ფილტრი" class="search_init" /> </th> <th> <input style="width:100px;" type="text" name="search_overhead" value="ფილტრი" class="search_init" /> </th> <th> <input style="width:100px;" type="text" name="search_partner" value="ფილტრი" class="search_init" /> </th> <th> <input type="checkbox" name="check-all" id="check-all_g"> </th> </tr> </thead> </table> </div> <div class="spacer"> </div> </div> <table class="dialog-form-table" style="margin-top:10px;"> <tr> <td><textarea style="width: 680px; height:100px; resize: vertical; background: #EBF9FF;" id="content_4" disabled class="idle" name="content" cols="300" >' . $notes[3][notes] . '</textarea></td> </tr> <tr> <td style="text-align:right;"><span></span></td> </tr> </table> </fieldset> <fieldset class="' . ($notes[20][id] != "" ? "" : "dialog_hidden") . '"> <legend>ინფორმაცია</legend> <table class="dialog-form-table" style="width:250px; float:left;"> <tr> <td style="text-align:right;">მოისმინა ბოლომდე</td> <td><input type="radio" name="info_quest" value="1" ' . ($res['info_quest'] == '1' ? "checked" : "") . '></td> </tr> <tr> <td style="text-align:right;">მოისმინა და კითხვები დაგვისვა</td> <td><input type="radio" name="info_quest" value="2" ' . ($res['info_quest'] == '2' ? "checked" : "") . '></td> </tr> <tr> <td style="text-align:right;">შეგვაწყვეტინა</td> <td><input type="radio" name="info_quest" value="3" ' . ($res['info_quest'] == '3' ? "checked" : "") . '></td> </tr> </table> <table class="dialog-form-table" style="width:350px; float:left; margin-left: 15px;"> <tr> <td>კომენტარი</td> </tr> <tr> <td><textarea style="width: 100%; height:50px; resize: vertical;" id="info_comment" class="idle" name="content" cols="300" >' . $res['info_comment'] . '</textarea></td> </tr> </table> </fieldset> <button style="float:right; margin-top:10px;" onclick="seller(2)" class="next"> >> </button> <button style="float:right; margin-top:10px;" onclick="seller(0)" class="back"> << </button> </fieldset> </div> <div id="seller-2" class="dialog_hidden"> <fieldset style="width:97%; float:left; overflow-y:scroll; max-height:400px;"> <fieldset style="width:97%;" class="' . ($notes[4][id] != "" ? "" : "dialog_hidden") . '"> <legend>შედეგი</legend> <table class="dialog-form-table"> <tr> <td><textarea style="width: 680px; height:100px; resize: vertical; background: #EBF9FF;" id="content" disabled class="idle" name="content" cols="300" >' . $notes[4][notes] . '</textarea></td> </tr> <tr> <td style="text-align:right;"><span></span></td> </tr> </table> <table class="dialog-form-table"> <tr> <td style="text-align:right;"><span>დადებითი</span></td> <td><input type="radio" name="result_quest" value="1" ' . ($res['result_quest'] == '1' ? "checked" : "") . '></td> <td><span>(ვაგრძელებთ)</span></td> </tr> <tr> <td style="text-align:right;"><span>უარყოფითი</span></td> <td><input type="radio" name="result_quest" value="2" ' . ($res['result_quest'] == '2' ? "checked" : "") . '></td> <td><span>(ვასრულებთ)</span></td> </tr> <tr> <td style="text-align:right;"><span>მოიფიქრებს</span></td> <td><input type="radio" name="result_quest" value="3" ' . ($res['result_quest'] == '3' ? "checked" : "") . '></td> <td><span>(ვუთანხმებთ განმეორებითი ზარის დროს. ვიფორმირებთ დავალებას)</span></td> </tr> </table> <table class="dialog-form-table"> <tr> <td><span style="color:#649CC3">კომენტარი</span></td> </tr> <tr> <td><textarea style="width: 400px; height:60px; resize: vertical;" id="result_comment" class="idle" name="content" cols="300" >' . $res['result_comment'] . '</textarea></td> </tr> </table> </fieldset> <fieldset style="width:97%; float:left; " class="' . ($notes[5][id] != "" ? "" : "dialog_hidden") . '"> <legend>მიწოდება</legend> <table class="dialog-form-table"> <tr> <td><textarea style="width: 680px; height:100px; resize: vertical; background: #EBF9FF;" id="content" disabled class="idle" name="content" cols="300" >' . $notes[5][notes] . '</textarea></td> </tr> <tr> <td style="text-align:right;"><span></span></td> </tr> </table> <table class="dialog-form-table"> <tr> <td style="width:150px;">მიწოდება დაიწყება</td> <td><select style="width: 305px;" id="send_date" class="idls object">' . Getshipping($res['send_date']) . '</select></td> </tr> </table> </fieldset> <fieldset style="width:97%; float:left; " class="' . ($notes[6][id] != "" ? "" : "dialog_hidden") . '"> <legend>ანგარიშსწორება</legend> <table class="dialog-form-table"> <tr> <td><textarea style="width: 680px; height:100px; resize: vertical; background: #EBF9FF;" id="content" disabled class="idle" name="content" cols="300" >' . $notes[6][notes] . '</textarea></td> </tr> <tr> <td style="text-align:right;"><span></span></td> </tr> </table> <table class="dialog-form-table"> <tr> <td><input type="radio" name="payment_quest" value="1" ' . ($res['payment_quest'] == '1' ? "checked" : "") . '></td> <td><span>ნაღდი</span></td> </tr> <tr> <td><input type="radio" name="payment_quest" value="2" ' . ($res['payment_quest'] == '2' ? "checked" : "") . '></td> <td><span>უნაღდო</span></td> </tr> </table> <table class="dialog-form-table"> <tr> <td><span style="color:#649CC3">კომენტარი</span></td> </tr> <tr> <td><textarea style="width: 680px; height:60px; resize: vertical;" id="payment_comment" class="idle" name="content" cols="300" >' . $res['payment_comment'] . '</textarea></td> </tr> </table> </fieldset> <button style="float:right; margin-top:10px;" onclick="seller(1)" class="next"> << </button> </fieldset> </div> </div>'; // სატელეფონო გაყიდვები დასასრული $data .= '<div id="ggg" class="' . ($notes[24][id] != "" ? "" : "dialog_hidden") . '" > <div id="seller-0" > <fieldset style="width:97%; float:left; overflow-y:scroll; max-height:400px;" class="' . ($notes[24][id] != "" ? "" : "dialog_hidden") . '"> <legend>სხვა სცენარი</legend> <fieldset style="width:97%;" > <legend>მისალმება</legend> <table class="dialog-form-table"> <tr> <td><textarea style="width: 680px; height:100px; resize: vertical; background: #EBF9FF;" id="content" disabled class="idle" name="content" cols="300" >' . $notes[24][notes] . '</textarea></td> </tr> <tr> <td style="text-align:right;"><span></span></td> </tr> </table> <table class="dialog-form-table" style="width:500px;"> <tr> <td style="text-align:right;"><span>აქვს</span></td> <td><input type="radio" name="hello_quest" value="1" ' . ($res['hello_quest'] == '1' ? "checked" : "") . '></td> <td><span>(ვაგრძელებთ)</span></td> </tr> <tr> <td style="text-align:right;"><span>სურს სხვა დროს</span></td> <td><input type="radio" name="hello_quest" value="2" ' . ($res['hello_quest'] == '2' ? "checked" : "") . '></td> <td><span>(ვიფორმირებთ დავალებას)</span></td> </tr> <tr> <td style="text-align:right;"><span>არ სურს</span></td> <td><input type="radio" name="hello_quest" value="3" ' . ($res['hello_quest'] == '3' ? "checked" : "") . '></td> <td><span>(ვასრულებთ)</span></td> </tr> </table> <table class="dialog-form-table"> <tr> <td><span style="color:#649CC3">კომენტარი</span></td> </tr> <tr> <td><textarea style="width: 680px; height:80px; resize: vertical;" id="hello_comment1" class="idle" name="content" cols="300" >' . $res['hello_comment'] . '</textarea></td> </tr> </table> </fieldset> <fieldset style="width:97%;" class="' . ($notes[25][id] != "" ? "" : "dialog_hidden") . '"> <legend>შეთავაზება</legend> <table class="dialog-form-table"> <tr> <td><textarea style="width: 680px; height:100px; resize: vertical; background: #EBF9FF;" id="content" disabled class="idle" name="content" cols="300" >' . $notes[25][notes] . '</textarea></td> </tr> <tr> <td style="text-align:right;"><span></span></td> </tr> </table> </fieldset> <fieldset style="width:97%;" class="' . ($notes[26][id] != "" ? "" : "dialog_hidden") . '"> <legend>შედეგი</legend> <table class="dialog-form-table"> <tr> <td><textarea style="width: 680px; height:100px; resize: vertical; background: #EBF9FF;" id="content" disabled class="idle" name="content" cols="300" >' . $notes[26][notes] . '</textarea></td> </tr> <tr> <td style="text-align:left;"><span style="font-weight:bold;">სურს თუ არა საიტზე რეგისტრაცია?</span></td> </tr> </table> <table class="dialog-form-table"> <tr> <td style="text-align:right;"><span>დიახ</span></td> <td><input type="radio" name="result_quest1" value="1" ' . ($res['result_quest1'] == '1' ? "checked" : "") . '></td> </tr> <tr> <td style="text-align:right;"><span>არა</span></td> <td><input type="radio" name="result_quest1" value="2" ' . ($res['result_quest1'] == '2' ? "checked" : "") . '></td> </tr> <tr> <td style="text-align:right;"><span>სხვა</span></td> <td><input type="radio" name="result_quest1" value="3" ' . ($res['result_quest1'] == '3' ? "checked" : "") . '></td> </tr> </table> <table class="dialog-form-table"> <tr> <td><span style="color:#649CC3">კომენტარი</span></td> </tr> <tr> <td><textarea style="width: 680px; height:60px; resize: vertical;" id="result_comment1" class="idle" name="content" cols="300" >' . $res['result_comment1'] . '</textarea></td> </tr> </table> </fieldset> </fieldset> </div> </div>'; // სატელეფონო კვლევა დასაწყისი $data .= '<div id="research" class="' . ($notes[7][id] != "" ? "" : "dialog_hidden") . '"> <ul> <li style="margin-left:0;" id="r0" onclick="research(this.id)" class="seller_select">შესავალი</li> <li id="r1" onclick="research(this.id)" ' . ($notes[22][id] != "" ? "style=\"display:none; !important;\"" : "") . '>დემოგრაფიული ბლოკი</li> <li id="r2" onclick="research(this.id)" ' . ($notes[22][id] != "" ? "style=\"display:none; !important;\"" : "") . '>ძირითადი ნაწილი</li> </ul> <div id="research-0"> <fieldset style="width:97%; float:left; overflow-y:scroll; max-height:400px;"> <fieldset style="width:97%;" class="' . ($notes[7][id] != "" ? "" : "dialog_hidden") . '"> <legend>შესავალი</legend> <table class="dialog-form-table"> <tr> <td><textarea style="width: 680px; height:100px; resize: vertical; background: #EBF9FF;" id="content" class="idle" disabled name="content" cols="300" >' . $notes[7][notes] . '</textarea></td> </tr> <tr> <td style="text-align:right;"><span></span></td> </tr> </table> <table class="dialog-form-table" style="width:500px;"> <tr> <td style="text-align:center;"><span>უარი მონაწილეობაზე</span></td> <td><input type="radio" name="preface_quest" value="1" ' . ($res['preface_quest'] == '1' ? "checked" : "") . '></td> </tr> </table> </fieldset> <table class="dialog-form-table" ' . ($notes[22][id] != "" ? "style=\"display:none; !important;\"" : "style=\"width:300px;\"") . ' > <tr> <td style="font-weight:bold;">თქვენი სახელი, როგორ მოგმართოთ?</td> </tr> <tr> <td><input type="text" style="width:100%;" id="preface_name" class="idle" onblur="this.className=\'idle\'" value="' . $res['preface_name'] . '" /></td> </tr> </table> <div class="' . ($notes[22][id] != "" ? "" : "dialog_hidden") . '"> <table class="dialog-form-table"> <tr> <td style="width:30px; font-weight:bold;">B1</td> <td style="font-weight:bold;">რას ურჩევდით ბიბლუსს?</td> <td></td> </tr> </table> <table class="dialog-form-table"> <tr> <td><textarea style="width: 500px; height:60px; resize: vertical;" id="biblus_quest1" class="idle" name="content" cols="300" >' . $res['b1'] . '</textarea></td> <td style="width:150px; text-align:right;">დაიცავით ქვოტა</td> </tr> </table> <table class="dialog-form-table" style="margin-top:10px;"> <tr> <td style="">მინიშნება</td> </tr> <tr> <td><textarea style="width: 680px; height:100px; resize: vertical; background: #EBF9FF;" id="content" class="idle" disabled name="content" cols="300" >' . $notes[22][notes] . '</textarea></td> </tr> </table> <hr> </div> <div class="' . ($notes[23][id] != "" ? "" : "dialog_hidden") . '"> <table class="dialog-form-table"> <tr> <td style="width:30px; font-weight:bold;">B2</td> <td style="font-weight:bold;">რამდენად კმაყოფილი ხართ ამ ფილიალში მიღებული მომსახურებით ?</td> <td></td> </tr> </table> <table class="dialog-form-table"> <tr> <td><input type="text" style="width:100%;" id="biblus_quest2" class="idle" onblur="this.className=\'idle\'" value="' . $res['b2'] . '" /></td> <td style="width:150px; text-align:right;">დაიცავით ქვოტა</td> </tr> </table> <table class="dialog-form-table" style="margin-top:10px;"> <tr> <td style="">მინიშნება</td> </tr> <tr> <td><textarea style="width: 680px; height:100px; resize: vertical; background: #EBF9FF;" class="idle" disabled name="content" cols="300" >' . $notes[23][notes] . '</textarea></td> </tr> </table> </div> <button ' . ($notes[22][id] != "" ? "style=\"display:none; !important;\"" : "style=\"float:right; margin-top:10px;\"") . ' onclick="research(\'r1\')" class="next"> >> </button> </fieldset> </div> <div id="research-1" class="dialog_hidden"> <fieldset style="width:97%; float:left; overflow-y:scroll; max-height:400px;"> <fieldset style="width:97%;"> <legend>დემოგრაფიული ბლოკი</legend> <div class="' . ($notes[8][id] != "" ? "" : "dialog_hidden") . '"> <table class="dialog-form-table"> <tr> <td style="width:30px; font-weight:bold;">D1</td> <td style="font-weight:bold;">თუ შეიძლება მითხარით, მუდმივად ცხოვრობთ თუ არა ამ მისამართზე?<br><span style="font-weight:normal;">(6 თვე მაინც უნდა ცხოვრებდეს)</span></td> <td></td> </tr> </table> <table class="dialog-form-table"> <tr> <td style="width:50px;">დიახ</td> <td><input type="radio" name="d1" value="1" ' . ($res['d1'] == '1' ? "checked" : "") . '></td> <td style="width:150px; text-align:right;">დაიცავით ქვოტა</td> </tr> <tr> <td>არა</td> <td><input type="radio" name="d1" value="2" ' . ($res['d1'] == '2' ? "checked" : "") . '></td> </tr> </table> <table class="dialog-form-table" style="margin-top:10px;"> <tr> <td><textarea style="width: 680px; height:100px; resize: vertical; background: #EBF9FF;" id="content" class="idle" disabled name="content" cols="300" >' . $notes[8][notes] . '</textarea></td> </tr> <tr> <td style="text-align:right;"></td> </tr> </table> <hr> </div> <div class="' . ($notes[9][id] != "" ? "" : "dialog_hidden") . '"> <table class="dialog-form-table"> <tr> <td style="width:30px; font-weight:bold;">D2</td> <td style="font-weight:bold;">თუ შეიძლება მითხარით, ხომ არ მიგიღიათ მონაწილეობა რაიმე კვლევაში ბოლო 6 თვის განმავლობაში?</span></td> <td></td> </tr> </table> <table class="dialog-form-table"> <tr> <td style="width:50px;">დიახ</td> <td><input type="radio" name="d2" value="1" ' . ($res['d2'] == '1' ? "checked" : "") . '></td> <td style="width:150px; text-align:right;">დაიცავით ქვოტა</td> </tr> <tr> <td>არა</td> <td><input type="radio" name="d2" value="2" ' . ($res['d2'] == '2' ? "checked" : "") . '></td> </tr> </table> <table class="dialog-form-table" style="margin-top:10px;"> <tr> <td><textarea style="width: 680px; height:100px; resize: vertical; background: #EBF9FF;" id="content" class="idle" disabled name="content" cols="300" >' . $notes[9][notes] . '</textarea></td> </tr> <tr> <td style="text-align:right;"></td> </tr> </table> <hr> </div> <div class="' . ($notes[10][id] != "" ? "" : "dialog_hidden") . '"> <table class="dialog-form-table"> <tr> <td style="width:30px; font-weight:bold;">D3</td> <td style="font-weight:bold;">გთხოვთ დამიზუსტოთ, თბილისის რომელ რაიონში ცხოვრობთ?</span></td> <td></td> </tr> </table> <table class="dialog-form-table"> <tr> <td style="width:150px; text-align:right;">ვაკე-საბურთალო</td> <td><input type="radio" name="d3" value="1" ' . ($res['d3'] == '1' ? "checked" : "") . '></td> <td style="width:150px; text-align:right;">გლდანი-ნაძალადევი</td> <td><input type="radio" name="d3" value="2" ' . ($res['d3'] == '2' ? "checked" : "") . '></td> <td style="width:150px; text-align:right;">დაიცავით ქვოტა</td> </tr> <tr> <td style="width:150px; text-align:right;">დიდუბე-ჩუღურეთი</td> <td><input type="radio" name="d3" value="3" ' . ($res['d3'] == '3' ? "checked" : "") . '></td> <td style="width:150px; text-align:right;">ისანი-სამგორი</td> <td><input type="radio" name="d3" value="4" ' . ($res['d3'] == '4' ? "checked" : "") . '></td> </tr> <tr> <td style="width:150px; text-align:right;">ძვ.თბილისი</td> <td><input type="radio" name="d3" value="5" ' . ($res['d3'] == '5' ? "checked" : "") . '></td> <td style="width:150px; text-align:right;">ვდიდგორი</td> <td><input type="radio" name="d3" value="6" ' . ($res['d3'] == '6' ? "checked" : "") . '></td> </tr> </table> <table class="dialog-form-table" style="margin-top:10px;"> <tr> <td><textarea style="width: 680px; height:100px; resize: vertical; background: #EBF9FF;" id="content" class="idle" disabled name="content" cols="300" >' . $notes[10][notes] . '</textarea></td> </tr> <tr> <td style="text-align:right;"></td> </tr> </table> <hr> </div> <div class="' . ($notes[11][id] != "" ? "" : "dialog_hidden") . '"> <table class="dialog-form-table"> <tr> <td style="width:30px; font-weight:bold;">D4</td> <td style="font-weight:bold;">გთხოვთ მითხრათ, ხომ არ მუშაობთ თქვენ ან თქვენი ოჯახის წევრი, ახლობელი/მეგობარი </span></td> <td></td> </tr> </table> <table class="dialog-form-table"> <tr> <td style="width:250px;">ტელევიზია (დაასრულეთ)</td> <td><input type="radio" name="d4" value="1" ' . ($res['d4'] == '1' ? "checked" : "") . '></td> <td style="width:150px; text-align:right;">დაიცავით ქვოტა</td> </tr> <tr> <td>რადიო (დაასრულეთ)</td> <td><input type="radio" name="d4" value="2" ' . ($res['d4'] == '2' ? "checked" : "") . '></td> </tr> <tr> <td>პრესა, ბეჭდვითი მედია (დაასრულეთ)</td> <td><input type="radio" name="d4" value="3" ' . ($res['d4'] == '3' ? "checked" : "") . '></td> </tr> <tr> <td>სარეკლამო (დაასრულეთ)</td> <td><input type="radio" name="d4" value="4" ' . ($res['d4'] == '4' ? "checked" : "") . '></td> </tr> <tr> <td>კვლევითი კომპანია (დაასრულეთ)</td> <td><input type="radio" name="d4" value="5" ' . ($res['d4'] == '5' ? "checked" : "") . '></td> </tr> <tr> <td>არცერთი (გააგრძელეთ)</td> <td><input type="radio" name="d4" value="6" ' . ($res['d4'] == '6' ? "checked" : "") . '></td> </tr> </table> <table class="dialog-form-table" style="margin-top:10px;"> <tr> <td><textarea style="width: 680px; height:100px; resize: vertical; background: #EBF9FF;" id="content" class="idle" disabled name="content" cols="300" >' . $notes[11][notes] . '</textarea></td> </tr> <tr> <td style="text-align:right;"></td> </tr> </table> <hr> </div> <div class="' . ($notes[12][id] != "" ? "" : "dialog_hidden") . '"> <table class="dialog-form-table"> <tr> <td style="width:30px; font-weight:bold;">D5</td> <td style="font-weight:bold;">სქესი</span></td> <td></td> </tr> </table> <table class="dialog-form-table"> <tr> <td style="width:50px;">მამაკაცი</td> <td><input type="radio" name="d5" value="1" ' . ($res['d5'] == '1' ? "checked" : "") . '></td> <td style="width:150px; text-align:right;">დაიცავით ქვოტა</td> </tr> <tr> <td>ქალი</td> <td><input type="radio" name="d5" value="2" ' . ($res['d5'] == '2' ? "checked" : "") . '></td> </tr> </table> <table class="dialog-form-table" style="margin-top:10px;"> <tr> <td><textarea style="width: 680px; height:100px; resize: vertical; background: #EBF9FF;" id="content" class="idle" disabled name="content" cols="300" >' . $notes[12][notes] . '</textarea></td> </tr> <tr> <td style="text-align:right;"></td> </tr> </table> <hr> </div> <div class="' . ($notes[13][id] != "" ? "" : "dialog_hidden") . '"> <table class="dialog-form-table"> <tr> <td style="width:30px; font-weight:bold;">D6</td> <td style="font-weight:bold;">ასაკი</span></td> <td></td> </tr> </table> <table class="dialog-form-table"> <tr> <td style="width:50px; text-align:right;">12-17</td> <td><input type="radio" name="d6" value="1" ' . ($res['d6'] == '1' ? "checked" : "") . '></td> <td style="width:50px; text-align:right;">35-44</td> <td><input type="radio" name="d6" value="2" ' . ($res['d6'] == '2' ? "checked" : "") . '></td> <td style="width:150px; text-align:right;">დაიცავით ქვოტა</td> </tr> <tr> <td style="width:50px; text-align:right;">18-24</td> <td><input type="radio" name="d6" value="3" ' . ($res['d6'] == '3' ? "checked" : "") . '></td> <td style="width:50px; text-align:right;">45-54</td> <td><input type="radio" name="d6" value="4" ' . ($res['d6'] == '4' ? "checked" : "") . '></td> </tr> <tr> <td style="width:50px; text-align:right;">25-34</td> <td><input type="radio" name="d6" value="5" ' . ($res['d6'] == '5' ? "checked" : "") . '></td> <td style="width:50px; text-align:right;">55-65</td> <td><input type="radio" name="d6" value="6" ' . ($res['d6'] == '6' ? "checked" : "") . '></td> </tr> <tr> <td></td> <td></td> <td style="width:50px; text-align:right;">65 +</td> <td><input type="radio" name="d6" value="7" ' . ($res['d6'] == '7' ? "checked" : "") . '></td> </tr> </table> <table class="dialog-form-table" style="margin-top:10px;"> <tr> <td><textarea style="width: 680px; height:100px; resize: vertical; background: #EBF9FF;" id="content" class="idle" disabled name="content" cols="300" >' . $notes[13][notes] . '</textarea></td> </tr> <tr> <td style="text-align:right;"></td> </tr> </table> <hr> </div> <div class="' . ($notes[14][id] != "" ? "" : "dialog_hidden") . '"> <table class="dialog-form-table"> <tr> <td style="width:30px; font-weight:bold;">D7</td> <td style="font-weight:bold;">ჩამოთვლილთაგან რომელი გამოხატავს ყველაზე უკეთ თქვენი ოჯახის მატერიალურ მდგომარეობას?</span></td> <td></td> </tr> </table> <table class="dialog-form-table"> <tr> <td style="width:150px;">ძალიან დაბალი</td> <td><input type="radio" name="d7" value="1" ' . ($res['d7'] == '1' ? "checked" : "") . '></td> <td style="width:150px; text-align:right;">დაიცავით ქვოტა</td> </tr> <tr> <td>დაბალი</td> <td><input type="radio" name="d7" value="2" ' . ($res['d7'] == '2' ? "checked" : "") . '></td> </tr> <tr> <td>საშუალო</td> <td><input type="radio" name="d7" value="3" ' . ($res['d7'] == '3' ? "checked" : "") . '></td> </tr> <tr> <td>მაღალი</td> <td><input type="radio" name="d7" value="4" ' . ($res['d7'] == '4' ? "checked" : "") . '></td> </tr> <tr> <td>კძალიან მაღალი</td> <td><input type="radio" name="d7" value="5" ' . ($res['d7'] == '5' ? "checked" : "") . '></td> </tr> </table> <table class="dialog-form-table" style="margin-top:10px;"> <tr> <td><textarea style="width: 680px; height:100px; resize: vertical; background: #EBF9FF;" id="content" class="idle" disabled name="content" cols="300" >' . $notes[14][notes] . '</textarea></td> </tr> <tr> <td style="text-align:right;"></td> </tr> </table> <hr> </div> <div class="' . ($notes[15][id] != "" ? "" : "dialog_hidden") . '"> <table class="dialog-form-table"> <tr> <td style="width:30px; font-weight:bold;">D8</td> <td style="font-weight:bold;">თუ შეიძლება მითხარით, რამდენ ლარს შეადგენს თქვენი ოჯახის ყოველთვიური შემოსავალი?</span></td> <td></td> </tr> </table> <table class="dialog-form-table"> <tr> <td style="width:90px; text-align:right;">200 ლარამდე</td> <td><input type="radio" name="d8" value="1" ' . ($res['d8'] == '1' ? "checked" : "") . '></td> <td style="width:80px; text-align:right;">100-1500</td> <td><input type="radio" name="d8" value="2" ' . ($res['d8'] == '2' ? "checked" : "") . '></td> <td style="width:150px; text-align:right;">დაიცავით ქვოტა</td> </tr> <tr> <td style="width:80px; text-align:right;">200-500</td> <td><input type="radio" name="d8" value="3" ' . ($res['d8'] == '3' ? "checked" : "") . '></td> <td style="width:80px; text-align:right;">1500-2000</td> <td><input type="radio" name="d8" value="4" ' . ($res['d8'] == '4' ? "checked" : "") . '></td> </tr> <tr> <td style="width:80px; text-align:right;">500-1000</td> <td><input type="radio" name="d8" value="5" ' . ($res['d8'] == '5' ? "checked" : "") . '></td> <td style="width:80px; text-align:right;">2000+</td> <td><input type="radio" name="d8" value="6" ' . ($res['d8'] == '6' ? "checked" : "") . '></td> </tr> <tr> <td></td> <td></td> <td style="width:80px; text-align:right;">მპგ</td> <td><input type="radio" name="d8" value="7" ' . ($res['d8'] == '7' ? "checked" : "") . '></td> </tr> </table> <table class="dialog-form-table" style="margin-top:10px;"> <tr> <td><textarea style="width: 680px; height:100px; resize: vertical; background: #EBF9FF;" id="content" class="idle" disabled name="content" cols="300" >' . $notes[15][notes] . '</textarea></td> </tr> <tr> <td style="text-align:right;"></td> </tr> </table> <hr> </div> <div class="' . ($notes[16][id] != "" ? "" : "dialog_hidden") . '"> <table class="dialog-form-table"> <tr> <td style="width:30px; font-weight:bold;">D9</td> <td style="font-weight:bold;">თუ შეიძლება მითხარით, რამდენ ლარს შეადგენს თქვენი პირადი ყოველთვიური შემოსავალი?</span></td> <td></td> </tr> </table> <table class="dialog-form-table"> <tr> <td style="width:90px; text-align:right;">200 ლარამდე</td> <td><input type="radio" name="d9" value="1" ' . ($res['d9'] == '1' ? "checked" : "") . '></td> <td style="width:80px; text-align:right;">100-1500</td> <td><input type="radio" name="d9" value="2" ' . ($res['d9'] == '2' ? "checked" : "") . '></td> <td style="width:150px; text-align:right;">დაიცავით ქვოტა</td> </tr> <tr> <td style="width:80px; text-align:right;">200-500</td> <td><input type="radio" name="d9" value="3" ' . ($res['d9'] == '3' ? "checked" : "") . '></td> <td style="width:80px; text-align:right;">1500-2000</td> <td><input type="radio" name="d9" value="4" ' . ($res['d9'] == '4' ? "checked" : "") . '></td> </tr> <tr> <td style="width:80px; text-align:right;">500-1000</td> <td><input type="radio" name="d9" value="5" ' . ($res['d9'] == '5' ? "checked" : "") . '></td> <td style="width:80px; text-align:right;">2000+</td> <td><input type="radio" name="d9" value="6" ' . ($res['d9'] == '6' ? "checked" : "") . '></td> </tr> <tr> <td></td> <td></td> <td style="width:80px; text-align:right;">მპგ</td> <td><input type="radio" name="d9" value="7" ' . ($res['d9'] == '7' ? "checked" : "") . '></td> </tr> </table> <table class="dialog-form-table" style="margin-top:10px;"> <tr> <td><textarea style="width: 680px; height:100px; resize: vertical; background: #EBF9FF;" id="content" class="idle" disabled name="content" cols="300" >' . $notes[16][notes] . '</textarea></td> </tr> <tr> <td style="text-align:right;"></td> </tr> </table> <hr> </div> <div class="' . ($notes[17][id] != "" ? "" : "dialog_hidden") . '"> <table class="dialog-form-table"> <tr> <td style="width:30px; font-weight:bold;">D10</td> <td style="font-weight:bold;">ხართ თუ არა დასაქმებული?</span></td> <td></td> </tr> </table> <table class="dialog-form-table"> <tr> <td style="width:50px; text-align:right;">დიახ</td> <td><input type="radio" name="d10" value="1" ' . ($res['d10'] == '1' ? "checked" : "") . '></td> <td style="width:150px; text-align:right;">დაიცავით ქვოტა</td> </tr> <tr> <td style="width:50px; text-align:right;">არა</td> <td><input type="radio" name="d10" value="2" ' . ($res['d10'] == '2' ? "checked" : "") . '></td> </tr> </table> <table class="dialog-form-table" style="margin-top:10px;"> <tr> <td><textarea style="width: 680px; height:100px; resize: vertical; background: #EBF9FF;" id="content" class="idle" disabled name="content" cols="300" >' . $notes[17][notes] . '</textarea></td> </tr> <tr> <td style="text-align:right;"></td> </tr> </table> <hr> </div> <div class="' . ($notes[18][id] != "" ? "" : "dialog_hidden") . '"> <table class="dialog-form-table"> <tr> <td style="width:30px; font-weight:bold;">D11</td> <td style="font-weight:bold;">თუ შეიძლება მითხარით, რა ტიპის ორგანიზაციაში მუშაობთ?</span></td> <td></td> </tr> </table> <table class="dialog-form-table"> <tr> <td style="width:150px; text-align:right;">კერძო სექტორი</td> <td><input type="radio" name="d11" value="1" ' . ($res['d11'] == '1' ? "checked" : "") . '></td> <td style="width:150px; text-align:right;">თვითდასაქმებული</td> <td><input type="radio" name="d11" value="2" ' . ($res['d11'] == '2' ? "checked" : "") . '></td> <td style="width:150px; text-align:right;">დაიცავით ქვოტა</td> </tr> <tr> <td style="width:150px; text-align:right;">საჯარო სამსახური</td> <td><input type="radio" name="d11" value="3" ' . ($res['d11'] == '3' ? "checked" : "") . '></td> <td style="width:150px; text-align:right;">მპგ</td> <td><input type="radio" name="d11" value="4" ' . ($res['d11'] == '4' ? "checked" : "") . '></td> </tr> <tr> <td style="width:150px; text-align:right;">არასამთავრობო/td> <td><input type="radio" name="d11" value="5" ' . ($res['d11'] == '5' ? "checked" : "") . '></td> </tr> </table> <table class="dialog-form-table" style="margin-top:10px;"> <tr> <td><textarea style="width: 680px; height:100px; resize: vertical; background: #EBF9FF;" id="content" class="idle" disabled name="content" cols="300" >' . $notes[18][notes] . '</textarea></td> </tr> <tr> <td style="text-align:right;"></td> </tr> </table> <hr> </div> <div class="' . ($notes[19][id] != "" ? "" : "dialog_hidden") . '"> <table class="dialog-form-table"> <tr> <td style="width:30px; font-weight:bold;">D12</td> <td style="font-weight:bold;">გყავთ თუ არა ავტომობილი</span></td> <td></td> </tr> </table> <table class="dialog-form-table"> <tr> <td style="width:50px; text-align:right;">დიახ</td> <td><input type="radio" name="d12" value="1" ' . ($res['d12'] == '1' ? "checked" : "") . '></td> <td style="width:150px; text-align:right;">დაიცავით ქვოტა</td> </tr> <tr> <td style="width:50px; text-align:right;">არა</td> <td><input type="radio" name="d12" value="2" ' . ($res['d12'] == '2' ? "checked" : "") . '></td> </tr> </table> <table class="dialog-form-table" style="margin-top:10px;"> <tr> <td><textarea style="width: 680px; height:100px; resize: vertical; background: #EBF9FF;" id="content" class="idle" disabled name="content" cols="300" >' . $notes[19][notes] . '</textarea></td> </tr> <tr> <td style="text-align:right;"></td> </tr> </table> <hr> </div> <button style="float:right; margin-top:10px;" onclick="research(\'r2\')" class="next"> >> </button> <button style="float:right; margin-top:10px;" onclick="research(\'r0\')" class="back"> << </button> </fieldset> </div> <div id="research-2" class="dialog_hidden"> <fieldset style="width:97%; float:left; overflow-y:scroll; max-height:400px;"> <fieldset ' . ($notes[21][id] != "" ? "" : "dialog_hidden") . '> <legend>რადიო</legend> <table class="dialog-form-table"> <tr> <td style="font-weight:bold; width:30px;">Q1</td> <td style="font-weight:bold; font-size:12px;">თუ შეიძლება, მე ჩამოგითვლით რადიოსადგურებს და თქვენ მიპასუხეთ, რომელ რადიოს უსმენდით გუშინ, თუნდაც მხოლოდ 5 წუთით? კიდევ, კიდევ.</td> </tr> </table> <table class="dialog-form-table"> <tr> <td><span>რადიო 1</span></td> <td><input type="radio" name="q1" value="1" ' . ($res['q1'] == '1' ? "checked" : "") . '></td> <td style="width:180px; text-align:right;"><span>არ ვუსმენდი</span></td> <td><input type="radio" name="q1" value="2" ' . ($res['q1'] == '2' ? "checked" : "") . '></td> </tr> <tr> <td><span>რადიო 2</span></td> <td><input type="radio" name="q1" value="3" ' . ($res['q1'] == '3' ? "checked" : "") . '></td> </tr> </table> <table class="dialog-form-table"> <tr> <td><textarea style="width: 400px; height:60px; resize: vertical;" id="content" class="idle" name="content" cols="300" >' . $res['content'] . '</textarea></td> </tr> </table> </fieldset> <button style="float:right; margin-top:10px;" onclick="research(\'r1\')" class="back"> << </button> </fieldset> </div> </div>'; $data .= '</div>'; // სატელეფონო კვლევა დასასრული $data .= '<fieldset style="width:350px;; float:left;"> <legend>ზარის დაზუსტება</legend> <table class="dialog-form-table"> <tr> <td><textarea style="width: 350px; height:70px; resize: vertical;" id="call_content" class="idle" name="content" cols="300" >' . $res['call_content'] . '</textarea></td> </tr> </table> </fieldset> <fieldset style="width:300px;; float:left; margin-left:10px; max-height:90px;"> <legend>სტატუსი</legend> <table class="dialog-form-table" style="height: 80px;"> <tr> <td></td> </tr> <tr> <td><select style="width: 328px;" id="status" class="idls object">' . Getstatus($res['status']) . '</select></td> </tr> </table> </fieldset> <fieldset style="margin-top: 5px;"> <legend>დავალების ფორმირება</legend> <table class="dialog-form-table" > <tr> <td style="width: 280px;"><label for="set_task_department_id">განყოფილება</label></td> <td style="width: 280px;"><label for="set_persons_id">პასუხისმგებელი პირი</label></td> <td style="width: 280px;"><label for="set_priority_id">პრიორიტეტი</label></td> </tr> <tr> <td><select style="width: 200px;" id="set_task_department_id" class="idls object">' . Getdepartment($res['task_department_id']) . '</select></td> <td><select style="width: 200px;" id="set_persons_id" class="idls object">' . Getpersons($res['persons_id']) . '</select></td> <td><select style="width: 200px;" id="set_priority_id" class="idls object">' . Getpriority($res['priority_id']) . '</select></td> </tr> </table> <table class="dialog-form-table" style="width: 720px;"> <tr> <td style="width: 150px;"><label>შესრულების პერიოდი</label></td> <td style="width: 150px;"><label></label></td> <td style="width: 150px;"><label>კომენტარი</label></td> </tr> <tr> <td><input style="width: 130px; float:left;" id="set_start_time" class="idle" type="text"><span style="margin-left:5px; ">დან</span></td> <td><input style="width: 130px; float:left;" id="set_done_time" class="idle" type="text"><span style="margin-left:5px; ">მდე</span></td> <td> <textarea style="width: 270px; resize: vertical;" id="set_body" class="idle" name="content" cols="300">' . $res['comment'] . '</textarea> </td> </tr> </table> </fieldset> </fieldset> </div>'; $data .= '<div style="float: right; width: 355px;"> <fieldset> <legend>აბონენტი</legend> <table style="height: 243px;"> <tr> <td style="width: 180px; color: #3C7FB1;">ტელეფონი 1</td> <td style="width: 180px; color: #3C7FB1;">ტელეფონი 2</td> </tr> <tr> <td> <input type="text" id="phone" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['phone'] . '" /> </td> <td> <input type="text" id="phone1" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['phone2'] . '" /> </td> </tr> <tr> <td style="width: 180px; color: #3C7FB1;">სახელი</td> <td style="width: 180px; color: #3C7FB1;">ელ-ფოსტა</td> </tr> <tr > <td style="width: 180px;"> <input type="text" id="first_name" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['first_name'] . '" /> </td> <td style="width: 180px;"> <input type="text" id="mail" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['mail'] . '" /> </td> </tr> <tr> <td td style="width: 180px; color: #3C7FB1;">ქალაქი</td> <td td style="width: 180px; color: #3C7FB1;">დაბადების თარიღი</td> </tr> <tr> <td><input type="text" id="city_id" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['city_id'] . '" /></td> <td td style="width: 180px;"> <input type="text" id="b_day" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['b_day'] . '" /> </td> </tr> <tr> <td td style="width: 180px; color: #3C7FB1;">მისამართი</td> <td style="width: 180px; color: #3C7FB1;">პირადი ნომერი</td> </tr> <tr> <td td style="width: 180px;"> <input type="text" id="addres" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['addres'] . '" /> </td> <td style="width: 180px;"> <input type="text" id="person_n" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['person_n'] . '" /> </td> </tr> <tr> <td td style="width: 180px; color: #3C7FB1;">ასაკი</td> <td style="width: 180px; color: #3C7FB1;">სქესი</td> </tr> <tr> <td td style="width: 180px;"> <input type="text" id="age" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['age'] . '" /> </td> <td style="width: 180px;"> <input type="text" id="sex" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['sex'] . '" /> </td> </tr> <tr> <td td style="width: 180px; color: #3C7FB1;">პროფესია</td> <td style="width: 180px; color: #3C7FB1;">ინტერესების სფერო</td> </tr> <tr> <td td style="width: 180px;"> <input type="text" id="profession" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['profession'] . '" /> </td> <td style="width: 180px;"> <input type="text" id="interes" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['interes'] . '" /> </td> </tr> </table> </fieldset>'; $data .= GetRecordingsSection($res); $data .= '</div> </div>'; $data .= '<input type="hidden" id="outgoing_call_id" value="' . $res['id'] . '" />'; return $data; }