WEL026.jsp 7.03 KB
Newer Older
Thitichaipun Wutthisak committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@page contentType="text/html; charset=UTF-8"%>
<%@page import="com.csc.library.entry.*,com.csc.library.system.*,com.csc.library.utilities.*,com.csc.library.components.*"%>
<jsp:useBean id="WEL026" class="com.csc.library.system.Task" scope="page" />
<%
	WEL026.setChannel(request, response);
	HelpEntry screen = (HelpEntry) WEL026.process("HelpEntry","WEL026");
	screen.setMaxLine(20);
	screen.process();
	CscCalendar cs=new CscCalendar();
	
        ListBox  lisbx=new ListBox((screen.getInquiry().getCurrentDbRecord().getField("webtid")),new MyFont(),new MyFont());
       lisbx.setUProfile(screen.getUProfile());
       lisbx.process();
	   
        ListBox  lisbx1=new ListBox((screen.getInquiry().getCurrentDbRecord().getField("usergrp")),new MyFont(),new MyFont());
       lisbx1.setUProfile(screen.getUProfile());
       lisbx1.process();
	
%>


<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="../CSS/TISCO.css" rel="stylesheet" type="text/css">
<script language="JavaScript" src="../JS/SCREEN.js"></script>
<script language='javascript' src="../JS/VIEWCALENDAR.js"></script>
<script language='javascript' src="../JS/ICONSMENU.js"></script>
<script language='javascript' src="../JS/HOTKEY.js"></script>
<script language='javascript'>setLang('<%=screen.getUProfile().get("lang")%>');</script>
<script language="javascript">
function goHelp(helpName,inputName){
	var helpReturn;
                      helpReturn="__ins_typeid:ins_typeid,myhrwebboard_TYPE@EDESC";
	 linkHelp_Return(helpName,helpReturn);
}

function gotopage(page,idno){
		with(document.cscform){
					action=page;
					__webid.value=idno;
					__fixCon.value="webid='"+idno+"'";
					__cmd.value="";
					__readposter.value="count";					
					submit();
		}
}

function delpage(page,idno)
{
			with(document.cscform){
			__id.value=idno;
			__confirm.value="2";
			__cmd.value = "save";
			submit();
   }
}

function GoSearch(){
  with(document.cscform){

			search();
  }

}

function GoSearch2(){
  with(document.cscform){			
          var fixcon ="";
		   fixcon="usergrp='"+__usergrp.options[__usergrp.selectedIndex].value+"'";
		   if(fixcon=="webtid=''")
		   {
		   			fixcon="";
		   }
		   __fixCon.value=fixcon;
			
			
			GoSearch();
  }

}
function GoSearch1(){
  with(document.cscform){			
          var fixcon ="";
		   fixcon="webtid='"+__webtid.options[__webtid.selectedIndex].value+"'";
		   if(fixcon=="webtid=''")
		   {
		   			fixcon="";
		   }
		   __fixCon.value=fixcon;
			
			
			GoSearch();
  }

}


function postnew(page){
    with(document.cscform){
	           open(page,"post","height=450,width=600,status=1");
	}
}


</script>
<style type="text/css">
<!--
.style1 {color: #FF0000}
-->
</style>
</head>
<body leftmargin="0" topmargin="0">
<div class="centered">
<div id="toolTipLayer" style="position:absolute; visibility: hidden"></div>
<script language="javascript">initToolTips();</script>
<form name="cscform" method="post" action="WEL026.jsp">
 

<!----------BEGIN CSC INITIAL ZONE ------------------------>

<%=screen.InitialVariable()%>

<!----------END CSC INITIAL ZONE -------------------------->

<input type="hidden" name="__cmd" value="">
	<input type="hidden" name="__help" value="">
	<input type="hidden" name="__goPage" value="">
	<input type="hidden" name="__orderBy" value="">
	<input type="hidden" name="__fixCon" value="<%=request.getParameter("__fixCon")%>">
	<input type="hidden" name="__helpReturn" value="">
	<input type="hidden" name="__helpName" value="">
	<input type="hidden" name="__pageCall" value="">
	<input type="hidden" name="__referPage" value="">
	<input type="hidden" name="__searchBy" value="mwebboard.usergrp">
	<input type="hidden" name="__conSearch" value="=">
	<input type="hidden" name="__webid" value="">
	<input type="hidden" name="__notNull" value="">
	<input type="hidden" name="__confirm" value="">
	<input type="hidden" name="__reader" value="">
	<input type="hidden" name="__readposter" value="">
	<input type="hidden"name="__valueSearch"  value="">
	<!---input type="hidden" name="__usergrp" value="<%//=request.getParameter("__usergrp")%>">
	<input type="hidden" name="__webtid" value="<%//=request.getParameter("__webtid")%>"-->

    <table width="100%"  border="0" cellpadding="0" cellspacing="1" bgcolor="#808080" class="inframe">
      <tr>
        <td><table border="0" align="center" cellpadding="0" cellspacing="1" class="inframe">
          <tr>
            <td class="headerleft" colspan="3"><img src="../IMAGES/WEBBOARD.gif" width="30%" height="40"><img src="../IMAGES/WEBBOARD-END.gif" width="69.99%" height="40"></td>
          </tr>
          <tr >
            <td colspan="3" class="header">WEL026,
                <script language="javascript">swapLang('Webboard');</script>
            </td>
          </tr>
          <tr class="maxsize">
            <td colspan="3" ><table width="100%"  border="0" cellspacing="1" cellpadding="0" class="inframe">
                <tr>
                  <td><span class="header">
                  <script language="javascript">swapLang('Type');</script>
</span><%=lisbx.getInput()%></td>
                  <td><a href="javascript:postnew('WEL027.jsp')">
                    <script language="javascript">swapLang('New topic');</script>
                    <br>
                    <img src="../IMAGES/IOPTIMIZE.gif" border="0"></a></td>
                  <td><!--script language="javascript">swapLang('Group');</script-->
                      <%//=lisbx1.getInput()%> </td>
                </tr>
            </table></td>
          </tr>
          <tr class="blankspace">
            <td colspan="3" align="right"><%=screen.getPageTag()%></td>
          </tr>
          <tr class="maxsize">
            <td  class="title1"><div align="center"><strong>
                <script language="javascript">swapLang('Topic');</script>
            </strong></div></td>
            <td width="5%" class="title1"><div align="center"><strong>
                <script language="javascript">swapLang('Read');</script>
            </strong></div></td>
            <td width="5%" class="title1"><div align="center"><strong>
                <script language="javascript">swapLang('Reply');</script>
            </strong></div></td>
          </tr>
          <%
						while(screen.nextRec())
						{if(screen.checkLinePage()){
									%>
          <tr bgcolor="#E6E6E6" class="maxsize">
            <td><div align="left"><%=screen.getString("webid")%>&nbsp;&nbsp;<a href="javascript:gotopage('WEL025.jsp','<%=screen.getString("webid")%>');" ><%=screen.getString("webtopic")%></a>&nbsp;&nbsp;[<%=screen.getString("recordername")%>&nbsp;&nbsp;<%=screen.getString("postdate")%>]</div></td>
            <td align="center"><%=screen.getString("mwebboard","reader")%></td>
            <td align="center"><%=screen.getString("writecounter")%></td>
          </tr>
          <%}
					 if(screen.outLinePage()){ break; }

	}%>
          <tr>
            <td class="bottom" colspan="3"> </td>
          </tr>
        </table></td>
      </tr>
    </table>
</form>
</body>
</html>