function GetPage($res = '', $number)
{
    $c_date = date('Y-m-d H:i:s');
    $num = 0;
    if ($res[phone] == "") {
        $num = $number;
    } else {
        $num = $res[phone];
    }
    $data .= '
	<!-- jQuery Dialog -->
    <div id="add-edit-goods-form" title="საქონელი">
    	<!-- aJax -->
	</div>
	<div id="dialog-form">
			<div style="float: left; width: 800px;">	
				<fieldset >
				<fieldset style="width:300px; float:left;">
			    	<legend>ძირითადი ინფორმაცია</legend>
		
			    	<table width="500px" class="dialog-form-table">
						<tr>
							<td style="width: 180px;"><label for="">მომართვა №</label></td>
							<td style="width: 180px;"><label for="">თარიღი</label></td>
						</tr>							
						
						<tr>
							<td style="width: 180px;">
								<input type="text" id="id" class="idle" onblur="this.className=\'idle\'"  value="' . ($res['id'] != '' ? $res['id'] : increment('incomming_call')) . '" disabled="disabled" />
								<input style="display:none;" type="text" id="h_id" class="idle" onblur="this.className=\'idle\'"  value="' . $res['id'] . '" disabled="disabled" />
								<input style="display:none;" type="text" id="miss_date" class="idle" onblur="this.className=\'idle\'"  value="' . $_REQUEST['id'] . '" disabled="disabled" />
							</td>
							<td style="width: 180px;">
								<input type="text" id="c_date" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField date\'" value="' . ($res['call_date'] != '' ? $res['call_date'] : $c_date) . '" disabled="disabled" />
							</td>				
						</tr>
						<tr>
							<td style="width: 180px;"><label for="phone">ტელეფონი</label></td>							
							<td><label for="person_name">აბონენტის სახელი</label></td>
						</tr>
						<tr>
							<td style="width: 180px;">
								<input type="text" id="phone" class="idle" onblur="this.className=\'idle\'"  value="' . $_REQUEST['num'] . '" disabled="disabled" />
							</td>
							<td style="width: 69px;">
								<input type="text" id="person_name" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['first_name'] . '" />
							</td>	
						</tr>
						<tr>
							<td>
								<label for="source_id">არხი</label>
							</td>
							<td>
							</td>
						</tr>
						<tr>
							<td>
								<select style="width: 165px;" id="source_id" class="idls object">' . Getsource($res['source_id']) . '</select>
							</td>
							<td style="width: 69px;">
								<button id="button_calls" class="calls">ნომრები</button>
							</td>
						</tr>				
					</table>
				</fieldset>
				<fieldset style="width:220px; float:left; margin-left:10px; ">
			    	<legend>მომართვის ავტორი</legend>
					<table id="" class="dialog-form-table" width="220px">						
						<tr>
							<td style="width: 220px;"><input style="float:left;" type="radio" name="x" value="1" ' . ($res['type_id'] == '1' ? "checked" : "") . '><span style="margin-top:5px; display:block;">ფიზიკური</span></td>
					  		<td style="width: 220px;"><input style="float:left;" type="radio" name="x" value="2" ' . ($res['type_id'] == '2' ? "checked" : "") . '><span style="margin-top:5px; display:block;"">იურიდიული</span></td>
						</tr>
					</table>
				</fieldset>
				<fieldset style="width:220px; float:left; margin-left:10px; ">
			    	<legend>ზარის ტიპი</legend>
					<table id="" class="dialog-form-table" width="220px">						
						<tr>
							<td style="width: 220px;"><input style="float:left;" type="radio" name="xx" value="1" ' . ($res['call_type_id'] == '1' ? "checked" : "") . '><span style="margin-top:5px; display:block;">ინფორმაცია</span></td>
					  		<td style="width: 220px;"><input style="float:left;" type="radio" name="xx" value="2" ' . ($res['call_type_id'] == '2' ? "checked" : "") . '><span style="margin-top:5px; display:block;"">პრეტენზია</span></td>
					  	</tr>
					  	<tr>
					  		<td style="width: 220px;"><input style="float:left;" type="radio" name="xx" value="3" ' . ($res['call_type_id'] == '3' ? "checked" : "") . '><span style="margin-top:5px; display:block;"">სხვა</span></td>
						</tr>
					</table>
				</fieldset>
				<fieldset style="width:220px; float:left; margin-left:10px; ">
			    	<legend>განყოფილება</legend>
					<table id="" class="dialog-form-table" width="220px">						
						<tr>
							<td><select style="width: 220px;" id="department_id" class="idls object">' . Getdepartment($res['department_id']) . '</select></td>
						</tr>
					</table>
				</fieldset>
				<fieldset style="width:756px; float:left;">
			    	<legend>ინფორმაცია</legend>
					<table id="" class="dialog-form-table" width="500px">
					  	<tr>
					  		<td><label for="information_category_id">კატეგორია</label></td>
					  	</tr>						
						<tr>
							<td><select style="width: 756px;" id="information_category_id" class="idls object">' . Getinformation_category($res['information_category_id']) . '</select></td>
						</tr>
						<tr>
					  		<td><label for="information_category_id">ქვე-კატეგორია</label></td>
					  	</tr>
						<tr>
							<td><select style="width: 756px;" id="information_sub_category_id" class="idls object">' . Getinformation_sub_category($res['information_sub_category_id'], $res['information_category_id']) . '</select></td>
						</tr>
					</table>
				</fieldset>
				
				
				<fieldset style="width:557px; float:left;">
			    	<legend>პროდუქცია</legend>
					<table id="" class="dialog-form-table" width="755px">						
						<tr>
							<td style="width: 50px;"><input style="float:left;" type="radio" name="xxx" value="1" ' . ($res['product_type_id'] == '1' ? "checked" : "") . '><span style="margin-top:5px; display:block;">ახალის შეძენა</span></td>
					  		<td style="width: 50px;"><input style="float:left;" type="radio" name="xxx" value="2" ' . ($res['product_type_id'] == '2' ? "checked" : "") . '><span style="margin-top:5px; display:block;"">შეძენილი</span></td>
					  		<td style="width: 50px;"><input style="float:left;" type="radio" name="xxx" value="3" ' . ($res['product_type_id'] == '3' ? "checked" : "") . '><span style="margin-top:5px; display:block;"">საინტერესო</span></td>
						</tr>
					</table>
				<div id="show_all" class="dialog_hidden">
					<table id="" class="dialog-form-table" width="750px">
					  	<tr>
					  		<td><label for="information_category_id">პროდუქტი კატეგორია</label></td>
					  		<td><label for="information_category_id">ჟანრი</label></td>
					  		<td><label for="information_category_id">დასახელება</label></td>
					  	</tr>						
						<tr>
							<td><select style="width: ;" id="production_category_id" class="idls object">' . Getproduction_category($res['production_category_id'], $res['information_category_id']) . '</select></td>
							<td><select style="width: ;" id="genre_id" class="idls object">' . Getgenre($res['genre_id']) . '</select></td>
							<td><select style="width: ;" id="production_id" class="idls object">' . Getproduction($res['production_id']) . '</select></td>
						</tr>	
											
					</table>
					<table id="" class="dialog-form-table" width="700px">
					  	<tr>
					  		<td><label for="information_category_id">ან შეიყვანეთ კოდი</label></td>
					  		<td></td>
					  		<td><label for="information_category_id">წიგნების ID</label></td>
					  	</tr>						
						<tr>
							<td><select style="width: ;" id="" class="idls object"></select></td>
							<td><button id="add_product">დამატება</button></td>
					  		<td><textarea  style="width: 370px; resize: none;" id="content" class="idle" name="content" cols="300" >' . $res['content'] . '</textarea></td>
						</tr>
					</table>													
					</table>
					  	<table class="dialog-form-table" width="400px">				
					  	<tr>
							<td>ჯამური ღირებულება</td>
							<td><input type="text" style="width: 60px;" id="sum_pirce" class="idle" onblur="this.className=\'idle\'"  value="' . $res['sum_pirce'] . '"  /></td>
							<td>ლარი</td>
							<td><input style="float:left;" type="checkbox" name="xxxx" value="1" ' . ($res['card_id'] == '1' ? "checked" : "") . '><span style="margin-top:8px; display:block;""> + ბარათი</span></td>
						</tr>					
					</table>
					<table class="dialog-form-table" width="750px">
						<tr>
					  		<td><label for="">მიწოდება</label></td>
					  		<td><label style="margin-left:5px;" for="">მოდული</label></td>
					  	</tr>					
					  	<tr>
							<td><select style="width: 330px;" id="shipping_id" class="idls object">' . Getshipping($res['shipping_id']) . '</select></td>
							<td><select style="width: 420px; margin-left:5px;" id="module_id" class="idls object">' . Getmodule($res['module_id']) . '</select></td>
						</tr>					
					</table>
				</div>					
				</fieldset>
				<fieldset style="width: 400px; float:left;">
					<legend>ზარის დაზუსტება</legend>
					<table id="" class="dialog-form-table" width="150px">
						<tr>
							<td><textarea  style="width: 400px; resize: none;" id="call_comment" class="idle" name="call_comment" cols="300" >' . $res['call_comment'] . '</textarea></td>
						</tr>
					</table>
					</fieldset>
					<fieldset style="width: 317px; margin-left:10px; height:55px;  float:left;">
					<legend>ზარის სტატუსი</legend>
					<table id="" class="dialog-form-table" width="150px">
						<tr>
							<td><select style="width: 310px; margin-left:5px;" id="call_status_id" class="idls object">' . Getcall_status($res['call_status_id']) . '</select></td>
						</tr>
					</table>
					</fieldset>
				';
    $data .= '
		   
				<fieldset style="margin-top: 5px;">
			    	<legend>დავალების ფორმირება</legend>
		
			    	<table class="dialog-form-table" style="width: 750px;">
						<tr>
							<td style="width: 180px;"><label for="task_type_id">დავალების ტიპი</label></td>
							<td style="width: 180px;"><label for="task_department_id">განყოფილება</label></td>
							<td style="width: 180px;"><label for="persons_id">პასუხისმგებელი პირი</label></td>
							<td style="width: 180px;"><label for="priority_id">პრიორიტეტი</label></td>
						</tr>
			    		<tr>
							<td><select style="width: 180px;" id="task_type_id" class="idls object">' . Gettask_type($res['task_type_id']) . '</select></td>
							<td><select style="width: 180px;" id="task_department_id" class="idls object">' . Getdepartment($res['task_department_id']) . '</select></td>
							<td><select style="width: 180px;" id="persons_id" class="idls object">' . Getpersons($res['persons_id']) . '</select></td>
							<td><select style="width: 180px;" id="priority_id" class="idls object">' . Getpriority($res['priority_id']) . '</select></td>
						</tr>
						</table>
						<table class="dialog-form-table" style="width: 750px;">
						<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 id="done_start_time" style="width: 150px; float:left;" class="idle" type="text" value="' . $res['done_start_time'] . '"><span style="margin-left:5px; ">დან</span></td>
					  		<td><input id="done_end_time" style="width: 150px; float:left;" class="idle" type="text" value="' . $res['done_end_time'] . '"><span style="margin-left:5px; ">მდე</span></td>
							<td>
								<textarea  style="width: 300px; resize: none;" id="comment" class="idle" name="content" cols="300" >' . $res['comment'] . '</textarea>
							</td>
						</tr>
					</table>
		        </fieldset>
			</div>
			<div>
				  </fieldset>
			</div>
			<div style="float: right;  width: 355px;">
				 
				<fieldset>
					<legend>მომართვის ავტორი</legend>
					<table style="height: 243px;">						
						<tr>
							<td style="width: 180px; color: #3C7FB1;">ტელეფონი</td>
							<td style="width: 180px; color: #3C7FB1;">პირადი ნომერი</td>
						</tr>
						<tr>
							<td>
								<input type="text" id="personal_phone" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['personal_phone'] . '" />
							</td>
							<td style="width: 180px;">
								<input type="text" id="personal_id" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['personal_id'] . '" />
							</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="personal_first_name" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['personal_first_name'] . '" />
							</td>
							<td style="width: 180px;">
								<input type="text" id="personal_mail" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['personal_mail'] . '" />
							</td>			
						</tr>
						<tr>
							<td td style="width: 180px; color: #3C7FB1;">გვარი</td>
							<td td style="width: 180px; color: #3C7FB1;">დაბადების თარიღი</td>
						</tr>
						<tr>
							<td style="width: 180px;">
								<input type="text" id="personal_last_name" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['personal_last_name'] . '" />		
							</td>
							<td td style="width: 180px;">
								<input type="text" id="personal_d_date" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['personal_d_date'] . '" />		
							</td>
						</tr>
						<tr>
							<td td style="width: 180px; color: #3C7FB1;">ქალაქი</td>
							<td td style="width: 180px; color: #3C7FB1;">მისამართი</td>
						</tr>
						<tr>
							<td><select style="width: 165px;" id="personal_city" class="idls object">' . Getcity($res['personal_city']) . '</select></td>
							<td td style="width: 180px;">
								<input type="text" id="personal_addres" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['personal_addres'] . '" />		
							</td>
						</tr>
						<tr>
							<td td style="width: 180px; color: #3C7FB1;">ოჯახური სტატუსი</td>
							<td td style="width: 180px; color: #3C7FB1;">პროფესია</td>
						</tr>
						<tr>
							<td><select style="width: 165px;" id="personal_status" class="idls object">' . Getfamily($res['personal_status']) . '</select></td>
							<td td style="width: 180px;">
								<input type="text" id="personal_profession" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['personal_profession'] . '" />		
							</td>
						</tr>
					</table>
				</fieldset>	
				<!--fieldset>
					<legend>ყველა გაყიდვა (ბოლო 10)</legend>					
		                <table style="border:2px solid #85B1DE; width:100%;">
		                   		<tr style="background:#F2F2F2; ">	
									<th style="width:7%; padding:5px; border:1px solid #85B1DE;">#</th>
									<th style="border:1px solid #85B1DE; padding:5px;">თარიღი</th>
									<th style="border:1px solid #85B1DE; padding:5px;">მომხმარებელი</th>
									<th style="width:12%; padding:5px; border:1px solid #85B1DE;">ფასი</th>
									<th style="border:1px solid #85B1DE; padding:5px;">წიგნები</th>
								</tr>		
								<tr style="background: #FEFEFE">
										<td style="border:1px solid #85B1DE; padding:2px;">1</td>
										<td style="border:1px solid #85B1DE; padding:2px;">test</td>
										<td style="border:1px solid #85B1DE; padding:2px;">test</td>
										<td style="border:1px solid #85B1DE; padding:2px;">test</td>
										<td style="border:1px solid #85B1DE; padding:2px;">test</td>
								</tr>												
		                </table>
							<button id="read_more" style="float:right;">სრულად ნახვა</button>
				</fieldset-->					
				<fieldset style="margin-top: 10px; width: 150px; margin-left:10px; float: right;">
            		<legend>ფაილი</legend>
					<table style="float: right; border: 1px solid #85b1de; width: 150px; text-align: center;">
     <tr>
      <td>
       <div class="file-uploader">
        <input id="choose_file" type="file" name="choose_file" class="input" style="display: none;">
        <button id="choose_button" class="center">აირჩიეთ ფაილი</button>
        <input id="hidden_inc" type="text" value="' . increment('action') . '" style="display: none;">
       </div>
      </td>
     </tr>
    </table>
        <table style="float: right; border: 1px solid #85b1de; width: 150px; text-align: center;">
             <tr style="border-bottom: 1px solid #85b1de;">
              <td colspan="3">მიმაგრებული ფაილი</td>
             </tr>
    </table>
    <table id="file_div" style="float: right; border: 1px solid #85b1de; width: 150px; text-align: center;">';
    while ($increm_row = mysql_fetch_assoc($increm)) {
        $data .= ' 
                <tr style="border-bottom: 1px solid #85b1de;">
                  <td style="width:110px; display:block;word-wrap:break-word;">' . $increm_row[name] . '</td>              
                  <td ><button type="button" value="media/uploads/file/' . $increm_row[rand_name] . '" style="cursor:pointer; border:none; margin-top:25%; display:block; height:16px; width:16px; background:none;background-image:url(\'media/images/get.png\');" id="download" ></button><input type="text" style="display:none;" id="download_name" value="' . $increm_row[rand_name] . '"> </td>
                  <td ><button type="button" value="' . $increm_row[id] . '" style="cursor:pointer; border:none; margin-top:25%; display:block; height:16px; width:16px; background:none; background-image:url(\'media/images/x.png\');" id="delete"></button></td>
                </tr>';
    }
    $data .= '
    </table>
				</fieldset>	
  					
						';
    if (!empty($res[phone])) {
        $data .= GetRecordingsSection($res);
    }
    $data .= '
	  		<button type="button" class="save-dialog" id="save-dialog" style="margin-top:10px;">შენახვა</button>
	  		</div>
			</div>
    </div>';
    return $data;
}
Exemplo n.º 2
0
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;
}