MobilePhoneWeb/Book.aspx.cs

(开头部分) 7KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using COMM;
namespace MobilePhoneWeb
{
    public partial class Book : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //span style="float:left;">联系人:</span><input name="name" type="text" value="" id="name" class="txtA" />
            //<span style="float:left;">联系电话:</span><input name="mobile" type="text" value="" id="mobile" class="txtA" />
            //<span style="float:left;">输入人数:</span><input name="content" type="text" value="1" class="txtA" />
            //<input name="ordername" type="hidden" value="<%=strTitle %>" class="txtA" />
            //<input name="price" type="hidden" value="<%=strPrice %>" class="txtA" />
            string strName = Request.Form["name"].ToString();
            string strPhone = Request.Form["mobile"].ToString();
            string strContent = Request.Form["content"].ToString();
            string strTitle = Request.Form["ordername"].ToString();
            string strPrice = Request.Form["price"].ToString();
            int k = 0;
            if (string.IsNullOrWhiteSpace(strName))
            {
                conn.SimJs.GoBack("姓名不能为空!");
                k = 1;
            }
            else if (strPhone.Length != 11)
            {
                conn.SimJs.GoBack("手机号不正确请核实!");
                k = 1;
            }
            if (k == 0)
            {
                Web_WordInfo ww = new Web_WordInfo();
                ww.Name = strName;
                ww.MobiePhone = strPhone;
                ww.PNum = int.Parse(strContent);
                ww.Price = strPrice;
                ww.Title = strTitle;
                ww.CreateDate = DateTime.Now;
                int dk = ww.Add();
                if (dk > 0)
                {
                    #region 发送邮件
                    string[] arrTo = new string[1];
                    arrTo[0] = "173718947@qq.com";
                    string[] arrCC = new string[1];
                    arrCC[0] = "2505985741@qq.com";
                    string EmailBody;
                    EmailBody = "";
                    EmailBody = "<!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd> <style type=text/css>html{_background:#fff;filter:expression(document.execCommand(\"BackgroundImageCache\",false,true));height:100%;}body,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,input,textarea,p,tr,th,td{padding:0;margin:0;word-wrap:break-word;word-break:break-all;}body{font-family:宋体;color:#333;font-size:12px;background-color:#fff;height:100%;}div{overflow:hidden;}i,em{padding:0;margin:0;word-wrap:break-word;word-break:break-all;}h1,h2,h3,h4,h5,h6{font-size:100%;}address{font-style:normal;}input[type=\"button\"],input[type=\"submit\"],button{cursor:pointer;noFocusLine:expression(this.onFocus=this.blur());outline:none;}input[type=\"text\"],textarea,select{outline:none;}textarea{resize:none;}table{border-collapse:collapse;border-spacing:0;table-layout:fixed;width:100%;*zoom:1;}ul,ol{list-style:none;}img{border:none;margin:0;padding:0;vertical-align:top;}a{text-decoration:none;cursor:pointer;noFocusLine:expression(this.onFocus=this.blur());outline:none;color:#333;}a:hover{text-decoration:none;color:#3b61a5;}.lnk-blue{color:#006be3;}.lnk-blue:hover{text-decoration:underline;}.red{color:#d71e1e;}.hoverBg{background-color:#fafcff;}.hide{display:none;}";
                    EmailBody += "body{margin:0;padding:0;font-family:tahoma,Arial,'宋体',simsun;font-size:14px;}table{font-size:14px;font-weight:normal;}.mlContent{width:100%;height:auto;font-size:14px;padding-left:10px;}.mlContent p{text-indent:5px;}.mlContent a{color:#0066cc;text-decoration:underline;}.mlContent a:hover{color:#333;text-decoration:underline;}.mlTitle{width:100%;height:30px;line-height:30px;font-size:14px;font-weight:bold;text-align:center;}.mlChenFu{width:100%;height:30px;line-height:30px;font-size:14px;text-align:left;font-weight:bold;}.mlDateWh{width:150px;height:30px;line-height:30px;text-indent:25px;}.mlTable{width:100%;height:auto;background:#fff;border-collapse:collapse;border:1px solid #ccc;}thead{width:100%;height:30px;background:#e6e6e6;line-height:25px;}.mlTable .thead{width:100%;height:30px;background:#e6e6e6;line-height:25px;}.mlTable th{text-align:center;border-right:1px solid #ccc;}.mlTable td{border:1px solid #ccc;line-height:25px;}.mlTable tr:hover{background:#b8f7c1;}.text_lf{text-align:left;}.text_rt{text-align:right;}.text_cen{text-align:center;}.tr_js{background:#f1fbea;}.foot{width:100%;height:30px;line-height:30px;text-indent:25px;}.bwd5{width:5%;}.bwd10{width:10%;}.bwd15{width:15%;}.bwd20{width:20%;}.bwd25{width:25%;}.bwd30{width:30%;}.bwd35{width:35%;}.bwd50{width:50%;}.bwd60{width:60%;}.bwd100{width:100%;}";
                    EmailBody += ".lftd {width:140px;height:25px;line-height:25px;background:#dae9fd;text-align:right;}</style><body>";
                    EmailBody = EmailBody + "<div class=\"mlContent\">";
                    //EmailBody = EmailBody + "<div class=\"mlTitle\">冲壳模具信息化管理优化事宜</div>";
                    EmailBody = EmailBody + "<div class=\"mlChenFu\">徐总:</div>";
                    int Time = DateTime.Now.Hour.CompareTo(13);
后面还有 32 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。