Esempio 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 = '';
    }
    $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");
    $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>
						<tr>
							<label for="req_num">დამფორმირებელი</label>
							<label for="req_num">:</label>
							<label for="req_num">' . $res['operator'] . '</label>
						</tr>
			    	<table width="100%" class="dialog-form-table">
						<tr>
							<td style="width: 180px;"><label for="req_num">მომართვა №</label></td>
							<td style="width: 180px !important;"><label for="req_data">თარიღი</label></td>
							<td style="width: 180px;"><label for="req_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'] . '" 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'] . '" disabled="disabled" />
							</td>
							<td style="width: 180px;">
								<input type="text" id="phone" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $num . '" disabled="disabled"/>
							</td>
							<td style="width: 69px;">
								
							</td>
						</tr>
						<tr>
							<td style="width: 180px;"><label for="d_number">ზარის ტიპი</label></td>
							<td style="width: 180px;"><label for="d_number">კატეგორია</label></td>
							<td style="width: 180px;"><label for="d_number">ქვე-კატეგოტია</label></td>
							<td ></td>
						</tr>
						<tr>
							<td style="width: 180px;"><select id="call_type_id" class="idls object"disabled="disabled">' . Getcall_type($res['call_type_id']) . '</select></td>
							<td style="width: 180px;"><select id="category_parent_id" class="idls object"disabled="disabled">' . Getcategory($res['category_parent_id']) . '</select></td>
							<td style="width: 180px;"><select id="category_id" class="idls object"disabled="disabled">' . Getcategory1_edit($res['category_id']) . '</select></td>
							<td ></td>
						</tr>
					</table>';
    $data .= '<table id="additional" class="hidden dialog-form-table" width="100%">

						<tr id="aaaa">
							<td style="width: 180px;"><label pey_label1 for="d_number">ტრანზაქციის ფორმა</label></td>
							<td style="width: 180px;"><label id="bank_label" for="d_number">მომსახურე ბანკი</label></td>
							<td style="width: 180px;"><label id="pey_label" for="d_number">აპარატის ტიპი</label></td>
							<td style="width: 106px;"></td>
						</tr>
						<tr id="c">
							<td style="width: 180px;"><select id="pay_type_id" class="idls object"disabled="disabled">' . Getpay_type($res['pay_type_id']) . '</select></td>
							<td style="width: 180px;"><select id="bank_id" class="idls object"disabled="disabled">' . Get_bank($res['bank_id']) . '</select></td>
							<td style="width: 180px;"><select id="pay_aparat_id" class="idls object"disabled="disabled">' . Getpay_aparat($res['pay_aparat_id']) . '</select></td>
							<td style="width: 106px;"></td>
						</tr>
						<tr id="bbbb">
							<td style="width: 180px;"><label id="card_label" for="d_number">ბარათის ტიპი</label></td>
							<td style="width: 180px;"></td>
							<td style="width: 180px;"></td>
							<td style="width: 106px;"></td>
						</tr>
						<tr id="d" >
							<td style="width: 180px;"><select id="card_type_id" class="idls object"disabled="disabled">' . Getcard_type($res['card_type_id']) . '</select></td>
							<td style="width: 180px;"></td>
							<td style="width: 180px;"></td>
							<td style="width: 106px;"></td>
						</tr>
					</table>';
    $data .= '<table width="100%" class="dialog-form-table">
						<tr>
							<td style="width: 180px;"><label for="req_num">პრობლემის თარიღი</label></td>
							<td style="width: 180px;"><label for="d_number">სტატუსი</label></td>
							<td style="width: 180px;"><label for="d_number">ობიექტი</label></td>			
							<td ></td>
						</tr>
						<tr>	
							<td style="width: 180px;"> <input type="text" id="problem_date" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['problem_date'] . '"disabled="disabled" /></td>
							<td style="width: 180px;"><select id="call_status_id" class="idls object"disabled="disabled"disabled="disabled">' . Getcall_status($res['status']) . '</select></td>
							<td style="width: 180px;"><select id="object_id" class="idls object"disabled="disabled">' . Getobject($res['object_id']) . '</select></td>	
							<td ></td>
						</tr>
						
						<tr>
							<td style="width: 180px;"><label for="req_num">ინფორმაციის წყარო</label></td>
							<td style="width: 180px;"></td>
							<td style="width: 180px;"></td>			
							<td ></td>
						</tr>
						<tr>	
							<td style="width: 180px;"><select id="source_id" class="idls object"disabled="disabled">' . Getsource($res['source_id']) . '</select></td>
							<td style="width: 180px;"></td>
							<td style="width: 180px;"></td>	
							<td ></td>
						</tr>
						<tr>
							<td style="width: 180px;"><label for="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"disabled="disabled">' . $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 style="width: 180px;"><label for="d_number">განყოფილება</label></td>
							<td style="width: 180px;"><label for="d_number">პასუხისმგებელი პირი</label></td>
						</tr>
			    		<tr>
							<td style="width: 180px;" id="task_type_change"><select id="task_type_id" class="idls object"disabled="disabled">' . Gettask_type($res['task_type_id']) . '</select></td>
							<td style="width: 180px;"><select id="task_department_id" class="idls object"disabled="disabled">' . Getdepartment($res['task_department_id']) . '</select></td>
							<td style="width: 180px;"><select id="persons_id" class="idls object"disabled="disabled">' . Getpersons($res['persons_id']) . '</select></td>
						</tr>
						<tr>
							<td style="width: 180px;"><label for="d_number">პრიორიტეტები</label></td>
							<td style="width: 180px;"><label for="d_number">მაკონტროლებელი</label></td>
							<td style="width: 180px;"><label for="d_number">სხვა ნომერი</label></td>
						</tr>
						<tr>
							<td style="width: 180px;"><select id="priority_id" class="idls object">' . Getpriority($res['priority_id']) . '</select></td>
							<td style="width: 180px;"><select id="controler_id" class="idls object">' . Get_control($res['control_user_id']) . '</select></td>
							<td style="width: 180px;">
								<input type="text" id="task_phone" class="idle" onblur="this.className=\'idle\'" value="' . $res['task_phone'] . '" />	
							</td>
						</tr>
						<tr>
							<td style="width: 180px;"><label for="content">პრობლემის გადაწყვეტა</label></td>
						</tr>
						<tr>
							
							<td colspan="6">	
								<textarea  style="width: 641px; resize: none;" id="problem_coment" class="idle" name="call_content" cols="300" rows="4"disabled="disabled">' . $res['problem_comment'] . '</textarea>
							</td>
						</tr>	
					</table>
		        </fieldset>
			</div>
			<div>
				  </fieldset>
			</div>
			<div style="float: right;  width: 355px;">
				 <fieldset>
					<legend>მომართვის ავტორი</legend>
					<table style="height: 119px;">
						<tr>
							<td style="width: 180px;">PIN კოდი</td>
							<td style="width: 180px;"></td>
						</tr>
						<tr>
							<td style="width: 180px;"><input type="text" id="personal_pin" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['personal_pin'] . '"' . $dis . ' disabled="disabled"/></td>
							<td style="width: 180px;" class="hidden friend">
							</td>
						</tr>
						<tr>
							<td style="width: 180px;">პირადი ნომერი</td>
							<td style="width: 180px;"></td>
						</tr>
						<tr>
							<td style="width: 180px;">
								<input type="text" id="personal_id" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['personal_id'] . '" ' . $dis . 'disabled="disabled"/>
							</td>
							<td style="width: 180px;"></td>
						</tr>
					</table>
				</fieldset>
				<div id="additional_info">';
    $data .= '</div>';
    $data .= GetRecordingsSection1($res);
    $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_user" type="text" value="' . $res['user_id'] . '" style="display: none;">
    </div>';
    return $data;
}
Esempio n. 2
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;
}
Esempio n. 3
0
function GetPage($res = '')
{
    $c_date = date('Y-m-d H:i:s');
    $check_name = mysql_fetch_assoc(mysql_query("SELECT `name` as check_name \n                                               FROM    requesters\n                                               WHERE   phone = '{$res['source']}' \n                                               LIMIT 1"));
    if ($res[name] == '') {
        $name = $check_name['check_name'];
    } else {
        $name = $res['name'];
    }
    $disable = '';
    if ($name != '') {
        $disable1 = 'disabled';
        $dis_val = 1;
    } else {
        $disable1 = '';
        $dis_val = 0;
    }
    $data .= '
	<!-- jQuery Dialog -->
    <div id="add-edit-goods-form" title="საქონელი">
    	<input id="disable_all" type="hidden" value="' . $dis_val . '">
    	<input id="update_status" type="hidden" value="0">
	</div>
	<div id="dialog-form">
	<table width="100%" class="dialog-form-table">
        <tr>
            <td style="vertical-align: top;">
                <fieldset style="width: 190px; margin-top: 55px;">
                	<legend>ძირითადი ინფორმაცია</legend>
                    <table class="dialog-form-table">
                		<tr>
                            <td>
                			     <label for="req_num">ავტორი</label>
                            </td>
                            <td>
                			     <label for="req_num">:</label>
                            </td>
                            <td>
                			     <label for="req_num">' . $res['operator'] . '</label>
                			</td>
                		</tr>
            		</table>
                	<table width="100%" class="dialog-form-table">
            			<tr>
            				<td style="width: 180px;"><label for="req_num">მომართვა №</label></td>
                		</tr>
                	    <tr>
            				<td style="width: 100px;">
            					<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>
            		    </tr>
            			<tr>
            				<td style="width: 180px !important;"><label  for="req_data">თარიღი</label></td>
                		</tr>
            		    <tr>
            				<td style="width: 180px;">
            					<input style="width: 180px;" type="text" id="call_date" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField date\'" value="' . $res['date'] . '" disabled="disabled" />
            				</td>
            			</tr>
            			<tr>
            				<td style="width: 180px;"><label  for="req_phone">ტელეფონი</label></td>
                	    </tr>
            			<tr>
            				<td style="width: 150px;">
            					<input style="width: 180px;" type="text" id="phone" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['source'] . '" ' . $disable . ' />
            				</td>
            			</tr>
            			<tr>
            			    <td style="width: 180px;"><label  for="req_phone">სახელი</label></td>
            			</tr>
            			<tr>
            			    <td style="width: 180px;">
            					<input style="width: 180px;" type="text" id="client_name" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $name . '" ' . $disable1 . ' />
            				</td>
            			</tr>
            		    <tr>
            				<td style="width: 180px;"><label for="d_number">ზარის სტატუსი</label></td>
            			</tr>
            			<tr>
            				<td style="width: 180px;"><select style="width: 180px;" id="call_status" class="idls object" ' . $disable . '>' . Getcall_status($res['call_status_id']) . '</select></td>
            			</tr>
            		    <tr style="margin-top: 20px; margin-top=25px">
            				<td style="width: 180px;"><label for="content">დამატებითი ინფორმაცია</label></td>
            			</tr>
            			<tr>
            				<td colspan="5">
            					<div id="content">		
            					<textarea  style="width: 180px; resize: vertical; margin-top: 5px;" id="call_content" class="idle" name="call_content" cols="300" rows="2" ' . $disable . '>' . $res['call_content'] . '</textarea>
            					</div>
            				</td>
            			</tr>			
            		</table>
            	</fieldset>
                <fieldset style="margin-top: 5px; width: 190px;">
                	<legend>დავალების ფორმირება</legend>
                    <table class="dialog-form-table">
            			<tr style="display: none">
            				<td style="width: 180px;"><label for="d_number">პასუხისმგებელი პირი</label></td>
            			</tr>
            			<tr style="display: none">
            				<td style="width: 180px;"><select style="width: 180px;" id="persons_id" class="idls object" ' . $disable . '>' . Getpersons($res['responsible_user_id']) . '</select></td>
            		    </tr>
            			<tr>
            				<td style="width: 180px;"><label for="d_number">დეპარტამენტი</label></td>
            			</tr>
            			<tr>
            				<td style="width: 180px;"><select style="width: 180px;" id="department_id" class="idls object" ' . $disable . '>' . Getdepartment($res['department_id']) . '</select></td>
            			</tr>
                		<tr>
            				<td style="width: 180px;"><label for="d_number">დავალების ტიპი</label></td>
            			</tr>
            			<tr>
            				<td style="width: 180px;"><select style="width: 180px;" id="task_type_id" class="idls object" ' . $disable . '>' . Gettask_type($res['task_type_id']) . '</select></td>
            			</tr>
            		    <tr>
            				<td style="width: 180px;"><label for="d_number">პრიორიტეტი</label></td>
            			</tr>
            		    <tr>
            				<td style="width: 180px;"><select style="width: 180px;" id="priority_id" class="idls object" ' . $disable . '>' . Getpriority($res['priority_id']) . '</select></td>
            			</tr>
                		<tr style="display: none">
            				<td style="width: 180px;"><label for="d_number">სხვა ნომერი</label></td>
            			</tr>
                		<tr style="display: none">	
            				<td style="width: 180px;">
            					<input type="text" style="width: 180px;" id="out_phone" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['task_phone'] . '" ' . $disable . ' />
            				</td>
            			</tr>
            			<tr>
            				<td style="width: 180px;"><label for="content">შინაარსი</label></td>
            			</tr>
            			<tr>
            				
            				<td>	
            					<textarea  style="width: 180px; resize: vertical;" id="problem_coment" class="idle" name="call_content" cols="300" rows="2" ' . $disable . '>' . $res['problem_comment'] . '</textarea>
            				</td>
            			</tr>	
            		</table>
                </fieldset>
        	</td>
            <td>
            	<fieldset id="search" style="float: right; margin-top: 62px;">
            	</fieldset>
            </td>
        	<td style="vertical-align: top;">';
    $data .= '</div><div id="chanawerebi" style="float: right; width: 195px;">';
    $data .= GetRecordingsSection($res);
    $data .= GetRecordingsSection1($res);
    $data .= '</div>
            </td>
        </tr>
    </table>
                    
        <input id="hidden_user" type="text" value="' . $res['user_id'] . '" style="display: none;">
    	<input id="asterisk_incomming_id" type="text" value="' . $res['asterisk_incomming_id'] . '" style="display: none;">
    	<input id="inc_id" type="text" value="' . $res['id'] . '" style="display: none;">
    	    
    </div>';
    return $data;
}
Esempio n. 4
0
function GetPage($res = '', $number)
{
    $c_date = date('Y-m-d H:i:s');
    $num = 0;
    if ($res[date] == "") {
        $date = $c_date;
    } else {
        $date = $res[date];
    }
    if ($res[date] == 0) {
        $diss = '';
    } else {
        $diss = 'disabled="disabled"';
    }
    $data .= '
	<!-- jQuery Dialog -->
    <div id="add-edit-goods-form" title="საქონელი">
    	<!-- aJax -->
	</div>
	<div id="dialog-form">
			<div style="float: left; width: 800px;">	
				<fieldset >
			    	<legend>ძირითადი ინფორმაცია</legend>
					<tr>
						<label for="req_num">დამფორმირებელი</label>
						<label for="req_num">:</label>
						<label for="req_num">' . $res['operator'] . '</label>
					</tr>
			    	<table width="100%" class="dialog-form-table">
						<tr>
							<td style="width: 100px;"><label for="req_num">მომართვა №</label></td>
							<td style="width: 150px !important;"><label style="margin-left: -70px;" for="req_data">თარიღი</label></td>
							<td style="width: 150px;"><label style="margin-left: -55px;" for="req_phone">ტელეფონი</label></td>
						    <td style="width: 180px;"><label style="margin-left: -50px;" for="req_phone">სახელი</label></td>
						</tr>
						<tr>
							<td style="width: 100px;">
								<input style="width: 75px;" type="text" id="task_id" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField user_id\'" value="' . $res['id'] . '" disabled="disabled" />
							</td>
							<td style="width: 150px;">
								<input style="width: 130px; margin-left: -70px;" type="text" id="call_date" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField date\'" value="' . $date . '" disabled="disabled" />
							</td>
							<td style="width: 150px;">
								<input style="width: 120px; margin-left: -55px;" type="text" id="phone" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['phone'] . '" ' . $diss . ' />
							</td>
						    <td style="width: 200px;">
								<input style="width: 200px; margin-left: -50px;" type="text" id="client_name" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['name'] . '" ' . $diss . '/>
							</td>
						</tr>
					   <tr>
						    <td style="width: 180px;"><label for="d_number">ზარის სტატუსი</label></td>
							<td colspan="3" style="width: 240px;"><label for="d_number">დავალების სტატუსი</label></td>
						</tr>
			    		<tr>
						    <td style="width: 180px;"><select style="width: 180px;" id="call_status" class="idls object" disabled="disabled">' . Getcall_status($res['call_status_id']) . '</select></td>
							<td colspan="3" style="width: 240px;"><select style="width: 230px;" id="task_status" class="idls object" ' . $diss . '>' . status($res['status']) . '</select></td>
						</tr>
					   <tr style="margin-top: 20px; margin-top=25px">
							<td style="width: 180px;"><label for="content">დამატებითი ინფორმაცია</label></td>
						</tr>
						<tr>
							<td colspan="6">
								<div id="content">		
								<textarea  style="width: 760px; resize: vertical; margin-top: 5px;" id="call_content" class="idle" name="call_content" cols="300" rows="2"' . $diss . '>' . $res['call_content'] . '</textarea>
								</div>
							</td>
						</tr>			
					</table>
				</fieldset >
		        </div>
				<div style="float: left; width: 800px;">
				   <fieldset style="margin-top: 5px;">
			    	<legend>დავალების ფორმირება</legend>
		
			    	<table class="dialog-form-table">
						<tr>
							<td style="width: 240px;"><label for="d_number">პასუხისმგებელი პირი</label></td>
						    <td style="width: 240px;"><label for="d_number">დეპარტამენტი</label></td>
							<td style="width: 240px;"><label for="d_number">დავალების ტიპი</label></td>
						</tr>
			    		<tr>
							<td style="width: 240px;"><select style="width: 230px;" id="persons_id" class="idls object" ' . $diss . '>' . Getpersons($res['responsible_user_id']) . '</select></td>
							<td style="width: 240px;">
    				            <select style="width: 230px;" id="department_id" class="idls object" ' . $diss . '>' . Getdepartment($res['department_id']) . '</select>
    				        </td>
							<td style="width: 240px;"><select style="width: 230px;" id="task_type_id" class="idls object" ' . $diss . '>' . Gettask_type($res['task_type_id']) . '</select></td>
						</tr>
					    <tr>
							<td style="width: 180px;"><label for="d_number">პრიორიტეტი</label></td>
							<td style="width: 240px;"><label for="d_number"></label></td>
							<td style="width: 240px;"><label for="d_number"></label></td>
						</tr>
			    		<tr>
							<td style="width: 180px;"><select style="width: 230px;" id="priority_id" class="idls object" ' . $diss . '>' . Getpriority($res['priority_id']) . '</select></td>
							<td style="width: 240px;"></td>
							<td style="width: 240px;"></select></td>
						</tr>
						<tr>
							<td style="width: 240px;"><label for="content">შინაარსი</label></td>
						</tr>
						<tr>
							<td colspan="6">	
								<textarea  style="width: 760px; resize: vertical;" id="problem_coment" class="idle" name="call_content" cols="300" rows="2"' . $diss . '>' . $res['problem_comment'] . '</textarea>
							</td>
						</tr>
					    <tr>
							<td style="width: 240px;"><label for="content">პრობლემის გადაწყვეტა</label></td>
						</tr>
						<tr>
							<td colspan="6">	
								<textarea  style="width: 760px; resize: vertical;" id="comment" class="idle" name="call_content" cols="300" rows="2" ' . $diss . '>' . $res['comment'] . '</textarea>
							</td>
						</tr>
					    <tr>
							<td style="width: 240px;"><label for="content">პრობლემის გადაწყვეტა</label></td>
						</tr>
						<tr>
							<td colspan="6">	
								<textarea  style="width: 760px; resize: vertical;" id="comment1" class="idle" name="call_content" cols="300" rows="2" ' . $diss . '>' . $res['comment1'] . '</textarea>
							</td>
						</tr>
					</table>
		        </fieldset>
			';
    $data .= '</div><div id=chanawerebi style="float: right; width: 195px; margin-top: -194px;">';
    $data .= GetRecordingsSection($res);
    $data .= GetRecordingsSection1($res);
    $data .= '	</table></fieldset></div>
	     
 		<input id="hidden_user" type="text" value="' . $res['user_id'] . '" style="display: none;">
 		<input id="asterisk_incomming_id" type="text" value="' . $res['asterisk_incomming_id'] . '" style="display: none;">
 		<input id="task_hide_id" type="text" value="' . $res['id'] . '" style="display: none;">
 		<input id="task_hide_department_id" type="text" value="' . $res['department_id'] . '" style="display: none;">
 	</div>';
    return $data;
}
function GetPage($res = '', $number)
{
    $diss = 'disabled="disabled"';
    $data .= '
	<div id="dialog-form">
			<table style="float: left; width: 800px;">
	             <tr>
    	             <td>  
        				 <fieldset>
        			    	<legend>ძირითადი ინფორმაცია</legend>
        					<table width="100%" class="dialog-form-table">
        						<tr>
        							<td style="width: 100px;"><label for="req_num">მომართვა №</label></td>
        							<td style="width: 100px;"><label style="" for="req_data">თარიღი</label></td>
        							<td style="width: 100px;"><label style="" for="req_phone">ტელეფონი</label></td>
        						    <td style="width: 100px;"><label style="" for="req_phone">სახელი</label></td>
        						</tr>
        						<tr>
        							<td style="width: 100px;">
        								<input style="width: 130px;" type="text" id="task_id" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField user_id\'" value="' . $res['id'] . '" disabled="disabled" />
        							</td>
        							<td style="width: 100px;">
        								<input style="width: 130px;" type="text" id="call_date" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField date\'" value="' . $res['date'] . '" disabled="disabled" />
        							</td>
        							<td style="width: 100px;">
        								<input style="width: 130px; " type="text" id="phone" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['phone'] . '" ' . $diss . ' />
        							</td>
        						    <td style="width: 100px;">
        								<input style="width: 130px; " type="text" id="client_name" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['name'] . '" ' . $diss . '/>
        							</td>
        						</tr>
        					    <tr>
        							<td colspan="2" style="width: 100px;"><label for="d_number">სტატუსი</label></td>
        						    <td colspan="2" style="width: 100px;"><label for="d_number">პასუხისმგებელი პირი</label></td>
        						</tr>
        			    		<tr>
        							<td colspan="2" style="width: 100px;"><select style="width: 300px;" id="task_status" class="idls object"' . $diss . '>' . status($res['status']) . '</select></td>
        							<td colspan="2" style="width: 100px;"><select style="width: 300px;" id="persons_id" class="idls object" ' . $diss . '>' . Get_persons($res['responsible_user_id']) . '</select></td>
        						</tr>
        					   <tr style="margin-top: 20px; margin-top=25px">
        							<td colspan="4" style="width: 100px;"><label for="content">დამატებითი ინფორმაცია</label></td>
        						</tr>
        						<tr>
        							<td colspan="4">
        								<div id="content">		
        								<textarea  style="width: 650px; resize: vertical; margin-top: 5px;" id="call_content" class="idle" name="call_content" cols="300" rows="2"' . $diss . '>' . $res['call_content'] . '</textarea>
        								</div>
        							</td>
        						</tr>			
        					    <tr>
        							<td colspan="4" style="width: 100px;"><label for="content">შინაარსი</label></td>
        						</tr>
        						<tr>
        							<td colspan="4">	
        								<textarea  style="width: 650px; resize: vertical;" id="problem_coment" class="idle" name="call_content" cols="300" rows="2"' . $diss . '>' . $res['problem_comment'] . '</textarea>
        							</td>
        						</tr>
        					    <tr>
        							<td colspan="4" style="width: 100px;"><label for="content">პრობლემის გადაწყვეტა</label></td>
        						</tr>
        						<tr>
        							<td colspan="4">	
        								<textarea  style="width: 650px; resize: vertical;" id="comment" class="idle" name="call_content" cols="300" rows="2"' . $diss . '>' . $res['comment'] . '</textarea>
        							</td>
        						</tr>	
        					</table>
        		        </fieldset>
                	</td>
                    <td id=chanawerebi style="float: right; width: 195px;">';
    $data .= GetRecordingsSection1($res);
    $data .= '
                    </td>
                </tr>
          </table>
	    <input id="asterisk_incomming_id" type="text" value="' . $res['asterisk_incomming_id'] . '" style="display: none;">
 		<input id="task_hidde_id" type="text" value="' . $res['id'] . '" style="display: none;">
 	</div>';
    return $data;
}