Example #1
0
function Gettask()
{
    $data .= '<div id="dialog-form">
							<div style="float: left; width: 380px;">
								<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="p_phone" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['personal_phone'] . '" />
										</td>
										<td style="width: 180px;">
											<input type="text" id="p_person_n" 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="p_first_name" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['personal_contragent'] . '" />
										</td>
										<td style="width: 180px;">
											<input type="text" id="p_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="p_last_name" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['personal_addres'] . '" />		
										</td>
										<td td style="width: 180px;">
											<input type="text" id="p_person_status" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['personal_status'] . '" />		
										</td>
									</tr>
									<tr>
										<td td style="width: 180px; color: #3C7FB1;">მისამართი</td>
										<td td style="width: 180px; color: #3C7FB1;">დაბადების თარირი</td>
									</tr>
									<tr>
										<td td style="width: 180px;">
											<input type="text" id="p_addres" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['person_status'] . '" />		
										</td>
										<td td style="width: 180px;">
											<input type="text" id="p_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 td style="width: 180px; color: #3C7FB1;">ოჯახური სტატუსი</td>
									</tr>
									<tr>
										<td><select style="width: 165px;" id="p_city_id" class="idls object">' . Getcity($res['city_id']) . '</select></td>
										<td><select style="width: 165px;" id="p_family_id" class="idls object">' . Getfamily($res['family_id']) . '</select></td>
									</tr>
									<tr>
										<td td style="width: 180px; color: #3C7FB1;">პროფესია</td>
									</tr>
									<tr>
										<td td style="width: 180px;">
											<input type="text" id="p_profesion" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['profesion'] . '" />		
										</td>
									</tr>
								</table>
									
					</fieldset>
				</div>
		    </div>';
    return $data;
}
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;
}
Example #3
0
function GetPage($res = '')
{
    $data .= '<div id="dialog-form">
						<div style="float: left; width: 760px;">
							<fieldset >
						    	<legend>დავალება</legend>
			
						    	<table width="100%" class="dialog-form-table">
									<tr>
										<td style="width: 180px;"><label for="req_num">დავალების №</label></td>
										<td style="width: 180px;"><label for="req_num">შექმნის თარიღი</label></td>
										<td style="width: 180px;"><label for="req_data">შესრულების პერიოდი</label></td>
										<td style="width: 180px;"><label for="req_phone"></label></td>
									</tr>
									<tr>
										<td style="width: 150px;">
											<input style="width: 150px;" disabled type="text" id="id_my_task" class="idle" onblur="this.className=\'idle\'"  value="' . $res['id'] . '" />
										</td>
										<td style="width: 150px;">
											<input style="width: 150px;" disabled type="text" id="cur_date" class="idle" onblur="this.className=\'idle\'"  value="' . $res['date'] . '" />
										</td>
										<td style="width: 200px;">
											<input style="float:left;" disabled type="text" id="done_start_time" class="idle" onblur="this.className=\'idle\'" value="' . $res['start_date'] . '"  /><span style="float:left; margin-top:5px;">-დან</span>
										</td>
										<td style="width: 200px;">
											<input style="float:left;" disabled type="text" id="done_end_time" class="idle" onblur="this.className=\'idle\'" value="' . $res['end_date'] . '" /><span style="float:left; margin-top:5px;">-მდე</span>
										</td>
									</tr>
								</table>
	
								<table width="100%" class="dialog-form-table">
								   <tr>
										<td style="width: 220px;">დავალების ტიპი</select></td>
									    <td style="width: 220px;">ქვე-განყოფილება</select></td>
										<td style="width: 220px;">პრიორიტეტი</select></td>
									</tr>
									<tr>
										<td style="width: 220px;"><select style="width: 220px;" disabled id="task_type_id" class="idls object">' . Gettask_type($res['task_type_id']) . '</select></td>
									    <td style="width: 220px;"><select style="width: 220px;" disabled id="task_department_id" class="idls object">' . Getdepartment($res['department_id']) . '</select></td>
										<td style="width: 220px;"><select style="width: 217px;" disabled id="priority_id" class="idls object">' . Getprio($res['priority_id']) . '</select></td>
									</tr>
								</table>
	
								<table width="100%" class="dialog-form-table" id="task_comment_table">
								   <tr>
										<td style="width: 220px;">დავალების შინაარსი</td>
									</tr>
									<tr>
										<td><textarea disabled  style="width: 99%; resize: vertical; height: 70px;" id="task_comment" class="idle" name="task_comment" cols="300" >' . $res['comment'] . '</textarea></td>
									</tr>
								</table>
								</fieldset>
								<fieldset>
									<legend>შესრულება</legend>
								<table width="100%" class="dialog-form-table" id="">
								   <tr>
										<td style="width: 220px;">სტატუსი</td>
										<td style="width: 220px;">კომენტარი</td>
									</tr>
									<tr>
										<td style="width: 220px;"><select style="width: 217px;"  id="status_id" class="idls object">' . Getstatus($res['status'], $res['user_id']) . '</select></td>
										<td><textarea  style="width: 98%; resize: vertical; height: 70px;" id="problem_comment" class="idle" name="problem_comment" cols="300" >' . $res['problem_comment'] . '</textarea></td>
									
									</tr>
										
									
								</table>
                            </fieldset>
 					</table>
					</fieldset>
				</div>';
    if ($res['outgoing_id'] != '') {
        $data .= '<div style="float: right;  width: 355px;">
								<fieldset id="open_out">
								<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['phone1'] . '" />
										</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_last_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'] . '" /></td>
										<td td style="width: 180px;">
											<input type="text" id="b_day"  class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['born_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'] . '" />
											    <input id="open_out_id" type="text" value="' . $res[outgoing_id] . '" style="display:none;">
										</td>
									</tr>
					
								</table>
							</fieldset>';
    } else {
        $data .= '<div style="float: left; margin-left:10px; width: 355px;">
					<fieldset id="open_inc">
						<legend>ინფორმაცია</legend>
							<table class="dialog-form-table">
								<tr>
									<td style="width: 150px;"><label for="req_num">ტელეფონი</label></td>
								</tr>
								
								<tr>
									<td style="width: 150px;">
										<input style="width: 130px;" disabled type="text" id="id_my_task" class="idle" onblur="this.className=\'idle\'"  value="' . $res['phone'] . '" />
									</td>
								</tr>
							    <tr>
									<td style="width: 150px;"><label for="req_num">სახელი</label></td>
								</tr>
							    <tr>
									<td>
										<input style="width: 130px;" disabled type="text" id="cur_date" class="idle" onblur="this.className=\'idle\'"  value="' . $res['first_name'] . '" />
										    <input id="open_inc_id" type="text" value="' . $res[incomming_call_id] . '" style="display:none;">
									</td>
								</tr>
							</table>
										        <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>';
    }
    if (!empty($res[phone])) {
        $data .= GetRecordingsSection($res);
    }
    if ($res['outgoing_id'] != '') {
        $data .= GetRecordingsSection1($res);
    }
    $data .= ' </div>
		    </div>';
    $data .= '<input type="hidden" id="outgoing_call_id" value="' . $res['id'] . '" />';
    return $data;
}