Jump to content

Recommended Posts

I am developing an online job portal in PHP for freelancer Translators where clients will post their jobs and translators will bid on these jobs. The problem is when the jobs are displayed on the website email addresses and website links do not show as hyperlink. I can make links on a static text, but, since the clients can enter their email ids and website link any where in the Job post. I am unable to create mailto(opens outlook) and websites as links.

 

Below is the code where clients will enter their Job description and other fields.

<?php 
ob_start();
session_start();
include("includes/dbconfig.php");
include("classes/user.class.php");
include("classes/postjob.class.php");
$db=new db();
$user1=new user();
$jobpost = new postjob();
$countrylist = $user1->getcountrylist();
asort($countrylist);
$catlist = $user1->cateogryList();
$langlist = $user1->getLanguageList();
$submatterlist = $user1->getSubMatterList();
$ureg = $user1->fethDataOfCurrUser($_SESSION['uid']);



//if($_SERVER['REQUEST_METHOD'] =='POST'){
if($_POST['save'] == 'Submit'){

$jobpost->setJPostValue($_POST,$_FILES); 

//$insresult = $jobpost->insertPostJobValue();
$Job_id_last=$insresult;

/*Collect User to send mail*/

$ColectObj=new postjob();  // Object created
$MYMailUserData=$ColectObj->CheckNotificUser($_POST['txtSLang'],$_POST['txtTLang'],$_SESSION['uid'],2,3);


if(count($MYMailUserData['fre'])>=1)  // Send to free
{   
$F_obj=new user();
$emailarr = array();
foreach($MYMailUserData['fre'] as $f_agn){
	$abc1=$F_obj->getEmailByUserId($f_agn);
	$emailarr[]=$abc1;
	}
 $Edata1 = implode(",", $emailarr);
$jobpost->sendEmailJobNotification($Edata1,2,$Job_id_last);
   }

if(count($MYMailUserData['agn'])>=1)  // Send to agency
{   
$E_obj=new user();
$emailarr1 = array();
foreach($MYMailUserData['agn'] as $E_agn){
	$abc=$E_obj->getEmailByUserId($E_agn);
	$emailarr1[]=$abc;
	}
echo $Edata = implode(",", $emailarr1);
$jobpost->sendEmailJobNotification($Edata,3,$Job_id_last);
}

/*End collect user to send mail*/

if($insresult){
	
	
header("Location:post-job-thanks.php");
}
	

}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Translators Globe</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="img/calendar.css">
<script type="text/javascript" src="js/tiny_mce/tiny_mce.js"></script>
	<script type="text/javascript">
    tinyMCE.init({
        // General options
        mode : "textareas",
		elements :"txtDescription",
        theme : "advanced",
    
		plugins : "pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount,advlist,autosave,autolink",
    theme_advanced_toolbar_location : "top",
    theme_advanced_toolbar_align : "left",
    theme_advanced_buttons1: "bold,italic,underline,|,justifyleft,justifycenter,justifyright,|,forecolor,backcolor,|,bullist,numlist,|,hr,blockquote",
    theme_advanced_buttons2 : "",
    theme_advanced_buttons3 : "",
    
        
    });

<!-- /TinyMCE -->

</script>

<script language="javascript">
function validatePost()
{

if(document.getElementById('txtjobtitle').value.trim()==''){	
alert("Please enter job title");
document.getElementById('txtjobtitle').focus();
return false;
}

if(document.getElementById('txtcateogry').value.trim()=='') {
alert("Please select a Job type");
document.getElementById('txtcateogry').focus();
return false;	
}

if(document.getElementById('txtSLang1').value.trim()=='') {
alert("Please select a source language");
document.getElementById('txtSLang1').focus();
return false;	
}

if(document.getElementById('txtTLang').value.trim()=='') {
alert("Please select a target language");
document.getElementById('txtTLang').focus();
return false;	
}

if(document.getElementById('subjectmatter').value.trim()=='') {
alert("Please select Subject matter");
document.getElementById('subjectmatter').focus();
return false;	
}


if(document.getElementById('txtdedquote_date').value.trim()=='') {
alert("Please set a quoting deadline");
document.getElementById('txtdedquote_date').focus();
return false;	
}

if(document.getElementById('txtDescription').value.trim()=='') {
alert("Please enter job description");
document.getElementById('txtDescription').focus();
return false;	
}

return true;
}

</script>
<script language="JavaScript" src="img/calendar_us.js"></script>

</head>


<body>

<div class="wrapper">
<div class="topHeader">
	<div class="topLeftBanner"><img src="images/logo.png" /></div>
    </div>
    <div class=" menu_new">
     <!-- <div id="menu">
        <ul>
          <li><a href="index.html" style="background-color:#FFA82A;"> Home </a></li>
          <li><a href="post_job.html"> Post Job</a></li>
          <li> <a href="find_job.html">Find Job</a></li>
          <li><a href="translator.html"> Translator</a></li>
          <li><a href="agencies.html">Agencies</a></li>
        </ul>
      </div>-->
      
      <?php include("header.php")?>

      
    </div>


</div>

<div  class="container"></div><table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="19%" valign="top"><div class="Left_panel">
          <?php include("left.php")?>
        </div></td>
        <td width="1%"> </td>
        <td width="80%" valign="top"><div class="right_panel">
          <?php if($_SESSION['uid']!=''){
	?>
          <table width="950" cellspacing="0">
            <thead>
              <tr class="sectiontableheader">
                <th width="21%" height="24" class="register_user"> </th>
                <th width="36%"> </th>
                <th width="11%"> </th>
                <th width="18%"> </th>
                <th width="14%"> </th>
              </tr>
              <tr >
                <td  valign="top"> </td>
                <td  valign="top"> </td>
                <td  valign="top"> </td>
                <td  valign="top"> </td>
                <td  valign="top"> </td>
              </tr>
            </thead>
            <form enctype="multipart/form-data" id="rAuctionForm" name="rAuctionForm" method="post" onsubmit="return validatePost()">
              <table width="100%" cellspacing="2" cellpadding="3" style="border:solid 1px #DDDDDD; border-top:none; " id="rbid_details">
                <tbody>
                  <tr>
                    <td align="right"><label class="username">Job Poster</label></td>
                    <td class="auction_dbk_c"><?php echo ucfirst($ureg['first_name'].' '.$ureg['last_name']); ?></td>
                  </tr>
                  <tr>
                    <td align="right" class="auction_dbk_c"><label class="username">Job Title:</label>
                      <span style="color:#F00">*</span></td>
                    <td><input type="text" name="txtjobtitle" id="txtjobtitle" class="input_type" style="width:530px; height:25px;" /></td>
                  </tr>
                  <tr>
                    <td></td>
                    <td> (Example: "Brochure Translation, 1200 words, Trados", "Technical Translation") </td>
                  </tr>
                  <tr>
                    <td align="right"><label class="username">Job Type:</label>
                      <span style="color:#F00">*</span></td>
                    <td class="auction_dbk_c"><select class="input_type" id="txtcateogry" name="txtcateogry" style="width:auto;">
                      <option value="">--Select--</option>
                      <?php foreach($catlist as $values){ ?>
                      <option value="<?php echo $values['id']; ?>"><?php echo $values['cateogry_name']; ?></option>
                      <?php } ?>
                    </select></td>
                  </tr>
                  <tr>
                    <td align="right"><label class="username">Language:</label>
                      <span style="color:#F00">*</span></td>
                    <td><select class="input_type" id="txtSLang1" name="txtSLang" style="width:auto;">
                      <option value="">---Source Language---</option>
                      <?php foreach($langlist as $values) { ?>
                      <option value="<?php echo $values['id']?>"><?php echo $values['lang_name']?></option>
                      <?php } ?>
                    </select>
                      <select name="txtTLang" id="txtTLang" class="input_type" style="width:auto;">
                        <option value="">---Target Language---</option>
                        <?php foreach($langlist as $values){ ?>
                        <option value="<?php echo $values['id']; ?>"><?php echo $values['lang_name']; ?></option>
                        <?php } ?>
                      </select></td>
                  </tr>
                  <tr id="search_subjectmatter">
                    <td align="right"><label class="username"> Subject Matter:</label>
                      <span style="color:#F00">*</span></td>
                    <td><select class="input_type" id="subjectmatter" name="txtSubMatter" style="width:auto;">
                      <option selected="selected" value="">--Select--</option>
                      <?php foreach($submatterlist as $values) { ?>
                      <option value="<?php echo $values['id']; ?>"><?php echo $values['sub_matter_name']; ?></option>
                      <?php } ?>
                    </select></td>
                  </tr>
                  <tr id="search_software">
                    <td align="right"><label class="username">Required Software:</label></td>
                    <td><input type="text" value="" class="input_type" size="30" id="software" name="txtReqSoftware" />
                      <span>(Optional)</span></td>
                  </tr>
                  <tr id="search_catfld">
                    <td align="right"><label class="username">Required CAT Tool:</label></td>
                    <td><input type="text" value="" class="input_type" size="30" id="catfld" name="txtReqCTool" />
                      <span>(Optional)</span></td>
                  </tr>
                  <tr id="search_catfld">
                    <td align="right"><label class="username">Quoting Deadline:</label>
                      <span style="color:#F00">*</span></td>
                    <td><input name="txtdedquote_date" type="text" class="input_type" id="txtdedquote_date" />
                      <script language="JavaScript" type="text/javascript">
            new tcal ({
                // form name
                'formname': 'rAuctionForm',
                // input name
                'controlname': 'txtdedquote_date'
            });
           </script></td>
                  </tr>
                  <tr>
                    <td align="right"><label class="username">Job description:</label>
                      <span style="color:#F00">*</span></td>
                    <td><textarea name="txtDescription" id="txtDescription" class="input_type" style="height:250px; width:450px;"></textarea></td>
                    <td> </td>
                  </tr>
                  <?php /*?><tr>
          <td align="right" style="width:20%; height:30px" class="username"><b>Attachement: </b> <br>
            <small style="color: #808080;">maximum file size 1024 kB</small> <br>
            <small style="color: #808080;">Allowed attachement extensions: zip,rar,exe,txt</small></td>
          <td class="auction_dbk"><input type="file" class="inputbox " name="txtAttachment"></td>
        </tr><?php */?>
                  <tr>
                    <td align="center"></td>
                    <td align="left"><input type="submit" class="button validate" value="Submit" name="save" style=" margin-left:195px;" /></td>
                  </tr>
                </tbody>
              </table>
            </form>
          </table>
          <?php } ?>
          <?php if ($_SESSION['uid']=='') {?>
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="4%"> </td>
              <td width="1%"> </td>
              <td width="95%"> </td>
            </tr>
            <tr>
              <td> </td>
              <td> </td>
              <td class="login">Home > Post Job</td>
            </tr>
            <tr>
              <td> </td>
              <td> </td>
              <td> </td>
            </tr>
            <tr> You must be logged in to post a job. </tr>
            <tr>
              <td> </td>
              <td> </td>
              <td> </td>
            </tr>
            <tr>
              <td> </td>
              <td> </td>
              <td> </td>
            </tr>
            <tr>
              <td> </td>
              <td> </td>
              <td> </td>
            </tr>
            <tr>
              <td> </td>
              <td> </td>
              <td> </td>
            </tr>
            <tr>
              <td> </td>
              <td> </td>
              <td> </td>
            </tr>
            <tr>
              <td> </td>
              <td> </td>
              <td> </td>
            </tr>
            <tr>
              <td> </td>
              <td> </td>
              <td> </td>
            </tr>
            <tr>
              <td> </td>
              <td> </td>
              <td> </td>
            </tr>
          </table>
          <?php } ?>
        </div></td>
      </tr>
    </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td> </td>
        </tr>
        <tr>
          <td> </td>
        </tr>
    </table></td>
  </tr>
</table>

<?php include("footer.php") ?>
</div>
</body>
</html>

Below is the code where clients can edit this job after posting it

<?php 
ob_start();
session_start();
include("includes/dbconfig.php");
include("classes/user.class.php");
include("classes/postjob.class.php");
$db=new db();
$user1=new user();
$jobpost = new postjob();
$countrylist = $user1->getcountrylist();
asort($countrylist);
$catlist = $user1->cateogryList();
$langlist = $user1->getLanguageList();
$submatterlist = $user1->getSubMatterList();
  $pid = $_GET['posid'];
  $_SESSION['uid'];
//if($_SERVER['REQUEST_METHOD'] =='POST'){
if($_POST['save'] == 'Submit'){

$jobpost->setJPostValue($_POST,$_FILES); 
/*echo "<pre>";
print_r($_POST);
echo "</pre>";
*/
$insresult = $jobpost->getUpdtPostJob($pid);

if($insresult){
header("Location:Edit-job.php");
}
	

}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Translators Globe</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="img/calendar.css">
<script language="javascript" src="js/jquery-1.7.1.js"></script>
<script language="javascript"> 
function mypopup()
{
    mywindow = window.open("hello.php", "mywindow", "location=1,status=1,scrollbars=1,  width=750,height=500");
    mywindow.moveTo(0, 0);
}

$(function(){
    $("#button1").click(function(){
        $("#list1 > option:selected").each(function(){
            $(this).remove().appendTo("#list2");
        });
    });
    
    $("#button2").click(function(){
        $("#list2 > option:selected").each(function(){
            $(this).remove().appendTo("#list1");
        });
    });
});
</script>
<script language="javascript">
function validatePost()
{

if(document.getElementById('txtjobtitle').value.trim()==''){	
alert("Please enter job title");
document.getElementById('txtjobtitle').focus();
return false;
}

if(document.getElementById('txtcateogry').value.trim()=='') {
alert("Please select a Job type");
document.getElementById('txtcateogry').focus();
return false;	
}

if(document.getElementById('txtSLang').value.trim()=='') {
alert("Please select a source language");
document.getElementById('txtSLang').focus();
return false;	
}

if(document.getElementById('txtTLang').value.trim()=='') {
alert("Please select a target language");
document.getElementById('txtTLang').focus();
return false;	
}

if(document.getElementById('subjectmatter').value.trim()=='') {
alert("Please select Subject matter");
document.getElementById('subjectmatter').focus();
return false;	
}


if(document.getElementById('txtdedquote_date').value.trim()=='') {
alert("Please set a quoting deadline");
document.getElementById('txtdedquote_date').focus();
return false;	
}

if(document.getElementById('txtDescription').value.trim()=='') {
alert("Please enter job description");
document.getElementById('txtDescription').focus();
return false;	
}

return true;
}

</script>
<script language="JavaScript" src="img/calendar_us.js"></script>
<script type="text/javascript" src="js/tiny_mce/tiny_mce.js"></script>
	<script type="text/javascript">
    tinyMCE.init({
        // General options
        mode : "textareas",
		elements :"txtDescription",
        theme : "advanced",
    
		plugins : "pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount,advlist,autosave,autolink",

		// Theme options
		theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",
		
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		theme_advanced_statusbar_location : "bottom",
		theme_advanced_resizing : true,

		// Example content CSS (should be your site CSS)
		// using false to ensure that the default browser settings are used for best Accessibility
		// ACCESSIBILITY SETTINGS
		content_css : false,
		// Use browser preferred colors for dialogs.
		browser_preferred_colors : true,
		detect_highcontrast : true,

		// Drop lists for link/image/media/template dialogs
		template_external_list_url : "lists/template_list.js",
		external_link_list_url : "lists/link_list.js",
		external_image_list_url : "lists/image_list.js",
		media_external_list_url : "lists/media_list.js",

		// Style formats
		style_formats : [
			{title : 'Bold text', inline : 'b'},
			{title : 'Red text', inline : 'span', styles : {color : '#ff0000'}},
			{title : 'Red header', block : 'h1', styles : {color : '#ff0000'}},
			{title : 'Example 1', inline : 'span', classes : 'example1'},
			{title : 'Example 2', inline : 'span', classes : 'example2'},
			{title : 'Table styles'},
			{title : 'Table row 1', selector : 'tr', classes : 'tablerow1'}
		],

		// Replace values for the template plugin
		template_replace_values : {
			username : "Some User",
			staffid : "991234"
		}
	});
</script>

</head>
<body>

<div class="wrapper">
<div class="topHeader">
	<div class="topLeftBanner"><img src="images/logo.png" /></div>
    </div>
    <div class=" menu_new">
     <!-- <div id="menu">
        <ul>
          <li><a href="index.html" style="background-color:#FFA82A;"> Home </a></li>
          <li><a href="post_job.html"> Post Job</a></li>
          <li> <a href="find_job.html">Find Job</a></li>
          <li><a href="translator.html"> Translator</a></li>
          <li><a href="agencies.html">Agencies</a></li>
        </ul>
      </div>-->
      
      <?php include("header.php")?>

      
    </div>


</div>

<div  class="container"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="15%" valign="top"><div class="Left_panel">
      <?php include("left.php")?>
    </div></td>
    <td width="1%"> </td>
    <td width="84%" valign="top"><div class="right_panel">
      <?php if($_SESSION['uid']!=''){
$jplist = $jobpost->getCurrPostJobDetails($pid);
$ureg = $user1->fethDataOfCurrUser($pid);
/*echo "<pre>";
print_r($ureg);
echo "</pre>";
*/	
	
	?>
      <table width="950" cellspacing="0">
        <thead>
          <tr class="sectiontableheader">
            <th width="21%" height="24" class="register_user"> </th>
            <th width="36%"> </th>
            <th width="11%"> </th>
            <th width="18%"> </th>
            <th width="14%"> </th>
          </tr>
          <tr >
            <td  valign="top"> </td>
            <td  valign="top"> </td>
            <td  valign="top"> </td>
            <td  valign="top"> </td>
            <td  valign="top"> </td>
          </tr>
        </thead>
        <form enctype="multipart/form-data" id="rAuctionForm" name="rAuctionForm" method="post" onsubmit="return validatePost()">
          <table width="100%" cellspacing="2" cellpadding="3" style="border:solid 1px #DDDDDD; border-top:none; " id="rbid_details">
            <tbody>
              <tr>
                <td align="right"><label class="username">Job Poster</label></td>
                <td><?php $un = $jplist['user_id']; echo ucfirst($user1->getNameById($un)); ?></td>
              </tr>
              <tr>
                <td align="right" class="auction_dbk_c"><label class="username">Job Title:</label>
                  <span style="color:#F00">*</span></td>
                <td class="auction_dbk_c"><input type="text" value="<?php echo $jplist['job_title']?>" name="txtjobtitle"  id="txtjobtitle" style="width:530px; height:25px;" class="input_type" /></td>
              </tr>
              <tr>
                <td></td>
                <td> (Example: "Brochure Translation, 1200 words, Trados", "Technical Translation") </td>
              </tr>
              <tr>
                <td align="right"><label class="username">Job Type:</label>
                  <span style="color:#F00">*</span></td>
                <td class="auction_dbk_c"><select class="input_type"  name="txtcateogry" id="txtcateogry" style="width:auto;">
                  <option value="">--Select--</option>
                  <?php foreach($catlist as $values){ ?>
                  <option value="<?php echo $values['id']; ?>" <?php if($jplist['cateogry']==$values['id']) echo "selected"; ?>><?php echo $values['cateogry_name']; ?></option>
                  <?php } ?>
                </select></td>
              </tr>
              <tr id="search_sl01">
                <td align="right"><label class="username">Language:</label>
                  <span style="color:#F00">*</span></td>
                <td><select class="input_type" id="txtSLang" name="txtSLang" style="width:auto;">
                  <option value="">---Source Language---</option>
                  <?php foreach($langlist as $values) { ?>
                  <option value="<?php echo $values['id']?>"  <?php if($jplist['language']==$values['id'])  echo "Selected";?>><?php echo $values['lang_name']?></option>
                  <?php } ?>
                </select>
                  <select name="txtTLang" id="txtTLang" class="input_type" style="width:auto;">
                    <option value="">---Target Language---</option>
                    <?php foreach($langlist as $values) { ?>
                    <option value="<?php echo $values['id']?>"  <?php if($jplist['tar_language']==$values['id'])  echo "Selected";?>><?php echo $values['lang_name']?></option>
                    <?php } ?>
                  </select></td>
              </tr>
              <tr id="search_subjectmatter">
                <td align="right"><label class="username">Subject Matter:</label>
                  <span style="color:#F00">*</span></td>
                <td><select class="input_type" id="subjectmatter" name="txtSubMatter" style="width:auto;">
                  <option selected="selected" value="">--Select--</option>
                  <?php foreach($submatterlist as $values) { ?>
                  <option value="<?php echo $values['id']; ?>" <?php if($jplist['sub_matters']==$values['id']) echo "selected"; ?>><?php echo $values['sub_matter_name']; ?></option>
                  <?php } ?>
                </select></td>
              </tr>
              <tr id="search_software">
                <td align="right" style="width:20%; height:30px" class="username"><b>Required Software:  </b></td>
                <td><input type="text" value="<?php echo $jplist['req_soft']; ?>" class="input_type" size="30" id="software" name="txtReqSoftware" /></td>
              </tr>
              <tr id="search_catfld">
                <td align="right" style="width:20%; height:30px" class="username"><b>Required CAT Tool:  </b></td>
                <td><input type="text" value="<?php echo $jplist['req_tool'];  ?>" class="input_type" size="30" id="catfld" name="txtReqCTool" /></td>
              </tr>
              <tr id="search_catfld">
                <td align="right"><label class="username">Quoting Deadline:</label>
                  <span style="color:#F00">*</span></td>
                <td><input name="txtdedquote_date" type="text" class="input_type" id="txtdedquote_date" readonly="readonly" value="<?php echo date("d/m/Y", strtotime($jplist['end_date'])); ?>"/>
                  <script language="JavaScript" type="text/javascript">
            new tcal ({
                // form name
                'formname': 'rAuctionForm',
                // input name
                'controlname': 'txtdedquote_date'
            });
           </script></td>
              </tr>
              <?php /*?><tr>
                <td align="right" style="width:20%; height:30px" class="username">Who Can Apply?</td>
                <td><select name="txtWCApp" class="input_type" style="width:140px;">
                <option value="">Select</option>
                <option value="Freelancers Only" <?php if($jplist['who_can_aapply']=='Freelancers Only') echo "selected"; ?>>Freelancers Only</option>
                <option value="Translation Agencies Only" <?php if($jplist['who_can_aapply']=='Translation Agencies Only') echo "selected"; ?>>Translation Agencies Only</option>
                <option value="Freelancers & Agencies" <?php if($jplist['who_can_aapply']=='Freelancers & Agencies') echo "selected"; ?>>Freelancers & Agencies</option>
                </select></td>
             </tr><?php */?>
              <tr>
                <td align="right" style="width:20%; height:30px" class="username"><b>Job description: </b></td>
                <td><textarea name="txtDescription" id="txtDescription" style="height:250px; width:450px;" class="input_type"><?php echo $jplist['description']; ?></textarea></td>
                <td> </td>
              </tr>
              <?php /*?><tr>
          <td align="right" style="width:20%; height:30px" class="username"><b>Attachement: </b> <br>
            <small style="color: #808080;">maximum file size 1024 kB</small> <br>
            <small style="color: #808080;">Allowed attachement extensions: zip,rar,exe,txt</small></td>
          <td class="auction_dbk"><input type="file" class="inputbox " name="txtAttachment">
          <span style="margin-right:15px;" class="username"><a href="JavaScript:void(0);" onclick="return mypopup();" style="text-decoration:none">View Attachment</a></span></td>
        </tr><?php */?>
              <tr>
                <td colspan="2"><div style="text-align:center" class="auction_edit_header2">
                  <input type="submit" class="button validate" value="Submit" name="save" style=" margin-right:70px;" />
                </div></td>
              </tr>
            </tbody>
          </table>
        </form>
      </table>
      <?php } ?>
      <?php if ($_SESSION['uid']=='') {?>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="4%"> </td>
          <td width="1%"> </td>
          <td width="95%"> </td>
        </tr>
        <tr>
          <td> </td>
          <td> </td>
          <td class="login">Home > Post Job</td>
        </tr>
        <tr>
          <td> </td>
          <td> </td>
          <td> </td>
        </tr>
        <tr>
          <td> </td>
          <td> </td>
          <td class="forget">You are not authorised to see this resource!<br />
            You need to login. </td>
        </tr>
        <tr>
          <td> </td>
          <td> </td>
          <td> </td>
        </tr>
        <tr>
          <td> </td>
          <td> </td>
          <td> </td>
        </tr>
        <tr>
          <td> </td>
          <td> </td>
          <td> </td>
        </tr>
        <tr>
          <td> </td>
          <td> </td>
          <td> </td>
        </tr>
        <tr>
          <td> </td>
          <td> </td>
          <td> </td>
        </tr>
        <tr>
          <td> </td>
          <td> </td>
          <td> </td>
        </tr>
        <tr>
          <td> </td>
          <td> </td>
          <td> </td>
        </tr>
        <tr>
          <td> </td>
          <td> </td>
          <td> </td>
        </tr>
      </table>
      <?php }?>
      <!--<tr >
        <td height="390" colspan="5"  valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="18%" height="37"><table id="rbid_details" cellpadding="0" cellspacing="0" width="100%">
              <tbody>
                <tr>
                  <td><label class="register_user">Job Poster</label></td>
                  <td></td>
                </tr>
              </tbody>
            </table></td>
            <td width="3%"> </td>
            <td width="54%" class="text_new">Rahul </td>
            <td width="25%"> </td>
          </tr>
          <tr>
            <td height="35"><table id="rbid_details2" cellpadding="0" cellspacing="0" width="100%">
              <tbody>
                <tr>
                  <td><label><span class="register_user">Job Title</span>:</label></td>
                  <td></td>
                </tr>
              </tbody>
            </table></td>
            <td> </td>
            <td><label for="textfield"></label>
              <input type="text" name="textfield" id="textfield" style="width:400px;" />
            </td>
            <td> </td>
          </tr>
          <tr>
            <td> </td>
            <td> </td>
            <td><table id="rbid_details3" cellpadding="0" cellspacing="0" width="100%">
              <tbody>
                <tr>
                  <td height="17"></td>
                  <td class="username_text"> (Example: "Brochure Translation, 1200 words, Trados", "Technical Translation") </td>
                </tr>
              </tbody>
            </table></td>
            <td> </td>
          </tr>
          <tr>
            <td height="36"><table id="rbid_details4" cellpadding="0" cellspacing="0" width="100%">
              <tbody>
                <tr>
                  <td><label class="register_user">Category</label></td>
                  <td></td>
                </tr>
              </tbody>
            </table></td>
            <td> </td>
            <td><label for="select"></label>
              <select name="select" id="select"></option>
              <option value="3" >Copywriting</option>
                <option value="4" >Desktop Publishing</option>
                </option><option value="5" >Editing</option>
              </select>
            </td>
            <td> </td>
          </tr>
          <tr>
            <td height="39"><table id="rbid_details5" cellpadding="0" cellspacing="0" width="100%">
              <tbody>
                <tr id="search_sl01">
                  <td><span class="register_user"><strong>Select Language(s):</strong></span><strong>  </strong></td>
                  <td></td>
                </tr>
              </tbody>
            </table></td>
            <td> </td>
            <td><select name="select2" id="select2">
              </option>
              <option value="3" >Copywriting </option>
              <option value="4" >Desktop Publishing</option>
              </option>
              <option value="5" >Editing</option>
            </select></td>
            <td> </td>
          </tr>
          <tr>
            <td height="40"><strong class="register_user">Target Language: </strong></td>
            <td> </td>
            <td> <select name="select3" id="select3">
                </option>
                <option value="3" >Copywriting </option>
                <option value="4" >Desktop Publishing</option>
                </option>
                <option value="5" >Editing</option>
              </select></td>
            <td> </td>
          </tr>
          <tr>
            <td height="30"> </td>
            <td> </td>
            <td class="text_new">(Press Ctrl to Select Multiple Target Languages)</td>
            <td> </td>
          </tr>
          <tr>
            <td height="30"><span class="register_user"><strong>Subject Matter:</strong></span><strong> </strong></td>
            <td> </td>
            <td><select name="select4" id="select4">
              </option>
              <option value="3" >Copywriting </option>
              <option value="4" >Desktop Publishing</option>
              </option>
              <option value="5" >Editing</option>
            </select></td>
            <td> </td>
          </tr>
          <tr>
            <td height="34"><strong class="register_user">Required Software: </strong></td>
            <td> </td>
            <td>
              <label for="textfield2"></label>
              <input type="text" name="textfield2" id="textfield2" />
            </td>
            <td> </td>
          </tr>
          <tr>
            <td height="31"><strong class="register_user">Required CAT Tool:</strong></td>
            <td> </td>
            <td>
              <label for="textfield2"></label>
              <input type="text" name="textfield3" id="textfield2" />
            </td>
            <td> </td>
          </tr>
          <tr>
            <td><table id="rbid_details6" cellpadding="0" cellspacing="0" width="100%">
              <tbody>
                <tr>
                  <td height="28"><label><span class="register_user">Quoting Deadline</span>:</label></td>
                  <td></td>
                </tr>
              </tbody>
            </table></td>
            <td> </td>
            <td>
              <label for="textfield2"></label>
              <input type="text" name="textfield4" id="textfield2" />
            </td>
            <td> </td>
          </tr>
          <tr>
            <td class="register_user">Description:</td>
            <td> </td>
            <td>
              <label for="textarea"></label>
              <textarea name="textarea" id="textarea" cols="45" rows="5"></textarea>
            </td>
            <td> </td>
          </tr>
        </table></td>
        </tr>-->
    </div></td>
  </tr>
</table>
</div>
<?php include("footer.php") ?>      


</div>
</body>
</html>

Below is the code which will display this job

<?php 

ob_start();
session_start();
include("includes/dbconfig.php");
include("classes/user.class.php");
include("classes/postjob.class.php");

$db=new db();
$user1=new user();
$jobpost = new postjob();

$result = @$jobpost->getPostJobList();

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Translators Globe</title>

<link href="css/style.css" rel="stylesheet" type="text/css" />

<link rel="stylesheet" href="img/calendar.css">

</head>

<script language="javascript">

function PopupWindowCenter(URL, title,w,h)

{var left = (screen.width/2)-(w/2);

var top = (screen.height/2)-(h/2);

var newWin = window.open (URL, title, 'toolbar=no, location=no,directories=no, status=no, menubar=no, scrollbars=no, resizable=no,copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);

}

function ViewBid(URL, title,w,h)

{var left = (screen.width/2)-(w/2);

var top = (screen.height/2)-(h/2);

var newWin = window.open (URL, title, 'toolbar=no, location=no,directories=no, status=no, menubar=no, scrollbars=no, resizable=no,copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);

}

</script>

<script language="JavaScript" src="img/calendar_us.js">

</script>


<body>


<div class="wrapper">

<div class="topHeader">

	<div class="topLeftBanner"><img src="images/logo.png" /></div>

    </div>

    <div class=" menu_new">

     <!-- <div id="menu">

        <ul>

          <li><a href="index.html" style="background-color:#FFA82A;"> Home </a></li>

          <li><a href="post_job.html"> Post Job</a></li>

          <li> <a href="find_job.html">Find Job</a></li>

          <li><a href="translator.html"> Translator</a></li>

          <li><a href="agencies.html">Agencies</a></li>

        </ul>

      </div>-->

      

      <?php include("header.php")?>

      

    </div>


</div>



<div  class="container"><table width="100%" border="0" cellspacing="0" cellpadding="0">

  <tr>

    <td width="20%" valign="top"><div class="Left_panel">

      <?php include("left.php")?>

    </div></td>

    <td width="1%"> </td>

    <td width="79%" valign="top"><div class="right_panel">

      <table width="950" border="0" cellspacing="0" cellpadding="0">

        <?php 

			       

			        $upid = $_GET['posid'];  

					$jplist = $jobpost->getCurrPostJobDetails($upid);

					 $cnt = $jobpost->getCountNofBids($upid);					

                   

/*				    echo "<pre>";

					print_r($cnt);

					echo "</pre>";

*/                     

					$ureg = $user1->fethDataOfCurrUser($upid);

			     ?>

        <tr>

          <td width="1%"> </td>

          <td width="1%"> </td>

          <td width="98%" align="right" valign="top" class="register_user_name"><table width="100%" border="0" cellspacing="0" cellpadding="0">

            <tr>

              <td align="left"> </td>

              <td> </td>

              <td> </td>

              <td align="left"> </td>

              <td align="left"></td>

              <td align="left" class="register_user_new"> </td>

            </tr>

            <tr>

              <td width="10" align="left"> </td>

              <?php if($_SESSION['uid']!= '' && $jobpost->getCurJPostId($upid)== true && $jobpost->CheckCurDateStatus($upid)== true) {?>

              <td width="120"><a href="post-job-edit.php?posid=<?php echo $jplist['id']; ?>" class="submit_bottone" style="text-decoration:none"> Edit this Job</a></td>

              <td width="120"><a href="close-job.php?posid=<?php echo $jplist['id']; ?>"  class="submit_bottone" style="text-decoration:none" onclick="return confirm('Are you sure you want to Close this job?')">Close this Job</a></td>

              <td width="98" align="left"></td>

              <?php  } ?>

              <td width="13" align="left"> </td>

              <td width="98" align="left"></td>

              <td width="400" align="left" class="register_user_new"><?php echo $jplist['who_can_aapply']; ?></td>

            </tr>

            <tr>

              <td align="left"> </td>

              <td> </td>

              <td> </td>

              <td align="left"></td>

              <td align="left"> </td>

              <td align="left"></td>

              <td align="left" class="register_user_new"> </td>

            </tr>

          </table></td>

        </tr>

        <tr>

          <td> </td>

          <td> </td>

          <td><table width="100%" border="0" cellspacing="0" cellpadding="0">

            <tr>

              <td></td>

            </tr>

            <tr>

              <td height="306" valign="top"><table width="98%" border="0" cellspacing="0" cellpadding="0">

                <tr>

                  <td align="center" bgcolor="#F1F1F1" class="box1"><table width="100%" border="0" cellspacing="0" cellpadding="0">

                    <tr>

                      <td height="22" align="center" class="new_design_text"><strong class="login1"><?php echo $jplist['job_title']; ?></strong></td>

                    </tr>

                  </table></td>

                </tr>

              </table>

                <table width="100%" border="0" cellspacing="0" cellpadding="0">

                  <tr>

                    <td width="28%" height="198" valign="top" class="box"><table width="100%" border="0" cellspacing="0" cellpadding="0">

                      <tr>

                        <td><label class="register_user_new">Posted By:</label>

                          <span class="new_design"> <a href="user-details-listing.php?uid=<?php echo $jplist['user_id']?>" style="text-decoration:none">

                            <?php $un = $jplist['user_id']; echo ucfirst($user1->getNameById($un)); ?>

                          </a></span></td>

                      </tr>

                      <tr>

                        <td><label class="register_user"><span class="register_user_new">Category:</span></label>

                          <span class="new_design"><?php echo $jobpost->getCateogryNameById($jplist['cateogry']); ?></span></td>

                      </tr>

                      <tr>

                        <td class="register_user_new">Language: <span class="new_design"><?php echo $jobpost->getLanguageNameById($jplist['language']); ?>><?php echo $jobpost->getLanguageNameById($jplist['tar_language']); ?></td>

                      </tr>

                      <tr>

                        <td><b class="register_user_new">Subject Matter:</b> <span class="new_design"> <?php echo $user1->getSubMatNameById($jplist['sub_matters']); ?></span></td>

                      </tr>

                      <tr>

                        <td><b class="register_user_new">Software: <span class="new_design"><?php echo $jplist['req_soft']; ?></span></b></td>

                      </tr>

                      <tr>

                        <td><b class="register_user_new">CAT Tool: <span class="new_design"><?php echo $jplist['req_tool']; ?></span></b></td>

                      </tr>

                    </table></td>

                    <td  align="center" valign="top" class="box" width="380px"><div align="left" style="width:380px;overflow:visible;" class=" new_text"> <?php echo $jplist['description']; ?></div></td>

                    <td width="26%" valign="top" class="box"><table width="100%" border="0" cellspacing="0" cellpadding="0">

                      <tr>

                        <td><span class="register_user_new">Start date:</span> <span class="new_design"><?php echo date("M d, Y", strtotime($jplist['start_date'])); ?></span></td>

                      </tr>

                      <tr>

                        <td><label class="register_user_new">Quoting deadline:</label>

                          <span class="new_design"><?php echo date("M d, Y", strtotime($jplist['end_date'])); ?></span></td>

                      </tr>

                      <tr>

                        <?php 	  foreach($cnt as $val) { ?>

                        <td><span class="register_user_new">No. of bidders: <?php echo $val['by_bid_user_id'];?></span> 

                          <?php } ?>

                          <?php if($_SESSION['uid']!= '' && $jobpost->getCurJPostId($upid)) { ?>

                          <span class="new_design"> <a href="javascript:void(0);" onclick="ViewBid('view-bids.php?bid=<?php echo $jplist['id'];?>','ViewBid',800,650)" class="forget">View Bidder(s)</a></span>

                          <?php } ?></td>

                        <td></td>

                      </tr>

                      <!--                      <tr>

                        <td><span class="register_user_new">Hits:</span> <span class="new_design">40</span></td>

                        </tr>

                      <tr>

-->

                      <tr>

                        <td> </td>

                      </tr>

                    </table></td>

                    <td width="2%"> </td>

                  </tr>

                </table>

                <table width="100%" border="0" cellspacing="0" cellpadding="0">

                  <tr>

                    <td> </td>

                  </tr>

                  <tr>

                    <?php if($jobpost->getCurJPostId($upid)== false && $jobpost->CheckCurDateStatus($upid)== true) {?>

                    <td><?php if($_SESSION['uid']!='') { ?>

                      <a href="javascript:void(0);" onclick="PopupWindowCenter('send-bids.php?upid=<?php echo $jplist['user_id']?>&posid=<?php echo $jplist['id']; ?>','PopupWindowCenter',700,600);" class="submit_bottone" style="text-decoration:none">Send Bid</a>

                      <?php } ?></td>

                    <?php } ?>

                  </tr>

                </table></td>

            </tr>

          </table></td>

        </tr>

      </table>

    </div></td>

  </tr>

</table>

</div><table width="100%" border="0" cellspacing="0" cellpadding="0">

  <tr>

    <td> </td>

  </tr>

  <tr>

    <td> </td>

  </tr>

  <tr>

    <td> </td>

  </tr>

  <tr>

    <td> </td>

  </tr>

</table>


<?php include("footer.php") ?>      

</div>

</body>

</html>


 

Link to comment
https://forums.phpfreaks.com/topic/275559-mailto-and-website-links/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.