Example #1
0
function CreateOrderHead($order, $MKZ, $UGP)
{
    SESSION_START();
    $userinfo = GetUserInfo();
    $ts = strtotime($order->order_date);
    $html = "<div style=\"font-family: Arial; font-size: 14px; \">";
    $html = $html . "Bestellung <b>" . $order->order_number . "</b> vom <b>" . date("d.m.Y G:i:s", $ts) . "</b><br>";
    $html = $html . "Besteller: <b>" . $order->ba_firstname . " " . $order->ba_lastname . "</b><br><br>\n";
    $html = $html . "Status: <b>" . $order->status . "</b><br><br>\n";
    $html = $html . "Lieferadresse:<br>\n";
    $html = $html . $order->firstname . " " . $order->lastname . "<br>\n";
    $html = $html . $order->street . "<br>\n";
    $html = $html . $order->country_id . "-" . $order->postcode . " " . $order->city . "<br><br>\n";
    if ($order->email != "" or $order->telephone != "") {
        $html = $html . "<table width=\"200\" cellpadding=\"1\">\n";
        $html = $html . "<style type=\"text/css\">\n";
        $html = $html . "table { width: 200px; }\n";
        $html = $html . "table { border-collapse: collapse;}\n";
        $html = $html . "table, td, th { border: 1px solid black; }\n";
        $html = $html . "td, th { height: 10px; font-family: Arial; font-Size: 12px};\n";
        $html = $html . "td, th { height: 10px; font-family: Arial; font-Size: 12px};\n";
        $html = $html . "th { text-align: right; };\n";
        $html = $html . "td { text-align: left; };\n";
        $html = $html . "</style>\n";
        //        $html = $html. "<div id=\"txtHint\"><b>Person info will be listed here...</b></div>";
        if ($order->email != "") {
            $html = $html . "<tr><td width=\"10%\">E-Mail</td><td width=\"20%\">" . $order->email . "</td><td width=\"60%\"></td></tr>";
        }
        if ($order->telephone != "") {
            $html = $html . "<tr><td width=\"10%\">Telefon</td><td width=\"20%\">" . $order->telephone . "</td><td width=\"60%\"></td></tr>";
        }
        $html = $html . "</table><br>\n";
    }
    $html = $html . "Zahlungsweise: <p style=\"font-family: Arial; font-size:18px;\" ><b>" . GetPayMethod($order->paymethod) . "</b></p>\n";
    $html = $html . "</div>";
    return $userinfo . $html;
}
Example #2
0
function GetPage($res = '')
{
    $c_date = date('F');
    $c_date = ChangeMonth($c_date);
    $image = $res[image];
    if (empty($image)) {
        $image = '0.jpg';
    }
    $data = '
	<div id="dialog-form">
		<div id="tabs">
			<ul>
			    <li id="1"><a href="#tabs-1" style=" font-size: 12px;">ძირითადი ინფორმაცია</a></li>
			    <li id="2"><a href="#tabs-2" style=" font-size: 12px;" title="ანგარიშსწორება">ანგ - ბა</a></li>
			    <li id="3"><a href="#tabs-3" style=" font-size: 12px;">ობიექტები</a></li>
			    <li id="4"><a href="#tabs-4" style=" font-size: 12px;">პრინტერების ფასები</a></li>
			    <li id="5"><a href="#tabs-5" style=" font-size: 12px;">კარტრიჯების ფასები</a></li>
			    <li id="6"><a href="#tabs-6" style=" font-size: 12px;">ბრუნვა</a></li>
			    <li id="7"><a href="#tabs-7" style=" font-size: 12px;" title="შესრულების გეგმა">შეს. გეგმა</a></li>		
			</ul>
			<!-- Main Info -->
			<div id="tabs-1" style="height: 354px;">
			    <fieldset style="width: 450px; float: left;">
			    	<legend>ძირითადი ინფორმაცია</legend>
					<table class="dialog-form-table" style="width: 100%">
						<tr>
							<th><label for="rs_id">საიდენტ. ნომერი</label></th>
							<td><input id="rs_id" type="text" class="idle user_id" onblur="this.className=\'idle user_id\'" onfocus="this.className=\'activeField user_id\'" value="' . $res['rs_id'] . '" /></td>
						</tr>
						<tr>
							<th><label for="name">დასახელება</label></th>
							<td><input id="name" type="text" class="idle address" onblur="this.className=\'idle address\'" onfocus="this.className=\'activeField address\'" value="' . $res['name'] . '" /></td>
						</tr>
						<tr>
							<th><label for="address">იურიდიული მისამართი</label></th>
							<td><input id="address" type="text" class="idle address" onblur="this.className=\'idle address\'" onfocus="this.className=\'activeField address\'" value="' . $res['address'] . '" /></td>
						</tr>
						<tr>
							<th><label for="legal_status">იურიდიული სტატუსი</label></th>
							<td><select id="legal_status" class="idls">' . GetLegalStatus($res[legal_status]) . '</select></td>
						</tr>
						<tr>
							<th><label for="pay_method">ანგარიშსწორების ფორმა</label></th>
							<td><select id="pay_method" class="idls">' . GetPayMethod($res[pay_method]) . '</select></td>
						</tr>
						<tr>
							<th><label for="vat_payer">დღგ</label></th>
							<td>
								<select id="vat_payer" class="idls small">' . GetVatStatus($res[vat_payer]) . '</select>
							</td>
						</tr>
					</table>
		        </fieldset>
		 	    <fieldset style="width: 316px; height: 192px; float: right;">
			    	<legend>კომპანიის ლოგოტიპი</legend>
					
			    	<table class="dialog-form-table" width="100%">
			    		<tr>
							<td id="img_colum" colspan="2">
								<img id="upload_img" src="media/uploads/images/client/' . $image . '">
							</td>
						</tr>
						<tr><!-- Upload Image -->
							<td id="act">
								<span>
									<a href="#" id="view_image" class="complate">View</a> | <a href="#" id="delete_image" class="delete">Delete</a>
								</span>
							</td>
							<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>
								</div>
							</td>
						</tr>
					</table>
		        </fieldset>
				<div class="clear"></div>
				<fieldset style="width: 450px; float: left;">
			    	<legend>კონტაკტი</legend>
					<table class="dialog-form-table" style="width: 100%">
						<tr>
							<th style="width: 205px;"><label for="contact_person">
							საკონტაქტო პირი</label></th>
							<td><input id="contact_person" type="text" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['contact_person'] . '" /></td>			
						</tr>
						<tr>
							<th><label for="phone_number">ტელ. ნომერი</label></th>
							<td><input id="phone_number" type="text" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['phone_number'] . '" /></td>
						</tr>
						<tr>
							<th><label for="mail">ელ-ფოსტა</label></th>
							<td><input id="mail" type="text" class="idle address" onblur="this.className=\'idle address\'" onfocus="this.className=\'activeField address\'" value="' . $res['mail'] . '" /></td>
						</tr>
					</table>
		        </fieldset>
				<fieldset style="width: 316px; float: right;">
			    	<legend>შენიშვნა</legend>
		
			    	<table class="dialog-form-table" style="height: 90px;">
						<tr>
							<td valign="top">
								<textarea id="comment" class="idle large" cols="40" rows="4">' . $res['comment'] . '</textarea>
							</td>
						</tr>
					</table>
		        </fieldset>
			</div>
			<!-- /Main Info -->
									
			<!-- Account -->
			<div id="tabs-2">
				empty();
			</div>
			
			<!-- /Account -->
			<!-- Objects -->
			<div id="tabs-3">		
				<fieldset>		
				    <div class="inner-table">
					    <div id="dt_example" class="ex_highlight_row">
					        <div id="container" class="overhead_container">
					        	<div id="button_area">
					        		<button id="add_button_object">დამატება</button><button id="delete_button_object">წაშლა</button>
					        	</div>
					            <div id="dynamic">
					                <table class="display" id="object_list">
					                    <thead>
					                        <tr id="datatable_header">				                        
					                            <th>ID</th>
					                            <th style="width: 240px;">დასახელება</th>
					                            <th style="width: 100%">მისამართი</th>
												<th class="min">ქალაქი</th>										
												<th class="min">უბანი</th>
					                            <th class="check">#</th>
					                        </tr>
					                    </thead>
					                    <thead>
					                        <tr class="search_header">				                        
					                            <th class="colum_hidden">
					                            	<input type="text" name="search_id" value="ფილტრი" class="search_init" />
					                            </th>
					                            <th>
					                            	<input type="text" name="search_name" value="ფილტრი" class="search_init" />
					                            </th>
					                            <th>
					                            	<input type="text" name="search_address" value="ფილტრი" class="search_init" />
					                            </th>
					                            <th>
					                            	<input type="text" name="search_city" value="ფილტრი" class="search_init" />
					                            </th>										
					                            <th>
					                            	<input type="text" name="search_distrinct" value="ფილტრი" class="search_init" />
					                            </th>										
												<th>
													<input type="checkbox" name="check-all" id="check-all-object">
												</th>
					                        </tr>
					                    </thead>
					                </table>
					            </div>
					        </div>
					    </div>
					</div>
				</fieldset>
				
				<!-- jQuery Dialog -->
			    <div id="add-edit-object-form" class="form-dialog" title="ობიექტი">
			    	<!-- aJax -->
				</div>
			</div>
			<!-- /Objects -->
			<!-- Pricelist Printer -->
			<div id="tabs-4">
				<fieldset>
				    <div class="inner-table">
					    <div id="dt_example" class="ex_highlight_row">
					        <div id="container" class="overhead_container">
					        	<div id="button_area">
					        		<button id="add_button_printer">დამატება</button><button id="delete_button_printer">წაშლა</button>
					        	</div>
					            <div id="dynamic">
					                <table class="display" id="printer_list">
					                    <thead>
					                        <tr id="datatable_header">				                        
					                            <th>ID</th>
					                            <th style="width: 40%">დასახელება</th>
					                            <th style="width: 60%">ტიპი</th>
					                            <th class="min">ფასი</th>
					                            <th class="check">#</th>
					                        </tr>
					                    </thead>
					                    <thead>
					                        <tr class="search_header">
					                            <th class="colum_hidden">
					                            	<input type="text" name="search_id" value="ფილტრი" class="search_init" />
					                            </th>
					                            <th>
					                            	<input type="text" name="search_name" value="ფილტრი" class="search_init" />
					                            </th>
					                            <th>
					                            	<input type="text" name="search_type" value="ფილტრი" class="search_init" />
					                            </th>
					                            <th>
					                            	<input type="text" name="search_price" value="ფილტრი" class="search_init" />
					                            </th>
												<th>
													<input type="checkbox" name="check-all" id="check-all-printer">
												</th>
					                        </tr>
					                    </thead>
					                </table>
					            </div>
					        </div>
					    </div>
					</div>
				</fieldset>
				
				<!-- jQuery Dialog -->
			    <div id="add-edit-printer-form" class="form-dialog" title="პრინტერის ფასი">
			    	<!-- aJax -->
				</div>
			</div>
			<!-- /Pricelist Printer -->
			<!-- Pricelist Cartridge -->
			<div id="tabs-5">		
				<fieldset>		
				    <div class="inner-table">
					    <div id="dt_example" class="ex_highlight_row">
					        <div id="container" class="overhead_container">
					        	<div id="button_area">
					        		<button id="add_button_cartridge">დამატება</button><button id="delete_button_cartridge">წაშლა</button>
					        	</div>
					            <div id="dynamic">
					                <table class="display" id="cartridge_list">
					                    <thead>
					                        <tr id="datatable_header">				                        
					                            <th>ID</th>
					                            <th style="width: 100%">დასახელება</th>
					                            <th class="min">ფასი</th>
					                            <th class="check">#</th>
					                        </tr>
					                    </thead>
					                    <thead>
					                        <tr class="search_header">				                        
					                            <th class="colum_hidden">
					                            	<input type="text" name="search_id" value="ფილტრი" class="search_init" />
					                            </th>
					                            <th>
					                            	<input type="text" name="search_prod" value="ფილტრი" class="search_init" />
					                            </th>
					                            <th>
					                            	<input type="text" name="search_prod" value="ფილტრი" class="search_init" />
					                            </th>
												<th>
													<input type="checkbox" name="check-all" id="check-all-cartridge">
												</th>
					                        </tr>
					                    </thead>
					                </table>
					            </div>
					        </div>
					    </div>
					</div>
				</fieldset>	
			</div>							
			<div id="tabs-6">	
		        <h1 style="margin-left: 45%; margin-bottom: 8px;">' . $c_date . '</h1>
		        		
		        		
		        		
				<fieldset>		
				    <div class="inner-table">
					    <div id="dt_example" class="ex_highlight_row">
					        <div id="container" class="overhead_container">
					        	<div id="button_area">
					        	</div>
					            <div id="dynamic">
					                <table class="display" id="cartridzge_price">
					                    <thead>
												<tr style="font-size: 9pt;font-weight: normal;  height: 30px;  border:1px solid black; width: 100%;">
						        					<td rowspan="3" class="hidden">ID</td>		        		
													<td rowspan="2" style=" font-size: 11pt;font-weight: normal; vertical-align:middle; width:100px; text-align:center; border:1px solid #c5dbec;">კარტრიჯი</td>
													<td rowspan="2" colspan="6" style=" font-size: 11pt;font-weight: normal; vertical-align:middle; text-align:center;  border:1px solid #c5dbec;">ფასი</td> 
													<td rowspan="1" colspan="12" style="font-size: 10pt;font-weight: normal; vertical-align:middle; text-align:center; border:1px solid #c5dbec;">რაოდენობა</td>
													<td rowspan="1" colspan="3" style=" font-size: 10pt;font-weight: normal; vertical-align:middle; text-align:center; border:1px solid #c5dbec; width:170px;">თანხა</td>
													<td rowspan="1" colspan="2" style=" font-size: 10pt;font-weight: normal; vertical-align:middle; text-align:center; border:1px solid #c5dbec; width:80px;">გაყიდვები</td>
												</tr>        		
												<tr style="font-size: 9pt;font-weight: normal;  height: 30px; width: 100%;">
													<td rowspan="1" colspan="6" style=" font-size: 11pt;font-weight: normal; vertical-align:middle; text-align:center;  border:1px solid #c5dbec;">&nbsp;გეგმიური&nbsp;</td>        		
													<td rowspan="1" colspan="6" style=" font-size: 11pt;font-weight: normal; vertical-align:middle; text-align:center;  border:1px solid #c5dbec;">&nbsp;ფაქტიური&nbsp;</td>        		
													<td rowspan="2" colspan="1" style=" font-size: 9pt;font-weight: normal; vertical-align:middle; text-align:center;">&nbsp;გეგმიური&nbsp;</td>        		
													<td rowspan="2" colspan="1" style=" font-size: 9pt;font-weight: normal; vertical-align:middle; text-align:center;">&nbsp;ფაქტიური&nbsp;</td>
													<td rowspan="2" colspan="1" style=" font-size: 9pt;font-weight: normal; vertical-align:middle; text-align:center;">&nbsp;სხვაობა&nbsp;</td>        		
									        		<td rowspan="2" colspan="1" style=" font-size: 9pt;font-weight: normal; vertical-align:middle; text-align:center;">&nbsp;%&nbsp;</td>        		
													<td rowspan="2" colspan="1" style=" font-size: 9pt;font-weight: normal; vertical-align:middle; text-align:center;">&nbsp;თანხა&nbsp;</td>        		
									        		
									        	</tr>
												<tr  style="border:1px solid #c5dbec; height: 120px; width: 100%;">
													<td style="font-size: 11pt;font-weight: normal; vertical-align:middle; text-align:center;">მოდელი</td>
													<td style="vertical-align: bottom !important; font-weight: normal;"><span class="rotate style2" style="font-size: 10pt !important; padding-left:10px;">ტონერი</span></td>
													<td style="vertical-align: bottom !important; font-weight: normal;"><span class="rotate style2" style="font-size: 10pt !important; padding-left:10px;">ბარაბანი</span></td>
													<td style="vertical-align: bottom !important; font-weight: normal;"><span class="rotate style2" style="font-size: 10pt !important; padding-left:10px;">მაგნიტ. ლილ.</span></td>
													<td style="vertical-align: bottom !important; font-weight: normal;"><span class="rotate style2" style="font-size: 10pt !important; padding-left:10px;">რეზინის PCR</span></td>
													<td style="vertical-align: bottom !important; font-weight: normal;"><span class="rotate style2" style="font-size: 10pt !important; padding-left:10px;">გამწ. რაკელი</span></td>
													<td style="vertical-align: bottom !important; font-weight: normal;"><span class="rotate style2" style="font-size: 10pt !important; padding-left:10px;">დოზ. რაკელი</span></td>
													<td style="vertical-align: bottom !important; font-weight: normal;"><span class="rotate style2" style="font-size: 10pt !important; padding-left:10px;">ტონერი</span></td>
													<td style="vertical-align: bottom !important; font-weight: normal;"><span class="rotate style2" style="font-size: 10pt !important; padding-left:10px;">ბარაბანი</span></td>
													<td style="vertical-align: bottom !important; font-weight: normal;"><span class="rotate style2" style="font-size: 10pt !important; padding-left:10px;">მაგნიტ. ლილ</span></td>
													<td style="vertical-align: bottom !important; font-weight: normal;"><span class="rotate style2" style="font-size: 10pt !important; padding-left:10px;">რეზინის PCR</span></td>
													<td style="vertical-align: bottom !important; font-weight: normal;"><span class="rotate style2" style="font-size: 10pt !important; padding-left:10px;">გამწ. რაკელი</span></td>
													<td style="vertical-align: bottom !important; font-weight: normal;"><span class="rotate style2" style="font-size: 10pt !important; padding-left:10px;">დოზ. რაკელი</span></td>	
													<td style="vertical-align: bottom !important; font-weight: normal;"><span class="rotate style2" style="font-size: 10pt !important; padding-left:10px;">ტონერი</span></td>
													<td style="vertical-align: bottom !important; font-weight: normal;"><span class="rotate style2" style="font-size: 10pt !important; padding-left:10px;">ბარაბანი</span></td>
													<td style="vertical-align: bottom !important; font-weight: normal;"><span class="rotate style2" style="font-size: 10pt !important; padding-left:10px;">მაგნიტ. ლილ</span></td>
													<td style="vertical-align: bottom !important; font-weight: normal;"><span class="rotate style2" style="font-size: 10pt !important; padding-left:10px;">რეზინის PCR</span></td>
													<td style="vertical-align: bottom !important; font-weight: normal;"><span class="rotate style2" style="font-size: 10pt !important; padding-left:10px;">გამწ. რაკელი</span></td>
													<td style="vertical-align: bottom !important; font-weight: normal;"><span class="rotate style2" style="font-size: 10pt !important; padding-left:10px;">დოზ. რაკელი</span></td>	        		        																		
												</tr>
					                    </thead>
                                        <thead>
	                                                <tr class="search_header">
													<th class="colum_hidden">
													<input type="text" name="search_id" value="ფილტრი" class="search_init" />
										</th>
                         			    <th>
                             			 	<input type="text" id="search_catridge_model" name="search_catridge_model" value="ფილტრი" class="search_init" />
                           				 </th>
		        		                 <th>
		        		                 </th>
		        		                 <th>
		        		                 </th>	
		        		                 <th>
		        		                 </th>	
		        		                 <th>
		        		                 </th>	
		        		                 <th>
		        		                 </th>	
		        		                 <th>
		        		                 </th>	
		        		                 <th>
		        		                 </th>	
		        		                 <th>
		        		                 </th>	
		        		                 <th>
		        		                 </th>	
		        		                 <th>
		        		                 </th>
		        		                 <th>
		        		                 </th>	
		        		                 <th>
		        		                 </th>	
		        		                 <th>
		        		                 </th>	
		        		                 <th>
		        		                 </th>	
		        		                 <th>
		        		                 </th>	
		        		                 <th>
		        		                 </th>	
		        		                 <th>
		        		                 </th>	
		        		                 <th>
		        		                 </th>	
		        		                 <th>
		        		                 </th>
		        		                 <th>
		        		                 </th>	
		        		                 <th>
		        		                 </th>	
		        		                 <th>
		        		                 </th>
		        		                 <th>
		        		                 </th>			        			
									  </thead>
                  					  <tfoot>
                     					  <tr>
				                          <th>&nbsp;</th>
				                          <th>&nbsp;</th>
				                          <th>&nbsp;</th>  
				                          <th>&nbsp;</th>                         
				                          <th>&nbsp;</th>
				                          <th>&nbsp;</th>
				                          <th>&nbsp;</th>
				                          <th>&nbsp;</th>
				                          <th>&nbsp;</th>
				                          <th>&nbsp;</th>  
				                          <th>&nbsp;</th>                         
				                          <th>&nbsp;</th>
				                          <th>&nbsp;</th>
				                          <th>&nbsp;</th>
				                          <th>&nbsp;</th>
				                          <th>&nbsp;</th>
				                          <th>&nbsp;</th>  
				                          <th>&nbsp;</th>                         
				                          <th>&nbsp;</th>		        				        		                       
				                          <th><p align="right" style="font-size:10px;">ჯამი:<br/>სულ ჯამი:</p></th>                          
				                          <th>&nbsp;</th>  
				                          <th>&nbsp;</th>    
				                          <th>&nbsp;</th>  
				                          <th>&nbsp;</th>
				                          <th>&nbsp;</th>  		        				        		                                               
				                        </tr>
				                    </tfoot>		        		
					                </table>
					            </div>
					        </div>
					    </div>
					</div>
				</fieldset>	        			
		        <div style="padding: 2px;"></div>
				<fieldset>		
				    <div class="inner-table">
					    <div id="dt_example" class="ex_highlight_row">
					        <div id="container" class="overhead_container">
					        	<div id="button_area">
					        	</div>
					            <div id="dynamic">
					                <table class="display" id="printer_price">
					                    <thead>
												<tr style="font-size: 9pt;font-weight: normal;  height: 30px;  border:1px solid black; width: 100%;">
						        					<td rowspan="3" class="hidden">ID</td>		        		
													<td rowspan="2" style=" font-size: 11pt;font-weight: normal; vertical-align:middle; width:100px; text-align:center; border:1px solid #c5dbec;">პრინტერი</td>
													<td rowspan="2" colspan="6" style=" font-size: 11pt;font-weight: normal; vertical-align:middle; text-align:center;  border:1px solid #c5dbec;">ფასი</td> 
													<td rowspan="1" colspan="12" style="font-size: 10pt;font-weight: normal; vertical-align:middle; text-align:center; border:1px solid #c5dbec;">რაოდენობა</td>
													<td rowspan="1" colspan="3" style=" font-size: 10pt;font-weight: normal; vertical-align:middle; text-align:center; border:1px solid #c5dbec; width:200px;">თანხა</td>
													<td rowspan="1" colspan="2" style=" font-size: 10pt;font-weight: normal; vertical-align:middle; text-align:center; border:1px solid #c5dbec; width:90px;">გაყიდვები</td>
												</tr>        		
												<tr style="font-size: 9pt;font-weight: normal;  height: 30px; width: 100%;">
													<td rowspan="1" colspan="6" style=" font-size: 11pt;font-weight: normal; vertical-align:middle; text-align:center;  border:1px solid #c5dbec;">&nbsp;გეგმიური&nbsp;</td>        		
													<td rowspan="1" colspan="6" style=" font-size: 11pt;font-weight: normal; vertical-align:middle; text-align:center;  border:1px solid #c5dbec;">&nbsp;ფაქტიური&nbsp;</td>        		
													<td rowspan="2" colspan="1" style=" font-size: 9pt;font-weight: normal; vertical-align:middle; text-align:center;">&nbsp;გეგმიური&nbsp;</td>        		
													<td rowspan="2" colspan="1" style=" font-size: 9pt;font-weight: normal; vertical-align:middle; text-align:center; ">&nbsp;ფაქტიური&nbsp;</td>
													<td rowspan="2" colspan="1" style=" font-size: 9pt;font-weight: normal; vertical-align:middle; text-align:center;">&nbsp;სხვაობა&nbsp;</td>        		
									        		<td rowspan="2" colspan="1" style=" font-size: 9pt;font-weight: normal; vertical-align:middle; text-align:center;">&nbsp;%&nbsp;</td>        		
													<td rowspan="2" colspan="1" style=" font-size: 9pt;font-weight: normal; vertical-align:middle; text-align:center;">&nbsp;თანხა&nbsp;</td>        		
									        		
									        	</tr>
												<tr  style="border:1px solid #c5dbec; height: 130px; width: 100%;">
													<td style="font-size: 11pt;font-weight: normal; vertical-align:middle; text-align:center;">მოდელი</td>
													<td style="vertical-align: bottom !important; font-weight: normal;"><span class="rotate style2" style="font-size: 10pt !important; padding-left:10px;">თერმოფირი</span></td>
													<td style="vertical-align: bottom !important; font-weight: normal;"><span class="rotate style2" style="font-size: 10pt !important; padding-left:10px;">საწნეხი ლილვ.</span></td>
													<td style="vertical-align: bottom !important; font-weight: normal;"><span class="rotate style2" style="font-size: 10pt !important; padding-left:10px;">ფურც. ამტაცი</span></td>
													<td style="vertical-align: bottom !important; font-weight: normal;"><span class="rotate style2" style="font-size: 10pt !important; padding-left:10px;">ბუშინგები</span></td>
													<td style="vertical-align: bottom !important; font-weight: normal;"><span class="rotate style2" style="font-size: 10pt !important; padding-left:10px;">გაწმენდა</span></td>
													<td style="vertical-align: bottom !important; font-weight: normal;"><span class="rotate style2" style="font-size: 10pt !important; padding-left:10px;">სხვა</span></td>
													<td style="vertical-align: bottom !important; font-weight: normal;"><span class="rotate style2" style="font-size: 10pt !important; padding-left:10px;">თერმოფირი</span></td>
													<td style="vertical-align: bottom !important; font-weight: normal;"><span class="rotate style2" style="font-size: 10pt !important; padding-left:10px;">საწნეხი ლილვ.</span></td>
													<td style="vertical-align: bottom !important; font-weight: normal;"><span class="rotate style2" style="font-size: 10pt !important; padding-left:10px;">ფურც. ამტაცი</span></td>
													<td style="vertical-align: bottom !important; font-weight: normal;"><span class="rotate style2" style="font-size: 10pt !important; padding-left:10px;">ბუშინგები</span></td>
													<td style="vertical-align: bottom !important; font-weight: normal;"><span class="rotate style2" style="font-size: 10pt !important; padding-left:10px;">გაწმენდა</span></td>
													<td style="vertical-align: bottom !important; font-weight: normal;"><span class="rotate style2" style="font-size: 10pt !important; padding-left:10px;">სხვა</span></td>	
													<td style="vertical-align: bottom !important; font-weight: normal;"><span class="rotate style2" style="font-size: 10pt !important; padding-left:10px;">თერმოფირი</span></td>
													<td style="vertical-align: bottom !important; font-weight: normal;"><span class="rotate style2" style="font-size: 10pt !important; padding-left:10px;">საწნეხი ლილვ.</span></td>
													<td style="vertical-align: bottom !important; font-weight: normal;"><span class="rotate style2" style="font-size: 10pt !important; padding-left:10px;">ფურც. ამტაცი</span></td>
													<td style="vertical-align: bottom !important; font-weight: normal;"><span class="rotate style2" style="font-size: 10pt !important; padding-left:10px;">ბუშინგები</span></td>
													<td style="vertical-align: bottom !important; font-weight: normal;"><span class="rotate style2" style="font-size: 10pt !important; padding-left:10px;">გაწმენდა</span></td>
													<td style="vertical-align: bottom !important; font-weight: normal;"><span class="rotate style2" style="font-size: 10pt !important; padding-left:10px;">სხვა</span></td>	        		        																		
												</tr>
					                    </thead>
                                        <thead>
	                                                <tr class="search_header">
													<th class="colum_hidden">
													<input type="text" name="search_id" value="ფილტრი" class="search_init" />
										</th>
                         			    <th>
                             			 	<input type="text" id="search_printer_model" name="search_printer_model" value="ფილტრი" class="search_init" />
                           				 </th>
		        		                 <th>
		        		                 </th>
		        		                 <th>
		        		                 </th>	
		        		                 <th>
		        		                 </th>	
		        		                 <th>
		        		                 </th>	
		        		                 <th>
		        		                 </th>	
		        		                 <th>
		        		                 </th>	
		        		                 <th>
		        		                 </th>	
		        		                 <th>
		        		                 </th>	
		        		                 <th>
		        		                 </th>	
		        		                 <th>
		        		                 </th>
		        		                 <th>
		        		                 </th>	
		        		                 <th>
		        		                 </th>	
		        		                 <th>
		        		                 </th>	
		        		                 <th>
		        		                 </th>	
		        		                 <th>
		        		                 </th>	
		        		                 <th>
		        		                 </th>	
		        		                 <th>
		        		                 </th>	
		        		                 <th>
		        		                 </th>	
		        		                 <th>
		        		                 </th>
		        		                 <th>
		        		                 </th>	
		        		                 <th>
		        		                 </th>	
		        		                 <th>
		        		                 </th>
		        		                 <th>
		        		                 </th>			        			
									  </thead>
                  					  <tfoot>
                     					  <tr>
				                          <th>&nbsp;</th>
				                          <th>&nbsp;</th>
				                          <th>&nbsp;</th>  
				                          <th>&nbsp;</th>                         
				                          <th>&nbsp;</th>
				                          <th>&nbsp;</th>
				                          <th>&nbsp;</th>
				                          <th>&nbsp;</th>
				                          <th>&nbsp;</th>
				                          <th>&nbsp;</th>  
				                          <th>&nbsp;</th>                         
				                          <th>&nbsp;</th>
				                          <th>&nbsp;</th>
				                          <th>&nbsp;</th>
				                          <th>&nbsp;</th>
				                          <th>&nbsp;</th>
				                          <th>&nbsp;</th>  
				                          <th>&nbsp;</th>                         
				                          <th>&nbsp;</th>		        				        		                       
				                          <th><p align="right" style="font-size:10px;">ჯამი:<br/>სულ ჯამი:</p></th>                          
				                          <th>&nbsp;</th>  
				                          <th>&nbsp;</th>    
				                          <th>&nbsp;</th>  
				                          <th>&nbsp;</th>
				                          <th>&nbsp;</th>  		        				        		                                               
				                        </tr>
				                    </tfoot>		        		
					                </table>
					            </div>
					        </div>
					    </div>
					</div>
				</fieldset>			     
			</div> 
			<div id="tabs-7">
				<fieldset>		
				    <legend>შესრულების გეგმა</legend>	
				    <div class="inner-table">
					    <div id="dt_example" class="ex_highlight_row">
					        <div id="container" class="overhead_container">
					        	<div id="button_area"> 
					        		<button id="add_cartridge_timetable">კარტრიჯი</button><button id="add_printer_timetable">პრინტერი</button><button id="delete_timetable">წაშლა</button>
					        	</div>
					            <div id="dynamic">
					                <table class="display" id="timetable_list">
					                    <thead>
					                        <tr id="datatable_header">				                        
					                            <th>ID</th>
					                            <th style="width: 100%">კატეგორია</th>
					                            <th style="width: 100%">შეკვეთის დრო</th>
		        								<th style="width: 100%">პროდ.<br>რაოდენობა</th>
		        								<th style="width: 100%">მიტანის დრო</th>		        		
					                            <th class="check">#</th>
					                        </tr>
					                    </thead>
					                    <thead>
					                        <tr class="search_header">				                        
					                            <th class="colum_hidden">
					                            	<input type="text" name="search_id" value="ფილტრი" class="search_init" />
					                            </th>
					                            <th>
					                            	<input type="text" name="search_cat" value="ფილტრი" class="search_init" />
					                            </th>
					                            <th>
					                            	<input type="text" name="search_request_time" value="ფილტრი" class="search_init" />
					                            </th>		        		
					                            <th>
					                            	<input type="text" name="search_prod_qunatity" value="ფილტრი" class="search_init" />
					                            </th>
					                            <th>
					                            	<input type="text" name="search_time" value="ფილტრი" class="search_init" />
					                            </th>		        		
												<th>
													<input type="checkbox" name="check-all" id="check-all-timetable">
												</th>
					                        </tr>
					                    </thead>
					                </table>
					            </div>
					        </div>
					    </div>
					</div>
				</fieldset>			        		
			</div> 			        		 					        		
		</div>	        		
		<!-- jQuery Dialog -->
	    <div id="add-edit-cartridge-form" class="form-dialog" title="კარტრიჯის ფასი">
	        <!-- aJax -->
	    </div>
		        		
	    <div id="add-edit-timetable-form" class="form-dialog" title="შესრულების გეგმა">
	        <!-- aJax -->
	    </div>		        				        		
		<!-- ID -->
		<input type="hidden" id="client_id" value="' . $res['id'] . '" />
		<input type="hidden" id="local_client_id" />
    </div>    
    ';
    return $data;
}
function GetPage($res = '')
{
    $image = $res[image];
    if (empty($image)) {
        $image = '0.jpg';
    }
    $data = '
	<div id="dialog-form">
		<div id="tabs">
			<ul>
			    <li id="1"><a href="#tabs-1">ძირითადი ინფორმაცია</a></li>
			    <li id="2"><a href="#tabs-2">ანგარიშწორება</a></li>
			    <li id="3"><a href="#tabs-3">ობიექტები</a></li>
			    <li id="4"><a href="#tabs-4">პრინტერების ფასები</a></li>
			    <li id="5"><a href="#tabs-5">კარტრიჯების ფასები</a></li>
			</ul>
			<!-- Main Info -->
			<div id="tabs-1" style="height: 354px;">
			    <fieldset style="width: 450px; float: left;">
			    	<legend>ძირითადი ინფორმაცია</legend>
					<table class="dialog-form-table" style="width: 100%">
						<tr>
							<th><label for="rs_id">საიდენტ. ნომერი</label></th>
							<td><input id="rs_id" type="text" class="idle user_id" onblur="this.className=\'idle user_id\'" onfocus="this.className=\'activeField user_id\'" value="' . $res['rs_id'] . '" /></td>
						</tr>
						<tr>
							<th><label for="name">დასახელება</label></th>
							<td><input id="name" type="text" class="idle address" onblur="this.className=\'idle address\'" onfocus="this.className=\'activeField address\'" value="' . $res['name'] . '" /></td>
						</tr>
						<tr>
							<th><label for="address">იურიდიული მისამართი</label></th>
							<td><input id="address" type="text" class="idle address" onblur="this.className=\'idle address\'" onfocus="this.className=\'activeField address\'" value="' . $res['address'] . '" /></td>
						</tr>
						<tr>
							<th><label for="legal_status">იურიდიული სტატუსი</label></th>
							<td><select id="legal_status" class="idls">' . GetLegalStatus($res[legal_status]) . '</select></td>
						</tr>
						<tr>
							<th><label for="pay_method">ანგარიშსწორების ფორმა</label></th>
							<td><select id="pay_method" class="idls">' . GetPayMethod($res[pay_method]) . '</select></td>
						</tr>
						<tr>
							<th><label for="vat_payer">დღგ</label></th>
							<td>
								<select id="vat_payer" class="idls small">' . GetVatStatus($res[vat_payer]) . '</select>
							</td>
						</tr>
					</table>
		        </fieldset>
		 	    <fieldset style="width: 316px; height: 192px; float: right;">
			    	<legend>კომპანიის ლოგოტიპი</legend>
					
			    	<table class="dialog-form-table" width="100%">
			    		<tr>
							<td id="img_colum" colspan="2">
								<img id="upload_img" src="media/uploads/images/client/' . $image . '">
							</td>
						</tr>
						<tr><!-- Upload Image -->
							<td id="act">
								<span>
									<a href="#" id="view_image" class="complate">View</a> | <a href="#" id="delete_image" class="delete">Delete</a>
								</span>
							</td>
							<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>
								</div>
							</td>
						</tr>
					</table>
		        </fieldset>
				<div class="clear"></div>
				<fieldset style="width: 450px; float: left;">
			    	<legend>კონტაკტი</legend>
					<table class="dialog-form-table" style="width: 100%">
						<tr>
							<th style="width: 205px;"><label for="contact_person">
							საკონტაქტო პირი</label></th>
							<td><input id="contact_person" type="text" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['contact_person'] . '" /></td>			
						</tr>
						<tr>
							<th><label for="phone_number">ტელ. ნომერი</label></th>
							<td><input id="phone_number" type="text" class="idle" onblur="this.className=\'idle\'" onfocus="this.className=\'activeField\'" value="' . $res['phone_number'] . '" /></td>
						</tr>
						<tr>
							<th><label for="mail">ელ-ფოსტა</label></th>
							<td><input id="mail" type="text" class="idle address" onblur="this.className=\'idle address\'" onfocus="this.className=\'activeField address\'" value="' . $res['mail'] . '" /></td>
						</tr>
					</table>
		        </fieldset>
				<fieldset style="width: 316px; float: right;">
			    	<legend>შენიშვნა</legend>
		
			    	<table class="dialog-form-table" style="height: 90px;">
						<tr>
							<td valign="top">
								<textarea id="comment" class="idle large" cols="40" rows="4">' . $res['comment'] . '</textarea>
							</td>
						</tr>
					</table>
		        </fieldset>
			</div>
			<!-- /Main Info -->
									
			<!-- Account -->
			<div id="tabs-2">
				empty();
			</div>
			
			<!-- /Account -->
			<!-- Objects -->
			<div id="tabs-3">		
				<fieldset>		
				    <div class="inner-table">
					    <div id="dt_example" class="ex_highlight_row">
					        <div id="container" class="overhead_container">
					        	<div id="button_area">
					        		<button id="add_button_object">დამატება</button><button id="delete_button_object">წაშლა</button>
					        	</div>
					            <div id="dynamic">
					                <table class="display" id="object_list">
					                    <thead>
					                        <tr id="datatable_header">				                        
					                            <th>ID</th>
					                            <th class="min">დასახელება</th>
					                            <th style="width: 100%">მისამართი</th>
												<th class="min">უბანი</th>
					                            <th class="check">#</th>
					                        </tr>
					                    </thead>
					                    <thead>
					                        <tr class="search_header">				                        
					                            <th class="colum_hidden">
					                            	<input type="text" name="search_id" value="ფილტრი" class="search_init" />
					                            </th>
					                            <th>
					                            	<input type="text" name="search_name" value="ფილტრი" class="search_init" />
					                            </th>
					                            <th>
					                            	<input type="text" name="search_address" value="ფილტრი" class="search_init" />
					                            </th>
					                            <th>
					                            	<input type="text" name="search_distrinct" value="ფილტრი" class="search_init" />
					                            </th>										
												<th>
													<input type="checkbox" name="check-all" id="check-all-object">
												</th>
					                        </tr>
					                    </thead>
					                </table>
					            </div>
					        </div>
					    </div>
					</div>
				</fieldset>
				
				<!-- jQuery Dialog -->
			    <div id="add-edit-object-form" class="form-dialog" title="ობიექტი">
			    	<!-- aJax -->
				</div>
			</div>
			<!-- /Objects -->
			<!-- Pricelist Printer -->
			<div id="tabs-4">
				<fieldset>
				    <div class="inner-table">
					    <div id="dt_example" class="ex_highlight_row">
					        <div id="container" class="overhead_container">
					        	<div id="button_area">
					        		<button id="add_button_printer">დამატება</button><button id="delete_button_printer">წაშლა</button>
					        	</div>
					            <div id="dynamic">
					                <table class="display" id="printer_list">
					                    <thead>
					                        <tr id="datatable_header">				                        
					                            <th>ID</th>
					                            <th style="width: 40%">დასახელება</th>
					                            <th style="width: 60%">ტიპი</th>
					                            <th class="min">ფასი</th>
					                            <th class="check">#</th>
					                        </tr>
					                    </thead>
					                    <thead>
					                        <tr class="search_header">
					                            <th class="colum_hidden">
					                            	<input type="text" name="search_id" value="ფილტრი" class="search_init" />
					                            </th>
					                            <th>
					                            	<input type="text" name="search_name" value="ფილტრი" class="search_init" />
					                            </th>
					                            <th>
					                            	<input type="text" name="search_type" value="ფილტრი" class="search_init" />
					                            </th>
					                            <th>
					                            	<input type="text" name="search_price" value="ფილტრი" class="search_init" />
					                            </th>
												<th>
													<input type="checkbox" name="check-all" id="check-all-printer">
												</th>
					                        </tr>
					                    </thead>
					                </table>
					            </div>
					        </div>
					    </div>
					</div>
				</fieldset>
				
				<!-- jQuery Dialog -->
			    <div id="add-edit-printer-form" class="form-dialog" title="პრინტერის ფასი">
			    	<!-- aJax -->
				</div>
			</div>
			<!-- /Pricelist Printer -->
			<!-- Pricelist Cartridge -->
			<div id="tabs-5">		
				<fieldset>		
				    <div class="inner-table">
					    <div id="dt_example" class="ex_highlight_row">
					        <div id="container" class="overhead_container">
					        	<div id="button_area">
					        		<button id="add_button_cartridge">დამატება</button><button id="delete_button_cartridge">წაშლა</button>
					        	</div>
					            <div id="dynamic">
					                <table class="display" id="cartridge_list">
					                    <thead>
					                        <tr id="datatable_header">				                        
					                            <th>ID</th>
					                            <th style="width: 100%">დასახელება</th>
					                            <th class="min">ფასი</th>
					                            <th class="check">#</th>
					                        </tr>
					                    </thead>
					                    <thead>
					                        <tr class="search_header">				                        
					                            <th class="colum_hidden">
					                            	<input type="text" name="search_id" value="ფილტრი" class="search_init" />
					                            </th>
					                            <th>
					                            	<input type="text" name="search_prod" value="ფილტრი" class="search_init" />
					                            </th>
					                            <th>
					                            	<input type="text" name="search_prod" value="ფილტრი" class="search_init" />
					                            </th>
												<th>
													<input type="checkbox" name="check-all" id="check-all-cartridge">
												</th>
					                        </tr>
					                    </thead>
					                </table>
					            </div>
					        </div>
					    </div>
					</div>
				</fieldset>
				
				<!-- jQuery Dialog -->
			    <div id="add-edit-cartridge-form" class="form-dialog" title="კარტრიჯის ფასი">
			    	<!-- aJax -->
				</div>
			</div>
			<!-- /Pricelist Cartridge -->
		</div>
		<!-- ID -->
		<input type="hidden" id="client_id" value="' . $res['id'] . '" />
		<input type="hidden" id="local_client_id" />
    </div>    
    ';
    return $data;
}