NeoExportEBP

Botones para pasar los datos de la pagina de neobux a un div, listos para copiar y pegar

  1. // ==UserScript==
  2. // @name NeoExportEBP
  3. // @namespace by_Bigpetroman
  4. // @description Botones para pasar los datos de la pagina de neobux a un div, listos para copiar y pegar
  5. // @author Bigpetroman
  6. // @include http://www.neobux.com/c/
  7. // @include https://www.neobux.com/c/
  8. // @include http://www.neobux.com/c/?vl*
  9. // @include https://www.neobux.com/c/?vl*
  10. // @include http://www.neobux.com/c/rl/*
  11. // @include https://www.neobux.com/c/rl/*
  12. // @include http://www.neobux.com/c/rs/*
  13. // @include https://www.neobux.com/c/rs/*
  14. // @include https://www.neobux.com/c/d/*
  15. // @icon https://img.neobux.com/imagens/texto_32.png
  16. // @version 2.7.3.1
  17. // ==/UserScript==
  18. // Changelog
  19. // version 1 liberada 04 de Enero 2012
  20. // los botones copian la información de la página en que estamos y los colocan en una ventana nueva en forma de texto
  21. // separado por punto y coma (;), listo para copiar y pegar
  22. // version 2 liberada 09 de Febrero 2012
  23. // -- se coloco la opción de elegir un formato de fecha standar como formato de fecha para los diferentes campos de fecha
  24. // la fecha será de la forma yyyy/mm/dd hh:mm, en el caso de el campo ultimo clic, como no lleva hora, se colocara como
  25. // hora las 00:00
  26. // -- el campo media, cuando NO tenga valores (muestra -.--), se regresara el valor 0.000
  27. // -- ahora los datos son pasados a un div y NO a una pestaña nueva, en chrome me dio problemas con las ventanas y por eso
  28. // decidi hacerlo con un div, y se ve mucho mejor
  29. // version 2.1 liberada 29 de Febrero 2012
  30. // se corrigio el script para cuando en el campo "Expira en" salía la palabra expirado
  31. // version 2.2 liberada 04 de Abril 2012
  32. // se agrego la opcion de poder exportar los datos de los referidos directos y rentados al mismo estilo que
  33. // los exporta NeoBux, Nombre de Referido, Referido Desde, Fecha ultimo Clic y Total Clics; la fecha es en el
  34. // mismo formato YYYYMMDD y los datos estan separados por coma
  35. // version 2.3 liberada 06 de Abril 2012
  36. // se corrigieron algunos errores
  37. // version 2.4 liberada 26 de Abril 2012
  38. // se corrigieron algunos errores
  39. // version 2.5 liberada 07 de Mayo 2012
  40. // se corrigieron algunos problemas que no dejaban crear los botones en la página de resumen
  41. // version 2.6 liberada 26 de Julio 2012
  42. // se corrigo un problema con los datos exportados de referidos directos y rentados cuando se usa el script Referrals comments for NeoBux
  43. // version 2.6.1 liberada 20 de Mayo 2013
  44. // se corrigo un problema con los datos exportados de la página resumen, en ocaciones no funcionaba el botón, ya fue corregido
  45. // version 2.6.2 liberada 06 de Julio 2013
  46. // se corrigo un problema con los datos exportados de la página de RR cuando la fecha referido desde estaba en formato relativa
  47. // version 2.6.3 liberada 04 de Octubre 2014
  48. // se realizo la corrección de los datos sobre las renovaciones, motraba el valor de hoy como valor de ayer
  49. // version 2.6.4 liberada 10 de Diciembre 2014
  50. // se corrigio un problema cuando se exportaban los datos el formato estandar y habian referidos 0 clickers, no mostraba los
  51. // datos; igualmente se agregaron los botones Copiar - Pegar en la venta de exportar datos de RD y RR, el botón COPIAR aparece
  52. // en todas las ventanas y permite almacenar la información de cada página en el localStorage, luego en la última ventana con el
  53. // boton PEGAR muestra toda la información en una única ventana
  54. // version 2.6.5 liberada 01 de Marzo 2016, se realizaron unos cambios ya que la pagina de resumen daba errores en unos idiomas
  55. // y se reprogramo la parte que muestra el botón en la página
  56. // version 2.7.0 liberada el 26 de noviembre 2016, se realizaron ajustes en el codigo, se mejoro la aparcienda de la ventana de datos
  57. // se agrego la opcion de copiar toda la información en la utlima ventan de RR (para hacer un solo copy and paste para nuestro archivo)
  58. // version 2.7.1 liberada el 28 de noviembre 2016, se realizaron ajustes para mostrar de forma ordenada los datos de los RR y RD
  59. // version 2.7.2 liberada el 13 de Enero 2017, se realizaron ajustes al código, en ocasiones se borraban las paginas de RR ya cargadas
  60.  
  61. //***********************************************************************************
  62. //**** Establecemos las Variables Globales *****
  63. //***********************************************************************************
  64. /* variable para identificar la página; 0 para la de resumen, estadisticas y otras; 1 para las paginas de referidos
  65. directos y rentados donde será realmente util*/
  66. var ebp_Tipo_Pag = 0;
  67. /* Bloque de idiomas para las tablas de referidos directos y rentados, para el caso de las fechas donde puede aparecer
  68. ayer, hoy y sin clics aún */
  69. var ebp_isToday = null;
  70. var ebp_isYesterday = null;
  71. var ebp_isTomorrow = null;
  72. var ebp_isExpired = null;
  73. var ebp_noClick = null;
  74. var ebp_ffRelativa = null;
  75. var ebp_ffExacta = null;
  76. /* estas variables son para los texto a mostrar en los datos exportados, sobre todo para los datos
  77. de la paginas de resumen y estadísticas*/
  78. var ebp_CPTotalHoy = null;
  79. var ebp_CPFijosFHoy = null;
  80. var ebp_CPMicroHoy = null;
  81. var ebp_CPMiniHoy = null;
  82. var ebp_CPProlongadoHoy = null;
  83. var ebp_CPStandarHoy = null;
  84. var ebp_CPFijosNHoy = null;
  85. var ebp_DirectText = null;
  86. var ebp_TotClicsHoy = null;
  87. var ebp_TotClicsAyer = null;
  88. var ebp_TotClics10Dias = null;
  89. var ebp_ClicsHoyRD = null;
  90. var ebp_ClicsAyerRD = null;
  91. var ebp_Clics10DiasRD = null;
  92. var ebp_ClicsHoyRR = null;
  93. var ebp_ClicsAyerRR = null;
  94. var ebp_Clics10DiasRR = null;
  95. var ebp_MontReciclaHoy = null;
  96. var ebp_MontReciclaAyer = null;
  97. var ebp_MontRecicla10Dias = null;
  98. var ebp_ReciclaGratisHoy = null;
  99. var ebp_MontRenuevaHoy = null;
  100. var ebp_MontRenuevaAyer = null;
  101. var ebp_MontRenueva10Dias = null;
  102. var ebp_MontRenuevaHoyManual = "null";
  103. var ebp_MontRenuevaAyerManual = "null";
  104. var ebp_MontRenueva10DiasManual = "null";
  105. var ebp_MontRenuevaHoyAuto = null;
  106. var ebp_MontRenuevaAyerAuto = null;
  107. var ebp_MontRenueva10DiasAuto = null;
  108. var ebp_MontAutoPagoHoy = null;
  109. var ebp_MontAutoPagoAyer = null;
  110. var ebp_MontAutoPago10Dias = null;
  111. /* estas variables son para el texto mostrado en las patallas de exportación */
  112. var ebp_TextConfig = null;
  113. var ebp_TextDatos = null;
  114. var ebp_TextGuarda = null;
  115. var ebp_TextSalir = null;
  116. var ebp_TextCopiar = null;
  117. var ebp_TextPegar = null;
  118. var ebp_TextMensL1 = null;
  119. var ebp_TextMensL2 = null;
  120. var ebp_TextMensL3 = null;
  121. var ebp_TextMensL4 = null;
  122. var ebp_TextMensL5 = null;
  123. var ebp_TextMensL6 = null;
  124. var ebp_TextMensL7 = null;
  125. var ebp_LastUpdate = null;
  126. var ebp_MensLU = null;
  127. var ebp_Idioma = 0;
  128. /* estas variables son para la pantalla de exportacion de datos */
  129. var ebp_AnchoED = 0;
  130. var ebp_AltoED = 0;
  131. /* esta variable es para el tipo de formato de fecha a regresar
  132. si es 1, se regresa la fecha en formato standar, si es 0 se regresa tal cual como esta en la celda */
  133. var nFormaFecha = 0;
  134. var opcionesFecha = null;
  135. opcionesFecha = {
  136. year: "numeric",
  137. month: "short",
  138. day: "numeric",
  139. hour: "2-digit",
  140. minute: "2-digit"
  141. };
  142. var agruparDatosEBP = null;
  143. var fechaStandardEBP = null;
  144. var fechaNeobuxEBP = null;
  145.  
  146. //***********************************************************************************
  147. //**** INICIO DE FUNCIONES AUXILIARES *****
  148. //***********************************************************************************
  149.  
  150. //***********************************************************************************
  151. //**** Creamos la Cookie(la copie de NeoBuxOX) *****
  152. //**** Arguments: *****
  153. //**** c_name *****
  154. //**** value *****
  155. //**** exdays *****
  156. //**** Cookie value: Option //este valor puede ser 0 para fecha Standar *****
  157. //**** o 1 para fecha normal *****
  158. //***********************************************************************************
  159. function setCookie(c_name, value, exdays) {
  160. // declaramos las variables
  161. var exdate, fechaVacia, c_value;
  162. // establecemos la fecha de hoy
  163. exdate = new Date();
  164. exdate.setDate(exdate.getDate() + exdays);
  165. // establecemos la fecha como vacia para cuando NO se indique la fecha de finalización
  166. fechaVacia = "";
  167. if (!exdays) {
  168. //c_value = escape(value) + "";
  169. c_value = encodeURIComponent(value) + fechaVacia;
  170. } else {
  171. //c_value = escape(value) + "; expires=" + exdate.toUTCString();
  172. c_value = encodeURIComponent(value) + "; expires=" + exdate.toUTCString();
  173. }
  174. //c_value = escape(value) + ((exdays == null) ? "" : "; expires=" + exdate.toUTCString());
  175. c_value = c_value + "; path=/";
  176. document.cookie = c_name + "=" + c_value;
  177. }
  178.  
  179. //***********************************************************************************
  180. //**** función para obtener valores de una Cookie *****
  181. //**** Get cookie value (la copie de NeoBuxOX) *****
  182. //***********************************************************************************
  183. function getCookie(c_name) {
  184. var i, x, y, ARRcookies;
  185. ARRcookies = document.cookie.split(";");
  186. for (i = 0; i < ARRcookies.length; i += 1) {
  187. x = ARRcookies[i].substr(0, ARRcookies[i].indexOf("="));
  188. y = ARRcookies[i].substr(ARRcookies[i].indexOf("=") + 1);
  189. x = x.replace(/^\s+|\s+$/g, "");
  190. if (x == c_name) {
  191. //return unescape(y);
  192. return decodeURIComponent(y);
  193. }
  194. }
  195. return null;
  196. }
  197. //***********************************************************************************
  198. //*** Funcion para leer las opciones guardadas en la cookie *****
  199. //***********************************************************************************
  200. function opcionesSeteoEBP() {
  201. var opcionesGuardadasEBP;
  202. // leemos las opciones guardadas en la cookie
  203. opcionesGuardadasEBP = getCookie("ebp_NeoExport").split("-");
  204. if (opcionesGuardadasEBP[0] == 1) {
  205. fechaStandardEBP = true;
  206. } else {
  207. fechaStandardEBP = false;
  208. }
  209. if (opcionesGuardadasEBP[1] == 1) {
  210. fechaNeobuxEBP = true;
  211. } else {
  212. fechaNeobuxEBP = false;
  213. }
  214. if (opcionesGuardadasEBP[2] == 1) {
  215. agruparDatosEBP = true;
  216. } else {
  217. agruparDatosEBP = false;
  218. }
  219. }
  220. //***********************************************************************************
  221. //****esta función deselecciona las opciones del cuadro según corresponda *****
  222. //***********************************************************************************
  223. function ebpOpcionesCheckBox() {
  224. var botonoOpcionesFechaEBP;
  225. botonoOpcionesFechaEBP = document.getElementById("opcionesFechaStandardEBP");
  226. //si el botón de fechas standard es seleccionado, deseleccionamos el boton de exportar datos en el
  227. //formato de neobux
  228. if (botonoOpcionesFechaEBP.checked) {
  229. document.getElementById("opcionesFechaNeobuxEBP").checked = 0;
  230. }
  231. }
  232. function ebpOpcionesCheckBox_2() {
  233. var botonoOpcionesFechaEBP;
  234. botonoOpcionesFechaEBP = document.getElementById("opcionesFechaNeobuxEBP");
  235. //si el botón de exportar datos en formato de neobux es seleccionado, deseleccionamos el boton de
  236. //fechas standard
  237. if (botonoOpcionesFechaEBP.checked) {
  238. document.getElementById("opcionesFechaStandardEBP").checked = 0;
  239. }
  240. }
  241.  
  242. //***********************************************************************************
  243. //****esta función oculta o muestra la ventana de EBP *****
  244. //***********************************************************************************
  245. function ocultaMuestraFormulario() {
  246. var formularioExporta;
  247. //obtenemos el formulario de Exportación, si está oculto lo mostramos o sino lo ocultamos
  248. formularioExporta = document.getElementById("EBPformularioExporta");
  249. if (formularioExporta.style.display == "none") {
  250. formularioExporta.style.display = "block";
  251. } else {
  252. formularioExporta.style.display = "none";
  253. }
  254. }
  255.  
  256. //***********************************************************************************
  257. //****esta función guarda los datos del cuadro de opciones *****
  258. //***********************************************************************************
  259. function opcionarGuardarEBP() {
  260. var botonoOpFechaStandardEBP, botonoOpFechaNeobuxEBP, botonoOpAgruparEBP, sDatosCheckBox;
  261. botonoOpFechaStandardEBP = 0;
  262. botonoOpFechaNeobuxEBP = 0;
  263. botonoOpAgruparEBP = 0;
  264. fechaStandardEBP = false;
  265. fechaNeobuxEBP = false;
  266. agruparDatosEBP = false;
  267. if (document.getElementById('opcionesFechaStandardEBP').checked) {
  268. botonoOpFechaStandardEBP = 1;
  269. fechaStandardEBP = true;
  270. }
  271. if (document.getElementById('opcionesFechaNeobuxEBP').checked) {
  272. botonoOpFechaNeobuxEBP = 1;
  273. fechaNeobuxEBP = true;
  274. }
  275. if (document.getElementById('opcionesAgruparDatosEBP').checked) {
  276. botonoOpAgruparEBP = 1;
  277. agruparDatosEBP = true;
  278. }
  279. sDatosCheckBox = botonoOpFechaStandardEBP + "-" + botonoOpFechaNeobuxEBP + "-" + botonoOpAgruparEBP;
  280. setCookie("ebp_NeoExport", sDatosCheckBox, 365);
  281. ocultaMuestraFormulario();
  282. }
  283.  
  284. //***********************************************************************************
  285. //**** esta función copia los datos del TextArea en localStorage *****
  286. //**** se crea el registro de la forma CLAVE, VALOR *****
  287. //**** donde CLAVE sera la propia clave mas la fecha en formato (DDMMYYHHMM) *****
  288. //***********************************************************************************
  289. function copiarTextAreaEBP() {
  290. // declaramos las variables
  291. var sEBPKey, ebp_NumPagina, iIndice, ElTexto, indicePagina, botonCopiar, fechaGuarda, textoFecha, textoClave, numeroPagina, textoMostrar, lineaMensaje, sCodigo, textoCompara;
  292. fechaGuarda = new Date();
  293. textoFecha = fechaGuarda.getDate().double() + "" + (fechaGuarda.getMonth() + 1).double() + "" + fechaGuarda.getFullYear() + "" + fechaGuarda.getHours().double() + "" + fechaGuarda.getMinutes().double();
  294. //si el tipo de página es 1 (referidos rentados) o 2 (referidos directos),
  295. if (ebp_Tipo_Pag === 1 || ebp_Tipo_Pag === 2) {
  296. if (ebp_Tipo_Pag === 1) {
  297. sEBPKey = "EBPPAGERR";
  298. } else {
  299. sEBPKey = "EBPPAGERD";
  300. }
  301. // validamos si funicona el localstorage
  302. if (localStorage) {
  303. //obtenemos el número de la página para guardar el texto
  304. ebp_NumPagina = document.getElementById("pagina");
  305. //obtenemos el texto del textarea
  306. ElTexto = document.getElementById("ventanaEBPtextArea").value;
  307. ElTexto = ElTexto.replace(/&nbsp;/gi, "");
  308. // Guardar datos en el almacén de la sesión actual
  309. if (ebp_NumPagina === null) {
  310. indicePagina = sEBPKey + "001";
  311. numeroPagina = "001";
  312. } else {
  313. numeroPagina = (ebp_NumPagina.selectedIndex + 1);
  314. if (numeroPagina < 10) {
  315. numeroPagina = "00" + numeroPagina;
  316. } else {
  317. if (numeroPagina < 100) {
  318. numeroPagina = "0" + numeroPagina;
  319. }
  320. }
  321. indicePagina = sEBPKey + numeroPagina;
  322. }
  323. //antes de guardar, borramos cualquier valor de RD o RR si la página es la primera
  324. if (parseInt(numeroPagina, 10) === 1) {
  325. for (iIndice = window.localStorage.length - 1; iIndice >= 0 ; iIndice -= 1) {
  326. sCodigo = window.localStorage.key(iIndice);
  327. if (sCodigo.substring(0, 9) == sEBPKey) {
  328. window.localStorage.removeItem(sCodigo);
  329. }
  330. }
  331. } else {
  332. //antes de guardar, borramos cualquier valor anterior de dicha pagina
  333. for (iIndice = 0; iIndice < window.localStorage.length; iIndice += 1) {
  334. sCodigo = window.localStorage.key(iIndice);
  335. if (sCodigo.substring(0, 12) == indicePagina) {
  336. window.localStorage.removeItem(sCodigo);
  337. break;
  338. }
  339. }
  340. }
  341. //guardamos los datos nuevos
  342. window.localStorage.setItem(indicePagina + textoFecha, ElTexto);
  343. //al copiar los datos, colocamos el botón en verde
  344. botonCopiar = document.getElementById("ventanaEBPBtnCopiar");
  345. botonCopiar.setAttribute("class", "button medium green");
  346. if (ebp_Idioma === "es") {
  347. textoMostrar = ebp_LastUpdate + ": " + fechaGuarda.toLocaleDateString("es-ES", opcionesFecha);
  348. } else {
  349. textoMostrar = ebp_LastUpdate + ": " + fechaGuarda.toLocaleDateString("en-US", opcionesFecha);
  350. }
  351. lineaMensaje = document.getElementById('EBPformularioExporta').getElementsByTagName('table')[1].getElementsByTagName('td')[0];
  352. lineaMensaje.textContent = textoMostrar;
  353. } else {
  354. alert("El navegador NO soporta Local Storage!");
  355. }
  356. } else {
  357. if (ebp_Tipo_Pag === 0) {
  358. sEBPKey = "EBPPAGERES";
  359. } else {
  360. sEBPKey = "EBPPAGEEST";
  361. }
  362. if (localStorage) {
  363. //Si es la pagina de resumen, borramos el localstorage
  364. if (sEBPKey === "EBPPAGERES") {
  365. //como es la primera página de resumen, borramos del localstorage toda nuestra informacion
  366. for (iIndice = window.localStorage.length - 1; iIndice >= 0 ; iIndice -= 1) {
  367. sCodigo = window.localStorage.key(iIndice);
  368. if (sCodigo.indexOf("EBPPAGE") !== -1) {
  369. window.localStorage.removeItem(sCodigo);
  370. }
  371. }
  372. } else {
  373. //antes de guardar, borramos cualquier valor anterior de dicha pagina
  374. for (iIndice = 0; iIndice < window.localStorage.length; iIndice += 1) {
  375. sCodigo = window.localStorage.key(iIndice);
  376. if (sCodigo.indexOf("EBPPAGEEST") !== -1) {
  377. window.localStorage.removeItem(sCodigo);
  378. break;
  379. }
  380. }
  381. }
  382. //obtenemos el texto del textarea
  383. ElTexto = document.getElementById("ventanaEBPtextArea").value;
  384. ElTexto = ElTexto.replace(/&nbsp;/gi, "");
  385. // Guardar datos en el almacén de la sesión actual
  386. window.localStorage.setItem(sEBPKey + textoFecha, ElTexto);
  387. //al copiar los datos, colocamos el botón en verde
  388. botonCopiar = document.getElementById("ventanaEBPBtnCopiar");
  389. botonCopiar.setAttribute("class", "button medium green");
  390. if (ebp_Idioma === "es") {
  391. textoMostrar = ebp_LastUpdate + ": " + fechaGuarda.toLocaleDateString("es-ES", opcionesFecha);
  392. } else {
  393. textoMostrar = ebp_LastUpdate + ": " + fechaGuarda.toLocaleDateString("en-US", opcionesFecha);
  394. }
  395. lineaMensaje = document.getElementById('EBPformularioExporta').getElementsByTagName('table')[1].getElementsByTagName('td')[0];
  396. lineaMensaje.textContent = textoMostrar;
  397. } else {
  398. alert('El navegador NO soporta Local Storage!');
  399. }
  400. }
  401. }
  402.  
  403. //***********************************************************************************
  404. //**** funcion para leer en orden secuencial los datos de RD o RR *****
  405. //***********************************************************************************
  406. function LeerRDyRR(sCodigoRef, ultPagDat) {
  407. var iIndice, iIndicePag, datosReferidos, numeroPagina, sEBPKey, sCodigoCompara;
  408. datosReferidos = "";
  409. //Leemos las páginas de los RR
  410. for (iIndicePag = 1; iIndicePag <= ultPagDat; iIndicePag += 1) {
  411. numeroPagina = iIndicePag;
  412. if (iIndicePag < 10) {
  413. numeroPagina = "00" + iIndicePag;
  414. } else {
  415. if (iIndicePag < 100) {
  416. numeroPagina = "0" + iIndicePag;
  417. }
  418. }
  419. for (iIndice = 0; iIndice < window.localStorage.length; iIndice += 1) {
  420. sEBPKey = window.localStorage.key(iIndice);
  421. sCodigoCompara = sCodigoRef + numeroPagina;
  422. if (sEBPKey.substring(0, 12) === sCodigoCompara){
  423. datosReferidos = datosReferidos + window.localStorage.getItem(sEBPKey) + "\n";
  424. }
  425. }
  426. }
  427. return datosReferidos;
  428. }
  429. //***********************************************************************************
  430. //****esta función pasa los datos del localStorage al textarea *****
  431. //***********************************************************************************
  432. function pegarAlTextAreaEBP() {
  433. //declaramos las variables;
  434. var sEBPKey, ebp_NumPagina, iIndice, ElTexto, indicePagina, botonPegar, paginaActual, cajaDeTexto, textoBase, elTextoRD, sCodigo, ultPagRD, ultPagRR, pagTempo, iIndicePag, numeroPagina;
  435. ultPagRD = 0;
  436. ultPagRR = 0;
  437. //si el tipo de página es 1 (referidos rentados) o 2 (referidos directos)
  438. if (ebp_Tipo_Pag === 1 || ebp_Tipo_Pag === 2) {
  439. //obtenemos el número de la última página
  440. ebp_NumPagina = document.getElementById("pagina");
  441. // Guardar datos en el almacén de la sesión actual
  442. if (ebp_NumPagina === null) {
  443. numeroPagina = 1;
  444. } else {
  445. numeroPagina = (ebp_NumPagina.selectedIndex + 1);
  446. }
  447. //si es la pagina de RR, verificamos si está activa la opcion de agrupar datos
  448. if (ebp_Tipo_Pag === 1) {
  449. sEBPKey = "EBPPAGERR";
  450. //SI está activa la opción de agrupar datos, los agrupamos, sino solamente pegamos los datos de los RR
  451. if (agruparDatosEBP === true) {
  452. textoBase = "********************************************************************************" + "\n";
  453. textoBase = textoBase + "* Summary" + "\n";
  454. textoBase = textoBase + "********************************************************************************" + "\n";
  455. textoBase = textoBase + "SummaryTexto" + "\n";
  456. textoBase = textoBase + "********************************************************************************" + "\n";
  457. textoBase = textoBase + "* Statistics" + "\n";
  458. textoBase = textoBase + "********************************************************************************" + "\n";
  459. textoBase = textoBase + "StatisticsTexto" + "\n";
  460. textoBase = textoBase + "********************************************************************************" + "\n";
  461. textoBase = textoBase + "* Direct referrals" + "\n";
  462. textoBase = textoBase + "********************************************************************************" + "\n";
  463. textoBase = textoBase + "DirectreferralsTexto" + "\n";
  464. textoBase = textoBase + "********************************************************************************" + "\n";
  465. textoBase = textoBase + "* Rented referrals" + "\n";
  466. textoBase = textoBase + "********************************************************************************" + "\n";
  467. textoBase = textoBase + "RentedreferralsTexto" + "\n";
  468. textoBase = textoBase + "********************************************************************************";
  469. elTextoRD = "";
  470. ElTexto = "";
  471. //para el resumen y estadisticas, sustituimos la clave con el texto
  472. for (iIndice = 0; iIndice < window.localStorage.length; iIndice += 1) {
  473. sEBPKey = window.localStorage.key(iIndice);
  474. switch (sEBPKey.substring(0, 9)) {
  475. case "EBPPAGERE": //pagina Resumen
  476. textoBase = textoBase.replace("SummaryTexto", window.localStorage.getItem(sEBPKey));
  477. break;
  478. case "EBPPAGEES": //pagina estadisticas
  479. textoBase = textoBase.replace("StatisticsTexto", window.localStorage.getItem(sEBPKey));
  480. break;
  481. case "EBPPAGERR": //Referidos rentados
  482. pagTempo = parseInt(sEBPKey.substring(10, 12), 10);
  483. if (pagTempo > ultPagRR){
  484. ultPagRR = pagTempo;
  485. }
  486. break;
  487. case "EBPPAGERD": //Referidos directos
  488. pagTempo = parseInt(sEBPKey.substring(10, 12), 10);
  489. if (pagTempo > ultPagRD){
  490. ultPagRD = pagTempo;
  491. }
  492. break;
  493. default:
  494. break;
  495. }
  496. }
  497. //Leemos las páginas de los RD
  498. elTextoRD = LeerRDyRR("EBPPAGERD", ultPagRD);
  499. //Leemos las páginas de los RR
  500. ElTexto = LeerRDyRR("EBPPAGERR", ultPagRR);
  501. textoBase = textoBase.replace("DirectreferralsTexto", elTextoRD);
  502. textoBase = textoBase.replace("RentedreferralsTexto", ElTexto);
  503. ElTexto = textoBase;
  504. } else {
  505. ultPagRR = numeroPagina;
  506. //procesamos los datos ya que estamos en la última o unica página
  507. //buscamos todos los datos almacenados con el texto EBPPAGERR* y lo copiamos en el textarea
  508. ElTexto = LeerRDyRR("EBPPAGERR", ultPagRR);
  509. }
  510. } else {
  511. ultPagRD = numeroPagina;
  512. //procesamos los datos ya que estamos en la última o unica página
  513. //buscamos todos los datos almacenados con el texto EBPPAGERD y lo copiamos en el textarea
  514. ElTexto = LeerRDyRR("EBPPAGERD", ultPagRD);
  515. }
  516. // Copiamos la información en el cuadro de texto
  517. cajaDeTexto = document.getElementById("ventanaEBPtextArea");
  518. cajaDeTexto.value = "";
  519. cajaDeTexto.value = ElTexto;
  520. //al copiar los datos, colocamos el botón en verde
  521. botonPegar = document.getElementById("ventanaEBPBtnPegar");
  522. botonPegar.setAttribute("class", "button medium green");
  523. } else {
  524. alert("No Disponible!");
  525. }
  526. }
  527.  
  528. //***********************************************************************************
  529. //**** Creamos el Botón de NeoEstadisticas BigPetorman *****
  530. //***********************************************************************************
  531. function crearBotonEBP(btnNombre, btnFuncion) {
  532. var botonEBP, botonImagen, bontonImgImagen, botonTexto;
  533. botonEBP = document.createElement("table");
  534. botonEBP.setAttribute("id", "NeoExportEBP");
  535. botonImagen = document.createElement("td");
  536. botonImagen.setAttribute("style", "padding-right:1px;");
  537. botonImagen.setAttribute("align", "left");
  538.  
  539. bontonImgImagen = document.createElement("img");
  540. bontonImgImagen.setAttribute("src", "https://img.neobux.com/imagens/texto_32.png");
  541. bontonImgImagen.setAttribute("height", "20");
  542. bontonImgImagen.setAttribute("border", "0");
  543. bontonImgImagen.setAttribute("width", "20");
  544. botonImagen.appendChild(bontonImgImagen);
  545.  
  546. botonTexto = document.createElement("td");
  547. botonTexto.innerHTML = btnNombre;
  548.  
  549. botonEBP.appendChild(botonImagen);
  550. botonEBP.appendChild(botonTexto);
  551.  
  552. botonEBP.addEventListener('click', btnFuncion, false);
  553. botonEBP.style.textAlign = "center";
  554. botonEBP.style.padding = "2px";
  555. botonEBP.style.display = "block";
  556. botonEBP.style.cursor = "pointer";
  557. //anexamos el boton
  558. document.getElementById("menu_w").appendChild(botonEBP);
  559. }
  560.  
  561. //***********************************************************************************
  562. //****esta Crea el div para los datos y/o opciones *****
  563. //***********************************************************************************
  564. function crearFormularioEBP(nTipo) {
  565. //declaramos las variables
  566. var numeroPagina, opcionBtnPegar, opcionBtnCopiar, ventanaEBP, subTablaEBP, subFilaEBP, subColumnaEBP, subImagenEBP, subParrafoEBP, subSpanEBP, textAreaEBP, textoDiv;
  567. // leemos las opciones guardadas en la cookie
  568. opcionesSeteoEBP();
  569. // Creamos la Ventana para los Datos a Exportar
  570. if (nTipo === 2) {
  571. // Si la página es la última, se activa el botón de PEGAR, de lo contrario NO (RR)
  572. if (ebp_Tipo_Pag === 1) {
  573. opcionBtnCopiar = "visible";
  574. numeroPagina = document.getElementById("pagina");
  575. if (numeroPagina === null) {
  576. // si es nulo el numero de pagina igualmente habilitamos el botón
  577. opcionBtnPegar = "visible";
  578. } else {
  579. //verificamos si la página actual es igual a la última página
  580. if ((numeroPagina.selectedIndex + 1) === numeroPagina.length) {
  581. opcionBtnPegar = "visible";
  582. } else {
  583. opcionBtnPegar = "hidden";
  584. }
  585. }
  586. } else {
  587. // Si la página es la última, se activa el botón de PEGAR, de lo contrario NO (RD)
  588. if (ebp_Tipo_Pag === 2) {
  589. opcionBtnCopiar = "visible";
  590. numeroPagina = document.getElementById("pagina");
  591. if (numeroPagina === null) {
  592. // si es nulo el numero de pagina igualmente habilitamos el botón
  593. opcionBtnPegar = "visible";
  594. } else {
  595. //verificamos si la página actual es igual a la última página
  596. if ((numeroPagina.selectedIndex + 1) === numeroPagina.length) {
  597. opcionBtnPegar = "visible";
  598. } else {
  599. opcionBtnPegar = "hidden";
  600. }
  601. }
  602. //si está activa la opcion de agrupardatos, deshabilitamos el botón de pegar en lo RD
  603. if (agruparDatosEBP === true) {
  604. opcionBtnPegar = "hidden";
  605. }
  606. } else {
  607. opcionBtnPegar = "hidden";
  608. opcionBtnCopiar = "hidden";
  609.  
  610. // si está activa la opción de agrupar datos, activamos el botón copiar
  611. if (agruparDatosEBP === true) {
  612. opcionBtnCopiar = "visible";
  613. }
  614. }
  615. }
  616. // ahora si creamos el DIV contenedor y establecemos su tamaño
  617. // ahora si creamos el DIV contenedor y establecemos su tamaño
  618. ventanaEBP = document.createElement("div");
  619. ventanaEBP.setAttribute("id", "EBPformularioExporta");
  620. ventanaEBP.style.position = "absolute";
  621. ventanaEBP.style.top = 0;
  622. ventanaEBP.style.bottom = 0;
  623. ventanaEBP.style.right = 0;
  624. ventanaEBP.style.left = 0;
  625. ventanaEBP.style.margin = "auto";
  626. ventanaEBP.style.width = ebp_AnchoED + "px";
  627. ventanaEBP.style.height = ebp_AltoED + "px";
  628. ventanaEBP.style.background = "#FFF";
  629. ventanaEBP.style.border = "1px solid #333";
  630. ventanaEBP.style.padding = "10px";
  631. ventanaEBP.style.display = "none";
  632. textoDiv = '<table style="width: 100%;"><tr style="width: 100%;"><td style="width: 26px; text-align: left;"><img src="https://img.neobux.com/imagens/texto_32.png" style="border: 0px;">';
  633. textoDiv = textoDiv + '</td><td style="font-size: 14px; font-weight: bold; padding-left: 5px; font-family: Arial; text-align: left;">NeoExportEBP ' + ebp_TextDatos + '</td>';
  634. textoDiv = textoDiv + '<td style="text-align: right;"><a id="ventanaEBPBtnCerrar" class="button medium black" onselectstart="return false;"><span>' + ebp_TextSalir + '</span></a></td></tr></table>';
  635. textoDiv = textoDiv + '<textarea id="ventanaEBPtextArea" onmouseover="this.select();" onmouseup="this.select();" onmousedown="this.select();" style="width: ' + (ebp_AnchoED - 5) + 'px; height: ' + (ebp_AltoED - 70) + 'px; resize: none;"></textarea>';
  636. textoDiv = textoDiv + '<tr style="width: 100%; height: 4px;"></tr><table style="width: 100%;"><tr style="width: 100%;"><td style="width: 80%; font-size: 12px; font-weight: bold; padding-left: 5px; font-family: Arial; text-align: left;"></td>';
  637. textoDiv = textoDiv + '<td style="width: 10%; visibility: ' + opcionBtnPegar + ';"><a id="ventanaEBPBtnPegar" class="button medium grey" onselectstart="return false;"><span>' + ebp_TextPegar + '</span></a></td>';
  638. textoDiv = textoDiv + '<td style="width: 10%; visibility: ' + opcionBtnCopiar + ';"><a id="ventanaEBPBtnCopiar" class="button medium grey" onselectstart="return false;"><span>' + ebp_TextCopiar + '</span></a></td></tr></table>';
  639. ventanaEBP.innerHTML = textoDiv;
  640. // Lo insertas al final del body
  641. document.body.appendChild(ventanaEBP);
  642. //asignamos las funciones a los botones Cerrar, Copiar y Pegar
  643. document.getElementById("ventanaEBPBtnCerrar").onclick = function () {ocultaMuestraFormulario()};
  644. document.getElementById("ventanaEBPBtnPegar").onclick = function () {pegarAlTextAreaEBP()};
  645. document.getElementById("ventanaEBPBtnCopiar").onclick = function() {copiarTextAreaEBP()};
  646. // Creamos la Ventana para las opciones
  647. } else {
  648. // ahora si creamos el DIV contenedor para las opciones
  649. ventanaEBP = document.createElement("div");
  650. ventanaEBP.setAttribute("id", "EBPformularioExporta");
  651. ventanaEBP.style.display = "none";
  652. ventanaEBP.style.position = "absolute";
  653. ventanaEBP.style.top = 0;
  654. ventanaEBP.style.bottom = 0;
  655. ventanaEBP.style.right = 0;
  656. ventanaEBP.style.left = 0;
  657. ventanaEBP.style.margin = "auto";
  658. ventanaEBP.style.width = ebp_AnchoED + "px";
  659. ventanaEBP.style.height = ebp_AltoED + "px";
  660. ventanaEBP.style.background = "#FFF";
  661. ventanaEBP.style.border = "1px solid #333";
  662. ventanaEBP.style.padding = "10px";
  663. textoDiv = '<table style="width: 100%;"><tr style="width: 100%;"><td style="width: 26px; text-align: left;"><img src="https://img.neobux.com/imagens/texto_32.png" style="border: 0px;"></td>';
  664. textoDiv = textoDiv + '<td style="font-size: 14px; font-weight: bold; padding-left: 5px; font-family: Arial; text-align: left;">NeoExportEBP ' + ebp_TextConfig + '</td><td style="text-align: right; width: 10%;">';
  665. textoDiv = textoDiv + '<a id="ventanaEBPBtnGuardar" class="button medium black" onselectstart="return false;"><span>' + ebp_TextGuarda + '</span></a></td><td style="text-align: right; width: 10%;">';
  666. textoDiv = textoDiv + '<a id="ventanaEBPBtnCerrar" class="button medium black" onselectstart="return false;"><span>' + ebp_TextSalir + '</span></a></td></tr></table>';
  667. textoDiv = textoDiv + '<table style="width: ' + (ebp_AnchoED - 5) + 'px; border: 1px solid rgb(51, 51, 51);"><tr style="width: 100%;"><td><label style="font-size: 12px; padding: 10px;">' + ebp_TextMensL1 + '</label>';
  668. textoDiv = textoDiv + '<input id="opcionesFechaStandardEBP" type="checkbox" name="opcionesFechaNeobuxEBP" value="' + fechaStandardEBP + '" style="padding: 4px;"></td></tr><tr style="width: 100%; height: 4px;"><td></td></tr>';
  669. textoDiv = textoDiv + '<tr style="width: 100%;"><td><span style="padding: 4px; font-size: 10px;">' + ebp_TextMensL2 + ' <br />' + ebp_TextMensL3 + '</span></td></tr>';
  670. textoDiv = textoDiv + '<tr style="width: 100%; height: 4px;"><td></td></tr><tr style="width: 100%;"><td><label style="padding: 10px; font-size: 12px;">' + ebp_TextMensL4 + '</label>';
  671. textoDiv = textoDiv + '<input id="opcionesFechaNeobuxEBP" type="checkbox" name="opcionesFechaNeobuxEBP" value="' + fechaNeobuxEBP + '" style="padding: 4px;"></td></tr><tr style="width: 100%; height: 4px;"><td></td></tr></table>';
  672. textoDiv = textoDiv + '<table style="width: 495px;"><tr style="width: 100%;"><td><span style="padding: 4px; font-size: 10px; width: 100%;">' + ebp_TextMensL5 + '</span></td></tr>';
  673. textoDiv = textoDiv + '<tr style="width: 100%; height: 8px;"><td></td></tr></table><table style="width: 495px; border: 1px solid rgb(51, 51, 51);"><tr style="width: 100%;"><td><label style="font-size: 12px; padding: 10px;">' + ebp_TextMensL6 + '</label>';
  674. textoDiv = textoDiv + '<input id="opcionesAgruparDatosEBP" type="checkbox" name="opcionesAgruparDatosEBP" value="1" style="padding: 4px;"></td></tr><tr style="width: 100%; height: 4px;"><td></td></tr>';
  675. textoDiv = textoDiv + '<tr style="width: 100%;"><td><span style="padding: 4px; font-size: 10px;">' + ebp_TextMensL7 + '</span></td></tr></table>';
  676. ventanaEBP.innerHTML = textoDiv;
  677. // Lo insertas al final del body
  678. document.body.appendChild(ventanaEBP);
  679. //asignamos las funciones a los botones Cerrar, guardar y a las checkbox
  680. document.getElementById("ventanaEBPBtnCerrar").onclick = function () {ocultaMuestraFormulario()};
  681. document.getElementById("ventanaEBPBtnGuardar").onclick = function () {opcionarGuardarEBP()};
  682. document.getElementById("opcionesFechaStandardEBP").onclick = function () {ebpOpcionesCheckBox()};
  683. document.getElementById("opcionesFechaNeobuxEBP").onclick = function () {ebpOpcionesCheckBox_2()};
  684. }
  685. }
  686. //***********************************************************************************
  687. //**** función para mostrar la fecha de la última actualizacion de datos *****
  688. //***********************************************************************************
  689. function mostrarUltAct(tipoVentana) {
  690. var numeroPagina, sEBPKey, ultimaFecha, iIndice, sClave, lineaMensaje, fechaHoy, msecPerMinute, msecPerHour, msecPerDay, intervaloHrs, intervaloMin, textoMostrar;
  691. opcionesSeteoEBP();
  692. //obtenemos el texto a buscar en el localstorage
  693. if (tipoVentana === "EBPPAGERR" || tipoVentana === "EBPPAGERD") {
  694. numeroPagina = document.getElementById("pagina");
  695. if (numeroPagina === null) {
  696. numeroPagina = 1;
  697. } else {
  698. numeroPagina = numeroPagina.selectedIndex + 1;
  699. }
  700. if (numeroPagina < 10) {
  701. numeroPagina = "00" + numeroPagina;
  702. } else {
  703. if (numeroPagina < 100) {
  704. numeroPagina = "0" + numeroPagina;
  705. }
  706. }
  707. sClave = tipoVentana + numeroPagina;
  708. } else {
  709. if (agruparDatosEBP !== true){
  710. lineaMensaje = document.getElementById('EBPformularioExporta').getElementsByTagName('table')[1].getElementsByTagName('td')[0];
  711. lineaMensaje.textContent = "";
  712. return;
  713. }
  714. sClave = tipoVentana;
  715. }
  716. ultimaFecha = "";
  717. for (iIndice = 0; iIndice < window.localStorage.length; iIndice += 1) {
  718. sEBPKey = window.localStorage.key(iIndice);
  719. if (sEBPKey.indexOf(sClave) !== -1) {
  720. ultimaFecha = sEBPKey.substring(sClave.length);
  721. break;
  722. }
  723. }
  724. //si no hay fecha, colocamos el mensaje, de lo contario colocamos la fecha
  725. if (ultimaFecha === "") {
  726. textoMostrar = ebp_LastUpdate + ": " + ebp_MensLU;
  727. } else {
  728. //seteamos la nueva fecha
  729. fechaHoy = new Date(ultimaFecha.substring(4, 8), ultimaFecha.substring(2, 4) - 1, ultimaFecha.substring(0, 2), ultimaFecha.substring(8, 10), ultimaFecha.substring(10, 12), '00');
  730. if (ebp_Idioma === "es") {
  731. textoMostrar = ebp_LastUpdate + ": " + fechaHoy.toLocaleDateString("es-ES", opcionesFecha);
  732. } else {
  733. textoMostrar = ebp_LastUpdate + ": " + fechaHoy.toLocaleDateString("en-US", opcionesFecha);
  734. }
  735. }
  736. lineaMensaje = document.getElementById('EBPformularioExporta').getElementsByTagName('table')[1].getElementsByTagName('td')[0];
  737. lineaMensaje.textContent = textoMostrar;
  738. }
  739. //***********************************************************************************
  740. //**** función para mostrar la ventana con los datos *****
  741. //***********************************************************************************
  742. function mostrarVentana(elTexto, tipoVentana) {
  743. // declaramos las variables
  744. var ebpTextAreaDatos;
  745. //obtenemos el campo de los datos y le pasamos los mismos
  746. ebpTextAreaDatos = document.getElementById("ventanaEBPtextArea");
  747. ebpTextAreaDatos.value = elTexto;
  748. mostrarUltAct(tipoVentana);
  749. ocultaMuestraFormulario();
  750. }
  751. //***********************************************************************************
  752. //**** Para la página de Opciones Personales *****
  753. //***********************************************************************************
  754. function mostrarVentanaOpciones() {
  755. var formularioOpciones, formularioSetting;
  756. //obtenemos el formulario de Opciones, si está oculto lo mostramos o sino lo ocultamos
  757. formularioOpciones = document.getElementById('EBPformularioExporta');
  758. if (formularioOpciones.style.display === 'none') {
  759. formularioOpciones.style.display = 'block';
  760. } else {
  761. formularioOpciones.style.display = 'none';
  762. }
  763. }
  764. //***********************************************************************************
  765. //**** función llamada trim() en la clase String *****
  766. //**** Elimina los espacios antes y despues del texto *****
  767. //***********************************************************************************
  768. String.prototype.trim = function () {
  769. var elReemplazo = "";
  770. elReemplazo = this.replace(/^\s+|\s+$/g, "");
  771. return elReemplazo;
  772. };
  773.  
  774. //***********************************************************************************
  775. //****función, que nos permite mostrar un número con dos carácteres en vez de uno****
  776. //***********************************************************************************
  777. Number.prototype.double = function () {
  778. var nm = String(this);
  779. if (nm == '0') {
  780. return nm;
  781. } else {
  782. if (nm.length < 2) {
  783. return '0' + nm;
  784. } else {
  785. return nm;
  786. }
  787. }
  788. };
  789.  
  790. //***********************************************************************************
  791. //****funcion para establecer el idioma a utilizar *****
  792. //***********************************************************************************
  793. function miIdioma() {
  794. ebp_Idioma = document.body.innerHTML.indexOf("c0 f-") + 5;
  795. ebp_Idioma = document.body.innerHTML.substring(ebp_Idioma, ebp_Idioma + 2);
  796. /*
  797. var IdiomaIngles = ["Direct;Rented;You", "Today", "Yesterday", "Tomorrow"; "Expired...", "No clicks yet", "clicks today:", "clicks yesterday:", "clicks last 10 days:", "Total own clicks:", "Fixed fuchsia clicks:", "Micro clicks:", "Mini clicks:", "Extended clicks:", "Standard clicks:", "Fixed orange clicks:", "clicks today RD:", "clicks yesterday RD:", "clicks last 10 days RD:", "clicks today RR:", "clicks yesterday RR:", "clicks last 10 days RR:", "recycling today:", "recycling yesterday:", "recycling last 10 days:", "Automatic Recycling today:", "renewal today:", "renewal yesterday:", "renewal last 10 days:", "renewal today (Manual):", "renewal yesterday (Manual):", "renewal last 10 days (Manual):", "renewal today (AutoRenew):", "renewal yesterday (AutoRenew):", "renewal last 10 days (AutoRenew):", "AutoPay today:", "AutoPay yesterday:", "AutoPay last 10 days:", "Relative", "Real", "Settings";"Data", "Save", "Close", "Copy", "Paste", "Export Dates in Standard Format?", "The data is exported in the format YYYY/MM/DD HH:MM",'in the data "last click", the hours are placed at 00:00', "Exporta Data in NeoBux format?", "This is only for the data of direct referrals and rented"];*/
  798. switch (ebp_Idioma) {
  799. case "us": //Ingles
  800. ebp_DirectText = "Direct;Rented;You";
  801. ebp_isToday = "Today";
  802. ebp_isYesterday = "Yesterday";
  803. ebp_isTomorrow = "Tomorrow";
  804. ebp_isExpired = "Expired...";
  805. ebp_noClick = "No clicks yet";
  806. ebp_TotClicsHoy = "clicks today:";
  807. ebp_TotClicsAyer = "clicks yesterday:";
  808. ebp_TotClics10Dias = "clicks last 10 days:";
  809. ebp_CPTotalHoy = "Total own clicks:";
  810. ebp_CPFijosFHoy = "Fixed fuchsia clicks:";
  811. ebp_CPMicroHoy = "Micro clicks:";
  812. ebp_CPMiniHoy = "Mini clicks:";
  813. ebp_CPProlongadoHoy = "Extended clicks:";
  814. ebp_CPStandarHoy = "Standard clicks:";
  815. ebp_CPFijosNHoy = "Fixed orange clicks:";
  816. ebp_ClicsHoyRD = "clicks today RD:";
  817. ebp_ClicsAyerRD = "clicks yesterday RD:";
  818. ebp_Clics10DiasRD = "clicks last 10 days RD:";
  819. ebp_ClicsHoyRR = "clicks today RR:";
  820. ebp_ClicsAyerRR = "clicks yesterday RR:";
  821. ebp_Clics10DiasRR = "clicks last 10 days RR:";
  822. ebp_MontReciclaHoy = "recycling today:";
  823. ebp_MontReciclaAyer = "recycling yesterday:";
  824. ebp_MontRecicla10Dias = "recycling last 10 days:";
  825. ebp_ReciclaGratisHoy = "Automatic Recycling today:";
  826. ebp_MontRenuevaHoy = "renewal today:";
  827. ebp_MontRenuevaAyer = "renewal yesterday:";
  828. ebp_MontRenueva10Dias = "renewal last 10 days:";
  829.  
  830. ebp_MontRenuevaHoyManual = "renewal today (Manual):";
  831. ebp_MontRenuevaAyerManual = "renewal yesterday (Manual):";
  832. ebp_MontRenueva10DiasManual = "renewal last 10 days (Manual):";
  833. ebp_MontRenuevaHoyAuto = "renewal today (AutoRenew):";
  834. ebp_MontRenuevaAyerAuto = "renewal yesterday (AutoRenew):";
  835. ebp_MontRenueva10DiasAuto = "renewal last 10 days (AutoRenew):";
  836.  
  837. ebp_MontAutoPagoHoy = "AutoPay today:";
  838. ebp_MontAutoPagoAyer = "AutoPay yesterday:";
  839. ebp_MontAutoPago10Dias = "AutoPay last 10 days:";
  840. ebp_ffRelativa = "Relative";
  841. ebp_ffExacta = "Real";
  842. ebp_TextConfig = "Settings";
  843. ebp_TextDatos = "Data";
  844. ebp_TextGuarda = "Save";
  845. ebp_TextSalir = "Close";
  846. ebp_TextCopiar = "Copy";
  847. ebp_TextPegar = "Paste";
  848. ebp_TextMensL1 = "Export Dates in Standard Format?";
  849. ebp_TextMensL2 = "The data is exported in the format YYYY/MM/DD HH:MM";
  850. ebp_TextMensL3 = 'in the data "last click", the hours are placed at 00:00';
  851. ebp_TextMensL4 = "Exporta Data in NeoBux format?";
  852. ebp_TextMensL5 = "This is only for the data of direct referrals and rented";
  853. ebp_TextMensL6 = "Group and Show all data on the last page?";
  854. ebp_TextMensL7 = "The Copy button is enabled on all pages, and all data is pasted in the last window, separating the groups with a few dashes -";
  855. ebp_LastUpdate = "Last update";
  856. ebp_MensLU = "Not updated";
  857. break;
  858. case "es": //Español
  859. ebp_DirectText = "Directos;Alquilados;Usted";
  860. ebp_isToday = "Hoy";
  861. ebp_isYesterday = "Ayer";
  862. ebp_isTomorrow = "Mañana";
  863. ebp_isExpired = "Expirado...";
  864. ebp_noClick = "Sin clics aún";
  865. ebp_TotClicsHoy = "Clics Hoy:";
  866. ebp_TotClicsAyer = "Clics Ayer:";
  867. ebp_TotClics10Dias = "Clics Ult 10 Días:";
  868. ebp_CPTotalHoy = "total clics propios:";
  869. ebp_CPFijosFHoy = "clics Fijos fucsia:";
  870. ebp_CPMicroHoy = "clics Micro:";
  871. ebp_CPMiniHoy = "clics Mini:";
  872. ebp_CPProlongadoHoy = "clics Prolongados:";
  873. ebp_CPStandarHoy = "clics Standard:";
  874. ebp_CPFijosNHoy = "clics Fijos naranja:";
  875. ebp_ClicsHoyRD = "Clics Hoy RD:";
  876. ebp_ClicsAyerRD = "Clics Ayer RD:";
  877. ebp_Clics10DiasRD = "Clics Ult 10 Días RD:";
  878. ebp_ClicsHoyRR = "Clics Hoy RR:";
  879. ebp_ClicsAyerRR = "Clics Ayer RR:";
  880. ebp_Clics10DiasRR = "Clics Ult 10 Días RR:";
  881. ebp_MontReciclaHoy = "Reciclaje Hoy:";
  882. ebp_MontReciclaAyer = "Recicajes Ayer:";
  883. ebp_MontRecicla10Dias = "Reciclaje Ult 10 Días:";
  884. ebp_ReciclaGratisHoy = "Reciclaje Automático Hoy:";
  885. ebp_MontRenuevaHoy = "Renovaciones Hoy:";
  886. ebp_MontRenuevaAyer = "Renovaciones Ayer:";
  887. ebp_MontRenueva10Dias = "Renovaciones Ult 10 Días:";
  888.  
  889. ebp_MontRenuevaHoyManual = "Renovaciones Hoy (Manual):";
  890. ebp_MontRenuevaAyerManual = "Renovaciones Ayer (Manual):";
  891. ebp_MontRenueva10DiasManual = "Renovaciones Ult 10 Días (Manual):";
  892. ebp_MontRenuevaHoyAuto = "Renovaciones Hoy (AutoRenovación):";
  893. ebp_MontRenuevaAyerAuto = "Renovaciones Ayer (AutoRenovación):";
  894. ebp_MontRenueva10DiasAuto = "Renovaciones Ult 10 Días (AutoRenovación):";
  895.  
  896. ebp_MontAutoPagoHoy = "Autopago Hoy:";
  897. ebp_MontAutoPagoAyer = "Autopago Ayer:";
  898. ebp_MontAutoPago10Dias = "Autopago Ult 10 Días:";
  899. ebp_ffRelativa = "Relativas";
  900. ebp_ffExacta = "Exactas";
  901. ebp_TextConfig = "Configuración";
  902. ebp_TextDatos = "Datos";
  903. ebp_TextGuarda = "Guardar";
  904. ebp_TextSalir = "Cerrar";
  905. ebp_TextCopiar = "Copiar";
  906. ebp_TextPegar = "Pegar";
  907. ebp_TextMensL1 = "Exportar las Fechas en Formato Standard?";
  908. ebp_TextMensL2 = "La Fecha se Exporta en el formato AAAA/MM/DD HH:MM";
  909. ebp_TextMensL3 = 'Para el campo "último Clic" las horas se colocan en 00:00';
  910. ebp_TextMensL4 = "Exporta datos en formato de NeoBux?";
  911. ebp_TextMensL5 = "Esto es solamente para los datos de referidos directos y rentados";
  912. ebp_TextMensL6 = "Agrupar y Mostrar todos los datos en la última página?";
  913. ebp_TextMensL7 = "Se habilita el botón Copiar en todas las páginas, y se pegan todos los datos en la ultima ventana, separando los grupos con unos guiones --";
  914. ebp_LastUpdate = "Ultima actualización";
  915. ebp_MensLU = "Sin actualizar";
  916. break;
  917. case "pt": //Portugués
  918. ebp_DirectText = "Directos;Alugados;Você";
  919. ebp_isToday = "Hoje";
  920. ebp_isYesterday = "Ontem";
  921. ebp_isTomorrow = "Amanhã";
  922. ebp_isExpired = "Expirado...";
  923. ebp_noClick = "Sem cliques";
  924. ebp_TotClicsHoy = "cliques de hoje:";
  925. ebp_TotClicsAyer = "cliques ontem:";
  926. ebp_TotClics10Dias = "cliques últimos 10 dias:";
  927. ebp_CPTotalHoy = "totais próprios cliques:";
  928. ebp_CPFijosFHoy = "Cliques fúcsia fixos:";
  929. ebp_CPMicroHoy = "Cliques Micro:";
  930. ebp_CPMiniHoy = "Cliques Mini:";
  931. ebp_CPProlongadoHoy = "Cliques Prolongada:";
  932. ebp_CPStandarHoy = "Cliques Normal:";
  933. ebp_CPFijosNHoy = "Cliques laranja fixos:";
  934. ebp_ClicsHoyRD = "cliques de hoje RD:";
  935. ebp_ClicsAyerRD = "cliques ontem RD:";
  936. ebp_Clics10DiasRD = "cliques últimos 10 dias RD:";
  937. ebp_ClicsHoyRR = "cliques de hoje RR:";
  938. ebp_ClicsAyerRR = "cliques ontem RR:";
  939. ebp_Clics10DiasRR = "cliques últimos 10 dias RR:";
  940. ebp_MontReciclaHoy = "reciclagem hoje:";
  941. ebp_MontReciclaAyer = "reciclagem de ontem:";
  942. ebp_MontRecicla10Dias = "reciclagem últimos 10 dias:";
  943. ebp_ReciclaGratisHoy = "Reciclagem Automática hoje:";
  944. ebp_MontRenuevaHoy = "renovação hoje:";
  945. ebp_MontRenuevaAyer = "renovação de ontem:";
  946. ebp_MontRenueva10Dias = "renovação últimos 10 dias:";
  947.  
  948. ebp_MontRenuevaHoyManual = "renovação hoje (Manual):";
  949. ebp_MontRenuevaAyerManual = "renovação de ontem (Manual):";
  950. ebp_MontRenueva10DiasManual = "renovação últimos 10 dias (Manual):";
  951. ebp_MontRenuevaHoyAuto = "renovação hoje (AutoRenovação):";
  952. ebp_MontRenuevaAyerAuto = "renovação de ontem (AutoRenovação):";
  953. ebp_MontRenueva10DiasAuto = "renovação últimos 10 dias (AutoRenovação):";
  954.  
  955. ebp_MontAutoPagoHoy = "AutoPagamento hoje:";
  956. ebp_MontAutoPagoAyer = "AutoPagamento ontem:";
  957. ebp_MontAutoPago10Dias = "AutoPagamento últimos 10 dias:";
  958. ebp_ffRelativa = "Relativas";
  959. ebp_ffExacta = "Reais";
  960. ebp_TextConfig = "configurações";
  961. ebp_TextDatos = "dados";
  962. ebp_TextGuarda = "salvar";
  963. ebp_TextSalir = "fechar";
  964. ebp_TextCopiar = "Copy";
  965. ebp_TextPegar = "Paste";
  966. ebp_TextMensL1 = "Exportar datas no formato Standard?";
  967. ebp_TextMensL2 = "Os dados são exportados no formato AAAA/MM/DD HH:MM";
  968. ebp_TextMensL3 = 'nos dados do "último clique", as horas são colocados às 00:00';
  969. ebp_TextMensL4 = "Exportar dados em formato NeoBux??";
  970. ebp_TextMensL5 = "Esta é apenas para os dados de referências diretas e referidos alugados";
  971. ebp_TextMensL6 = "Grupo e Mostrar todos os dados na última página?";
  972. ebp_TextMensL7 = "O botão Copiar é habilitado em todas as páginas, e todos os dados são colados na última janela, separando os grupos com poucos traços -";
  973. ebp_LastUpdate = "Última atualização";
  974. ebp_MensLU = "Não atualizado";
  975. break;
  976. case "gr": //Griego - Greek
  977. ebp_DirectText = "?µes??;?????asµ????;?se??";
  978. ebp_isToday = "S?µe?a";
  979. ebp_isYesterday = "??e?";
  980. ebp_isTomorrow = "????? st??";
  981. ebp_isExpired = "????e...";
  982. ebp_noClick = "????? ????";
  983. ebp_TotClicsHoy = "???? s?µe?a:";
  984. ebp_TotClicsAyer = "???? ??e?:";
  985. ebp_TotClics10Dias = "???? te?e?ta?e? 10 ?µ??e?:";
  986. ebp_CPTotalHoy = "s????? t?? ?d??? ????:";
  987. ebp_CPFijosFHoy = "Sta?e?? ???? f????a:";
  988. ebp_CPMicroHoy = "Micro ????:";
  989. ebp_CPMiniHoy = "???? ????:";
  990. ebp_CPProlongadoHoy = "??tetaµ??? ????:";
  991. ebp_CPStandarHoy = "?a?????? ????:";
  992. ebp_CPFijosNHoy = "Sta?e?? ???? p??t??a??:";
  993. ebp_ClicsHoyRD = "???? s?µe?a RD:";
  994. ebp_ClicsAyerRD = "???? ??e? RD:";
  995. ebp_Clics10DiasRD = "???? te?e?ta?e? 10 ?µ??e? RD:";
  996. ebp_ClicsHoyRR = "???? s?µe?a RR:";
  997. ebp_ClicsAyerRR = "???? ??e? RR:";
  998. ebp_Clics10DiasRR = "???? te?e?ta?e? 10 ?µ??e? RR:";
  999. ebp_MontReciclaHoy = "a?a?????s? s?µe?a:";
  1000. ebp_MontReciclaAyer = "a?a?????s? ??e?:";
  1001. ebp_MontRecicla10Dias = "a?a?????s? te?e?ta?e? 10 ?µ??e?:";
  1002. ebp_ReciclaGratisHoy = "auto-a?a????????ta? s?µe?a:";
  1003. ebp_MontRenuevaHoy = "a?a???s? s?µe?a:";
  1004. ebp_MontRenuevaAyer = "a?a???s? t?? ??e?:";
  1005. ebp_MontRenueva10Dias = "a?a???s? te?e?ta?e? 10 ?µ??e?:";
  1006.  
  1007. ebp_MontRenuevaHoyManual = "a?a???s? s?µe?a (?e???????t?):";
  1008. ebp_MontRenuevaAyerManual = "a?a???s? t?? ??e? (?e???????t?):";
  1009. ebp_MontRenueva10DiasManual = "a?a???s? te?e?ta?e? 10 ?µ??e? (?e???????t?):";
  1010. ebp_MontRenuevaHoyAuto = "a?a???s? s?µe?a (??t???a???s?):";
  1011. ebp_MontRenuevaAyerAuto = "a?a???s? t?? ??e? (??t???a???s?):";
  1012. ebp_MontRenueva10DiasAuto = "a?a???s? te?e?ta?e? 10 ?µ??e? (??t???a???s?):";
  1013.  
  1014. ebp_MontAutoPagoHoy = "Autopay s?µe?a:";
  1015. ebp_MontAutoPagoAyer = "Autopay ??e?:";
  1016. ebp_MontAutoPago10Dias = "Autopay te?e?ta?e? 10 ?µ??e?:";
  1017. ebp_ffRelativa = "S?et????";
  1018. ebp_ffExacta = "????ße??";
  1019. ebp_TextConfig = "???µ?se??";
  1020. ebp_TextDatos = "ded?µ??a";
  1021. ebp_TextGuarda = "e?t??";
  1022. ebp_TextSalir = "???t?";
  1023. ebp_TextCopiar = "Copy";
  1024. ebp_TextPegar = "Paste";
  1025. ebp_TextMensL1 = "?µe??µ???e? ??a???? se t?p?p???µ??? µ??f?;";
  1026. ebp_TextMensL2 = "?a ded?µ??a p?? e?????ta? µe t? µ??f? YYYY/MM/DD HH:MM";
  1027. ebp_TextMensL3 = 'ded?µ??a st? "te?e?ta?? ????", ?? ??e? p?? d?at??e?ta? st?? 00:00';
  1028. ebp_TextMensL4 = "??a???? ded?µ???? se µ??f? Neobux?";
  1029. ebp_TextMensL5 = "??t? e??a? µ??? ??a ta ded?µ??a t?? ?µes?? pa?ap?µp?? ?a? e?????a??µe?a pa?ap?µp??";
  1030. ebp_TextMensL6 = "?µ?da ?a? ?µf???s? ???? t?? ded?µ???? st?? te?e?ta?a se??da";
  1031. ebp_TextMensL7 = "?? ???µp? Copy e??a? e?e???p???µ??? se ??e? t?? se??de?, ?a? ??a ta ded?µ??a ep???????e? st? te?e?ta?? pa??????, d?a???????ta? t?? ?µ?de? µe ???a pa??e? -";
  1032. ebp_LastUpdate = "?e?e?ta?a e??µ???s?";
  1033. ebp_MensLU = "de? e??µe?????ta?";
  1034. break;
  1035. case "id": //indonesio
  1036. ebp_DirectText = "Langsung;Sewa;Anda";
  1037. ebp_isToday = "Hari ini";
  1038. ebp_isYesterday = "Kemarin";
  1039. ebp_isTomorrow = "Besok";
  1040. ebp_isExpired = "Kadaluarsa...";
  1041. ebp_noClick = "Belum ada klik";
  1042. ebp_TotClicsHoy = "klik Hari ini:";
  1043. ebp_TotClicsAyer = "klik kemarin:";
  1044. ebp_TotClics10Dias = "klik 10 hari terakhir:";
  1045. ebp_CPTotalHoy = "Total klik sendiri:";
  1046. ebp_CPFijosFHoy = "Klik fuchsia tetap:";
  1047. ebp_CPMicroHoy = "klik Micro:";
  1048. ebp_CPMiniHoy = "klik Mini:";
  1049. ebp_CPProlongadoHoy = "klik diperpanjang:";
  1050. ebp_CPStandarHoy = "klik standar:";
  1051. ebp_CPFijosNHoy = "Klik oranye tetap:";
  1052. ebp_ClicsHoyRD = "klik Hari ini RD:";
  1053. ebp_ClicsAyerRD = "klik kemarin RD:";
  1054. ebp_Clics10DiasRD = "klik 10 hari terakhir:";
  1055. ebp_ClicsHoyRR = "klik Hari ini RR:";
  1056. ebp_ClicsAyerRR = "klik kemarin RR:";
  1057. ebp_Clics10DiasRR = "klik 10 hari terakhir:";
  1058. ebp_MontReciclaHoy = "daur ulang Hari ini:";
  1059. ebp_MontReciclaAyer = "daur ulang kemarin:";
  1060. ebp_MontRecicla10Dias = "daur ulang 10 hari terakhir:";
  1061. ebp_ReciclaGratisHoy = "Daur Ulang Otomatis Hari ini:";
  1062. ebp_MontRenuevaHoy = "pembaharuan hari ini:";
  1063. ebp_MontRenuevaAyer = "pembaharuan kemarin:";
  1064. ebp_MontRenueva10Dias = "perpanjangan 10 hari terakhir:";
  1065.  
  1066. ebp_MontRenuevaHoyManual = "pembaharuan hari ini (Manual):";
  1067. ebp_MontRenuevaAyerManual = "pembaharuan kemarin (Manual):";
  1068. ebp_MontRenueva10DiasManual = "perpanjangan 10 hari terakhir (Manual):";
  1069. ebp_MontRenuevaHoyAuto = "pembaharuan hari ini (AutoRenew):";
  1070. ebp_MontRenuevaAyerAuto = "pembaharuan kemarin (AutoRenew):";
  1071. ebp_MontRenueva10DiasAuto = "perpanjangan 10 hari terakhir (AutoRenew):";
  1072.  
  1073. ebp_MontAutoPagoHoy = "AutoPay hari ini:";
  1074. ebp_MontAutoPagoAyer = "AutoPay kemarin:";
  1075. ebp_MontAutoPago10Dias = "AutoPay 10 hari terakhir:";
  1076. ebp_ffRelativa = "Relatif";
  1077. ebp_ffExacta = "Sebenarnya";
  1078. ebp_TextConfig = "pengaturan";
  1079. ebp_TextDatos = "Data";
  1080. ebp_TextGuarda = "menyimpan";
  1081. ebp_TextSalir = "menutup";
  1082. ebp_TextCopiar = "Copy";
  1083. ebp_TextPegar = "Paste";
  1084. ebp_TextMensL1 = "Ekspor Tanggal Format Standar?";
  1085. ebp_TextMensL2 = "Data tersebut diekspor dalam format YYYY/MM/DD HH:MM";
  1086. ebp_TextMensL3 = 'dalam "klik terakhir" data, jam ditempatkan pada jam 00:00';
  1087. ebp_TextMensL4 = "Ekspor data dalam format neobux?";
  1088. ebp_TextMensL5 = "Ini hanya untuk data dari arahan langsung dan arahan disewa";
  1089. ebp_TextMensL6 = "Group dan Tampilkan semua data pada halaman terakhir?";
  1090. ebp_TextMensL7 = "Tombol Copy diaktifkan pada semua halaman, dan semua data yang disisipkan di jendela terakhir, memisahkan kelompok dengan beberapa strip -";
  1091. ebp_LastUpdate = "Pembaharuan Terakhir";
  1092. ebp_MensLU = "tidak diperbarui";
  1093. break;
  1094. case "fi": //finlandés
  1095. ebp_DirectText = "Suorat;Vuokratut;Sinä";
  1096. ebp_isToday = "Tänään";
  1097. ebp_isYesterday = "Eilen";
  1098. ebp_isTomorrow = "Huomenna";
  1099. ebp_isExpired = "Erääntynyt...";
  1100. ebp_noClick = "Ei klikkejä";
  1101. ebp_TotClicsHoy = "napsauttaa tänään:";
  1102. ebp_TotClicsAyer = "napsauttaa eilen:";
  1103. ebp_TotClics10Dias = "napsauttaa viimeisen 10 päivän:";
  1104. ebp_CPTotalHoy = "kaikista omista napsauttaa:";
  1105. ebp_CPFijosFHoy = "Kiinteä fuksia napsauttaa:";
  1106. ebp_CPMicroHoy = "Micro napsauttaa:";
  1107. ebp_CPMiniHoy = "Mini napsauttaa:";
  1108. ebp_CPProlongadoHoy = "Laajennettu napsauttaa:";
  1109. ebp_CPStandarHoy = "Standard napsauttaa:";
  1110. ebp_CPFijosNHoy = "Kiinteä oranssi napsauttaa:";
  1111. ebp_ClicsHoyRD = "napsauttaa tänään RD:";
  1112. ebp_ClicsAyerRD = "napsauttaa eilen RD:";
  1113. ebp_Clics10DiasRD = "napsauttaa viimeisen 10 päivän RD:";
  1114. ebp_ClicsHoyRR = "napsauttaa tänään RR:";
  1115. ebp_ClicsAyerRR = "napsauttaa eilen RR:";
  1116. ebp_Clics10DiasRR = "napsauttaa viimeisen 10 päivän RR:";
  1117. ebp_MontReciclaHoy = "kierrätys tänään:";
  1118. ebp_MontReciclaAyer = "kierrätys eilen:";
  1119. ebp_MontRecicla10Dias = "kierrätys viimeisen 10 päivän:";
  1120. ebp_ReciclaGratisHoy = "Automaattinen kierrätys Tänään:";
  1121. ebp_MontRenuevaHoy = "uusiminen tänään:";
  1122. ebp_MontRenuevaAyer = "uusiminen eilen:";
  1123. ebp_MontRenueva10Dias = "uusiminen viimeisen 10 päivän:";
  1124.  
  1125. ebp_MontRenuevaHoyManual = "uusiminen tänään (Manuaalisesti):";
  1126. ebp_MontRenuevaAyerManual = "uusiminen eilen (Manuaalisesti):";
  1127. ebp_MontRenueva10DiasManual = "uusiminen viimeisen 10 päivän (Manuaalisesti):";
  1128. ebp_MontRenuevaHoyAuto = "uusiminen tänään (AutoRenew):";
  1129. ebp_MontRenuevaAyerAuto = "uusiminen eilen (AutoRenew):";
  1130. ebp_MontRenueva10DiasAuto = "uusiminen viimeisen 10 päivän (AutoRenew):";
  1131.  
  1132. ebp_MontAutoPagoHoy = "AutoPay tänään:";
  1133. ebp_MontAutoPagoAyer = "AutoPay eilen:";
  1134. ebp_MontAutoPago10Dias = "AutoPay viimeisen 10 päivän:";
  1135. ebp_ffRelativa = "Suhteelliset";
  1136. ebp_ffExacta = "Reaaliset";
  1137. ebp_TextConfig = "Asetukset";
  1138. ebp_TextDatos = "tiedot";
  1139. ebp_TextGuarda = "säästää";
  1140. ebp_TextSalir = "lähellä";
  1141. ebp_TextCopiar = "Copy";
  1142. ebp_TextPegar = "Paste";
  1143. ebp_TextMensL1 = "Vie päivämäärät Standard Format?";
  1144. ebp_TextMensL2 = "Data viedään muodossa YYYY/MM/DD HH:MM";
  1145. ebp_TextMensL3 = 'in data "viimeinen klikkaa" tunnit sijoitetaan klo 00:00';
  1146. ebp_TextMensL4 = "Vie Dataa NeoBux muodossa?";
  1147. ebp_TextMensL5 = "Tämä on vain tiedot suoraan lähetteet ja vuokra lähetteitä";
  1148. ebp_TextMensL6 = "Ryhmä ja Näytä kaikki tiedot viimeisellä sivulla?";
  1149. ebp_TextMensL7 = "Kopioi-painiketta on käytössä kaikilla sivuilla, ja kaikki data liitetään viimeisessä ikkunassa, erottamalla ryhmät muutamia viivoja -";
  1150. ebp_LastUpdate = "Viimeisin päivitys";
  1151. ebp_MensLU = "ei ole päivitetty";
  1152. break;
  1153. case "se": //Sueco
  1154. ebp_DirectText = "Direkta;Hyrda;Du";
  1155. ebp_isToday = "Idag";
  1156. ebp_isYesterday = "Igår";
  1157. ebp_isTomorrow = "I morgon";
  1158. ebp_isExpired = "Utgången...";
  1159. ebp_noClick = "Inga klick";
  1160. ebp_TotClicsHoy = "klick idag:";
  1161. ebp_TotClicsAyer = "klick igår:";
  1162. ebp_TotClics10Dias = "klick senaste 10 dagarna:";
  1163. ebp_CPTotalHoy = "totala egna klick:";
  1164. ebp_CPFijosFHoy = "Fasta fuchsia klick:";
  1165. ebp_CPMicroHoy = "mikro klick:";
  1166. ebp_CPMiniHoy = "Mini klick:";
  1167. ebp_CPProlongadoHoy = "Förlängda klick:";
  1168. ebp_CPStandarHoy = "Standard klick:";
  1169. ebp_CPFijosNHoy = "Fasta apelsin klick:";
  1170. ebp_ClicsHoyRD = "klick idag RD:";
  1171. ebp_ClicsAyerRD = "klick igår RD:";
  1172. ebp_Clics10DiasRD = "klick senaste 10 dagarna RD:";
  1173. ebp_ClicsHoyRR = "klick idag RR:";
  1174. ebp_ClicsAyerRR = "klick igår RR:";
  1175. ebp_Clics10DiasRR = "klick senaste 10 dagarna RR:";
  1176. ebp_MontReciclaHoy = "återvinning idag:";
  1177. ebp_MontReciclaAyer = "återvinning igår:";
  1178. ebp_MontRecicla10Dias = "återvinning senaste 10 dagarna:";
  1179. ebp_ReciclaGratisHoy = "Automatiskt referalbyte idag:";
  1180. ebp_MontRenuevaHoy = "förnyelse idag:";
  1181. ebp_MontRenuevaAyer = "förnyelse i går:";
  1182. ebp_MontRenueva10Dias = "förnyelse senaste 10 dagarna:";
  1183.  
  1184. ebp_MontRenuevaHoyManual = "förnyelse idag (Manuellt):";
  1185. ebp_MontRenuevaAyerManual = "förnyelse i går (Manuellt):";
  1186. ebp_MontRenueva10DiasManual = "förnyelse senaste 10 dagarna (Manuellt):";
  1187. ebp_MontRenuevaHoyAuto = "förnyelse idag (AutoRenew):";
  1188. ebp_MontRenuevaAyerAuto = "förnyelse i går (AutoRenew):";
  1189. ebp_MontRenueva10DiasAuto = "förnyelse senaste 10 dagarna (AutoRenew):";
  1190.  
  1191. ebp_MontAutoPagoHoy = "AutoPay idag:";
  1192. ebp_MontAutoPagoAyer = "AutoPay igår:";
  1193. ebp_MontAutoPago10Dias = "AutoPay senaste 10 dagarna:";
  1194. ebp_ffRelativa = "Relativa";
  1195. ebp_ffExacta = "Reella";
  1196. ebp_TextConfig = "inställningar";
  1197. ebp_TextDatos = "data som";
  1198. ebp_TextGuarda = "Spara";
  1199. ebp_TextSalir = "stänga";
  1200. ebp_TextCopiar = "Copy";
  1201. ebp_TextPegar = "Paste";
  1202. ebp_TextMensL1 = "Exportera datum i standardformat?";
  1203. ebp_TextMensL2 = "Uppgifterna exporteras i formatet YYYY/MM/DD HH:MM";
  1204. ebp_TextMensL3 = 'i data "Klick senast", är timmarna placerade vid 00:00';
  1205. ebp_TextMensL4 = "Exportera data i NeoBux format?";
  1206. ebp_TextMensL5 = "Detta är bara för uppgifter från direkta remisser och hyrda hänvisningar";
  1207. ebp_TextMensL6 = "Grupp och Visa all data på sista sidan?";
  1208. ebp_TextMensL7 = "Knappen Kopiera är aktiverad på alla sidor, och alla data klistras in det sista fönstret, separera grupper med några streck -";
  1209. ebp_LastUpdate = "Senaste uppdateringen";
  1210. ebp_MensLU = "uppdateras inte";
  1211. break;
  1212. case "de": //Aleman
  1213. ebp_DirectText = "Direkte;Gemietete;Sie";
  1214. ebp_isToday = "Heute";
  1215. ebp_isYesterday = "Gestern";
  1216. ebp_isTomorrow = "Morgen";
  1217. ebp_isExpired = "Abgelaufen...";
  1218. ebp_noClick = "Keine Klicks";
  1219. ebp_TotClicsHoy = "Klicks heute:";
  1220. ebp_TotClicsAyer = "Klicks gestern:";
  1221. ebp_TotClics10Dias = "Klicks letzten 10 Tage:";
  1222. ebp_CPTotalHoy = "Gesamt eigenen Klicks:";
  1223. ebp_CPFijosFHoy = "Feste fuchsia Klicks:";
  1224. ebp_CPMicroHoy = "Micro Klicks:";
  1225. ebp_CPMiniHoy = "Mini Klicks:";
  1226. ebp_CPProlongadoHoy = "Erweiterte Klicks:";
  1227. ebp_CPStandarHoy = "Standard-Klicks:";
  1228. ebp_CPFijosNHoy = "Fest Orange Klicks:";
  1229. ebp_ClicsHoyRD = "Klicks heute RD:";
  1230. ebp_ClicsAyerRD = "Klicks gestern RD:";
  1231. ebp_Clics10DiasRD = "Klicks letzten 10 Tage RD:";
  1232. ebp_ClicsHoyRR = "Klicks heute RR:";
  1233. ebp_ClicsAyerRR = "Klicks gestern RR:";
  1234. ebp_Clics10DiasRR = "Klicks letzten 10 Tage RR:";
  1235. ebp_MontReciclaHoy = "Recycling heute:";
  1236. ebp_MontReciclaAyer = "Recycling gestern:";
  1237. ebp_MontRecicla10Dias = "Recycling letzten 10 Tage:";
  1238. ebp_ReciclaGratisHoy = "Automatische Recycling heute:";
  1239. ebp_MontRenuevaHoy = "Erneuerung heute:";
  1240. ebp_MontRenuevaAyer = "Erneuerung gestern:";
  1241. ebp_MontRenueva10Dias = "Erneuerung letzten 10 Tage:";
  1242.  
  1243. ebp_MontRenuevaHoyManual = "Erneuerung heute (Manuell):";
  1244. ebp_MontRenuevaAyerManual = "Erneuerung gestern (Manuell):";
  1245. ebp_MontRenueva10DiasManual = "Erneuerung letzten 10 Tage (Manuell):";
  1246. ebp_MontRenuevaHoyAuto = "Erneuerung heute (AutoRenew):";
  1247. ebp_MontRenuevaAyerAuto = "Erneuerung gestern (AutoRenew):";
  1248. ebp_MontRenueva10DiasAuto = "Erneuerung letzten 10 Tage (AutoRenew):";
  1249.  
  1250. ebp_MontAutoPagoHoy = "AutoPay heute:";
  1251. ebp_MontAutoPagoAyer = "AutoPay gestern:";
  1252. ebp_MontAutoPago10Dias = "AutoPay letzten 10 Tage:";
  1253. ebp_ffRelativa = "Relativ";
  1254. ebp_ffExacta = "Echt";
  1255. ebp_TextConfig = "Einstellungen";
  1256. ebp_TextDatos = "Daten";
  1257. ebp_TextGuarda = "sparen";
  1258. ebp_TextSalir = "schließen";
  1259. ebp_TextCopiar = "Copy";
  1260. ebp_TextPegar = "Paste";
  1261. ebp_TextMensL1 = "Exportieren Sie Daten im Standard-Format?";
  1262. ebp_TextMensL2 = "Die Daten werden im Format YYYY/MM/DD HH:MM exportiert";
  1263. ebp_TextMensL3 = 'Daten in der "letzter Klick" werden die Stunden um 00:00 Uhr platziert';
  1264. ebp_TextMensL4 = "Exportieren von Daten in NeoBux-Format?";
  1265. ebp_TextMensL5 = "Dies ist nur für die Daten der direkte Verweise und Verweise vermietet";
  1266. ebp_TextMensL6 = "Gruppe und alle Daten auf der letzten Seite anzeigen?";
  1267. ebp_TextMensL7 = "Die Copy-Taste wird auf allen Seiten aktiviert und alle Daten werden im letzten Fenster eingefügt, um die Gruppen mit wenigen Strichen zu trennen -";
  1268. ebp_LastUpdate = "Letztes Update";
  1269. ebp_MensLU = "Nicht aktualisiert";
  1270. break;
  1271. case "fr": //Frances
  1272. ebp_DirectText = "Directs;Loués;Vous";
  1273. ebp_isToday = "Aujourd'hui";
  1274. ebp_isYesterday = "Hier";
  1275. ebp_isTomorrow = "Demain";
  1276. ebp_isExpired = "Expiré...";
  1277. ebp_noClick = "Pas de clics";
  1278. ebp_TotClicsHoy = "clics aujourd'hui:";
  1279. ebp_TotClicsAyer = "clics hier:";
  1280. ebp_TotClics10Dias = "clics derniers 10 jours:";
  1281. ebp_CPTotalHoy = "totaux propres clics:";
  1282. ebp_CPFijosFHoy = "Clics fuchsia fixes:";
  1283. ebp_CPMicroHoy = "micro clics:";
  1284. ebp_CPMiniHoy = "Mini clics:";
  1285. ebp_CPProlongadoHoy = "clics étendues:";
  1286. ebp_CPStandarHoy = "clics standard:";
  1287. ebp_CPFijosNHoy = "Clics orange fixe:";
  1288. ebp_ClicsHoyRD = "clics aujourd'hui RD:";
  1289. ebp_ClicsAyerRD = "clics hier RD:";
  1290. ebp_Clics10DiasRD = "clics derniers 10 jours RD:";
  1291. ebp_ClicsHoyRR = "clics aujourd'hui RR:";
  1292. ebp_ClicsAyerRR = "clics hier RR:";
  1293. ebp_Clics10DiasRR = "clics derniers 10 jours RR:";
  1294. ebp_MontReciclaHoy = "recyclage d'aujourd'hui:";
  1295. ebp_MontReciclaAyer = "recyclage hier:";
  1296. ebp_MontRecicla10Dias = "recyclage 10 derniers jours:";
  1297. ebp_ReciclaGratisHoy = "Recyclage Automatique d'aujourd'hui:";
  1298. ebp_MontRenuevaHoy = "renouvellement d'aujourd'hui:";
  1299. ebp_MontRenuevaAyer = "renouvellement d'hier:";
  1300. ebp_MontRenueva10Dias = "dernier renouvellement 10 jours:";
  1301.  
  1302. ebp_MontRenuevaHoyManual = "renouvellement d'aujourd'hui (manuelle):";
  1303. ebp_MontRenuevaAyerManual = "renouvellement d'hier (manuelle):";
  1304. ebp_MontRenueva10DiasManual = "dernier renouvellement 10 jours (manuelle):";
  1305. ebp_MontRenuevaHoyAuto = "renouvellement d'aujourd'hui (AutoRenew):";
  1306. ebp_MontRenuevaAyerAuto = "renouvellement d'hier (AutoRenew):";
  1307. ebp_MontRenueva10DiasAuto = "dernier renouvellement 10 jours (AutoRenew):";
  1308.  
  1309. ebp_MontAutoPagoHoy = "AutoPaiement aujourd'hui:";
  1310. ebp_MontAutoPagoAyer = "AutoPaiement hier";
  1311. ebp_MontAutoPago10Dias = "AutoPaiement 10 derniers jours:";
  1312. ebp_ffRelativa = "Relatives";
  1313. ebp_ffExacta = "Réelles ";
  1314. ebp_TextConfig = "Paramètres";
  1315. ebp_TextDatos = "données";
  1316. ebp_TextGuarda = "sauver";
  1317. ebp_TextSalir = "fermer";
  1318. ebp_TextCopiar = "Copy";
  1319. ebp_TextPegar = "Paste";
  1320. ebp_TextMensL1 = "Exporter des dates dans un format standard?";
  1321. ebp_TextMensL2 = "Les données sont exportées dans le format YYYY/MM/DD HH:MM";
  1322. ebp_TextMensL3 = 'dans les données "Dernier clic", les heures sont placés à 00:00';
  1323. ebp_TextMensL4 = "Exporter des données dans le format NeoBux?";
  1324. ebp_TextMensL5 = "C'est seulement pour les données de références et de renvois directs loués";
  1325. ebp_TextMensL6 = "Gruppe und alle Daten auf der letzten Seite anzeigen?";
  1326. ebp_TextMensL7 = "Die Copy-Taste wird auf allen Seiten aktiviert und alle Daten werden im letzten Fenster eingefügt, um die Gruppen mit wenigen Strichen Trennung -";
  1327. ebp_LastUpdate = "Dernière mise à jour";
  1328. ebp_MensLU = "Pas à jour";
  1329. break;
  1330. default: //por default se deja Inlges
  1331. ebp_DirectText = "Direct;Rented;You";
  1332. ebp_isToday = "Today";
  1333. ebp_isYesterday = "Yesterday";
  1334. ebp_isTomorrow = "Tomorrow";
  1335. ebp_isExpired = "Expired...";
  1336. ebp_noClick = "No clicks yet";
  1337. ebp_TotClicsHoy = "clicks today:";
  1338. ebp_TotClicsAyer = "clicks yesterday:";
  1339. ebp_TotClics10Dias = "clicks last 10 days:";
  1340. ebp_CPTotalHoy = "Total own clicks:";
  1341. ebp_CPFijosFHoy = "Fixed fuchsia clicks:";
  1342. ebp_CPMicroHoy = "Micro clicks:";
  1343. ebp_CPMiniHoy = "Mini clicks:";
  1344. ebp_CPProlongadoHoy = "Extended clicks:";
  1345. ebp_CPStandarHoy = "Standard clicks:";
  1346. ebp_CPFijosNHoy = "Fixed orange clicks:";
  1347. ebp_ClicsHoyRD = "clicks today RD:";
  1348. ebp_ClicsAyerRD = "clicks yesterday RD:";
  1349. ebp_Clics10DiasRD = "clicks last 10 days RD:";
  1350. ebp_ClicsHoyRR = "clicks today RR:";
  1351. ebp_ClicsAyerRR = "clicks yesterday RR:";
  1352. ebp_Clics10DiasRR = "clicks last 10 days RR:";
  1353. ebp_MontReciclaHoy = "recycling today:";
  1354. ebp_MontReciclaAyer = "recycling yesterday:";
  1355. ebp_MontRecicla10Dias = "recycling last 10 days:";
  1356. ebp_ReciclaGratisHoy = "Automatic Recycling today:";
  1357. ebp_MontRenuevaHoy = "renewal today:";
  1358. ebp_MontRenuevaAyer = "renewal yesterday:";
  1359. ebp_MontRenueva10Dias = "renewal last 10 days:";
  1360.  
  1361. ebp_MontRenuevaHoyManual = "renewal today (Manual):";
  1362. ebp_MontRenuevaAyerManual = "renewal yesterday (Manual):";
  1363. ebp_MontRenueva10DiasManual = "renewal last 10 days (Manual):";
  1364. ebp_MontRenuevaHoyAuto = "renewal today (AutoRenew):";
  1365. ebp_MontRenuevaAyerAuto = "renewal yesterday (AutoRenew):";
  1366. ebp_MontRenueva10DiasAuto = "renewal last 10 days (AutoRenew):";
  1367.  
  1368. ebp_MontAutoPagoHoy = "AutoPay today:";
  1369. ebp_MontAutoPagoAyer = "AutoPay yesterday:";
  1370. ebp_MontAutoPago10Dias = "AutoPay last 10 days:";
  1371. ebp_ffRelativa = "Relative";
  1372. ebp_ffExacta = "Real";
  1373. ebp_TextConfig = "Settings";
  1374. ebp_TextDatos = "Data";
  1375. ebp_TextGuarda = "Save";
  1376. ebp_TextSalir = "Close";
  1377. ebp_TextCopiar = "Copy";
  1378. ebp_TextPegar = "Paste";
  1379. ebp_TextMensL1 = "Export Dates in Standard Format?";
  1380. ebp_TextMensL2 = "The data is exported in the format YYYY/MM/DD HH:MM";
  1381. ebp_TextMensL3 = 'in the data "last click", the hours are placed at 00:00';
  1382. ebp_TextMensL4 = "Exporta Data in NeoBux format?";
  1383. ebp_TextMensL5 = "This is only for the data of direct referrals and rented";
  1384. ebp_TextMensL6 = "Group and Show all data on the last page?";
  1385. ebp_TextMensL7 = "The Copy button is enabled on all pages, and all data is pasted in the last window, separating the groups with a few dashes -";
  1386. ebp_LastUpdate = "Last update";
  1387. ebp_MensLU = "Not updated";
  1388. break;
  1389. }
  1390. }
  1391.  
  1392. //***********************************************************************************
  1393. //****funcion para eliminar cualquier codigo html de una cadena de texto *****
  1394. //***********************************************************************************
  1395. function stripHTML(cadena) {
  1396. return cadena.replace(/<[^>]+>/g, '');
  1397. }
  1398. //***********************************************************************************
  1399. //****funcion para eliminar los espacios de una cadena de texto *****
  1400. //***********************************************************************************
  1401. function ebp_trim(stringToTrim) {
  1402. return stringToTrim.replace(/^\s+|\s+$/g, "");
  1403. }
  1404.  
  1405. //***********************************************************************************
  1406. //**** función para sumar/restar horas y minutos a la fecha actual *****
  1407. //***********************************************************************************
  1408. function xDateTime(cnf) {
  1409. //establecemos las variables
  1410. var dte, tme, nDte, dteD, dteM, dteY, tmeH, tmeM, tmeS, msecPerMinute, msecPerHour, msecPerDay, intervaloHrs, intervaloMin, rtn, rtnD, rtnT, rtnNeo;
  1411. //si NO se paso el parámetro cnf, lo establecemos como vacio
  1412. if (!cnf) {
  1413. cnf = {};
  1414. }
  1415. // establecemos los valors en miliisegundos.
  1416. msecPerMinute = 1000 * 60;
  1417. msecPerHour = msecPerMinute * 60;
  1418. msecPerDay = msecPerHour * 24;
  1419. // asignamos los valores a la variable para manejar la fecha, dte = Fecha del día, tme es la hora
  1420. dte = new Date();
  1421. tme = dte.getTime();
  1422. // calculamos los el tiempo en horas y minutos a sumar/restar
  1423. intervaloHrs = 0;
  1424. if (cnf.hours) {
  1425. intervaloHrs = parseInt(cnf.hours * msecPerHour, 10);
  1426. }
  1427. intervaloMin = 0;
  1428. if (cnf.minutes) {
  1429. intervaloMin = parseInt(cnf.minutes * msecPerMinute, 10);
  1430. }
  1431. //seteamos la nueva fecha (nDte) sumando las horas y los minutos pasados como parámetros
  1432. nDte = dte.setTime(parseInt(tme + intervaloHrs + intervaloMin, 10));
  1433. // separamos dia, mes, año y hora, dteD es el DIA, dteM es el MES, dteY es el AÑO, tme es la hora
  1434. dteD = dte.getDate().double();
  1435. dteM = (dte.getMonth() + 1).double();
  1436. dteY = dte.getFullYear();
  1437. // separamos hora, minutos, segundos, tmeH es la hora, tmeM son los minutos, tmeS son los segundos
  1438. tmeH = dte.getHours().double();
  1439. tmeM = dte.getMinutes().double();
  1440. tmeS = dte.getSeconds().double();
  1441.  
  1442. /* creamos ahora las posibles combinaciones de fecha a retornar;
  1443. rtn = Valor a retornar
  1444. rtnD = AÑO / MES / DIA
  1445. rtnT = HORA:MINUTOS
  1446. rtnNeo = AÑOMESDIA (sin la barra separadora /)
  1447. */
  1448. rtn = '';
  1449. rtnD = dteY + '/' + dteM + '/' + dteD;
  1450. rtnT = tmeH + ':' + tmeM;
  1451. //rtnNeo = dteY + '' + dteM + '' + dteD;
  1452. rtnNeo = dteY.toString() + dteM.toString() + dteD.toString();
  1453. //regresemaos la fecha según los parámetros de cnf
  1454. switch (cnf.type) {
  1455. case 'd':
  1456. rtn = rtnD;
  1457. break;
  1458. case 't':
  1459. rtn = rtnT;
  1460. break;
  1461. case 'dt':
  1462. rtn = rtnD + ' ' + rtnT;
  1463. break;
  1464. case 'td':
  1465. rtn = rtnT + ' ' + rtnD;
  1466. break;
  1467. case 'n':
  1468. rtn = rtnNeo;
  1469. break;
  1470. default:
  1471. rtn = rtnD + ' ' + rtnT;
  1472. }
  1473. return rtn;
  1474. }
  1475.  
  1476. //***********************************************************************************
  1477. //**** función Check if a cookie exists and, if not, ask for data *****
  1478. //**** Get cookie value (la copie de NeoBuxOX) *****
  1479. //**** Return data entered *****
  1480. //***********************************************************************************
  1481. function checkCookie() {
  1482. // establecemos las variasbles
  1483. var data, DataActual, fechaHoy;
  1484. // leemos la cookie
  1485. data = getCookie("ebp_NeoExport");
  1486. //revisamos si existe la cookie, sino creamos una nueva cookie
  1487. if (data != null && data != "") {
  1488. DataActual = data.split("-");
  1489. //Check for malformed cookie
  1490. if (DataActual.length > 1) {
  1491. return data;
  1492. }
  1493. }
  1494. //la cookie no está o está mala, eliminamos la que este y creamos una nueva
  1495. fechaHoy = new Date();
  1496. document.cookie = "ebp_NeoExport=0-0-0;expires=" + fechaHoy.toGMTString() + ";" + ";";
  1497. //Create a new one
  1498. setCookie("ebp_NeoExport", "0-0-0", 365);
  1499. return "0-0-0";
  1500. }
  1501.  
  1502. //***********************************************************************************
  1503. //****esta función retorna un array con los valores de la gráfica *****
  1504. //****este código lo tome del nebuxox de proxen *****
  1505. //***********************************************************************************
  1506. function obtainChartValues(arg, nidchart) {
  1507. // declaramos las variables
  1508. var valorDecodificado, chartId, valorTemp, valorArray;
  1509. valorDecodificado = window.atob(arg);
  1510. chartId = valorDecodificado.split("'")[1];
  1511. valorTemp = "";
  1512. valorArray = new Array();
  1513. valorArray[0] = chartId;
  1514. //ch_extensions; ch_extensions_all; ch_extensions_man; ch_extensions_aut
  1515. if (chartId === "ch_cr" || chartId === "ch_recycle" || chartId === "ch_extensions_all" || chartId === "ch_autopay" || chartId === "ch_cliques" || chartId === "ch_cdd" || chartId === "ch_trar" || chartId === "ch_cliques") {
  1516. valorTemp = valorDecodificado.split("data:[")[nidchart];
  1517. valorTemp = valorTemp.substring(0, valorTemp.indexOf(']')).split(',');
  1518. }
  1519. return valorArray.concat(valorTemp);
  1520. }
  1521.  
  1522. //***********************************************************************************
  1523. //**** esta función es para pasar los campos de fecha a un formato standard *****
  1524. //**** de la forma yyyy/mm/dd hh:mm *****
  1525. //**** los parámetros son: *****
  1526. //**** dFechaOrg: fecha a validar *****
  1527. //**** neoebp_today: fecha del día para comparar *****
  1528. //**** dTipo: indica fecha referidos desde (1), expira en (2) o ultimo clic (3) *****
  1529. //**** nTipoFecha: 0 indica que es fecha exacta, 1 que es relativa *****
  1530. //**** nTipoExporta: 0 indica que es normal, 1 exportar datos al estilo neobux *****
  1531. //***********************************************************************************
  1532. function obtieneFechaStandard(dFechaOrg, neoebp_today, dTipo, nTipFecha, nTipoExporta) {
  1533. //creamos las variables a usar en la funcion, NeoEBP_Fecha es el valor a retornar
  1534. var fechaNueva, fechaHoy, dFechaTempo, stringHora, horaFechaValidar, minuntosFechaValidar, stringFecha, DiasFechaValidar, NeoEBP_Fecha;
  1535. //*****************************************************************************************************
  1536. //ahora, verificamos si el campo dFechaOrg contiene la palabra sin clics aún, si es así
  1537. //simplemente regresamos el mismo valor ya que no sería necesario hacer mas nada
  1538. //*****************************************************************************************************
  1539. if (dFechaOrg.indexOf(ebp_noClick) !== -1) {
  1540. //si se exportan los datos al estilo neobux y no se han echo clics, se regresa el valor de 20990101
  1541. if (dTipo === 3 && nTipoExporta === 1) {
  1542. return "20990101";
  1543. } else {
  1544. return "0";
  1545. }
  1546. }
  1547. //*****************************************************************************************************
  1548. //Eliminamos el caracter - de la la fecha (en caso de que lo tenga)
  1549. //si la variable contien datos entre parentesis, estos datos son colocados por algún script,
  1550. //procedemos a eliminarlos para dejar solamente los datos originales
  1551. //*****************************************************************************************************
  1552. dFechaOrg = dFechaOrg.replace('-', '');
  1553. if (dFechaOrg.indexOf('(') !== -1) {
  1554. dFechaOrg = dFechaOrg.substring(0, dFechaOrg.indexOf('('));
  1555. }
  1556. //*****************************************************************************************************
  1557. //verificamos la fecha, y normalizamos lo siguiente
  1558. //Hoy, lo cambiamos por la fecha de hoy
  1559. //Ayer, lo cambiamos por la fecha de hoy - 1
  1560. //Mañana, lo cambiamos por la fecha de hoy + 1
  1561. //Expirado, lo cambiamos por la fecha de hoy + la hora actual
  1562. //*****************************************************************************************************
  1563. //obtenemos la fecha actual, con formato YYYY/MM/DD
  1564. fechaHoy = xDateTime({ type: 'd'});
  1565. if (dFechaOrg.indexOf(ebp_isToday) !== -1) {
  1566. //reemplazamos el texto hoy; si la fecha es relativa, colocamos 0, sino, colocamos la fecha
  1567. if (nTipFecha === 1) {
  1568. dFechaOrg = dFechaOrg.replace(ebp_isToday, 0);
  1569. } else {
  1570. dFechaOrg = dFechaOrg.replace(ebp_isToday, fechaHoy);
  1571. }
  1572. } else if (dFechaOrg.indexOf(ebp_isYesterday) !== -1) {
  1573. // reemplazamos el texto ayer; si la fecha es relativa, colocamos 1, sino, colocamos la fecha - 1
  1574. // Obtenemos la fecha actual - 1 dia (dFechaTempo)
  1575. dFechaTempo = xDateTime({ type: 'd', hours: -24});
  1576. if (nTipFecha === 1) {
  1577. dFechaOrg = dFechaOrg.replace(ebp_isYesterday, 1);
  1578. } else {
  1579. dFechaOrg = dFechaOrg.replace(ebp_isYesterday, dFechaTempo);
  1580. }
  1581. } else if (dFechaOrg.indexOf(ebp_isTomorrow) !== -1) {
  1582. // reemplazamos el texto Mañana; si la fecha es relativa, colocamos 1, sino, colocamos la fecha + 1
  1583. // Obtenemos la fecha actual + 1 dia (dFechaTempo)
  1584. dFechaTempo = xDateTime({ type: 'd', hours: 24});
  1585. if (nTipFecha === 1) {
  1586. dFechaOrg = dFechaOrg.replace(ebp_isTomorrow, 1);
  1587. } else {
  1588. dFechaOrg = dFechaOrg.replace(ebp_isTomorrow, dFechaTempo);
  1589. }
  1590. } else if (dFechaOrg.indexOf(ebp_isExpired) !== -1) {
  1591. //reemplazamos el texto Expirado; si la fecha es relativa, colocamos 0, sino, colocamos la fecha de hoy
  1592. if (nTipFecha === 1) {
  1593. dFechaOrg = dFechaOrg.replace(ebp_isExpired, 0);
  1594. } else {
  1595. dFechaOrg = dFechaOrg.replace(ebp_isExpired, fechaHoy);
  1596. }
  1597. }
  1598. //*****************************************************************************************************
  1599. //si la fecha es relativa, obtenemos los dias, horas y minutos a agregar o restar a la fecha
  1600. //*****************************************************************************************************
  1601. if (nTipFecha === 1) {
  1602. if (dFechaOrg.indexOf(":") !== -1) {
  1603. stringHora = dFechaOrg.split(":");
  1604. horaFechaValidar = parseInt(stringHora[0].substring(stringHora[0].length - 2), 10);
  1605. minuntosFechaValidar = parseInt(stringHora[1].replace("&nbsp;", ""), 10);
  1606. } else {
  1607. horaFechaValidar = 0;
  1608. minuntosFechaValidar = 0;
  1609. }
  1610. stringFecha = dFechaOrg.split(" ");
  1611. DiasFechaValidar = stringFecha[0];
  1612. //convertimos los días a horas
  1613. DiasFechaValidar = parseInt(DiasFechaValidar * 24, 10);
  1614. horaFechaValidar = (horaFechaValidar + DiasFechaValidar);
  1615. //si dTipo es (1) referidos desde o (3) ultimo clic; le restamos a la fecha actual
  1616. //la fecha dFechaOrg; si es (2) expira en, se la sumamos
  1617. if (dTipo !== 2) {
  1618. horaFechaValidar = horaFechaValidar * -1;
  1619. minuntosFechaValidar = minuntosFechaValidar * -1;
  1620. //si dTipo es (3) ultimo clic regresamos la fecha sin horas, sino, con horas
  1621. if (dTipo === 3) {
  1622. //si nTipoExporta = 0 regresamos la fecha normal sino al estilo neobux
  1623. if (nTipoExporta === 0) {
  1624. NeoEBP_Fecha = xDateTime({ type: 'd', hours: horaFechaValidar, minutes: minuntosFechaValidar });
  1625. } else {
  1626. NeoEBP_Fecha = xDateTime({ type: 'n', hours: horaFechaValidar, minutes: minuntosFechaValidar });
  1627. }
  1628. } else {
  1629. //si nTipoExporta = 0 regresamos la fecha normal sino al estilo neobux
  1630. if (nTipoExporta === 0) {
  1631. NeoEBP_Fecha = xDateTime({ type: 'dt', hours: horaFechaValidar, minutes: minuntosFechaValidar });
  1632. } else {
  1633. NeoEBP_Fecha = xDateTime({ type: 'n', hours: horaFechaValidar, minutes: minuntosFechaValidar });
  1634. }
  1635. }
  1636. } else {
  1637. //si nTipoExporta = 0 regresamos la fecha normal sino al estilo neobux
  1638. if (nTipoExporta === 0) {
  1639. NeoEBP_Fecha = xDateTime({ type: 'dt', hours: horaFechaValidar, minutes: minuntosFechaValidar });
  1640. } else {
  1641. NeoEBP_Fecha = xDateTime({ type: 'n', hours: horaFechaValidar, minutes: minuntosFechaValidar });
  1642. }
  1643. }
  1644. return NeoEBP_Fecha;
  1645. } else {
  1646. //al ser una fecha exacta, regresamos la fecha tal cual, le quitamos la palabra a las
  1647. stringFecha = dFechaOrg.split(" ");
  1648. NeoEBP_Fecha = stringFecha[0];
  1649. //si nTipoExporta = 0 regresamos la fecha normal sino al estilo neobux
  1650. if (nTipoExporta === 0) {
  1651. //si tiene hora, la agregamos a NeoEBP_Fecha
  1652. if (dFechaOrg.indexOf(":") !== -1) {
  1653. stringHora = dFechaOrg.split(":");
  1654. horaFechaValidar = parseInt(stringHora[0].substring(stringHora[0].length - 2), 10);
  1655. minuntosFechaValidar = parseInt(stringHora[1].replace("&nbsp;", ""), 10);
  1656. NeoEBP_Fecha = NeoEBP_Fecha + ' ' + horaFechaValidar.double() + ':' + minuntosFechaValidar.double();
  1657. }
  1658. } else {
  1659. NeoEBP_Fecha = NeoEBP_Fecha.replace(/\//g, '');
  1660. }
  1661. return NeoEBP_Fecha;
  1662. }
  1663. }
  1664.  
  1665. //***********************************************************************************
  1666. //**** FIN DE FUNCIONES AUXILIARES *****
  1667. //***********************************************************************************
  1668.  
  1669. //***********************************************************************************
  1670. //**** INICIO DE FUNCIONES DE PROCEDIMIENTOS *****
  1671. //***********************************************************************************
  1672. //***********************************************************************************
  1673. //**** EXPORTAR DATOS DE USUARIO**** TOMADO DEL SCRIPT DE CoAzNeoExporter *****
  1674. //**** Resumen de Cuenta, leemos la información actual *****
  1675. //***********************************************************************************
  1676. function EBP_Copia_Resumen() {
  1677. // Declaramos las variables a usar en la funcion
  1678. var i, n, mitexto, EBP_Matrix_Item, datosMatrix, puntoCorte, totalNodos, totalAdPrizes, EBP_scharts, valorXPathResult, chartValores, EBPtotalClicks;
  1679. // obtenemos la información general de la cuenta, obtenemos la matrix con la información línea x linea
  1680. // del cuadro con los datos del resumen de cuenta
  1681. mitexto = "";
  1682. EBP_Matrix_Item = document.getElementById("c_dir").getElementsByClassName("mbx")[0].childNodes[1].rows;
  1683. //recorremos cada línea
  1684. for (i = 0; i <= EBP_Matrix_Item.length - 1; i += 1) {
  1685. datosMatrix = EBP_Matrix_Item[i].textContent;
  1686. //eliminar espacios en blanco
  1687. if (datosMatrix.indexOf(":") !== -1) {
  1688. //eliminar sobrantes de mk_tt que vienen de botones
  1689. if (datosMatrix.indexOf("mk_tt") !== -1) {
  1690. puntoCorte = datosMatrix.indexOf("mk_tt") - 1;
  1691. datosMatrix = datosMatrix.substring(0, puntoCorte);
  1692. }
  1693. //eliminar "=" innecesarios
  1694. if (datosMatrix.indexOf("=") !== -1) {
  1695. datosMatrix = datosMatrix.substring(0, datosMatrix.indexOf("="));
  1696. }
  1697. //eliminar doble espacios " " innecesarios
  1698. datosMatrix = datosMatrix.replace(/\s+/gi, ' ');
  1699. //eliminar el simbolo de $
  1700. datosMatrix = datosMatrix.replace("$", "");
  1701. //eliminar espacios blancos al principio y fin del string
  1702. datosMatrix = datosMatrix.trim();
  1703. mitexto = mitexto + datosMatrix + String.fromCharCode(13, 10);
  1704. }
  1705. }
  1706. //Obtenemos información sobre si hay Adprize Ganados el día de hoy, es el antepenultimo nodo
  1707. totalNodos = document.getElementById("c_dir").getElementsByClassName("mbx").length;
  1708. EBP_Matrix_Item = document.getElementById("c_dir").getElementsByClassName("mbx")[totalNodos - 2].childNodes[1].rows;
  1709. // obtenemos los Adprize ganados en el día
  1710. totalAdPrizes = 0;
  1711. for (i = 0; i < (EBP_Matrix_Item.length - 1); i += 1) {
  1712. datosMatrix = EBP_Matrix_Item[i].textContent;
  1713. //eliminar espacios en blanco; eliminar sobrantes de mk_tt que vienen de botones
  1714. if (datosMatrix.indexOf("mk_tt") !== -1) {
  1715. puntoCorte = datosMatrix.indexOf("mk_tt") - 1;
  1716. datosMatrix = datosMatrix.substring(0, puntoCorte);
  1717. }
  1718. //eliminar "=" innecesarios
  1719. if (datosMatrix.indexOf("=") !== -1) {
  1720. datosMatrix = datosMatrix.substring(0, datosMatrix.indexOf("="));
  1721. }
  1722. //eliminar espacios blancos al principio y fin del string
  1723. datosMatrix = datosMatrix.trim();
  1724.  
  1725. //si conseguimos el texto AdPrize y el texto hoy, sumamos para el total de AdPrizes del día
  1726. //campos antes del total de referidos directos que no es necesario obtenerlos
  1727. if (datosMatrix.indexOf('AdPrize') !== -1) {
  1728. if (datosMatrix.indexOf(ebp_isToday) !== -1) {
  1729. totalAdPrizes = Number(totalAdPrizes) + 1;
  1730. }
  1731. }
  1732. }
  1733. mitexto = mitexto + "AdPrize" + ":" + totalAdPrizes + String.fromCharCode(13, 10);
  1734. // Obtenemos la data de la gráfica de clics diarios
  1735. // este código lo tome del nebuxox de proxen
  1736. valorXPathResult = document.evaluate("//script[contains(.,'eval(w(')]", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null);
  1737. EBP_scharts = valorXPathResult.singleNodeValue.textContent.split(" ");
  1738. for (i = 0; i < EBP_scharts.length - 1; i += 1) {
  1739. chartValores = obtainChartValues(EBP_scharts[i].split("'")[1], 1);
  1740. switch (chartValores[0]) {
  1741. case "ch_cliques": //Clics Diarios Fijos + Extendidos
  1742. chartValores = chartValores.reverse();
  1743. EBPtotalClicks = chartValores[0];
  1744. mitexto = mitexto + ebp_TotClicsHoy + Number(EBPtotalClicks) + "\n";
  1745. EBPtotalClicks = chartValores[1];
  1746. mitexto = mitexto + ebp_TotClicsAyer + Number(EBPtotalClicks) + "\n";
  1747. EBPtotalClicks = 0;
  1748. for (n = 0; n < chartValores.length - 1; n += 1) {
  1749. EBPtotalClicks = Number(EBPtotalClicks) + Number(chartValores[n]);
  1750. }
  1751. mitexto = mitexto + ebp_TotClics10Dias + EBPtotalClicks + "\n";
  1752. break;
  1753. default:
  1754. break;
  1755. }
  1756. }
  1757. //mostramos los datos
  1758. mostrarVentana(mitexto, "EBPPAGERES");
  1759. }
  1760.  
  1761. //***********************************************************************************
  1762. //**** para las página de estadísticas de la Cuenta *****
  1763. //***********************************************************************************
  1764. function EBP_Copia_Estadisticas() {
  1765. // declaramos las variables
  1766. var i, n, mitexto, EBPtotalClicks, EBP_scharts, chartValores, valorXPathResult, valorOriginal;
  1767. mitexto = "";
  1768. EBPtotalClicks = 0;
  1769. //Obtenemos la data de las gráficas para obtener el valor del día actual
  1770. //este código lo tome del nebuxox de proxen
  1771. valorXPathResult = document.evaluate("//script[contains(.,'eval(w(')]", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null);
  1772. EBP_scharts = valorXPathResult.singleNodeValue.textContent.split(" ");
  1773. for (i = 0; i < EBP_scharts.length - 1; i += 1) {
  1774. chartValores = obtainChartValues(EBP_scharts[i].split("'")[1], 1);
  1775. switch (chartValores[0]) {
  1776. case "ch_cliques": //gráfica de clics propios
  1777. EBPtotalClicks = 0;
  1778. chartValores = chartValores.reverse();
  1779. EBPtotalClicks = chartValores[1];
  1780. mitexto = mitexto + ebp_CPTotalHoy + Number(EBPtotalClicks) + "\n";
  1781. chartValores = obtainChartValues(EBP_scharts[i].split("'")[1], 2);
  1782. chartValores = chartValores.reverse();
  1783. EBPtotalClicks = chartValores[1];
  1784. mitexto = mitexto + ebp_CPFijosFHoy + Number(EBPtotalClicks) + "\n";
  1785.  
  1786. chartValores = obtainChartValues(EBP_scharts[i].split("'")[1], 3);
  1787. chartValores = chartValores.reverse();
  1788. EBPtotalClicks = chartValores[1];
  1789. mitexto = mitexto + ebp_CPMicroHoy + Number(EBPtotalClicks) + "\n";
  1790.  
  1791. chartValores = obtainChartValues(EBP_scharts[i].split("'")[1], 4);
  1792. chartValores = chartValores.reverse();
  1793. EBPtotalClicks = chartValores[1];
  1794. mitexto = mitexto + ebp_CPMiniHoy + Number(EBPtotalClicks) + "\n";
  1795.  
  1796. chartValores = obtainChartValues(EBP_scharts[i].split("'")[1], 5);
  1797. chartValores = chartValores.reverse();
  1798. EBPtotalClicks = chartValores[1];
  1799. mitexto = mitexto + ebp_CPProlongadoHoy + Number(EBPtotalClicks) + "\n";
  1800.  
  1801. chartValores = obtainChartValues(EBP_scharts[i].split("'")[1], 6);
  1802. chartValores = chartValores.reverse();
  1803. EBPtotalClicks = chartValores[1];
  1804. mitexto = mitexto + ebp_CPStandarHoy + Number(EBPtotalClicks) + "\n";
  1805.  
  1806. chartValores = obtainChartValues(EBP_scharts[i].split("'")[1], 7);
  1807. chartValores = chartValores.reverse();
  1808. EBPtotalClicks = chartValores[1];
  1809. mitexto = mitexto + ebp_CPFijosNHoy + Number(EBPtotalClicks) + "\n";
  1810. break;
  1811. case "ch_cdd": //gráfica de referidos directos
  1812. chartValores = chartValores.reverse();
  1813. EBPtotalClicks = chartValores[0];
  1814. mitexto = mitexto + ebp_ClicsHoyRD + Number(EBPtotalClicks) + "\n";
  1815.  
  1816. EBPtotalClicks = chartValores[1];
  1817. mitexto = mitexto + ebp_ClicsAyerRD + Number(EBPtotalClicks) + "\n";
  1818. EBPtotalClicks = 0;
  1819. for (n = 0; n < chartValores.length - 1; n += 1) {
  1820. EBPtotalClicks = Number(EBPtotalClicks) + Number(chartValores[n]);
  1821. }
  1822. mitexto = mitexto + ebp_Clics10DiasRD + EBPtotalClicks + "\n";
  1823.  
  1824. break;
  1825. case "ch_cr": //Gráfica de referidos rentados
  1826. chartValores = chartValores.reverse();
  1827. EBPtotalClicks = chartValores[0];
  1828. mitexto = mitexto + ebp_ClicsHoyRR + Number(EBPtotalClicks) + "\n";
  1829.  
  1830. EBPtotalClicks = chartValores[1];
  1831. mitexto = mitexto + ebp_ClicsAyerRR + Number(EBPtotalClicks) + "\n";
  1832.  
  1833. EBPtotalClicks = 0;
  1834. for (n = 0; n < chartValores.length - 1; n += 1) {
  1835. EBPtotalClicks = Number(EBPtotalClicks) + Number(chartValores[n]);
  1836. }
  1837. mitexto = mitexto + ebp_Clics10DiasRR + EBPtotalClicks + "\n";
  1838. break;
  1839. case "ch_recycle": //Gráfica Costo de Reciclaje
  1840. chartValores = chartValores.reverse();
  1841. EBPtotalClicks = chartValores[0];
  1842. mitexto = mitexto + ebp_MontReciclaHoy + Number(EBPtotalClicks) + "\n";
  1843.  
  1844. EBPtotalClicks = chartValores[1];
  1845. mitexto = mitexto + ebp_MontReciclaAyer + Number(EBPtotalClicks) + "\n";
  1846. EBPtotalClicks = 0;
  1847. for (n = 0; n < 10; n += 1) {
  1848. EBPtotalClicks = Number(EBPtotalClicks) + Number(chartValores[n]);
  1849. }
  1850. valorOriginal = parseFloat(EBPtotalClicks);
  1851. EBPtotalClicks = Math.round(valorOriginal * 1000) / 1000;
  1852. mitexto = mitexto + ebp_MontRecicla10Dias + EBPtotalClicks + "\n";
  1853. break;
  1854. case "ch_trar": //Gráfica Reciclajes Automáticos
  1855. chartValores = chartValores.reverse();
  1856. EBPtotalClicks = chartValores[0];
  1857. mitexto = mitexto + ebp_ReciclaGratisHoy + Number(EBPtotalClicks) + "\n";
  1858. break;
  1859. //ch_extensions; ch_extensions_all; ch_extensions_man; ch_extensions_aut
  1860. case "ch_extensions_all": //Gráfica de renovaciones
  1861. chartValores = chartValores.reverse();
  1862. EBPtotalClicks = chartValores[1];
  1863. mitexto = mitexto + ebp_MontRenuevaHoy + Number(EBPtotalClicks) + "\n";
  1864.  
  1865. EBPtotalClicks = chartValores[2];
  1866. mitexto = mitexto + ebp_MontRenuevaAyer + Number(EBPtotalClicks) + "\n";
  1867. EBPtotalClicks = 0;
  1868. for (n = 1; n < 11; n += 1) {
  1869. EBPtotalClicks = Number(EBPtotalClicks) + Number(chartValores[n]);
  1870. }
  1871. valorOriginal = parseFloat(EBPtotalClicks);
  1872. EBPtotalClicks = Math.round(valorOriginal * 1000) / 1000;
  1873. mitexto = mitexto + ebp_MontRenueva10Dias + EBPtotalClicks + "\n";
  1874.  
  1875. EBPtotalClicks = 0;
  1876. chartValores = obtainChartValues(EBP_scharts[i].split("'")[1], 2);
  1877. chartValores = chartValores.reverse();
  1878.  
  1879. EBPtotalClicks = chartValores[1];
  1880. mitexto = mitexto + ebp_MontRenuevaHoyManual + Number(EBPtotalClicks) + "\n";
  1881. EBPtotalClicks = chartValores[2];
  1882. mitexto = mitexto + ebp_MontRenuevaAyerManual + Number(EBPtotalClicks) + "\n";
  1883. for (n = 1; n < 11; n += 1) {
  1884. EBPtotalClicks = Number(EBPtotalClicks) + Number(chartValores[n]);
  1885. }
  1886. valorOriginal = parseFloat(EBPtotalClicks);
  1887. EBPtotalClicks = Math.round(valorOriginal * 1000) / 1000;
  1888. mitexto = mitexto + ebp_MontRenueva10DiasManual + EBPtotalClicks + "\n";
  1889.  
  1890. chartValores = obtainChartValues(EBP_scharts[i].split("'")[1], 3);
  1891. chartValores = chartValores.reverse();
  1892. EBPtotalClicks = chartValores[1];
  1893. mitexto = mitexto + ebp_MontRenuevaHoyAuto + Number(EBPtotalClicks) + "\n";
  1894. EBPtotalClicks = chartValores[2];
  1895. mitexto = mitexto + ebp_MontRenuevaAyerAuto + Number(EBPtotalClicks) + "\n";
  1896. EBPtotalClicks = 0;
  1897. for (n = 1; n < 11; n += 1) {
  1898. EBPtotalClicks = Number(EBPtotalClicks) + Number(chartValores[n]);
  1899. }
  1900. valorOriginal = parseFloat(EBPtotalClicks);
  1901. EBPtotalClicks = Math.round(valorOriginal * 1000) / 1000;
  1902. mitexto = mitexto + ebp_MontRenueva10DiasAuto + EBPtotalClicks + "\n";
  1903. break;
  1904. case "ch_autopay": //Gráfica de Autopago
  1905. chartValores = chartValores.reverse();
  1906. EBPtotalClicks = chartValores[0];
  1907. mitexto = mitexto + ebp_MontAutoPagoHoy + Number(EBPtotalClicks) + "\n";
  1908.  
  1909. EBPtotalClicks = chartValores[1];
  1910. mitexto = mitexto + ebp_MontAutoPagoAyer + Number(EBPtotalClicks) + "\n";
  1911.  
  1912. EBPtotalClicks = 0;
  1913. for (n = 0; n < 10; n += 1) {
  1914. EBPtotalClicks = Number(EBPtotalClicks) + Number(chartValores[n]);
  1915. }
  1916. valorOriginal = parseFloat(EBPtotalClicks);
  1917. EBPtotalClicks = Math.round(valorOriginal * 1000) / 1000;
  1918. mitexto = mitexto + ebp_MontAutoPago10Dias + EBPtotalClicks + "\n";
  1919. break;
  1920. default:
  1921. break;
  1922. }
  1923. }
  1924. //mostramos los datos
  1925. mostrarVentana(mitexto, "EBPPAGEEST");
  1926. }
  1927.  
  1928. //***********************************************************************************
  1929. //**** para la página de los referidos directos *****
  1930. //***********************************************************************************
  1931. function EBP_Copia_RD() {
  1932. // establecemos las variables a usar en la funcion
  1933. var i, sOpcCheckBox, valorXPathResult, EBP_TablaRD, tipoFecha, subTipoFecha, refDesdeTipo, ultClickTipo, mitexto, largoTexto, textoTemporal, fechaHoy, numeroRD, nombreRD, origenRD, fechaDesdeRD, fechaUltClick, puntoCorte, ClicsRD, valorMediaRD;
  1934. //verificamos en la cookie cual es el tipo de formato para exportar los datos
  1935. sOpcCheckBox = checkCookie();
  1936. sOpcCheckBox = sOpcCheckBox.split("-");
  1937. nFormaFecha = sOpcCheckBox[0];
  1938. if (sOpcCheckBox[1] == 1) {
  1939. nFormaFecha = 2;
  1940. }
  1941. //Obtenemos la tabla de referidos directos
  1942. EBP_TablaRD = document.getElementById('tblprp').getElementsByTagName('table')[2].childNodes[0];
  1943. //Obtenemos el formato para los campos de fecha, Relativas o Exactas; referidos desde (2), ultimo clic (3)
  1944. valorXPathResult = document.evaluate("//div[@class='f_r']", document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
  1945. tipoFecha = stripHTML(valorXPathResult.snapshotItem(0).innerHTML);
  1946. tipoFecha = tipoFecha.split("·");
  1947. //variables para el formato del tipo de fecha; 0 = exactas, 1=relativas
  1948. refDesdeTipo = 0;
  1949. ultClickTipo = 0;
  1950. //vemos el tipo de fecha para referido desde y ultimo clic
  1951. subTipoFecha = tipoFecha[0].split(":");
  1952. if (ebp_trim(subTipoFecha[2]) == ebp_ffRelativa) {
  1953. refDesdeTipo = 1;
  1954. }
  1955. subTipoFecha = tipoFecha[1].split(":");
  1956. if (ebp_trim(subTipoFecha[1]) == ebp_ffRelativa) {
  1957. ultClickTipo = 1;
  1958. }
  1959. mitexto = "";
  1960. largoTexto = 10;
  1961. textoTemporal = "";
  1962. fechaHoy = new Date();
  1963. //Recorremos toda la tabla
  1964. //Iniciamos el la tercera fila (la primera es el encabezado y la segunda es una línea azul)
  1965. //luego leemos cada dos lineas
  1966. for (i = 2; i < EBP_TablaRD.rows.length - 3; i = i + 2) {
  1967. //Obtenemos el número del referido
  1968. numeroRD = EBP_TablaRD.rows[i].cells[0].innerHTML.replace(/&nbsp;/gi, "");
  1969. //Obtenemos el nombre del referido
  1970. nombreRD = stripHTML(EBP_TablaRD.rows[i].cells[1].innerHTML);
  1971. nombreRD = nombreRD.replace(/&nbsp;/gi, "");
  1972. //Obtenemos el sitio de donde vino el referido
  1973. origenRD = EBP_TablaRD.rows[i].cells[2].innerHTML.replace(/&nbsp;/gi, "");
  1974. //Obtenemos la fecha desde que es referido
  1975. fechaDesdeRD = EBP_TablaRD.rows[i].cells[3].innerHTML.replace(/&nbsp;/gi, "");
  1976. fechaDesdeRD = stripHTML(fechaDesdeRD);
  1977. //Obtenemos la fecha del último clic
  1978. fechaUltClick = EBP_TablaRD.rows[i].cells[4].innerHTML.replace(/&nbsp;/gi, "");
  1979. fechaUltClick = stripHTML(fechaUltClick);
  1980. //Obtenemos el total de clics
  1981. ClicsRD = EBP_TablaRD.rows[i].cells[5].innerHTML.replace(/&nbsp;/gi, "");
  1982. //Obtenemos el valor de la media
  1983. valorMediaRD = EBP_TablaRD.rows[i].cells[6].innerHTML.replace(/&nbsp;/gi, "");
  1984. valorMediaRD = stripHTML(valorMediaRD);
  1985. //normalizamos la fecha Referidos Desde
  1986. if (nFormaFecha === 1) {
  1987. fechaDesdeRD = obtieneFechaStandard(fechaDesdeRD, fechaHoy, 1, refDesdeTipo, 0);
  1988. } else {
  1989. if (nFormaFecha === 2) {
  1990. fechaDesdeRD = obtieneFechaStandard(fechaDesdeRD, fechaHoy, 1, refDesdeTipo, 1);
  1991. } else {
  1992. //virificamos si la variable contien datos entre parentesis,
  1993. //estos datos son colocados por algún script, procedemos a eliminarlos para dejar solamente
  1994. //los datos originales
  1995. if (fechaDesdeRD.indexOf('(') !== -1) {
  1996. puntoCorte = fechaDesdeRD.indexOf('(');
  1997. fechaDesdeRD = fechaDesdeRD.substring(0, puntoCorte);
  1998. }
  1999. }
  2000. }
  2001. //normalizamos la fecha de Ultimo Click
  2002. if (nFormaFecha === 1) {
  2003. fechaUltClick = obtieneFechaStandard(fechaUltClick, fechaHoy, 3, ultClickTipo, 0);
  2004. } else {
  2005. if (nFormaFecha === 2) {
  2006. fechaUltClick = obtieneFechaStandard(fechaUltClick, fechaHoy, 3, ultClickTipo, 1);
  2007. } else {
  2008. //verificamos si la variable contien datos entre parentesis o corchetes,
  2009. //estos datos son colocados por algún script, procedemos a eliminarlos para dejar solamente
  2010. //los datos originales
  2011. if (fechaUltClick.indexOf('(') !== -1 || fechaUltClick.indexOf('[') !== -1) {
  2012. puntoCorte = fechaUltClick.indexOf('(');
  2013. if (puntoCorte === -1) {
  2014. puntoCorte = fechaUltClick.indexOf('[');
  2015. }
  2016. fechaUltClick = fechaUltClick.substring(0, puntoCorte);
  2017. }
  2018. }
  2019. }
  2020. //verificamos si el valor de la Media contiene datos entre parentesis o corchetes,
  2021. //estos datos son colocados por algún script, procedemos a eliminarlos para dejar solamente
  2022. //los datos originales
  2023. if (valorMediaRD.indexOf("(") !== -1 || valorMediaRD.indexOf("|") !== -1) {
  2024. puntoCorte = valorMediaRD.indexOf("(");
  2025. if (puntoCorte === -1) {
  2026. puntoCorte = valorMediaRD.indexOf("|");
  2027. }
  2028. valorMediaRD = valorMediaRD.substring(0, puntoCorte);
  2029. }
  2030. //Verificamos si es un numero el valor de la media, sino regresamo el valor 0.000
  2031. if (isNaN(valorMediaRD)) {
  2032. valorMediaRD = "0.000";
  2033. }
  2034. //creamos el string de salida final
  2035. if (nFormaFecha === 2) {
  2036. textoTemporal = nombreRD.trim() + "," + fechaDesdeRD.trim() + "," + fechaUltClick.trim() + "," + ClicsRD.trim() + "\n";
  2037. } else {
  2038. textoTemporal = numeroRD.trim() + ";" + nombreRD.trim() + ";" + origenRD.trim() + ";" + fechaDesdeRD.trim() + ";" + fechaUltClick.trim() + ";" + ClicsRD.trim() + ";" + valorMediaRD.trim() + "\n";
  2039. }
  2040. if (textoTemporal.length > largoTexto) {
  2041. largoTexto = textoTemporal.length;
  2042. }
  2043. mitexto = mitexto + textoTemporal;
  2044. }
  2045. //mostramos los datos
  2046. mostrarVentana(mitexto.substring(0, mitexto.length - 1), "EBPPAGERD");
  2047. }
  2048.  
  2049. //***********************************************************************************
  2050. //**** para la página de los referidos rentados *****
  2051. //***********************************************************************************
  2052. function EBP_Copia_RR() {
  2053. // establecemos las variables a usar en la funcion
  2054. var i, sOpcCheckBox, valorXPathResult, EBP_TablaRR, tipoFecha, subTipoFecha, refDesdeTipo, refExpiraEnTipo, ultClickTipo, mitexto, largoTexto, textoTemporal, fechaHoy, numeroRR, nombreRR, origenRR, fechaDesdeRR, fechaExpiraEn, fechaUltClick, puntoCorte, ClicsRR, valorMediaRR;
  2055. //verificamos en la cookie cual es el tipo de formato para exportar los datos
  2056. sOpcCheckBox = checkCookie();
  2057. sOpcCheckBox = sOpcCheckBox.split("-");
  2058. nFormaFecha = sOpcCheckBox[0];
  2059. if (sOpcCheckBox[1] == 1) {
  2060. nFormaFecha = 2;
  2061. }
  2062. //Obtenemos la tabla de referidos rentados
  2063. EBP_TablaRR = document.getElementById('tblprp').getElementsByTagName('table')[2].childNodes[0];
  2064. //Obtenemos el formato para los campos de fecha, Relativas o Exactas; referidos desde (2), ultimo clic (3)
  2065. valorXPathResult = document.evaluate("//div[@class='f_r']", document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
  2066. tipoFecha = stripHTML(valorXPathResult.snapshotItem(0).innerHTML);
  2067. tipoFecha = tipoFecha.split("·");
  2068. //variables para el formato del tipo de fecha; 0 = exactas, 1=relativas
  2069. refDesdeTipo = 0;
  2070. ultClickTipo = 0;
  2071. refExpiraEnTipo = 0;
  2072. //vemos el tipo de fecha para referido desde y ultimo clic
  2073. subTipoFecha = tipoFecha[0].split(":");
  2074. if (ebp_trim(subTipoFecha[2]) == ebp_ffRelativa) {
  2075. refDesdeTipo = 1;
  2076. }
  2077. subTipoFecha = tipoFecha[1].split(":");
  2078. if (ebp_trim(subTipoFecha[1]) == ebp_ffRelativa) {
  2079. refExpiraEnTipo = 1;
  2080. }
  2081. subTipoFecha = tipoFecha[2].split(":");
  2082. if (ebp_trim(subTipoFecha[1]) == ebp_ffRelativa) {
  2083. ultClickTipo = 1;
  2084. }
  2085. mitexto = "";
  2086. largoTexto = 10;
  2087. textoTemporal = "";
  2088. fechaHoy = new Date();
  2089. //Recorremos toda la tabla; Iniciamos el la tercera fila (la primera es el encabezado y la segunda es una línea azul)
  2090. //luego leemos de dos en dos ya que hay una linea vacia entre referidos
  2091. for (i = 2; i < EBP_TablaRR.rows.length - 2; i = i + 2) {
  2092. //Obtenemos el número del referido
  2093. numeroRR = EBP_TablaRR.rows[i].cells[0].innerHTML.replace(/&nbsp;/gi, "");
  2094. //Obtenemos el nombre del referido
  2095. nombreRR = stripHTML(EBP_TablaRR.rows[i].cells[2].innerHTML);
  2096. nombreRR = nombreRR.replace(/&nbsp;/gi, "");
  2097. //Obtenemos la fecha desde que es referido
  2098. fechaDesdeRR = EBP_TablaRR.rows[i].cells[3].innerHTML.replace(/&nbsp;/gi, "");
  2099. fechaDesdeRR = stripHTML(fechaDesdeRR);
  2100. //Obtenemos la fecha de expiración
  2101. fechaExpiraEn = EBP_TablaRR.rows[i].cells[4].innerHTML.replace(/&nbsp;/gi, "");
  2102. fechaExpiraEn = stripHTML(fechaExpiraEn);
  2103. //Obtenemos la fecha del último clic
  2104. fechaUltClick = EBP_TablaRR.rows[i].cells[5].innerHTML.replace(/&nbsp;/gi, "");
  2105. fechaUltClick = stripHTML(fechaUltClick);
  2106. //Obtenemos el total de clics
  2107. ClicsRR = EBP_TablaRR.rows[i].cells[6].innerHTML.replace(/&nbsp;/gi, "");
  2108. //Obtenemos el valor de la media
  2109. valorMediaRR = EBP_TablaRR.rows[i].cells[7].innerHTML.replace(/&nbsp;/gi, "");
  2110. valorMediaRR = stripHTML(valorMediaRR);
  2111. // Normalizamos la fecha referidos desde
  2112. if (nFormaFecha === 1) {
  2113. fechaDesdeRR = obtieneFechaStandard(fechaDesdeRR, fechaHoy, 1, refDesdeTipo, 0);
  2114. } else {
  2115. if (nFormaFecha === 2) {
  2116. fechaDesdeRR = obtieneFechaStandard(fechaDesdeRR, fechaHoy, 1, refDesdeTipo, 1);
  2117. } else {
  2118. //virificamos si la variable contien datos entre parentesis,
  2119. //estos datos son colocados por algún script, procedemos a eliminarlos para dejar solamente
  2120. //los datos originales
  2121. if (fechaDesdeRR.indexOf('(') !== -1) {
  2122. puntoCorte = fechaDesdeRR.indexOf('(');
  2123. fechaDesdeRR = fechaDesdeRR.substring(0, puntoCorte);
  2124. }
  2125. }
  2126. }
  2127. //Normalizamos la fecha Expira en
  2128. if (nFormaFecha === 1) {
  2129. fechaExpiraEn = obtieneFechaStandard(fechaExpiraEn, fechaHoy, 2, refExpiraEnTipo, 0);
  2130. } else {
  2131. //virificamos si la variable contien datos entre parentesis,
  2132. //estos datos son colocados por algún script, procedemos a eliminarlos para dejar solamente
  2133. //los datos originales
  2134. if (fechaExpiraEn.indexOf('(') !== -1) {
  2135. puntoCorte = fechaExpiraEn.indexOf('(');
  2136. fechaExpiraEn = fechaExpiraEn.substring(0, puntoCorte);
  2137. }
  2138. }
  2139. //Normalizamos la fecha del último click
  2140. if (nFormaFecha === 1) {
  2141. fechaUltClick = obtieneFechaStandard(fechaUltClick, fechaHoy, 3, ultClickTipo, 0);
  2142. } else {
  2143. if (nFormaFecha === 2) {
  2144. fechaUltClick = obtieneFechaStandard(fechaUltClick, fechaHoy, 3, ultClickTipo, 1);
  2145. } else {
  2146. //verificamos si la variable contien datos entre parentesis o corchetes,
  2147. //estos datos son colocados por algún script, procedemos a eliminarlos para dejar solamente
  2148. //los datos originales
  2149. if (fechaUltClick.indexOf('(') !== -1 || fechaUltClick.indexOf('[') !== -1) {
  2150. puntoCorte = fechaUltClick.indexOf('(');
  2151. if (puntoCorte === -1) {
  2152. puntoCorte = fechaUltClick.indexOf('[');
  2153. }
  2154. fechaUltClick = fechaUltClick.substring(0, puntoCorte);
  2155. }
  2156. }
  2157. }
  2158. //verificamos si el valor de la Media contiene datos entre parentesis o corchetes,
  2159. //estos datos son colocados por algún script, procedemos a eliminarlos para dejar solamente
  2160. //los datos originales
  2161. if (valorMediaRR.indexOf('(') !== -1 || valorMediaRR.indexOf('|') !== -1) {
  2162. puntoCorte = valorMediaRR.indexOf('(');
  2163. if (puntoCorte === -1) {
  2164. puntoCorte = valorMediaRR.indexOf('|');
  2165. }
  2166. valorMediaRR = valorMediaRR.substring(0, puntoCorte);
  2167. }
  2168. //Verificamos si es un numero el valor de la media, sino regresamo el valor 0.000
  2169. if (isNaN(valorMediaRR)) {
  2170. valorMediaRR = '0.000';
  2171. }
  2172. //creamos el string de salida final
  2173. if (nFormaFecha === 2) {
  2174. textoTemporal = nombreRR.trim() + "," + fechaDesdeRR.trim() + "," + fechaUltClick.trim() + "," + ClicsRR.trim() + "\n";
  2175. } else {
  2176. textoTemporal = numeroRR.trim() + ";" + nombreRR.trim() + ";" + fechaDesdeRR.trim() + ";" + fechaExpiraEn.trim() + ";" + fechaUltClick.trim() + ";" + ClicsRR.trim() + ";" + valorMediaRR.trim() + "\n";
  2177. }
  2178. if (textoTemporal.length > largoTexto) {
  2179. largoTexto = textoTemporal.length;
  2180. }
  2181. mitexto = mitexto + textoTemporal;
  2182. }
  2183. // mostramso el resultado
  2184. mostrarVentana(mitexto.substring(0, mitexto.length - 1), "EBPPAGERR");
  2185. }
  2186.  
  2187. //preguntamos por el idioma primero
  2188. miIdioma();
  2189. //para la página de estadísticas
  2190. if (location.href.indexOf("www.neobux.com/c/rs/") != -1) {
  2191. ebp_Tipo_Pag = 3;
  2192. crearBotonEBP("ExportEBP", EBP_Copia_Estadisticas);
  2193.  
  2194. ebp_AnchoED = 400;
  2195. ebp_AltoED = 300;
  2196. crearFormularioEBP(2);
  2197. } else {
  2198. //para la página de referidos directos
  2199. if ( location.href.indexOf("www.neobux.com/c/rl") != -1 && location.href.indexOf("ss3=1") != -1) {
  2200. ebp_Tipo_Pag = 2;
  2201. crearBotonEBP("ExportEBP", EBP_Copia_RD);
  2202.  
  2203. ebp_AnchoED = 700;
  2204. ebp_AltoED = 400;
  2205. crearFormularioEBP(2);
  2206. } else {
  2207. //para la página de referidos rentados
  2208. if ( location.href.indexOf("www.neobux.com/c/rl") != -1 && location.href.indexOf("ss3=2") != -1) {
  2209. ebp_Tipo_Pag = 1;
  2210. crearBotonEBP("ExportEBP", EBP_Copia_RR);
  2211. ebp_AnchoED = 700;
  2212. ebp_AltoED = 400;
  2213. crearFormularioEBP(2);
  2214. } else {
  2215. //para la página de Opciones Personales
  2216. if (location.href.indexOf("www.neobux.com/c/d/") != -1) {
  2217. ebp_Tipo_Pag = 4;
  2218. checkCookie();
  2219. crearBotonEBP("ExportEBP Opt", mostrarVentanaOpciones);
  2220. ebp_AnchoED = 500;
  2221. ebp_AltoED = 250;
  2222. crearFormularioEBP(1);
  2223. } else {
  2224. //para la página resumen
  2225. if (location.href.indexOf("www.neobux.com/c/") != -1 || location.href.indexOf("www.neobux.com/c/?vl") != -1) {
  2226. ebp_Tipo_Pag = 0;
  2227. crearBotonEBP("ExportEBP", EBP_Copia_Resumen);
  2228.  
  2229. ebp_AnchoED = 400;
  2230. ebp_AltoED = 330;
  2231. crearFormularioEBP(2);
  2232. }
  2233. }
  2234. }
  2235. }
  2236. }