918博天堂

Server : Microsoft-IIS/10.0
System : Windows NT EBS-6136 10.0 build 17763 (Windows Server 2016) i586
User : jxgj ( 0)
PHP Version : 7.0.33
Disable Function : passthru,exec,system,shell_exec,proc_open,popen,pcntl_exec,socket_bind,stream_socket_server
Directory :  D:/tmp_aspnet/root/54f3ceba/6be944cd/
Upload File :
Current Directory [ Writeable ] Root Directory [ Writeable ]


Current File : D:/tmp_aspnet/root/54f3ceba/6be944cd/App_Web_uicgouqi.9.cs
?#pragma checksum "D:\wwwroot\klbttc\wwwroot\jobshow.aspx.cs" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "9644F2344E42A595324E295F617A55D962F517C9"

#line 1 "D:\wwwroot\klbttc\wwwroot\jobshow.aspx.cs"
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;

public partial class jobshow : System.Web.UI.Page
{
    C c = new C();
    DataSet ds = new DataSet();
    public int mid, id, islook = 0;
    public string webSite, webSite1 = "";
    public string shang, xia, ss, news_name, layer = string.Empty;

    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            mid = int.Parse(Request.QueryString["mid"].ToString());
        }
        catch { }
        try
        {
            id = int.Parse(Request.QueryString["id"].ToString());
        }
        catch { }

        //新闻列表
        string sql = "select * from position where position9=@mid  and position0=@id";
        SqlParameter[] ps = new SqlParameter[]{
                    new SqlParameter("@mid",mid),
                    new SqlParameter("@id",id),
                };
        ds = MyFunction.Query(sql, ps);
        if (ds.Tables.Count > 0)
        {
            if (ds.Tables[0].Rows.Count > 0)
            {
            	news_name=ds.Tables[0].Rows[0][1].ToString();
                rep_show.DataSource = ds.Tables[0];
                rep_show.DataBind();
            }
        }

        //  提交
        if (Request.Form["jobPost"] != null)
        {
            if (Request.Form["jobName"] == null || Request.Form["userName"] == null  || Request.Form["schoolName"] == null || Request.Form["zylName"] == null || Request.Form["userPhone"] == null || Request.Form["yzCode"] == null)
            {
                layer = "layer.alert('请输入齐全信息!');";
                return;
            }
            if (!Request.Form["yzCode"].ToString().ToLower().Equals(Session["checkcodeUser"].ToString()))
            {
                layer = "layer.alert('验证码谬误!');";
                return;
            }


            string jobName = SqlKey.ReplaceUrlBadChar(Request.Form["jobName"].ToString());
            string userName = SqlKey.ReplaceUrlBadChar(Request.Form["userName"].ToString());
            string mingzu = SqlKey.ReplaceUrlBadChar(Request.Form["mingzu"].ToString());
            string xing = SqlKey.ReplaceUrlBadChar(Request.Form["xing"].ToString());
            string zhengzhi = "";//SqlKey.ReplaceUrlBadChar(Request.Form["mianmao"].ToString());

            string ying = SqlKey.ReplaceUrlBadChar(Request.Form["ying"].ToString());
            string xueli = "";// SqlKey.ReplaceUrlBadChar(Request.Form["xueli"].ToString());
            string schoolName = SqlKey.ReplaceUrlBadChar(Request.Form["schoolName"].ToString());
            string zylName = SqlKey.ReplaceUrlBadChar(Request.Form["zylName"].ToString());
            string userPhone = SqlKey.ReplaceUrlBadChar(Request.Form["userPhone"].ToString());

            string userEmail = SqlKey.ReplaceUrlBadChar(Request.Form["userEmail"].ToString());


            if (c.RunSql("insert into guestbook (guestbook1,guestbook2,guestbook3,guestbook4,guestbook5,guestbook6,guestbook8,guestbook11,guestbook12,guestbook13,guestbook14,guestbook15,guestbook16,guestbook17) values ('" + jobName + "','" + userName + "','" + xing + "',getdate(),'" + mingzu + "','" + zhengzhi + "',136,'" + ying + "','" + xueli + "','" + schoolName + "','" + zylName + "','" + userPhone + "','" + userEmail + "','" + userPhone + "')"))
            {
                layer = "layer.alert('提交成功!');";
            }
            else
            {
                layer = "layer.alert('提交失败!');";
            }
         
        }

   
      


        ds = c.GetDs("SELECT MenuSys_1.MenuSys1 AS Expr1, MenuSys.*,MenuSys_1.MenuSys0 AS Expr3 FROM MenuSys INNER JOIN MenuSys MenuSys_1 ON MenuSys.MenuSys3 = MenuSys_1.MenuSys0 WHERE  (MenuSys.MenuSys0 = " + mid.ToString() + " )");
        webSite1 = ds.Tables[0].Rows[0]["Expr1"].ToString();
        webSite = ds.Tables[0].Rows[0]["MenuSys1"].ToString();


        this.Title = news_name + " - " + Application["sysset1"].ToString();
    }
}

#line default
#line hidden