• 大小: 5.14MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-11-01
  • 语言: 其他
  • 标签: 电子杂志  asp.net  

资源简介

可以上传照片,可以编辑生成杂志,可以对图片进行调整和排序以及书写目录

资源截图

代码片段和文件信息

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using EasyEMag;
using System.Data;
using System.Text;
using System.xml;
using System.xml.XPath;

public partial class Default : System.Web.UI.Page
{
    protected void Page_Load(object sender EventArgs e)
    {

        string sql = “select VolumeIDnamepublishinsertDate from EasyEmag_Volume where publish = 1 order by publishDate DESC“;


        DataSet ds = DbHelperOleDb.Query(sql);


        StringBuilder sb = new StringBuilder();
        int row = 0;
        foreach (DataRow Row in ds.Tables[0].Rows)
        {
            row++;
            if (row % 4 == 1) {
                sb.Append(“yle=‘clear:both‘>“);    
            }
            sb.Append(“yle=\“float:left\“>“);
            sb.Append(“
“);
            sb.Append(““);
            sb.Append(“            sb.Append(Row[“VolumeID“].ToString());
            sb.Append(“\“ target=\“_blank\“>“);
            sb.Append(“            sb.Append(Row[“VolumeID“].ToString());            
            sb.Append(“/cover.jpg\“ onerror=\“f_pic_error(this);\“ />“);
            sb.Append(“
“);
            sb.Append(“yle=\“line-height:30px\“>“);
            sb.Append(““);
            sb.Append(“            sb.Append(Row[“VolumeID“].ToString());            
            sb.Append(“\“ target=\“_blank\“>“);
            sb.Append(getName(Row[“VolumeID“] Row[“name“]));
            sb.Append(““);
            sb.Append(“
“);
            if (row % 4 == 0)
            {
                sb.Append(“
“);
            }
        }
        if (row % 4 != 0) {
            sb.Append(“
“);
        }
        VoListLiteral.Text = sb.ToString();

        

    }
    

    public string getName(object oVoobject oName)
    {
        string Name = oName.ToString();

        if (string.IsNullOrEmpty(Name))
        {
            Name = “杂志“+oVo.ToString();
        }
        return Name;
    }

    public string f_publish(object oVoobject oPublish){
        int vid = Convert.ToInt32(oVo);
        int publish = Convert.ToInt32(oPublish);
        string url = ““;
        if (0 == publish)
        {
            url = “未发布(更改)“;
        }
        else {
            url = “已发布(更改)“;
        }
        return url;
    }

    public string GetConfig(string key)
    {
        string filename = HttpContext.Current.Server.MapPath(“EasyEMag.w

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2009-12-20 21:32  App_Data\
     文件      643072  2009-12-06 19:03  App_Data\#db.ascx
     目录           0  2009-12-20 21:32  bin\
     文件         170  2009-12-20 21:31  bin\App_Code.compiled
     文件       92672  2008-02-28 01:23  bin\Brettle.Web.NeatUpload.dll
     文件       50103  2008-02-28 01:23  bin\Brettle.Web.NeatUpload.dll.mdb
     文件       19528  2008-02-28 01:23  bin\Brettle.Web.NeatUpload.xml
     文件       68096  2009-12-20 21:32  bin\EasyEMag.dll
     目录           0  2009-12-20 21:31  controls\
     文件         236  2009-12-20 21:31  controls\footer.ascx
     文件         729  2009-12-20 21:31  controls\header.ascx
     文件        1791  2009-12-20 21:31  controls\menu.ascx
     目录           0  2009-12-20 21:31  css\
     文件        2875  2009-12-20 16:39  css\admin.css
     文件        2926  2009-09-23 16:04  css\default.css
     文件        3123  2009-09-17 15:03  css\eem.css
     目录           0  2009-12-20 21:32  files\
     目录           0  2009-12-20 21:31  files\img\
     文件        1714  2009-09-28 16:53  files\img\logo.gif
     目录           0  2009-12-20 21:31  files\language\
     文件         442  2009-08-20 16:00  files\language\zh_cn.js
     目录           0  2009-12-20 21:31  files\pic\
     目录           0  2009-12-20 21:31  files\pic\1\
     目录           0  2009-12-20 21:31  files\pic\1\1\
     文件       50502  2009-09-22 11:25  files\pic\1\1\0e.jpg
     文件       53740  2009-09-22 11:25  files\pic\1\1\1b.jpg
     文件       66264  2009-09-22 11:25  files\pic\1\1\28.jpg
     文件       55028  2009-09-22 11:25  files\pic\1\1\38.jpg
     文件       71847  2009-09-22 11:25  files\pic\1\1\acf.jpg
     文件        4042  2009-09-22 11:25  files\pic\1\1\s.jpg
     目录           0  2009-12-20 21:31  files\pic\1\10\
............此处省略217个文件信息

评论

共有 条评论