/** * * Function to generate the * * @param type $tripCode * @return type */ function generateGlympseLinkClient($tripCode) { $glympsAPIKey = GLYMPSE_API_KEY; $clientInfo = getTripId($tripCode, true); $params = array(); $params['destination_latlng'] = $clientInfo['tripLat'] . "," . $clientInfo['tripLng']; $params['client_number'] = clearNumber($clientInfo['passengerPhone']); $params['client_name'] = $clientInfo['passengerFirstName']; $params['duration'] = $clientInfo['garageOutInterval']; $params['destination_name'] = $clientInfo['tripAddress']; $params['glympse_message'] = "On the way.."; $params = array_map('urlencode', $params); $glympseUrl = "glympse:?src={$glympsAPIKey}&rec_type=sms&rec_addr={$params['client_number']}&dur_min={$params['duration']}&dest_ll={$params['destination_latlng']}&dest_name={$params['destination_name']}&msg_text={$params['glympse_message']}"; return $glympseUrl; }
?> " /> <div align="left" id="divContentGrid" name="divContentGrid" > <?php //style="height:100%; margin-left:8px; margin-top:8px; overflow:auto; width:100%;" Get_Formulario($_SESSION["usuario"], $pCodCaratula, $pNroExpediente, $pNroCarpeta, $ptipoJuicio); ?> </div> <!--------------------------------------------------------------------------------------------> <div align="left" id="divContentGrid" name="divContentGrid" > <?php if ($_POST) { if (ValidarCampos($pCodCaratula, $pNroExpediente, $pNroCarpeta, $ptipoJuicio)) { echo getGrid(clearString($pidUsuario), clearString($pCodCaratula), clearNumber($pNroExpediente), clearNumber($pNroCarpeta), clearNumber($ptipoJuicio)); } else { echo "<h4 style='color: #FF0000;' >Los valores para algunos Campos son incorrectos<h4>"; } echo "<a href='" . $_SERVER['HTTP_REFERER'] . "'><input class='btnVolver' type='button' value=''></a>"; } ?> </div> <!--------------------------------------------------------------------------------------------> <div align="center" id="divProcesando" name="divProcesando" style="display:none"><img border="0" src="/images/waiting.gif" title="Espere por favor..."></div> <script type="text/javascript"> function CopyContent() { try { window.parent.document.getElementById('divContent').inner = document.getElementById('divContent').inner; } catch(err) {
function ValidarNumerico($text) { $result = clearNumber($text); return $result == $text; }