MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 18.118.144.199
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/sainicraneservice.in/wknadmin/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/sainicraneservice.in/wknadmin/manage_inner_button_color.php
<?php
require_once("../includes/dbsmain.inc.php");
if (isset($_POST['Submit'])) {
@extract($_POST);
			    $sql = "update tbl_site_color set 
				           site_color_inner_button_color='$site_color_inner_button_color',
		                   site_color_inner_buttonhover_color='$site_color_inner_buttonhover_color',
						   site_color_inner_button_font_color='$site_color_inner_button_font_color'
						   where 1 and site_color_admin_id='1'";
						   db_query($sql);				
		set_session_msg("Inner buttons colors updated successfully !");
		header("Location: manage_inner_button_color.php");
		exit;
    }
	
if (isset($_POST['ChangeDefault'])) {
			    $sql = "update tbl_site_color set 
				           site_color_inner_button_color='',
		                   site_color_inner_buttonhover_color='',
						   site_color_inner_button_font_color=''
						   where 1 and site_color_admin_id='1'";
						   db_query($sql);				
		set_session_msg("Inner buttons colors change to default successfully !");
		header("Location: manage_inner_button_color.php");
		exit;
    }	
	$result = db_query("select site_color_inner_button_color,site_color_inner_buttonhover_color,site_color_inner_button_font_color from tbl_site_color where 1");
	if ($line_raw = mysql_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 Inner Button 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 Button 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_inner_button_color']?>"></td>
                </tr>
				<tr>
                  <td class="tdLabel" style="padding:8px; font-weight:bold;" align="right">Current Button Font 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_inner_button_font_color']?>"></td>
                </tr>
				<tr>
                  <td class="tdLabel" style="padding:8px; font-weight:bold;" align="right">Current Button 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_inner_buttonhover_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 Button Color</td>
                   <td class="tdLabel" style="padding:8px;" valign="bottom" align="left"><input type="color" name="site_color_inner_button_color" style="width:260px; height:25px;"></td>
                </tr>
				<tr>
                  <td class="tdLabel" style="padding:8px; font-weight:bold;" align="right">Select Button Font Color</td>
                   <td class="tdLabel" style="padding:8px;" valign="bottom" align="left"><input type="color" name="site_color_inner_button_font_color" style="width:260px; height:25px;"></td>
                </tr>
				<tr>
                  <td class="tdLabel" style="padding:8px; font-weight:bold;" align="right">Select Button Hover Color</td>
                   <td class="tdLabel" style="padding:8px;" valign="bottom" align="left"><input type="color" name="site_color_inner_buttonhover_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