. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
| Server IP : 87.98.249.37 / Your IP : 216.73.216.208 [ Web Server : Microsoft-IIS/10.0 System : Windows NT NS3076740 10.0 build 17763 (Windows Server 2019) AMD64 User : IWPD_292(growel19p) ( 0) PHP Version : 8.3.12 Disable Function : NONE Domains : 0 Domains MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Inetpub/vhosts/growel.com/httpdocs/Forms/ |
Upload File : |
using BLL.Bo;
using BLL.Services;
using GrowelBLL.Services;
using System;
using System.Collections.Generic;
using System.Data;
using System.IO;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace GrowelWeb.Forms
{
public partial class View_JobDetails : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string JobId = Convert.ToString( Request.QueryString["jd"]);
JobService jobService = new JobService();
DataSet ds = jobService.GetJobById(JobId);
if (ds.Tables[0].Rows.Count > 0)
{
DataRow drow = ds.Tables[0].Rows[0];
// this.Products1.pname = pds.Tables[0].Rows[0]["product"].ToString();
// cover = "<img src='../images/covers/" + lnkds.Tables[0].Rows[0]["business_unit"].ToString() + "1.jpg' class='img-fluid'/>";
// cover = lnkds.Tables[0].Rows[0]["business_unit"].ToString() + "1.jpg";
StringBuilder sb = new StringBuilder();
string img = "";
//if (Convert.ToString(drow["ProductImage"]) != "")
// img = siteurl + "images/products/" + Convert.ToString(drow["ProductImage"]);
//else
// img = siteurl + "Includes/images/noimg.jpg";
sb.Append("<section class='section section-md bg-white'>");
sb.Append(" <div class='shell'>");
sb.Append(" <div class='layout-horizontal '>"); //layout-horizontal_1
sb.Append(" <div> "); // class='layout-horizontal__main'
sb.Append(" <article class='single-product'>");
sb.Append(" <div class='single-product__header'>");
sb.Append(" <h5 class='single-product__title'><b>Post Date :</b> " + Convert.ToDateTime(drow["PostDate"]).ToString("dd-MMM-yyyy") + "</h5>");
sb.Append(" <h5 class='single-product__title'><b>Job Title :</b>" + drow["JobTitle"].ToString() + "</h5>");
sb.Append(" </div>");
sb.Append(" <div class='single-product__header'>");
sb.Append(" <h5 class='single-product__title'><b>Age :</b> " + Convert.ToString(drow["Age"]) + "</h4>");
sb.Append(" <h5 class='single-product__title'><b>Gender :</b> " + Convert.ToString(drow["Gender"]) + "</h4>");
sb.Append(" </div>");
sb.Append(" <div class='single-product__header'>");
sb.Append(" <h5 class='single-product__title'><b>Job Location :</b> " + drow["JobLocation"].ToString() + "</h4>");
sb.Append(" </div>");
sb.Append(" <div class='single-product__header'>");
sb.Append(" <h5 class='single-product__title'><b>Qualification :</b> " + Convert.ToString(drow["Qualification"]) + "</h5>");
sb.Append(" </div>");
sb.Append(" <div class='single-product__main'>");
sb.Append(" <div class='tabs-custom tabs-horizontal tabs-line'>");
sb.Append(" <ul class='nav nav-tabs'>");
sb.Append(" <li class='active'><a href='#tabs-product-1' data-toggle='tab'>Job Details</a></li>");
sb.Append(" </ul>");
sb.Append(" <div class='tab-content'>");
sb.Append(" <div class='tab-pane fade in active' id='tabs-product-1'>");
sb.Append(" <p>" + drow["JobDetails"].ToString() + "</p>");
sb.Append(" </div>");
sb.Append(" </div>");
sb.Append(" </div>");
sb.Append(" <div class='group group-buttons group-middle'><a class='button button-darker' data-target='#darkModalFormQuote' data-toggle='modal' href='#'>Apply Now</a>");
//sb.Append(" <p>or</p><a class='button button-primary' href='#'>get price list</a>");
sb.Append(" </div>");
sb.Append(" </div>");
sb.Append(" </article>");
sb.Append(" </div>");
sb.Append(" </div>");
sb.Append(" </div>");
sb.Append(" </section>");
litpro.Text = sb.ToString();
}
}
protected void btnGetAQuote_Click(object sender, EventArgs e)
{
EnquiryBo bo = new EnquiryBo();
EnquiryService enquiryService = new EnquiryService();
string siteurl = clsComman.value("SiteUrl");
string url = Request.RawUrl;
bo.Type = url.Split('/')[2];
bo.ClientName = txtnameQ.Text;
bo.EmailId = txtemailQ.Text;
bo.EnquiryType = "Job Post";
bo.MobileNo = txtmobileQ.Text;
bo.Country = "";// ddlcountryQ.SelectedValue;
bo.StateName = "";// txtstateQ.Text;
bo.ContactPerson = "";
bo.Address = "";
bo.Description = txtDescription.Text;// siteurl + url;
string strFileName = "";
if (this.flresume.HasFile)
{
FileInfo f = new FileInfo(this.flresume.PostedFile.FileName.ToString());
strFileName = f.Name;
this.flresume.PostedFile.SaveAs(Server.MapPath("..") + @"\upload\resume\" + strFileName);
}
bo.LinkedinProfileLink = txtlikedinprofile.Text;
bo.ResumeName = strFileName;
Int64 Id = enquiryService.AddEnquiry(bo);
if (Id > 0)
{
SendMail("Job Post", txtnameQ.Text, txtmobileQ.Text, txtemailQ.Text, txtDescription.Text, strFileName);
Response.Redirect(siteurl + "Forms/Thanks-you.aspx");
}
else
{
}
}
private void SendMail(string subject, string Name, string Mobile, string Email, string Feedback, string ResumeFile)
{
//string subject = "Growel - Downlooad";
string message =
"Dear " + Name + ", <br>" +
"<table width='500' border='0' align='center' cellpadding='10' cellspacing='4' style='font-family:Arial, Helvetica, sans-serif;font-size:12px;border:1px solid #ddd;'><tr><td colspan='2' align='center' valign='top'><p><img src='https://growel.com/Includes/images/logo.png'>" +
"</p></td></tr><tr><td width='200' align='right' valign='top'>" +
"<strong>Name Of The Person </strong></td><td>" + Name + "</td></tr>" +
"<tr><td align='right' valign='top'><strong>Mobile </strong></td><td>" + Mobile + "</td></tr>" +
"<tr><td align='right' valign='top'><strong>Email</strong></div></td><td>" + Email + "</td></tr>" +
"<tr><td align='right' valign='top'><strong>Description</strong></td><td>" + Feedback + "</td></tr>";
message += "<tr><td align='right' valign='top'> </td><td> </td></tr></table><p> </p>";
clsComman clsComman = new clsComman();
string AttachementFile = "";
if (ResumeFile!="")
AttachementFile = System.AppDomain.CurrentDomain.BaseDirectory + "upload/resume/" + ResumeFile;
clsComman.SendMail(subject, message, AttachementFile);
}
}
}