⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 index.jsp

📁 华东粮油电子交易市场网站源码华东粮油电子交易市场网站源码华东粮油电子交易市场网站源码
💻 JSP
📖 第 1 页 / 共 2 页
字号:
//如果栏目不为零
String strMenuPath = "";
if(!igec.util.Tool.IsEmpty(strInfoCode)){
}
//如果专题不为零
String strSpecialPath = "";
if(!igec.util.Tool.IsEmpty(strSpecialId)){
}
%>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="small" bgcolor="#000000">
  <tr> 
    <td height="22" class="TableControl">您现在的位置:&nbsp;<a href="?iid=N0001">新闻管理</a><%=strPath%>&nbsp;>>&nbsp;所有新闻</td>
    <td width="20" height="22" align="right" class="TableControl">
	
	<%if('1'==igec.util.Tool.getSafeChar(site.bean.SitePara.strSysFunctionOpenFlag,site.bean.SitePara.iOpenInfoCode)){%>
	<select name="JumpClass" id="JumpClass" onchange="if(this.options[this.selectedIndex].value!=''){location='index.jsp?iid=N0001&CodeId='+this.options[this.selectedIndex].value;}"  style="display:none">
      <option value="" selected>跳转品种至…</option>
	  	<script language="javascript" src="<%=igec.site.base.bean.SitePara.strVirtualName%>/file/static/js/infocode.js"></script>
	</select>
 <%}%>
	
	<select name="JumpMenu" id="JumpMenu" onchange="if(this.options[this.selectedIndex].value!=''){location='index.jsp?iid=N0001&ClassId='+this.options[this.selectedIndex].value;}">
      <option value="" selected>跳转分类至…</option>
	  	<script language="javascript" src="<%=igec.site.base.bean.SitePara.strVirtualName%>/file/static/js/infomenu.js"></script>
	</select>
	
		<%if('1'==igec.util.Tool.getSafeChar(site.bean.SitePara.strSysFunctionOpenFlag,site.bean.SitePara.iOpenSpecial)){%>
	<select name="JumpSpecial" id="JumpSpecial" onchange="if(this.options[this.selectedIndex].value!=''){location='index.jsp?iid=N0001&SpecialId='+this.options[this.selectedIndex].value;}">
      <option value="" selected>跳转专题至…</option>
	  	<script language="javascript" src="<%=igec.site.base.bean.SitePara.strVirtualName%>/file/static/js/infospecial.js"></script>
	</select>
<%}%>
    </td>
  </tr>
</table>
<br>
     	<table border="0" width="100%" cellpadding="3" cellspacing="1" class="small" bgcolor="#000000">
     	<form name="form1" id="form1">
          <tr height="22"> 
            <td height="22" width="5%" align="center" class="TableControl" nowrap><strong>选中</strong></td>
            <td align="center" class="TableControl"><strong>新闻标题</strong></td>
            <td width="10%" align="center" class="TableControl" nowrap><strong>录入</strong></td>
            <td width="6%" align="center" class="TableControl" nowrap><strong>点击数</strong></td>
            <td width="10%" align="center" class="TableControl" nowrap><strong>新闻属性</strong></td>
            <td align="center" width="10%" class="TableControl" nowrap><strong>操作</strong></td>
          </tr>
<%
			for(int nIndex=0;nIndex<nlists.size();nIndex++){
				igec.site.base.bean.StandSysObj news = (igec.site.base.bean.StandSysObj)nlists.get(nIndex);
%>             
          <tr class="tdbg" onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'" title="最后更新于:<%=igec.util.Tool.getStrTime(news.getStrValue10(),0)%>"> 
       			<td  align="center" class="TableData" nowrap><input name="RSID" type="checkbox" id="RSID" value="<%=news.getStrValue1()%>"></td>
            <td class="TableData"><%if("1".equals(news.getStrValue5())) out.print("<font color=\"#FF0000\">(图)</font>");%><a href="javascript:" onclick="javascript:openWindow('preview.jsp?iid=<%=strMenuId%>&NewsId=<%=news.getStrValue1()%>','500','400');" title="点击预览<%=news.getStrValue1()%>"><%=news.getStrValue2()%></a>
			<!--<a 
			href="javascript:" onclick="javascript:openWindow('addComment.jsp?iid=<%=strMenuId%>&newsId=<%=news.getStrValue1()%>','500','400');">评论</a>-->
			</td>
            <td align="center" class="TableData" nowrap><a href="index.jsp?iid=<%=strMenuId%>&Field=4&keyword=<%=news.getStrValue3()%>" title="点击将查看此用户录入的所有新闻"><%=news.getStrValue3()%></a></td>
            <td align="center" class="TableData" nowrap><%=news.getStrValue4()%></td>
             <td  align="center" class="TableData" nowrap>
             <table width="100%" border="0" cellpadding="0" cellspacing="0" class="small"><tr>
            <td width="25%" align="center"><%if("1".equals(news.getStrValue7())) out.print("<font color=\"#0000FF\">顶</font>");else out.print("&nbsp;");%><td>
             <td width="25%"><%if("1".equals(news.getStrValue6())) out.print("<font color=\"#FF0000\">热</font>");else out.print("&nbsp;");%></td>
             <td width="25%" align="center"><%if("1".equals(news.getStrValue8())) out.print("<font color=\"#00DD00\">荐</font>");else out.print("&nbsp;");%></td>
             <td width="25%"><%if("1".equals(news.getStrValue9())) out.print("<font color=\"#0F0F0F\">滚</font>");else out.print("&nbsp;");%></td>
             <td width="25%">&nbsp;</td>
             </tr></table>
             </td>
	          	<td align="center" class="TableData" nowrap>
	          	<a href="javascript:" onclick="javascript:openMaxWindow('edit.jsp?NewsId=<%=news.getStrValue1()%>&iid=<%=strMenuId%>','200','400');">修改</a>&nbsp;
	          	<a href="javascript:" onclick="return delNews('<%=news.getStrValue1()%>');">删除</a>&nbsp;	         		
	         		<%if("1".equals(news.getStrValue7())){%><a href="javascript:" onclick="javascript:changeNews('<%=news.getStrValue1()%>','TOP','0');">解顶</a><%}else{%><a href="javascript:" onclick="javascript:changeNews('<%=news.getStrValue1()%>','TOP','1');">置顶</a><%}%>&nbsp;
	         		<%if('1'==igec.util.Tool.getSafeChar(site.bean.SitePara.strSysFunctionOpenFlag,site.bean.SitePara.iOpenInfoTuiJian)){%>
	          	<%if("1".equals(news.getStrValue8())){%><a href="javascript:" onclick="javascript:changeNews('<%=news.getStrValue1()%>','TJ','0');">取消推荐</a><%}else{%><a href="javascript:" onclick="javascript:changeNews('<%=news.getStrValue1()%>','TJ','1');">推荐</a><%}%>
	          <%}%>
	          	</td>
     			</tr>
<%}%>   			
</form>
        </table>
        <br>
<table width="100%" border="0" cellpadding="3" cellspacing="1" class="small" bgcolor="#000000">
  <tr>
    <td height="30" width="10%" class="TableControl" nowrap>
    <input name="chkAll" type="checkbox" id="chkAll" onclick="checkAll(this,'RSID',form1);" value="checkbox"> 选中本页显示的所有新闻 
    </td>
    <td class="TableControl" align="right">
    	<input name="button4" type="button" value="删除选定的新闻" onClick="javascript:delNews('');"  title="将选定的新闻移至回收站">
    	<input name="button4" type="button" value="撤销选定的新闻" onClick="javascript:backNews('');" title="设置选定的新闻为未审核">
       &nbsp;&nbsp;
      <input type="button" name="button54" value="将选定的新闻移动到" onClick="javascript:moveNews();">
      <select name="TargetClassID"><script language="javascript" src="<%=igec.site.base.bean.SitePara.strVirtualName%>/file/static/js/infomenu.js"></script>
      </select> 
    </td>
  </tr>
</table>
</td>
</form></tr></table>
<br>
    <div align="center"><font style="font-size:12px"><%=search.getStrValue10()%></font></div>
    <br>
<%
if(!"0".equals(strClassId)){
	//搜索是否有下级,有的话则显示
	strSql = "SELECT ID,TITLE FROM TAB_IGECMENU WHERE PARENTID='" + strClassId + "' AND SHOWFLAG='1' AND FTSTR LIKE '" + strSearchLike + "%' ORDER BY XH";
	//igec.util.Tool.println(strSql);
	strDataRs = igec.site.base.business.DataUtilBusiness.getValues(strSql);
	if(strDataRs.length>0){
%>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="small" bgcolor="#000000">
  <tr height="20">
    <td width="150" align="right" class="TableControl">【<a href="?iid=N0001&ClassId=<%=strClassId%>"><%=strClassName%></a>】子栏目导航:</td>
	<td class="TableControl">
	<%
		for(int i=0;i<strDataRs.length;i++){
	%>
	&nbsp;&nbsp;<a href="?iid=N0001&ClassId=<%=strDataRs[i][0]%>"><%=strDataRs[i][1]%></a>
	<%
		}
	%>
	</td></tr>
</table>
<br>
<%
	}
}
%>
<table border="0" cellpadding="3" cellspacing="1" class="small" bgcolor="#000000" width="100%">
  <tr>
    <td width="80" align="right" class="TableControl"><strong>新闻搜索:</strong></td>
    <td class="TableControl">
      <table border="0" cellpadding="0" cellspacing="0" width="100%">
           <form method="Get" name="SearchForm" action="">
              <tr>
                <td height="28" align="right">
                  <input type="hidden" name="iid" id="iid" value="<%=strMenuId%>">
                  <select name="Field" size="1">
                     <option value="0" <%if("0".equals(search.getStrValue2())) out.print("selected");%>>新闻标题</option>
                     <option value="1" <%if("1".equals(search.getStrValue2())) out.print("selected");%>>新闻内容</option>
                     <option value="2" <%if("2".equals(search.getStrValue2())) out.print("selected");%>>新闻作者</option>
                     <option value="3" <%if("3".equals(search.getStrValue2())) out.print("selected");%>>编辑姓名</option>
                     <option value="4" <%if("4".equals(search.getStrValue2())) out.print("selected");%>>录入人</option>
                  </select>
                  <%if('1'==igec.util.Tool.getSafeChar(site.bean.SitePara.strSysFunctionOpenFlag,site.bean.SitePara.iOpenInfoCode)){%>
                  <select name="CodeId" style="display:none">
                     <option value="">所有品种</option>
                     <script language="javascript" src="<%=igec.site.base.bean.SitePara.strVirtualName%>/file/static/js/infocode.js"></script>
                  </select>
                <%}%>
                  <select name="ClassId">
                     <option value="">所有栏目</option>
                     <script language="javascript" src="<%=igec.site.base.bean.SitePara.strVirtualName%>/file/static/js/infomenu.js"></script>
                  </select>
                  <%if('1'==igec.util.Tool.getSafeChar(site.bean.SitePara.strSysFunctionOpenFlag,site.bean.SitePara.iOpenSpecial)){%>
                  <select name="SpecialId">
                     <option value="">所有专题</option>
                     <script language="javascript" src="<%=igec.site.base.bean.SitePara.strVirtualName%>/file/static/js/infospecial.js"></script>
                  </select>
                <%}%>
                  <input type="text" name="keyword"  size="10" value="<%=search.getStrValue3()%>" maxlength="50" onFocus="this.select();">
                  <input type="text" name="begin_t"  size="10" value="<%=search.getStrValue4()%>" maxlength="10"> <img align="absMiddle" src="<%=strSkinBase%>/images/calendar.gif" border="0" style="cursor:hand" onclick="fPopUpCalendarDlg('<%=igec.site.base.bean.SitePara.strVirtualName%>',getObject('begin_t'));">
                  <input type="text" name="end_t"  size="10" value="<%=search.getStrValue5()%>" maxlength="10"> <img align="absMiddle" src="<%=strSkinBase%>/images/calendar.gif" border="0" style="cursor:hand" onclick="fPopUpCalendarDlg('<%=igec.site.base.bean.SitePara.strVirtualName%>',getObject('end_t'));">
                  <input type="submit" name="Submit"  value="搜索">
                 </td>
               </tr>
             </form>
         </table>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -