Ejemplo n.º 1
0
function GetPage($res = '', $number)
{
    $num = 0;
    if ($res[phone] == "") {
        $num = $number;
    } else {
        $num = $res[phone];
    }
    if ($res[id] != '') {
        $dis = 'disabled="disabled"';
    } else {
        $dis = '';
    }
    if ($res['category_parent_id'] != '') {
        $cat_ch = $res['category_parent_id'];
    }
    $increm = mysql_query("\tSELECT  `name`,\r\n\t\t\t\t\t\t\t\t\t`rand_name`\r\n\t\t\t\t\t\t\tFROM \t`file`\r\n\t\t\t\t\t\t\tWHERE   `incomming_call_id` = {$res['id']}\r\n\t\t\t");
    $call_date = date('Y-m-d H:i:s');
    $data .= '
	<!-- jQuery Dialog -->
    <div id="add-edit-goods-form" title="საქონელი">
    	<!-- aJax -->
	</div>
	<div id="dialog-form">
			<div style="float: left; width: 673px;">	
				<fieldset >
			    	<legend>ძირითადი ინფორმაცია</legend>
		
			    	<table width="100%" class="dialog-form-table">
						<tr>
							<td style="width: 180px;"><label for="id">მომართვა №</label></td>
							<td style="width: 180px !important;"><label for="call_date">თარიღი</label></td>
							<td style="width: 180px;"><label for="call_phone">ტელეფონი</label></td>
						</tr>
						<tr>
							<td style="width: 180px;">
								<input type="text" id="id" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField user_id\'" value="' . ($res['id'] != '' ? $res['id'] : increment("incomming_call")) . '" disabled="disabled" />
							</td>
							<td style="width: 180px;">
								<input type="text" id="call_date" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField date\'" value="' . ($res['call_date'] != "" ? $res['call_date'] : $call_date) . '" disabled="disabled" />
							</td>
							<td style="width: 180px;">
								<input type="text" id="call_phone" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . ($res['call_phone'] != "" ? $res['call_phone'] : $num) . '" />
							</td>
							<td style="width: 69px;">
								<button id="button_calls" class="calls">ნომრები</button>
							</td>
						</tr>
						<tr>
							<td style="width: 180px;"><label for="category_parent_id">კატეგორია</label></td>
							<td style="width: 180px;"><label for="category_id">ზარის ტიპი</label></td>
							<td colspan="2"><label for="sub_category">ქვე-კატეგოტია</label></td>
							
						</tr>
						<tr>
							<td style="width: 180px;"><select id="category_parent_id" class="idls object">' . Getcategory($res['category_parent_id']) . '</select></td>
							<td style="width: 180px;"><select id="category_id" class="idls object">' . Getcategory1($res['category_parent_id'], $res['category_id']) . '</select></td>
							<td colspan="2"><select id="sub_category" style="width: 258px;" class="idls object">' . Getcategory2($res['category_id'], $res['sub_category']) . '</select>  </td>
							
						</tr>
					</table>

		    <table width="100%" class="dialog-form-table">
						<tr>
							<td style="width: 183px;"><label for="call_problem_date">პრობლემის თარიღი</label></td>
							<td style="width: 184px;"><label for="call_status">ინფორმაციის წყარო</label></td>
							<td style="width: 180px;"><label for="call_object_id">ბიზნეს ცენტრი</label></td>						
						</tr>
						<tr>	
							<td> <input type="text" id="call_problem_date" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['call_problem_date'] . '" /></td>
							<td style="width: 180px;"><select id="call_source_id" class="idls object">' . Getsource($res['call_source_id']) . '</select></td>
							<td colspan="2"><select  style="width: 258px;" id="call_object_id" class="idls object">' . Getobject($res['call_object_id']) . '</select></td>						
						</tr>
						<tr>
							<td style="width: 180px;"><label for="call_content">საუბრის შინაარსი</label></td>
						</tr>
						<tr>
							
							<td colspan="6">	
								<textarea  style="width: 641px; resize: none;" id="call_content" class="idle" name="call_content" cols="300" rows="4">' . $res['call_content'] . '</textarea>
							</td>
						</tr>			
					</table>
				</fieldset >
<!-------------------------------------------------------------------დავალება-------------------------------------------------------------------------->			   
				<fieldset style="margin-top: 5px;">
			    	<legend>დავალების ფორმირება</legend>
		
			    	<table class="dialog-form-table">
						<tr>
							<td style="width: 180px;"><label for="d_number">დავალების ტიპი</label></td>
							<td ><label for="d_number">განყოფილება</label></td>
							
						</tr>
			    		<tr>
							<td ><select  id="task_type_id" class="idls object">' . Gettask_type($res['task_type_id']) . '</select></td>
							<td ><select style="width: 465px;" id="task_department_id" class="idls object">' . Getdepartment($res['task_department_id']) . '</select></td>
						</tr>
					</table>		    
					<table class="dialog-form-table">
							    		    
						<tr>
							<td style="width: 500px;"><label for="d_number">პასუხისმგებელი პირი</label</td>	    
							<td style="width: 180px;"><label for="d_number">პრიორიტეტები</label></td>													
						</tr>
						<tr>
							<td ><select  style="width: 450px;" id="persons_id" class="idls object">' . Getpersons($res['persons_id']) . '</select></td>    
							<td style="width: 180px;"><select id="priority_id" class="idls object">' . Getpriority($res['priority_id']) . '</select></td>
						</tr>
					</table>
		        </fieldset>
			</div>
			<div>
				  </fieldset>
			</div>
			<div style="float: right;  width: 355px;">
					    
<!---------------------------------------------------------------კლიენტი---------------------------------------------------------------------------->							    
				 <fieldset onload="legal()">
					<legend>მომართვის ავტორი</legend>
					<table style="height: 172px;">
						<tr style="height:20px;">
							<td style="padding: 0px 0px 10px 45px;"><input type="radio" style="float:left;" class="legal" onclick="legal()" value="fhisical" name="legal" ' . ($res['abonent_status'] == "fhisical" ? "checked" : "checked") . '><span style="display: inline-block; margin: 8px;" >ფიზიკური </span></td>
							<td style="width: 180px; height:20px;"><input type="radio" style="float:left;" class="legal" onclick="legal()" value="Jural" name="legal" ' . ($res['abonent_status'] == "Jural" ? "checked" : "") . '><span style="display: inline-block; margin: 8px;">იურიდიული </td>
						</tr>
						<tr style="height:20px;">
							<td style="width: 180px; height:20px;">ტელეფონი</td>
							<td style="width: 180px; height:20px;"><div class="fhisical">პირადი ნომერი</div><div class="Jural">საიდენთიპიკაციო კოდი</div></td>
						</tr>	    
						<tr style="height:40px;">
							<td style="width: 180px; height:20px;"><input type="text" id="abonent_phone" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['abonent_phone'] . '" /></td>
                            <td style="width: 180px; height:20px;"><input type="text" id="abonent_pin" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['abonent_pin'] . '" /></td>
						</tr>
						<tr style="height:20px;">
							<td colspan="2" style="height:20px;"><div class="fhisical">აბონენტის სახელი გვარი</div><div class="Jural">ორგანიზაცია</div></td>
						</tr>
						<tr style="height:40px;">
							<td colspan="2" style="height:20px;">
								<input type="text" id="abonent_name" style="width: 328px;" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['abonent_name'] . '" />
							</td>		
						</tr>
						<tr style="height:20px;" class="Jural">
							<td colspan="2" style="height:20px;">პასუხისმგებელი პირი</td>
						</tr>		    
						<tr style="height:40px;" class="Jural">
							<td colspan="2" style="height:20px;">
								<input type="text" id="abonent_responsibl_person" style="width: 328px;" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['abonent_responsibl_person'] . '" />
							</td>		
						</tr>		    
						<tr style="height:20px;">
							<td colspan="2" style="height:20px;">მისამართი</td>
						</tr>
						<tr style="height:20px;">
							<td colspan="2" style="height:40px;">
								<input type="text" id="abonent_address" style="width: 328px;" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['abonent_address'] . '" />
							</td>		
						</tr>
						<tr style="height:20px;">
							<td style="width: 180px;"></td>
							<td style="width: 180px;">აბონენტის ნომერი</td>
						</tr>	    
						<tr style="height:40px;">
							<td style="width: 180px;">შენიშვნა</td>
                            <td style="width: 180px;"><input type="text" id="abonent_number" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['abonent_number'] . '" /></td>
						</tr>
                        <tr style="height:40px;">
							<td colspan="2">
								<textarea type="text" id="abonent_coment" style="width: 328px;" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" >' . $res['abonent_coment'] . '</textarea>
							</td>		
						</tr>        		    		    
						
					</table>
				</fieldset>
				';
    $data .= GetRecordingsSection($res);
    $data .= '		<fieldset>
					<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('incomming_call') . '" 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>
			</div>
	 		<input id="hidden_checker" type="text" value="' . $res['id'] . '" style="display: none;">
    </div>';
    return $data;
}
Ejemplo n.º 2
0
function GetPage($res = '', $number, $incom_id)
{
    $num = 0;
    if ($res[phone] == "") {
        $num = $number;
    } else {
        $num = $res[phone];
    }
    $tanxa = 'class="hidden dialog-form-table"';
    $disabled = '';
    $hidden_class = '';
    if ($_REQUEST['id'] == '') {
        $hidden_class = 'class="hidden"';
    } else {
        //echo $_REQUEST['id'];
        if ($res[category_id] == 407) {
            //echo $res[category_id];
            $tanxa = 'class="dialog-form-table"';
        } else {
            $tanxa = 'class="hidden dialog-form-table"';
        }
        $disabled = 'disabled="disabled"';
    }
    $increm = mysql_query("\tSELECT  `name`,\n\t \t\t\t\t\t\t\t\t`rand_name`,\n\t\t\t\t\t\t\t\t\t`id`\n\t\t\t\t\t\t\tFROM \t`file`\n\t\t\t\t\t\t\tWHERE   `task_id` = {$res['id']}\n\t\t\t\t\t\t\t  ");
    $data .= '
	<!-- jQuery Dialog -->
    <div id="add-edit-goods-form" title="საქონელი">
    	<!-- aJax -->
	</div>
	<div id="dialog-form">
			<div style="float: left; width: 500px;">	
				<fieldset >
			    	<legend>ძირითადი ინფორმაცია</legend>
		
			    	<table width="100%" class="dialog-form-table">
						<tr>
							<td style="width: 215px;"><label for="req_num">დავალების №</label></td>
							<td style="width: 215px !important;"><label for="req_data">თარიღი</label></td>
							<td style="width: 215px;"><label for="req_data">ტელეფონი</label></td>
						</tr>						
						<tr>
							<td style="width: 215px;">
								<input  style="width: 180px; type="text" id="id" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField user_id\'" value="' . $res['id'] . '" disabled="disabled" />
							</td>
							<td style="width: 215px;">
								<input style="width: 180px; type="text" id="c_date" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField date\'" value="' . $res['call_date'] . '" disabled="disabled" />
							</td>
							<td style="width: 215px;">
								<input style="width: 180px; type="text" id="phone" class="idle" onblur="this.className=\'idle\'" value="' . $res['phone'] . '" />
							</td>
							
						</tr>
					</table>';
    $data .= '<table id="additiona" class="dialog-form-table" width="100%">				
									
						<tr>
							<td style="width: 215px;"><label for="d_number">ზარის ტიპი</label></td>
							<td style="width: 215px;"><label for="d_number">კატეგორია</label></td>
							<td style="width: 215px;"><label for="d_number">ქვე-კატეგოტია</label></td>
							
						</tr>
						<tr>
							<td style="width: 215px;"><select style="width: 186px;" id="call_type_id" class="idls object"" >' . Getcall_type($res['call_type_id']) . '</select></td>
							<td style="width: 215px;"><select style="width: 186px;" id="category_parent_id" class="idls object"" >' . Getcategory1($res['call_type_id'], $res['category_id']) . '</select></td>
							<td style="width: 215px;"><select style="width: 186px;" id="category_id" class="idls object"" >' . Getcategory2($res['category_id'], $res['category_parent_id']) . '</select></td>
							
						</tr>
						</table>
						<table id="additiona3" ' . $tanxa . ' width="100%">
						<tr id="aaaa">
							<td style="width: 215px;"><label id="pey_label1" for="d_number">ტრანზაქციის ფორმა</label></td>
							<td style="width: 215px;"><label for="d_number" id="bank_label">მომსახურე ბანკი</label></td>
							<td style="width: 215px;"><label id="pey_label"  for="d_number" >აპარატის ტიპი</label></td>
							
						</tr>
						<tr id="c">
							<td style="width: 215px;"><select style="width: 186px;" id="pay_type_id" class="idls object">' . Getpay_type($res['pay_type_id']) . '</select></td>
							<td style="width: 215px;"><select style="width: 186px;" id="bank_id" class="idls object">' . Get_bank($res['bank_id']) . '</select></td>
							<td style="width: 215px;"><select style="width: 186px;" id="pay_aparat_id" class="idls object">' . Getpay_aparat($res['pay_aparat_id']) . '</select></td>

						</tr>
						<tr id="bbbb">
							<td style="width: 215px;"><label for="d_number" id="card_label">ბარათის ტიპი</label></td>
							<td style="width: 215px;"></td>
							<td style="width: 215px;"></td>
							
						</tr>
						<tr id="d">
							<td style="width: 215px;"><select style="width: 186px;" id="card_type_id" class="idls object">' . Getcard_type($res['card_type_id']) . '</select></td>
							<td style="width: 215px;"></td>
							<td style="width: 215px;"></td>
						
						</tr>
					</table>
					<table id="additiona2" class="dialog-form-table" width="100%">	
						<tr>
							<td style="width: 215px;"><label for="req_num">პრობლემის თარიღი</label></td>
							<td style="width: 215px;"><label for="d_number">სტატუსი</label></td>
							<td style="width: 215px;"><label for="d_number">ობიექტი</label></td>			
						</tr>
						<tr>	
							<td style="width: 215px;">
								<input style="width: 180px;" type="text" id="problem_date" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res[problem_date] . '""  />
							</td>
							<td style="width: 215px;"><select style="width: 186px;" id="call_status_id" class="idls object">' . Getcall_status($res['call_status_id']) . '</select></td>
							<td style="width: 215px;"><select style="width: 186px;" id="object_id" class="idls object">' . Getobject($res['object_id']) . '</select></td>	
								
						</tr>
						<tr>
							<td style="width: 215px;"><label for="task_type_id">დავალების ტიპი</label></td>
							<td style="width: 215px;"><label for="task_department_id">განყოფილება</label></td>
							<td style="width: 215px;"><label for="persons_id">პასუხისმგებელი პირი</label></td>
						</tr>
						<tr>
							<td style="width: 215px;"><select style="width: 186px;" id="task_type_id" class="idls object">' . Gettask_type($res['task_type_id']) . '</select></td>
							<td style="width: 215px;"><select style="width: 186px;" id="task_department_id" class="idls object">' . Getdepartment($res['task_department_id']) . '</select></td>
							<td style="width: 215px;"><select style="width: 186px;" id="persons_id" class="idls object">' . Getpersons($res['persons_id']) . '</select></td>
						</tr>
						<tr>
							<td style="width: 215px;"><label for="task_type_id">ინფორმაციის წყარო</label></td>
							<td style="width: 215px;"><label id="pr" class="hidden" for="d_number">პრიორიტეტები</label></td>
							<td style="width: 215px;"></td>
						</tr>
						<tr>
							<td style="width: 215px;"><select style="width: 186px;" id="source" class="idls object">' . Getsource($res['source']) . '</select></td>
							<td style="width: 215px;"><label class="hidden" id="priority"><select id="priority_id" class="idls" >' . Getpriority($res['priority_id']) . '</label></select></td>
							<td style="width: 215px;"></td>
						</tr>
						</table>

									
						<table id="additiona1" class="hidden dialog-form-table" width="100%">
						<tr>
							<td style="width: 215px;"><label for="req_num">შესრ.პერ.დასაწყისი</label></td>
							<td style="width: 215px !important;"><label for="req_data">შესრ.პერ.დასასრული</label></td>
							<td style="width: 215px;"><label for="req_phone">შესრულების დრო</label></td>
						</tr>
						<tr>
							<td style="width: 215px;">
								<input type="text" id="planned_date" style="width: 180px;" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['planned_end_date'] . '" />
							</td>
							<td style="width: 215px;">
								<input type="text" id="fact_end_date" style="width: 180px;" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['call_date'] . '"/>
							</td>
							<td style="width: 215px;">
								<input type="text" id="call_duration" style="width: 180px;" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $num . '" />
							</td>
						</tr>
					</table>	
								<br>	
									
						<table>			
						<tr>
							<td style="width: 150px;"><label for="content">საუბრის შინაარსი</label></td>
							<td style="width: 150px;"><label for="content"></label></td>
							<td style="width: 150px;"><label for="content"></label></td>
						</tr>
						<tr>
							<td colspan="6">
								<textarea  ' . $disabled . ' style="width: 641px; resize: vertical;" id="comment" class="idle" name="content" cols="300" rows="4">' . $res['comment'] . '</textarea>
							</td>
						</tr>
						<tr>
							<td ' . $hidden_class . ' style="width: 215px;"><label for="content">პრობლემის გადაწყვეტა</label></td>
						</tr>
						<tr>
							
							<td colspan="5">	
								<textarea ' . $hidden_class . ' style="width: 641px; resize: vertical;" id="problem_comment" class="idle" name="call_content" cols="300" rows="4">' . $res['problem_comment'] . '</textarea>
							</td>
						</tr>	
					</table>';
    $data .= '
				</fieldset >
		   
				
			</div>
			<div>
				  </fieldset>
			</div>
			<div style="float: right;  width: 355px;">
				 					    
<!---------------------------------------------------------------კლიენტი---------------------------------------------------------------------------->							    
				 <fieldset onload="legal()">
					<legend>მომართვის ავტორი</legend>
					<table style="height: 172px;">
						<tr style="height:20px;">
							<td style="padding: 0px 0px 10px 45px;"><input type="radio" style="float:left;" class="legal" onclick="legal()" value="fhisical" name="legal" ' . ($res['abonent_status'] == "fhisical" ? "checked" : "checked") . '><span style="display: inline-block; margin: 8px;" >ფიზიკური </span></td>
							<td style="width: 180px; height:20px;"><input type="radio" style="float:left;" class="legal" onclick="legal()" value="Jural" name="legal" ' . ($res['abonent_status'] == "Jural" ? "checked" : "") . '><span style="display: inline-block; margin: 8px;">იურიდიული </td>
						</tr>
						<tr style="height:20px;">
							<td style="width: 180px; height:20px;">ტელეფონი</td>
							<td style="width: 180px; height:20px;"><div class="fhisical">პირადი ნომერი</div><div class="Jural">საიდენთიპიკაციო კოდი</div></td>
						</tr>	    
						<tr style="height:40px;">
							<td style="width: 180px; height:20px;"><input type="text" id="abonent_phone" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['abonent_phone'] . '" /></td>
                            <td style="width: 180px; height:20px;"><input type="text" id="abonent_pin" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['abonent_pin'] . '" /></td>
						</tr>
						<tr style="height:20px;">
							<td colspan="2" style="height:20px;"><div class="fhisical">აბონენტის სახელი გვარი</div><div class="Jural">ორგანიზაცია</div></td>
						</tr>
						<tr style="height:40px;">
							<td colspan="2" style="height:20px;">
								<input type="text" id="abonent_name" style="width: 328px;" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['abonent_name'] . '" />
							</td>		
						</tr>
						<tr style="height:20px;" class="Jural">
							<td colspan="2" style="height:20px;">პასუხისმგებელი პირი</td>
						</tr>		    
						<tr style="height:40px;" class="Jural">
							<td colspan="2" style="height:20px;">
								<input type="text" id="abonent_responsibl_person" style="width: 328px;" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['abonent_responsibl_person'] . '" />
							</td>		
						</tr>		    
						<tr style="height:20px;">
							<td colspan="2" style="height:20px;">მისამართი</td>
						</tr>
						<tr style="height:20px;">
							<td colspan="2" style="height:40px;">
								<textarea type="text" id="abonent_address" style="width: 328px; resize: vertical;" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'"  >' . $res['abonent_address'] . '</textarea>
							</td>		
						</tr>
						<tr style="height:20px;">
							<td style="width: 180px;"></td>
							<td style="width: 180px;">აბონენტის ნომერი</td>
						</tr>	    
						<tr style="height:40px;">
							<td style="width: 180px;">შენიშვნა</td>
                            <td style="width: 180px;"><input type="text" id="abonent_number" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['abonent_number'] . '" /></td>
						</tr>
                        <tr style="height:40px;">
							<td colspan="2">
								<textarea type="text" id="abonent_coment" style="width: 328px; resize: vertical;" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" >' . $res['abonent_coment'] . '</textarea>
							</td>		
						</tr>        		    		    
						
					</table>
				</fieldset>
				
				<div id="additional_info">';
    if (!empty($res['personal_pin'])) {
        $data .= get_addition_all_info($res['personal_pin']);
    }
    $data .= '</div>';
    $data .= GetRecordingsSection($res);
    $data .= '		<fieldset>
		         	<legend>დამატებითი ინფორმაცია</legend> 
		         	<table id="additiona1" class="hidden dialog-form-table" style="float: left; border: 1px solid #85b1de; width: 180px; text-align: center;">
			        <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="download">აირჩიეთ ფაილი</button>
									<input id="hidden_inc" type="text" value="' . increment('task') . '" 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>
							
			</div>
		<!-- ID -->
		<input type="hidden" id="req_id" value="' . $res['id'] . '" />
    </div>';
    return $data;
}