function GetResoniblePersonPage()
{
    $data = '
		<div id="dialog-form">
			<fieldset>
				<legend>ძირითადი ინფორმაცია</legend>
				<table width="100%" class="dialog-form-table" cellpadding="10px" >
					<tr>
						<th><label for="responsible_person">პასუხისმგებელი პირი</label></th>
					</tr>
					<tr>
						<th>
							<select style="width: 230px;" id="responsible_person" class="idls address">' . GetPersons() . '</select>
						</th>
					</tr>
					<tr>
						<th><label for="raodenoba">რაოდენობა</label></th>
					</tr>
					<tr>
						<th>
							<input type="text" id="raodenoba" class="idls address" value="" onkeypress="return event.charCode >= 48 && event.charCode <= 57">
						</th>
					</tr>
					<tr>
						<th><label for="shenishvna">შენიშვნა</label></th>
					</tr>
					<tr>
						<th>
							<select style="width: 230px;" id="shenishvna" class="idls object">' . GetShenishvna() . '</select>
						</th>
					</tr>
					<tr>
						<th><label for="shenishvna">წყარო</label></th>
					</tr>
					<tr>
						<th>
							<select style="width: 230px;" id="wyaro" class="idls object">' . GetWyaro() . '</select>
						</th>
					</tr>
				</table>
			</fieldset>
		</div>';
    return $data;
}
Beispiel #2
0
function GetCalientCallPage($id)
{
    if ($id == '') {
        $res['id'] = GetLocalID();
    } else {
        $res = GetCall($id);
    }
    $data = '
	<div id="dialog-form">
	    <fieldset>
	    	<legend>ძირითადი ინფორმაცია</legend>
    		<table class="dialog-form-table">
				<tr>
					<td style="width: 170px;"><label for="client_object">კლიენტი</label></td>
					<td>
						<div class="seoy-row" id="client_object_seoy">
							<input type="text" id="client_object" class="idle seoy-large" onblur="this.className=\'idle seoy-large\'" onfocus="this.className=\'activeField seoy-large\'" value="' . $res['client'] . '" />
							<button id="client_object_btn" class="combobox">client_object</button>
						</div>
					</td>
				</tr>		
				<tr>
					<td style="width: 170px;"><label for="per_contact_person">საკონტაქტო პირი</label></td>
					<td>
						<select id="persons" class="idls date_time" style="width: 165px !important;">' . GetPersons($res['id']) . '</select>
					</td>
				</tr>	
																			
				<tr>
					<td style="width: 170px;"><label for="per_phone_number">ტელ. ნომერი</label></td>
					<td>
						<input type="text" id="per_phone_number" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['phone'] . '" />
					</td>
				</tr>
				<tr>
					<td style="width: 170px;"><label for="per_mail">ელ-ფოსტა</label></td>
					<td>
						<input type="text" id="per_mail" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['mail'] . '" />
					</td>
				</tr>
				<tr>
					<td style="width: 170px;"><label for="service_degree">მომსახურების დონე</label></td>
					<td>
						<select id="service_degree" class="idls date_time" style="width: 165px !important;">' . GetServiceDegree($res['degree_type']) . '</select>
					</td>
				</tr>
				<tr>
					<td style="width: 170px;" valign="top"><label for="call_date">თარიღი</label></td>								
					<td><input id="call_date" type="text" class="idle date_time" onblur="this.className=\'idle date_time\'" onfocus="this.className=\'activeField date_time\'" value="' . $res['call_date'] . '" /></td>
				</tr>	
				<tr class="comment">
					<td style="width: 170px;" valign="top"><label for="per_comment">შენიშვნა</label></td>
					<td>
						<textarea id="per_comment" class="idle large" cols="40" rows="3">' . $res['comment'] . '</textarea>
					</td>
				</tr>
			</table>
			<!-- ID -->
			<input type="hidden" id="servise_degree_id" value="' . $res['id'] . '" />
			<input type="hidden" id="client_name" value="" />
        </fieldset>
    </div>';
    return $data;
}
function GetPage($res = '')
{
    $data = '
	<!-- jQuery Dialog -->
    <div id="add-edit-prod-form" class="form-dialog" title="პროდუქტი">
    	<!-- aJax -->
	</div>
	<div id="dialog-form">
			
	    <fieldset>
	    	<legend>ძირითადი ინფორმაცია</legend>
			<table border="0" width="100%">
				<tr>
					<th><label for="persom">აღმწერი პირი</label></th>
					<th><label for="object">აღმწერის ობიექტი</label></th>
				</tr>
				<tr>
					<th align="center">
						<select id="person" class="idls address">' . GetPersons($res['person_id']) . '</select>
						
					</th>
					<th>
						<select id="object" class="idls address">' . GetObject($res['object_id']) . '</select>
					</th>
				</tr>				
			</table>
        </fieldset>

		<fieldset>
	    	<legend>პროდუქტი</legend>	
			<div id="button_area">
        		<button id="add_button1">დამატება</button><button id="del_button1">წაშლა</button>
        	</div>			
			<td>		
			    <div id="dt_example" class="ex_highlight_row">
			        <div id="container" style="width:550px;">
			            <div id="dynamic" style="overflow-x: none !important;">
			                <table class="display" id="prod_list" style="width: 550px;">
			                    <thead>
			                        <tr id="datatable_header">
			                            <th>ID</th>
			                            <th style="width: 297px !important;">პროდუქტი</th>
			                            <th style="width: 100px !important;">რაოდ.ა</th>
			                            <th style="width: 100px !important;">რეალ. რაოდ.</th>
										<th class="check"></th>
			                        </tr>
			                    </thead>
			                </table>
		                </div>
		            </div>
			    </div>
			</td>
		</fieldset>

		<input type="hidden" id="describe_id" value="' . $res['id'] . '" />
		<input type="hidden" id="describe_status" value="' . $res['status'] . '" />				
    </div>    
    ';
    return $data;
}
function GetResoniblePersonPage()
{
    $data = '
		<div id="dialog-form">
			<fieldset>
				<legend>ძირითადი ინფორმაცია</legend>
				<table width="100%" class="dialog-form-table" cellpadding="10px" >
					<tr>
						<th><label for="responsible_person">პასუხისმგებელი პირი</label></th>
					</tr>
					<tr>
						<th>
							<select id="responsible_person" class="idls address">' . GetPersons() . '</select>
						</th>
					</tr>
				</table>
			</fieldset>
		</div>';
    return $data;
}