| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195 |
- <%@ include file="../common/header.jsp"%>
- <%
- int i=0;
- %>
- <script type="text/javascript" language="javascript">
- <!--
- function doBack(){
- document.forms.dlog.action.value="list";
- document.forms.dlog.submit();
- }
-
- function doCopyToClipboard(text){
- if(window.clipboardData)
- {
- window.clipboardData.setData('text',text);
- }
- else
- {
- var clipboarddiv=document.getElementById('divclipboardswf');
- if(clipboarddiv==null)
- {
- clipboarddiv=document.createElement('div');
- clipboarddiv.setAttribute("name", "divclipboardswf");
- clipboarddiv.setAttribute("id", "divclipboardswf");
- document.body.appendChild(clipboarddiv);
- }
- clipboarddiv.innerHTML='<embed src="clipboard.swf" FlashVars="clipboard='+
- encodeURIComponent(text)+'" width="0" height="0" type="application/x-shockwave-flash"></embed>';
- }
- alert('The text is copied to your clipboard...');
- return false;
- }
-
- function toggle(obj) {
- var el = document.getElementById(obj);
- if (el.style.display != "none") {
- el.style.display = "none";
- } else {
- el.style.display = "";
- }
- }
- // untuk load Raw
- var lastId = "";
- function doLoadRaw(id,j) {
-
- var test = 'result_'+j;
- var form = document.forms.dlog;
- try {
- if (id.length > 0) {
- if(id == lastId) {
- toggle(test);
- }
- else {
- document.getElementById(test).style.display = "";
- var cacheTime = new Date();
- var cacheTimeTs = cacheTime.getTime();
- var req = createXMLHttpRequest();
- var url = "dlog.do?action=doLoadRaw&id=" +id;
- req.open("GET", url);
- req.onreadystatechange = function() {
- if (req.readyState == 4) {
- document.getElementById(test).innerHTML="";
- var response = req.responseXML;
-
- if (response) {
- var xmlRoot = response.getElementsByTagName("dlog")[0];
- if (xmlRoot) {
- document.getElementById(test).innerHTML = "<table width='100%' border='0' cellspacing='1' cellpadding='2'><tr><td width='20%' align='left' valign='top'>Raw</td><td width='1%' align='left' valign='top'>:</td><td width='29%' align='left' valign='top'> " + (xmlRoot.getElementsByTagName("raw")[0].childNodes[0].nodeValue == "null" ? "" : xmlRoot.getElementsByTagName("raw")[0].childNodes[0].nodeValue )+"</td></tr></table>" ;
- }
- }
- } else {
- document.getElementById(test).innerHTML=" <b>Please Wait, loading data...</b>";
- }
- }
- req.send(null);
-
- }
- lastId = id;
- } else {
-
- }
- } catch(e) {
- alert(e);
- }
- }
- //akhir load raw
-
- -->
- </script>
- <!-- CONTENT -->
- <form name="dlog" method="post" action="dlog.do">
- <input type="hidden" name="action" value ="">
- <input type="hidden" name="clear" value ="">
- <!--td valign="top" width="80%"-->
- <logic:notEmpty name="listDlog">
- <table width="100%" border="0" cellspacing="1" cellpadding="2">
- <logic:iterate id="element_List" name="listDlog">
- <logic:iterate id="element_List2" name="element_List">
- <logic:equal name="element_List2" property="key" value="Id">
- <input type="hidden" id="idRaw_<%=++i%>" value="<%=((java.util.Map.Entry)element_List2).getValue()%>"/>
- </logic:equal>
-
- <!--Untuk RAW-->
- <logic:notEqual name="element_List2" property="key" value="Raw_Codex">
- <logic:notEqual name="element_List2" property="key" value="!type">
- <logic:notEqual name="element_List2" property="key" value="!remainingPos">
- <logic:notEqual name="element_List2" property="key" value="!remaining">
- <logic:notEqual name="element_List2" property="key" value="!raw">
- <logic:notEqual name="element_List2" property="key" value="!codex">
- <logic:notEqual name="element_List2" property="key" value="!parseCodex">
- <tr align = "left">
- <td width="28%" valign="top"><bean:write name="element_List2" property="key"/></td>
- <td width="2%" valign="top">:</td>
- <td width="70%" valign="top">
- <logic:notEmpty name="element_List2" property="key">
- <logic:equal name="element_List2" property="key" value="Raw">
- <tr><td colspan="3"><PRE class="brush: c-sharp;"><%=(((java.util.Map.Entry)element_List2).getValue()) %></PRE></td></tr>
- </logic:equal>
- <logic:equal name="element_List2" property="key" value="Timestamp">
- <bean:write name="element_List2" property="value.time" format="yyyy-MM-dd HH:mm:ss.SSS"/>
- </logic:equal>
- <logic:equal name="element_List2" property="key" value="Request Time">
- <bean:write name="element_List2" property="value.time" format="yyyy-MM-dd HH:mm:ss.SSS"/>
- </logic:equal>
- <logic:equal name="element_List2" property="key" value="Broker Log">
- <PRE><%=(((java.util.Map.Entry)element_List2).getValue()) %></PRE>
- </logic:equal>
- <logic:notEqual name="element_List2" property="key" value="Broker Log">
- <logic:notEqual name="element_List2" property="key" value="Timestamp">
- <logic:notEqual name="element_List2" property="key" value="Request Time">
- <logic:notEqual name="element_List2" property="key" value="Raw">
- <%= id.co.hanoman.config.Util.print(((java.util.Map.Entry)element_List2).getValue()).replaceAll(" ", " ") %>
- </logic:notEqual>
- </logic:notEqual>
- </logic:notEqual>
- </logic:notEqual>
- </logic:notEmpty>
- </td>
- </tr>
- </logic:notEqual>
- </logic:notEqual>
- </logic:notEqual>
- </logic:notEqual>
- </logic:notEqual>
- </logic:notEqual>
- </logic:notEqual>
- <!--End RAW-->
- </logic:iterate>
- <tr>
- <td colspan="3">
- <input type="button" onclick="doLoadRaw(document.getElementById('idRaw_<%=i%>').value,<%=i%>)" value="Detail Raw" />
- </td>
- </tr>
- <tr>
- <td colspan="3">
- <div id="result_<%=i%>" style="OVERFLOW: auto; height:50px; WIDTH:500px;" DESIGNTIMEDRAGDROP="157"></div>
- </td>
- </tr>
- <tr><td colspan="3"><hr class="titlePage"></hr></td></tr>
- </logic:iterate>
- </table>
- </logic:notEmpty>
- <table>
- <tr>
- <td> </td>
- <td> </td>
- <td>
- <input type="button" value=<bean:message key="button.back" /> onclick="doBack();">
- </td>
- <td> </td>
- <td> </td>
- <td> </td>
- </tr>
- <tr>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- </tr>
- </table>
- </form>
- <!-- END CONTENT -->
- <%@ include file="../common/footer.jsp"%>
-
|