Ejemplo n.º 1
0
function GetBalance()
{
    $user_id = $_SESSION['USERID'];
    $check_group = mysql_fetch_assoc(mysql_query("SELECT group_id\r\n                                                  FROM  `users`\r\n                                                  WHERE  id = {$user_id}"));
    $style = '';
    if ($check_group[group_id] != 1 && $check_group[group_id] != 3 && $check_group[group_id] != 5) {
        $style = "display:none;";
    }
    $data = '
	<div id="dialog-form">
 	    <fieldset style="width: 400px;">
	    	<legend>ძირითადი ინფორმაცია</legend>
			<div style=" margin-top: 2px; ">
				<div style="width: 170px; display: inline;">
			<table width="80%" class="dialog-form-table" cellpadding="10px" >
				<tr	style="float: left">
		
					<td style="width: 170px;"><label for="user">ჯგუფები</label></td>
					<td>
						<select id="user1" class="idls">' . GetWorkers(10) . '</select>
					</td>
										
				</tr>
				
			</table>		
				</div>
			</th>

		<div style="margin-left:180px;"><input type="button" id="check" value="შემოწმება" /></div>
	 </div>
    </fieldset>
	<br><br>
	<fieldset>	
		<legend>ბალანსი</legend>	
						    
		    <div id="button_area">
				<table>
    				<tr>
        				<td>
            	        	<label for="search_start" class="left">დასაწყისი</label>
                    		<input style="width: 120px; margin-left: 10px; margin-top: -5px;" type="text" name="search_start" id="search_start" class="inpt right"/>
                    	</td>
        				<td>
                        	<label for="search_end" style="margin-left: 20px;" class="left" >დასასრული</label>
                        	<input style="width: 120px; margin-left: 10px; margin-top: -5px;" type="text" name="search_end" id="search_end" class="inpt right" />
                    	</td>
        				<td>
            			    <button style="width: 120px; margin-left: 20px; margin-top: -5px; ' . $style . '" id="exel_button">სრული ექსელი</button>
            			</td>
    				</tr>
			    </table>
             </div>							
			 
			<div class="inner-table" style="width: 100%; margin-top: 33px;">
			    <div id="container" style="width: 100%;">        	
            		<div id="dynamic">
                		<table class="display" id="report">
                                    <thead>
                                        <tr id="datatable_header">
                                            <th>ID</th>
                                            <th style="width: 85px !important;">თარიღი</th>
                                            <th style="width: 140px !important;">პიროვნება</th>
            			                    <th style="width: 120px !important;">ჯგუფი</th>
                                            <th style="width: 100px !important;">სამ. გეგმ. დრო</th>
                                            <th style="width: 100px !important;">სამ. ფაქტ. დრო</th>
                                            <th style="width: 100px !important;">შეს  გეგმ. დრო</th>
                						    <th style="width: 100px !important;">შეს  ფაქტ. დრო</th>
                                        </tr>
                                    </thead>
                                    <thead>
                                        <tr class="search_header">
                                            <th class="colum_hidden">
                                            	<input type="text" name="search_id" value="ფილტრი" class="search_init" style="width: 80px !important;"/>
                                            </th>
                                            <th>
                                            	<input type="text" name="search_number" value="ფილტრი" class="search_init" style="width: 80px !important;">
                                            </th>
                                            <th>
                                            	<input type="text" name="search_method" value="ფილტრი" class="search_init" style="width: 80px !important;">
                                            </th>
            			                    <th>
                                            	<input type="text" name="search_method" value="ფილტრი" class="search_init" style="width: 80px !important;">
                                            </th>
                                            <th>
                                            	<input type="text" name="search_method" value="ფილტრი" class="search_init" style="width: 80px !important;">
                                            </th>
                                            <th>
                                            	<input type="text" name="search_method" value="ფილტრი" class="search_init" style="width: 80px !important;">
                                            </th>
                						    <th>
                                            	<input type="text" name="search_method" value="ფილტრი" class="search_init" style="width: 80px !important;">
                                            </th>
                                            <th>
                                            	<input type="text" name="search_method" value="ფილტრი" class="search_init" style="width: 80px !important;">
                                            </th>
                                        </tr>
                                   </thead>
                				   <tfoot>
                                        <tr id="datatable_header" class="search_header">
                							<th style="width: 150px"></th>
                							<th style="width: 150px"></th>
            			                    <th style="width: 150px"></th>
                						    <th style="width: 150px; text-align: right;">ჯამი :<br>სულ :</th>
                							<th style="width: 150px"></th>
                							<th style="width: 150px;"></th>
                							<th style="width: 150px;"></th>
                						    <th style="width: 150px;"></th>
                                        </tr>
                                    </tfoot>
                                </table>
                            </div>
                        </div>
		          </div>
		      </fieldset>
        </div>


		
    ';
    return $data;
}
Ejemplo n.º 2
0
function GetBalance()
{
    $data = '
	<div id="dialog-form">
 	    <fieldset style="width: 400px;">
	    	<legend>ძირითადი ინფორმაცია</legend>
			<div style=" margin-top: 2px; ">
				<div style="width: 170px; display: inline;">
			<table width="80%" class="dialog-form-table" cellpadding="10px" >
				<tr	style="float: left">
		
					<td style="width: 170px;"><label for="user">მომხმარებელი</label></td>
					<td>
						<select id="user1" class="idls">' . GetWorkers(10) . '</select>
					</td>
										
				</tr>
				
			</table>		
				</div>
			</th>

		<div style="margin-left:180px;"><input type="button" id="check" value="შემოწმება" /></div>
	 </div>
        </fieldset>
								<br><br>
	<fieldset>	
		<legend>ბალანსი</legend>									
														
		<div id="button_area">
	            	<div class="left" style="width: 250px;">
	            		<label for="search_start" class="left" style="margin: 5px 0 0 9px;">დასაწყისი</label>
	            		<input type="text" name="search_start" id="search_start" class="inpt right"/>
	            	</div>
	            	<div class="right" style="width: 250px;">
	            		<label for="search_end" class="left" style="margin:5px 0 0 3px">დასასრული</label>
	            		<input type="text" name="search_end" id="search_end" class="inpt right" />
            		</div>
           </div>							
								
		   <table class="display" id="report">
                    <thead>
                        <tr id="datatable_header">
                            <th>ID</th>
                            <th style="width: 120px !important;">თარიღი</th>
                            <th style="width: 100% !important;">პიროვნება</th>
                            <th style="width: 120px !important;">მოსვლა</th>
                            <th style="width: 120px !important;">შეს. დაწყება</th>
                            <th style="width: 120px !important;">შეს. დასრულება</th>
                            <th style="width: 120px !important;">წასვლა</th>
                            <th style="width: 120px !important;">შესვენების დრო</th>
                            <th style="width: 120px !important;">მუშაობის  დრო</th>
                            <th style="width: 120px !important;">+</th>
                            <th style="width: 120px !important;">-</th>
                        </tr>
                    </thead>
                    <thead>
                        <tr class="search_header">
                            <th class="colum_hidden">
                            	<input type="text" name="search_id" value="ფილტრი" class="search_init" style="width: 80px !important;"/>
                            </th>
                            <th>
                            	<input type="text" name="search_number" value="ფილტრი" class="search_init" style="width: 80px !important;">
                            </th>
                            <th>
                            	<input type="text" name="search_method" value="ფილტრი" class="search_init">
                            </th>
                            <th>
                            	<input type="text" name="search_method" value="ფილტრი" class="search_init" style="width: 80px !important;">
                            </th>
                            <th>
                            	<input type="text" name="search_method" value="ფილტრი" class="search_init" style="width: 80px !important;">
                            </th>
                            <th>
                            	<input type="text" name="search_method" value="ფილტრი" class="search_init" style="width: 80px !important;">
                            </th>
                            <th>
                            	<input type="text" name="search_method" value="ფილტრი" class="search_init" style="width: 80px !important;">
                            </th>
                            <th>
                            	<input type="text" name="search_method" value="ფილტრი" class="search_init" style="width: 80px !important;">
                            </th>
                            <th>
                            	<input type="text" name="search_method" value="ფილტრი" class="search_init" style="width: 80px !important;">
                            </th>
                        </tr>
                   </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>
                        </tr>
                    </tfoot>
                </table>
		</fieldset>
    </div>


		
    ';
    return $data;
}