예제 #1
0
<?php

require_once '../../includes/classes/core.php';
session_start();
$action = $_REQUEST['act'];
$error = '';
$data = '';
$user_id = $_SESSION['USERID'];
switch ($action) {
    case 'get_add_page':
        $page = GetPage();
        $data = array('page' => $page);
        break;
    case 'get_edit_page':
        $task_id = $_REQUEST['id'];
        $page = GetPage(Gettask_type($task_id));
        $data = array('page' => $page);
        break;
    case 'get_list':
        $count = $_REQUEST['count'];
        $hidden = $_REQUEST['hidden'];
        $rResult = mysql_query("SELECT \ttask_type.id,\r\n\t\t\t\t\t\t\t\t\t\ttask_type.`name`\r\n\t\t\t\t\t\t\t    FROM \ttask_type\r\n\t\t\t\t\t\t\t    WHERE \ttask_type.actived=1");
        $data = array("aaData" => array());
        while ($aRow = mysql_fetch_array($rResult)) {
            $row = array();
            for ($i = 0; $i < $count; $i++) {
                /* General output */
                $row[] = $aRow[$i];
                if ($i == $count - 1) {
                    $row[] = '<input type="checkbox" name="check_' . $aRow[$hidden] . '" class="check" value="' . $aRow[$hidden] . '" />';
                }
예제 #2
0
function GetPage($res = '', $number)
{
    $num = 0;
    if ($res[phone] == "") {
        $num = $number;
    } else {
        $num = $res[phone];
    }
    $increm = mysql_query("\tSELECT  `name`,\r\n\t\t\t`rand_name`\r\n\t\t\tFROM \t`file`\r\n\t\t\tWHERE   `task_id` = {$res['id']}\r\n\t\t\t");
    if ($res[call_id] == '') {
        $data .= '<div id="dialog-form">
							<div style="float: left; width: 500px;">
								<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 !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="' . $res['phone'] . '" disabled="disabled" />
											</td>
											<td style="width: 69px;">
												<button class="calls">ნომრები</button>
											</td>
										</tr>
														
										<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="planned_end_date" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['planned_end_date'] . '" disabled="disabled" />
											</td>
											<td style="width: 180px;">
												<input type="text" id="fact_end_date" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['fact_end_date'] . '" disabled="disabled" />
											</td>
											<td style="width: 180px;">
												<input type="text" id="call_duration" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['call_duration'] . '" disabled="disabled" />
											</td>
											<td style="width: 69px;">
											</td>
										</tr>';
        $data .= '<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;"><select id="task_type_id" class="idls object"disabled="disabled" 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">' . Getpersonss($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;"></td>
										</tr>
										<tr>
											<td style="width: 180px;"><select id="priority_id" class="idls object" disabled="disabled">' . Getpriority($res['priority_id']) . '</select></td>
											<td style="width: 180px;"><select id="template_id" class="idls object" disabled="disabled">' . Gettemplate($res['template_id']) . '</select></td>
											<td style="width: 180px;"></td>
										</tr>
										<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  style="width: 641px; resize: none;" id="comment" class="idle" name="call_content" cols="300" rows="2" disabled="disabled">' . $res['comment'] . '</textarea>
											</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_comment" class="idle" name="call_content" cols="300" rows="2" >' . $res['problem_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;">PIN კოდი</td>
											<td style="width: 180px;">ეგობრის PIN ცოდი</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'] . '" /></td>
											<td style="width: 180px;"><input type="text" id="personal_pin" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['friend_pin'] . '" /></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'] . '" />
											</td>
											<td style="width: 180px;"></td>
										</tr>
										<tr>
											<td style="width: 180px;">სახელი და გვარი</td>
											</td>
										</tr>
										<tr >
											<td style="width: 180px;">' . $res['name1'] . '</td>
											</td>
										</tr>
										<tr >
											<td style="width: 180px;">ტელეფონი</td>
											</td>
										</tr>
										<tr>
											<td style="width: 180px;">' . $res['personal_phone'] . '</td>
											</td>
										</tr>
										<tr>
											<td style="width: 180px;">ელ-ფოსტა</td>
											</td>
										</tr>
										<tr>
											<td style="width: 180px;">' . $res['mail'] . '</td>
											<td ></td>
										</tr>
							
						
										<tr>
											<td td style="width: 180px;">user-ი</td>
											<td td style="width: 180px;"></td>
										</tr>
										<tr>
											<td style="width: 180px;">' . $res['user'] . '</td>
											<td td style="width: 180px;"></td>
										</tr>
									</table>
								</fieldset>
								<fieldset>
									<legend>მომართვის ავტორი</legend>
									<table>
										<tr>
											<td>სულ</td>
											<td></td>
											<td></td>
											<td style="width: 150px;"></td>
											<td>1</td>
										</tr>
										<tr>
											<td></td>
											<td>მოგვარებულები</td>
											<td></td>
											<td style="width: 150px;"></td>
										    <td>2</td>
										</tr>
										<tr>
											<td></td>
											<td></td>
											<td>პრეტენზია</td>
											<td style="width: 150px;"></td>
											<td>2</td>
										</tr>
										<tr>
											<td></td>
											<td></td>
											<td>ინფორმაცია</td>
											<td style="width: 150px;"></td>
											<td>2</td>
										</tr>
										<tr>
											<td></td>
											<td>მიმდინარე</td>
											<td></td>
											<td style="width: 150px;"></td>
											<td>2</td>
										</tr>
										<tr>
											<td></td>
											<td></td>
											<td></td>
											<td style="width: 150px;"></td>
											<td>2</td>
										</tr>
										<tr>
											<td></td>
											<td></td>
											<td>პრეტენზია</td>
											<td style="width: 150px;"></td>
											<td>2</td>
										</tr>
										<tr>
											<td></td>
											<td></td>
											<td>ინფორმაცია</td>
											<td style="width: 150px;"></td>
											<td>2</td>
										</tr>
										<tr>
											<td></td>
											<td></td>
											<td></td>
											<td style="width: 150px;"></td>
								    		<td style="width: 300px;">
											<input type="button" value="ვრცლად"/>
						      				</td>
										</tr>
						
									</tr>
									</table>
								</fieldset>
								<fieldset>
									<legend>დამატებითი ინფორმაცია</legend> 
									<table style="float: left; border: 1px solid #85b1de; width: 180px; text-align: center;">
										<tr style="border-bottom: 1px solid #85b1de;">
											<td colspan="2">საუბრის ჩანაწერი</td>
										</tr>
										<tr style="border-bottom: 1px solid #85b1de; ">
											<td>დრო</td>
											<td style="border-left:1px solid #85b1de; width: 50px;">ჩანაწერი</td>
										</tr>
										<tr >
											<td></td>
											<td><input type="button" value="მოსმენა"/></td>
										</tr>
									<table/>
									<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('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>
				    </div>';
    } else {
        $data .= '<div id="dialog-form">
					<div style="float: left; width: 500px;">	
						<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 !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 . '" />
									</td>
									<td style="width: 69px;">
										<button class="calls">ნომრები</button>
									</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>';
        if (Getcategory($res['category_parent_id']) == 407) {
            $data .= '<table id="additional" class="hidden dialog-form-table" width="100%">
								<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 style="width: 106px;"></td>
								</tr>
								<tr >
									<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="bank_object_id" class="idls object" disabled="disabled">' . Getbank_object_edit($res['bank_object_id']) . '</select></td>
									<td style="width: 106px;"></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 style="width: 106px;"></td>
								</tr>
								<tr >
									<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;"><select id="card_type1_id" class="idls object" disabled="disabled">' . Getcard_type1($res['card_type1_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>
							</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="object_id" class="idls object" disabled="disabled">' . Getobject($res['object_id']) . '</select></td>
									<td style="width: 180px;"><select id="call_status_id" class="idls object"disabled="disabled">' . Getcall_status($res['status']) . '</select></td>	
									<td ></td>
								</tr>
								<tr>
									<td style="width: 180px;"><label for="content">საუბრის შინაარსი</label></td>
								</tr>
								<tr>
									
									<td colspan="6">	
										<textarea disabled="disabled" style="width: 641px; resize: none;" id="call_content" class="idle" name="call_content" cols="300" rows="2" >' . $res['call_content'] . '</textarea>
									</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_comment" class="idle" name="call_content" cols="300" rows="2">' . $res['problem_comment'] . '</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;"><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">' . Getpersonss($res['persons_id']) . '</select></td>
								</tr>
								<tr>
									<td style="width: 180px;"><label for="d_number">პრიორიტეტები</label></td>
									<td style="width: 180px;"></td>
									<td style="width: 180px;"></td>
								</tr>
								<tr>
									<td style="width: 180px;"><select id="priority_id" class="idls object">' . Getpriority($res['priority_id']) . '</select></td>
									<td style="width: 180px;"></td>
									<td style="width: 180px;"></td>
								</tr>
								<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  style="width: 641px; resize: none;" id="comment" class="idle" name="content" cols="300" rows="2">' . $res['comment'] . '</textarea>
									</td>
								</tr>
							
								</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;">PIN კოდი</td>
											<td style="width: 180px;">ეგობრის PIN ცოდი</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'] . '" /></td>
											<td style="width: 180px;"><input type="text" id="personal_pin" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['friend_pin'] . '" /></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'] . '" />
											</td>
											<td style="width: 180px;"></td>
										</tr>
										<tr>
											<td style="width: 180px;">სახელი და გვარი</td>
											</td>
										</tr>
										<tr >
											<td style="width: 180px;">' . $res['name1'] . '</td>
											</td>
										</tr>
										<tr >
											<td style="width: 180px;">ტელეფონი</td>
											</td>
										</tr>
										<tr>
											<td style="width: 180px;">' . $res['personal_phone'] . '</td>
											</td>
										</tr>
										<tr>
											<td style="width: 180px;">ელ-ფოსტა</td>
											</td>
										</tr>
										<tr>
											<td style="width: 180px;">' . $res['mail'] . '</td>
											<td ></td>
										</tr>
							
						
										<tr>
											<td td style="width: 180px;">user-ი</td>
											<td td style="width: 180px;"></td>
										</tr>
										<tr>
											<td style="width: 180px;">' . $res['user'] . '</td>
											<td td style="width: 180px;"></td>
										</tr>
									</table>
								</fieldset>
						<fieldset>
							<legend>მომართვის ავტორი</legend>
							<table>
								<tr>
									<td>სულ</td>
									<td></td>
									<td></td>
									<td style="width: 150px;"></td>
									<td>1</td>
								</tr>
								<tr>
									<td></td>
									<td>მოგვარებულები</td>
									<td></td>
									<td style="width: 150px;"></td>
								    <td>2</td>
								</tr>
								<tr>
									<td></td>
									<td></td>
									<td>პრეტენზია</td>
									<td style="width: 150px;"></td>
									<td>2</td>
								</tr>
								<tr>
									<td></td>
									<td></td>
									<td>ინფორმაცია</td>
									<td style="width: 150px;"></td>
									<td>2</td>
								</tr>
								<tr>
									<td></td>
									<td>მიმდინარე</td>
									<td></td>
									<td style="width: 150px;"></td>
									<td>2</td>
								</tr>
								<tr>
									<td></td>
									<td></td>
									<td></td>
									<td style="width: 150px;"></td>
									<td>2</td>
								</tr>
								<tr>
									<td></td>
									<td></td>
									<td>პრეტენზია</td>
									<td style="width: 150px;"></td>
									<td>2</td>
								</tr>
								<tr>
									<td></td>
									<td></td>
									<td>ინფორმაცია</td>
									<td style="width: 150px;"></td>
									<td>2</td>
								</tr>
								<tr>
									<td></td>
									<td></td>
									<td></td>
									<td style="width: 150px;"></td>
						    		<td style="width: 300px;">
									<input type="button" value="ვრცლად"/>
				      				</td>
								</tr>
												
							</tr>
							</table>
						</fieldset>
						<fieldset>
									<legend>დამატებითი ინფორმაცია</legend> 
									<table style="float: left; border: 1px solid #85b1de; width: 180px; text-align: center;">
										<tr style="border-bottom: 1px solid #85b1de;">
											<td colspan="2">საუბრის ჩანაწერი</td>
										</tr>
										<tr style="border-bottom: 1px solid #85b1de; ">
											<td>დრო</td>
											<td style="border-left:1px solid #85b1de; width: 50px;">ჩანაწერი</td>
										</tr>
										<tr >
											<td></td>
											<td><input type="button" value="მოსმენა"/></td>
										</tr>
									<table/>
									<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('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>
		    </div>';
    }
    $data .= '<input type="hidden" id="outgoing_call_id" value="' . $res['id'] . '" />';
    return $data;
}
예제 #3
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;
}
예제 #4
0
function GetPage($res = '', $number)
{
    $num = 0;
    if ($res[phone] == "") {
        $num = $number;
    } else {
        $num = $res[phone];
    }
    $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: 800px;">	
				<fieldset >
			    	<legend>ძირითადი ინფორმაცია</legend>
		
			    	<table width="100%" class="dialog-form-table">
						<tr>
							<td style="width: 180px;"><label for="">მომართვა №</label></td>
							<td style="width: 180px;"><label for="">თარიღი</label></td>
							<td style="width: 180px;"><label for="phone">ტელეფონი</label></td>
							<td></td>
							<td><label for="person_name">აბონენტის სახელი</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 . '" />
							</td>
							<td style="width: 69px;">
								<button class="calls">ნომრები</button>
							</td>
							<td style="width: 69px;">
								<input type="text" id="person_name" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $num . '" />
							</td>
						</tr>						
					</table>';
    $data .= '
				
				<fieldset style="width:318px; float:left;">
			    	<legend>მომართვის ავტორი</legend>
					<table id="additional" class="dialog-form-table" width="300px">						
						<tr>
							<td style="width: 250px;"><input style="float:left;" type="radio" value="1"><span style="margin-top:5px; display:block;">ფიზიკური</span></td>
							<td style="width: 250px;"><input style="float:left;" type="radio" value="2"><span style="margin-top:5px; display:block;"">იურიდიული</span></td>
						</tr>
					</table>
				</fieldset>
				<fieldset style="width:400px; float:left; margin-left: 15px;">
			    	<legend>ინფორმაციის კატეგორია</legend>
					<table id="additional" class="dialog-form-table" width="230px">						
						<tr>
							<td style="width: 300px;"><select style="margin-left: 25px;" id="object_id" class="idls object">' . Getobject($res['object_id']) . '</select></td>
							<td style="width: 300px;"><select style="margin-left: 15px;" id="object_id" class="idls object">' . Getobject($res['object_id']) . '</select></td>
						</tr>
					</table>
				</fieldset>
				<fieldset style="width:755px; float:left;">
			    	<legend>ინფორმაციის კატეგორია</legend>
					<table id="additional" class="dialog-form-table" width="230px">		
						<tr>
							<td style="width: 250px;"><input style="float:left;" type="radio" value="1"><span style="margin-top:5px; display:block;">ფიზიკური</span></td>
							<td style="width: 250px;"><input style="float:left; margin-left: 20px;" type="radio" value="2"><span style="margin-top:5px; display:block;"">იურიდიული</span></td>
							<td style="width: 250px;"><label style="margin-left: 25px;" for="d_number">შეძენის თარიღი</label></td>
							<td style="width: 250px;"><label style="margin-left: 25px;" for="d_number">კატეგორია</label></td>
						</tr>
						<tr>
							<td style="width: 300px;"><label for="d_number">პროდუქტი</label></td>
							<td style="width: 300px;"><label style="margin-left: 15px;" for="d_number">ბრენდი</label></td>
							<td style="width: 250px;"><input style="margin-left: 25px;" type="text"  id="problem_date" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res[problem_date] . '" /></td>
							<td style="width: 250px;"><select style="margin-left: 25px;" id="object_id" class="idls object">' . Getobject($res['object_id']) . '</select></td>
						</tr>				
						<tr>
							<td style="width: 300px;"><select id="object_id" class="idls object">' . Getobject($res['object_id']) . '</select></td>
							<td style="width: 300px;"><select style="margin-left: 15px;" id="object_id" class="idls object">' . Getobject($res['object_id']) . '</select></td>
						</tr>
					</table>
				</fieldset>
				<fieldset style="width:755px; float:left;">
			    	<legend>გადამისამართება</legend>
					<table id="additional" class="dialog-form-table" width="230px">		
						<tr>
							<td style="width: 300px;"><label for="d_number">ქვე-განყოფილება</label></td>
							<td style="width: 300px;"><label style="margin-left: 35px;" for="d_number">კავშირი</label></td>
						</tr>
						<tr>
							<td style="width: 250px;"><select style=" width: 450px;" id="object_id" class="idls object">' . Getobject($res['object_id']) . '</select></td>
							<td style="width: 250px;"><input style="margin-left: 35px;" type="radio" value="1"></td>
						</tr>
					</table>
				</fieldset>
				<fieldset style="width:160px; float:left;">
			    	<legend>რეაგირება</legend>
					<table id="additional" class="dialog-form-table" width="150px">	
						<tr>
							<td style="width: 150px;"><select id="object_id" class="idls object">' . Getobject($res['object_id']) . '</select></td>
						</tr>
					</table>
				</fieldset>
				<fieldset style="width:557px; float:left; margin-left: 10px;">
			    	<legend>რეაგირება</legend>
					<table id="additional" class="dialog-form-table" width="150px">	
						<tr>
							<td><textarea  style="width: 550px; resize: none;" id="comment" class="idle" name="content" cols="300" >' . $res['comment'] . '</textarea></td>
						</tr>
					</table>
				</fieldset>
				';
    $data .= '
		   
				<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">' . Gettask_type($res['task_type_id']) . '</select></td>
							<td style="width: 180px;"><select id="task_department_id" class="idls object">' . Getdepartment($res['task_department_id']) . '</select></td>
							<td style="width: 180px;"><select id="persons_id" class="idls object">' . Getpersons($res['persons_id']) . '</select></td>
						</tr>
						<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  style="width: 747px; resize: none;" id="comment" class="idle" name="content" cols="300" rows="2">' . $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>568919432</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;">ზაზა მესხი</td>
							<td style="width: 180px;">z.mesxi@yahoo.com</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;">ყვარლის 149</td>
							<td td style="width: 180px;">VIP კლიენტი</td>
						</tr>
					</table>
				</fieldset>
				<div id="additional_info">';
    if (!empty($res['personal_pin'])) {
        $data .= get_addition_all_info($res['personal_pin']);
    }
    $data .= '</div>
				<fieldset>
					<legend>შენაძენი</legend> 
					<table style="float: left; border: 1px solid #85b1de; width: 153px; text-align: center;">
						<tr style="border-bottom: 1px solid #85b1de;">
							<td style="border-right: 1px solid #85b1de; padding: 3px 9px;"></td>
	  						<td style="border-right: 1px solid #85b1de; padding: 3px 9px; color: #3C7FB1;">ფილიალი</td>
	  						<td style="border-right: 1px solid #85b1de; padding: 3px 9px; color: #3C7FB1;">თარიღი</td>
	  						<td style="border-right: 1px solid #85b1de; padding: 3px 9px; color: #3C7FB1;">პროდუქტი</td>
	  						<td style="border-right: 1px solid #85b1de; padding: 3px 9px; color: #3C7FB1;">თანხა</td>
						</tr>
						<tr style="border-bottom: 1px solid #85b1de; ">
							<td style="border-right: 1px solid #85b1de; padding: 3px 9px; word-break:break-all">1</td>
	  						<td style="border-right: 1px solid #85b1de; padding: 3px 9px; word-break:break-all">gelaaaaaaaaaaaaaaaa</td>
	  						<td style="border-right: 1px solid #85b1de; padding: 3px 9px; word-break:break-all">2014-07-01</td>
	  						<td style="border-right: 1px solid #85b1de; padding: 3px 9px; word-break:break-all">fssdgsd</td>
	  						<td style="border-right: 1px solid #85b1de; padding: 3px 9px; word-break:break-all">145$</td>
							
						</tr>
						
					<table/>
				</fieldset>
	  			<fieldset>
					<legend>საუბრის ჩანაწერი</legend> 
	  				<table style="float: left; border: 1px solid #85b1de; width: 250px; text-align: center; margin-left:40px;">
						<tr style="border-bottom: 1px solid #85b1de;">
							<td style="border-right: 1px solid #85b1de; padding: 3px 9px; width:200px; color: #3C7FB1;">დრო</td>
	  						<td style="border-right: 1px solid #85b1de; padding: 3px 9px; width:200px; color: #3C7FB1;">ჩანაწერი</td>
						</tr>
						<tr style="border-bottom: 1px solid #85b1de; ">
							<td style="border-right: 1px solid #85b1de; padding: 3px 9px; word-break:break-all">10:05:12 AM</td>
	  						<td style="border-right: 1px solid #85b1de; padding: 3px 9px; word-break:break-all">მოსმენა</td>
	  					</tr>
					<table/>
				</fieldset>
			</div>
    </div>';
    return $data;
}
예제 #5
0
function GetPage($res = '', $shabloni)
{
    $data .= '<div id="dialog-form">
							<div style="float: left; width: 577px;">
								<fieldset >
							    	<legend>ძირითადი ინფორმაცია</legend>
						
							    	<table width="100%" class="dialog-form-table">
										<tr>
											<td style="width: 180px;"><label for="">დავალების №</label></td>
											<td style="width: 180px;"><label for="">თარიღი</label></td>
		                                    <td style="width: 180px;"><label for="">ხანგძლივობა</label></td>
										</tr>
										<tr>
											<td>
												<input type="text" id="id" class="idle" onblur="this.className=\'idle\'" disabled value="' . $res['id'] . '" disabled="disabled" />
											</td>
											<td>
												<input type="text" id="c_date" class="idle" onblur="this.className=\'idle\'" disabled  value="' . $res['date'] . '" disabled="disabled" />
											</td>	
										    <td>
												<input type="text" id="duration" class="idle" onblur="this.className=\'idle\'" disabled  value="' . $res['duration'] . '" disabled="disabled" />
											</td>	
										</tr>
									</table><br>
								
														
								<fieldset style="width:250px; float:left;">
							    	<legend>დავალების ტიპი</legend>
								<table class="dialog-form-table">
							    		<tr>
											<td><select style="width: 250px;" id="task_type_id_seller" disabled class="idls object">' . Gettask_type($res['task_type_id']) . '</select></td>
										</tr>
									</table>
								</fieldset>
								<fieldset style="width:250px; float:left; margin-left:10px;">
							    	<legend>სცენარის დასახელება</legend>
								<table class="dialog-form-table">
							    		<tr>
											<td><select style="width: 250px;" id="shabloni" disabled class="idls object">' . Getshablon('', $res['template_id']) . '</select></td>
										</tr>
									</table>
								</fieldset>	
					<fieldset style="width:533px; float:left;">
			    	<legend>ინფორმაცია</legend>
					<table id="" class="dialog-form-table" width="500px">
					  	<tr>
					  		<td style="width: 600px;">
					  		    <label style="float:left; margin-top:7px; margin-right:5px;">სრულწლოვანი (18)</label>
					  		    <input style="float:left;" type="radio" name="status_1" value="1" ' . ($res['status_1'] == '1' ? "checked" : "") . '><span style="margin-top:8px; display:block; float: left;"">კი</span>
					  		    <input style="float:left;" type="radio" name="status_1" value="2" ' . ($res['status_1'] == '2' ? "checked" : "") . '><span style="margin-top:8px; display:block; float: left;"">არა</span>
					  		</td>
					  		<td style="width: 400px;">
					  		    <label style="float:left; margin-top:7px; margin-right:5px;">მწეველი</label>
					  		    <input style="float:left;" type="radio" name="status_2" value="1" ' . ($res['status_2'] == '1' ? "checked" : "") . '><span style="margin-top:8px; display:block; float: left;"">კი</span>
					  		    <input style="float:left;" type="radio" name="status_2" value="2" ' . ($res['status_2'] == '2' ? "checked" : "") . '><span style="margin-top:8px; display:block; float: left;"">არა</span>
					  		</td>
					  	</tr>
					  	<tr>
					  	    <td style="width: 400px;">
					  		    <label style="float:left; margin-top:7px; margin-right:5px;">ვებ გვერდზე დარეგისტრირებული</label>
					  		    <input style="float:left;" type="radio" name="status_3" value="1" ' . ($res['status_3'] == '1' ? "checked" : "") . '><span style="margin-top:8px; display:block; float: left;"">კი</span>
					  	    </td>
					  	</tr>
					</table>
				</fieldset>
				<fieldset style="width:315px;; float:left;">
			    	<legend>ზარის დაზუსტება</legend>
				<table class="dialog-form-table">
			    		<tr>
							<td><textarea  style="width: 309px; height:70px; resize: none;" id="call_content" class="idle" name="content" cols="300" >' . $res['call_content'] . '</textarea></td>
						</tr>
				</table>
				</fieldset>	
				<fieldset style="width:190px;; float:left; margin-left:5px;">
			    	<legend>სტატუსი</legend>
				<table class="dialog-form-table" style="margin-top:18px;">
					    
			    		<tr>
							<td><select style="width: 190px;" id="status" class="idls object">' . Getstatus($res['status']) . '</select></td>
						</tr>
						<tr>
						  	<td></td>
					    </tr>
				</table>
				</fieldset>						    
									
							</div>		

							    
						
						<div style="float: right;  width: 355px;">
								<fieldset>
								<legend>აბონენტი</legend>
								<table style="height: 243px;">						
									<tr>
										<td style="width: 180px; color: #3C7FB1;">ტელეფონი 1</td>
										<td style="width: 180px; color: #3C7FB1;">ტელეფონი 2</td>
									</tr>
									<tr>
										<td>
											<input type="text" id="phone"  class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['phone'] . '" />
										</td>
										<td>
											<input type="text" id="phone1"  class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['phone2'] . '" />
										</td>
															
									</tr>
									<tr>
										<td style="width: 180px; color: #3C7FB1;">სახელი</td>
										<td style="width: 180px; color: #3C7FB1;">ელ-ფოსტა</td>
									</tr>
									<tr >
										<td style="width: 180px;">
											<input type="text" id="first_name"  class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['first_name'] . '" />
										</td>
										<td style="width: 180px;">
											<input type="text" id="mail"  class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['mail'] . '" />
										</td>			
									</tr>
									<tr>
										<td td style="width: 180px; color: #3C7FB1;">ქალაქი</td>
										<td td style="width: 180px; color: #3C7FB1;">დაბადების თარიღი</td>
									</tr>
									<tr>
										<td><input type="text" id="city_id"  class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['city_id'] . '" /></td>	
										<td td style="width: 180px;">
											<input type="text" id="b_day"  class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['b_day'] . '" />		
										</td>
									</tr>
									<tr>
										<td td style="width: 180px; color: #3C7FB1;">მისამართი</td>
										<td style="width: 180px; color: #3C7FB1;">პირადი ნომერი</td>
									</tr>
									<tr>
										<td td style="width: 180px;">
											<input type="text" id="addres"  class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['addres'] . '" />		
										</td>
										<td style="width: 180px;">
											<input type="text" id="person_n"  class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['person_n'] . '" />
										</td>
									</tr>
													
									<tr>
										<td td style="width: 180px; color: #3C7FB1;">ასაკი</td>
										<td style="width: 180px; color: #3C7FB1;">სქესი</td>
									</tr>
									<tr>
										<td td style="width: 180px;">
											<input type="text" id="age"  class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['age'] . '" />		
										</td>
										<td style="width: 180px;">
											<input type="text" id="sex"  class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['sex'] . '" />
										</td>
									</tr>
									
									<tr>
										<td td style="width: 180px; color: #3C7FB1;">პროფესია</td>
										<td style="width: 180px; color: #3C7FB1;">ინტერესების სფერო</td>
									</tr>
									<tr>
										<td td style="width: 180px;">
											<input type="text" id="profession"  class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['profession'] . '" />		
										</td>
										<td style="width: 180px;">
											<input type="text" id="interes"  class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['interes'] . '" />
										</td>
									</tr>
									
								</table>
							</fieldset>';
    $data .= GetRecordingsSection($res);
    $data .= '</div>
						    
						    <fieldset style="margin-top: 5px;">
								    	<legend>დავალების ფორმირება</legend>
							
								    	<table class="dialog-form-table" >
											<tr>
												<td style="width: 280px;"><label for="set_task_department_id">განყოფილება</label></td>
												<td style="width: 280px;"><label for="set_persons_id">პასუხისმგებელი პირი</label></td>
												<td style="width: 280px;"><label for="set_priority_id">პრიორიტეტი</label></td>
											</tr>
								    		<tr>
												<td><select style="width: 200px;"  id="set_task_department_id" class="idls object">' . Getdepartment($res['task_department_id']) . '</select></td>
												<td><select style="width: 200px;" id="set_persons_id" class="idls object">' . Getpersons($res['persons_id']) . '</select></td>
												<td><select style="width: 200px;" id="set_priority_id" class="idls object">' . Getpriority($res['priority_id']) . '</select></td>
											</tr>
											</table>
											<table class="dialog-form-table" style="width: 720px;">
											<tr>
												<td style="width: 150px;"><label>შესრულების პერიოდი</label></td>
												<td style="width: 150px;"><label></label></td>
												<td style="width: 150px;"><label>კომენტარი</label></td>
											</tr>
											<tr>
												<td><input style="width: 130px; float:left;" id="set_start_time" class="idle" type="text"><span style="margin-left:5px; ">დან</span></td>
										  		<td><input style="width: 130px; float:left;" id="set_done_time" class="idle" type="text"><span style="margin-left:5px; ">მდე</span></td>
												<td>
													<textarea  style="width: 270px; resize: none;" id="set_body" class="idle" name="content" cols="300">' . $res['comment'] . '</textarea>
												</td>
											</tr>
										</table>
							        </fieldset>	
				    </div>';
    $data .= '<input type="hidden" id="outgoing_call_id" value="' . $res['id'] . '" />';
    return $data;
}
예제 #6
0
function GetPage($res = '', $number)
{
    $num = 0;
    if ($res[phone] == "") {
        $num = $number;
    } else {
        $num = $res[phone];
    }
    $data .= '<div id="dialog-form">
							<div style="float: left; width: 670px;">
								<fieldset >
							    	<legend>ძირითადი ინფორმაცია</legend>
						
							    	<table width="65%" class="dialog-form-table">
										<tr>
											<td style="width: 180px;"><label for="">დავალების №</label></td>
											<td style="width: 180px;"><label for="">თარიღი</label></td>
										</tr>
										<tr>
											<td>
												<input type="text" id="id" class="idle" onblur="this.className=\'idle\'"  value="' . $res['id'] . '" disabled="disabled" />
											</td>
											<td>
												<input type="text" id="c_date" class="idle" onblur="this.className=\'idle\'"  value="' . $res['call_date'] . '" disabled="disabled" />
											</td>		
										</tr>
											</table>
														
								<fieldset style="width:250px; float:left;">
							    	<legend>დავალების ტიპი</legend>
								<table class="dialog-form-table">
							    		<tr>
											<td><select style="width: 270px;" id="" class="idls object">' . Gettask_type($res['task_type_id']) . '</select></td>
										</tr>
									</table>
								</fieldset>
								<fieldset style="width:340px; float:left; margin-left:10px;">
							    	<legend>სცენარის დასახელება</legend>
								<table class="dialog-form-table">
							    		<tr>
											<td><select style="width: 345px;" id="" class="idls object">' . Gettask_type($res['task_type_id']) . '</select></td>
										</tr>
									</table>
								</fieldset>
						        ';
    $data .= '
							<div id="seller">
									<ul>
										<li style="margin-left:0;" id="0" onclick="seller(this.id)" class="seller_select">მისალმება</li>
										<li id="1" onclick="seller(this.id)" class="">შეთავაზება</li>
										<li id="2" onclick="seller(this.id)" class="">შედეგი</li>
									</ul>
									<div id="seller-0">
									<fieldset style="width:95%; float:left; ">
									<fieldset style="width:95%;">
								    	<legend>მისალმება</legend>
									<table class="dialog-form-table">
								    		<tr>
												<td><textarea  style="width: 620px; height:80px; resize: none;" id="content" class="idle" name="content" cols="300" >' . $res['content'] . '</textarea></td>
											</tr>
											<tr>
												<td style="text-align:right;"><span>შეიყვანეთ ტექსტი</span></td>
											</tr>
									</table>
									</fieldset>
									<table class="dialog-form-table" style="width:500px;">
								    		<tr>
												<td style="text-align:right;"><span>აქვს</span></td>
					  							<td><input type="radio" name="xx" value="1" ' . ($res['call_vote'] == '1' ? "checked" : "") . '></td>
					  							<td><span>(ვაგრძელებთ)</span></td>
					  						</tr>
											<tr>
												<td style="text-align:right;"><span>სურს სხვა დროს</span></td>
					  							<td><input type="radio" name="xx" value="2" ' . ($res['call_vote'] == '2' ? "checked" : "") . '></td>
					  							<td><span>(ვიფორმირებთ დავალებას)</span></td>
					  						</tr>
					  						<tr>
												<td style="text-align:right;"><span>არ სურს</span></td>
					  							<td><input type="radio" name="xx" value="3" ' . ($res['call_vote'] == '3' ? "checked" : "") . '></td>
					  							<td><span>(ვასრულებთ)</span></td>
					  						</tr>
									</table>
					  				<fieldset style="width:95%; float:left; ">
								    	<legend>კომენტარი</legend>
									<table class="dialog-form-table">
								    		<tr>
												<td><textarea  style="width: 620px; height:80px; resize: none;" id="content" class="idle" name="content" cols="300" >' . $res['content'] . '</textarea></td>
											</tr>
									</table>
									</fieldset>
											<button style="float:right; margin-top:10px;" onclick="seller(1)" class="next"> >> </button>
											<button style="float:right; margin-top:10px;" class="done">დასრულება</button>
									</fieldset>
									 </div>

														
														
									<div id="seller-1" class="dialog_hidden">
									<fieldset style="width:95%; float:left; ">
									<fieldset style="width:95%;">
								    	<legend>შეთავაზება</legend>
									<table class="dialog-form-table">
								    		<tr>
												<td><textarea  style="width: 620px; height:80px; resize: none;" id="content" class="idle" name="content" cols="300" >' . $res['content'] . '</textarea></td>
											</tr>
											<tr>
												<td style="text-align:right;"><span>შეიყვანეთ ტექსტი</span></td>
											</tr>
									</table>
									</fieldset>
									<fieldset style="width:96.6%;">
								    	<legend>პროდუქტი</legend>
									<div id="dt_example" class="inner-table">
								        <div style="width:100%;" id="container" >        	
								            <div id="dynamic">
								            	<div id="button_area">
								            		<button id="add_button_pp">დამატება</button>
							        			</div>
								                <table class="" id="example4" style="width: 100%;">
								                    <thead>
														<tr  id="datatable_header">
																
								                           <th style="display:none">ID</th>
															<th style="width:4%;">#</th>
															<th style="">პაკეტი</th>
															<th style="">ფასი</th>
															<th style="">აღწერილობა</th>
															<th style="">შენიშვნა</th>
														</tr>
													</thead>
													<thead>
														<tr class="search_header">
															<th class="colum_hidden">
						                            			<input type="text" name="search_id" value="" class="search_init" style="width: 10px"/>
						                            		</th>
															<th>
																<input style="width:100px;" type="text" name="search_overhead" value="ფილტრი" class="search_init" />
															</th>
															<th>
																<input style="width:100px;" type="text" name="search_partner" value="ფილტრი" class="search_init" />
															</th>
															<th>
																<input style="width:100px;" type="text" name="search_overhead" value="ფილტრი" class="search_init" />
															</th>
															<th>
																<input style="width:100px;" type="text" name="search_partner" value="ფილტრი" class="search_init" />
															</th>
														</tr>
													</thead>
								                </table>
								            </div>
								            <div class="spacer">
								            </div>
								        </div>
										<table class="dialog-form-table" style="margin-top:10px;">
								    		<tr>
												<td><textarea  style="width: 99%; height:80px; resize: none;" id="content" class="idle" name="content" cols="300" >' . $res['content'] . '</textarea></td>
											</tr>
											<tr>
												<td style="text-align:right;"><span>შეიყვანეთ ტექსტი</span></td>
											</tr>
										</table>
									</fieldset>
					  				<fieldset style="width:95%; float:left; ">
								    	<legend>კომენტარი</legend>
														
									<div id="dt_example" class="inner-table">
								        <div style="width:100%;" id="container" >        	
								            <div id="dynamic">
								            	<div id="button_area">
								            		<button id="add_button_pp">დამატება</button>
							        			</div>
								                <table class="" id="example3" style="width: 100%;">
								                    <thead>
														<tr  id="datatable_header">
																
								                           <th style="display:none">ID</th>
															<th style="width:4%;">#</th>
															<th style="">პაკეტი</th>
															<th style="">ფასი</th>
															<th style="">აღწერილობა</th>
															<th style="">შენიშვნა</th>
														</tr>
													</thead>
													<thead>
														<tr class="search_header">
															<th class="colum_hidden">
						                            			<input type="text" name="search_id" value="" class="search_init" style="width: 10px"/>
						                            		</th>
															<th>
																<input style="width:100px;" type="text" name="search_overhead" value="ფილტრი" class="search_init" />
															</th>
															<th>
																<input style="width:100px;" type="text" name="search_partner" value="ფილტრი" class="search_init" />
															</th>
															<th>
																<input style="width:100px;" type="text" name="search_overhead" value="ფილტრი" class="search_init" />
															</th>
															<th>
																<input style="width:100px;" type="text" name="search_partner" value="ფილტრი" class="search_init" />
															</th>
														</tr>
													</thead>
								                </table>
								            </div>
								            <div class="spacer">
								            </div>
								        </div>
									<table class="dialog-form-table" style="margin-top:10px;">
								    		<tr>
												<td><textarea  style="width: 620px; height:80px; resize: none;" id="content" class="idle" name="content" cols="300" >' . $res['content'] . '</textarea></td>
											</tr>
											<tr>
												<td style="text-align:right;"><span>შეიყვანეთ ტექსტი</span></td>
											</tr>
									</table>
									</fieldset>
											<fieldset >
												<legend>ინფორმაცია</legend>
											<table class="dialog-form-table" style="width:250px; float:left;">
									    		<tr>
													<td style="text-align:right;">მოისმინა ბოლომდე</td>
													<td><input type="radio" name="xx" value="1" ' . ($res['call_vote'] == '1' ? "checked" : "") . '></td>
													
												</tr>
												<tr>
													<td style="text-align:right;">მოისმინა და კითხვები დაგვისვა</td>
													<td><input type="radio" name="xx" value="2" ' . ($res['call_vote'] == '2' ? "checked" : "") . '></td>		
												</tr>
												<tr>
													<td style="text-align:right;">შეგვაწყვეტინა</td>
													<td><input type="radio" name="xx" value="3" ' . ($res['call_vote'] == '3' ? "checked" : "") . '></td>
												</tr>
											</table>
											<table class="dialog-form-table" style="width:350px; float:left; margin-left: 15px;">
												<tr>
													<td>კომენტარი</td>
												</tr>
									    		<tr>
													<td><textarea  style="width: 100%; height:50px; resize: none;" id="content" class="idle" name="content" cols="300" >' . $res['content'] . '</textarea></td>
												</tr>
											</table>
											</fieldset>
											<button style="float:right; margin-top:10px;" onclick="seller(2)" class="next"> >> </button>
											<button style="float:right; margin-top:10px;" onclick="seller(0)" class="back"> << </button>
									
									</fieldset>
													
									 </div>
									 <div id="seller-2" class="dialog_hidden">
											<fieldset style="width:95%; float:left; ">
											<fieldset style="width:95%;">
										    	<legend>შეთავაზება</legend>
											<table class="dialog-form-table">
										    		<tr>
														<td><textarea  style="width: 620px; height:80px; resize: none;" id="content" class="idle" name="content" cols="300" >' . $res['content'] . '</textarea></td>
													</tr>
													<tr>
														<td style="text-align:right;"><span>შეიყვანეთ ტექსტი</span></td>
													</tr>
											</table>
											</fieldset>
											
															
																
							  				<fieldset style="width:95%; float:left; ">
										    	<legend>კომენტარი</legend>
											<table class="dialog-form-table">
										    		<tr>
														<td><textarea  style="width: 620px; height:80px; resize: none;" id="content" class="idle" name="content" cols="300" >' . $res['content'] . '</textarea></td>
													</tr>
											</table>
											</fieldset>
													<button style="float:right; margin-top:10px;" class="done">დასრულება</button>
													<button style="float:right; margin-top:10px;" onclick="seller(1)" class="next"> << </button>
											</fieldset>		
									 </div>
									
							</div>
								<fieldset style="width:320px;; float:left;">
								    	<legend>ზარის დაზუსტება</legend>
									<table class="dialog-form-table">
								    		<tr>
												<td><textarea  style="width: 320px; height:70px; resize: none;" id="content" class="idle" name="content" cols="300" >' . $res['content'] . '</textarea></td>
											</tr>
									</table>
									</fieldset>	
									<fieldset style="width:250px;; float:left; margin-left:10px; height:90px;">
								    	<legend>სტატუსი</legend>
									<table class="dialog-form-table">
											<tr>
												<td></td>
											</tr>
								    		<tr>
												<td><select style="width: 290px;" id="" class="idls object">' . Gettask_type($res['task_type_id']) . '</select></td>
											</tr>
									</table>
									</fieldset>
								<fieldset style="margin-top: 5px;">
								    	<legend>დავალების ფორმირება</legend>
							
								    	<table class="dialog-form-table" >
											<tr>
												<td style="width: 190px;"><label for="d_number">განყოფილება</label></td>
												<td style="width: 190px;"><label for="d_number">პასუხისმგებელი პირი</label></td>
												<td style="width: 190px;"><label for="d_number">პრიორიტეტი</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>
											</tr>
											<tr>
												<td style="width: 150px;"><label>შესრულების პერიოდი</label></td>
												<td style="width: 150px;"><label></label></td>
												<td style="width: 150px;"><label>კომენტარი</label></td>
											</tr>
											<tr>
												<td><input style="width: 130px; float:left;" class="idle" type="text"><span style="margin-left:5px; ">დან</span></td>
										  		<td><input style="width: 130px; float:left;" class="idle" type="text"><span style="margin-left:5px; ">მდე</span></td>
												<td>
													<textarea  style="width: 250px; resize: none;" id="comment" class="idle" name="content" cols="300">' . $res['comment'] . '</textarea>
												</td>
											</tr>
										</table>
							        </fieldset>	
							</fieldset>	
							</div>';
    $data .= '<div style="float: right;  width: 355px;">
								  <fieldset>
									<legend>სასარგებლო ბმულები</legend>
									<table>
										<tr>
											<td style="width: 180px;">link 1</td>
											<td style="width: 180px;">link 2</td>
											<td style="width: 180px;">link 3</td>
										</tr>
										
									</table>
								</fieldset>
								<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_contragent" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['personal_contragent'] . '" />
										</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_addres" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['personal_addres'] . '" />		
										</td>
										<td td style="width: 180px;">
											<input type="text" id="personal_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><select style="width: 165px;" id="persons_id" class="idls object">' . Getpersons($res['persons_id']) . '</select></td>
										<td td style="width: 180px;">
											<input type="text" id="personal_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><select style="width: 165px;" id="persons_id" class="idls object">' . Getpersons($res['persons_id']) . '</select></td>
										<td td style="width: 180px;">
											<input type="text" id="personal_status" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['personal_status'] . '" />		
										</td>
									</tr>
								</table>
							</fieldset>
								
							</div>
				    </div>';
    $data .= '<input type="hidden" id="outgoing_call_id" value="' . $res['id'] . '" />';
    return $data;
}
예제 #7
0
function GetPage($res = '', $shabloni)
{
    $data .= '<div id="dialog-form">
							<div style="float: left; width: 710px;">
								<fieldset >
							    	<legend>ძირითადი ინფორმაცია</legend>
						
							    	<table width="65%" class="dialog-form-table">
										<tr>
											<td style="width: 180px;"><label for="">დავალების №</label></td>
											<td style="width: 180px;"><label for="">თარიღი</label></td>
										</tr>
										<tr>
											<td>
												<input type="text" id="id" class="idle" onblur="this.className=\'idle\'" disabled value="' . $res['id'] . '" disabled="disabled" />
											</td>
											<td>
												<input type="text" id="c_date" class="idle" onblur="this.className=\'idle\'" disabled  value="' . $res['date'] . '" disabled="disabled" />
											</td>		
										</tr>
									</table><br>
								
														
								<fieldset style="width:250px; float:left;">
							    	<legend>დავალების ტიპი</legend>
								<table class="dialog-form-table">
							    		<tr>
											<td><select style="width: 305px;" id="task_type_id_seller" disabled class="idls object">' . Gettask_type($res['task_type_id']) . '</select></td>
										</tr>
									</table>
								</fieldset>
								<fieldset style="width:340px; float:left; margin-left:10px;">
							    	<legend>სცენარის დასახელება</legend>
								<table class="dialog-form-table">
							    		<tr>
											<td><select style="width: 375px;" id="shabloni" disabled class="idls object">' . Getshablon('', $res['template_id']) . '</select></td>
										</tr>
									</table>
								</fieldset>
						        ';
    $i = 1;
    $query = mysql_query("SELECT \t`quest_1`.id,\r\n    \t\t\t\t                    `quest_1`.`name`,\r\n    \t\t\t\t                    `quest_1`.note,\r\n                                        `scenario`.`name`,\r\n\t\t                                `scenario_detail`.id AS sc_det_id,\r\n\t\t                                `scenario_detail`.`sort`\r\n                            FROM        `scenario`\r\n                            JOIN        scenario_detail ON scenario.id = scenario_detail.scenario_id\r\n                            JOIN        quest_1 ON scenario_detail.quest_id = quest_1.id\r\n                            WHERE       scenario.id = {$res['template_id']} AND scenario_detail.actived = 1\r\n                            ORDER BY    scenario_detail.sort ASC");
    //$row_scen = mysql_fetch_array($query);
    $data .= '<div id="dialog-form" style="width:100%; overflow-y:scroll; max-height:400px;">
                    <fieldset>
                        <legend>კითხვები</legend>';
    while ($row = mysql_fetch_array($query)) {
        $last_q = mysql_fetch_array(mysql_query("SELECT   `quest_{$row['0']}`,\r\n                                                    \t\t  `answer_{$row['0']}`\r\n                                                    FROM      `scenar_{$res['template_id']}`\r\n                                                    WHERE     `task_detail_id` = {$res['id']}"));
        $lq = $last_q[0];
        $la = $last_q[1];
        $lq = preg_split("/[\\s,]+/", $lq);
        $la = preg_split("/[\\s^]+/", $la);
        //print_r($lq);
        //print_r($la);
        //echo $la;
        $query1 = mysql_query(" SELECT CASE \tWHEN quest_detail.quest_type_id = 1 THEN CONCAT('<tr><td style=\"width:707px; text-align:left;\"><input',IF(scenar_{$res['template_id']}.quest_{$row['0']} = quest_detail.id,' checked',''), ' class=\"check_input\" ansver_val=\"',quest_detail.answer,'\" style=\"float:left;\" type=\"checkbox\" name=\"checkbox', quest_1.id, '\" value=\"', quest_detail.id, '\"><label style=\"float:left; padding: 7px;\">', quest_detail.answer, '</label></td></tr>')\r\n                        \t\t\t\t\t\t\tWHEN quest_detail.quest_type_id = 2 THEN CONCAT('<tr><td style=\"width:707px; text-align:left;\"><input value=\"',IF(ISNULL(scenar_1.answer_4), '', scenar_{$res['template_id']}.answer_{$row['0']}),'\" class=\"inputtext\"style=\"float:left;\"  type=\"text\" id=\"input|', quest_1.id, '|', quest_detail.id, '\" q_id=\"',quest_detail.id,'\" /> <label style=\"float:left; padding: 7px;\" for=\"input|', quest_1.id, '|', quest_detail.id, '\">',quest_detail.answer,'</label></td></tr>')\r\n\t\t\t\t\t\t\t                        WHEN quest_detail.quest_type_id = 3 THEN CONCAT('<tr><td>',production.`name`,'</td><td>',production.`price`,'</td><td>',production.`description`,'</td><td>',production.`comment`,'</td><td><input',IF(scenar_{$res['template_id']}.quest_{$row['0']} = production.id,' checked',''), ' ansver_val=\"',production.`name`,'\" class=\"prod_inp\" type=\"checkbox\" name=\"checkbox|', quest_1.id, '|',quest_detail.id, '\" value=\"', production.`id`, '\"> <input style=\"width:30px;height: 15px;\" min=0 class=\"prod_count\" type=\"number\" ></td></tr>')\r\n\t\t                                            WHEN quest_detail.quest_type_id = 4 THEN CONCAT('<tr><td style=\"width:707px; text-align:left;\"><input',IF(scenar_{$res['template_id']}.quest_{$row['0']} = quest_detail.id,' checked',''), ' class=\"radio_input\" ansver_val=\"',quest_detail.answer,'\" style=\"float:left;\" type=\"radio\" name=\"radio', quest_1.id, '\" value=\"', quest_detail.id, '\"><label style=\"float:left; padding: 7px;\">', quest_detail.answer, '</label></td></tr>')\r\n\t\t                                            WHEN quest_detail.quest_type_id = 5 THEN CONCAT('<tr><td style=\"width:707px; text-align:left;\"><input value=\"',IF(scenar_{$res['template_id']}.quest_{$row['0']} != '',scenar_{$res['template_id']}.quest_{$row['0']},''),'\" class=\"date_input\"  style=\"float:left;\" type=\"text\" id=\"input|', quest_1.id, '|', quest_detail.id, '\" q_id=\"',quest_detail.id,'\" /> <label style=\"float:left; padding: 7px;\" for=\"input|', quest_1.id, '|', quest_detail.id, '\">',quest_detail.answer,'</label></td></tr>')\r\n\t\t                                            WHEN quest_detail.quest_type_id = 6 THEN CONCAT('<tr><td style=\"width:707px; text-align:left;\"><input value=\"',IF(scenar_{$res['template_id']}.quest_{$row['0']} != '',scenar_{$res['template_id']}.quest_{$row['0']},''),'\" class=\"date_time_input\"  style=\"float:left;\" type=\"text\" id=\"input|', quest_1.id, '|', quest_detail.id, '\" q_id=\"',quest_detail.id,'\" /> <label style=\"float:left; padding: 7px;\" for=\"input|', quest_1.id, '|', quest_detail.id, '\">',quest_detail.answer,'</label></td></tr>')\r\n                            \t\t\t\tEND AS `ans`,\r\n                            \t\t\t\tquest_detail.quest_type_id,scenar_{$res['template_id']}.answer_{$row['0']}\r\n                                    FROM `quest_detail`\r\n                                    JOIN  quest_1 ON quest_detail.quest_id = quest_1.id\r\n                                    LEFT JOIN production ON quest_detail.product_id = production.id\r\n                                    LEFT JOIN scenar_{$res['template_id']} ON scenar_{$res['template_id']}.task_detail_id = '{$res['id']}'\r\n                                    WHERE quest_detail.quest_id = {$row['0']} AND quest_detail.actived = 1\r\n                                    ORDER BY quest_1.id, quest_detail.quest_type_id ASC");
        $data .= '<div class="quest_body ' . $row[5] . '" id="' . $row[0] . '"><textarea style="width: 704px; height:100px; resize: none; background: #EBF9FF;" class="idle">' . $row[2] . '</textarea>
		            <table class="dialog-form-table">
		    		<tr>
						<td style="font-weight:bold;">' . $row[5] . '. ' . $row[1] . '</td>
		                </tr>
		                    ';
        $g = 0;
        while ($row1 = mysql_fetch_array($query1)) {
            $q_type = $row1[1];
            if ($row1[1] == 3) {
                $tr .= $row1[0];
                $data1 = ' <style>
            		
            		                        #prod{
                                            border:2px solid #85B1DE; width:100%;
                                          }
                                          #prod #prodtr{
                                            background:#F2F2F2;
                                          }
                                          #prod th{
                                            width:0%; padding:5px; border:1px solid #85B1DE;
                                          }
                                          #prod td{
                                            border:1px solid #85B1DE; padding:2px;
                                          }
                                          #prod tr{
                                            background: #FEFEFE
                                          }
            		
                                          </style>
                                      <table id="prod">
                                      <tr id="prodtr">
                                      <th>დასახელება</th>
                                      <th>ფასი</th>
                                      <th>აღწერა</th>
                                      <th>კომენტარი</th>
                                      <th>#</th>
                                      </tr>
                                          ' . $tr . '
                                      </table>';
            } else {
                if ($q_type == 2) {
                    $input = preg_split("/[\\s^]+/", $row1[2]);
                    //echo $input[$g++];
                    $row1[0] = str_replace($row1[2], $input[$g++], $row1[0]);
                }
                $data .= $row1[0];
            }
        }
        if ($q_type == 3) {
            $data .= $data1;
        }
        $data .= '</table>
                    <hr><br></div>';
    }
    $data .= '<button id="back_quest" back_id="0" style="float:left;">უკან</button><button id="next_quest" style="float:right;" next_id="0">წინ</button></fieldset>
		</div>';
    $data .= '<fieldset style="width:350px;; float:left;">
								    	<legend>ზარის დაზუსტება</legend>
									<table class="dialog-form-table">
								    		<tr>
												<td><textarea  style="width: 350px; height:70px; resize: none;" id="call_content" class="idle" name="content" cols="300" >' . $res['call_content'] . '</textarea></td>
											</tr>
									</table>
									</fieldset>	
									<fieldset style="width:300px; float:left; margin-left:10px; max-height:90px;">
								    	<legend>სტატუსი</legend>
									<table class="dialog-form-table" style="height: 80px;">
											<tr>
												<td></td>
											</tr>
								    		<tr>
												<td><select style="width: 328px;" id="status" class="idls object">' . Getstatus($res['status']) . '</select></td>
											</tr>
									</table>
									</fieldset>
								<fieldset style="margin-top: 5px;">
								    	<legend>დავალების ფორმირება</legend>
							
								    	<table class="dialog-form-table" >
											<tr>
												<td style="width: 280px;"><label for="set_task_department_id">განყოფილება</label></td>
												<td style="width: 280px;"><label for="set_persons_id">პასუხისმგებელი პირი</label></td>
												<td style="width: 280px;"><label for="set_priority_id">პრიორიტეტი</label></td>
											</tr>
								    		<tr>
												<td><select style="width: 200px;"  id="set_task_department_id" class="idls object">' . Getdepartment($res['task_department_id']) . '</select></td>
												<td><select style="width: 200px;" id="set_persons_id" class="idls object">' . Getpersons($res['persons_id']) . '</select></td>
												<td><select style="width: 200px;" id="set_priority_id" class="idls object">' . Getpriority($res['priority_id']) . '</select></td>
											</tr>
											</table>
											<table class="dialog-form-table" style="width: 720px;">
											<tr>
												<td style="width: 150px;"><label>შესრულების პერიოდი</label></td>
												<td style="width: 150px;"><label></label></td>
												<td style="width: 150px;"><label>კომენტარი</label></td>
											</tr>
											<tr>
												<td><input style="width: 130px; float:left;" id="set_start_time" class="idle" type="text"><span style="margin-left:5px; ">დან</span></td>
										  		<td><input style="width: 130px; float:left;" id="set_done_time" class="idle" type="text"><span style="margin-left:5px; ">მდე</span></td>
												<td>
													<textarea  style="width: 270px; resize: none;" id="set_body" class="idle" name="content" cols="300">' . $res['comment'] . '</textarea>
												</td>
											</tr>
										</table>
							        </fieldset>	
							</fieldset>	
							</div>';
    $data .= '<div style="float: right;  width: 355px;">
								<fieldset>
								<legend>აბონენტი</legend>
								<table style="height: 243px;">						
									<tr>
										<td style="width: 180px; color: #3C7FB1;">ტელეფონი 1</td>
										<td style="width: 180px; color: #3C7FB1;">ტელეფონი 2</td>
									</tr>
									<tr>
										<td>
											<input type="text" id="phone"  class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['phone'] . '" />
										</td>
										<td>
											<input type="text" id="phone1"  class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['phone2'] . '" />
										</td>
															
									</tr>
									<tr>
										<td style="width: 180px; color: #3C7FB1;">სახელი</td>
										<td style="width: 180px; color: #3C7FB1;">ელ-ფოსტა</td>
									</tr>
									<tr >
										<td style="width: 180px;">
											<input type="text" id="first_name"  class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['first_name'] . '" />
										</td>
										<td style="width: 180px;">
											<input type="text" id="mail"  class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['mail'] . '" />
										</td>			
									</tr>
									<tr>
										<td td style="width: 180px; color: #3C7FB1;">ქალაქი</td>
										<td td style="width: 180px; color: #3C7FB1;">დაბადების თარიღი</td>
									</tr>
									<tr>
										<td><input type="text" id="city_id"  class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['city_id'] . '" /></td>	
										<td td style="width: 180px;">
											<input type="text" id="b_day"  class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['b_day'] . '" />		
										</td>
									</tr>
									<tr>
										<td td style="width: 180px; color: #3C7FB1;">მისამართი</td>
										<td style="width: 180px; color: #3C7FB1;">პირადი ნომერი</td>
									</tr>
									<tr>
										<td td style="width: 180px;">
											<input type="text" id="addres"  class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['addres'] . '" />		
										</td>
										<td style="width: 180px;">
											<input type="text" id="person_n"  class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['person_n'] . '" />
										</td>
									</tr>
													
									<tr>
										<td td style="width: 180px; color: #3C7FB1;">ასაკი</td>
										<td style="width: 180px; color: #3C7FB1;">სქესი</td>
									</tr>
									<tr>
										<td td style="width: 180px;">
											<input type="text" id="age"  class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['age'] . '" />		
										</td>
										<td style="width: 180px;">
											<input type="text" id="sex"  class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['sex'] . '" />
										</td>
									</tr>
									
									<tr>
										<td td style="width: 180px; color: #3C7FB1;">პროფესია</td>
										<td style="width: 180px; color: #3C7FB1;">ინტერესების სფერო</td>
									</tr>
									<tr>
										<td td style="width: 180px;">
											<input type="text" id="profession"  class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['profession'] . '" />		
										</td>
										<td style="width: 180px;">
											<input type="text" id="interes"  class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['interes'] . '" />
										</td>
									</tr>
									
								</table>
							</fieldset>';
    $data .= GetRecordingsSection($res);
    $data .= '</div>
				    </div>';
    $data .= '<input type="hidden" id="outgoing_call_id" value="' . $res['id'] . '" />';
    return $data;
}
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;
}
예제 #9
0
function GetPage($res = '', $shabloni)
{
    $data .= '<div id="dialog-form">
							<div style="float: left; width: 710px;">
								<fieldset >
							    	<legend>ძირითადი ინფორმაცია</legend>
						
							    	<table width="65%" class="dialog-form-table">
										<tr>
											<td style="width: 180px;"><label for="">დავალების №</label></td>
											<td style="width: 180px;"><label for="">თარიღი</label></td>
										</tr>
										<tr>
											<td>
												<input type="text" id="id" class="idle" onblur="this.className=\'idle\'" disabled value="' . $res['id'] . '" disabled="disabled" />
											</td>
											<td>
												<input type="text" id="c_date" class="idle" onblur="this.className=\'idle\'" disabled  value="' . $res['date'] . '" disabled="disabled" />
											</td>		
										</tr>
									</table><br>
								
														
								<fieldset style="width:250px; float:left;">
							    	<legend>დავალების ტიპი</legend>
								<table class="dialog-form-table">
							    		<tr>
											<td><select style="width: 305px;" id="task_type_id_seller" disabled class="idls object">' . Gettask_type($res['task_type_id']) . '</select></td>
										</tr>
									</table>
								</fieldset>
								<fieldset style="width:340px; float:left; margin-left:10px;">
							    	<legend>სცენარის დასახელება</legend>
								<table class="dialog-form-table">
							    		<tr>
											<td><select style="width: 375px;" id="shabloni" disabled class="idls object">' . Getshablon('', $res['template_id']) . '</select></td>
										</tr>
									</table>
								</fieldset>
						        ';
    if ($res[template_id] == 1) {
        $data .= '<div id="dialog-form" style="width:100%; overflow-y:scroll; max-height:400px;">
                    <fieldset>
                        <legend>კითხვები</legend>
		    <div class="1" id="2">
            <textarea style="width: 704px; height:100px; resize: none; background: #EBF9FF;" class="idle">სავალდებულოა მონიშნეთ 1 პასუხი</textarea>
            <table class="dialog-form-table">
    		<tbody>
                <tr>
    			  <td style="font-weight:bold;">1. სქესი</td>
                </tr>
                <tr>
                  <td style="width:707px; text-align:left;">
                  <input style="float:left;" type="radio" name="sqesi" value="1" ' . ($res['sqesi'] == '1' ? 'checked' : "") . '>
                  <label style="float:left; padding: 7px;">მამრობითი</label>
                  </td>
		    </tr>
		    <tr>
		    <td style="width:707px; text-align:left;">
		    <input style="float:left;" type="radio" name="sqesi" value="2" ' . ($res['sqesi'] == '2' ? 'checked' : "") . '>
		    <label style="float:left; padding: 7px;">მდედორბითი</label>
		    </td>
		    </tr>
		    </tbody>
		    </table>
                    <hr><br>
		    </div>
		    
		    <div class="2" id="1">
		    <textarea style="width: 704px; height:100px; resize: none; background: #EBF9FF;" class="idle">სავალდებულო შეკითხვა</textarea>
		            <table class="dialog-form-table">
		    		<tbody><tr>
						<td style="font-weight:bold;">2. ასაკი</td>
		                </tr>
		                    <tr>
		    <td style="width:707px; text-align:left;">
		    <input style="float:left;" type="radio" name="asaki" value="1" ' . ($res['asaki'] == '1' ? 'checked' : "") . '>
		    <label style="float:left; padding: 7px;">18 წლამდე</label>
		    </td>
		    </tr>
		    <tr>
		    <td style="width:707px; text-align:left;">
		    <input style="float:left;" type="radio" name="asaki" value="2" ' . ($res['asaki'] == '2' ? 'checked' : "") . '>
		    <label style="float:left; padding: 7px;">18-24</label>
		    </td>
		    </tr>
		    <tr>
		    <td style="width:707px; text-align:left;">
		    <input style="float:left;" type="radio" name="asaki" value="3" ' . ($res['asaki'] == '3' ? 'checked' : "") . '>
		    <label style="float:left; padding: 7px;">25-34</label>
		    </td>
		    </tr>
		    <tr>
		    <td style="width:707px; text-align:left;">
		    <input style="float:left;" type="radio" name="asaki" value="4" ' . ($res['asaki'] == '4' ? 'checked' : "") . '>
		    <label style="float:left; padding: 7px;">35-44</label>
		    </td>
		    </tr>
		    <tr>
		    <td style="width:707px; text-align:left;">
		    <input style="float:left;" type="radio" name="asaki" value="5" ' . ($res['asaki'] == '5' ? 'checked' : "") . '>
		    <label style="float:left; padding: 7px;">45-54</label>
		    </td>
		    </tr>
		    <tr>
		    <td style="width:707px; text-align:left;">
		    <input style="float:left;" type="radio" name="asaki" value="6" ' . ($res['asaki'] == '6' ? 'checked' : "") . '>
		    <label style="float:left; padding: 7px;">55-64</label>
		    </td>
		    </tr>
		    <tr>
		    <td style="width:707px; text-align:left;">
		    <input style="float:left;" type="radio" name="asaki" value="7" ' . ($res['asaki'] == '7' ? 'checked' : "") . '>
		    <label style="float:left; padding: 7px;">65+</label>
		    </td>
		    </tr>
		    </tbody>
		    </table>
                    <hr><br>
		    </div>
		    
		    
		    <div class="3" id="3">
		    <textarea style="width: 704px; height:100px; resize: none; background: #EBF9FF;" class="idle">შესაძლებელია რამდენიმე პასუხი</textarea>
		            <table class="dialog-form-table">
		    		<tbody><tr>
						<td style="font-weight:bold;">3. რა თემატიკის საგაზეთო სტატიები გაინტერესებთ ყველაზე მეტად?</td>
		                </tr>
		                    <tr>
		    <td style="width:707px; text-align:left;">
		    <input style="float:left;" type="checkbox" name="tematika" value="პოლიტიკა"  ' . (preg_match('#^.*პოლიტიკა.*$#', $res['tematika']) ? 'checked' : "") . '>
		    <label style="float:left; padding: 7px;">პოლიტიკა</label>
		    </td>
		    </tr>
		    <tr>
		    <td style="width:707px; text-align:left;">
		    <input style="float:left;" type="checkbox" name="tematika" value="ბიზნესი/ეკონომიკა" ' . (preg_match('#^.*ბიზნესი/ეკონომიკა.*$#', $res['tematika']) ? 'checked' : "") . '>
		    <label style="float:left; padding: 7px;">ბიზნესი/ეკონომიკა</label>
		    </td>
		    </tr>
		    <tr>
		    <td style="width:707px; text-align:left;">
		    <input style="float:left;" type="checkbox" name="tematika" value="კრიმინალი" ' . (preg_match('#^.*კრიმინალი.*$#', $res['tematika']) ? 'checked' : "") . '>
		    <label style="float:left; padding: 7px;">კრიმინალი</label>
		    </td>
		    </tr>
		    <tr>
		    <td style="width:707px; text-align:left;">
		    <input style="float:left;" type="checkbox" name="tematika" value="მედიცინა" ' . (preg_match('#^.*მედიცინა.*$#', $res['tematika']) ? 'checked' : "") . '>
		    <label style="float:left; padding: 7px;">მედიცინა</label>
		    </td>
		    </tr>
		    <tr>
		    <td style="width:707px; text-align:left;">
		    <input style="float:left;" type="checkbox" name="tematika" value="რელიგია" ' . (preg_match('#^.*რელიგია.*$#', $res['tematika']) ? 'checked' : "") . '>
		    <label style="float:left; padding: 7px;">რელიგია</label>
		    </td>
		    </tr>
		    <tr>
		    <td style="width:707px; text-align:left;">
		    <input style="float:left;" type="checkbox" name="tematika" value="სპორტი" ' . (preg_match('#^.*სპორტი.*$#', $res['tematika']) ? 'checked' : "") . '>
		    <label style="float:left; padding: 7px;">სპორტი</label>
		    </td>
		    </tr>
		    <tr>
		    <td style="width:707px; text-align:left;">
		    <input style="float:left;" type="checkbox" name="tematika" value="სამხედრო თემა" ' . (preg_match('#^.*სამხედრო თემა.*$#', $res['tematika']) ? 'checked' : "") . '>
		    <label style="float:left; padding: 7px;">სამხედრო თემა</label>
		    </td>
		    </tr>
		    <tr>
		    <td style="width:707px; text-align:left;">
		    <input style="float:left;" type="checkbox" name="tematika" value="სასარგებლო რჩევები" ' . (preg_match('#^.*სასარგებლო რჩევები.*$#', $res['tematika']) ? 'checked' : "") . '>
		    <label style="float:left; padding: 7px;">სასარგებლო რჩევები</label>
		    </td>
		    </tr>
		    <tr>
		    <td style="width:707px; text-align:left;">
		    <input style="float:left;" type="checkbox" name="tematika" value="სოციალური თემები" ' . (preg_match('#^.*სოციალური თემები.*$#', $res['tematika']) ? 'checked' : "") . '>
		    <label style="float:left; padding: 7px;">სოციალური თემები</label>
		    </td>
		    </tr>
		    <tr>
		    <td style="width:707px; text-align:left;">
		    <input style="float:left;" type="checkbox" name="tematika" value="ისტორიული" ' . (preg_match('#^.*ისტორიული.*$#', $res['tematika']) ? 'checked' : "") . '>
		    <label style="float:left; padding: 7px;">ისტორიული</label>
		    </td>
		    </tr>
		    <tr>
		    <td style="width:707px; text-align:left;">
		    <input style="float:left;" type="checkbox" name="tematika" value="შოუბიზნესი" ' . (preg_match('#^.*შოუბიზნესი.*$#', $res['tematika']) ? 'checked' : "") . '>
		    <label style="float:left; padding: 7px;">შოუბიზნესი</label>
		    </td>
		    </tr>
		    <tr>
		    <td style="width:707px; text-align:left;">
		    <input style="float:left;" type="checkbox" name="tematika" value="კულტურა/ხელოვნება" ' . (preg_match('#^.*კულტურა/ხელოვნება.*$#', $res['tematika']) ? 'checked' : "") . '>
		    <label style="float:left; padding: 7px;">კულტურა/ხელოვნება</label>
		    </td>
		    </tr>
		    <tr>
		    <td style="width:707px; text-align:left;">
		    <input value="' . $res['tematika_inp'] . '" style="float:left;" type="text" id="tematika_inp">
		    <label style="float:left; padding: 7px;" for="tematika_inp">სხვა, დაასახელეთ</label>
		    </td>
		    </tr>
		    </tbody>
		    </table>
                    <hr><br>
		    </div>
		    
		    
		    <div class="4" id="4">
		    <textarea style="width: 704px; height:100px; resize: none; background: #EBF9FF;" class="idle">დაასახელეთ მაქსიმუმ სამი რუბრიკა</textarea>
		            <table class="dialog-form-table">
		    		<tbody><tr>
						<td style="font-weight:bold;">4. რომელ რუბრიკას კითხულობთ ყველაზე მეტი ინტერესით?</td>
		                </tr>
		                    <tr>
		    <td style="width:707px; text-align:left;">
		    <input value="' . $res['rubrika1'] . '" style="float:left;" type="text" id="rubrika1">
		    <label style="float:left; padding: 7px;" for="rubrika1">პასუხი 1</label>
		    </td>
		    </tr>
		    <tr>
		    <td style="width:707px; text-align:left;">
		    <input value="' . $res['rubrika2'] . '" style="float:left;" type="text" id="rubrika2">
		    <label style="float:left; padding: 7px;" for="rubrika2">პასუხი 2</label>
		    </td>
		    </tr>
		    <tr>
		    <td style="width:707px; text-align:left;">
		    <input value="' . $res['rubrika3'] . '" style="float:left;" type="text" id="rubrika3">
		    <label style="float:left; padding: 7px;" for="rubrika3">პასუხი 3</label>
		    </td>
		    </tr>
		    </tbody>
		    </table>
                    <hr><br>
		    </div>
		    
		    
		    <div class="5" id="6">
		    <textarea style="width: 704px; height:100px; resize: none; background: #EBF9FF;" class="idle">შესაძლებელია მხოლოდ ერთი პასუხი</textarea>
		            <table class="dialog-form-table">
		    		<tbody><tr>
						<td style="font-weight:bold;">5. რა მოცულობის საგაზეთო სტატიების წაკითხვა გირჩევნიათ?</td>
		                </tr>
		                    <tr>
		    <td style="width:707px; text-align:left;">
		    <input style="float:left;" type="radio" name="gazeti" value="1" ' . ($res['gazeti'] == '1' ? 'checked' : "") . '>
		    <label style="float:left; padding: 7px;">ვრცელი</label>
		    </td>
		    </tr>
		    <tr>
		    <td style="width:707px; text-align:left;">
		    <input style="float:left;" type="radio" name="gazeti" value="2" ' . ($res['gazeti'] == '2' ? 'checked' : "") . '>
		    <label style="float:left; padding: 7px;">მცირე</label>
		    </td>
		    </tr>
		    <tr>
		    <td style="width:707px; text-align:left;">
		    <input style="float:left;" type="radio" name="gazeti" value="3" ' . ($res['gazeti'] == '3' ? 'checked' : "") . '>
		    <label style="float:left; padding: 7px;">საშუალო ზომის</label>
		    </td>
		    </tr>
		    <tr>
		    <td style="width:707px; text-align:left;">
		    <input style="float:left;" type="radio" name="gazeti" value="4" ' . ($res['gazeti'] == '4' ? 'checked' : "") . '>
		    <label style="float:left; padding: 7px;">მოცულობას არ აქვს მნიშვნელობა</label>
		    </td>
		    </tr>
		    </tbody>
		    </table>
                    <hr><br>
		    </div>
		    
		    
		    <div class="6" id="7">
		    <textarea style="width: 704px; height:100px; resize: none; background: #EBF9FF;" class="idle">მხოლოდ ერთი პასუხი</textarea>
		            <table class="dialog-form-table">
		    		<tbody><tr>
						<td style="font-weight:bold;">6. აქცევთ თუ არა ყურადღებას რეკლამას გაზეთში?</td>
		                </tr>
		                    <tr>
		    <td style="width:707px; text-align:left;">
		    <input style="float:left;" type="radio" name="reklama" value="1" ' . ($res['reklama'] == '1' ? 'checked' : "") . '>
		    <label style="float:left; padding: 7px;">დიახ</label>
		    </td>
		    </tr>
		    <tr>
		    <td style="width:707px; text-align:left;">
		    <input style="float:left;" type="radio" name="reklama" value="2" ' . ($res['reklama'] == '2' ? 'checked' : "") . '>
		    <label style="float:left; padding: 7px;">არა</label>
		    </td>
		    </tr>
		    </tbody>
		    </table>
                    <hr><br>
		    </div>
		    
		    
		    <div class="7" id="8">
		    <textarea style="width: 704px; height:100px; resize: none; background: #EBF9FF;" class="idle">მხოლოდ ერთი პასუხი</textarea>
		            <table class="dialog-form-table">
		    		<tbody><tr>
						<td style="font-weight:bold;">7. მიგიღიათ თუ არა ყიდვის გადაწყვეტილება კვირის პალიტრაში ნანახი რეკლამის საფუძველზე?</td>
		                </tr>
		                    <tr>
		    <td style="width:707px; text-align:left;">
		    <input style="float:left;" type="radio" name="yidva" value="1" ' . ($res['yidva'] == '1' ? 'checked' : "") . '>
		    <label style="float:left; padding: 7px;">დიახ</label>
		    </td>
		    </tr>
		    <tr>
		    <td style="width:707px; text-align:left;">
		    <input style="float:left;" type="radio" name="yidva" value="2" ' . ($res['yidva'] == '2' ? 'checked' : "") . '>
		    <label style="float:left; padding: 7px;">არა</label>
		    </td>
		    </tr>
		    </tbody>
		    </table>
                    <hr><br>
		    </div>
		    
		    
		    <div class="8" id="5"><textarea style="width: 704px; height:100px; resize: none; background: #EBF9FF;" class="idle">შესაძლებელია რამდენიმე პასუხი</textarea>
		            <table class="dialog-form-table">
		    		<tbody><tr>
						<td style="font-weight:bold;">8. რას ურჩევდით კვირის პალიტრას?</td>
		                </tr>
		                    <tr>
		    <td style="width:707px; text-align:left;">
		    <input value="' . $res['rcheva'] . '" style="float:left;" type="text" id="rcheva">
		    <label style="float:left; padding: 7px;" for="rcheva">პასუხი</label>
		    </td>
		    </tr>
		    </tbody>
		    </table>
                    <hr><br>
		    </div>
		    
		    
		    <div class="9" id="9">
		    <textarea style="width: 704px; height:100px; resize: none; background: #EBF9FF;" class="idle"></textarea>
		            <table class="dialog-form-table">
		    		<tbody><tr>
						<td style="font-weight:bold;">9. გთხოვთ დაასახელოთ თქვენი საცხოვრებელი ქალაქი/რეგიონი</td>
		                </tr>
		                    <tr>
		    <td style="width:707px; text-align:left;">
		    <input value="' . $res['qalaqi'] . '" style="float:left;" type="text" id="qalaqi">
		    <label style="float:left; padding: 7px;" for="qalaqi"></label>
		    </td>
		    </tr>
		    </tbody>
		    </table>
                    <hr><br>
		    </div>
		    </fieldset>
		          </div>';
    } elseif ($res[template_id] == 2) {
        $data .= '<div id="dialog-form" style="width:100%; overflow-y:scroll; max-height:400px;">
                    <fieldset>
                        <legend>კითხვები</legend>
		    <div class="1" id="2">
            <textarea style="width: 704px; height:100px; resize: none; background: #EBF9FF;" class="idle">მოგესალმებით, მევარ _--- გიკავშირდებით პალიტრა მედიიდან, გთხოვთ დამაკავშიროთ თქვენი კომპანიის მარკეტინგის სამსახურთან, მინდა გაგაცნოთ სასიამოვნო სიახლე _ საზაფხულო აქცია _ ორი გვერდი ერთის ფასად. ყველასათვის საჭირო და მაღალტირაჟიან ჟურნალებში თქვენ შეიძენთ რეკლამას ორ გვერდზე მხოლოდ ერთის ფასად
აქცია მოქმედებს მხოლოდ ერთ გამოცემაში რეკლამის შეძენის დროსაც. 
თუ იძენს  2 ჟურნალს - დამატებით ფასდაკლებაა, თუ 3 გამოცემას, მაშინ კიდევ უფრო დიდი ფასდაკლება და ა.შ. მაქსიმალური დამატებითი ფასდაკლებაა 6 ჟურნალში აქციით სარგებლობისას - 25%. 
მაგ. ჟურნალ ბომონდში 1  გვერდის შეძენა უნდათ, რომელიც ჟურნალის პირველ ნახევარშია. პრაისით ამ გვერდის ღირებულება შეადგენს 650$. შესაბამისად ამ აქციის ფარგლებში 650$-ად მოუვად ორი გვერდი.
თუ უნდა ჟურნალ დაქალში რეკლამა, წინა გვერდებში პრაისით მიხედვით ერთი გვერდის ღირებულება შეადგენს 350$. შესაბამისად აქციის დროს 350$-ად მოუვა ორი გვერდი.
თუ უნდა რეკლამა ჟურნალ გემრიელში, ერთი გვერდი წინა ნახევარში პრაისით ღირს 350$. აქციის ფარგლებში 350$-ად მოუვა ორი გვერდი
თუ გადაიხდის ბომონდშიც და და ქალშიც 650$ + 350$=1000$-ის ნაცვლად გადაიხდის 890$ და მოუვა 2 გვერდი ბომონდში და 2 გვერდი და ქალში
თუ გადაიხდის ბომონდში + გემრიელი + და ქალი = 650$+350$+350$=1350$-ის ნაცვლად გადაიხდის 1161$-ს 
და ა.შ.
რეკლამა პრესაში განთავისუფლებულია დღგ-სგან
ამ ყველა გამოცემის მკითხველის ძირითადი ნაწილია ქალები - 75%.
ბომონდი, და ქალი, რეიტინგი, გემრიელი - გამოდის თვეში ერთხელ, თვის დასაწყისში
ოჯახის მკურნალი - ორ კვირაში ერთხელ, ხუთშაბათობით
შინი - 3 თვეში ერთხელ, ახლა გამოვიდა პირველი ნომერი - ზაფხულის, შემდეგი გამოვა სექტემბერში.
ჟურნალის გასაყიდი ფასები:
ბომონდი - 5 ლარი
და ქალი - 3 ლარი
გემრიელი - 3 ლარი
შინი - 8 ლარი
ოჯახის მკურნალი - 2 ლარი</textarea>
            <table class="dialog-form-table">
    		<tbody>
                <tr>
    			  <td style="font-weight:bold;">1. შეთავაზება</td>
                </tr>
                <tr>
                  <td style="width:707px; text-align:left;">
                  <input style="float:left;" type="text" id="shetavazeba" value="' . $res['shetavazeba'] . '">
                  <label style="float:left; padding: 7px;">ჩაინიშნეთ მიღებული ინფორმაცია</label>
                  </td>
		    </tr>		    
		    </tbody>
		    </table>
                    <hr><br>
		    </div>
		    
		    <div class="2" id="1">
		    <textarea style="width: 704px; height:100px; resize: none; background: #EBF9FF;" class="idle">ჩაინიშნეთ, დაინტერესდა თუ არა</textarea>
		            <table class="dialog-form-table">
		    		<tbody><tr>
						<td style="font-weight:bold;">2. ინტერესესის გამოხატვა</td>
		                </tr>
		                    <tr>
		    <td style="width:707px; text-align:left;">
		    <input style="float:left;" type="radio" name="interesi" value="1" ' . ($res['interesi'] == '1' ? 'checked' : "") . '>
		    <label style="float:left; padding: 7px;">დიახ</label>
		    </td>
		    </tr>
		    <tr>
		    <td style="width:707px; text-align:left;">
		    <input style="float:left;" type="radio" name="interesi" value="2" ' . ($res['interesi'] == '2' ? 'checked' : "") . '>
		    <label style="float:left; padding: 7px;">არა</label>
		    </td>
		    </tr>		    
		    </tbody>
		    </table>
                    <hr><br>
		    </div>
		    
		    
		    <div class="3" id="3">
		    <textarea style="width: 704px; height:100px; resize: none; background: #EBF9FF;" class="idle">ჩაინიშნეთ გადაუგზავნეთ თუ არა მეილზე</textarea>
		            <table class="dialog-form-table">
		    		<tbody><tr>
						<td style="font-weight:bold;">3. მეილზე გადაგზავნა</td>
		                </tr>
		                    <tr>
		    <td style="width:707px; text-align:left;">
		    <input style="float:left;" type="radio" name="meili" value="1" ' . ($res['meili'] == '1' ? 'checked' : "") . '>
		    <label style="float:left; padding: 7px;">დიახ</label>
		    </td>
		    </tr>
		    <tr>
		    <td style="width:707px; text-align:left;">
		    <input style="float:left;" type="radio" name="meili" value="2" ' . ($res['meili'] == '2' ? 'checked' : "") . '>
		    <label style="float:left; padding: 7px;">არა</label>
		    </td>
		    </tr>
		    </tbody>
		    </table>
                    <hr><br>
		    </div>
		    
		    
		    <div class="4" id="4">
		    <textarea style="width: 704px; height:100px; resize: none; background: #EBF9FF;" class="idle">ჩაინიშნეთ, თუ გადაამისამართეთ ედვერთლაინზე 2377807 გმადლობთ თანამშრომლობისთვის!</textarea>
		            <table class="dialog-form-table">
		    		<tbody><tr>
						<td style="font-weight:bold;">4. ედვერთლაინში გადამისამართება</td>
		                </tr>
		                    <tr>
		    <td style="width:707px; text-align:left;">
		    <input style="float:left;" type="radio" name="gadamisamarteba" value="1" ' . ($res['gadamisamarteba'] == '1' ? 'checked' : "") . '>
		    <label style="float:left; padding: 7px;">დიახ</label>
		    </td>
		    </tr>
		    <tr>
		    <td style="width:707px; text-align:left;">
		    <input style="float:left;" type="radio" name="gadamisamarteba" value="2" ' . ($res['gadamisamarteba'] == '2' ? 'checked' : "") . '>
		    <label style="float:left; padding: 7px;">არა</label>
		    </td>
		    </tr>
		    </tbody>
		    </table>
                    <hr><br>
		    </div>
		    
		    </fieldset>
		          </div>';
    }
    $data .= '<fieldset style="width:350px;; float:left;">
								    	<legend>ზარის დაზუსტება</legend>
									<table class="dialog-form-table">
								    		<tr>
												<td><textarea  style="width: 350px; height:70px; resize: none;" id="call_content" class="idle" name="content" cols="300" >' . $res['call_content'] . '</textarea></td>
											</tr>
									</table>
									</fieldset>	
									<fieldset style="width:300px; float:left; margin-left:10px; max-height:90px;">
								    	<legend>სტატუსი</legend>
									<table class="dialog-form-table" style="height: 80px;">
											<tr>
												<td></td>
											</tr>
								    		<tr>
												<td><select style="width: 328px;" id="status" class="idls object">' . Getstatus($res['status']) . '</select></td>
											</tr>
									</table>
									</fieldset>
								<fieldset style="margin-top: 5px;">
								    	<legend>დავალების ფორმირება</legend>
							
								    	<table class="dialog-form-table" >
											<tr>
												<td style="width: 280px;"><label for="set_task_department_id">განყოფილება</label></td>
												<td style="width: 280px;"><label for="set_persons_id">პასუხისმგებელი პირი</label></td>
												<td style="width: 280px;"><label for="set_priority_id">პრიორიტეტი</label></td>
											</tr>
								    		<tr>
												<td><select style="width: 200px;"  id="set_task_department_id" class="idls object">' . Getdepartment($res['task_department_id']) . '</select></td>
												<td><select style="width: 200px;" id="set_persons_id" class="idls object">' . Getpersons($res['persons_id']) . '</select></td>
												<td><select style="width: 200px;" id="set_priority_id" class="idls object">' . Getpriority($res['priority_id']) . '</select></td>
											</tr>
											</table>
											<table class="dialog-form-table" style="width: 720px;">
											<tr>
												<td style="width: 150px;"><label>შესრულების პერიოდი</label></td>
												<td style="width: 150px;"><label></label></td>
												<td style="width: 150px;"><label>კომენტარი</label></td>
											</tr>
											<tr>
												<td><input style="width: 130px; float:left;" id="set_start_time" class="idle" type="text"><span style="margin-left:5px; ">დან</span></td>
										  		<td><input style="width: 130px; float:left;" id="set_done_time" class="idle" type="text"><span style="margin-left:5px; ">მდე</span></td>
												<td>
													<textarea  style="width: 270px; resize: none;" id="set_body" class="idle" name="content" cols="300">' . $res['comment'] . '</textarea>
												</td>
											</tr>
										</table>
							        </fieldset>	
							</fieldset>	
							</div>';
    $data .= '<div style="float: right;  width: 355px;">
								<fieldset>
								<legend>აბონენტი</legend>
								<table style="height: 243px;">						
									<tr>
										<td style="width: 180px; color: #3C7FB1;">ტელეფონი 1</td>
										<td style="width: 180px; color: #3C7FB1;">ტელეფონი 2</td>
									</tr>
									<tr>
										<td>
											<input type="text" id="phone"  class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['phone'] . '" />
										</td>
										<td>
											<input type="text" id="phone1"  class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['phone2'] . '" />
										</td>
															
									</tr>
									<tr>
										<td style="width: 180px; color: #3C7FB1;">სახელი</td>
										<td style="width: 180px; color: #3C7FB1;">ელ-ფოსტა</td>
									</tr>
									<tr >
										<td style="width: 180px;">
											<input type="text" id="first_name"  class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['first_name'] . '" />
										</td>
										<td style="width: 180px;">
											<input type="text" id="mail"  class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['mail'] . '" />
										</td>			
									</tr>
									<tr>
										<td td style="width: 180px; color: #3C7FB1;">ქალაქი</td>
										<td td style="width: 180px; color: #3C7FB1;">დაბადების თარიღი</td>
									</tr>
									<tr>
										<td><input type="text" id="city_id"  class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['city_id'] . '" /></td>	
										<td td style="width: 180px;">
											<input type="text" id="b_day"  class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['b_day'] . '" />		
										</td>
									</tr>
									<tr>
										<td td style="width: 180px; color: #3C7FB1;">მისამართი</td>
										<td style="width: 180px; color: #3C7FB1;">პირადი ნომერი</td>
									</tr>
									<tr>
										<td td style="width: 180px;">
											<input type="text" id="addres"  class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['addres'] . '" />		
										</td>
										<td style="width: 180px;">
											<input type="text" id="person_n"  class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['person_n'] . '" />
										</td>
									</tr>
													
									<tr>
										<td td style="width: 180px; color: #3C7FB1;">ასაკი</td>
										<td style="width: 180px; color: #3C7FB1;">სქესი</td>
									</tr>
									<tr>
										<td td style="width: 180px;">
											<input type="text" id="age"  class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['age'] . '" />		
										</td>
										<td style="width: 180px;">
											<input type="text" id="sex"  class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['sex'] . '" />
										</td>
									</tr>
									
									<tr>
										<td td style="width: 180px; color: #3C7FB1;">პროფესია</td>
										<td style="width: 180px; color: #3C7FB1;">ინტერესების სფერო</td>
									</tr>
									<tr>
										<td td style="width: 180px;">
											<input type="text" id="profession"  class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['profession'] . '" />		
										</td>
										<td style="width: 180px;">
											<input type="text" id="interes"  class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['interes'] . '" />
										</td>
									</tr>
									
								</table>
							</fieldset>';
    $data .= GetRecordingsSection($res);
    $data .= '</div>
				    </div>';
    $data .= '<input type="hidden" id="outgoing_call_id" value="' . $res['id'] . '" />';
    return $data;
}
예제 #10
0
function GetPage($res = '', $number)
{
    $c_date = date('Y-m-d H:i:s');
    $num = 0;
    if ($res[source] == "") {
        $num = $number;
    } else {
        $num = $res[source];
    }
    if ($res[date] == "") {
        $date = $c_date;
    } else {
        $date = $res[date];
    }
    if ($res[id] != '') {
        $disable = '';
        $dis_val = 1;
    } else {
        $disable = '';
        $dis_val = 0;
    }
    $data .= '
	<!-- jQuery Dialog -->
    <div id="add-edit-goods-form" title="საქონელი">
    	<input id="disable_all" type="hidden" value="0">
    	<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="' . $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['phone'] . '" ' . $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="' . $res['name'] . '" ' . $disable . ' />
            				</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; display: none"><label for="d_number">პასუხისმგებელი პირი</label></td>
            			</tr>
            			<tr style="display: none">
            				<td style="width: 180px; display: none"><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>
            				<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: 7px; margin-top: 62px;">
            	</fieldset>
            </td>
        	<td style="vertical-align: top;">';
    $data .= '</div><div id="chanawerebi" style="float: right; width: 195px;">';
    $data .= GetRecordingsSection($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;
}
예제 #11
0
function GetPage($res = '', $number)
{
    $num = 0;
    if ($res[phone] == "") {
        $num = $number;
    } else {
        $num = $res[phone];
    }
    $increm = mysql_query("\tSELECT  `name`,\r\n\t\t\t`rand_name`,\r\n\t\t\tid\r\n\t\t\tFROM \t`file`\r\n\t\t\tWHERE   `action_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: 580px;">	
				<fieldset >
			    	<legend>ინფო</legend>
					<fieldset float:left;">
				    	<table width="100%" class="dialog-form-table">
							<tr>
								<td>დასახელება</td>
								<td style="width:20px;></td>
								
								<td colspan "5">
									<input  type="text" id="action_name" class="idle" onblur="this.className=\'idle\'"  value="' . $res['action_name'] . '"  />
								</td>
							</tr>
							<tr>
								<td style="width: 150px;"><label for="d_number">პერიოდი</label></td>
								<td>
									<input type="text" id="start_date" class="idle" onblur="this.className=\'idle\'" value="' . $res['start_date'] . '" />
								</td>
								<td style="width: 150px;"><label for="d_number">-დან</label></td>
								<td>
									<input type="text" id="end_date" class="idle" onblur="this.className=\'idle\'"  value="' . $res['end_date'] . '"  />
								</td>
								<td style="width: 150px;"><label for="d_number">-მდე</label></td>
							</tr>
						</table>
									
					</fieldset>
					<fieldset style="float: left; width: 400px;">
						<legend>აღწერა</legend>
				    		<table width="100%" class="dialog-form-table">
							<tr>
								<td colspan="5">
									<textarea  style="width: 530px; height: 100px; resize: none;" id="action_content" class="idle" name="content" cols="100" rows="2">' . $res['action_content'] . '</textarea>
								</td>
							</tr>		
							</table>
					</fieldset>	
								
					<!--fieldset>
			    	<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">' . Gettask_type($res['task_type_id']) . '</select></td>
							<td style="width: 180px;"><select id="task_department_id" class="idls object">' . Getdepartment($res['department_id']) . '</select></td>
							<td style="width: 180px;"><select id="persons_id" class="idls object">' . Getpriority($res['priority_id']) . '</select></td>
						</tr>
						<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  style="width: 530px; height: 80px; resize: none;" id="comment" class="idle" name="content" cols="100" rows="2">' . $res['comment'] . '</textarea>
							</td>
						</tr>
					</table>
		        </fieldset-->
			</div>
			<div style="float: right;  width: 360px;">
				</fieldset>
										
				<fieldset style="float: right;  width: 440px;">
					<legend>განყოფილებები</legend>
										
			<div id="dt_example" class="inner-table">
		        <div style="width:440px;" id="container" >        	
		            <div id="dynamic">
		            	<div id="button_area">
		            		<button id="add_button_pp">დამატება</button>
	        			</div>
		                <table class="" id="example4" style="width: 100%;">
		                    <thead>
								<tr  id="datatable_header">
										
		                           <th style="display:none">ID</th>
									<th style="width:4%;">#</th>
									<th style="width:25%; word-break:break-all;">ფილიალი</th>
									<th style="width:20%; word-break:break-all;">მისამართი</th>
								</tr>
							</thead>
							<thead>
								<tr class="search_header">
									<th class="colum_hidden">
                            			<input type="text" name="search_id" value="" class="search_init" style="width: 10px"/>
                            		</th>
									<th>
										<input style="width:100px;" type="text" name="search_overhead" value="ფილტრი" class="search_init" />
									</th>
									<th>
										<input style="width:100px;" type="text" name="search_partner" value="ფილტრი" class="search_init" />
									</th>
								</tr>
							</thead>
		                </table>
		            </div>
		            <div class="spacer">
		            </div>
		        </div>

				</fieldset>
				
				<fieldset style="float: right;  width: 440px;">
					<legend>აქციის პროდუქტები</legend>
										
			<div id="dt_example" class="inner-table">
		        <div style="width:440px;" id="container" >        	
		            <div id="dynamic">
		            	<div id="button_area">
		            		<button id="add_button_p">დამატება</button>
	        			</div>
		                <table class="" id="example3" style="width: 100%;">
		                    <thead>
								<tr  id="datatable_header">
										
		                           <th style="display:none">ID</th>
									<th style="width:7%;">#</th>
									<th style="width:22%; word-break:break-all;">თარიღი</th>
									<th style="width:33%; word-break:break-all;">პროდუქტი</th>
									<th style="width:13%; word-break:break-all;">თანხა</th>
								</tr>
							</thead>
							<thead>
								<tr class="search_header">
									<th class="colum_hidden">
                            			<input type="text" name="search_id" value="" class="search_init" style="width: 10px"/>
                            		</th>
									<th>
										<input style="width:70px;" type="text" name="search_overhead" value="ფილტრი" class="search_init" />
									</th>
									<th>
										<input style="width:65px;" type="text" name="search_partner" value="ფილტრი" class="search_init" />
									</th>
									<th>
										<input style="width:100px;" type="text" name="search_overhead" value="ფილტრი" class="search_init" />
									</th>
								</tr>
							</thead>
		                </table>
		            </div>
		            <div class="spacer">
		            </div>
		        </div>

				</fieldset>
				<fieldset style="width: 440px; float: right;">
						<legend>მიმაგრებული ფაილები</legend>				
				 <table style="float: right; border: none; width: 120px; 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: 300px; text-align: center; margin-bottom:5px;">
				          <tr style="border-bottom: 1px solid #85b1de;">
				           <td colspan="3" style="padding:5px 0;">მიმაგრებული ფაილი</td>
				          </tr>
					</table>
					<table id="file_div" style="float: left; border: 1px solid #85b1de; width: 300px; text-align: center;margin-left:20px;" >';
    while ($increm_row = mysql_fetch_assoc($increm)) {
        $data .= ' 
									        <tr style="border-bottom: 1px solid #85b1de;">
									          <td style="width:260px; display:block;word-wrap:break-word; padding:5px 0;">' . $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 type="hidden" id="actionn_id" value="' . $res['id'] . '"/>
				<input type="hidden" id="act_id" value="' . ($res['id'] != '' ? $res['id'] : increment('action')) . '"/>
    </div>';
    return $data;
}
예제 #12
0
function GetPage($res = '', $number)
{
    if ($res[incomming_call_id] != 0) {
        $dis = 'disabled="disabled"';
    } else {
        $dis = '';
    }
    $diss = 'disabled="disabled"';
    $data .= '
	<!-- jQuery Dialog -->
    <div id="add-edit-goods-form" title="საქონელი">
    	<!-- aJax -->
	</div>
	<div id="dialog-form">
	<table width="100%" class="dialog-form-table">
        <tr>
            <td style="vertical-align: top; width: 180px;">
                <fieldset style="width: 180px;">
                	<legend>ძირითადი ინფორმაცია</legend>
                    <table class="dialog-form-table">
                		<tr>
                			<label for="req_num">ავტორი</label>
                			<label for="req_num">:</label>
                			<label for="req_num">' . $res['operator'] . '</label>
                		</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="task_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['phone'] . '" ' . $diss . '  />
            				</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="' . $res['name'] . '" ' . $dis . '/>
            				</td>
            			</tr>
            		    <tr>
							<td colspan="6" style="width: 180px;"><label for="d_number">სტატუსი</label></td>
						</tr>
			    		<tr>
							<td style="width: 180px;"><select style="width: 180px;" 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="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"' . $diss . '>' . $res['call_content'] . '</textarea>
            					</div>
            				</td>
            			</tr>			
            		</table>
            	</fieldset>
                <fieldset style="margin-top: 5px; width: 185px;">
                	<legend>დავალების ფორმირება</legend>
                    <table class="dialog-form-table">
            			<tr>
            				<td style="width: 180px;"><label for="d_number">პასუხისმგებელი პირი</label></td>
            			</tr>
            			<tr>
            				<td style="width: 180px;"><select style="width: 180px;" id="persons_id" class="idls object">' . 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="task_type_id" class="idls object">' . 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;">
            					<input type="text" style="width: 175px;" id="out_phone" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['task_phone'] . '" />
            				</td>
            			</tr>
            			<tr>
							<td style="width: 180px;"><label for="content">შინაარსი</label></td>
						</tr>
						<tr>
							<td colspan="6">	
								<textarea  style="width: 175px; 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: 180px;"><label for="content">პრობლემის გადაწყვეტა</label></td>
						</tr>
						<tr>
							<td colspan="6">	
								<textarea  style="width: 175px; resize: vertical;" id="comment" class="idle" name="call_content" cols="300" rows="2">' . $res['comment'] . '</textarea>
							</td>
						</tr>	
            		</table>
                </fieldset>
        	</td>
            <td style="vertical-align: top;">
            	<fieldset id="search" style="float: right; margin-top: 6px; margin-right: 4px;">
            </td>
        	<td style="vertical-align: top; width: 120px;">
                
                </fieldset>';
    $data .= '</div><div id="chanawerebi" style="float: right; width: 195px;">';
    $data .= GetRecordingsSection($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="ast_incomming_id" type="text" value="' . $res['ast_incomming_id'] . '" style="display: none;">
 		<input id="task_hidde_id" type="text" value="' . $res['id'] . '" style="display: none;">
    	    
    </div>';
    return $data;
}
예제 #13
0
function GetPage($res = '', $number)
{
    $num = 0;
    $disabled = '';
    $c_date = date('Y-m-d H:i:s');
    $user = $_SESSION['USERID'];
    if ($res[id] != '') {
        $res_row = mysql_fetch_assoc(mysql_query("SELECT persons.department_id,\r\n                                        \t             users.group_id\r\n                                        \t      FROM   users\r\n                                        \t      JOIN   persons ON persons.id=users.person_id\r\n                                        \t      WHERE  users.id={$user}"));
        if ($res_row[department_id] != 1 && $res_row[department_id] != 5) {
            $disabled = 'disabled="disabled"';
        }
    }
    if ($res[date] == "") {
        $date = $c_date;
    } else {
        $date = $res[date];
    }
    if ($res[date] == 0) {
        $diss = '';
        $diss1 = 'disabled="disabled"';
    } else {
        $diss = 'disabled="disabled"';
        $diss1 = '';
    }
    $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" ' . $diss1 . '>' . 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: 180px;"><label for="d_number">პრიორიტეტი</label></td>
						</tr>
			    		<tr>
							<td style="width: 240px;"><select style="width: 230px;" id="department_id" class="idls object" ' . $disabled . '>' . Getdepartment($res['department_id']) . '</select></td>
							<td style="width: 240px;"><select style="width: 230px;" id="task_type_id" class="idls object" ' . $disabled . '>' . Gettask_type($res['task_type_id']) . '</select></td>
							<td style="width: 180px;"><select style="width: 230px;" id="priority_id" class="idls object" ' . $disabled . '>' . Getpriority($res['priority_id']) . '</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">' . $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">' . $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;
}
예제 #14
0
function GetPage($res = '')
{
    $c_date = date('Y-m-d H:i:s');
    $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;" type="text" id="id" class="idle" onblur="this.className=\'idle\'"  value="' . ($res['id'] != '' ? $res['id'] : increment('task')) . '" />
										</td>
										<td style="width: 150px;">
											<input style="width: 150px;" type="text" id="cur_date" class="idle" onblur="this.className=\'idle\'"  value="' . ($res['date'] != '' ? $res['date'] : $c_date) . '" />
										</td>
										<td style="width: 200px;">
											<input style="float:left;" 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;" 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;" id="task_type_id" class="idls object">' . Gettask_type($res['task_type_id']) . '</select></td>
									    <td style="width: 220px;"><select style="width: 220px;" id="task_department_id" class="idls object">' . Getdepartment($res['department_id']) . '</select></td>
										<td style="width: 220px;"><select style="width: 217px;" id="priority_id" class="idls object">' . Getpersons($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  style="width: 99%; resize: none; height: 50px;" id="task_comment" class="idle" name="task_comment" cols="300" >' . $res['comment'] . '</textarea></td>
									</tr>
								</table>
                            </fieldset>';
    //if (Gettask_type($res['task_type_id']) == 1 && Gettask_type($res['task_type_id']) == 2) {
    $data .= '<fieldset id="additional" class="hidden">
    							    	<legend>კლიენტთა ბაზა</legend>
    									<table width="100%" class="dialog-form-table">
    									    <tr>
                                                <td>სცენარი</td>
    											<!--td style="text-align: right;">ფაილის ატვირთვა</td-->
    					   						<td style="text-align: right;">სატელეფონო ბაზა</td>
    									   </tr>
    										<tr>
    											<td style="width: 200px;"><select style="width: 200px;" id="template_id" class="idls object">' . Getscenar($res['template_id']) . '</select></td>
    											<!--td style="width: 100px;">
    											    <div class="file-uploader">
    									               <input id="choose_file" type="file" name="choose_file" class="input" style="display: none;">
    									               <button style="margin-right: 0px !important;" id="choose_button" class="center">აირჩიეთ ფაილი</button>
    									            </div>
    											</td-->
    											<td style="width: 100px;"><button style="margin-right: 0px !important;" id="choose_base" class="center">აირჩიეთ ბაზა</button>	</td>
    										</tr>
        								</table>
    													
    									<div id="dt_example" class="inner-table">
    							        <div style="width:100%;" id="container" >        	
    							            <div id="dynamic">
    							            	<div id="button_area">
    							            		<!--button id="add_button_pp">დამატება</button-->
    						        			</div>
    							                <table class="" id="example4" style="width: 100%;">
    							                    <thead>
    													<tr  id="datatable_header">
    							                           <th style="display:none">ID</th>
    														<th style="width:4%;">#</th>
    														<th style="width:%; word-break:break-all;">პირადი №<br>საიდ. კოდი</th>
    														<th style="width:%; word-break:break-all;">დასახელება</th>
    														<th style="width:%; word-break:break-all;">ფიზ / იურ.<br> პირი</th>
    														<th style="width:%; word-break:break-all;">ტელეფონი</th>
    														<th style="width:%; word-break:break-all;">ელ-ფოსტა</th>
    														<th style="width:%; word-break:break-all;">მისამართი</th>
    													</tr>
    												</thead>
    												<thead>
    													<tr class="search_header">
    														<th class="colum_hidden">
    					                            			<input type="text" name="search_id" value="" class="search_init" style="width: 10px"/>
    					                            		</th>
    														<th>
    															<input style="width:100px;" type="text" name="search_overhead" value="ფილტრი" class="search_init" />
    														</th>
    														<th>
    															<input style="width:100px;" type="text" name="search_partner" value="ფილტრი" class="search_init" />
    														</th>
    													<th>
    															<input style="width:100px;" type="text" name="search_partner" value="ფილტრი" class="search_init" />
    														</th>
    													<th>
    															<input style="width:100px;" type="text" name="search_partner" value="ფილტრი" class="search_init" />
    														</th>
    													<th>
    															<input style="width:100px;" type="text" name="search_partner" value="ფილტრი" class="search_init" />
    														</th>
    													<th>
    															<input style="width:100px;" type="text" name="search_partner" value="ფილტრი" class="search_init" />
    														</th>
    													</tr>
    												</thead>
    							                </table>
    							            </div>
    							            <div class="spacer">
    							            </div>
    							        </div>
								    </fieldset>';
    // }
    $data .= '
 					</table>
					</fieldset>
				</div>
		    </div>';
    $data .= '<input type="hidden" id="outgoing_call_id" value="' . $res['id'] . '" />';
    return $data;
}
예제 #15
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;
}
예제 #16
0
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="">თარიღი <span style="color:red; font-weight: bold; font-size: 120%">*</span></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" />
							</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">ტელეფონი <span style="color:red; font-weight: bold; font-size: 120%">*</span></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="' . $num . '" />
							</td>
							<td style="width: 69px;">
								<input type="text" id="person_name" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['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 class="calls">ნომრები</button>
							</td>
						</tr>				
					</table>
				</fieldset>
				<fieldset style="width:220px; float:left; margin-left:10px; height:75px;">
			    	<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" 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'] == '2' ? "checked" : "") . '><span style="margin-top:5px; display:block;"">იურიდიული</span></td>
						</tr>
					</table>
				</fieldset>
				<fieldset style="width:220px; float:left; margin-left:10px; height:85px;">
			    	<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_vote'] == '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_vote'] == '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_vote'] == '3' ? "checked" : "") . '><span style="margin-top:5px; display:block;"">ნეგატიური</span></td>
						</tr>
					</table>
				</fieldset>
				<fieldset style="width:752px; 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: 752px;" 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: 752px;" 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:370px; float:left;">
			    	<legend>მომართვის შინაარსი</legend>
					<table id="" class="dialog-form-table" width="350px">		
						<tr>
							<td style="width: 370px;"><select style="width: 368px;" id="content_id" class="idls object">' . Getcontent($res['content_id']) . '</select></td>
						</tr>
					</table>
				</fieldset>
				<fieldset style="width:350px; float:left; margin-left:10px;">
			    	<legend>პროდუქტი</legend>
					<table id="" class="dialog-form-table" width="350px">		
						<tr>
							<td style="width: 350px;"><select style="width: 350px;" id="product_id" class="idls object">' . Getproduct($res['product_id']) . '</select></td>
						</tr>
					</table>
				</fieldset>
				<fieldset style="width:755px; float:left;">
			    	<legend>გადამისამართება</legend>
					<table id="" class="dialog-form-table" width="230px">		
						<tr>
							<td style="width: 570px;"><label for="d_number">ქვე-განყოფილება</label></td>
							<td><label style="margin-left: 35px;" for="d_number">კავშირი</label></td>
						</tr>
						<tr>
							<td style="width: 250px;"><select style=" width: 570px;" id="forward_id" class="idls object">' . Getforward($res['forward_id']) . '</select></td>
							<td><input style="margin-left: 35px;" type="checkbox" id="connect" value="1" ' . ($res['connect'] == '1' ? "checked" : "") . '></td>
						</tr>
					</table>
				</fieldset>
				<fieldset style="width:400px; float:left;">
			    	<legend>შედეგი <span style="color:red; font-weight: bold; font-size: 120%">*</span></legend>
					<table id="" class="dialog-form-table" width="150px">	
						<tr>
							<td><select style="width: 400px;" id="results_id" class="idls object">' . Getresults($res['results_id']) . '</select></td>
						</tr>
					</table>
				</fieldset>
				<fieldset style="width:315px; float:left; margin-left: 10px;">
			    	<legend>შედეგის კომენტარი <span style="color:red; font-weight: bold; font-size: 120%">*</span></legend>
					<table id="" class="dialog-form-table" width="150px">	
						<tr>
							<td><textarea  style="width:317px; resize: none;" id="results_comment" class="idle" name="content" cols="300" >' . $res['results_comment'] . '</textarea></td>
						</tr>
					</table>
				</fieldset>
				<fieldset style="width:557px; float:left;">
			    	<legend>კომენტარი <span style="color:red; font-weight: bold; font-size: 120%">*</span></legend>
					<table id="" class="dialog-form-table" width="150px">	
						<tr>
							<td><textarea  style="width: 750px; resize: none;" id="content" class="idle" name="content" cols="300" >' . $res['content'] . '</textarea></td>
						</tr>
					</table>
				</fieldset>
				';
    $data .= '
		   
				<fieldset style="margin-top: 5px;">
			    	<legend>დავალების ფორმირება</legend>
		
			    	<table class="dialog-form-table">
						<tr>
							<td style="width: 280px;"><label for="d_number">დავალების ტიპი</label></td>
							<td style="width: 280px;"><label for="d_number">სცენარი</label></td>
							<td style="width: 280px;"><label for="d_number">პრიორიტეტი</label></td>
						</tr>
			    		<tr>
							<td style="width: 280px;" id="task_type_change"><select style="width: 230px;" id="task_type_id" class="idls object">' . Gettask_type($res['task_type_id']) . '</select></td>
							<td style="width: 280px;"><select style="width: 230px;" id="task_department_id" class="idls object">' . Getdepartment($res['task_department_id']) . '</select></td>
							<td style="width: 280px;"><select style="width: 230px;" id="persons_id" class="idls object">' . Getpersons($res['persons_id']) . '</select></td>
						</tr>
						<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  style="width: 747px; resize: none;" id="comment" class="idle" name="content" cols="300" rows="2">' . $res['comment'] . '</textarea>
							</td>
						</tr>
					</table>
		        </fieldset>
			</div>
			<div>
				  </fieldset>
			</div>
			<div style="float: right;  width: 355px;">
				 <fieldset>
					<legend>მომართვის ავტორი <span style="color:red; font-weight: bold; font-size: 120%">*</span></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_contragent" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['personal_contragent'] . '" />
							</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_addres" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['personal_addres'] . '" />		
							</td>
							<td td style="width: 180px;">
								<input type="text" id="personal_status" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['personal_status'] . '" />		
							</td>
						</tr>
					</table>
				</fieldset>';
    if (!empty($res[phone])) {
        $data .= GetRecordingsSection($res);
    }
    $data .= '</div>
			</div>
    </div>';
    return $data;
}
예제 #17
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;
}
예제 #18
0
function GetPage($res = '', $number)
{
    $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: 580px;">	
				<fieldset >
			    	<legend>ინფო</legend>
					<fieldset float:left;">
				    	<table width="100%" class="dialog-form-table">
							<tr>
								<td>დასახელება</td>
								<td style="width:20px;></td>
								
								<td colspan "5">
									<input  type="text" id="action_name" class="idle" onblur="this.className=\'idle\'"  value="' . $res['action_name'] . '"  />
								</td>
							</tr>
							<tr>
								<td style="width: 150px;"><label for="d_number">პერიოდი</label></td>
								<td>
									<input type="text" id="start_date" class="idle" onblur="this.className=\'idle\'" value="' . $res['start_date'] . '" />
								</td>
								<td style="width: 150px;"><label for="d_number">-დან</label></td>
								<td>
									<input type="text" id="end_date" class="idle" onblur="this.className=\'idle\'"  value="' . $res['end_date'] . '"  />
								</td>
								<td style="width: 150px;"><label for="d_number">-მდე</label></td>
							</tr>
						</table>
									
					</fieldset>
					<fieldset style="float: left; width: 400px;">
						<legend>აღწერა</legend>
				    		<table width="100%" class="dialog-form-table">
							<tr>
								<td colspan="5">
									<textarea  style="width: 530px; height: 100px; resize: none;" id="action_content" class="idle" name="content" cols="100" rows="2">' . $res['action_content'] . '</textarea>
								</td>
							</tr>		
							</table>
					</fieldset>	
								
					<!--fieldset>
			    	<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">' . Gettask_type($res['task_type_id']) . '</select></td>
							<td style="width: 180px;"><select id="task_department_id" class="idls object">' . Getdepartment($res['task_department_id']) . '</select></td>
							<td style="width: 180px;"><select id="persons_id" class="idls object">' . Getpriority($res['priority_id']) . '</select></td>
						</tr>
						<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  style="width: 530px; height: 80px; resize: none;" id="comment" class="idle" name="content" cols="100" rows="2">' . $res['comment'] . '</textarea>
							</td>
						</tr>
					</table>
		        </fieldset-->
			</div>
			<div style="float: right;  width: 360px;">
				</fieldset>
										
				<fieldset style="float: right;  width: 440px;">
					<legend>განყოფილებები</legend>
										
			<div id="dt_example" class="inner-table">
		        <div style="width:440px;" id="container" >        	
		            <div id="dynamic">
		            	<div id="button_area">
		            		<button id="" style="display:none;">დამატება</button>
	        			</div>
		                <table class="" id="example6" style="width: 100%;">
		                    <thead>
								<tr  id="datatable_header">
										
		                           <th style="display:none">ID</th>
									<th style="width:4%;">#</th>
									<th style="width:25%; word-break:break-all;">ფილიალი</th>
									<th style="width:20%; word-break:break-all;">მისამართი</th>
								</tr>
							</thead>
							<thead>
								<tr class="search_header">
									<th class="colum_hidden">
                            			<input type="text" name="search_id" value="" class="search_init" style="width: 10px"/>
                            		</th>
									<th>
										<input style="width:100px;" type="text" name="search_overhead" value="ფილტრი" class="search_init" />
									</th>
									<th>
										<input style="width:100px;" type="text" name="search_partner" value="ფილტრი" class="search_init" />
									</th>
								</tr>
							</thead>
		                </table>
		            </div>
		            <div class="spacer">
		            </div>
		        </div>

				</fieldset>
				
				<fieldset style="float: right;  width: 440px;">
					<legend>აქციის პროდუქტები</legend>
										
			<div id="dt_example" class="inner-table">
		        <div style="width:440px;" id="container" >        	
		            <div id="dynamic">
		            	<div id="button_area">
		            		<button id="" style="display:none;">დამატება</button>
	        			</div>
		                <table class="" id="example5" style="width: 100%;">
		                    <thead>
								<tr  id="datatable_header">
										
		                           <th style="display:none">ID</th>
									<th style="width:7%;">#</th>
									<th style="width:25%; word-break:break-all;">ფილიალი</th>
									<th style="width:20%; word-break:break-all;">თარიღი</th>
									<th style="width:35%; word-break:break-all;">პროდუქტი</th>
									<th style="width:13%; word-break:break-all;">თანხა</th>
								</tr>
							</thead>
							<thead>
								<tr class="search_header">
									<th class="colum_hidden">
                            			<input type="text" name="search_id" value="" class="search_init" style="width: 10px"/>
                            		</th>
									<th>
										<input style="width:70px;" type="text" name="search_overhead" value="ფილტრი" class="search_init" />
									</th>
									<th>
										<input style="width:65px;" type="text" name="search_partner" value="ფილტრი" class="search_init" />
									</th>
									<th>
										<input style="width:100px;" type="text" name="search_overhead" value="ფილტრი" class="search_init" />
									</th>
									<th>
										<input style="width:30px;" type="text" name="search_partner" value="ფილტრი" class="search_init" />
									</th>
									
								</tr>
							</thead>
		                </table>
		            </div>
		            <div class="spacer">
		            </div>
		        </div>

				</fieldset>
						<input type="hidden" id="action_id" value="' . $_REQUEST['id'] . '"/>
	  			
			</div>
    </div>';
    return $data;
}
예제 #19
0
function GetPage($res = '', $number)
{
    $num = 0;
    if ($res[phone] == "") {
        $num = $number;
    } else {
        $num = $res[phone];
    }
    $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: 400px;">	
				<fieldset >
			    	<legend>ძირითადი ინფორმაცია</legend>
					<fieldset style="width:300px; float:left;">
				    	<table width="100%" class="dialog-form-table">
							<tr>
								<td>ზედნადების #</td>
								<td>
									<input type="text" id="id" class="idle" onblur="this.className=\'idle\'" value="' . $res['id'] . '"/>
								</td>
							</tr>
							<tr>
								<td>ქვე-განყოფილება</td>
								<td>
									<input type="text" id="id" class="idle" onblur="this.className=\'idle\'" value="' . $res['id'] . '"/>
								</td>
							</tr>
							<tr>
								<td>საწყობი</td>
								<td>
									<input type="text" id="id" class="idle" onblur="this.className=\'idle\'" value="' . $res['id'] . '"/>
								</td>
							</tr>	
							<tr>
								<td>სხვა</td>
								<td>
									<input type="text" id="id" class="idle" onblur="this.className=\'idle\'" value="' . $res['id'] . '"/>
								</td>
							</tr>					
						</table>
					</fieldset>
					<fieldset style="width:300px; float:left; margin-left: 10px;">
				    	<table width="100%" class="dialog-form-table">
							<tr>
								<td>შეძენის თარიღი</td>
								<td>
									<input type="text" id="id" class="idle" onblur="this.className=\'idle\'"  value="' . $res['id'] . '"/>
								</td>
							</tr>
							<tr>
								<td>მიტანის თარიღი</td>
								<td>
									<input type="text" id="id" class="idle" onblur="this.className=\'idle\'" value="' . $res['id'] . '"/>
								</td>
							</tr>
							<tr>
								<td>მონტაჟის თარიღი</td>
								<td>
									<input type="text" id="id" class="idle" onblur="this.className=\'idle\'"  value="' . $res['id'] . '"/>
								</td>
							</tr>
							<tr>
								<td>სტატუსი</td>
								<td>
									<input type="text" id="id" class="idle" onblur="this.className=\'idle\'" value="' . $res['id'] . '"/>
								</td>
							</tr>						
						</table>
					</fieldset>						
											';
    $data .= '
		   
				<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">' . Gettask_type($res['task_type_id']) . '</select></td>
							<td style="width: 180px;"><select id="task_department_id" class="idls object">' . Getdepartment($res['task_department_id']) . '</select></td>
							<td style="width: 180px;"><select id="persons_id" class="idls object">' . Getpersons($res['persons_id']) . '</select></td>
						</tr>
						<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  style="width: 627px; height: 80px; resize: none;" id="comment" class="idle" name="content" cols="300" rows="2">' . $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>568919432</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;">ზაზა მესხი</td>
							<td style="width: 180px;">z.mesxi@yahoo.com</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;">ყვარლის 149</td>
							<td td style="width: 180px;">VIP კლიენტი</td>
						</tr>
					</table>
				</fieldset>
				<div id="additional_info">';
    if (!empty($res['personal_pin'])) {
        $data .= get_addition_all_info($res['personal_pin']);
    }
    $data .= '</div>
				<fieldset>
					<legend>შენაძენი</legend> 
					<table style="float: left; border: 1px solid #85b1de; width: 100%; text-align: center;">
						<tr style="border-bottom: 1px solid #85b1de;">
							<td style="border-right: 1px solid #85b1de; padding: 3px 9px; color: #3C7FB1;">#</td>
	  						<td style="border-right: 1px solid #85b1de; padding: 3px 9px; color: #3C7FB1;">ნომენკლატურა</td>
	  						<td style="border-right: 1px solid #85b1de; padding: 3px 9px; color: #3C7FB1;">ფასი</td>
	  						<td style="border-right: 1px solid #85b1de; padding: 3px 9px; color: #3C7FB1;">სხვა</td>
						</tr>
						<tr style="border-bottom: 1px solid #85b1de; ">
							<td style="border-right: 1px solid #85b1de; padding: 3px 9px; word-break:break-all">1</td>
	  						<td style="border-right: 1px solid #85b1de; padding: 3px 9px; word-break:break-all"></td>
	  						<td style="border-right: 1px solid #85b1de; padding: 3px 9px; word-break:break-all"></td>
	  						<td style="border-right: 1px solid #85b1de; padding: 3px 9px; word-break:break-all"></td>							
						</tr>						
					<table/>
	  				<table style="float: left; width: 100%; text-align: center;">
	  					<tr>
	  						<td style="width: 10%;"></td>
	  						<td style="text-align: right; width: 49%;">ჯამი</td>
	  						<td style="width: 20%;"></td>
	  						<td style="width: 20%;"></td>
	  					</tr>
	  				<table/>
				</fieldset>
	  			<fieldset>
					<legend>საუბრის ჩანაწერი</legend> 
	  				<table style="float: left; border: 1px solid #85b1de; width: 250px; text-align: center; margin-left:40px;">
						<tr style="border-bottom: 1px solid #85b1de;">
							<td style="border-right: 1px solid #85b1de; padding: 3px 9px; width:200px; color: #3C7FB1;">დრო</td>
	  						<td style="border-right: 1px solid #85b1de; padding: 3px 9px; width:200px; color: #3C7FB1;">ჩანაწერი</td>
						</tr>
						<tr style="border-bottom: 1px solid #85b1de; ">
							<td style="border-right: 1px solid #85b1de; padding: 3px 9px; word-break:break-all">10:05:12 AM</td>
	  						<td style="border-right: 1px solid #85b1de; padding: 3px 9px; word-break:break-all">მოსმენა</td>
	  					</tr>
					<table/>
				</fieldset>
			</div>
    </div>';
    return $data;
}
예제 #20
0
function GetPage($res = '', $shabloni)
{
    $num = 0;
    if ($res[phone] == "") {
        $num = $number;
    } else {
        $num = $res[phone];
    }
    $data .= '<div id="dialog-form">
							<div style="float: left; width: 710px;">
								<fieldset >
							    	<legend>ძირითადი ინფორმაცია</legend>
						
							    	<table width="65%" class="dialog-form-table">
										<tr>
											<td style="width: 180px;"><label for="">დავალების №</label></td>
											<td style="width: 180px;"><label for="">თარიღი</label></td>
										</tr>
										<tr>
											<td>
												<input type="text" id="id" class="idle" onblur="this.className=\'idle\'" disabled value="' . $res['id'] . '" disabled="disabled" />
											</td>
											<td>
												<input type="text" id="c_date" class="idle" onblur="this.className=\'idle\'" disabled  value="' . $res['date'] . '" disabled="disabled" />
											</td>		
										</tr>
									</table><br>
								
														
								<fieldset style="width:250px; float:left;">
							    	<legend>დავალების ტიპი</legend>
								<table class="dialog-form-table">
							    		<tr>
											<td><select style="width: 305px;" id="task_type_id_seller" disabled class="idls object">' . Gettask_type($res['task_type_id']) . '</select></td>
										</tr>
									</table>
								</fieldset>
								<fieldset style="width:340px; float:left; margin-left:10px;">
							    	<legend>სცენარის დასახელება</legend>
								<table class="dialog-form-table">
							    		<tr>
											<td><select style="width: 380px;" id="shabloni" disabled class="idls object">' . Getshablon('', $res['template_id']) . '</select></td>
										</tr>
									</table>
								</fieldset>
						        ';
    $test = Getshabl($res['template_id']);
    //$notes = array();
    //$a 	= 	array();
    for ($key = 1; $key < 23; $key++) {
        $rows1 = mysql_query("\tSELECT \tquest_id,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tnotes,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tqvota\r\n\t\t\t\t\t\t\t\t\t\t\t\tFROM \tshabloni\r\n\t\t\t\t\t\t\t\t\t\t\t\tWHERE \t`name`='{$test}' and quest_id='{$key}'");
        $row = mysql_fetch_assoc($rows1);
        $notes[] = array('id' => $row[quest_id], 'notes' => $row[notes], 'qvota' => $row[qvota]);
    }
    // სატელეფონო გაყიდვები დასაწყისი
    $data .= '
							<div id="quest">
						<div id="seller" class="' . ($notes[0][id] != "" ? "" : "dialog_hidden") . '" >
									<ul>
										<li style="margin-left:0;" id="0" onclick="seller(this.id)" class="seller_select">მისალმება</li>
										<li id="1" onclick="seller(this.id)" class="">შეთავაზება</li>
										<li id="2" onclick="seller(this.id)" class="">შედეგი</li>
									</ul>
									<div id="seller-0" >
									<fieldset style="width:97%;   float:left; overflow-y:scroll; max-height:400px;" class="' . ($notes[0][id] != "" ? "" : "dialog_hidden") . '">
									<fieldset style="width:97%;" >
								    	<legend>მისალმება</legend>
									<table class="dialog-form-table">
								    		<tr>
												<td><textarea  style="width: 680px; height:80px; resize: none;" id="content" disabled class="idle" name="content" cols="300" >' . $notes[0][notes] . '</textarea></td>
											</tr>
											<tr>
												<td style="text-align:right;"><span></span></td>
											</tr>
									</table>
									</fieldset>
									<table class="dialog-form-table" style="width:500px;">
								    		<tr>
												<td style="text-align:right;"><span>აქვს</span></td>
					  							<td><input type="radio" name="hello_quest" value="1" ' . ($res['hello_quest'] == '1' ? "checked" : "") . '></td>
					  							<td><span>(ვაგრძელებთ)</span></td>
					  						</tr>
											<tr>
												<td style="text-align:right;"><span>სურს სხვა დროს</span></td>
					  							<td><input type="radio" name="hello_quest" value="2" ' . ($res['hello_quest'] == '2' ? "checked" : "") . '></td>
					  							<td><span>(ვიფორმირებთ დავალებას)</span></td>
					  						</tr>
					  						<tr>
												<td style="text-align:right;"><span>არ სურს</span></td>
					  							<td><input type="radio" name="hello_quest" value="3" ' . ($res['hello_quest'] == '3' ? "checked" : "") . '></td>
					  							<td><span>(ვასრულებთ)</span></td>
					  						</tr>
									</table>
					  				<fieldset style="width:97%; float:left; ">
								    	<legend>კომენტარი</legend>
									<table class="dialog-form-table">
								    		<tr>
												<td><textarea  style="width: 680px; height:80px; resize: none;" id="hello_comment" class="idle" name="content" cols="300" >' . $res['hello_comment'] . '</textarea></td>
											</tr>
									</table>
									</fieldset>
											<button style="float:right; margin-top:10px;" onclick="seller(1)" class="next"> >> </button>
											<button style="float:right; margin-top:10px;" class="done">დასრულება</button>
									</fieldset>
									 </div>

														
														
									<div id="seller-1" class="dialog_hidden">
									<fieldset style="width:97%; float:left; overflow-y:scroll; max-height:400px;">
									<fieldset style="width:97%;" class="' . ($notes[1][id] != "" ? "" : "dialog_hidden") . '">
								    	<legend>შეთავაზება</legend>
									<table class="dialog-form-table">
								    		<tr>
												<td><textarea  style="width: 680px; height:80px; resize: none;" id="content" disabled class="idle" name="content" cols="300" >' . $notes[1][notes] . '</textarea></td>
											</tr>
											<tr>
												<td style="text-align:right;"><span></span></td>
											</tr>
									</table>
									</fieldset>
									<fieldset style="width:97%;" class="' . ($notes[2][id] != "" ? "" : "dialog_hidden") . '">
								    	<legend>პროდუქტი</legend>
									<div id="dt_example" class="inner-table">
								        <div style="width:100%;" id="container" >        	
								            <div id="dynamic">
								            	<div id="button_area">
								            		<button id="add_button_product">დამატება</button>
							        			</div>
								                <table class="" id="sub1" style="width: 100%;">
								                    <thead>
														<tr  id="datatable_header">
																
								                           <th style="display:none">ID</th>
															<th style="width:4%;">#</th>
															<th style="">პაკეტი</th>
															<th style="">ფასი</th>
															<th style="">აღწერილობა</th>
															<th style="">შენიშვნა</th>
														</tr>
													</thead>
													<thead>
														<tr class="search_header">
															<th class="colum_hidden">
						                            			<input type="text" name="search_id" value="" class="search_init" style="width: 10px"/>
						                            		</th>
															<th>
																<input style="width:100px;" type="text" name="search_overhead" value="ფილტრი" class="search_init" />
															</th>
															<th>
																<input style="width:100px;" type="text" name="search_partner" value="ფილტრი" class="search_init" />
															</th>
															<th>
																<input style="width:100px;" type="text" name="search_overhead" value="ფილტრი" class="search_init" />
															</th>
															<th>
																<input style="width:100px;" type="text" name="search_partner" value="ფილტრი" class="search_init" />
															</th>
														</tr>
													</thead>
								                </table>
								            </div>
								            <div class="spacer">
								            </div>
								        </div>
										<table class="dialog-form-table" style="margin-top:10px;">
								    		<tr>
												<td><textarea  style="width: 99%; height:80px; resize: none;" id="content" disabled class="idle" name="content" cols="300" >' . $notes[2][notes] . '</textarea></td>
											</tr>
											<tr>
												<td style="text-align:right;"><span></span></td>
											</tr>
										</table>
									</fieldset>
					  				<fieldset style="width:97%; float:left; " class="' . ($notes[3][id] != "" ? "" : "dialog_hidden") . '">
								    	<legend>საჩუქარი</legend>														
									<div id="dt_example" class="inner-table">
								        <div style="width:100%;" id="container" >        	
								            <div id="dynamic">
								            	<div id="button_area">
								            		<button id="add_button_gift">დამატება</button>
							        			</div>
								                <table class="" id="sub2" style="width: 100%;">
								                    <thead>
														<tr  id="datatable_header">
																
								                           <th style="display:none">ID</th>
															<th style="width:4%;">#</th>
															<th style="">პაკეტი</th>
															<th style="">ფასი</th>
															<th style="">აღწერილობა</th>
															<th style="">შენიშვნა</th>
														</tr>
													</thead>
													<thead>
														<tr class="search_header">
															<th class="colum_hidden">
						                            			<input type="text" name="search_id" value="" class="search_init" style="width: 10px"/>
						                            		</th>
															<th>
																<input style="width:100px;" type="text" name="search_overhead" value="ფილტრი" class="search_init" />
															</th>
															<th>
																<input style="width:100px;" type="text" name="search_partner" value="ფილტრი" class="search_init" />
															</th>
															<th>
																<input style="width:100px;" type="text" name="search_overhead" value="ფილტრი" class="search_init" />
															</th>
															<th>
																<input style="width:100px;" type="text" name="search_partner" value="ფილტრი" class="search_init" />
															</th>
														</tr>
													</thead>
								                </table>
								            </div>
								            <div class="spacer">
								            </div>
								        </div>
									<table class="dialog-form-table" style="margin-top:10px;">
								    		<tr>
												<td><textarea  style="width: 680px; height:80px; resize: none;" id="content" disabled class="idle" name="content" cols="300" >' . $notes[3][notes] . '</textarea></td>
											</tr>
											<tr>
												<td style="text-align:right;"><span></span></td>
											</tr>
									</table>
									</fieldset>
											<fieldset class="' . ($notes[20][id] != "" ? "" : "dialog_hidden") . '">
												<legend>ინფორმაცია</legend>
											<table class="dialog-form-table" style="width:250px; float:left;">
									    		<tr>
													<td style="text-align:right;">მოისმინა ბოლომდე</td>
													<td><input type="radio" name="info_quest" value="1" ' . ($res['info_quest'] == '1' ? "checked" : "") . '></td>
													
												</tr>
												<tr>
													<td style="text-align:right;">მოისმინა და კითხვები დაგვისვა</td>
													<td><input type="radio" name="info_quest" value="2" ' . ($res['info_quest'] == '2' ? "checked" : "") . '></td>		
												</tr>
												<tr>
													<td style="text-align:right;">შეგვაწყვეტინა</td>
													<td><input type="radio" name="info_quest" value="3" ' . ($res['info_quest'] == '3' ? "checked" : "") . '></td>
												</tr>
											</table>
											<table class="dialog-form-table" style="width:350px; float:left; margin-left: 15px;">
												<tr>
													<td>კომენტარი</td>
												</tr>
									    		<tr>
													<td><textarea  style="width: 100%; height:50px; resize: none;" id="info_comment" class="idle" name="content" cols="300" >' . $res['info_comment'] . '</textarea></td>
												</tr>
											</table>
											</fieldset>
											<button style="float:right; margin-top:10px;" onclick="seller(2)" class="next"> >> </button>
											<button style="float:right; margin-top:10px;" onclick="seller(0)" class="back"> << </button>
									
									</fieldset>
													
									 </div>
									 <div id="seller-2" class="dialog_hidden">
											<fieldset style="width:97%; float:left; overflow-y:scroll; max-height:400px;">
											<fieldset style="width:97%;" class="' . ($notes[4][id] != "" ? "" : "dialog_hidden") . '">
										    	<legend>შედეგი</legend>
											<table class="dialog-form-table">
										    		<tr>
														<td><textarea  style="width: 680px; height:80px; resize: none;" id="content" disabled class="idle" name="content" cols="300" >' . $notes[4][notes] . '</textarea></td>
													</tr>
													<tr>
														<td style="text-align:right;"><span></span></td>
													</tr>
											</table>
											<table class="dialog-form-table">
										    	<tr>
													<td style="text-align:right;"><span>დადებითი</span></td>
						  							<td><input type="radio" name="result_quest" value="1" ' . ($res['result_quest'] == '1' ? "checked" : "") . '></td>
						  							<td><span>(ვაგრძელებთ)</span></td>
						  						</tr>
												<tr>
													<td style="text-align:right;"><span>უარყოფითი</span></td>
						  							<td><input type="radio" name="result_quest" value="2" ' . ($res['result_quest'] == '2' ? "checked" : "") . '></td>
						  							<td><span>(ვასრულებთ)</span></td>
						  						</tr>
						  						<tr>
													<td style="text-align:right;"><span>მოიფიქრებს</span></td>
						  							<td><input type="radio" name="result_quest" value="3" ' . ($res['result_quest'] == '3' ? "checked" : "") . '></td>
						  							<td><span>(ვუთანხმებთ განმეორებითი ზარის დროს. ვიფორმირებთ დავალებას)</span></td>
						  						</tr>	
											</table>
						  					<table class="dialog-form-table">
										    		<tr>
						  								<td><span style="color:#649CC3">კომენტარი</span></td>
													</tr>
													<tr>
														<td><textarea  style="width: 400px; height:60px; resize: none;" id="content" class="idle" name="content" cols="300" >' . $res['result_comment'] . '</textarea></td>
														<td style="width:250px;text-align:right;"><button id="complete">დაასრულეთ</button></td>
													</tr>
											</table>
											</fieldset>
											
															
																
							  				<fieldset style="width:97%; float:left; " class="' . ($notes[5][id] != "" ? "" : "dialog_hidden") . '">
										    	<legend>მიწოდება</legend>
											<table class="dialog-form-table">
										    		<tr>
														<td><textarea  style="width: 680px; height:80px; resize: none;" id="content" disabled class="idle" name="content" cols="300" >' . $notes[5][notes] . '</textarea></td>
													</tr>
													<tr>
														<td style="text-align:right;"><span></span></td>
													</tr>
											</table>
											<table class="dialog-form-table">
										    		<tr>
														<td style="width:150px;">მიწოდება დაიწყება</td>
														<td>
															<input type="text" id="send_date" class="idle" onblur="this.className=\'idle\'"  value="' . $res['send_date'] . '" />
														</td>
														<td> -დან</td>
													</tr>
											</table>
											</fieldset>
											<fieldset style="width:97%; float:left; " class="' . ($notes[6][id] != "" ? "" : "dialog_hidden") . '">
										    	<legend>ანგარიშსწორება</legend>
											<table class="dialog-form-table">
										    		<tr>
														<td><textarea  style="width: 680px; height:80px; resize: none;" id="content" disabled class="idle" name="content" cols="300" >' . $notes[6][notes] . '</textarea></td>
													</tr>
													<tr>
														<td style="text-align:right;"><span></span></td>
													</tr>
											</table>
											<table class="dialog-form-table">
										    	<tr>
						  							<td><input type="radio" name="payment_quest" value="1" ' . ($res['payment_quest'] == '1' ? "checked" : "") . '></td>
						  							<td><span>ნაღდი</span></td>
						  						</tr>
												<tr>
						  							<td><input type="radio" name="payment_quest" value="2" ' . ($res['payment_quest'] == '2' ? "checked" : "") . '></td>
						  							<td><span>უნაღდო</span></td>
						  						</tr>
											</table>
						  					<table class="dialog-form-table">
										    		<tr>
						  								<td><span style="color:#649CC3">კომენტარი</span></td>
													</tr>
													<tr>
														<td><textarea  style="width: 680px; height:60px; resize: none;" id="content" class="idle" name="content" cols="300" >' . $res['payment_comment'] . '</textarea></td>
													</tr>
											</table>
											</fieldset>
													<button style="float:right; margin-top:10px;" class="done">დასრულება</button>
													<button style="float:right; margin-top:10px;" onclick="seller(1)" class="next"> << </button>
											</fieldset>		
									 </div>
									
							</div>';
    // სატელეფონო გაყიდვები დასასრული
    // სატელეფონო კვლევა დასაწყისი
    $data .= '<div id="research" class="' . ($notes[7][id] != "" ? "" : "dialog_hidden") . '">
									<ul>
										<li style="margin-left:0;" id="r0" onclick="research(this.id)" class="seller_select">შესავალი</li>
										<li id="r1" onclick="research(this.id)" class="">დემოგრაფიული ბლოკი</li>
										<li id="r2" onclick="research(this.id)" class="">ძირითადი ნაწილი</li>
									</ul>
									<div id="research-0">
									<fieldset style="width:97%; float:left; overflow-y:scroll; max-height:400px;">
									<fieldset style="width:97%;" class="' . ($notes[7][id] != "" ? "" : "dialog_hidden") . '">
								    	<legend>შესავალი</legend>
									<table class="dialog-form-table">
								    		<tr>
												<td><textarea  style="width: 680px; height:80px; resize: none;" id="content" class="idle" disabled name="content" cols="300" >' . $notes[7][notes] . '</textarea></td>
											</tr>
											<tr>
												<td style="text-align:right;"><span></span></td>
											</tr>
									</table>
									<table class="dialog-form-table" style="width:500px;">
								    		<tr>
												<td style="text-align:center;"><span>უარი მონაწილეობაზე</span></td>
					  							<td><input type="radio" name="preface_quest" value="1" ' . ($res['preface_quest'] == '1' ? "checked" : "") . '></td>
					  							<td><button class="done">დასრულება</button></td>
					  						</tr>
									</table>
									</fieldset>
									<table class="dialog-form-table" style="width:300px;">
								    		<tr>
												<td style="font-weight:bold;">თქვენი სახელი, როგორ მოგმართოთ?</td>
					  						</tr>
											<tr>
												<td><input type="text" style="width:100%;" id="preface_name" class="idle" onblur="this.className=\'idle\'"  value="' . $res['preface_name'] . '" /></td>
					  						</tr>
									</table>
											<button style="float:right; margin-top:10px;" onclick="research(\'r1\')" class="next"> >> </button>
									</fieldset>
									 </div>

											
									<div id="research-1" class="dialog_hidden">
									<fieldset style="width:97%; float:left; overflow-y:scroll; max-height:400px;">
									<fieldset style="width:97%;">
								    	<legend>დემოგრაფიული ბლოკი</legend>
														<div class="' . ($notes[8][id] != "" ? "" : "dialog_hidden") . '">
									<table class="dialog-form-table">
								    		<tr>
												<td style="width:30px; font-weight:bold;">D1</td>
												<td style="font-weight:bold;">თუ შეიძლება მითხარით, მუდმივად ცხოვრობთ თუ არა ამ მისამართზე?<br><span style="font-weight:normal;">(6 თვე მაინც უნდა ცხოვრებდეს)</span></td>
												<td></td>
											</tr>
									</table>
									<table class="dialog-form-table">
											<tr>
												<td style="width:50px;">დიახ</td>
												<td><input type="radio" name="d1" value="1" ' . ($res['d1'] == '1' ? "checked" : "") . '></td>
												<td style="width:150px; text-align:right;">დაიცავით ქვოტა</td>
											</tr>
											<tr>
												<td>არა</td>
												<td><input type="radio" name="d1" value="2" ' . ($res['d1'] == '2' ? "checked" : "") . '></td>
												<td style="width:150px; text-align:right;"><button style="" class="done">დაასრულეთ</button></td>
											</tr>
									</table>
									<table class="dialog-form-table" style="margin-top:10px;">
								    		<tr>
												<td><textarea  style="width: 680px; height:60px; resize: none;" id="content" class="idle" disabled name="content" cols="300" >' . $notes[8][notes] . '</textarea></td>
												
											</tr>
											<tr>
												<td style="text-align:right;"></td>
											</tr>
									</table>
									<hr>
														</div>
														
									<div class="' . ($notes[9][id] != "" ? "" : "dialog_hidden") . '">
									<table class="dialog-form-table">
								    		<tr>
												<td style="width:30px; font-weight:bold;">D2</td>
												<td style="font-weight:bold;">თუ შეიძლება მითხარით, ხომ არ მიგიღიათ მონაწილეობა რაიმე კვლევაში ბოლო 6 თვის განმავლობაში?</span></td>
												<td></td>
											</tr>
									</table>
									<table class="dialog-form-table">
											<tr>
												<td style="width:50px;">დიახ</td>
												<td><input type="radio" name="d2" value="1" ' . ($res['d2'] == '1' ? "checked" : "") . '></td>
												<td style="width:150px; text-align:right;">დაიცავით ქვოტა</td>
											</tr>
											<tr>
												<td>არა</td>
												<td><input type="radio" name="d2" value="2" ' . ($res['d2'] == '2' ? "checked" : "") . '></td>
												<td style="width:150px; text-align:right;"><button style="" class="done">დაასრულეთ</button></td>
											</tr>
									</table>
									<table class="dialog-form-table" style="margin-top:10px;">
								    		<tr>
												<td><textarea  style="width: 680px; height:60px; resize: none;" id="content" class="idle" disabled name="content" cols="300" >' . $notes[9][notes] . '</textarea></td>
												
											</tr>
											<tr>
												<td style="text-align:right;"></td>
											</tr>
									</table>
									<hr>
														</div>
														
									<div class="' . ($notes[10][id] != "" ? "" : "dialog_hidden") . '">
									<table class="dialog-form-table">
								    		<tr>
												<td style="width:30px; font-weight:bold;">D3</td>
												<td style="font-weight:bold;">გთხოვთ დამიზუსტოთ, თბილისის რომელ რაიონში ცხოვრობთ?</span></td>
												<td></td>
											</tr>
									</table>
									<table class="dialog-form-table">
											<tr>
												<td style="width:150px; text-align:right;">ვაკე-საბურთალო</td>
												<td><input type="radio" name="d3" value="1" ' . ($res['d3'] == '1' ? "checked" : "") . '></td>
												<td style="width:150px; text-align:right;">გლდანი-ნაძალადევი</td>
												<td><input type="radio" name="d3" value="2" ' . ($res['d3'] == '2' ? "checked" : "") . '></td>
												<td style="width:150px; text-align:right;">დაიცავით ქვოტა</td>
											</tr>
											<tr>
												<td style="width:150px; text-align:right;">დიდუბე-ჩუღურეთი</td>
												<td><input type="radio" name="d3" value="3" ' . ($res['d3'] == '3' ? "checked" : "") . '></td>
												<td style="width:150px; text-align:right;">ისანი-სამგორი</td>
												<td><input type="radio" name="d3" value="4" ' . ($res['d3'] == '4' ? "checked" : "") . '></td>
											</tr>
											<tr>
												<td style="width:150px; text-align:right;">ძვ.თბილისი</td>
												<td><input type="radio" name="d3" value="5" ' . ($res['d3'] == '5' ? "checked" : "") . '></td>
												<td style="width:150px; text-align:right;">ვდიდგორი</td>
												<td><input type="radio" name="d3" value="6" ' . ($res['d3'] == '6' ? "checked" : "") . '></td>
											</tr>
									</table>
									<table class="dialog-form-table" style="margin-top:10px;">
								    		<tr>
												<td><textarea  style="width: 680px; height:60px; resize: none;" id="content" class="idle" disabled name="content" cols="300" >' . $notes[10][notes] . '</textarea></td>
												
											</tr>
											<tr>
												<td style="text-align:right;"></td>
											</tr>
									</table>
									<hr>
												</div>
															
									<div class="' . ($notes[11][id] != "" ? "" : "dialog_hidden") . '">
									<table class="dialog-form-table">
								    		<tr>
												<td style="width:30px; font-weight:bold;">D4</td>
												<td style="font-weight:bold;">გთხოვთ მითხრათ, ხომ არ მუშაობთ თქვენ ან თქვენი ოჯახის წევრი, ახლობელი/მეგობარი </span></td>
												<td></td>
											</tr>
									</table>
									<table class="dialog-form-table">
											<tr>
												<td style="width:250px;">ტელევიზია (დაასრულეთ)</td>
												<td><input type="radio" name="d4" value="1" ' . ($res['d4'] == '1' ? "checked" : "") . '></td>
												<td style="width:150px; text-align:right;">დაიცავით ქვოტა</td>
											</tr>
											<tr>
												<td>რადიო (დაასრულეთ)</td>
												<td><input type="radio" name="d4" value="2" ' . ($res['d4'] == '2' ? "checked" : "") . '></td>
											</tr>
											<tr>
												<td>პრესა, ბეჭდვითი მედია (დაასრულეთ)</td>
												<td><input type="radio" name="d4" value="3" ' . ($res['d4'] == '3' ? "checked" : "") . '></td>
											</tr>
											<tr>
												<td>სარეკლამო  (დაასრულეთ)</td>
												<td><input type="radio" name="d4" value="4" ' . ($res['d4'] == '4' ? "checked" : "") . '></td>
											</tr>
											<tr>
												<td>კვლევითი კომპანია (დაასრულეთ)</td>
												<td><input type="radio" name="d4" value="5" ' . ($res['d4'] == '5' ? "checked" : "") . '></td>
												<td style="width:150px; text-align:right;"><button style="" class="done">დაასრულეთ</button></td>
											</tr>
											<tr>
												<td>არცერთი (გააგრძელეთ)</td>
												<td><input type="radio" name="d4" value="6" ' . ($res['d4'] == '6' ? "checked" : "") . '></td>
											</tr>
									</table>
									<table class="dialog-form-table" style="margin-top:10px;">
								    		<tr>
												<td><textarea  style="width: 680px; height:60px; resize: none;" id="content" class="idle" disabled name="content" cols="300" >' . $notes[11][notes] . '</textarea></td>
												
											</tr>
											<tr>
												<td style="text-align:right;"></td>
											</tr>
									</table>
									<hr>
												</div>
																
									<div class="' . ($notes[12][id] != "" ? "" : "dialog_hidden") . '">					
									<table class="dialog-form-table">
								    		<tr>
												<td style="width:30px; font-weight:bold;">D5</td>
												<td style="font-weight:bold;">სქესი</span></td>
												<td></td>
											</tr>
									</table>
									<table class="dialog-form-table">
											<tr>
												<td style="width:50px;">მამაკაცი</td>
												<td><input type="radio" name="d5" value="1" ' . ($res['d5'] == '1' ? "checked" : "") . '></td>
												<td style="width:150px; text-align:right;">დაიცავით ქვოტა</td>
											</tr>
											<tr>
												<td>ქალი</td>
												<td><input type="radio" name="d5" value="2" ' . ($res['d5'] == '2' ? "checked" : "") . '></td>
											</tr>
									</table>
									<table class="dialog-form-table" style="margin-top:10px;">
								    		<tr>
												<td><textarea  style="width: 680px; height:60px; resize: none;" id="content" class="idle" disabled name="content" cols="300" >' . $notes[12][notes] . '</textarea></td>
												
											</tr>
											<tr>
												<td style="text-align:right;"></td>
											</tr>
									</table>
									<hr>
														</div>
														
									<div class="' . ($notes[13][id] != "" ? "" : "dialog_hidden") . '">					
									<table class="dialog-form-table">
								    		<tr>
												<td style="width:30px; font-weight:bold;">D6</td>
												<td style="font-weight:bold;">ასაკი</span></td>
												<td></td>
											</tr>
									</table>
									<table class="dialog-form-table">
											<tr>
												<td style="width:50px; text-align:right;">12-17</td>
												<td><input type="radio" name="d6" value="1" ' . ($res['d6'] == '1' ? "checked" : "") . '></td>
												<td style="width:50px; text-align:right;">35-44</td>
												<td><input type="radio" name="d6" value="2" ' . ($res['d6'] == '2' ? "checked" : "") . '></td>
												<td style="width:150px; text-align:right;">დაიცავით ქვოტა</td>
											</tr>
											<tr>
												<td style="width:50px; text-align:right;">18-24</td>
												<td><input type="radio" name="d6" value="3" ' . ($res['d6'] == '3' ? "checked" : "") . '></td>
												<td style="width:50px; text-align:right;">45-54</td>
												<td><input type="radio" name="d6" value="4" ' . ($res['d6'] == '4' ? "checked" : "") . '></td>
											</tr>
											<tr>
												<td style="width:50px; text-align:right;">25-34</td>
												<td><input type="radio" name="d6" value="5" ' . ($res['d6'] == '5' ? "checked" : "") . '></td>
												<td style="width:50px; text-align:right;">55-65</td>
												<td><input type="radio" name="d6" value="6" ' . ($res['d6'] == '6' ? "checked" : "") . '></td>
												<td style="width:150px; text-align:right;"><button style="" class="done">დაასრულეთ</button></td>
											</tr>
											<tr>
												<td></td>
												<td></td>
												<td style="width:50px; text-align:right;">65 +</td>
												<td><input type="radio" name="d6" value="7" ' . ($res['d6'] == '7' ? "checked" : "") . '></td>
											</tr>
									</table>
									<table class="dialog-form-table" style="margin-top:10px;">
								    		<tr>
												<td><textarea  style="width: 680px; height:60px; resize: none;" id="content" class="idle" disabled name="content" cols="300" >' . $notes[13][notes] . '</textarea></td>
												
											</tr>
											<tr>
												<td style="text-align:right;"></td>
											</tr>
									</table>
									<hr>
													</div>
															
									<div class="' . ($notes[14][id] != "" ? "" : "dialog_hidden") . '">					
									<table class="dialog-form-table">
								    		<tr>
												<td style="width:30px; font-weight:bold;">D7</td>
												<td style="font-weight:bold;">ჩამოთვლილთაგან რომელი გამოხატავს ყველაზე უკეთ თქვენი ოჯახის მატერიალურ მდგომარეობას?</span></td>
												<td></td>
											</tr>
									</table>
									<table class="dialog-form-table">
											<tr>
												<td style="width:150px;">ძალიან დაბალი</td>
												<td><input type="radio" name="d7" value="1" ' . ($res['d7'] == '1' ? "checked" : "") . '></td>
												<td style="width:150px; text-align:right;">დაიცავით ქვოტა</td>
											</tr>
											<tr>
												<td>დაბალი</td>
												<td><input type="radio" name="d7" value="2" ' . ($res['d7'] == '2' ? "checked" : "") . '></td>
											</tr>
											<tr>
												<td>საშუალო</td>
												<td><input type="radio" name="d7" value="3" ' . ($res['d7'] == '3' ? "checked" : "") . '></td>
											</tr>
											<tr>
												<td>მაღალი</td>
												<td><input type="radio" name="d7" value="4" ' . ($res['d7'] == '4' ? "checked" : "") . '></td>
											</tr>
											<tr>
												<td>კძალიან მაღალი</td>
												<td><input type="radio" name="d7" value="5" ' . ($res['d7'] == '5' ? "checked" : "") . '></td>
											</tr>
									</table>
									<table class="dialog-form-table" style="margin-top:10px;">
								    		<tr>
												<td><textarea  style="width: 680px; height:60px; resize: none;" id="content" class="idle" disabled name="content" cols="300" >' . $notes[14][notes] . '</textarea></td>
												
											</tr>
											<tr>
												<td style="text-align:right;"></td>
											</tr>
									</table>
									<hr>
														</div>
														
									<div class="' . ($notes[15][id] != "" ? "" : "dialog_hidden") . '">					
									<table class="dialog-form-table">
								    		<tr>
												<td style="width:30px; font-weight:bold;">D8</td>
												<td style="font-weight:bold;">თუ შეიძლება მითხარით, რამდენ ლარს შეადგენს თქვენი ოჯახის ყოველთვიური შემოსავალი?</span></td>
												<td></td>
											</tr>
									</table>
									<table class="dialog-form-table">
											<tr>
												<td style="width:90px; text-align:right;">200 ლარამდე</td>
												<td><input type="radio" name="d8" value="1" ' . ($res['d8'] == '1' ? "checked" : "") . '></td>
												<td style="width:80px; text-align:right;">100-1500</td>
												<td><input type="radio" name="d8" value="2" ' . ($res['d8'] == '2' ? "checked" : "") . '></td>
												<td style="width:150px; text-align:right;">დაიცავით ქვოტა</td>
											</tr>
											<tr>
												<td style="width:80px; text-align:right;">200-500</td>
												<td><input type="radio" name="d8" value="3" ' . ($res['d8'] == '3' ? "checked" : "") . '></td>
												<td style="width:80px; text-align:right;">1500-2000</td>
												<td><input type="radio" name="d8" value="4" ' . ($res['d8'] == '4' ? "checked" : "") . '></td>
											</tr>
											<tr>
												<td style="width:80px; text-align:right;">500-1000</td>
												<td><input type="radio" name="d8" value="5" ' . ($res['d8'] == '5' ? "checked" : "") . '></td>
												<td style="width:80px; text-align:right;">2000+</td>
												<td><input type="radio" name="d8" value="6" ' . ($res['d8'] == '6' ? "checked" : "") . '></td>
											</tr>
											<tr>
												<td></td>
												<td></td>
												<td style="width:80px; text-align:right;">მპგ</td>
												<td><input type="radio" name="d8" value="7" ' . ($res['d8'] == '7' ? "checked" : "") . '></td>
											</tr>
									</table>
									<table class="dialog-form-table" style="margin-top:10px;">
								    		<tr>
												<td><textarea  style="width: 680px; height:60px; resize: none;" id="content" class="idle" disabled name="content" cols="300" >' . $notes[15][notes] . '</textarea></td>
												
											</tr>
											<tr>
												<td style="text-align:right;"></td>
											</tr>
									</table>
									<hr>
														</div>
														
									<div class="' . ($notes[16][id] != "" ? "" : "dialog_hidden") . '">					
									<table class="dialog-form-table">
								    		<tr>
												<td style="width:30px; font-weight:bold;">D9</td>
												<td style="font-weight:bold;">თუ შეიძლება მითხარით, რამდენ ლარს შეადგენს თქვენი პირადი ყოველთვიური შემოსავალი?</span></td>
												<td></td>
											</tr>
									</table>
									<table class="dialog-form-table">
											<tr>
												<td style="width:90px; text-align:right;">200 ლარამდე</td>
												<td><input type="radio" name="d9" value="1" ' . ($res['d9'] == '1' ? "checked" : "") . '></td>
												<td style="width:80px; text-align:right;">100-1500</td>
												<td><input type="radio" name="d9" value="2" ' . ($res['d9'] == '2' ? "checked" : "") . '></td>
												<td style="width:150px; text-align:right;">დაიცავით ქვოტა</td>
											</tr>
											<tr>
												<td style="width:80px; text-align:right;">200-500</td>
												<td><input type="radio" name="d9" value="3" ' . ($res['d9'] == '3' ? "checked" : "") . '></td>
												<td style="width:80px; text-align:right;">1500-2000</td>
												<td><input type="radio" name="d9" value="4" ' . ($res['d9'] == '4' ? "checked" : "") . '></td>
											</tr>
											<tr>
												<td style="width:80px; text-align:right;">500-1000</td>
												<td><input type="radio" name="d9" value="5" ' . ($res['d9'] == '5' ? "checked" : "") . '></td>
												<td style="width:80px; text-align:right;">2000+</td>
												<td><input type="radio" name="d9" value="6" ' . ($res['d9'] == '6' ? "checked" : "") . '></td>
											</tr>
											<tr>
												<td></td>
												<td></td>
												<td style="width:80px; text-align:right;">მპგ</td>
												<td><input type="radio" name="d9" value="7" ' . ($res['d9'] == '7' ? "checked" : "") . '></td>
											</tr>
									</table>
									<table class="dialog-form-table" style="margin-top:10px;">
								    		<tr>
												<td><textarea  style="width: 680px; height:60px; resize: none;" id="content" class="idle" disabled name="content" cols="300" >' . $notes[16][notes] . '</textarea></td>
												
											</tr>
											<tr>
												<td style="text-align:right;"></td>
											</tr>
									</table>
									<hr>
														</div>
														
									<div class="' . ($notes[17][id] != "" ? "" : "dialog_hidden") . '">					
									<table class="dialog-form-table">
								    		<tr>
												<td style="width:30px; font-weight:bold;">D10</td>
												<td style="font-weight:bold;">ხართ თუ არა დასაქმებული?</span></td>
												<td></td>
											</tr>
									</table>
									<table class="dialog-form-table">
											<tr>
												<td style="width:50px; text-align:right;">დიახ</td>
												<td><input type="radio" name="d10" value="1" ' . ($res['d10'] == '1' ? "checked" : "") . '></td>
												<td style="width:150px; text-align:right;">დაიცავით ქვოტა</td>
											</tr>
											<tr>
												<td style="width:50px; text-align:right;">არა</td>
												<td><input type="radio" name="d10" value="2" ' . ($res['d10'] == '2' ? "checked" : "") . '></td>
											</tr>
											
									</table>
									<table class="dialog-form-table" style="margin-top:10px;">
								    		<tr>
												<td><textarea  style="width: 680px; height:60px; resize: none;" id="content" class="idle" disabled name="content" cols="300" >' . $notes[17][notes] . '</textarea></td>
												
											</tr>
											<tr>
												<td style="text-align:right;"></td>
											</tr>
									</table>
									<hr>
														</div>
														
									<div class="' . ($notes[18][id] != "" ? "" : "dialog_hidden") . '">					
									<table class="dialog-form-table">
								    		<tr>
												<td style="width:30px; font-weight:bold;">D11</td>
												<td style="font-weight:bold;">თუ შეიძლება მითხარით, რა ტიპის ორგანიზაციაში მუშაობთ?</span></td>
												<td></td>
											</tr>
									</table>
									<table class="dialog-form-table">
											<tr>
												<td style="width:150px; text-align:right;">კერძო სექტორი</td>
												<td><input type="radio" name="d11" value="1" ' . ($res['d11'] == '1' ? "checked" : "") . '></td>
												<td style="width:150px; text-align:right;">თვითდასაქმებული</td>
												<td><input type="radio" name="d11" value="2" ' . ($res['d11'] == '2' ? "checked" : "") . '></td>
												<td style="width:150px; text-align:right;">დაიცავით ქვოტა</td>
											</tr>
											<tr>
												<td style="width:150px; text-align:right;">საჯარო სამსახური</td>
												<td><input type="radio" name="d11" value="3" ' . ($res['d11'] == '3' ? "checked" : "") . '></td>
												<td style="width:150px; text-align:right;">მპგ</td>
												<td><input type="radio" name="d11" value="4" ' . ($res['d11'] == '4' ? "checked" : "") . '></td>
											</tr>
											<tr>
												<td style="width:150px; text-align:right;">არასამთავრობო/td>
												<td><input type="radio" name="d11" value="5" ' . ($res['d11'] == '5' ? "checked" : "") . '></td>
											</tr>
									</table>
									<table class="dialog-form-table" style="margin-top:10px;">
								    		<tr>
												<td><textarea  style="width: 680px; height:60px; resize: none;" id="content" class="idle" disabled name="content" cols="300" >' . $notes[18][notes] . '</textarea></td>
												
											</tr>
											<tr>
												<td style="text-align:right;"></td>
											</tr>
									</table>
									<hr>
													</div>
															
									<div class="' . ($notes[19][id] != "" ? "" : "dialog_hidden") . '">					
									<table class="dialog-form-table">
								    		<tr>
												<td style="width:30px; font-weight:bold;">D12</td>
												<td style="font-weight:bold;">გყავთ თუ არა ავტომობილი</span></td>
												<td></td>
											</tr>
									</table>
									<table class="dialog-form-table">
											<tr>
												<td style="width:50px; text-align:right;">დიახ</td>
												<td><input type="radio" name="d12" value="1" ' . ($res['d12'] == '1' ? "checked" : "") . '></td>
												<td style="width:150px; text-align:right;">დაიცავით ქვოტა</td>
											</tr>
											<tr>
												<td style="width:50px; text-align:right;">არა</td>
												<td><input type="radio" name="d12" value="2" ' . ($res['d12'] == '2' ? "checked" : "") . '></td>
											</tr>
											
									</table>
									<table class="dialog-form-table" style="margin-top:10px;">
								    		<tr>
												<td><textarea  style="width: 680px; height:60px; resize: none;" id="content" class="idle" disabled name="content" cols="300" >' . $notes[19][notes] . '</textarea></td>
												
											</tr>
											<tr>
												<td style="text-align:right;"></td>
											</tr>
									</table>
									<hr>
														</div>
										<button style="float:right; margin-top:10px;" onclick="research(\'r2\')" class="next"> >> </button>
										<button style="float:right; margin-top:10px;" onclick="research(\'r0\')" class="back"> << </button>
									</fieldset>			
									</div>
														
									 <div id="research-2" class="dialog_hidden">
											<fieldset style="width:97%; float:left; overflow-y:scroll; max-height:400px;">
											<fieldset ' . ($notes[21][id] != "" ? "" : "dialog_hidden") . '>
										    	<legend>რადიო</legend>
											<table class="dialog-form-table">
										    		<tr>
														<td style="font-weight:bold; width:30px;">Q1</td>
														<td style="font-weight:bold; font-size:12px;">თუ შეიძლება, მე ჩამოგითვლით რადიოსადგურებს და თქვენ მიპასუხეთ, რომელ რადიოს უსმენდით გუშინ, თუნდაც მხოლოდ 5 წუთით? კიდევ, კიდევ.</td>
													</tr>
											</table>
											<table class="dialog-form-table">
										    	<tr>
													<td><span>რადიო 1</span></td>
						  							<td><input type="radio" name="q1" value="1" ' . ($res['q1'] == '1' ? "checked" : "") . '></td>
						  							<td style="width:180px; text-align:right;"><span>არ ვუსმენდი</span></td>
						  							<td><input type="radio" name="q1" value="2" ' . ($res['q1'] == '2' ? "checked" : "") . '></td>
						  						</tr>
												<tr>
													<td><span>რადიო 2</span></td>
						  							<td><input type="radio" name="q1" value="3" ' . ($res['q1'] == '3' ? "checked" : "") . '></td>
						  						</tr>
											</table>
						  					<table class="dialog-form-table">
										    	
													<tr>
														<td><textarea  style="width: 400px; height:60px; resize: none;" id="content" class="idle" name="content" cols="300" >' . $res['content'] . '</textarea></td>
														<td style="width:250px;text-align:right;"><button class="done">დაასრულეთ</button></td>
													</tr>
											</table>
											</fieldset>
											<button style="float:right; margin-top:10px;" onclick="research(\'r1\')" class="back"> << </button>
											
										</fieldset>
									 </div>
									
							</div>';
    $data .= '</div>';
    // სატელეფონო კვლევა დასასრული
    $data .= '<fieldset style="width:350px;; float:left;">
								    	<legend>ზარის დაზუსტება</legend>
									<table class="dialog-form-table">
								    		<tr>
												<td><textarea  style="width: 350px; height:70px; resize: none;" id="call_content" class="idle" name="content" cols="300" >' . $res['content'] . '</textarea></td>
											</tr>
									</table>
									</fieldset>	
									<fieldset style="width:300px;; float:left; margin-left:10px; max-height:90px;">
								    	<legend>სტატუსი</legend>
									<table class="dialog-form-table" style="height: 80px;">
											<tr>
												<td></td>
											</tr>
								    		<tr>
												<td><select style="width: 330px;" id="status" class="idls object">' . Getstatus($res['status']) . '</select></td>
											</tr>
									</table>
									</fieldset>
								<fieldset style="margin-top: 5px;">
								    	<legend>დავალების ფორმირება</legend>
							
								    	<table class="dialog-form-table" >
											<tr>
												<td style="width: 280px;"><label for="task_department_id">განყოფილება</label></td>
												<td style="width: 280px;"><label for="persons_id">პასუხისმგებელი პირი</label></td>
												<td style="width: 280px;"><label for="priority_id">პრიორიტეტი</label></td>
											</tr>
								    		<tr>
												<td><select style="width: 200px;"  id="task_department_id" class="idls object">' . Getdepartment($res['task_department_id']) . '</select></td>
												<td><select style="width: 200px;" id="persons_id" class="idls object">' . Getpersons($res['persons_id']) . '</select></td>
												<td><select style="width: 200px;" id="priority_id" class="idls object">' . Getpriority($res['priority_id']) . '</select></td>
											</tr>
											</table>
											<table class="dialog-form-table" style="width: 720px;">
											<tr>
												<td style="width: 150px;"><label>შესრულების პერიოდი</label></td>
												<td style="width: 150px;"><label></label></td>
												<td style="width: 150px;"><label>კომენტარი</label></td>
											</tr>
											<tr>
												<td><input style="width: 130px; float:left;" class="idle" type="text"><span style="margin-left:5px; ">დან</span></td>
										  		<td><input style="width: 130px; float:left;" class="idle" type="text"><span style="margin-left:5px; ">მდე</span></td>
												<td>
													<textarea  style="width: 270px; resize: none;" id="comment" class="idle" name="content" cols="300">' . $res['comment'] . '</textarea>
												</td>
											</tr>
										</table>
							        </fieldset>	
							</fieldset>	
							</div>';
    $data .= '<div style="float: right;  width: 355px;">
								  <fieldset>
									<legend>სასარგებლო ბმულები</legend>
									<table>
										<tr>
											<td style="width:90px; height:60px;"><a id="link1" target="_blank" href="http://www.biblusi.ge/"></a></td>
											<td style="width:90px; height:60px;"><a id="link2" target="_blank" href="http://www.palitral.ge/"></a></td>
											<td style="width:90px; height:60px;"><a id="link3" target="_blank" href="http://palitra.ge/"></a></td>
											<td style="width:60px; height:60px;"><a id="link4" target="_blank" href="http://www.salesland.ge/"></a></td>
										</tr>
									</table>
								</fieldset>
								<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="phone" disabled class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['phone'] . '" />
										</td>
										<td style="width: 180px;">
											<input type="text" id="person_n" disabled class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['person_n'] . '" />
										</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" disabled class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['first_name'] . '" />
										</td>
										<td style="width: 180px;">
											<input type="text" id="mail" disabled 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" disabled class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['city_id'] . '" /></td>	
										<td td style="width: 180px;">
											<input type="text" id="b_day" disabled 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>
										
									</tr>
									<tr>
										<td td style="width: 180px;">
											<input type="text" id="addres" disabled class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['addres'] . '" />		
										</td>
									</tr>
									
								</table>
							</fieldset>';
    $data .= GetRecordingsSection($res = '');
    $data .= '</div>
				    </div>';
    $data .= '<input type="hidden" id="outgoing_call_id" value="' . $res['id'] . '" />';
    return $data;
}
예제 #21
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;
}
예제 #22
0
function GetPage($res = '', $number)
{
    $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: 500px;">	
				<fieldset >
			    	<legend>საკონტაკტო ინფო</legend>
					<fieldset style="width:665px; float:left;">
				    	<table width="100%" class="dialog-form-table">
							<tr>
								<td>სტატუსი</td>
								<td>VIP კლიენტი</td>
								<td></td>
								<td></td>								
							</tr>
							<tr>
								<td>კონტრაგენტი</td>
								<td>
									<input type="text" id="name" class="idle" onblur="this.className=\'idle\'"  value="' . $res['name'] . '"  />
								</td>
								<td>მობილური 1</td>
								<td>
									<input type="text" id="mobile1" class="idle" onblur="this.className=\'idle\'"  value="' . $res['mobile1'] . '"  />
								</td>
											
							</tr>
							<tr>
								<td>იურ. სტატუსი</td>
								<td>
									<input type="text" id="legal_status" class="idle" onblur="this.className=\'idle\'"  value="' . $res['legal_status_id'] . '" />
								</td>
								<td>მობილური 2</td>
								<td>
									<input type="text" id="mobile2" class="idle" onblur="this.className=\'idle\'"  value="' . $res['mobile2'] . '"  />
								</td>
										
							</tr>	
							<tr>
								<td>პირადი ნომერი</td>
								<td>
									<input type="text" id="id" class="idle" onblur="this.className=\'idle\'"  value="' . $res['id'] . '"  />
								</td>
								<td>ტელეფონი</td>
								<td>
									<input type="text" id="id" class="idle" onblur="this.className=\'idle\'"  value="' . $res['id'] . '"  />
								</td>		
							</tr>
							<tr>
								<td>დაბ. თარიღი</td>
								<td>
									<input type="text" id="id" class="idle" onblur="this.className=\'idle\'"  value="' . $res['id'] . '"  />
								</td>
								<td>ელ-ფოსტა</td>
								<td>
									<input type="text" id="id" class="idle" onblur="this.className=\'idle\'"  value="' . $res['id'] . '"  />
								</td>
							</tr>					
						</table>
					</fieldset>
					<fieldset style="width:665px; float:left;">
						<legend>მისამართი</legend>
				    	<table width="100%" class="dialog-form-table">
							<tr>
								<td style="font-weight:bold;">იურიდიული</td>
								<td></td>
								<td style="font-weight:bold;">ფაქტიური</td>
								<td></td>
							</tr>
							<tr>
								<td>მისამართი</td>
								<td>
									<input type="text" id="id" class="idle" onblur="this.className=\'idle\'"  value="' . $res['id'] . '"  />
								</td>
								<td>მისამართი</td>
								<td>
									<input type="text" id="id" class="idle" onblur="this.className=\'idle\'"  value="' . $res['id'] . '"  />
								</td>			
							</tr>
							<tr>
								<td>ქალაქი</td>
								<td>
									<input type="text" id="id" class="idle" onblur="this.className=\'idle\'"  value="' . $res['id'] . '"  />
								</td>
								<td>ქალაქი</td>
								<td>
									<input type="text" id="id" class="idle" onblur="this.className=\'idle\'"  value="' . $res['id'] . '"  />
								</td>			
							</tr>	
							<tr>
								<td>საფოსტო კოდი</td>
								<td>
									<input type="text" id="id" class="idle" onblur="this.className=\'idle\'"  value="' . $res['id'] . '"  />
								</td>
								<td>საფოსტო კოდი</td>
								<td>
									<input type="text" id="id" class="idle" onblur="this.className=\'idle\'"  value="' . $res['id'] . '"  />
								</td>			
							</tr>
							<tr>
								<td></td>
								<td></td>
								<td>კოპირება</td>
								<td>
									<input type="checkbox" value="">
								</td>
							</tr>					
						</table>
						</fieldset>					
					';
    $data .= '
		   
				<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">' . Gettask_type($res['task_type_id']) . '</select></td>
							<td style="width: 180px;"><select id="task_department_id" class="idls object">' . Getdepartment($res['task_department_id']) . '</select></td>
							<td style="width: 180px;"><select id="persons_id" class="idls object">' . Getpersons($res['persons_id']) . '</select></td>
						</tr>
						<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  style="width: 627px; height: 80px; resize: none;" id="comment" class="idle" name="content" cols="300" rows="2">' . $res['comment'] . '</textarea>
							</td>
						</tr>
					</table>
		        </fieldset>
			</div>
			<div>
				  </fieldset>
			</div>
			<div style="float: right; width: 450px;">
				<fieldset>
				<legend>საჩუქრები</legend>
				<div id="dt_example" class="inner-table">
		        <div style="width:440px;" id="container" >        	
		            <div id="dynamic">
		            	<div id="button_area">
		            		<button id="add_button_p">დამატება</button>
	        			</div>
		                <table class="" id="examplee" style="width: 100%;">
		                    <thead>
								<tr  id="datatable_header">
										
		                           <th style="display:none">ID</th>
									<th style="width:9%;">#</th>
									<th style=" word-break:break-all;">თარიღი</th>
									<th style=" word-break:break-all;">პროდუქტი</th>
									<th style=" word-break:break-all;">თანხა</th>
								</tr>
							</thead>
							<thead>
								<tr class="search_header">
									<th class="colum_hidden">
                            			<input type="text" name="search_id" value="ფილტრი" class="search_init" style="width: 20px"/>
                            		</th>
									<th>
										<input style="width:100px;" type="text" name="search_overhead" value="ფილტრი" class="search_init" />
									</th>
									<th>
										<input style="width:100px;" type="text" name="search_partner" value="ფილტრი" class="search_init" />
									</th>
									<th>
										<input style="width:100px;" type="text" name="search_overhead" value="ფილტრი" class="search_init" />
									</th>
									
									
								</tr>
							</thead>
		                </table>
		            </div>
		            <div class="spacer">
		            </div>
		        </div>
				</fieldset>
				<div id="additional_info">';
    if (!empty($res['personal_pin'])) {
        $data .= get_addition_all_info($res['personal_pin']);
    }
    $data .= '</div>
				<fieldset style="width: 440px;">
					<legend>შენაძენი</legend> 
					<table style="float: left; border: 1px solid #85b1de; width: 100%; text-align: center;">
						<tr style="border-bottom: 1px solid #85b1de;">
							<td style="border-right: 1px solid #85b1de; padding: 3px 9px; color: #3C7FB1;">#</td>
	  						<td style="border-right: 1px solid #85b1de; padding: 3px 9px; color: #3C7FB1;">ფილიალი</td>
	  						<td style="border-right: 1px solid #85b1de; padding: 3px 9px; color: #3C7FB1;">თარიღი</td>
	  						<td style="border-right: 1px solid #85b1de; padding: 3px 9px; color: #3C7FB1;">პროდუქტი</td>
	  						<td style="border-right: 1px solid #85b1de; padding: 3px 9px; color: #3C7FB1;">თანხა</td>
						</tr>
						<tr style="border-bottom: 1px solid #85b1de; ">
							<td style="border-right: 1px solid #85b1de; padding: 3px 9px; word-break:break-all">1</td>
	  						<td style="border-right: 1px solid #85b1de; padding: 3px 9px; word-break:break-all"></td>
	  						<td style="border-right: 1px solid #85b1de; padding: 3px 9px; word-break:break-all"></td>
	  						<td style="border-right: 1px solid #85b1de; padding: 3px 9px; word-break:break-all"></td>	
	  						<td style="border-right: 1px solid #85b1de; padding: 3px 9px; word-break:break-all"></td>		
						</tr>						
					<table/>
				</fieldset>
	  			<fieldset style="width: 440px;">
					<legend>საუბრის ჩანაწერი</legend> 
	  				<table style="float: left; border: 1px solid #85b1de; width: 250px; text-align: center; margin-left:100px;">
						<tr style="border-bottom: 1px solid #85b1de;">
							<td style="border-right: 1px solid #85b1de; padding: 3px 9px; width:200px; color: #3C7FB1;">დრო</td>
	  						<td style="border-right: 1px solid #85b1de; padding: 3px 9px; width:200px; color: #3C7FB1;">ჩანაწერი</td>
						</tr>
						<tr style="border-bottom: 1px solid #85b1de; ">
							<td style="border-right: 1px solid #85b1de; padding: 3px 9px; word-break:break-all">10:05:12 AM</td>
	  						<td style="border-right: 1px solid #85b1de; padding: 3px 9px; word-break:break-all">მოსმენა</td>
	  					</tr>
					<table/>
				</fieldset>
			</div>
    </div>';
    return $data;
}
예제 #23
0
function GetPage($res = '', $number)
{
    $c_date = date('Y-m-d H:i:s');
    $num = 0;
    if ($res[source] == "") {
        $num = $number;
    } else {
        $num = $res[source];
    }
    if ($res[date] == "") {
        $date = $c_date;
    } else {
        $date = $res[date];
    }
    if ($res[id] == "") {
        $incr = increment('incomming_call');
    } else {
        $incr = $res[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']}");
    $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="call_date" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField date\'" value="' . $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">კატეგორია       <span style="color: #FA0000;">*</span></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="category_id" class="idls object">' . Getcategory($res['call_category_id']) . '</select></td>
							<td style="width: 180px;"><select id="category_parent_id" class="idls object">' . Getcategory1_edit($res['call_subcategory_id'], $res['call_category_id']) . '</select></td>
							<td style="width: 180px;"></td>
							<td ></td>
						</tr>
					</table>
						<tr style="margin-top: 20px;">
							<td style="width: 180px; "><label for="content">დამატებითი ინფორმაცია</label></td>
						</tr>
						<tr>
							
							<td colspan="6">
								<div id="content">		
								<textarea  style="width: 641px; resize: vertical; margin-top: 5px;" id="call_content" class="idle" name="call_content" cols="300" rows="2">' . $res['call_content'] . '</textarea>
								</div>
							</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;"><select id="persons_id" class="idls object">' . Getpersons($res['responsible_user_id']) . '</select></td>
							<td style="width: 180px;"><select id="task_type_id" class="idls object">' . Gettask_type($res['task_type_id']) . '</select></td>
							<td style="width: 180px;">
								<input type="text" id="out_phone" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" 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: vertical;" id="problem_coment" class="idle" name="call_content" cols="300" rows="2">' . $res['problem_comment'] . '</textarea>
							</td>
						</tr>	
					</table>
		        </fieldset>
				
			</div>
			<div style="float: left; margin-left: 5px; width: 190px;">
				 <fieldset>
					<legend>მომართვის ავტორი</legend>
					<table style="height: 190px;">
						<tr>
							<td style="width: 180px;">რეგიონი <span style="color: #FA0000;">*</span></td>
						</tr>
						<tr>
							<td style="width: 180px;"><select id="region_id" class="idls object">' . Get_region($res['region_id']) . '</select></td>
						</tr>
						<tr>
							<td style="width: 180px;">ქალაქი</td>
						</tr>
						<tr>
							<td style="width: 180px;"><select id="sity_id" class="idls object">' . Get_city_edit($res['city_id'], $res['region_id']) . '</select></td>
						</tr>
						<tr>
							<td style="width: 180px;">DY კოდი</td>
						</tr>
						<tr>
							<td style="width: 180px;">
								<input type="text" id="DY_code" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['DY_code'] . '"/>
							</td>
						</tr>
					</table>
				</fieldset>
				<div id="additional_info">';
    $data .= '</div>';
    $data .= GetRecordingsSection($res);
    $data .= '	<fieldset style="display: inline-flex; width: 168px;">
					<legend>ფაილი</legend> 
					<table style="float: left; border: 1px solid #85b1de; width: 168px; 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: left; border: 1px solid #85b1de; width: 168px; text-align: center;">
			          <tr style="border-bottom: 1px solid #85b1de;">
			           <td colspan="3">მიმაგრებული ფაილი</td>
			          </tr>
				</table>
				<table id="file_div" style="float: left; border: 1px solid #85b1de; width: 168px; 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;">
	 		<input id="sms_inc_increm_id" type="text" value="' . $incr . '" style="display: none;">
	 		<input id="send_male_status" type="text" value="true" style="display: none;">
	 		
    </div>';
    return $data;
}
예제 #24
0
function GetPage($res = '', $number)
{
    $c_date = date('Y-m-d H:i:s');
    $num = 0;
    if ($res[phone] == "") {
        $num = $number;
    } else {
        $num = $res[phone];
    }
    $increm = mysql_query("\tSELECT  `name`,\n                    \t            `rand_name`,\n                    \t            `id`\n                    \t    FROM \t`file`\n                    \t    WHERE   `incomming_call_id` = {$res['id']}\n                    \t    ");
    $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" />
							</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="' . $num . '"  />
							</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>
							</td>
						</tr>
						<tr>
							
							<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" : "") . ' 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" : "") . ' 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:756px; float:left;">
			    	<legend>ინფორმაცია</legend>
					<table id="" class="dialog-form-table" width="500px">
					  	<tr>
					  		<td style="width: 600px;">
					  		    <label style="float:left; margin-top:7px; margin-right:5px;">სრულწლოვანი (18)</label>
					  		    <input style="float:left;" type="radio" name="status_1" value="1" ' . ($res['status_1'] == '1' ? "checked" : "") . '><span style="margin-top:8px; display:block; float: left;"">კი</span>
					  		    <input style="float:left;" type="radio" name="status_1" value="2" ' . ($res['status_1'] == '2' ? "checked" : "") . '><span style="margin-top:8px; display:block; float: left;"">არა</span>
					  		</td>
					  		<td style="width: 400px;">
					  		    <label style="float:left; margin-top:7px; margin-right:5px;">მწეველი</label>
					  		    <input style="float:left;" type="radio" name="status_2" value="1" ' . ($res['status_2'] == '1' ? "checked" : "") . '><span style="margin-top:8px; display:block; float: left;"">კი</span>
					  		    <input style="float:left;" type="radio" name="status_2" value="2" ' . ($res['status_2'] == '2' ? "checked" : "") . '><span style="margin-top:8px; display:block; float: left;"">არა</span>
					  		</td>
					  	</tr>
					</table>
				</fieldset>
				
				
				<fieldset style="width: 400px; float:left;">
					<legend>ზარის დაზუსტება</legend>
					<table id="" class="dialog-form-table" width="150px">
						<tr>
							<td><textarea  style="width: 400px; height: 50px;" 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 style="width: 334px; float:left;">
					   <legend>ტაგები</legend>
							    <div  id="tree">
				    ' . GetTree() . '
				        </div>
				</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;
}
function GetPage($res = '')
{
    $data = '
	<div id="dialog-form">
	    <fieldset>
	    	<legend>ძირითადი ინფორმაცია</legend>
                <table class="dialog-form-table">
    				<tr>
    					<td style="width: 115px;">
    	                    <label for="CallType">დავალების ტიპი</label>
    	                </td>
    	                <td>
    						<select style="width: 231px;" id="task_type_id" >' . Gettask_type($res['task_type_id']) . '</select>
    					</td>
    				</tr>
    			</table>
    			<!-- ID -->
		        <input type="hidden" id="dep_det_id" value="' . $res['id'] . '" />
		</fieldset>
	    
       
	

    </div>
					
    ';
    return $data;
}