Ejemplo n.º 1
0
        $veh = $drSch["vehicle"];
        if ($veh == "0") {
            $veh = dic_("Reports.AllVehicles");
        }
        $period = dic_("Reports." . $drSch["period"] . "");
        $day = "";
        if ($drSch["day"] != "") {
            $day = dic_("Reports." . $drSch["day"] . "");
        }
        $ranArr = explode("Last", $drSch["range"]);
        if ($ranArr[1] > 1) {
            $range = $ranArr[1] . " " . dic_("Reports.Days_");
        } else {
            $range = $ranArr[1] . " " . dic_("Reports.Day_");
        }
        $report = dic_("Reports." . $drSch["report"]);
        if ($drSch["report"] == "CustomizedReport") {
            $report = dlookup("select name from reportgenerator where id = " . $drSch["repid"]);
        }
        ?>
                                                        
              
             	<tr id="veh<?php 
        echo $cnt_1;
        ?>
" style="cursor:pointer" onmouseover="over(<?php 
        echo $cnt_;
        ?>
, 1)" onmouseout="out(<?php 
        echo $cnt_;
        ?>
Ejemplo n.º 2
0
        $to = dlookup("select registration from vehicles where id=" . pg_fetch_result($mess, 0, "toid"));
    }
    ?>
 		<?php 
    echo dic_("Reports.To");
    ?>
: <strong><?php 
    echo $to;
    ?>
</strong>
		<?php 
}
?>
 		<br>
 		<?php 
echo dic_("Reports.DateTime");
?>
: <strong><?php 
echo DateTimeFormat(pg_fetch_result($mess, 0, "datetime"), $datetimeformat);
?>
</strong>
 	</td>
 </tr>
 
 <tr>
 	<td colspan=2 style="padding-top:25px">
 		<?php 
echo pg_fetch_result($mess, 0, "body");
?>
 	</td>
 </tr>
Ejemplo n.º 3
0
	            <td style="<?php 
        echo $dtaximeterS;
        ?>
; width:10%; font-size:11px;" align="center" class="corner5 text5 <?php 
        echo $classTr;
        ?>
 colTaximeter">
		            	<?php 
        $stTaxi = "";
        $currDataTaxi = "";
        if (pg_fetch_result($dsCurrPos, 0, $taxiCol) == 1) {
            $stTaxi = "style='color:green;'";
            $currDataTaxi = dic_("Reports.ON1");
        } else {
            $stTaxi = "style='color:red;'";
            $currDataTaxi = dic_("Reports.OFF1");
        }
        ?>
		            	<span id="spanTaxi-<?php 
        echo $drVehicle["id"];
        ?>
" <?php 
        echo $stTaxi;
        ?>
 onmousemove="ShowPopup(event, '<span class=\'text5\'><?php 
        echo dic("Reports.CurrTaximeter");
        ?>
</span>')" onmouseout="HidePopup()"><?php 
        echo $currDataTaxi;
        ?>
</span>
Ejemplo n.º 4
0
</td>
			<td height="22px" align="center" style="background-color:#fff; border:1px dotted #B8B8B8" class="text2"><?php 
        echo Sec2Str2($drActivity["totaltime"]);
        ?>
</td>
			<td height="22px" align="center" style="background-color:#fff; border:1px dotted #B8B8B8" class="text2"><?php 
        echo Sec2Str2($drActivity["idletime"]);
        ?>
</td>
			<td height="22px" align="center" style="background-color:#fff; border:1px dotted #B8B8B8" class="text2"><?php 
        echo number_format(round($drActivity["distance"] * $metricvalue1, 1));
        ?>
</td>
			<td height="22px" align="center" style="background-color:#fff; border:1px dotted #B8B8B8" class="text2">
				<img width="24" height="24" border="0" src="../images/zoom.png" style="cursor:pointer" title="<?php 
        echo dic_("Reports.ViewOnMap");
        ?>
" onClick="OpenMapActivity('<?php 
        echo session("user_id");
        ?>
', '<?php 
        echo session("client_id");
        ?>
', '<?php 
        echo DateTimeFormat($drActivity["startdate"], "d-m-Y H:i:s");
        ?>
', '<?php 
        echo DateTimeFormat($drActivity["enddate"], "d-m-Y H:i:s");
        ?>
', '<?php 
        echo $reg;
Ejemplo n.º 5
0
/sessionexpired/?l=" + '<?php 
echo $cLang;
?>
';
 </script>
 
    <?php 
opendb();
?>

<div align=left style='padding-top:25px; margin-left:45px'>
<table>
   
    <tr>
        <td style='font-family:Arial, Helvetica, sans-serif; font-size:11px; font-weight:normal; color:#2f5185; text-decoration: none;'><?php 
echo dic_("Reports.EnterNewComp");
?>
:</td>
<tr>
<tr>
        <td>
            <input id="compname" type="text" class="text1-" style="border-radius: 5px 5px 5px 5px; border: 1px solid #CCCCCC; padding-left:5px; height:24px; width:270px; text-align:left; font-family:Arial, Helvetica, sans-serif; font-size:11px; font-weight:normal;" />
        </td>
    </tr>

</table>
</div>

<?php 
closedb();
?>
Ejemplo n.º 6
0
					</table>
				</td>
			</tr>
	  	</table>
	</td></tr>
	<tr id="sent-trr-<?php 
    echo $cc;
    ?>
" style="height:1px;">
		<td><div style="border-bottom:1px dotted #bebebe; width:93%; margin-left:8px"></div></td>
	</tr>
	<?php 
    $cc++;
    $totalSent--;
}
if (pg_num_rows($dsMessInbox) == 0) {
    ?>
		<tr style="height:10px;">
			<td><div class="text2_" style="margin-left:8px">- <?php 
    echo dic_("Reports.Empty");
    ?>
 -</div></td>
		</tr>
	<?php 
}
?>
 
	</tbody>
    <?php 
closedb();
exit;
Ejemplo n.º 7
0
include "../include/functions.php";
include "../include/params.php";
include "../include/dictionary2.php";
?>

<?php 
include "../include/db.php";
session_start();
?>

<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	</head>
	<?php 
opendb();
$cost = getQUERY("cost");
?>
	<body>
		<div class="text5" style="font-size: 13px"><?php 
echo dic_('Reports.SureDelCost');
?>
 <strong><?php 
echo $cost;
?>
</strong>?</div>
	</body>
	
</html>
Ejemplo n.º 8
0
        }
        ?>
	            <td width=80px style="font-size:11px" align="center" class="corner5 text5 <?php 
        echo $classTr;
        ?>
">
	            	<div <?php 
        echo $stTaxi;
        ?>
>
		            	<?php 
        $stTaxi = "";
        if (pg_fetch_result($dsCurrPos, 0, $taxiCol) == 1) {
            echo dic_("Reports.ON1");
        } else {
            echo dic_("Reports.OFF1");
        }
        ?>
	            	</div>
	            </td>
	            <td width=60px style="font-size:11px" align="center" class="corner5 text5 <?php 
        echo $classTr;
        ?>
">
	            	<?php 
        $stPass = "";
        $pass = dlookup("select getpassengers" . $passrup . "(" . pg_fetch_result($dsCurrPos, 0, $passCol) . ")");
        if ($pass > 0) {
            $stPass = "style='color:green;'";
        } else {
            $stPass = "style='color:red;'";
Ejemplo n.º 9
0
			<?php 
        }
        ?>
			</div>
			
			<br>
			</div>
			<?php 
        $cnt++;
    }
} else {
    ?>
            
            <div id="noData" style="padding:10px; font-size:30px; font-style:italic;" class="text4">
	        	<?php 
    echo dic_("Routes.NotCreatedPreOrders");
    ?>
	   		</div>
            <?php 
}
?>
	</div>
	
	<br><br>
	<div id="div-promeni" title="<?php 
echo dic("Routes.MOrder");
?>
" style="display:none">
		<iframe id="frm-promeni" frameborder="0" scrolling="yes" style="width:100%; height:100%; overflow-y: auto; overflow-x: hidden"></iframe>
	</div>
	<br>
Ejemplo n.º 10
0
            }
            if ($row["pause4"] != "0") {
                ?>
											<td style="padding-left: 30px" class="style2"><?php 
                echo dic_("Tracking.FourthPause");
                ?>
: <strong style="color:#800"><?php 
                echo $row["pause4"];
                ?>
&nbsp;min</strong></td>
											<?php 
            }
            if ($row["pause5"] != "0") {
                ?>
											<td style="padding-left: 30px" class="style2"><?php 
                echo dic_("Tracking.FifthPause");
                ?>
: <strong style="color:#800"><?php 
                echo $row["pause5"];
                ?>
&nbsp;min</strong></td>
											<?php 
            }
            ?>
								</tr>
							</table>
						</td>
						<!--td height="30px" align="left" valign="middle" class="style2">Прва Пауза: <strong class="style3"><?php 
            echo pg_fetch_result($dsNalog, 0, "pause1");
            ?>
&nbsp;min</strong></td>
Ejemplo n.º 11
0
</span>
			
			<input id="txtusername" type="text" name="txtusername" class="BlackText corner5" value="<?php 
echo $username;
?>
">
			<input id="txtpassword" type="password" name="txtpassword" class="BlackText corner5">
			<input type="submit" class="BlackText corner5" id="btnlogin" name="btnlogin" value="<?php 
dic("Login.Button");
?>
">
			<span id="lbl-error-login-msg" class="BlackText2" <?php 
echo $errorString;
?>
><?php 
echo $isActive == 0 ? dic_("Login.WrongPassword") . "!!!" : dic_("Login.UserIsNotActive") . " <a href=\"mailto:support@gps.mk\">support@gps.mk</a>";
?>
</span> <!-- new -->
			<label id="lbl-remember-me" class="BlackText1" style="position:absolute; left:190px; top:65px; color:#000; font-weight:bold; width:200px"><input name="chkRememberMe" id="chkRememberMe" type="checkbox" <?php 
echo $r14Chk;
?>
><?php 
dic("Login.keepLogged");
?>
</label>

		</form>
	</div>
	
	<div id="footer-rights" class="textFooter"><a href="<?php 
echo $CopyrightLink;
Ejemplo n.º 12
0
echo $cLang;
?>
';
 
 </script>
    <?php 
// $cLang = getQUERY("l");
opendb();
?>

<div align=left style='padding-top:25px; margin-left:45px'>
<table>
   
    <tr>
        <td style='font-family:Arial, Helvetica, sans-serif; font-size:11px; font-weight:normal; color:#2f5185; text-decoration: none;'><?php 
echo dic_("Reports.EnterNewExecutor");
?>
:</td>
<tr>
<tr>
        <td>
            <input id="locname" type="text" class="text1-" style="border-radius: 5px 5px 5px 5px; border: 1px solid #CCCCCC; padding-left:5px; height:24px; width:270px; text-align:left; font-family:Arial, Helvetica, sans-serif; font-size:11px; font-weight:normal;" />
        </td>
    </tr>

</table>
</div>

<?php 
closedb();
?>
Ejemplo n.º 13
0
</button>
		<button id="btn-clear" onClick="CistiForma()"><?php 
echo dic_("Routes.Clear");
?>
</button>
		
		<br><br>
	</div>
	
	<br><br>

	<br>
	<div id="footer-rights-new" class="textFooter" style="padding:10px 10px 10px 10px"></div>
	
	<div id="div-reports" style="display:none" title="<?php 
echo dic_("Routes.SearchOrdersTitle");
?>
">
		<iframe id="frm-reports" frameborder="0" scrolling="yes" style="width:100%; height:100%; overflow: hidden"></iframe>
	</div>
	<br><br>

</div>

</body>
</html>



<script type="text/javascript">
    lang = '<?php 
Ejemplo n.º 14
0
    function FilterByVeh() {
    	
        $.ajax({
            url: 'filterbyveh.php?id=' + txt_vozilo.value,
            success: function (data) {
                if (data == "Zero") {
                    txt_sofer1.disabled = true;
                    txt_sofer2.disabled = true;
                    txt_sofer3.disabled = true;
                } else {
                    //var dat = JXG.decompress(data);
                    var dat = data;
                    txt_sofer1.disabled = false;
                    txt_sofer2.disabled = false;
                    txt_sofer3.disabled = false;
                    var _opt = "<option value='0'><?php echo dic_("Routes.SelectUser")?></option>";
                    for (var i = 0; i < dat.split("%@").length - 1; i++) {
                        _opt += "<option value='" + dat.split("%@")[i].split("|")[0] + "'>" + dat.split("%@")[i].split("|")[1] + " - " + dat.split("%@")[i].split("|")[2] + "</option>";
                    }
                    $('#txt_sofer1').empty();
                    $('#txt_sofer1').html(_opt);
                    $('#txt_sofer2').empty();
                    $('#txt_sofer2').html(_opt);
                    $('#txt_sofer3').empty();
                    $('#txt_sofer3').html(_opt);
                }
            }
        });
    }

	function changeCulture() {
Ejemplo n.º 15
0
&nbsp;<?php 
                echo dic_("Settings.Min");
                ?>
</strong></td>
											<?php 
            }
            if ($row["pause5"] != "0") {
                ?>
											<td style="padding-left: 30px" class="style2"><?php 
                echo dic_("Tracking.FifthPause");
                ?>
: <strong style="color:#800"><?php 
                echo $row["pause5"];
                ?>
&nbsp;<?php 
                echo dic_("Settings.Min");
                ?>
</strong></td>
											<?php 
            }
            ?>
								</tr>
							</table>
						</td>
						<!--td height="30px" align="left" valign="middle" class="style2">Прва Пауза: <strong class="style3"><?php 
            echo pg_fetch_result($dsNalog, 0, "pause1");
            ?>
&nbsp;min</strong></td>
						<td height="30px" align="right" valign="middle" class="style2">&nbsp;</td-->
					  	</tr>
					  <?php 
Ejemplo n.º 16
0
			<option value = "5"><?php dic("Settings.Sound")?> 5</option>

			</select>
			<audio id="demo" src="../tracking/sound/bells_alarm.ogg"></audio>
			<button id="play" onclick="document.getElementById('demo').play()" style="position: relative; width: 35px;height: 28px; margin-left:10px;"></button>
			<button id="pause" onclick="document.getElementById('demo').pause()" style="position: relative; width: 35px;height: 28px;"></button>
			<button id="poglasno" onclick="document.getElementById('demo').volume+=0.1" style="position: relative; width: 35px;height: 28px;"></button>
			<button id="potivko" onclick="document.getElementById('demo').volume-=0.1" style="position: relative; width: 35px;height: 28px;"></button>
			</td>
		</tr>
		<tr>
			<td width = "25%" style="font-weight:bold" class ="text2"  align="left"><?php echo dic_("Settings.AvailableFor1")?>:</td>
			<td width = "75%" style="font-weight:bold" class ="text2"><div id="gfAvail" class="corner5">
			<input type="radio" value="1" id="GFcheck1" name="radio" checked="checked" /><label for="GFcheck1"><?php echo dic_("Settings.User")?></label>
			<input type="radio" value="2" id="GFcheck2" name="radio" /><label for="GFcheck2"><?php echo dic_("Reports.OrgUnit")?></label>
			<input type="radio" value="3" id="GFcheck3" name="radio" /><label for="GFcheck3"><?php echo dic_("Settings.Company")?></label>
			</div>
			</td>
		</tr>
		</table>
	</div>
</div>

<!-- ************************************************************************************************** -->

</body>

<script>

function email_validate( value) {
    var emailovi = value.split(",");
Ejemplo n.º 17
0
    ?>
				</div>
			
		<?php 
    $lasttid = $currtid;
    $counter++;
}
?>
				
			<?php 
if ($counter == 0) {
    ?>
		
		 <div id="noData" style="width: 90%; padding-left:40px; font-size:30px; font-style:italic; padding-bottom:10px" class="text4">
	         <?php 
    echo dic_("Routes.NotCreatedOrder");
    ?>
	    </div>
		<?php 
}
?>
	</div>
	
	<br>
	<div id="footer-rights-new" class="textFooter" style="padding:10px 10px 10px 10px">

	</div>
	<br>    
</div>
	<div id="div-promeni" title="<?php 
echo dic("Routes.MOrder");
Ejemplo n.º 18
0
?>
</a>
						<div id="menu-container-3" style="width:230px; padding-left:10px; padding-bottom:10px; padding-top:10px; overflow:auto">
							<div>
								<textarea id="alarmZabeleska" style="border-style: solid; width: 225px; padding: 5px; height: 100px; font-family: arial; font-size: 12px;"></textarea>
							</div>
						</div>
					</div>
				</div>
			
			<div id="closeAlert" style="position: relative; top: 20px; left: 5px;" onclick="closeAlarmWindow()"><?php 
echo dic_("Tracking.Close");
?>
</div>
			<div id="cancelAlert" style="position: relative; top: 20px; left: 16px;" onclick="closeAlarmWindow1()"><?php 
echo dic_("Tracking.Cancel");
?>
</div>
				<script>
					$('#closeAlert').button();
					$('#cancelAlert').button();
				</script>
            <!--div id="race-img" style="position:absolute; left: 250px; width:8px; height:50px; background-image:url(../images/racelive.png); background-position: -8px 0px; z-index: 2000; cursor:pointer" onClick="shleft()"></div-->
		</td>
		<td id="maps-container" valign="top" style="border-left: 2px Solid #387cb0"><!--groletna.aspx?t=2-->
			<div id="div-map"></div>
		</td>
	</tr>
</table>

</div>
Ejemplo n.º 19
0
        ?>
&nbsp;
				</div>
				<?php 
    }
    if (true) {
        ?>
	            <div onmouseover="MouseOverOptions('vehOption-<?php 
        echo $row["code"];
        ?>
','<?php 
        echo $row["vehicleid"];
        ?>
')" id="" style="background-color: #fafafa; width:205px; padding-left:5px; padding-right:5px; padding-top:2px; padding-bottom:2px; float:left; color:#333333; font-size:10px; border-top:1px dotted #333">							
					<?php 
        echo dic_("Tracking.Driver");
        ?>
: <span style="font-weight: bold" id="vh-driver-<?php 
        echo $row["code"];
        ?>
"><?php 
        echo $strDrivName;
        ?>
</span>
				</div>
	            <div onmouseover="MouseOverOptions('vehOption-<?php 
        echo $row["code"];
        ?>
','<?php 
        echo $row["vehicleid"];
        ?>
Ejemplo n.º 20
0
		                </div>
            		</td></tr>
            		<tr height="50px"><td class="text5" valign="bottom"" style="font-weight:bold"><?php 
    echo dic_("Reports.Costs");
    ?>
</td></tr>
            		<tr><td class="text5" valign="middle" align="left">
            			<div id="fm5" style="margin-left: 20px;">
		                  	<input type="checkbox" id="fmeditcosts" <?php 
    echo $fmeditcosts;
    ?>
 /><label for="fmeditcosts"><?php 
    echo dic_("Lang.Edit");
    ?>
 / <?php 
    echo dic_("Fm.Delete");
    ?>
</label>
		                </div>
            		</td></tr>
            	</table>
            </td>
        </tr>
        <?php 
}
?>
		<tr>
        	<td colspan="2">
        		<div style="border-top:1px dotted #95B1d7"></div>
        	</td>
        </tr>
Ejemplo n.º 21
0
            ?>
</td>
       </tr>
                    <?php 
            $cnt++;
        }
        //end while
    } else {
        ?>
                    	
                    	<tr>
                    		<td colspan=13><strong><?php 
        echo DateTimeFormat($_datumCnt, "d") . " " . dic_("Reports." . $meseci[intval(DateTimeFormat($_datumCnt, "m")) - 1] . "") . " " . DateTimeFormat($_datumCnt, "Y");
        ?>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php 
        echo dic_("Reports.NoDataDay");
        ?>
</strong></td>
                    	</tr>
                    	<?php 
    }
    ?>
<tr><td colspan=13></td></tr>
          </table>
			
			<?php 
    $_datumCnt = addToDate($_datumCnt, 1, "days");
}
closedb();
?>
   
Ejemplo n.º 22
0
            $colorReg = "";
            $titleReg = "";
            if ($diffDays < 0) {
                $colorReg = "#FF0000";
                $titleReg = dic_("Fm.RegLess") . " " . number_format(abs($diffDays)) . " " . dic_("Fm.Days_") . ".";
            } else {
                if ($diffDays < 14 and $diffDays > 0) {
                    $colorReg = "#F7962B";
                    $titleReg = dic_("Fm.VehMore") . (number_format($diffDays) - 1) . " " . dic_("Fm.DaysReg");
                } else {
                    if ($diffDays == 0) {
                        $colorReg = "#F7962B";
                        $titleReg = dic_("Fm.RegToday");
                    } else {
                        $colorReg = "#008000";
                        $titleReg = dic_("Fm.VehMore") . (number_format($diffDays) - 1) . " " . dic_("Fm.DaysReg");
                    }
                }
            }
            ?>
			        			<td align="center" style="color: <?php 
            echo $colorReg;
            ?>
" title="<?php 
            echo $titleReg;
            ?>
"><?php 
            echo $nextReg;
            ?>
</td>
			        		</tr>
Ejemplo n.º 23
0
		document.getElementById('costContent').innerHTML = "<div class='text2' style='padding-top:40px;color:#5C8CB9; font-weight:bold; font-size:11px'>&nbsp;&nbsp;&nbsp;&nbsp;<img src='<php echo $tpoint?>/images/ajax-loader.gif' align='absmiddle'>&nbsp;&nbsp;Ве молиме почекајте...</div>"
		$("#costContent").load('<php echo $tpoint?>/main/ChangeCost.php?cost=' + str + '&vehid=' + <php echo $vehID_?> + '&dt=' + dt + '&l=' + lang + '&tpoint=<php echo $tpoint?>')
	}*/
	
	function changeCost(costName) {	
 		var dt = document.getElementById('datetime').value;
 		var strC = costid_;//costName.replace(" ", "_");//$("#costtype").children(":selected").attr("id");
 		var strV = <?php 
echo $vehID_;
?>
;//$('#searchVeh').attr('class'); //($($('#listVeh .div-select')[0]).attr("id")).split("-v")[1]; //$("#vehictype").children(":selected").attr("id");
		document.getElementById('costContent').innerHTML = "<div class='text2' style='padding-top:40px;color:#5C8CB9; font-weight:bold; font-size:11px'>&nbsp;&nbsp;&nbsp;&nbsp;<img src='<?php 
echo $tpoint;
?>
/images/ajax-loader.gif' align='absmiddle'>&nbsp;&nbsp;<?php 
echo dic_('wait');
?>
</div>"
		$("#costContent").load('<?php 
echo $tpoint;
?>
/main/ChangeCost.php?cost=' + strC + '&vehid=' + strV + '&dt=' + dt + '&l=' + '<?php 
echo $cLang;
?>
' + '&tpoint=<?php 
echo $tpoint;
?>
')
	}

	/*function changeRadio(str) {
Ejemplo n.º 24
0
    ?>
"></div>
	<div style="padding-left:35px; padding-top:30px;"><span class="textTitle"><?php 
    echo dic("Settings.ddPois");
    ?>
</span>
	</div>
	<div align = "center">	
	<table width="70%" style="margin-top:20px; margin-left:30px;padding-left:5px">
	<tr>
	<td></td>
	<td align="right" valign="middle">
	
	<div id="noData" style="font-size:11px; font-style:normal;" class="text4">
	<?php 
    echo dic_("Routes.ExportToExcel");
    ?>
&nbsp;
	<a href = "excel.php"><input align = "top" style="padding-top:3px;position:relative; bottom:4px; " valign = "middle" type="image" width = "15px" height = "15px" src="../images/eExcel.png"></input></a>
	</div>
	
	</td>
	</tr>
	<tr class="text2" >
	<td width = "50%" align = "left" valign = "middle">
	<button id="kopce" onclick="AddColor()" style="margin-left:1px"><?php 
    echo dic("Reports.AddGroup");
    ?>
</button>
	</td>
	<td width = "50%" align = "right" valign="middle">
Ejemplo n.º 25
0
$alarm = getQUERY("alarm");
$zadrz = getQUERY("zadrz");
$pause1 = getQUERY("pause1");
$pause2 = getQUERY("pause2");
$pause3 = getQUERY("pause3");
$pause4 = getQUERY("pause4");
$pause5 = getQUERY("pause5");
/*Za ZKPelagonija*/
$culid = nnull(getQUERY("culid"), 0);
/*Za ZKPelagonija*/
$totalkm = getQUERY("totalkm");
$totaltime = getQUERY("totaltime");
if ($alarm == "/") {
    $alarm = 0;
}
if ($zadrz == "/") {
    $zadrz = 0;
}
//dim dat() as string = split(datum,"-")
//dim datum1 = dat(2) & "-" & dat(1) & "-" & dat(0)
$tmpDT = new DateTime($datum . ' ' . $vreme);
$tmpDT = $tmpDT->format("Y-m-d H:i:s");
$sqlInsert = "insert into rnalogheder (datetime, VehicleID, DriverID1, DriverID2, DriverID3, StartDate, Name, ClientID, userID, Alarm, toStay, Pause1, Pause2, Pause3, Pause4, Pause5, TotalKm, TotalTime, culid) ";
$sqlInsert .= " Values (now(), " . $vozilo . ", " . $sofer1 . ", " . $sofer2 . ", " . $sofer3 . ", '" . $tmpDT . "', '" . $naslov . "', " . session("client_id") . ", " . session("user_id") . ", " . $alarm . ", " . $zadrz . ", " . $pause1 . ", " . $pause2 . ", " . $pause3 . ", " . $pause4 . ", " . $pause5 . ", " . $totalkm . ", " . $totaltime . ", " . $culid . " )";
//$dsInsert = query($sqlInsert);
$dsInsert = dlookup($sqlInsert . " RETURNING id");
//$dsInsert1 = query("select id from rnalogheder order by id desc limit 1");
//$id = pg_fetch_result($dsInsert1, 0, "id");
addlog(38, dic_('Routes.NewOrderWithNumber') . " " . $dsInsert);
print $dsInsert;
closedb();
Ejemplo n.º 26
0
            echo '20px';
        }
        ?>
; margin-top:5px">
				<span><?php 
        echo $row["rbr"];
        ?>
</span>.&nbsp;&nbsp;&nbsp;<?php 
        echo $row["name"];
        ?>
				<?php 
        echo $str;
        ?>
			</div>
		
	<?php 
        $lasttid = $currtid;
    }
} else {
    ?>
		<div id="noData" style="width: 765px; padding-left:40px; font-size:30px; font-style:italic; padding-bottom:40px" class="text4">
	         <?php 
    echo dic_("Routes.HaventCreatedOrder");
    ?>
	    </div>
	<?php 
}
?>
	<br />
<?php 
closedb();
Ejemplo n.º 27
0
   	 <!-- nema da treba div-del-alert -->
   	 <div id="div-del-alert" style="display:none" title="<?php echo dic("Settings.AlertDeleteQuestion")?>">
        <?php echo dic("Settings.DelAlert")?>
     </div>

     <div id="div-edit-alert" style="display:none" title="<?php dic("Settings.ChangeAlert")?>"></div>

     <div id="div-tip-praznik" style="display:none" title="<?php echo dic_("Settings.ConfSMS")?>">
     <br>
		<table align = "center" width = "100%">
			<tr>
				<td colspan = "2" class ="text2" align = "center" style="color:#414141">
					<span class="ui-icon ui-icon-alert" style="position: absolute; top: 25px; left: 15px;"></span>
				<div style="width: 250px; padding-left: 20px; padding-bottom: 10px; text-align: center;"><?php echo dic("dinara5")?></div> </td></tr>
			<tr>
				<td style="color:#414141" class ="text2" width="90px" align = "right"><?php echo dic_("EnterPass")?> </td>
				<td style="color:#414141" class ="text2" width="150px" align = "left">
					<input type="password" class="textboxCalender corner5" id="dodTipPraznik" style="width:150px">
				</td>
			</tr>
		</table>
    </div>
    
    <div id="dialog-message" title="<?php echo dic("Reports.Message")?>" style="display:none">
	 <p>
		<span class="ui-icon ui-icon-circle-check" style="float:left; margin:0 7px 50px 0;"></span>
		<div id="div-msgbox" style="font-size:14px"></div>
	 </p>
	</div>
	
   	</body>
Ejemplo n.º 28
0
				<div id="vh-garminList-location-<?php echo $row["code"]?>" style="height: 12px; background-color: #fafafa; width:205px; padding-left:5px; padding-right:5px; padding-top:2px; padding-bottom:2px; float:left; color:#333333; font-size:10px; border-top:1px dotted #333">
					<?=dic_("Reports.Location")?>: <?= $location; ?>
				</div>
			<?php if($row["dtstart"] != ''){ ?>
				<div id="vh-garminList-start-<?php echo $row["code"]?>" style="height: 12px; background-color: #fafafa; width:205px; padding-left:5px; padding-right:5px; padding-top:2px; padding-bottom:2px; float:left; color:#333333; font-size:10px; border-top:1px dotted #333">
					<?=dic_("Tracking.Start")?>: <?= $StartDatetime->format($dtformat).''?>
				</div>
			<?php }
				if($row["dtend"] != ''){ ?>
				<div id="vh-garminList-end-<?php echo $row["code"]?>" style="height: 12px; background-color: #fafafa; width:205px; padding-left:5px; padding-right:5px; padding-top:2px; padding-bottom:2px; float:left; color:#333333; font-size:10px; border-top:1px dotted #333">
					<?=dic_("End")?>: <?= $EndDatetime->format($dtformat).''?>
				</div>
			<?php } 
				if($row["dtdelete"] != ''){ ?>
				<div id="vh-garminList-delete-<?php echo $row["code"]?>"style="height: 12px; background-color: #fafafa; width:205px; padding-left:5px; padding-right:5px; padding-top:2px; padding-bottom:2px; float:left; color:#333333; font-size:10px; border-top:1px dotted #333">
					<?=dic_("Reports.Deleted")?>: <?= $DelDatetime->format($dtformat).''?>
				</div>
			<?php } ?>
			
			</div>
			 
			 <?php } ?>
		</div>
	</div>
	
	<?php } ?>
	<!--button onclick="getGarminInfo(67)">VOZILO</button>
	<h4><?= $allowGarminVeh; ?>-Возила со Гармин</h4-->
<?php
}
closedb();
Ejemplo n.º 29
0
    </body>
</html>

<script>
	//SetHeightLite()
	iPadSettingsLite()
	top.HideLoading()
	if (Browser()=='iPad') {top.iPad_Refresh()}
		
	 var config = {
      '.chzn-select'           : {},
      '.chzn-select-deselect'  : {allow_single_deselect:true},
      '.chzn-select-no-single' : {disable_search_threshold:10},
      '.chzn-select-no-results': {no_results_text:'<?php 
echo dic_("Reports.UserNotFound");
?>
'},
      '.chzn-select-width'     : {width:"95%"}
    }
    for (var selector in config) {
      $(selector).chosen(config[selector]);
    }
	function OptionsChange(){
		var _id = $("#TipNaKorisnik").find('option:selected').val();
		if(_id == "0")
		{
			for(var i=0;i<idUsers.split(",").length-1;i++)
				$("." + idUsers.split(",")[i]).show();
		} else
		{
Ejemplo n.º 30
0
		});
   }
   
   function downloadHolidays(t) {
   	 	$.ajax({
		    url: "downloadHolidays.php?t="+t,
		    context: document.body,
		    success: function(data){
		    	if (t == 1)
		    		msgboxPetar('<?php 
echo dic_("Settings.SuccDownloadHolidays1");
?>
')
		    	if (t == 0)	
		    		msgboxPetar('<?php 
echo dic_("Settings.SuccRemoveHolidays1");
?>
')
		    		
                setTimeout(function(){
            		window.location.reload();  
                    $.ajax({
		                url: "cachereports_sett.php?cid="+'<?php 
echo session("client_id");
?>
' + "&holidays=1",
                        context: document.body,
                        success: function(data){
                        	//alert(data)
                        }
              	 	});