package com.lxsoft.action.admin;
import java.awt.Color;
import java.util.HashMap;
import java.util.List;
import com.lxsoft.model.JeAd.JeAd;
import com.lxsoft.model.JeAd.JeAdDAO;
import com.lxsoft.model.JeChannel.JeChannel;
import com.lxsoft.model.JeChannel.JeChannelDAO;
import com.lxsoft.model.JeClass.JeClass;
import com.lxsoft.model.JeClass.JeClassDAO;
import com.lxsoft.tools.PageBean;
public class adminAd extends adminBase {
private JeAd jead;
private List<JeChannel> ListChan; //返回到前台的某个频道的列表
private JeChannel jechan; //返回到前台的某个频道的具体
private Integer channelId;
private JeClass jeclass;
private List<JeClass> listjeclass;//返回到前台的栏目 所有的栏目
private List<JeAd> listAd;
private Integer id;
private Integer wide;
private Integer high;
private String url;
private Integer show;
private String ShowName;
private String linkUrl;
private String intr;
private PageBean pagebean;
private int page;
private HashMap cmap;
private String filename;
public String getFilename() {
return filename;
}
public void setFilename(String filename) {
this.filename = filename;
}
public PageBean getPagebean() {
return pagebean;
}
public void setPagebean(PageBean pagebean) {
this.pagebean = pagebean;
}
public JeAd getJead() {
return jead;
}
public void setJead(JeAd jead) {
this.jead = jead;
}
public JeAdDAO getJeaddao() {
return jeaddao;
}
public void setJeaddao(JeAdDAO jeaddao) {
this.jeaddao = jeaddao;
}
public JeChannelDAO getJechanneldao() {
return jechanneldao;
}
public void setJechanneldao(JeChannelDAO jechanneldao) {
this.jechanneldao = jechanneldao;
}
public List<JeChannel> getListChan() {
return ListChan;
}
public void setListChan(List<JeChannel> listChan) {
ListChan = listChan;
}
public JeChannel getJechan() {
return jechan;
}
public void setJechan(JeChannel jechan) {
this.jechan = jechan;
}
public Integer getChannelId() {
return channelId;
}
public void setChannelId(Integer channelId) {
this.channelId = channelId;
}
public JeClassDAO getJeclassdao() {
return jeclassdao;
}
public void setJeclassdao(JeClassDAO jeclassdao) {
this.jeclassdao = jeclassdao;
}
public JeClass getJeclass() {
return jeclass;
}
public void setJeclass(JeClass jeclass) {
this.jeclass = jeclass;
}
public List<JeClass> getListjeclass() {
return listjeclass;
}
public void setListjeclass(List<JeClass> listjeclass) {
this.listjeclass = listjeclass;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getWide() {
return wide;
}
public void setWide(Integer wide) {
this.wide = wide;
}
public Integer getHigh() {
return high;
}
public void setHigh(Integer high) {
this.high = high;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public Integer getShow() {
return show;
}
public void setShow(Integer show) {
this.show = show;
}
public String getShowName() {
return ShowName;
}
public void setShowName(String showName) {
ShowName = showName;
}
public String getLinkUrl() {
return linkUrl;
}
public void setLinkUrl(String linkUrl) {
this.linkUrl = linkUrl;
}
public String getIntr() {
return intr;
}
public void setIntr(String intr) {
this.intr = intr;
}
public String findAd()
{
if(this.getChannelId()!=null)
{
this.jechan= jechanneldao.findById(this.getChannelId());
}
return SUCCESS;
}
public static void main(String[] args){
}
public String ListAll()
{
//this.pagebean = this.jeaddao.queryForPage(this.getChannelId(), 15, page);
this.listAd = this.jeaddao.findByProperty("channelId", this.getChannelId());
this.ListChan = this.jechanneldao.findAll();
this.cmap = new HashMap();
if(this.ListChan!=null)
{
this.cmap.put(0+"", "==首页广告==");
for(int i=0;i<this.ListChan.size();i++)
{
this.cmap.put(this.ListChan.get(i).getChannelId(), this.ListChan.get(i).getChannelName());
}
}else
{
this.cmap.put(0+"", "==首页广告==");
}
listAd = this.jeaddao.findAll();
return SUCCESS;
}
public String ListAd(){
if(this.getChannelId()!=null)
{
//this.pagebean = this.jeaddao.queryForPage(this.getChannelId(), 15, page);
this.listAd = this.jeaddao.findByProperty("channelId", this.getChannelId());
this.ListChan = this.jechanneldao.findAll();
this.cmap = new HashMap();
if(this.ListChan!=null)
{
this.cmap.put(0+"", "==首页广告==");
for(int i=0;i<this.ListChan.size();i++)
{
this.cmap.put(this.ListChan.get(i).getChannelId(), this.ListChan.get(i).getChannelName());
}
}else
{
this.cmap.put(0+"", "==首页广告==");
}
}else
{
return ERROR;
}
return SUCCESS;
}
public String addAd(){
if(this.jead.getWide() != null){
this.jead.setWide(this.jead.getWide());
}
if(this.jead.getHigh() != null){
this.jead.setHigh(this.jead.getHigh());
}
if(this.getFilename() != null){
this.jead.setUrl(this.getFilename());
}
if(this.jead.getShowName() != null){
this.jead.setShowName(this.jead.getShowName());
}
if(this.jead.getIntr() != null){
this.jead.setIntr(this.jead.getIntr());
}
com.lxsoft.msg.print(this.jead.getLinkUrl());
if(this.jead.getLinkUrl()!=null)
{
this.jead.setLinkUrl(this.jead.getLinkUrl());
}
this.jeaddao.save(this.jead);
//this.pagebean = this.jeaddao.queryForPage(this.getChannelId(), 15, page);
this.listAd = this.jeaddao.findByProperty("channelId", this.getChannelId());
this.ListChan = this.jechanneldao.findAll();
this.cmap = new HashMap();
if(this.ListChan!=null)
{
this.cmap.put(0+"", "==首页广告==");
for(int i=0;i<this.ListChan.size();i++)
{
this.cmap.put(this.ListChan.get(i).getChannelId(), this.ListChan.get(i).getChannelName());
}
}else
{
this.cmap.put(0+"", "==首页广告==");
}
return this.ListAll();
}
public String initModAd(){
this.jead = this.jeaddao.findById(this.getId());
return SUCCESS;
}
public String modAd(){
this.ListChan = this.jechanneldao.findAll();
this.cmap = new HashMap();
if(this.ListChan!=null)
{
for(int i=0;i<this.ListChan.size();i++)
{
this.cmap.put(this.ListChan.get(i).getChannelId(), this.ListChan.get(i).getChannelName());
}
}else
{
return ERROR;
}
if(this.jead.getShowName() != null){
this.jead.setShowName(this.jead.getShowName());
}
if(this.getFilename() != null){
this.jead.setUrl(this.getFilename());
}
if(this.jead.getIntr() != null){
this.jead.setIntr(this.jead.getIntr());
}
if(this.jead.getLinkUrl()!=null)
{
this.jead.setLinkUrl(this.jead.getLinkUrl());
}
this.jeaddao.merge(this.jead);
listAd = this.jeaddao.findAll();
return this.ListAll();
}
public String deleAd(){
if(this.getId()!= null){
this.jeaddao.delete(this.jeaddao.findById(this.getId()));
}else{
return ERROR;
}
return this.ListAll();
}
public List<JeAd> getListAd() {
return listAd;
}
public void setListAd(List<JeAd> listAd) {
this.listAd = listAd;
}
public int getPage() {
return page;
}
public void setPage(int page) {
this.page = page;
}
public HashMap getCmap() {
return cmap;
}
public void setCmap(HashMap cmap) {
this.cmap = cmap;
}
}
分享到:
相关推荐
{ Admin ad = new Admin(); while(true) { KB.println("*************"); KB.println("用户请安\t\t1"); KB.println("管理员请安\t2"); KB.println("退出请安\t\t0"); KB.println("************"); ...
admin/admin_login.asp admin/index.asp admin/login.asp admin/manage.asp admin_admin.asp admin_del.asp admin_delete.asp admin_edit.asp admin_index.asp Admin_Login.asp admin_main.asp admin_pass.asp admin...
AD Bulk Admin 1.1.0.15是一款企业AD管理员提供的AD帐户批量管理工具,能够提高管理员的工作效率,减轻工作负担。具体功能:能够查看用户、获取用户、新建用户、解锁用户、重置用户密码、禁用或启用用户、删除...
摘要:ASP源码,其它类别,订单程序 一个简洁实用的ASP订单程序,带有后台管理,前台通过预设的表单进行数据的提交维护,管理员登录后台后可查看订单信息,并对其进行管理,另外程序还支持产品类型... 帐号密码:admin ad
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal ...
ad域控制器的权限设置
A vue3 admin template vue3 admin/element plus admin/vite admin/vue3 template/vue3 后台/vue3 模板/vue3 后台管理系统
ldapadmin ldap管理工具在大多数情况下,我们对OpenLDAP的操作都是在Windows下进行的。而在Windows下连接OpenLDAP的客户端工具,我使用最多的是ldapadmin。
在Windows环境中,最常见的是Active Directory(AD)域服务,它基于LDAP协议工作。 **LdapAdmin.exe**是LdapAdmin工具的核心组件,这是一个可执行文件,当你运行它时,将启动这个 LDAP 管理界面。通过这个工具,...
### Linux加入Windows AD详解 #### 一、引言 随着企业环境越来越复杂,跨平台的系统集成成为一种必要。在很多情况下,企业内部既有Windows系统又有Linux系统,为了实现资源的有效共享与统一管理,通常会选择将...
【标题】"LdapAdmin-1.8.3.zip" 是一个包含 LDAP 管理工具的压缩包,主要用于管理Active Directory(AD)域。这个工具允许管理员进行安全且高效的操作,无论是对于加密还是非加密的LDAP连接。 【描述】中的关键信息...
《Windows Admin Center 1904.1:新一代Windows服务器管理工具》 Windows Admin Center(简称WAC)是微软推出的一款强大的本地和远程Windows服务器管理工具,它为系统管理员提供了全面、直观的图形化界面,使得对...
在企业环境中,LDAP与Active Directory(AD)、OpenLDAP等服务结合使用,构建身份验证和授权系统。 ### LdapAdmin特性 1. **图形化界面**:LdapAdmin提供了直观的用户界面,使得LDAP目录操作变得简单易懂,非技术...
vue-element-admin,更新时间为2021-03-21,含完整依赖包(node_modules文件夹)
ADBulkAdmin工具用于批量管理AD帐户,可批量查看用户属性,批量新建用户和设置用户属性等,可以连接指定的域控,可将所有操作日志保存到Access数据库中。 软件运行要求: 1. 需要安装.NetFramework 4.0以上版本。 2....
### Java 实现 AD 域认证详解 #### 一、AD域认证简介 Active Directory (AD) 是一种基于 Windows Server 的目录服务,它允许管理员管理网络中的用户、组和其他资源。AD域认证则是指通过AD服务对用户身份进行验证的...
简洁CMS后台管理系统bootstrap网站模板_简洁 后台 后台管理 admin系统 bootstrap cms后台系统 ad简洁CMS后台管理系统bootstrap网站模板_简洁 后台 后台管理 admin系统 bootstrap cms后台系统 ad
**php-AD-admin 开源项目详解** `php-AD-admin` 是一个基于 PHP 开发的开源工具,专门用于管理 Active Directory (AD) 环境。这个项目的主要目的是让用户能够方便地更新自己的 AD 属性,如电话号码,并且自行重置...
T3清除Admin密码。仅作应急使用,登陆后,请重置密码,请大家合理使用!感谢大家下载试用!
总结来说,Windows下的LDAP Admin工具是管理AD域的重要辅助,而搭建和配置Windows Server域服务器则需要理解AD、DNS和证书服务的原理。通过这些文档和工具,IT专业人员可以更有效地维护和优化他们的网络环境。