|
7 | 7 | <script src="js/nwe-readme-viewer.js"></script> |
8 | 8 | </head> |
9 | 9 | <body> |
| 10 | +<nav class="nav"><div class="nav-inner"><span class="nav-brand">CaliforniaCIA™</span> |
| 11 | + <ul class="nav-links"> |
| 12 | + <li><a href="index.jsp">Overview</a></li> |
| 13 | + <li><a href="report.jsp" class="active">Report</a></li> |
| 14 | + <li><a href="foia.jsp">FOIA</a></li> |
| 15 | + <li><a href="search.jsp">Search</a></li> |
| 16 | + <li><a href="status.jsp">Status</a></li> |
| 17 | + </ul> |
| 18 | +</div></nav> |
| 19 | +<section class="hero" style="padding:4rem 2rem;"><div class="hero-inner"><span class="hero-tag">Intelligence Reporting</span><h1>Submit Information</h1><p>Report intelligence information to local database. AI-categorized and queued for review.</p></div></section> |
| 20 | + |
| 21 | +<!-- CD1 Connector Button + Floating Dialog --> |
| 22 | +<div style="display:flex;justify-content:center;align-items:center;width:100%;padding:2rem 0;"> |
| 23 | + <button id="cd1-btn" type="button" aria-pressed="false" style="all:unset;display:block;margin:0 auto;cursor:pointer;padding:0;border:none;background:transparent;transition:transform 0.3s cubic-bezier(0.42,-1.84,0.42,1.84),filter 0.3s ease;"> |
| 24 | + <img src="images/black.button.png" alt="Connector" style="display:block;width:80px;height:80px;border-radius:50%;background:transparent;"/> |
| 25 | + </button> |
| 26 | +</div> |
| 27 | +<div id="cd1-overlay" style="display:none;position:fixed;inset:0;z-index:299;background:transparent;"></div> |
| 28 | +<div id="cd1-dialog" style="display:none;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:300;background:#1a1a24;border:1px solid #27272a;border-radius:12px;padding:1.25rem;width:520px;max-width:90vw;box-shadow:0 8px 32px rgba(0,0,0,0.6);"><div style="font-size:0.9rem;font-weight:600;color:#a3e635;margin-bottom:0.75rem;">CIA Report Connector — Port 49211</div><div style="display:flex;gap:0.5rem;margin-bottom:0.75rem;"><select id="cd1-action" style="background:#111118;color:#fff;border:1px solid #27272a;border-radius:8px;padding:0.45rem;font-size:0.8rem;"><option value="connect">Connect</option><option value="report">Report</option><option value="status">Status</option></select><button onclick="cd1Send()" style="background:#65a30d;color:#fff;border:none;border-radius:8px;padding:0.45rem 1rem;font-size:0.8rem;cursor:pointer;">Send</button><button onclick="cd1Ok()" style="background:#65a30d;color:#fff;border:none;border-radius:8px;padding:0.45rem 1rem;font-size:0.8rem;cursor:pointer;">OK</button></div><label style="font-size:0.7rem;color:#71717a;"><input type="checkbox" id="cd1-direct-port"/> Direct Port</label><textarea id="cd1-textarea" placeholder="Idle..." style="width:100%;min-height:120px;background:#fff;color:#111;border:1px solid #27272a;border-radius:8px;padding:0.75rem;font-family:monospace;font-size:0.8rem;margin-top:0.5rem;resize:vertical;"></textarea></div> |
| 29 | +<script>window.CD1_MODULE_PORT="49211";</script> |
| 30 | +<script src="js/cd1-connector.js"></script> |
| 31 | + |
| 32 | +<section class="section"><div class="section-inner" style="max-width:700px;"> |
| 33 | +<% |
| 34 | + String msg = null; String msgColor = "#22c55e"; |
| 35 | + if ("POST".equals(request.getMethod())) { |
| 36 | + String category = request.getParameter("category"); |
| 37 | + String text = request.getParameter("report_text"); |
| 38 | + if (category != null && text != null && !text.trim().isEmpty()) { |
| 39 | + try { |
| 40 | + Properties p = new Properties(); |
| 41 | + InputStream is = application.getResourceAsStream("/WEB-INF/db.properties"); |
| 42 | + if (is != null) { p.load(is); is.close(); } |
| 43 | + Class.forName(p.getProperty("db.driver", "com.mysql.cj.jdbc.Driver")); |
| 44 | + try (Connection conn = DriverManager.getConnection(p.getProperty("db.url", "jdbc:mysql://127.0.0.1:3306/nwe_california_cia"), p.getProperty("db.user", "root"), p.getProperty("db.password", "")); |
| 45 | + PreparedStatement ps = conn.prepareStatement("INSERT INTO intelligence_reports (category, report_text, status) VALUES (?, ?, 'pending')")) { |
| 46 | + ps.setString(1, category); ps.setString(2, text.trim()); ps.executeUpdate(); |
| 47 | + msg = "Report submitted. Category: " + category; |
| 48 | + } |
| 49 | + } catch (Exception e) { msg = "Error: " + e.getMessage(); msgColor = "#ef4444"; } |
| 50 | + } else { msg = "Please fill in all fields."; msgColor = "#ef4444"; } |
| 51 | + } |
| 52 | +%> |
| 53 | +<% if (msg != null) { %><div style="margin-bottom:1.5rem;padding:1rem;border:1px solid <%=msgColor%>;border-radius:8px;color:<%=msgColor%>;font-size:0.9rem;"><%=msg%></div><% } %> |
| 54 | +<h2 style="color:var(--accent-light);margin-bottom:1rem;">Submit Intelligence Report</h2> |
| 55 | +<form method="POST" action="report.jsp"> |
| 56 | + <div class="form-group"><label>Category</label><select name="category" required> |
| 57 | + <option value="">— Select Category —</option> |
| 58 | + <option value="counterintelligence">Counterintelligence</option> |
| 59 | + <option value="terrorism">Terrorism</option> |
| 60 | + <option value="espionage">Espionage</option> |
| 61 | + <option value="cyber-threats">Cyber Threats</option> |
| 62 | + <option value="weapons-proliferation">Weapons Proliferation</option> |
| 63 | + <option value="foreign-intelligence">Foreign Intelligence Activity</option> |
| 64 | + <option value="corruption">Government Corruption</option> |
| 65 | + <option value="other">Other</option> |
| 66 | + </select></div> |
| 67 | + <div class="form-group"><label>Details</label><textarea name="report_text" placeholder="Describe the intelligence, sources, dates, locations..." required></textarea></div> |
| 68 | + <button type="submit" class="btn btn-primary" style="width:100%;">Submit Report</button> |
| 69 | +</form> |
| 70 | +<p style="margin-top:1.5rem;font-size:0.8rem;color:var(--text-muted);">For direct CIA reporting: <a href="https://www.cia.gov/report-information/" target="_blank">cia.gov/report-information</a></p> |
| 71 | +</div></section> |
| 72 | +<footer class="footer"><div><span>CaliforniaCIA™ — Report — Port 49211 — MEARVK LLC — NitroWebExpress™ 2026</span></div></footer> |
| 73 | +</body></html> |
0 commit comments