kohjhjhصثقص5572hjkhk7872ثقصثقgdfgdg
Ele57885fddfg872782782782 hjkhj782dfgfghgقفغفغفقhfg555434536
/
home4
/
kisgavwq
/
sisnikol.com
/
skpadmin
/
Upload FileeE
HOME
<?php //page-management.php session_start(); require_once("../includes/settings.php"); require_once("../includes/database.php"); require_once("../includes/classes/db.cls.php"); require_once("../includes/classes/sitedata.cls.php"); require_once("includes/functions/common.php"); require_once("../includes/classes/Admin.cls.php"); require_once("../includes/classes/Pages.cls.php"); require_once("../includes/classes/Menus.cls.php"); loginValidate(); $db = new SiteData(); $adminObj = new Admin(); $pageObj = new Pages(); $menuObj = new Menus(); $_curpage = currentPage(); $_SESSION[SES]['curpage'] = currentURL(); ?> <!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><?=PAGE_TITLE?> :: ADMIN PANEL</title> <link rel="stylesheet" type="text/css" href="styles/admin.css" /> <link rel="stylesheet" type="text/css" href="styles/common.css" /> <script type='text/javascript' src='js/jquery.min.js'></script> <script type='text/javascript' src='js/common.js'></script> <script type='text/javascript' src='js/menu.js'></script> <script type="text/javascript"> function sortdata(orderby) { document.location.href="MenuSort.php?orderby="+orderby; } </script> </head> <body> <?php getMessage();?> <div class="bodydiv"> <table width="100%" border="1" bordercolor="#999999" cellpadding="0" cellspacing="0" class="bodytable"> <tr> <td colspan="2" valign="middle"><?php require_once("includes/header.php"); ?></td> </tr> <tr> <td align="center" valign="top" width="150"><?php require_once("includes/column_left.php"); ?> </td> <td align="left" valign="top"><div class="maincontent"> <?php $q= isset($_GET['q'])?$_GET['q']:""; switch($q) { case "add" :include_once("includes/menu_add.php"); break; case "edit" :include_once("includes/menu_edit.php"); break; case "mngsubmenu" :include_once("includes/menu_submenu.php"); break; default: include_once("includes/menu.php"); break; }?> </div></td> </tr> <tr> <td colspan="2" valign="middle"><?php require_once("includes/footer.php"); ?></td> </tr> </table> </div> <script type="text/javascript"> var _URL = window.URL || window.webkitURL; $("#icon").change(function(e) { var file, img; if ((file = this.files[0])) { img = new Image(); img.onload = function() { if(this.width > 24 && this.height>24){ alert('Icon height should be 24 and height should be 24'); // alert(this.size); // alert(this.width + " " + this.height); } }; img.onerror = function() { alert( "not a valid file: " + file.type); }; img.src = _URL.createObjectURL(file); } }); </script> <script type="text/javascript"> var uploadField = document.getElementById("icon");//alert(uploadField); uploadField.onchange = function() { // alert(this.files[0].height); console.log(this.files[0]); if(this.files[0].size > 2048){ alert("Upload Icon under 2kb size!"); this.value = ""; } if(this.files[0].type != 'image/png'){ alert("Please Upload PNG TYPE ICON"); // alert(this.files[0].type); this.value = ""; } }; </script> </body> </html>